@arcgis/map-components 5.2.0-next.20 → 5.2.0-next.21

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.
@@ -1,56 +1,56 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as de } from "../../chunks/runtime.js";
3
- import { watch as he, when as ge, whenOnce as ue } from "@arcgis/core/core/reactiveUtils.js";
4
- import * as pe from "@arcgis/core/intl.js";
5
- import me from "@arcgis/core/views/3d/environment/SunLighting.js";
6
- import fe from "@arcgis/core/views/3d/environment/VirtualLighting.js";
7
- import { LitElement as _e, createEvent as B, safeStyleMap as V, nothing as J } from "@arcgis/lumina";
8
- import { css as be, html as m } from "lit";
2
+ import { c as he } from "../../chunks/runtime.js";
3
+ import { watch as ge, when as ue, whenOnce as pe } from "@arcgis/core/core/reactiveUtils.js";
4
+ import * as me from "@arcgis/core/intl.js";
5
+ import fe from "@arcgis/core/views/3d/environment/SunLighting.js";
6
+ import _e from "@arcgis/core/views/3d/environment/VirtualLighting.js";
7
+ import { LitElement as be, createEvent as B, safeStyleMap as V, nothing as J } from "@arcgis/lumina";
8
+ import { css as ve, html as m } from "lit";
9
9
  import { createRef as q, ref as G } from "lit/directives/ref.js";
10
- import { u as ve } from "../../chunks/useT9n.js";
11
- import { u as we } from "../../chunks/useView.js";
10
+ import { u as we } from "../../chunks/useT9n.js";
11
+ import { u as ye } from "../../chunks/useView.js";
12
12
  import { m as N } from "../../chunks/handle.js";
13
- import { o as T, i as p, b as Y, d as P, g as ye } from "../../chunks/time-utils.js";
14
- import { r as xe, b as Se, d as De } from "../../chunks/async-utils.js";
15
- import { createTrackingTarget as Te, runTracked as Z, signal as ke } from "@arcgis/core/applications/Components/reactiveUtils.js";
16
- import { C as W } from "../../chunks/component-wrapper.js";
17
- import { V as D } from "../../chunks/visible-element.js";
18
- function Pe(r, e) {
13
+ import { o as C, i as p, l as Y, b as D, d as Z, g as xe } from "../../chunks/time-utils.js";
14
+ import { r as Se, b as De, d as Te } from "../../chunks/async-utils.js";
15
+ import { createTrackingTarget as ke, runTracked as W, signal as Pe } from "@arcgis/core/applications/Components/reactiveUtils.js";
16
+ import { C as K } from "../../chunks/component-wrapper.js";
17
+ import { V as T } from "../../chunks/visible-element.js";
18
+ function Ce(r, e) {
19
19
  return r / 15;
20
20
  }
21
- function Ce(r, e) {
21
+ function $e(r, e) {
22
22
  const t = r?.[0];
23
23
  if (t == null)
24
24
  return null;
25
- e || (e = { hours: 0, minutes: 0, seconds: 0 }), e.hours = Pe(t);
25
+ e || (e = { hours: 0, minutes: 0, seconds: 0 }), e.hours = Ce(t);
26
26
  const i = e.hours % 1;
27
27
  e.hours -= i, e.minutes = i * 60;
28
28
  const n = e.minutes % 1;
29
29
  return e.minutes -= n, e.seconds = Math.round(n * 60), e;
30
30
  }
31
- function K(r) {
32
- const e = Ce([r.longitude, r.latitude]);
31
+ function Q(r) {
32
+ const e = $e([r.longitude, r.latitude]);
33
33
  return e == null ? 0 : Math.round(e.hours + e.minutes / 60 + e.seconds / 3600);
34
34
  }
35
- function ne(r, e) {
35
+ function se(r, e) {
36
36
  return (r % e + e) % e;
37
37
  }
38
- class $e {
38
+ class ze {
39
39
  #e;
40
40
  #i;
41
- #r = Te(() => {
41
+ #r = ke(() => {
42
42
  this.#t();
43
43
  });
44
44
  constructor(e) {
45
45
  this.#i = e;
46
46
  let t;
47
- Z(this.#r, () => {
47
+ W(this.#r, () => {
48
48
  t = e();
49
- }), this.#e = ke(t);
49
+ }), this.#e = Pe(t);
50
50
  }
51
51
  #t() {
52
52
  const e = this.#e.value;
53
- Z(this.#r, () => {
53
+ W(this.#r, () => {
54
54
  this.#e.value = this.#i(e);
55
55
  });
56
56
  }
@@ -62,29 +62,29 @@ class $e {
62
62
  }
63
63
  }
64
64
  function A(r) {
65
- return new $e(r);
65
+ return new ze(r);
66
66
  }
67
- var L = Math.PI, u = Math.sin, k = Math.cos, ze = Math.asin, Oe = Math.acos, y = L / 180, se = 1e3 * 60 * 60 * 24, oe = 2440588, ae = 2451545;
68
- function Me(r) {
69
- return r.valueOf() / se - 0.5 + oe;
67
+ var L = Math.PI, u = Math.sin, k = Math.cos, Oe = Math.asin, Me = Math.acos, y = L / 180, oe = 1e3 * 60 * 60 * 24, ae = 2440588, le = 2451545;
68
+ function Ue(r) {
69
+ return r.valueOf() / oe - 0.5 + ae;
70
70
  }
71
71
  function O(r) {
72
- return new Date((r + 0.5 - oe) * se);
72
+ return new Date((r + 0.5 - ae) * oe);
73
73
  }
74
- function Ue(r) {
75
- return Me(r) - ae;
74
+ function Le(r) {
75
+ return Ue(r) - le;
76
76
  }
77
- var Q = y * 23.4397;
78
- function Le(r, e) {
79
- return ze(u(e) * k(Q) + k(e) * u(Q) * u(r));
77
+ var X = y * 23.4397;
78
+ function Ee(r, e) {
79
+ return Oe(u(e) * k(X) + k(e) * u(X) * u(r));
80
80
  }
81
- function Ee(r) {
81
+ function He(r) {
82
82
  return y * (357.5291 + 0.98560028 * r);
83
83
  }
84
- function He(r) {
84
+ function Ae(r) {
85
85
  return y * (1.9148 * u(r) + 0.02 * u(2 * r) + 3e-4 * u(3 * r));
86
86
  }
87
- function Ae(r, e) {
87
+ function Ie(r, e) {
88
88
  var t = y * 102.9372;
89
89
  return r + e + t + L;
90
90
  }
@@ -105,24 +105,24 @@ var I = [
105
105
  [ -18, "nightEnd", "night" ],
106
106
  [ 6, "goldenHourEnd", "goldenHour" ]
107
107
  */
108
- ], le = 9e-4;
109
- function Ie(r, e) {
110
- return Math.round(r - le - e / (2 * L));
111
- }
112
- function X(r, e, t) {
113
- return le + (r + e) / (2 * L) + t;
108
+ ], ce = 9e-4;
109
+ function Ne(r, e) {
110
+ return Math.round(r - ce - e / (2 * L));
114
111
  }
115
112
  function ee(r, e, t) {
116
- return ae + r + 53e-4 * u(e) - 69e-4 * u(2 * t);
113
+ return ce + (r + e) / (2 * L) + t;
114
+ }
115
+ function te(r, e, t) {
116
+ return le + r + 53e-4 * u(e) - 69e-4 * u(2 * t);
117
117
  }
118
- function Ne(r, e, t) {
119
- return Oe((u(r) - u(e) * u(t)) / (k(e) * k(t)));
118
+ function Fe(r, e, t) {
119
+ return Me((u(r) - u(e) * u(t)) / (k(e) * k(t)));
120
120
  }
121
121
  S.getTimes = function(r, e, t) {
122
- var i = y * -t, n = y * e, s = Ue(r), o = Ie(s, i), a = X(0, i, o), c = Ee(a), d = He(c), l = Ae(c, d), h = Le(l, 0), g = ee(a, c, l);
122
+ var i = y * -t, n = y * e, s = Le(r), o = Ne(s, i), a = ee(0, i, o), c = He(a), d = Ae(c), l = Ie(c, d), h = Ee(l, 0), g = te(a, c, l);
123
123
  function w(H) {
124
- var z = Ne(H, n, h), ce = X(z, i, o);
125
- return ee(ce, c, l);
124
+ var z = Fe(H, n, h), de = ee(z, i, o);
125
+ return te(de, c, l);
126
126
  }
127
127
  function x(H) {
128
128
  var z = (u(H) - u(n) * u(h)) / (k(n) * k(h));
@@ -137,7 +137,7 @@ S.getTimes = function(r, e, t) {
137
137
  $ = I[b], E = w($[0] * y), j = g - (E - g), _[$[1]] = O(j), _[$[2]] = O(E);
138
138
  return _.polarException = x(I[0][0] * y), _;
139
139
  };
140
- const Fe = {
140
+ const Je = {
141
141
  spring: { dayOfMonth: 20, month: 2 },
142
142
  // Northern Spring equinox in 2014 - March 20
143
143
  summer: { dayOfMonth: 21, month: 5 },
@@ -147,31 +147,31 @@ const Fe = {
147
147
  winter: { dayOfMonth: 21, month: 11 }
148
148
  // Northern Winter solstice in 2014 - December 21
149
149
  }, F = ["spring", "summer", "fall", "winter"];
150
- function C(r, e, t) {
151
- const i = R(e, t), { dayOfMonth: n, month: s } = Fe[i], o = new Date(r.getTime());
150
+ function P(r, e, t) {
151
+ const i = R(e, t), { dayOfMonth: n, month: s } = Je[i], o = new Date(r.getTime());
152
152
  return o.setMonth(s, n), o;
153
153
  }
154
- function Je(r, e) {
155
- const t = Re(r);
154
+ function Re(r, e) {
155
+ const t = je(r);
156
156
  return R(t, e);
157
157
  }
158
- function Re(r) {
159
- const e = r.getTime(), t = C(r, "spring", "northern").getTime(), i = C(r, "summer", "northern").getTime(), n = C(r, "fall", "northern").getTime(), s = C(r, "winter", "northern").getTime();
158
+ function je(r) {
159
+ const e = r.getTime(), t = P(r, "spring", "northern").getTime(), i = P(r, "summer", "northern").getTime(), n = P(r, "fall", "northern").getTime(), s = P(r, "winter", "northern").getTime();
160
160
  return e >= t && e < i ? "spring" : e >= i && e < n ? "summer" : e >= n && e < s ? "fall" : "winter";
161
161
  }
162
162
  function R(r, e) {
163
- return e === "northern" ? r : je(r);
163
+ return e === "northern" ? r : Be(r);
164
164
  }
165
- function te(r) {
165
+ function ie(r) {
166
166
  return r >= 0 ? "northern" : "southern";
167
167
  }
168
- function je(r) {
168
+ function Be(r) {
169
169
  const e = F.indexOf(r);
170
170
  return F[(e + 2) % 4];
171
171
  }
172
- const Be = 1440, Ve = 864e5;
173
- function qe(r, e, t, i) {
174
- const n = S.getTimes(r, e, t), s = n.sunrise, o = n.sunset, a = T(r, i), c = T(s, i), d = T(o, i);
172
+ const Ve = 1440, qe = 864e5;
173
+ function Ge(r, e, t, i) {
174
+ const n = S.getTimes(r, e, t), s = n.sunrise, o = n.sunset, a = C(r, i), c = C(s, i), d = C(o, i);
175
175
  if (a.getUTCDate() !== c.getUTCDate() || a.getUTCDate() !== d.getUTCDate()) {
176
176
  const l = a.getTime() - c.getTime() > 0 ? 1 : -1;
177
177
  s.setUTCDate(s.getUTCDate() + l), o.setUTCDate(o.getUTCDate() + l);
@@ -181,11 +181,11 @@ function qe(r, e, t, i) {
181
181
  sunset: o
182
182
  };
183
183
  }
184
- const Ge = 100, Ye = 1e3, v = 12e5, M = 72e5;
185
- function ie(r, e) {
186
- return ne(r + e, 24);
184
+ const Ye = 100, Ze = 1e3, v = 12e5, M = 72e5;
185
+ function re(r, e) {
186
+ return se(r + e, 24);
187
187
  }
188
- function Ze({
188
+ function We({
189
189
  mode: r,
190
190
  lighting: e,
191
191
  getPlaySpeed: t,
@@ -197,15 +197,15 @@ function Ze({
197
197
  const c = e.date, d = Date.now() - (a ?? 0);
198
198
  if (r === "day") {
199
199
  a = Date.now();
200
- const h = t() / Ge * d;
200
+ const h = t() / Ye * d;
201
201
  if (h > 0) {
202
202
  let g = new Date(c.getTime() + h);
203
- const w = e.displayUTCOffset ?? 0, x = ie(g.getUTCHours(), w), _ = ie(c.getUTCHours(), w);
204
- x < _ && (g = new Date(c.getTime() + h - Ve));
203
+ const w = e.displayUTCOffset ?? 0, x = re(g.getUTCHours(), w), _ = re(c.getUTCHours(), w);
204
+ x < _ && (g = new Date(c.getTime() + h - qe));
205
205
  const b = e.clone();
206
206
  n?.(), e.date = g, i?.(b, e);
207
207
  }
208
- } else if (d > Ye) {
208
+ } else if (d > Ze) {
209
209
  a = Date.now();
210
210
  const l = (c.getUTCMonth() + 1) % 12, h = new Date(c.getTime());
211
211
  h.setUTCMonth(l);
@@ -217,7 +217,7 @@ function Ze({
217
217
  return o(), N(() => cancelAnimationFrame(s));
218
218
  }
219
219
  const U = v / 4;
220
- function We(r, e, t, i) {
220
+ function Ke(r, e, t, i) {
221
221
  const {
222
222
  day: n,
223
223
  night: s = n,
@@ -229,14 +229,14 @@ function We(r, e, t, i) {
229
229
  let f = a;
230
230
  return l >= w && l <= x ? l - w <= v ? f = c - (l - w) / v * (c - d) : x - l <= v / 2 ? f = a - (x - l) / v * 2 * (a - d) : f = d : l >= _ && l <= b ? l - _ <= v / 2 ? f = a - (l - _) / v * 2 * (a - d) : b - l <= v ? f = c - (b - l) / v * (c - d) : f = d : (l < h || l > g) && (f = c), f;
231
231
  }
232
- const Ke = be`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}:host{width:350px}.root{display:flex;flex-direction:column;overflow:visible;gap:var(--calcite-spacing-md);justify-content:space-between;padding:var(--arcgis-internal-padding);position:relative;calcite-label{--calcite-label-margin-bottom: 0}&.loading>*:not(calcite-scrim){opacity:0}}.unsupported{padding:0 var(--calcite-spacing-lg);animation:esri-fade-in .25s ease-in-out}.slider{margin-block-start:0rem}.time-configuration{--date-play-button-offset: 11px;--slider-play-button-offset: var(--calcite-spacing-md);display:grid;gap:var(--calcite-spacing-md);grid-template-columns:1fr min-content;.slider-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--slider-play-button-offset))}}.timezone-input-container{grid-column:1;min-width:0;+span{grid-column:2}}.date-picker-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--date-play-button-offset))}}calcite-button{place-self:center}}`, Qe = {
232
+ const Qe = ve`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}:host{width:350px}.root{display:flex;flex-direction:column;overflow:visible;gap:var(--calcite-spacing-md);justify-content:space-between;padding:var(--arcgis-internal-padding);position:relative;calcite-label{--calcite-label-margin-bottom: 0}&.loading>*:not(calcite-scrim){opacity:0}}.unsupported{padding:0 var(--calcite-spacing-lg);animation:esri-fade-in .25s ease-in-out}.slider{margin-block-start:0rem}.time-configuration{--date-play-button-offset: 11px;--slider-play-button-offset: var(--calcite-spacing-md);display:grid;gap:var(--calcite-spacing-md);grid-template-columns:1fr min-content;.slider-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--slider-play-button-offset))}}.timezone-input-container{grid-column:1;min-width:0;+span{grid-column:2}}.date-picker-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--date-play-button-offset))}}calcite-button{place-self:center}}`, Xe = {
233
233
  day: 1,
234
234
  night: 6,
235
235
  twilight: 2 / 3
236
236
  };
237
- class Xe extends _e {
237
+ class et extends be {
238
238
  constructor() {
239
- super(...arguments), this.messages = ve({ blocking: !0 }), this.#i = "none", this.#r = null, this.#l = q(), this.#g = q(), this.#u = 200, this.#p = 200, this.#c = !1, this.#o = {}, this._offset = A((e) => {
239
+ super(...arguments), this.messages = we({ blocking: !0 }), this.#i = "none", this.#r = null, this.#l = q(), this.#g = q(), this.#u = 200, this.#p = 200, this.#c = !1, this.#o = {}, this._offset = A((e) => {
240
240
  const t = this._lighting, i = p(t) ? t.displayUTCOffset : void 0;
241
241
  return this.#t ? e : i ?? e;
242
242
  }), this._timesliderPosition = A((e) => {
@@ -246,21 +246,21 @@ class Xe extends _e {
246
246
  const i = t.displayUTCOffset ?? this.utcOffset ?? 0, n = t.date;
247
247
  if (this.#t)
248
248
  return e;
249
- if (Y(n)) {
250
- const { minutesSinceMidnight: s } = P(n, i);
249
+ if (Z(n)) {
250
+ const { minutesSinceMidnight: s } = D(n, i);
251
251
  return s;
252
252
  }
253
253
  return e;
254
254
  }), this._localDate = A((e) => {
255
- const t = ye(this._view, this.utcOffset);
255
+ const t = xe(this._view, this.utcOffset);
256
256
  return this.#t ? e : t ?? e;
257
- }), this.view = we(this), this.autoDestroyDisabled = !1, this.dateOrSeason = "date", this.headingLevel = 2, this.hideDatePicker = !1, this.hideHeader = !1, this.hidePlayButtons = !1, this.hideShadowsToggle = !1, this.hideSunLightingToggle = !1, this.hideTimezone = !1, this.icon = "brightness", this.playSpeedMultiplier = 1, this.timeSliderSteps = 5, this.arcgisReady = B(), this.arcgisUserDateTimeChange = B(), this.#a = !1;
257
+ }), this.view = ye(this), this.autoDestroyDisabled = !1, this.dateOrSeason = "date", this.headingLevel = 2, this.hideDatePicker = !1, this.hideHeader = !1, this.hidePlayButtons = !1, this.hideShadowsToggle = !1, this.hideSunLightingToggle = !1, this.hideTimezone = !1, this.icon = "brightness", this.playSpeedMultiplier = 1, this.timeSliderSteps = 5, this.arcgisReady = B(), this.arcgisUserDateTimeChange = B(), this.#a = !1;
258
258
  }
259
259
  static {
260
260
  this.properties = { localDateAsString: 32, view: 0, _playingState: 16, _sunlightingDisabled: 16, autoDestroyDisabled: 5, currentSeason: 1, dateOrSeason: 3, dayPlaying: 5, _directShadowsDisabled: 16, headingLevel: 9, hideDatePicker: 5, hideHeader: 5, hidePlayButtons: 5, hideShadowsToggle: 5, hideSunLightingToggle: 5, hideTimezone: 5, icon: 3, label: 1, playSpeedMultiplier: 9, referenceElement: 1, timeSliderSteps: 9, utcOffset: 9, timeSliderPosition: 9, localDate: 1, yearPlaying: 5 };
261
261
  }
262
262
  static {
263
- this.styles = Ke;
263
+ this.styles = Qe;
264
264
  }
265
265
  get _view() {
266
266
  return this.view?.type === "3d" ? this.view : void 0;
@@ -290,34 +290,38 @@ class Xe extends _e {
290
290
  #d() {
291
291
  if (this.requestUpdate(), this.#t)
292
292
  return;
293
- const e = xe(() => {
293
+ const e = Se(() => {
294
294
  if (p(this._lighting)) {
295
- const t = this.utcOffset ?? 0, i = this.timeSliderPosition ?? 0, n = this.localDate, s = i - t * 60, o = T(n, s, "minutes");
296
- this._lighting.date = o, this._lighting.displayUTCOffset = t;
295
+ const t = this.utcOffset ?? 0, i = this.timeSliderPosition ?? 0, n = this.localDate;
296
+ this._lighting.date = Y(n, i, t), this._lighting.displayUTCOffset = t;
297
297
  }
298
298
  this.#t?.remove();
299
299
  }, { timeout: this.#u });
300
300
  this.#t = N(() => {
301
- De(e), this.#t = void 0;
301
+ Te(e), this.#t = void 0;
302
302
  });
303
303
  }
304
- #f({ scale: e, disabled: t }) {
304
+ #f(e) {
305
+ const t = this.utcOffset ?? e.displayUTCOffset ?? 0, { minutesSinceMidnight: i, localDate: n } = D(e.date, t), s = this.timeSliderPosition ?? i, o = this.localDateAsString ?? n;
306
+ this.#t?.remove(), e.date = Y(o, s, t), e.displayUTCOffset = t;
307
+ }
308
+ #_({ scale: e, disabled: t }) {
305
309
  const { messages: i } = this;
306
- return m`<calcite-label .scale=${e} class="date-picker-container">${i.date}${et({ disabled: t, scale: e, date: this.localDateAsString, onDateChange: (n) => {
310
+ return m`<calcite-label .scale=${e} class="date-picker-container">${i.date}${tt({ disabled: t, scale: e, date: this.localDateAsString, onDateChange: (n) => {
307
311
  const s = n.currentTarget.value, o = Array.isArray(s) ? s[0] : s;
308
312
  this._stopPlaying(), this.localDate = o, this._emitUserDateTimeChangeEvent();
309
- } })}</calcite-label>${D({ hidden: this.hidePlayButtons, children: re({ playing: this.yearPlaying, disabled: t, label: i.playYear, onClick: () => {
313
+ } })}</calcite-label>${T({ hidden: this.hidePlayButtons, children: ne({ playing: this.yearPlaying, disabled: t, label: i.playYear, onClick: () => {
310
314
  this._playingState === "year" ? this._playingState = "none" : this._playingState = "year";
311
315
  }, scale: e }) })}`;
312
316
  }
313
- #_({ scale: e, disabled: t }) {
317
+ #b({ scale: e, disabled: t }) {
314
318
  const { messages: i } = this;
315
- return m`<calcite-label .scale=${e} class="date-picker-container">${i.season}${tt({ scale: e, selectedSeason: this.currentSeason, disabled: t, messages: i, onSeasonChange: (n) => {
319
+ return m`<calcite-label .scale=${e} class="date-picker-container">${i.season}${it({ scale: e, selectedSeason: this.currentSeason, disabled: t, messages: i, onSeasonChange: (n) => {
316
320
  this._stopPlaying(), this.currentSeason = n.currentTarget.value;
317
321
  } })}</calcite-label>`;
318
322
  }
319
323
  #o;
320
- get #b() {
324
+ get #v() {
321
325
  return this.#g?.value?.startTime;
322
326
  }
323
327
  get localDateAsString() {
@@ -349,9 +353,9 @@ class Xe extends _e {
349
353
  p(i) && (s.cameraTrackingEnabled = i.cameraTrackingEnabled);
350
354
  const o = e ? "virtual" : "sun";
351
355
  let a;
352
- n?.type === o ? a = n : a = e ? new fe() : new me({
353
- date: T(
354
- T(this.localDate, this.timeSliderPosition ?? 0, "minutes"),
356
+ n?.type === o ? a = n : a = e ? new _e() : new fe({
357
+ date: C(
358
+ C(this.localDate, this.timeSliderPosition ?? 0, "minutes"),
355
359
  // this.localDate already includes the UTC offset, so we need to remove the offset to get the correct UTC date for the SunLighting configuration
356
360
  this.utcOffset ?? 0
357
361
  ),
@@ -359,13 +363,13 @@ class Xe extends _e {
359
363
  }), a.set(s), t.lighting = a, e || (this._stopPlaying(), this.#l.value && (this.#l.value.open = !1));
360
364
  }
361
365
  get currentSeason() {
362
- const e = this._view?.camera?.position?.latitude ?? 0, t = te(e);
363
- return Je(this.localDate, t);
366
+ const e = this._view?.camera?.position?.latitude ?? 0, t = ie(e);
367
+ return Re(this.localDate, t);
364
368
  }
365
369
  set currentSeason(e) {
366
370
  this._stopPlaying();
367
- const t = this._view?.camera?.position?.latitude ?? 0, i = te(t), n = R(e, i);
368
- this.localDate = C(this.localDate, n, "northern"), this._emitUserDateTimeChangeEvent();
371
+ const t = this._view?.camera?.position?.latitude ?? 0, i = ie(t), n = R(e, i);
372
+ this.localDate = P(this.localDate, n, "northern"), this._emitUserDateTimeChangeEvent();
369
373
  }
370
374
  get dayPlaying() {
371
375
  return this._playingState === "day";
@@ -389,7 +393,7 @@ class Xe extends _e {
389
393
  return this._timesliderPosition.value;
390
394
  }
391
395
  set timeSliderPosition(e) {
392
- this._timesliderPosition.mutate(ne(e ?? 0, Be)), !this.#n("timeSliderPosition", e) && this.#d();
396
+ this._timesliderPosition.mutate(se(e ?? 0, Ve)), !this.#n("timeSliderPosition", e) && this.#d();
393
397
  }
394
398
  get localDate() {
395
399
  return this._localDate.value != null ? new Date(this._localDate.value) : /* @__PURE__ */ new Date();
@@ -402,7 +406,7 @@ class Xe extends _e {
402
406
  return;
403
407
  }
404
408
  const t = new Date(e);
405
- if (Y(t)) {
409
+ if (Z(t)) {
406
410
  t.setUTCFullYear(t.getFullYear(), t.getMonth(), t.getDate());
407
411
  const i = t.toISOString().slice(0, 10);
408
412
  if (this._localDate.mutate(i), this.#n("localDate", i))
@@ -423,16 +427,16 @@ class Xe extends _e {
423
427
  this.manager.onLifecycle(() => [
424
428
  // When camera tracking is enabled, update the displayed timezone whenever the camera crosses into a new rounded
425
429
  // UTC offset.
426
- he(() => {
430
+ ge(() => {
427
431
  const e = this._view?.camera?.position;
428
- return e ? K(e) : void 0;
432
+ return e ? Q(e) : void 0;
429
433
  }, (e, t) => {
430
- this.#v(e, t);
434
+ this.#w(e, t);
431
435
  }, { sync: !0, initial: !0 }),
432
- ge(() => !p(this._lighting), () => {
436
+ ue(() => !p(this._lighting), () => {
433
437
  this._stopPlaying();
434
438
  }),
435
- pe.onLocaleChange(() => {
439
+ me.onLocaleChange(() => {
436
440
  this.requestUpdate();
437
441
  })
438
442
  ]), this.manager.onDisconnected(() => {
@@ -441,7 +445,7 @@ class Xe extends _e {
441
445
  }
442
446
  willUpdate(e) {
443
447
  if (super.willUpdate(e), !!this.#a && p(this._lighting) && e.has("utcOffset") && !e.has("localDate") && !e.has("timeSliderPosition")) {
444
- const t = this.utcOffset ?? 0, { minutesSinceMidnight: i, localDate: n } = P(this._lighting.date, t);
448
+ const t = this.utcOffset ?? 0, { minutesSinceMidnight: i, localDate: n } = D(this._lighting.date, t);
445
449
  this._timesliderPosition.mutate(i), this._localDate.mutate(n);
446
450
  }
447
451
  }
@@ -452,10 +456,10 @@ class Xe extends _e {
452
456
  remove: () => {
453
457
  e.abort();
454
458
  }
455
- })), await Se(ue(() => this._view?.ready, { signal: e.signal }).then(() => {
459
+ })), await De(pe(() => this._view?.ready, { signal: e.signal }).then(() => {
456
460
  const t = this._lighting, i = this._view?.camera?.position;
457
461
  if (this.#o.utcOffset == null && p(t) && t.displayUTCOffset == null && i) {
458
- const s = K(i);
462
+ const s = Q(i);
459
463
  this.#h(s, t);
460
464
  }
461
465
  this.#a = !0, this.#m();
@@ -463,7 +467,7 @@ class Xe extends _e {
463
467
  n !== "none" && this.#e == null && this._play(n);
464
468
  }));
465
469
  }
466
- #v(e, t) {
470
+ #w(e, t) {
467
471
  const i = this._lighting;
468
472
  if (!(!this.#a || !p(i) || !i.cameraTrackingEnabled || e == null)) {
469
473
  if (t == null && i.displayUTCOffset == null) {
@@ -474,8 +478,8 @@ class Xe extends _e {
474
478
  }
475
479
  }
476
480
  #h(e, t) {
477
- this._offset.mutate(e);
478
- const { minutesSinceMidnight: i, localDate: n } = P(t.date, e);
481
+ t.displayUTCOffset = e, this._offset.mutate(e);
482
+ const { minutesSinceMidnight: i, localDate: n } = D(t.date, e);
479
483
  this._timesliderPosition.mutate(i), this._localDate.mutate(n), this.requestUpdate();
480
484
  }
481
485
  _emitUserDateTimeChangeEvent() {
@@ -485,18 +489,18 @@ class Xe extends _e {
485
489
  this._playingState = "none";
486
490
  }
487
491
  #s;
488
- #w(e) {
492
+ #y(e) {
489
493
  if (this.#s)
490
494
  return;
491
495
  const t = setTimeout(() => {
492
- const i = e.displayUTCOffset ?? 0, n = e.date, { minutesSinceMidnight: s } = P(n, i);
496
+ const i = e.displayUTCOffset ?? 0, n = e.date, { minutesSinceMidnight: s } = D(n, i);
493
497
  this._timesliderPosition.mutate(s), this.#s?.remove();
494
498
  }, this.#p);
495
499
  this.#s = N(() => {
496
500
  clearTimeout(t), this.#s = void 0;
497
501
  const i = this._lighting;
498
502
  if (p(i)) {
499
- const n = i.displayUTCOffset ?? 0, s = i.date, { minutesSinceMidnight: o } = P(s, n);
503
+ const n = i.displayUTCOffset ?? 0, s = i.date, { minutesSinceMidnight: o } = D(s, n);
500
504
  this._timesliderPosition.mutate(o);
501
505
  }
502
506
  });
@@ -509,21 +513,22 @@ class Xe extends _e {
509
513
  const i = t.environment.lighting;
510
514
  if (!p(i))
511
515
  return;
516
+ this.#f(i);
512
517
  let n = 0;
513
- this.#e = Ze({
518
+ this.#e = We({
514
519
  mode: e,
515
520
  lighting: i,
516
521
  beforeProgress: () => {
517
- n = this.#b ?? 0;
522
+ n = this.#v ?? 0;
518
523
  },
519
524
  onProgress: (s, o) => {
520
- this._timesliderPosition.mutate(n), this.#w(o);
525
+ this._timesliderPosition.mutate(n), this.#y(o);
521
526
  },
522
527
  getPlaySpeed: () => {
523
528
  const s = this._view, o = this._view?.environment.lighting;
524
529
  if (s != null && p(o)) {
525
- const a = s.camera.position.latitude ?? 0, c = s.camera.position.longitude ?? 0, { sunrise: d, sunset: l } = qe(o.date, a, c, o.displayUTCOffset ?? 0);
526
- return We(d, l, o.date, Qe) * this.playSpeedMultiplier;
530
+ const a = s.camera.position.latitude ?? 0, c = s.camera.position.longitude ?? 0, { sunrise: d, sunset: l } = Ge(o.date, a, c, o.displayUTCOffset ?? 0);
531
+ return Ke(d, l, o.date, Xe) * this.playSpeedMultiplier;
527
532
  } else
528
533
  return U * this.playSpeedMultiplier;
529
534
  }
@@ -532,40 +537,40 @@ class Xe extends _e {
532
537
  render() {
533
538
  const { messages: e, dateOrSeason: t } = this, i = this._sunlightingDisabled, n = "m";
534
539
  if (!(this._view?.type === "3d"))
535
- return W({ class: "root", label: e.componentLabel, title: e.title, hideHeader: this.hideHeader, headingLevel: this.headingLevel, children: m`<div class="unsupported"><p>${e.unsupported}</p></div>` });
540
+ return K({ class: "root", label: e.componentLabel, title: e.title, hideHeader: this.hideHeader, headingLevel: this.headingLevel, children: m`<div class="unsupported"><p>${e.unsupported}</p></div>` });
536
541
  const o = (this.utcOffset ?? 0) * 60, a = this.view?.ready === !0, c = Array.isArray(this.timeSliderSteps) ? this.timeSliderSteps.at(0) : this.timeSliderSteps;
537
- return W({ class: { root: !0, loading: !a }, label: e.componentLabel, title: e.title, hideHeader: this.hideHeader, headingLevel: this.headingLevel, children: m`${a ? void 0 : m`<calcite-scrim loading></calcite-scrim>`}<div class="time-configuration" style=${V({ columnGap: this.hidePlayButtons ? "0" : void 0 })}><calcite-label class="slider-container" .scale=${n}>${e.timeSliderLabel}<arcgis-time-of-day-slider class="slider" .disabled=${this._sunlightingDisabled} mode=single .startTime=${this.timeSliderPosition ?? 0} .steps=${c} style=${V({ gridArea: "slider" })} @arcgisTimeChange=${({ currentTarget: d }) => {
542
+ return K({ class: { root: !0, loading: !a }, label: e.componentLabel, title: e.title, hideHeader: this.hideHeader, headingLevel: this.headingLevel, children: m`${a ? void 0 : m`<calcite-scrim loading></calcite-scrim>`}<div class="time-configuration" style=${V({ columnGap: this.hidePlayButtons ? "0" : void 0 })}><calcite-label class="slider-container" .scale=${n}>${e.timeSliderLabel}<arcgis-time-of-day-slider class="slider" .disabled=${this._sunlightingDisabled} mode=single .startTime=${this.timeSliderPosition ?? 0} .steps=${c} style=${V({ gridArea: "slider" })} @arcgisTimeChange=${({ currentTarget: d }) => {
538
543
  this._stopPlaying(), this._emitUserDateTimeChangeEvent(), this.timeSliderPosition = d.startTime;
539
- }} ${G(this.#g)}></arcgis-time-of-day-slider></calcite-label>${D({ hidden: this.hidePlayButtons, children: re({ disabled: this._sunlightingDisabled, playing: this.dayPlaying, label: e.playDay, onClick: () => {
544
+ }} ${G(this.#g)}></arcgis-time-of-day-slider></calcite-label>${T({ hidden: this.hidePlayButtons, children: ne({ disabled: this._sunlightingDisabled, playing: this.dayPlaying, label: e.playDay, onClick: () => {
540
545
  this._playingState === "day" ? this._stopPlaying() : this._playingState = "day";
541
- }, scale: n }) })}${D({ hidden: this.hideTimezone, children: m`<calcite-label .scale=${n} class="timezone-input-container">${e.timezone}<calcite-input-time-zone mode=offset overlay-positioning=fixed .scale=${n} .disabled=${this._sunlightingDisabled} .value=${`${o}`} .referenceDate=${this.localDateAsString} @calciteInputTimeZoneChange=${(d) => {
546
+ }, scale: n }) })}${T({ hidden: this.hideTimezone, children: m`<calcite-label .scale=${n} class="timezone-input-container">${e.timezone}<calcite-input-time-zone mode=offset overlay-positioning=fixed .scale=${n} .disabled=${this._sunlightingDisabled} .value=${`${o}`} .referenceDate=${this.localDateAsString} @calciteInputTimeZoneChange=${(d) => {
542
547
  const l = +d.target.value;
543
548
  this.utcOffset = l / 60, this._stopPlaying();
544
- }} ${G(this.#l)}></calcite-input-time-zone></calcite-label><span></span>` })}${D({ hidden: this.hideDatePicker, children: t === "date" ? this.#f({ scale: n, disabled: i }) : this.#_({ scale: n, disabled: i }) })}</div>${D({ hidden: this.hideSunLightingToggle, children: it({ scale: n, messages: e.sunLightingToggle, sunlightingEnabled: !this._sunlightingDisabled, onSunLightingToggle: (d) => {
549
+ }} ${G(this.#l)}></calcite-input-time-zone></calcite-label><span></span>` })}${T({ hidden: this.hideDatePicker, children: t === "date" ? this.#_({ scale: n, disabled: i }) : this.#b({ scale: n, disabled: i }) })}</div>${T({ hidden: this.hideSunLightingToggle, children: rt({ scale: n, messages: e.sunLightingToggle, sunlightingEnabled: !this._sunlightingDisabled, onSunLightingToggle: (d) => {
545
550
  this._sunlightingDisabled = !d;
546
- } }) })}${D({ hidden: this.hideShadowsToggle, children: rt({ scale: n, messages: e.shadowsToggle, onShadowCheckboxChange: (d) => {
551
+ } }) })}${T({ hidden: this.hideShadowsToggle, children: nt({ scale: n, messages: e.shadowsToggle, onShadowCheckboxChange: (d) => {
547
552
  this._directShadowsDisabled = !d;
548
553
  }, shadowEnabled: !this._directShadowsDisabled }) })}` });
549
554
  }
550
555
  }
551
- function re({ disabled: r, playing: e, onClick: t, label: i, scale: n = "m" }) {
556
+ function ne({ disabled: r, playing: e, onClick: t, label: i, scale: n = "m" }) {
552
557
  return m`<calcite-button appearance=solid .scale=${n} .disabled=${r} .iconStart=${e ? "pause-f" : "play-f"} .label=${i} @click=${t} round title=${i ?? J} type=button></calcite-button>`;
553
558
  }
554
- function et({ disabled: r, date: e, onDateChange: t, scale: i }) {
559
+ function tt({ disabled: r, date: e, onDateChange: t, scale: i }) {
555
560
  return m`<calcite-input-date-picker data-testid=daylight-date-picker .disabled=${r} overlay-positioning=fixed placement=bottom .value=${e} .scale=${i} @calciteInputDatePickerChange=${t}></calcite-input-date-picker>`;
556
561
  }
557
- function tt({ messages: r, disabled: e, scale: t, selectedSeason: i, onSeasonChange: n }) {
562
+ function it({ messages: r, disabled: e, scale: t, selectedSeason: i, onSeasonChange: n }) {
558
563
  return m`<calcite-select .disabled=${e} .label=${r.season} .scale=${t} .value=${i} @calciteSelectChange=${(s) => {
559
564
  n(s);
560
565
  }}>${F.map((s) => m`<calcite-option .selected=${i === s} .value=${s}>${r[s]}</calcite-option>`)}</calcite-select>`;
561
566
  }
562
- function it({ messages: r, sunlightingEnabled: e, onSunLightingToggle: t, scale: i }) {
567
+ function rt({ messages: r, sunlightingEnabled: e, onSunLightingToggle: t, scale: i }) {
563
568
  return m`<calcite-label layout=inline .scale=${i} title=${r?.tooltip ?? J}><calcite-checkbox .scale=${i} .checked=${e} @calciteCheckboxChange=${(n) => t(n.target.checked)}></calcite-checkbox>${r?.label}</calcite-label>`;
564
569
  }
565
- function rt({ messages: r, shadowEnabled: e, onShadowCheckboxChange: t, scale: i }) {
570
+ function nt({ messages: r, shadowEnabled: e, onShadowCheckboxChange: t, scale: i }) {
566
571
  return m`<calcite-label layout=inline .scale=${i} title=${r?.tooltip ?? J}><calcite-checkbox .checked=${e} @calciteCheckboxChange=${(n) => t(n.target.checked)}></calcite-checkbox>${r.label}</calcite-label>`;
567
572
  }
568
- de("arcgis-daylight", Xe);
573
+ he("arcgis-daylight", et);
569
574
  export {
570
- Xe as ArcgisDaylight
575
+ et as ArcgisDaylight
571
576
  };