react-semaphor 0.1.588 → 0.1.590

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 (40) hide show
  1. package/dist/analytics-protocol/index.js +2 -2
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +5 -5
  4. package/dist/briefings/index.js +1 -1
  5. package/dist/chunks/{assistant-chat-BeM6joPc.js → assistant-chat-C_6dBLUk.js} +9 -9
  6. package/dist/chunks/{bookmark-impact-B7pbMx2e.js → bookmark-impact-DkZABEd3.js} +1 -1
  7. package/dist/chunks/{card-filter-builder-DmodrhyI.js → card-filter-builder-6vflbF9O.js} +166 -166
  8. package/dist/chunks/{dashboard-Tu5wT0Cw.js → dashboard-DpgRl65K.js} +1 -1
  9. package/dist/chunks/{dashboard-briefing-launcher-D8jMxIJo.js → dashboard-briefing-launcher-BLbhONJz.js} +156 -156
  10. package/dist/chunks/{dashboard-controls-uzeAIEkM.js → dashboard-controls-kCTYEEsq.js} +45 -45
  11. package/dist/chunks/{dashboard-json-i5rpFNCg.js → dashboard-json-CNIFresY.js} +2 -2
  12. package/dist/chunks/{dates-BunbHJH0.js → dates-BoeweqEo.js} +4 -4
  13. package/dist/chunks/{edit-dashboard-visual-BpEK_Sls.js → edit-dashboard-visual-D0eWTlPL.js} +719 -719
  14. package/dist/chunks/{filter-reach-copy-D5AmDHda.js → filter-reach-copy-eMhDPTYH.js} +3 -3
  15. package/dist/chunks/{index-dGxJTaP1.js → index-D8LFjI8j.js} +1 -1
  16. package/dist/chunks/{layout-grid-XCYphks2.js → layout-grid-BG__sPkb.js} +1 -1
  17. package/dist/chunks/{list-filter-DGV3fqqv.js → list-filter-Cb8i7N8f.js} +1 -1
  18. package/dist/chunks/{matrix-analytical-definition-SN0JUJVk.js → matrix-analytical-definition-D9Ll_9R-.js} +202 -190
  19. package/dist/chunks/{paintbrush-DEEZXhDj.js → paintbrush-C310xSuR.js} +1 -1
  20. package/dist/chunks/{palette-Bgy0H-Nt.js → palette-Ci5P91Zb.js} +1 -1
  21. package/dist/chunks/report-preferences-dialog-dUlVLgEk.js +1637 -0
  22. package/dist/chunks/{resolve-dashboard-input-context-DFBIngUZ.js → resolve-dashboard-input-context-NurwNg4I.js} +1 -1
  23. package/dist/chunks/{save-xnRCvMeA.js → save-BhhXfp4s.js} +1 -1
  24. package/dist/chunks/{saved-dashboard-context-DKMTP9ib.js → saved-dashboard-context-CPp--vXU.js} +3 -3
  25. package/dist/chunks/{selection-filter-compiler-DkIjp1yH.js → selection-filter-compiler-CHG-8xnW.js} +1 -1
  26. package/dist/chunks/{semaphor-ready-indicator-zU9reNmX.js → semaphor-ready-indicator-CXojR95M.js} +27098 -26525
  27. package/dist/chunks/{shelf-drop-preview-context-R9sf4oDX.js → shelf-drop-preview-context-BDScAUdq.js} +109 -109
  28. package/dist/chunks/{stored-dashboard-CksluF2S.js → stored-dashboard-KkH4zOhq.js} +4 -4
  29. package/dist/chunks/{style-sheet-parts-D7NbsFL0.js → style-sheet-parts-CmXmKqGw.js} +30 -30
  30. package/dist/chunks/{upload-BXGgYS4g.js → upload-DDYc1Qjj.js} +1 -1
  31. package/dist/chunks/{variable-draft-rbtGPvmX.js → variable-draft-Bi3RlULA.js} +3 -3
  32. package/dist/dashboard/index.js +1 -1
  33. package/dist/dashboard-authoring/index.js +10 -10
  34. package/dist/index.js +210 -211
  35. package/dist/style.css +1 -1
  36. package/dist/surfboard/index.js +1 -1
  37. package/dist/types/lib/dashboard-view-state/date-zoom.d.ts +2 -2
  38. package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +7 -0
  39. package/package.json +1 -1
  40. package/dist/chunks/report-preferences-dialog-CTM0xfd0.js +0 -2028
@@ -1,7 +1,7 @@
1
- import { k as O, l as T, E as ye, m as ee, j as Q, q as ge } from "./raw-temporal-value-BnGCWJAL.js";
2
- import { am as C, ao as $, ag as W, ae as p, an as he, af as G, at as pe, ah as ve, a5 as w, I as V, o as ke } from "./validators-CrYXNnNE.js";
1
+ import { k as $, l as T, E as ge, m as te, j as K, q as he } from "./raw-temporal-value-BnGCWJAL.js";
2
+ import { am as C, ao as w, ag as G, ae as p, an as pe, af as M, at as ve, ah as J, a5 as Q, I as X, o as ke } from "./validators-CrYXNnNE.js";
3
3
  import { a as Ie } from "./metric-comparison-xE_J6hkg.js";
4
- class J extends Error {
4
+ class Y extends Error {
5
5
  constructor(t) {
6
6
  super(t), this.name = "RelativeDateUsageError";
7
7
  }
@@ -12,47 +12,47 @@ function Ne(e, t, n = {}) {
12
12
  const { calendar: a, now: r } = t;
13
13
  switch (e.kind) {
14
14
  case "periods": {
15
- const s = te(e, t);
15
+ const s = ne(e, t);
16
16
  return {
17
- start: Q(s, e.unit, a, e.from).start,
18
- end: e.toDate ? s : ne(s, e.unit, a, e.to)
17
+ start: K(s, e.unit, a, e.from).start,
18
+ end: e.toDate ? s : ie(s, e.unit, a, e.to)
19
19
  };
20
20
  }
21
21
  case "rolling": {
22
- const s = e.anchor === "latest_data" ? t.latestData ?? r : r, o = ye[e.unit];
22
+ const s = e.anchor === "latest_data" ? t.latestData ?? r : r, o = ge[e.unit];
23
23
  return {
24
- start: o === void 0 ? ee(s, -e.n, e.unit, a) : new Date(s.getTime() - e.n * o),
24
+ start: o === void 0 ? te(s, -e.n, e.unit, a) : new Date(s.getTime() - e.n * o),
25
25
  end: s
26
26
  };
27
27
  }
28
28
  case "monthDay": {
29
- const s = e.day === "first" ? O(r, "month", a) : T(r, "month", a);
30
- return { start: O(s, "day", a), end: T(s, "day", a) };
29
+ const s = e.day === "first" ? $(r, "month", a) : T(r, "month", a);
30
+ return { start: $(s, "day", a), end: T(s, "day", a) };
31
31
  }
32
32
  }
33
33
  }
34
- function te(e, t) {
34
+ function ne(e, t) {
35
35
  const { anchor: n } = e;
36
- return n === "latest_data" ? t.latestData ?? t.now : n === "now" ? t.now : new Date(O(t.now, n.lastComplete, t.calendar).getTime() - 1);
36
+ return n === "latest_data" ? t.latestData ?? t.now : n === "now" ? t.now : new Date($(t.now, n.lastComplete, t.calendar).getTime() - 1);
37
37
  }
38
- function ne(e, t, n, i) {
39
- return new Date(Q(e, t, n, i).endExclusive.getTime() - 1);
38
+ function ie(e, t, n, i) {
39
+ return new Date(K(e, t, n, i).endExclusive.getTime() - 1);
40
40
  }
41
41
  function Ce(e, t, n) {
42
42
  if (!Number.isInteger(n) || n < 0)
43
- throw new J(`spansBack must be a whole number of spans, got ${n}.`);
43
+ throw new Y(`spansBack must be a whole number of spans, got ${n}.`);
44
44
  if (e.kind !== "periods" || typeof e.anchor != "object")
45
- throw new J("spansBack applies only to a window anchored at the end of the last complete period.");
46
- const { calendar: i } = t, { unit: a } = e, r = Ne(e, t), s = -n * (e.to - e.from + 1), o = Q(r.start, a, i, s).start;
45
+ throw new Y("spansBack applies only to a window anchored at the end of the last complete period.");
46
+ const { calendar: i } = t, { unit: a } = e, r = Ne(e, t), s = -n * (e.to - e.from + 1), o = K(r.start, a, i, s).start;
47
47
  if (T(r.end, a, i).getTime() === r.end.getTime())
48
- return { start: o, end: ne(r.end, a, i, s) };
49
- const l = ee(te(e, t), s, a, i), c = Math.min(
50
- T(l, e.anchor.lastComplete, i).getTime(),
51
- T(l, a, i).getTime()
48
+ return { start: o, end: ie(r.end, a, i, s) };
49
+ const d = te(ne(e, t), s, a, i), c = Math.min(
50
+ T(d, e.anchor.lastComplete, i).getTime(),
51
+ T(d, a, i).getTime()
52
52
  );
53
53
  return { start: o, end: new Date(c) };
54
54
  }
55
- function ie(e) {
55
+ function ae(e) {
56
56
  return e.prefixLevels.length === 1 && e.prefixLevels[0] === "table" ? ["table"] : Array.from(
57
57
  /* @__PURE__ */ new Set([
58
58
  "database",
@@ -61,16 +61,16 @@ function ie(e) {
61
61
  );
62
62
  }
63
63
  function tt(e) {
64
- const t = e.source.connectionType ? C(e.source.connectionType) : void 0, n = e.source.dialect ? $(e.source.dialect) : void 0, i = e.source.dialect && e.source.dialect !== "unknown" ? C(e.source.dialect) : void 0;
64
+ const t = e.source.connectionType ? C(e.source.connectionType) : void 0, n = e.source.dialect ? w(e.source.dialect) : void 0, i = e.source.dialect && e.source.dialect !== "unknown" ? C(e.source.dialect) : void 0;
65
65
  if (!e.capabilities && e.source.connectionType && e.source.dialect && e.source.dialect !== "unknown" && (!t || n === "unknown" || t.dialect !== n))
66
66
  return { kind: "incompatible_capabilities" };
67
67
  const a = e.capabilities || t || i;
68
68
  if (!a) return { kind: "incompatible_capabilities" };
69
- const r = ie(a), s = {
69
+ const r = ae(a), s = {
70
70
  ...r.includes("database") && e.source.databaseName ? { databaseName: e.source.databaseName } : {},
71
71
  ...r.includes("schema") && e.source.schemaName ? { schemaName: e.source.schemaName } : {},
72
72
  ...e.source.tableName ? { tableName: e.source.tableName } : {}
73
- }, o = r.filter((l) => l === "database" ? !s.databaseName : l === "schema" ? !s.schemaName : !s.tableName);
73
+ }, o = r.filter((d) => d === "database" ? !s.databaseName : d === "schema" ? !s.schemaName : !s.tableName);
74
74
  return o.length > 0 ? { kind: "missing_coordinates", missing: o } : {
75
75
  kind: "resolved",
76
76
  coordinates: s
@@ -82,7 +82,7 @@ function f(e) {
82
82
  function D(e) {
83
83
  return e && typeof e == "object" && !Array.isArray(e) ? e : void 0;
84
84
  }
85
- function ae(e) {
85
+ function oe(e) {
86
86
  const t = D(e);
87
87
  return !t || !f(t.name) || t.type === "model" ? !1 : t.type === "dataset" ? t.datasetType === "physical" : !0;
88
88
  }
@@ -98,7 +98,7 @@ function q(e) {
98
98
  }
99
99
  function _e(e) {
100
100
  if (De(e)) return { kind: "malformed" };
101
- const t = e.entities.filter(ae), n = Se(e), i = Te({
101
+ const t = e.entities.filter(oe), n = Se(e), i = Te({
102
102
  entities: t,
103
103
  connectionType: e.connectionType,
104
104
  dialect: e.dialect,
@@ -113,8 +113,8 @@ function _e(e) {
113
113
  if (r.kind !== "valid")
114
114
  return { kind: r.kind };
115
115
  const s = r.coordinates, o = s ? t.filter(
116
- (c) => W({
117
- left: oe(
116
+ (c) => G({
117
+ left: se(
118
118
  q(c),
119
119
  a
120
120
  ),
@@ -130,7 +130,7 @@ function _e(e) {
130
130
  capabilityAuthority: i
131
131
  };
132
132
  if (s && o.length === 1) {
133
- const c = o[0], d = L(
133
+ const c = o[0], l = j(
134
134
  i,
135
135
  c
136
136
  );
@@ -141,32 +141,32 @@ function _e(e) {
141
141
  coordinates: He(
142
142
  q(c),
143
143
  s,
144
- d
144
+ l
145
145
  ),
146
- capabilityAuthority: d
146
+ capabilityAuthority: l
147
147
  };
148
148
  }
149
- const l = se([
149
+ const d = re([
150
150
  ...e.bareHints || [],
151
151
  ...r.bareHints,
152
152
  s == null ? void 0 : s.tableName
153
153
  ]);
154
- if (l.size > 0) {
155
- const c = o.filter((d) => {
156
- const m = Fe(d);
157
- return Array.from(l).some((y) => m.has(y));
154
+ if (d.size > 0) {
155
+ const c = o.filter((l) => {
156
+ const m = Fe(l);
157
+ return Array.from(d).some((y) => m.has(y));
158
158
  });
159
159
  if (c.length === 1) {
160
- const d = c[0], m = L(
160
+ const l = c[0], m = j(
161
161
  i,
162
- d
162
+ l
163
163
  );
164
164
  return {
165
165
  kind: "resolved",
166
166
  basis: "bare",
167
- entity: d,
167
+ entity: l,
168
168
  coordinates: F(
169
- q(d),
169
+ q(l),
170
170
  m
171
171
  ),
172
172
  capabilityAuthority: m
@@ -183,7 +183,7 @@ function _e(e) {
183
183
  capabilityAuthority: i
184
184
  };
185
185
  if (t.length === 1) {
186
- const c = t[0], d = L(
186
+ const c = t[0], l = j(
187
187
  i,
188
188
  c
189
189
  );
@@ -193,9 +193,9 @@ function _e(e) {
193
193
  entity: c,
194
194
  coordinates: F(
195
195
  q(c),
196
- d
196
+ l
197
197
  ),
198
- capabilityAuthority: d
198
+ capabilityAuthority: l
199
199
  };
200
200
  }
201
201
  return { kind: "unqualified" };
@@ -219,7 +219,7 @@ function B(e) {
219
219
  }
220
220
  function Te(e) {
221
221
  var k;
222
- const t = f(e.connectionType), n = f(e.dialect), i = e.capabilities ? B(e.capabilities) : void 0, a = t ? C(t) : void 0, r = n ? $(n) : void 0, s = n && n !== "unknown" ? C(n) : void 0;
222
+ const t = f(e.connectionType), n = f(e.dialect), i = e.capabilities ? B(e.capabilities) : void 0, a = t ? C(t) : void 0, r = n ? w(n) : void 0, s = n && n !== "unknown" ? C(n) : void 0;
223
223
  if (t && !a || n && n !== "unknown" && r === "unknown" || i && a && A(i) !== A(a))
224
224
  return;
225
225
  const o = i || (a ? B(a) : s ? B(s) : void 0);
@@ -230,27 +230,27 @@ function Te(e) {
230
230
  dialect: o.dialect,
231
231
  evidence: "explicit"
232
232
  };
233
- const l = e.entities.map((b) => {
234
- const I = D(b), h = f(I == null ? void 0 : I.connectionType), N = f(I == null ? void 0 : I.dialect), S = h ? C(h) : void 0, E = N ? $(N) : void 0, x = N && N !== "unknown" ? C(N) : void 0;
235
- if (h && !S || N && N !== "unknown" && E === "unknown" || N && N !== "unknown" && !S && !x || S && E && E !== "unknown" && S.dialect !== E)
233
+ const d = e.entities.map((b) => {
234
+ const I = D(b), h = f(I == null ? void 0 : I.connectionType), N = f(I == null ? void 0 : I.dialect), S = h ? C(h) : void 0, E = N ? w(N) : void 0, L = N && N !== "unknown" ? C(N) : void 0;
235
+ if (h && !S || N && N !== "unknown" && E === "unknown" || N && N !== "unknown" && !S && !L || S && E && E !== "unknown" && S.dialect !== E)
236
236
  return;
237
- const U = S || x, P = U ? B(U) : Ae(I);
237
+ const V = S || L, P = V ? B(V) : Ae(I);
238
238
  return P ? {
239
239
  capabilities: P,
240
240
  connectionType: h,
241
- capabilityIdentity: h ? he(h) : void 0,
242
- inferred: !S && !x,
241
+ capabilityIdentity: h ? pe(h) : void 0,
242
+ inferred: !S && !L,
243
243
  signature: A(P)
244
244
  } : void 0;
245
245
  });
246
- if (l.some((b) => !b)) return;
247
- const c = l.filter(
246
+ if (d.some((b) => !b)) return;
247
+ const c = d.filter(
248
248
  (b) => !!b
249
249
  );
250
250
  if (new Set(c.map((b) => b.signature)).size > 1)
251
251
  return;
252
- const d = (k = c[0]) == null ? void 0 : k.capabilities;
253
- if (!d || r && r !== "unknown" && d.dialect !== r)
252
+ const l = (k = c[0]) == null ? void 0 : k.capabilities;
253
+ if (!l || r && r !== "unknown" && l.dialect !== r)
254
254
  return;
255
255
  const m = new Set(
256
256
  c.map((b) => b.capabilityIdentity).filter((b) => !!b)
@@ -258,9 +258,9 @@ function Te(e) {
258
258
  (b) => b.connectionType && b.capabilityIdentity
259
259
  );
260
260
  return {
261
- capabilities: d,
261
+ capabilities: l,
262
262
  ...y && m.size === 1 ? { connectionType: c[0].connectionType } : {},
263
- dialect: d.dialect,
263
+ dialect: l.dialect,
264
264
  evidence: c.every((b) => b.inferred) ? "coordinates" : "entity"
265
265
  };
266
266
  }
@@ -273,7 +273,7 @@ function Ae(e) {
273
273
  return { dialect: "unknown", prefixLevels: ["database", "table"] };
274
274
  }
275
275
  }
276
- function L(e, t) {
276
+ function j(e, t) {
277
277
  var a;
278
278
  if (e.evidence !== "entity") return e;
279
279
  const n = f((a = D(t)) == null ? void 0 : a.connectionType), i = n ? C(n) : void 0;
@@ -306,7 +306,7 @@ function Ee(e) {
306
306
  const a = qe(e.coordinateHint);
307
307
  if (a.kind === "malformed") return a;
308
308
  const r = Array.from(new Set(n)).map(
309
- (m) => G({
309
+ (m) => M({
310
310
  qualifiedName: m,
311
311
  capabilities: t
312
312
  })
@@ -315,29 +315,29 @@ function Ee(e) {
315
315
  return { kind: "conflicting" };
316
316
  const s = [...new Set(n)].sort(
317
317
  (m, y) => y.split(".").length - m.split(".").length
318
- )[0], o = s ? G({
318
+ )[0], o = s ? M({
319
319
  qualifiedName: s,
320
320
  capabilities: t
321
- }) : void 0, l = oe(
321
+ }) : void 0, d = se(
322
322
  a.coordinates,
323
323
  t
324
324
  ), c = F(
325
325
  a.coordinates,
326
326
  e.capabilityAuthority
327
- ), d = !!(l.tableName && (l.databaseName || l.schemaName));
328
- return o && d && !W({
327
+ ), l = !!(d.tableName && (d.databaseName || d.schemaName));
328
+ return o && l && !G({
329
329
  left: o,
330
- right: l,
330
+ right: d,
331
331
  capabilities: t
332
332
  }) ? { kind: "conflicting" } : {
333
333
  kind: "valid",
334
334
  coordinates: o ? {
335
335
  ...c,
336
336
  ...o
337
- } : d ? c : void 0,
337
+ } : l ? c : void 0,
338
338
  bareHints: [
339
339
  ...i,
340
- ...!d && l.tableName ? [l.tableName] : []
340
+ ...!l && d.tableName ? [d.tableName] : []
341
341
  ]
342
342
  };
343
343
  }
@@ -352,7 +352,7 @@ function qe(e) {
352
352
  }
353
353
  return { kind: "valid", coordinates: t };
354
354
  }
355
- function oe(e, t) {
355
+ function se(e, t) {
356
356
  return {
357
357
  ...t.prefixLevels.includes("database") && e.databaseName ? { databaseName: e.databaseName } : {},
358
358
  ...t.prefixLevels.includes("schema") && e.schemaName ? { schemaName: e.schemaName } : {},
@@ -362,7 +362,7 @@ function oe(e, t) {
362
362
  function Be(e, t) {
363
363
  return e.every(
364
364
  (n, i) => e.slice(i + 1).every(
365
- (a) => W({
365
+ (a) => G({
366
366
  left: n,
367
367
  right: a,
368
368
  capabilities: t
@@ -370,14 +370,14 @@ function Be(e, t) {
370
370
  )
371
371
  );
372
372
  }
373
- function se(e) {
373
+ function re(e) {
374
374
  return new Set(
375
375
  e.map(f).map(p).filter((t) => !!t)
376
376
  );
377
377
  }
378
378
  function Fe(e) {
379
379
  const t = D(e);
380
- return t ? se([
380
+ return t ? re([
381
381
  f(t.name),
382
382
  f(t.table),
383
383
  f(t.id)
@@ -393,7 +393,7 @@ function He(e, t, n) {
393
393
  );
394
394
  }
395
395
  function F(e, t) {
396
- const n = t.evidence === "coordinates" ? t.capabilities.prefixLevels : ie(t.capabilities);
396
+ const n = t.evidence === "coordinates" ? t.capabilities.prefixLevels : ae(t.capabilities);
397
397
  return {
398
398
  ...n.includes("database") && e.databaseName ? { databaseName: e.databaseName } : {},
399
399
  ...n.includes("schema") && e.schemaName ? { schemaName: e.schemaName } : {},
@@ -410,11 +410,11 @@ function xe(e) {
410
410
  const t = _(e);
411
411
  return !!(t && t.type === "dataset" && u(t.name));
412
412
  }
413
- function re(e) {
413
+ function ce(e) {
414
414
  const t = _(e);
415
415
  return !!(t && t.type === "dataset" && t.datasetType !== "physical" && u(t.name));
416
416
  }
417
- function X(e) {
417
+ function Z(e) {
418
418
  const t = /* @__PURE__ */ new Set();
419
419
  for (const n of e) {
420
420
  const i = u(n);
@@ -428,15 +428,15 @@ function X(e) {
428
428
  }
429
429
  return t;
430
430
  }
431
- function Y(e) {
431
+ function H(e) {
432
432
  var n;
433
433
  const t = u(e);
434
434
  return t ? (n = p(t)) == null ? void 0 : n.toLowerCase() : void 0;
435
435
  }
436
- function j(e, t) {
436
+ function R(e, t) {
437
437
  const n = _(t), i = u(n == null ? void 0 : n.domainId) || u(e.semanticDomainId), a = u(n == null ? void 0 : n.name);
438
438
  if (!i || !a) return;
439
- const r = (n == null ? void 0 : n.datasetType) === "physical" ? void 0 : pe(n || {}), s = u(n == null ? void 0 : n.connectionId) || u(e.connectionId);
439
+ const r = (n == null ? void 0 : n.datasetType) === "physical" ? void 0 : ve(n || {}), s = u(n == null ? void 0 : n.connectionId) || u(e.connectionId);
440
440
  return {
441
441
  kind: "semantic",
442
442
  domainId: i,
@@ -445,43 +445,43 @@ function j(e, t) {
445
445
  ...s ? { connectionId: s } : {}
446
446
  };
447
447
  }
448
- function Pe(e, t = {}) {
448
+ function Le(e, t = {}) {
449
449
  const n = u(e.fieldEntityType);
450
450
  if (n && n !== "dataset")
451
451
  return { kind: "unqualified" };
452
452
  const i = e.entities.filter(
453
- (s) => t.includePhysicalDatasets ? xe(s) : re(s)
453
+ (s) => t.includePhysicalDatasets ? xe(s) : ce(s)
454
454
  ), a = u(e.entityId);
455
455
  if (a) {
456
- const s = Y(a), o = i.filter((l) => {
457
- const c = _(l);
458
- return !!(s && Y(c == null ? void 0 : c.id) === s);
456
+ const s = H(a), o = i.filter((d) => {
457
+ const c = _(d);
458
+ return !!(s && H(c == null ? void 0 : c.id) === s);
459
459
  });
460
460
  if (o.length > 1) return { kind: "ambiguous", basis: "bare" };
461
461
  if (o.length === 1) {
462
- const l = j(e, o[0]);
463
- return l ? {
462
+ const d = R(e, o[0]);
463
+ return d ? {
464
464
  kind: "resolved",
465
465
  basis: "bare",
466
466
  entity: o[0],
467
- source: l,
467
+ source: d,
468
468
  matchedById: !0
469
469
  } : { kind: "not_found", basis: "bare" };
470
470
  }
471
471
  }
472
- const r = X([
472
+ const r = Z([
473
473
  e.entityName,
474
474
  ...e.qualifiedHints || [],
475
475
  ...e.bareHints || []
476
476
  ]);
477
477
  if (r.size > 0) {
478
478
  const s = i.filter((o) => {
479
- const l = _(o);
480
- return [...X([l == null ? void 0 : l.id, l == null ? void 0 : l.name])].some((d) => r.has(d));
479
+ const d = _(o);
480
+ return [...Z([d == null ? void 0 : d.id, d == null ? void 0 : d.name])].some((l) => r.has(l));
481
481
  });
482
482
  if (s.length > 1) return { kind: "ambiguous", basis: "bare" };
483
483
  if (s.length === 1) {
484
- const o = j(e, s[0]);
484
+ const o = R(e, s[0]);
485
485
  return o ? {
486
486
  kind: "resolved",
487
487
  basis: "bare",
@@ -493,7 +493,7 @@ function Pe(e, t = {}) {
493
493
  return { kind: "not_found", basis: "bare" };
494
494
  }
495
495
  if (i.length === 1) {
496
- const s = j(e, i[0]);
496
+ const s = R(e, i[0]);
497
497
  return s ? {
498
498
  kind: "resolved",
499
499
  basis: "unqualified",
@@ -504,7 +504,7 @@ function Pe(e, t = {}) {
504
504
  }
505
505
  return { kind: "unqualified" };
506
506
  }
507
- function R(e) {
507
+ function O(e) {
508
508
  const t = e.resolution.kind === "resolved" ? _(e.resolution.entity) : void 0, n = u(e.connectionId) || u(t == null ? void 0 : t.connectionId), { connectionType: i, dialect: a } = e.resolution.capabilityAuthority, r = C(a), s = !!(r && r.dialect === e.resolution.capabilityAuthority.capabilities.dialect && r.prefixLevels.join(".") === e.resolution.capabilityAuthority.capabilities.prefixLevels.join(
509
509
  "."
510
510
  )), o = e.resolution.coordinates;
@@ -519,22 +519,33 @@ function R(e) {
519
519
  ...o.schemaName ? { schemaName: o.schemaName } : {}
520
520
  };
521
521
  }
522
- function Le(e) {
523
- const t = _(e.entity), n = p(u(t == null ? void 0 : t.table));
524
- if (!n) return !1;
525
- const i = p(
522
+ function Pe(e) {
523
+ if (!e.coordinates.tableName) return !1;
524
+ const t = _(e.entity), n = H(t == null ? void 0 : t.id), i = e.qualifiedHints.map(u).filter((l) => !!(l != null && l.includes(".")));
525
+ if (n && i.length > 0 && i.every((l) => H(l) === n))
526
+ return !0;
527
+ const a = p(u(t == null ? void 0 : t.table));
528
+ if (!a) return !1;
529
+ const r = p(
526
530
  u(t == null ? void 0 : t.database)
527
- ), a = p(
531
+ ), s = p(
528
532
  u(t == null ? void 0 : t.schema)
529
- );
530
- return e.coordinates.tableName ? ve({
533
+ ), { capabilities: o } = e.capabilityAuthority, d = {
534
+ ...r ? { databaseName: r } : {},
535
+ ...s ? { schemaName: s } : {},
536
+ tableName: a
537
+ };
538
+ return J({
531
539
  requested: e.coordinates,
532
- allowed: {
533
- ...i ? { databaseName: i } : {},
534
- ...a ? { schemaName: a } : {},
535
- tableName: n
536
- },
537
- capabilities: e.capabilityAuthority.capabilities
540
+ allowed: d,
541
+ capabilities: o
542
+ }) ? !0 : r && !o.prefixLevels.includes("database") || s && !o.prefixLevels.includes("schema") ? J({
543
+ requested: e.coordinates,
544
+ allowed: M({
545
+ qualifiedName: [r, s, a].filter(Boolean).join("."),
546
+ capabilities: o
547
+ }),
548
+ capabilities: o
538
549
  }) : !1;
539
550
  }
540
551
  function je(e) {
@@ -555,13 +566,13 @@ function je(e) {
555
566
  }
556
567
  function nt(e) {
557
568
  const t = e.entities.filter(
558
- ae
569
+ oe
559
570
  ), n = e.entities.filter(
560
- re
561
- ), i = t.length > 0 || n.length > 0, a = Pe(e), r = e.qualifiedHints || [], s = r.some(
571
+ ce
572
+ ), i = t.length > 0 || n.length > 0, a = Le(e), r = e.qualifiedHints || [], s = r.some(
562
573
  (c) => {
563
- var d;
564
- return (d = u(c)) == null ? void 0 : d.includes(".");
574
+ var l;
575
+ return (l = u(c)) == null ? void 0 : l.includes(".");
565
576
  }
566
577
  ), o = _e({
567
578
  entities: t,
@@ -575,7 +586,7 @@ function nt(e) {
575
586
  if (o.kind === "malformed" || o.kind === "conflicting" || o.kind === "incompatible_capabilities" && s || o.kind === "ambiguous" && o.basis === "qualified")
576
587
  return o;
577
588
  if (o.kind === "resolved" && o.basis === "qualified") {
578
- const c = R({
589
+ const c = O({
579
590
  resolution: o,
580
591
  connectionId: e.connectionId
581
592
  });
@@ -587,10 +598,11 @@ function nt(e) {
587
598
  } : { kind: "missing_connection" };
588
599
  }
589
600
  if (o.kind === "not_found" && o.basis === "qualified" && o.coordinates) {
590
- if (a.kind === "resolved" && a.matchedById && Le({
601
+ if (a.kind === "resolved" && a.matchedById && Pe({
591
602
  entity: a.entity,
592
603
  coordinates: o.coordinates,
593
- capabilityAuthority: o.capabilityAuthority
604
+ capabilityAuthority: o.capabilityAuthority,
605
+ qualifiedHints: r
594
606
  }))
595
607
  return {
596
608
  kind: "resolved",
@@ -598,7 +610,7 @@ function nt(e) {
598
610
  source: a.source,
599
611
  entity: a.entity
600
612
  };
601
- const c = R({
613
+ const c = O({
602
614
  resolution: o,
603
615
  connectionId: e.connectionId
604
616
  });
@@ -613,7 +625,7 @@ function nt(e) {
613
625
  };
614
626
  if (a.kind === "ambiguous") return a;
615
627
  if (o.kind === "resolved") {
616
- const c = R({
628
+ const c = O({
617
629
  resolution: o,
618
630
  connectionId: e.connectionId
619
631
  });
@@ -624,24 +636,24 @@ function nt(e) {
624
636
  entity: o.entity
625
637
  } : { kind: "missing_connection" };
626
638
  }
627
- const l = u(e.entityName) || u(e.entityId);
628
- if (!i && !s && u(e.semanticDomainId) && (!u(e.fieldEntityType) || u(e.fieldEntityType) === "dataset") && l)
639
+ const d = u(e.entityName) || u(e.entityId);
640
+ if (!i && !s && u(e.semanticDomainId) && (!u(e.fieldEntityType) || u(e.fieldEntityType) === "dataset") && d)
629
641
  return {
630
642
  kind: "resolved",
631
643
  basis: "historical",
632
644
  source: {
633
645
  kind: "semantic",
634
646
  domainId: u(e.semanticDomainId),
635
- datasetName: l,
647
+ datasetName: d,
636
648
  ...u(e.connectionId) ? { connectionId: u(e.connectionId) } : {}
637
649
  }
638
650
  };
639
651
  if (o.kind === "incompatible_capabilities") {
640
- const c = i ? void 0 : je(e), d = u(e.connectionId);
641
- return c && d ? {
652
+ const c = i ? void 0 : je(e), l = u(e.connectionId);
653
+ return c && l ? {
642
654
  kind: "resolved",
643
655
  basis: "historical",
644
- source: { kind: "physical", connectionId: d, tableName: c }
656
+ source: { kind: "physical", connectionId: l, tableName: c }
645
657
  } : o;
646
658
  }
647
659
  return o.kind === "ambiguous" ? o : o.kind === "not_found" ? {
@@ -649,13 +661,13 @@ function nt(e) {
649
661
  basis: o.basis
650
662
  } : { kind: "unqualified" };
651
663
  }
652
- const ce = "click-reach:";
664
+ const le = "click-reach:";
653
665
  function it(e, t) {
654
666
  const n = t.source.kind === "semantic" ? t.source.datasetName : t.source.tableName;
655
- return `${ce}${e}:${n}.${t.name}`;
667
+ return `${le}${e}:${n}.${t.name}`;
656
668
  }
657
669
  function at(e) {
658
- return typeof e == "string" && e.startsWith(ce);
670
+ return typeof e == "string" && e.startsWith(le);
659
671
  }
660
672
  function Re(e, t) {
661
673
  return Ie({ ...e, role: t });
@@ -681,25 +693,25 @@ function ot(e, t) {
681
693
  if (i !== -1) return { group: n, index: i };
682
694
  }
683
695
  }
684
- function le(e, t) {
696
+ function de(e, t) {
685
697
  const n = e.split(".").map((o) => o.trim()), i = t.split(".").map((o) => o.trim());
686
698
  if (n.length === 0 || i.length === 0 || n.some((o) => !o) || i.some((o) => !o))
687
699
  return !1;
688
700
  const [a, r] = n.length <= i.length ? [n, i] : [i, n], s = r.length - a.length;
689
- return a.every((o, l) => o === r[l + s]);
701
+ return a.every((o, d) => o === r[d + s]);
690
702
  }
691
- function ze(e, t) {
703
+ function Oe(e, t) {
692
704
  const n = e.split("."), i = t.split("."), a = n.pop(), r = i.pop();
693
- return !!(a && a === r && n.length > 0 && i.length > 0 && le(
705
+ return !!(a && a === r && n.length > 0 && i.length > 0 && de(
694
706
  n.join("."),
695
707
  i.join(".")
696
708
  ));
697
709
  }
698
- function Oe(e) {
710
+ function ze(e) {
699
711
  const t = e.map((i) => i.trim()).filter(Boolean);
700
712
  if (t.every(
701
713
  (i, a) => t.slice(a + 1).every(
702
- (r) => le(i, r)
714
+ (r) => de(i, r)
703
715
  )
704
716
  ))
705
717
  return [...t].sort(
@@ -709,12 +721,12 @@ function Oe(e) {
709
721
  function v(e) {
710
722
  return typeof e == "object" && e !== null && !Array.isArray(e);
711
723
  }
712
- function Z(e) {
724
+ function ee(e) {
713
725
  if (typeof e != "string") return "";
714
726
  const t = e.split(".").map((n) => n.trim());
715
727
  return t.length > 1 && t.every(Boolean) ? t.join(".") : "";
716
728
  }
717
- function M(e) {
729
+ function W(e) {
718
730
  if (typeof e != "string") return "";
719
731
  const t = e.split(".").map((n) => n.trim());
720
732
  return t.length > 0 && t.every(Boolean) ? t.join(".") : "";
@@ -738,7 +750,7 @@ function Me(e) {
738
750
  if (!!!(i || a.length > 0 || (n == null ? void 0 : n.entityType) === "dataset")) return;
739
751
  if (!i)
740
752
  return { status: "unresolved", reason: "incomplete_source_identity" };
741
- const s = g(n == null ? void 0 : n.entityId), o = g(n == null ? void 0 : n.entityName), l = !!(s || o), c = l ? a.filter(
753
+ const s = g(n == null ? void 0 : n.entityId), o = g(n == null ? void 0 : n.entityName), d = !!(s || o), c = d ? a.filter(
742
754
  (h) => we(h, {
743
755
  entityId: s,
744
756
  entityName: o
@@ -746,9 +758,9 @@ function Me(e) {
746
758
  ) : a;
747
759
  if (c.length > 1)
748
760
  return { status: "unresolved", reason: "incomplete_source_identity" };
749
- if (l && a.length > 0 && c.length === 0)
761
+ if (d && a.length > 0 && c.length === 0)
750
762
  return { status: "unresolved", reason: "divergent_source_identity" };
751
- const d = c[0], m = g(d == null ? void 0 : d.domainId), y = g(d == null ? void 0 : d.id), k = g(d == null ? void 0 : d.name);
763
+ const l = c[0], m = g(l == null ? void 0 : l.domainId), y = g(l == null ? void 0 : l.id), k = g(l == null ? void 0 : l.name);
752
764
  if (m && m !== i)
753
765
  return { status: "unresolved", reason: "divergent_source_identity" };
754
766
  const b = y, I = k || o;
@@ -766,34 +778,34 @@ function Qe(e, t) {
766
778
  const n = g(e.connectionId), i = v(e.semanticContext) ? e.semanticContext : void 0, a = g(i == null ? void 0 : i.connectionId);
767
779
  if (n && a && n !== a)
768
780
  return { status: "unresolved", reason: "divergent_source_identity" };
769
- const r = n || a, s = v(e.fieldMeta) ? e.fieldMeta : void 0, o = t.split(".").slice(0, -1).join("."), l = M(e.qualifiedTableName), c = M(
781
+ const r = n || a, s = v(e.fieldMeta) ? e.fieldMeta : void 0, o = t.split(".").slice(0, -1).join("."), d = W(e.qualifiedTableName), c = W(
770
782
  s == null ? void 0 : s.qualifiedEntityName
771
- ), d = [
772
- l,
783
+ ), l = [
784
+ d,
773
785
  c,
774
786
  o
775
- ].filter(Boolean), m = Oe(d);
776
- return !m && d.length > 0 ? { status: "unresolved", reason: "divergent_source_identity" } : !r || !m ? { status: "unresolved", reason: "incomplete_source_identity" } : {
787
+ ].filter(Boolean), m = ze(l);
788
+ return !m && l.length > 0 ? { status: "unresolved", reason: "divergent_source_identity" } : !r || !m ? { status: "unresolved", reason: "incomplete_source_identity" } : {
777
789
  status: "resolved",
778
790
  source: { kind: "physical", connectionId: r, tableName: m }
779
791
  };
780
792
  }
781
793
  function We(e, t) {
782
- const n = v(e.fieldMeta) ? e.fieldMeta : void 0, i = typeof (n == null ? void 0 : n.qualifiedFieldName) == "string" ? n.qualifiedFieldName.trim() : "", a = Z(
794
+ const n = v(e.fieldMeta) ? e.fieldMeta : void 0, i = typeof (n == null ? void 0 : n.qualifiedFieldName) == "string" ? n.qualifiedFieldName.trim() : "", a = ee(
783
795
  n == null ? void 0 : n.qualifiedFieldName
784
- ), r = typeof e.column == "string" ? e.column.trim() : "", s = Z(r), o = typeof e.qualifiedTableName == "string" ? e.qualifiedTableName.trim() : "", l = M(
796
+ ), r = typeof e.column == "string" ? e.column.trim() : "", s = ee(r), o = typeof e.qualifiedTableName == "string" ? e.qualifiedTableName.trim() : "", d = W(
785
797
  e.qualifiedTableName
786
798
  );
787
- if (i && !a || t && o && !l || r.includes(".") && !s)
799
+ if (i && !a || t && o && !d || r.includes(".") && !s)
788
800
  return { status: "unresolved", reason: "incomplete_field_identity" };
789
- const c = s.split("."), d = s ? c[c.length - 1] : r, m = t && l && d ? `${l}.${d}` : "", y = [
801
+ const c = s.split("."), l = s ? c[c.length - 1] : r, m = t && d && l ? `${d}.${l}` : "", y = [
790
802
  a,
791
803
  s,
792
804
  m
793
805
  ].filter(Boolean);
794
806
  if (!$e(
795
807
  y,
796
- ze
808
+ Oe
797
809
  ))
798
810
  return { status: "unresolved", reason: "divergent_field_identity" };
799
811
  const k = s || a || m;
@@ -804,10 +816,10 @@ function Ke(e) {
804
816
  return { status: "ineligible", reason: "invalid_input" };
805
817
  if (e.kind === "global-date")
806
818
  return { status: "eligible", kind: "global_date" };
807
- const t = w(e.dataType);
819
+ const t = Q(e.dataType);
808
820
  if (t !== "date" && t !== "datetime")
809
821
  return { status: "ineligible", reason: "non_date_filter" };
810
- const n = v(e.fieldMeta) ? e.fieldMeta : void 0, i = w(
822
+ const n = v(e.fieldMeta) ? e.fieldMeta : void 0, i = Q(
811
823
  n == null ? void 0 : n.dataType
812
824
  );
813
825
  if ((n == null ? void 0 : n.dataType) !== void 0 && i !== "date" && i !== "datetime")
@@ -827,7 +839,7 @@ function Ke(e) {
827
839
  source: s.source
828
840
  } : { status: "ineligible", reason: s.reason };
829
841
  }
830
- function Ue(e) {
842
+ function Ge(e) {
831
843
  if (!v(e) || e.kind !== "filter" || !v(e.filter))
832
844
  return { status: "ineligible", reason: "invalid_input" };
833
845
  const t = Ke(
@@ -836,7 +848,7 @@ function Ue(e) {
836
848
  return t.status === "ineligible" ? t : t.kind === "field_date" && v(e.compatibility) && e.compatibility.source === "cardInlineFilter" ? { status: "ineligible", reason: "card_inline_filter" } : t;
837
849
  }
838
850
  function st(e) {
839
- return Ue(e).status === "eligible";
851
+ return Ge(e).status === "eligible";
840
852
  }
841
853
  function rt(e) {
842
854
  return `compat-filter:${e}`;
@@ -850,13 +862,13 @@ function lt(e, t) {
850
862
  function dt(e, t) {
851
863
  return `compat-card-control:${e}:${t}`;
852
864
  }
853
- function de(e, t) {
865
+ function ue(e, t) {
854
866
  if (e) return e;
855
- const n = t === void 0 ? "unknown" : w(t);
867
+ const n = t === void 0 ? "unknown" : Q(t);
856
868
  return n === "number" || n === "unknown" ? "SUM" : "COUNT";
857
869
  }
858
- function Ge(e) {
859
- const t = e.aggregate === de(e.semanticAggregate, e.dataType);
870
+ function Ue(e) {
871
+ const t = e.aggregate === ue(e.semanticAggregate, e.dataType);
860
872
  return {
861
873
  effectiveAggregate: e.aggregate,
862
874
  aggregateSource: t ? e.semanticAggregate ? "semantic_model" : "default_sum" : "caller_override"
@@ -867,7 +879,7 @@ function Ve(e, t, n) {
867
879
  return {
868
880
  aggregate: t,
869
881
  aggregateOrigin: n,
870
- ...i ? Ge({ aggregate: t, semanticAggregate: e.semanticAggregate, dataType: e.dataType }) : {}
882
+ ...i ? Ue({ aggregate: t, semanticAggregate: e.semanticAggregate, dataType: e.dataType }) : {}
871
883
  };
872
884
  }
873
885
  function ut(e, t, n) {
@@ -880,7 +892,7 @@ function mt(e) {
880
892
  if (!e.aggregate) return !1;
881
893
  if (e.aggregateOrigin === "explicit" || e.aggregateSource === "caller_override") return !0;
882
894
  if (e.aggregateSource) {
883
- const t = e.aggregateSource === "default_sum" ? de(void 0, e.dataType) : e.semanticAggregate ?? e.effectiveAggregate;
895
+ const t = e.aggregateSource === "default_sum" ? ue(void 0, e.dataType) : e.semanticAggregate ?? e.effectiveAggregate;
884
896
  return t !== void 0 && e.aggregate !== t;
885
897
  }
886
898
  return e.aggregateOrigin !== "default";
@@ -908,7 +920,7 @@ const vt = /* @__PURE__ */ new Set([
908
920
  "like",
909
921
  "not like"
910
922
  ]);
911
- function ue(e) {
923
+ function fe(e) {
912
924
  return e.includes("%") || e.includes("_");
913
925
  }
914
926
  function Je(e, t) {
@@ -926,10 +938,10 @@ function Je(e, t) {
926
938
  }
927
939
  }
928
940
  function Xe(e) {
929
- return ue(e) ? e : `%${e}%`;
941
+ return fe(e) ? e : `%${e}%`;
930
942
  }
931
943
  function kt(e, t) {
932
- const { pattern: n, negate: i } = Je(e, t), a = n.length > 2 && n.startsWith("%") && n.endsWith("%") ? n.slice(1, -1) : void 0, r = a !== void 0 && !ue(a) ? a : n;
944
+ const { pattern: n, negate: i } = Je(e, t), a = n.length > 2 && n.startsWith("%") && n.endsWith("%") ? n.slice(1, -1) : void 0, r = a !== void 0 && !fe(a) ? a : n;
933
945
  if (Xe(r) === n)
934
946
  return { operator: i ? "not_contains" : "contains", value: r };
935
947
  }
@@ -940,20 +952,20 @@ function It(e) {
940
952
  const a = Array.isArray(n) ? n : [n];
941
953
  if (a.length !== 1 || typeof a[0] != "string") return null;
942
954
  const r = a[0].trim();
943
- return ge(r) ? { operation: t, day: r } : null;
955
+ return he(r) ? { operation: t, day: r } : null;
944
956
  }
945
- function fe(e) {
957
+ function me(e) {
946
958
  const { label: t, ...n } = e;
947
959
  return {
948
960
  dataset: ke(n),
949
961
  ...e.kind === "physical" ? { dialect: e.dialect, connectionType: e.connectionType } : {}
950
962
  };
951
963
  }
952
- function me(e) {
964
+ function be(e) {
953
965
  const { label: t, source: n, ...i } = e;
954
- return { ...i, source: n && fe(n) };
966
+ return { ...i, source: n && me(n) };
955
967
  }
956
- function K(e) {
968
+ function U(e) {
957
969
  const {
958
970
  label: t,
959
971
  format: n,
@@ -965,9 +977,9 @@ function K(e) {
965
977
  return {
966
978
  ...s,
967
979
  inputs: Object.fromEntries(
968
- Object.entries(r).map(([o, l]) => [
980
+ Object.entries(r).map(([o, d]) => [
969
981
  o,
970
- { ...l, field: me(l.field) }
982
+ { ...d, field: be(d.field) }
971
983
  ])
972
984
  )
973
985
  };
@@ -975,11 +987,11 @@ function K(e) {
975
987
  function z(e) {
976
988
  const { derivedField: t, ...n } = e;
977
989
  return {
978
- ...me(n),
979
- derivedField: t && K(t)
990
+ ...be(n),
991
+ derivedField: t && U(t)
980
992
  };
981
993
  }
982
- function H(e) {
994
+ function x(e) {
983
995
  const {
984
996
  label: t,
985
997
  format: n,
@@ -994,29 +1006,29 @@ function H(e) {
994
1006
  semanticTemporalPresentation: a && {
995
1007
  granularity: a.granularity
996
1008
  },
997
- derivedField: r && K(r),
1009
+ derivedField: r && U(r),
998
1010
  calculatedFormula: s && {
999
1011
  ...s,
1000
- inputFields: s.inputFields.map(H)
1012
+ inputFields: s.inputFields.map(x)
1001
1013
  }
1002
1014
  };
1003
1015
  }
1004
- function be(e) {
1016
+ function ye(e) {
1005
1017
  return {
1006
1018
  ...e,
1007
1019
  conditions: e.conditions.map(
1008
1020
  ({ label: t, field: n, ...i }) => ({
1009
1021
  ...i,
1010
- field: H(n)
1022
+ field: x(n)
1011
1023
  })
1012
1024
  ),
1013
- groups: e.groups.map(be)
1025
+ groups: e.groups.map(ye)
1014
1026
  };
1015
1027
  }
1016
1028
  function Nt(e) {
1017
1029
  return {
1018
1030
  ...e,
1019
- source: fe(e.source),
1031
+ source: me(e.source),
1020
1032
  rows: e.rows.map((t) => ({
1021
1033
  ...t,
1022
1034
  field: z(t.field)
@@ -1028,10 +1040,10 @@ function Nt(e) {
1028
1040
  measures: e.measures.map(
1029
1041
  (t) => t.kind === "aggregate" ? { ...t, field: z(t.field) } : {
1030
1042
  ...t,
1031
- definition: K(t.definition)
1043
+ definition: U(t.definition)
1032
1044
  }
1033
1045
  ),
1034
- filters: e.filters && be(e.filters),
1046
+ filters: e.filters && ye(e.filters),
1035
1047
  joinPlan: e.joinPlan && {
1036
1048
  ...e.joinPlan,
1037
1049
  // relationshipName participates in governed relationship resolution.
@@ -1041,15 +1053,15 @@ function Nt(e) {
1041
1053
  ...n,
1042
1054
  keys: n.keys.map((i) => ({
1043
1055
  ...i,
1044
- source: H(i.source),
1045
- target: H(i.target)
1056
+ source: x(i.source),
1057
+ target: x(i.target)
1046
1058
  }))
1047
1059
  }))
1048
1060
  }))
1049
1061
  },
1050
1062
  // Sort scopes are keyed overrides, unlike ordered axes/calculation inputs.
1051
1063
  sorts: [...e.sorts].sort((t, n) => {
1052
- const i = V(t), a = V(n);
1064
+ const i = X(t), a = X(n);
1053
1065
  return i < a ? -1 : i > a ? 1 : 0;
1054
1066
  })
1055
1067
  };
@@ -1061,23 +1073,23 @@ export {
1061
1073
  yt as D,
1062
1074
  gt as E,
1063
1075
  pt as F,
1064
- ue as G,
1076
+ fe as G,
1065
1077
  Je as H,
1066
1078
  Xe as I,
1067
1079
  kt as J,
1068
1080
  It as K,
1069
- le as L,
1070
- Oe as M,
1071
- K as N,
1072
- ze as O,
1073
- J as R,
1081
+ de as L,
1082
+ ze as M,
1083
+ U as N,
1084
+ Oe as O,
1085
+ Y as R,
1074
1086
  vt as S,
1075
1087
  Nt as a,
1076
- ie as b,
1077
- ae as c,
1088
+ ae as b,
1089
+ oe as c,
1078
1090
  _e as d,
1079
- re as e,
1080
- Pe as f,
1091
+ ce as e,
1092
+ Le as f,
1081
1093
  ht as g,
1082
1094
  nt as h,
1083
1095
  at as i,
@@ -1086,7 +1098,7 @@ export {
1086
1098
  we as l,
1087
1099
  Ve as m,
1088
1100
  Ke as n,
1089
- Ue as o,
1101
+ Ge as o,
1090
1102
  st as p,
1091
1103
  rt as q,
1092
1104
  tt as r,
@@ -1095,7 +1107,7 @@ export {
1095
1107
  lt as u,
1096
1108
  dt as v,
1097
1109
  Ne as w,
1098
- de as x,
1099
- Ge as y,
1110
+ ue as x,
1111
+ Ue as y,
1100
1112
  ut as z
1101
1113
  };