@holistics/cli-core 2.2.0 → 2.2.2

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 (2) hide show
  1. package/dist/commands.js +101 -83
  2. package/package.json +1 -1
package/dist/commands.js CHANGED
@@ -27399,7 +27399,7 @@ var require_dist3 = __commonJS((exports2) => {
27399
27399
  exports2.default = deferred;
27400
27400
  });
27401
27401
  // package.json
27402
- var version = "2.2.0";
27402
+ var version = "2.2.2";
27403
27403
 
27404
27404
  // ../../node_modules/.pnpm/@commander-js+extra-typings@13.1.0_commander@13.1.0/node_modules/@commander-js/extra-typings/esm.mjs
27405
27405
  var import__ = __toESM(require_extra_typings(), 1);
@@ -65142,7 +65142,7 @@ Type GoToUrlAction {
65142
65142
 
65143
65143
  Type VizAction = GoToUrlAction
65144
65144
  ` };
65145
- function qe3(e) {
65145
+ function Ne3(e) {
65146
65146
  return e?.replace(/::/g, ".");
65147
65147
  }
65148
65148
  function xl2(e) {
@@ -65150,7 +65150,7 @@ function xl2(e) {
65150
65150
  throw new Error("Expect an object");
65151
65151
  return {
65152
65152
  id: e.id,
65153
- name: qe3(e.__fqn__ || e.uname || e.name) ?? "",
65153
+ name: Ne3(e.__fqn__ || e.uname || e.name) ?? "",
65154
65154
  label: e.label || e.title,
65155
65155
  data_models: (e.data_models || e.dataModels || []).map((t) => {
65156
65156
  const n = t.dimensions ?? [], o = t.measures ?? [], r3 = t.params ?? [], i2 = t.fields ?? [].concat(n).concat(o).concat(r3);
@@ -65178,7 +65178,7 @@ function xl2(e) {
65178
65178
  };
65179
65179
  }
65180
65180
  function Cm2(e) {
65181
- return typeof e == "string" ? e : qe3(e.__fqn__ || e.name);
65181
+ return typeof e == "string" ? e : Ne3(e.__fqn__ || e.name);
65182
65182
  }
65183
65183
  function Pm2(e, t) {
65184
65184
  const n = Cm2(t);
@@ -67071,7 +67071,7 @@ function vb2(e) {
67071
67071
  return { color: e };
67072
67072
  if (e.__type__ === "LabeledColor")
67073
67073
  return import_lodash.omitBy({
67074
- _id: e.__fqn__ ? qe3(e.__fqn__) : undefined,
67074
+ _id: e.__fqn__ ? Ne3(e.__fqn__) : undefined,
67075
67075
  label: e.label,
67076
67076
  color: e.color
67077
67077
  }, import_lodash.isUndefined);
@@ -67082,20 +67082,20 @@ function wb2(e) {
67082
67082
  return;
67083
67083
  const t = Array.isArray(e.colors) ? e.colors.map((n) => vb2(n)).filter(Boolean) : [];
67084
67084
  return {
67085
- ...e.__fqn__ && { _id: qe3(e.__fqn__) },
67085
+ ...e.__fqn__ && { _id: Ne3(e.__fqn__) },
67086
67086
  colors: t
67087
67087
  };
67088
67088
  }
67089
67089
  function Wm2(e = {}) {
67090
67090
  return import_lodash.omitBy({
67091
- _id: qe3(e.__fqn__),
67091
+ _id: Ne3(e.__fqn__),
67092
67092
  title: e.title,
67093
67093
  categorical: wb2(e.categorical)
67094
67094
  }, import_lodash.isUndefined);
67095
67095
  }
67096
67096
  function Bl2(e) {
67097
67097
  if (!import_lodash.isNil(e))
67098
- return e.__fqn__ ? qe3(e.__fqn__) : Wm2(e);
67098
+ return e.__fqn__ ? Ne3(e.__fqn__) : Wm2(e);
67099
67099
  }
67100
67100
  var Fl2 = {
67101
67101
  "pastel-1": -1,
@@ -75167,7 +75167,7 @@ function DS2(e, t) {
75167
75167
  function Fh2(e) {
75168
75168
  if (!import_lodash.isNil(e))
75169
75169
  return import_lodash.omitBy({
75170
- _id: qe3(e.__fqn__),
75170
+ _id: Ne3(e.__fqn__),
75171
75171
  data: Bl2(e.data)
75172
75172
  }, import_lodash.isUndefined);
75173
75173
  }
@@ -75198,7 +75198,7 @@ function tc2(e) {
75198
75198
  };
75199
75199
  }
75200
75200
  return {
75201
- _id: qe3(e.__fqn__),
75201
+ _id: Ne3(e.__fqn__),
75202
75202
  top: At3(e.top),
75203
75203
  left: At3(e.left),
75204
75204
  bottom: At3(e.bottom),
@@ -75218,7 +75218,7 @@ function BS2(e) {
75218
75218
  };
75219
75219
  }
75220
75220
  return {
75221
- _id: qe3(e.__fqn__),
75221
+ _id: Ne3(e.__fqn__),
75222
75222
  top_left: At3(e.top_left),
75223
75223
  top_right: At3(e.top_right),
75224
75224
  bottom_left: At3(e.bottom_left),
@@ -75234,7 +75234,7 @@ function co2(e, t) {
75234
75234
  t[e.font_family] = e.font_source;
75235
75235
  }
75236
75236
  return import_lodash.omitBy({
75237
- _id: qe3(e.__fqn__),
75237
+ _id: Ne3(e.__fqn__),
75238
75238
  font_family: e.font_family,
75239
75239
  font_source: e.font_source,
75240
75240
  font_size: Lt3(e.font_size),
@@ -75258,7 +75258,7 @@ var Mh2 = {
75258
75258
  function fo2(e) {
75259
75259
  if (!import_lodash.isNil(e))
75260
75260
  return import_lodash.omitBy({
75261
- _id: qe3(e.__fqn__),
75261
+ _id: Ne3(e.__fqn__),
75262
75262
  bg_color: e.bg_color,
75263
75263
  bg_image: e.bg_image,
75264
75264
  bg_repeat: Mh2[String(e.bg_repeat)],
@@ -75268,7 +75268,7 @@ function fo2(e) {
75268
75268
  function zh2(e) {
75269
75269
  if (!import_lodash.isNil(e))
75270
75270
  return import_lodash.omitBy({
75271
- _id: qe3(e.__fqn__),
75271
+ _id: Ne3(e.__fqn__),
75272
75272
  border_width: tc2(e.border_width),
75273
75273
  border_radius: BS2(e.border_radius),
75274
75274
  border_color: e.border_color,
@@ -75278,7 +75278,7 @@ function zh2(e) {
75278
75278
  function FS2(e) {
75279
75279
  if (!import_lodash.isNil(e))
75280
75280
  return import_lodash.omitBy({
75281
- _id: qe3(e.__fqn__),
75281
+ _id: Ne3(e.__fqn__),
75282
75282
  outer: !!e.outer,
75283
75283
  vertical: !!e.vertical,
75284
75284
  horizontal: !!e.horizontal,
@@ -75336,7 +75336,7 @@ function MS2(e) {
75336
75336
  line: import_lodash.isEmpty(g2) ? undefined : g2,
75337
75337
  column: import_lodash.isEmpty(A) ? undefined : A
75338
75338
  }, import_lodash.isUndefined), v2 = {
75339
- _id: qe3(e.__fqn__),
75339
+ _id: Ne3(e.__fqn__),
75340
75340
  general: l,
75341
75341
  border: c2,
75342
75342
  header: u,
@@ -75351,7 +75351,7 @@ function MS2(e) {
75351
75351
  function En3(e, t) {
75352
75352
  if (!import_lodash.isNil(e))
75353
75353
  return import_lodash.omitBy({
75354
- _id: qe3(e.__fqn__),
75354
+ _id: Ne3(e.__fqn__),
75355
75355
  label: co2(e.label, t),
75356
75356
  text: co2(e.text, t),
75357
75357
  border: zh2(e.border),
@@ -75364,7 +75364,7 @@ function En3(e, t) {
75364
75364
  function Ih2(e) {
75365
75365
  if (!import_lodash.isNil(e))
75366
75366
  return import_lodash.omitBy({
75367
- _id: qe3(e.__fqn__),
75367
+ _id: Ne3(e.__fqn__),
75368
75368
  border: zh2(e.border),
75369
75369
  background: fo2(e.background),
75370
75370
  shadow: e.shadow,
@@ -75391,7 +75391,7 @@ function zS2(e, t) {
75391
75391
  neutral: fs10(r3.neutral, t)
75392
75392
  }, import_lodash.isEmpty) : undefined;
75393
75393
  return import_lodash.omitBy({
75394
- _id: qe3(e.__fqn__),
75394
+ _id: Ne3(e.__fqn__),
75395
75395
  alignment: e.alignment,
75396
75396
  label: co2(e.label, t),
75397
75397
  value: co2(e.value, t),
@@ -75402,7 +75402,7 @@ function zS2(e, t) {
75402
75402
  function Oh2(e, t) {
75403
75403
  if (!import_lodash.isNil(e))
75404
75404
  return import_lodash.omitBy({
75405
- _id: qe3(e.__fqn__),
75405
+ _id: Ne3(e.__fqn__),
75406
75406
  color: Fh2(e.color),
75407
75407
  table: MS2(e.table),
75408
75408
  metric_kpi: zS2(e.metric_kpi, t)
@@ -75423,7 +75423,7 @@ function IS2(e, t) {
75423
75423
  `), `.${uy2}`).trim();
75424
75424
  if (!(!t && !o))
75425
75425
  return import_lodash.omitBy({
75426
- _id: qe3(t?.__fqn__),
75426
+ _id: Ne3(t?.__fqn__),
75427
75427
  original: t?.content,
75428
75428
  final: o
75429
75429
  }, import_lodash.isUndefined);
@@ -75433,7 +75433,7 @@ function Rh2(e) {
75433
75433
  return;
75434
75434
  const t = {};
75435
75435
  return import_lodash.omitBy({
75436
- _id: qe3(e.__fqn__),
75436
+ _id: Ne3(e.__fqn__),
75437
75437
  title: e.title,
75438
75438
  background: fo2(e.background),
75439
75439
  canvas: Ih2(e.canvas),
@@ -75903,7 +75903,7 @@ function jh2(e) {
75903
75903
  });
75904
75904
  const o = e.template.content, r3 = e.template.name;
75905
75905
  return {
75906
- _id: qe3(e.__fqn__),
75906
+ _id: Ne3(e.__fqn__),
75907
75907
  label: e.label ?? "Untitled",
75908
75908
  description: e.description,
75909
75909
  icon: e.icon,
@@ -75930,7 +75930,7 @@ var aE2 = (e, t) => {
75930
75930
  settings: r3
75931
75931
  }, { custom_chart: a, custom_chart_id: s2 } = e;
75932
75932
  if (a)
75933
- a.__fqn__ ? i2.custom_chart_id = qe3(a.__fqn__) : i2.custom_chart_def = jh2(a);
75933
+ a.__fqn__ ? i2.custom_chart_id = Ne3(a.__fqn__) : i2.custom_chart_def = jh2(a);
75934
75934
  else if (s2)
75935
75935
  i2.custom_chart_id = s2;
75936
75936
  else
@@ -78107,7 +78107,7 @@ function r$(e) {
78107
78107
  return !!o && ml2.includes(o);
78108
78108
  }
78109
78109
  function i$(e) {
78110
- const { value: t, name: n } = e, o = n?.replace(/::/g, "."), r3 = t.__decorators__.template, {
78110
+ const { value: t, fqn: n } = e, o = Ne3(n) ?? e.name.replace(/::/g, "."), r3 = t.__decorators__.template, {
78111
78111
  funcType: i2,
78112
78112
  title: a,
78113
78113
  description: s2,
@@ -78640,7 +78640,7 @@ function gD(e, t) {
78640
78640
  const se3 = i2[be3] || {}, Ye3 = ae3.columns || [];
78641
78641
  if (Ye3.length === 0)
78642
78642
  return "";
78643
- const de3 = !!se3.show_stack_total, De2 = !!se3.reversed_stack, He3 = !!se3.show_group_total, N = !!se3.group_long_tail, S3 = Number(se3.maximum_groups), ve3 = !!se3.show_data_label, Me2 = !!se3.show_series_percentage, Ne3 = !!se3.stack_series, C = se3.stack_type, $2 = vn3(se3.min), ht3 = vn3(se3.max), xe2 = !!se3.hidden, Ge2 = se3.align !== undefined && se3.align !== Ml2 ? `alignment: ${y(se3.align)}` : "", Le2 = se3.scale_type !== undefined && se3.scale_type !== zl2 ? `scale: ${y(se3.scale_type)}` : "", wt3 = $2 !== undefined ? `axis_min: ${$2}` : "", Jt2 = ht3 !== undefined ? `axis_max: ${ht3}` : "", An3 = de3 ? `show_stack_total: ${de3}` : "", Gn3 = De2 ? `reverse_stack: ${De2}` : "", qt3 = He3 ? `show_total_in_tooltip: ${He3}` : "", re3 = N && S3 ? `group_values_into: ${S3}` : "", Kn3 = ve3 ? `show_data_label_by: ${y(Me2 ? "percentage" : "value")}` : "", Ri2 = Ne3 ? `stack_series_by: ${y(C === "percent" ? "percentage" : "value")}` : "", z2 = xe2 ? `hidden: ${xe2}` : "", Ee3 = [
78643
+ const de3 = !!se3.show_stack_total, De2 = !!se3.reversed_stack, He3 = !!se3.show_group_total, N = !!se3.group_long_tail, S3 = Number(se3.maximum_groups), ve3 = !!se3.show_data_label, Me2 = !!se3.show_series_percentage, Ve3 = !!se3.stack_series, C = se3.stack_type, $2 = vn3(se3.min), ht3 = vn3(se3.max), xe2 = !!se3.hidden, Ge2 = se3.align !== undefined && se3.align !== Ml2 ? `alignment: ${y(se3.align)}` : "", Le2 = se3.scale_type !== undefined && se3.scale_type !== zl2 ? `scale: ${y(se3.scale_type)}` : "", wt3 = $2 !== undefined ? `axis_min: ${$2}` : "", Jt2 = ht3 !== undefined ? `axis_max: ${ht3}` : "", An3 = de3 ? `show_stack_total: ${de3}` : "", Gn3 = De2 ? `reverse_stack: ${De2}` : "", qt3 = He3 ? `show_total_in_tooltip: ${He3}` : "", re3 = N && S3 ? `group_values_into: ${S3}` : "", Kn3 = ve3 ? `show_data_label_by: ${y(Me2 ? "percentage" : "value")}` : "", Ri2 = Ve3 ? `stack_series_by: ${y(C === "percent" ? "percentage" : "value")}` : "", z2 = xe2 ? `hidden: ${xe2}` : "", Ee3 = [
78644
78644
  Ge2,
78645
78645
  Le2,
78646
78646
  wt3,
@@ -78691,14 +78691,14 @@ function gD(e, t) {
78691
78691
  ${Vc2}
78692
78692
  }` : "";
78693
78693
  }).filter(Boolean).join(`
78694
- `), Ve3 = [
78694
+ `), je2 = [
78695
78695
  M2,
78696
78696
  ie3,
78697
78697
  Ce3
78698
78698
  ].filter(Boolean).join(`
78699
78699
  `);
78700
- return Ve3 ? ` y_axis {
78701
- ${Ve3}
78700
+ return je2 ? ` y_axis {
78701
+ ${je2}
78702
78702
  }` : "";
78703
78703
  }).filter(Boolean).join(`
78704
78704
  `) : "", K2 = vo3(a, t), te3 = K2 ? `tooltips: ${K2}` : "";
@@ -78733,14 +78733,14 @@ function _D(e, t) {
78733
78733
  const te3 = K2.series_settings || {}, Ue3 = te3.color && te3.color !== "auto" ? te3.color : K2.color, ae3 = Ue3 !== undefined && Ue3 !== "auto" ? `color: ${y(Ue3)}` : "", be3 = Kg2(te3);
78734
78734
  let se3 = "";
78735
78735
  typeof te3.series_hash == "object" && !import_lodash.isEmpty(te3.series_hash) && (se3 = Object.entries(te3.series_hash).map(([He3, N]) => {
78736
- const S3 = `value: ${y(He3)}`, ve3 = N.color !== undefined && N.color !== "auto" ? `color: ${y(N.color)}` : "", Me2 = N.hidden === true ? `hidden: ${N.hidden}` : "", Ne3 = [
78736
+ const S3 = `value: ${y(He3)}`, ve3 = N.color !== undefined && N.color !== "auto" ? `color: ${y(N.color)}` : "", Me2 = N.hidden === true ? `hidden: ${N.hidden}` : "", Ve3 = [
78737
78737
  S3,
78738
78738
  ve3,
78739
78739
  Me2
78740
78740
  ].filter(Boolean).join(`
78741
78741
  `);
78742
- return !ve3 && !Me2 || !Ne3 ? "" : ` point {
78743
- ${Ne3}
78742
+ return !ve3 && !Me2 || !Ve3 ? "" : ` point {
78743
+ ${Ve3}
78744
78744
  }`;
78745
78745
  }).filter(Boolean).join(`
78746
78746
  `));
@@ -80510,7 +80510,7 @@ function Mi2({
80510
80510
  }));
80511
80511
  return [...s2, ...u, ...l];
80512
80512
  }
80513
- function je2({
80513
+ function qe3({
80514
80514
  amlPropName: e,
80515
80515
  amlPropType: t,
80516
80516
  propDiffToAml: n = ({ diff: i2 }) => i2.newValue,
@@ -80544,8 +80544,8 @@ var pB = {
80544
80544
  filter: me3
80545
80545
  };
80546
80546
  var mB = {
80547
- label: je2({ amlPropName: "label", amlPropType: "text" }),
80548
- description: je2({ amlPropName: "description", amlPropType: "text" }),
80547
+ label: qe3({ amlPropName: "label", amlPropType: "text" }),
80548
+ description: qe3({ amlPropName: "description", amlPropType: "text" }),
80549
80549
  theme({ diff: e, astPath: t }) {
80550
80550
  const n = kn3(e.newValue), o = n ? H2("theme", n) : undefined;
80551
80551
  return [Se3({
@@ -80592,8 +80592,8 @@ var hB = {
80592
80592
  viz: me3
80593
80593
  };
80594
80594
  var gB = {
80595
- label: je2({ amlPropName: "label", amlPropType: "text" }),
80596
- description: je2({ amlPropName: "description", amlPropType: "text" }),
80595
+ label: qe3({ amlPropName: "label", amlPropType: "text" }),
80596
+ description: qe3({ amlPropName: "description", amlPropType: "text" }),
80597
80597
  theme({ diff: e, astPath: t }) {
80598
80598
  const n = kn3(e.newValue), o = n ? H2("theme", n) : undefined;
80599
80599
  return [Se3({
@@ -80649,7 +80649,7 @@ var bB = {
80649
80649
  }` : undefined
80650
80650
  })];
80651
80651
  },
80652
- content: je2({
80652
+ content: qe3({
80653
80653
  amlPropName: "content",
80654
80654
  propDiffToAml: ({ diff: e }) => `@md ${ot3(e.newValue || "", {
80655
80655
  sanitizeHeredocTermination: true,
@@ -80670,8 +80670,8 @@ var wB = {
80670
80670
  pop: me3
80671
80671
  };
80672
80672
  var kB = {
80673
- label: je2({ amlPropName: "label", amlPropType: "text" }),
80674
- description: je2({ amlPropName: "description", amlPropType: "text" }),
80673
+ label: qe3({ amlPropName: "label", amlPropType: "text" }),
80674
+ description: qe3({ amlPropName: "description", amlPropType: "text" }),
80675
80675
  theme({ diff: e, astPath: t }) {
80676
80676
  const n = kn3(e.newValue), o = n ? H2("theme", n) : undefined;
80677
80677
  return [Se3({
@@ -80711,8 +80711,8 @@ var xB = {
80711
80711
  date_drill: me3
80712
80712
  };
80713
80713
  var TB = {
80714
- label: je2({ amlPropName: "label", amlPropType: "text" }),
80715
- description: je2({ amlPropName: "description", amlPropType: "text" }),
80714
+ label: qe3({ amlPropName: "label", amlPropType: "text" }),
80715
+ description: qe3({ amlPropName: "description", amlPropType: "text" }),
80716
80716
  theme({ diff: e, astPath: t }) {
80717
80717
  const n = kn3(e.newValue), o = n ? H2("theme", n) : undefined;
80718
80718
  return [Se3({
@@ -80755,8 +80755,8 @@ var CB = {
80755
80755
  theme: So3
80756
80756
  };
80757
80757
  var PB = {
80758
- label: je2({ amlPropName: "label", amlPropType: "text" }),
80759
- prompt: je2({
80758
+ label: qe3({ amlPropName: "label", amlPropType: "text" }),
80759
+ prompt: qe3({
80760
80760
  amlPropName: "prompt",
80761
80761
  propDiffToAml: ({ diff: e }) => `@md ${ot3(e.newValue || "", EB)};;`
80762
80762
  }),
@@ -80861,7 +80861,7 @@ var aF = (e) => ("fieldsDiff" in e.diff) ? Hn3({
80861
80861
  context: e.context,
80862
80862
  astPath: [...e.astPath, "mobile"],
80863
80863
  generator: {
80864
- mode: je2({ amlPropName: "mode", amlPropType: "text" }),
80864
+ mode: qe3({ amlPropName: "mode", amlPropType: "text" }),
80865
80865
  blocks: ({ diff: t, astPath: n, context: o }) => Mi2({
80866
80866
  diff: t,
80867
80867
  astPath: [...n, "block"],
@@ -80878,14 +80878,14 @@ var aF = (e) => ("fieldsDiff" in e.diff) ? Hn3({
80878
80878
  text: r_2(e.diff.newValue)
80879
80879
  })];
80880
80880
  var sF = {
80881
- label: je2({ amlPropName: "label", amlPropType: "text" }),
80882
- width: je2({
80881
+ label: qe3({ amlPropName: "label", amlPropType: "text" }),
80882
+ width: qe3({
80883
80883
  amlPropName: "width",
80884
80884
  amlPropType: "number",
80885
80885
  propDiffToAml: ({ diff: e }) => a_2(e.newValue),
80886
80886
  prependPropName: false
80887
80887
  }),
80888
- height: je2({
80888
+ height: qe3({
80889
80889
  amlPropName: "height",
80890
80890
  amlPropType: "number",
80891
80891
  propDiffToAml: ({ diff: e }) => s_2(e.newValue),
@@ -80912,16 +80912,16 @@ var sF = {
80912
80912
  text: o
80913
80913
  })];
80914
80914
  },
80915
- grid_size: je2({
80915
+ grid_size: qe3({
80916
80916
  amlPropName: "grid_size",
80917
80917
  amlPropType: "number",
80918
80918
  propDiffToAml: ({ diff: e }) => l_2(e.newValue),
80919
80919
  prependPropName: false
80920
80920
  }),
80921
- auto_expand_vertically: je2({ amlPropName: "auto_expand_vertically", amlPropType: "boolean" }),
80922
- auto_expand_horizontally: je2({ amlPropName: "auto_expand_horizontally", amlPropType: "boolean" }),
80921
+ auto_expand_vertically: qe3({ amlPropName: "auto_expand_vertically", amlPropType: "boolean" }),
80922
+ auto_expand_horizontally: qe3({ amlPropName: "auto_expand_horizontally", amlPropType: "boolean" }),
80923
80923
  mobile: aF,
80924
- default_zoom: je2({
80924
+ default_zoom: qe3({
80925
80925
  amlPropName: "default_zoom",
80926
80926
  propDiffToAml: ({ diff: e }) => i_2(e.newValue),
80927
80927
  prependPropName: false
@@ -80942,7 +80942,7 @@ var lF = ({ diff: e, astPath: t, context: n }) => ("fieldsDiff" in e) ? k_2({
80942
80942
  text: `tab ${e.newValue.uname}: ${Ao3(e.newValue)}`
80943
80943
  })];
80944
80944
  var cF = {
80945
- label: je2({
80945
+ label: qe3({
80946
80946
  amlPropName: "label",
80947
80947
  amlPropType: "text",
80948
80948
  propDiffToAml: ({ diff: e }) => e.newValue
@@ -80971,11 +80971,11 @@ var dF = ({ diff: e, astPath: t, context: n }) => ("fieldsDiff" in e) ? e.newVal
80971
80971
  text: `view: ${Ao3(e.newValue)}`
80972
80972
  })];
80973
80973
  var mF = {
80974
- title: je2({
80974
+ title: qe3({
80975
80975
  amlPropName: "title",
80976
80976
  amlPropType: "text"
80977
80977
  }),
80978
- description: je2({
80978
+ description: qe3({
80979
80979
  amlPropName: "description",
80980
80980
  propDiffToAml: ({ diff: e }) => rn2(e.newValue)
80981
80981
  }),
@@ -84482,7 +84482,7 @@ function _03() {
84482
84482
  ["partial", Vn3],
84483
84483
  ["partialRight", Qt3],
84484
84484
  ["rearg", kt4]
84485
- ], mt4 = "[object Arguments]", we4 = "[object Array]", Ff3 = "[object AsyncFunction]", jt4 = "[object Boolean]", ne2 = "[object Date]", Wf3 = "[object DOMException]", me4 = "[object Error]", Ce3 = "[object Function]", Lu3 = "[object GeneratorFunction]", Mn4 = "[object Map]", te3 = "[object Number]", Hf3 = "[object Null]", $n4 = "[object Object]", wu3 = "[object Promise]", Xf3 = "[object Proxy]", ee3 = "[object RegExp]", Nn3 = "[object Set]", re3 = "[object String]", xe2 = "[object Symbol]", Kf3 = "[object Undefined]", ie3 = "[object WeakMap]", Vf3 = "[object WeakSet]", ue4 = "[object ArrayBuffer]", Ct4 = "[object DataView]", wr4 = "[object Float32Array]", mr4 = "[object Float64Array]", Cr3 = "[object Int8Array]", xr4 = "[object Int16Array]", Mr4 = "[object Int32Array]", Nr5 = "[object Uint8Array]", br3 = "[object Uint8ClampedArray]", Br4 = "[object Uint16Array]", Ur4 = "[object Uint32Array]", Yf3 = /\b__p \+= '';/g, $f3 = /\b(__p \+=) '' \+/g, zf3 = /(__e\(.*?\)|\b__t\)) \+\n'';/g, mu3 = /&(?:amp|lt|gt|quot|#39);/g, Cu3 = /[&<>"']/g, qf3 = RegExp(mu3.source), Zf3 = RegExp(Cu3.source), Jf3 = /<%-([\s\S]+?)%>/g, Qf3 = /<%([\s\S]+?)%>/g, xu3 = /<%=([\s\S]+?)%>/g, kf3 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, jf3 = /^\w*$/, ns3 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Dr4 = /[\\^$.*+?()[\]{}|]/g, ts3 = RegExp(Dr4.source), Gr4 = /^\s+/, es3 = /\s/, rs3 = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, is3 = /\{\n\/\* \[wrapped with (.+)\] \*/, us3 = /,? & /, os7 = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Mu3 = /[()=,{}\[\]\/\s]/, as3 = /\\(\\)?/g, fs13 = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Nu3 = /\w*$/, ss3 = /^[-+]0x[0-9a-f]+$/i, cs3 = /^0b[01]+$/i, ls3 = /^\[object .+?Constructor\]$/, _s3 = /^0o[0-7]+$/i, hs3 = /^(?:0|[1-9]\d*)$/, ps3 = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Me2 = /($^)/, gs3 = /['\n\r\u2028\u2029\\]/g, Ne3 = "\\ud800-\\udfff", ds3 = "\\u0300-\\u036f", Es3 = "\\ufe20-\\ufe2f", vs2 = "\\u20d0-\\u20ff", bu3 = ds3 + Es3 + vs2, Bu3 = "\\u2700-\\u27bf", Uu3 = "a-z\\xdf-\\xf6\\xf8-\\xff", Ts3 = "\\xac\\xb1\\xd7\\xf7", As2 = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Ss3 = "\\u2000-\\u206f", Os2 = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Du3 = "A-Z\\xc0-\\xd6\\xd8-\\xde", Gu3 = "\\ufe0e\\ufe0f", Fu3 = Ts3 + As2 + Ss3 + Os2, Fr4 = "['’]", Rs2 = "[" + Ne3 + "]", Wu3 = "[" + Fu3 + "]", be3 = "[" + bu3 + "]", Hu3 = "\\d+", ys3 = "[" + Bu3 + "]", Xu3 = "[" + Uu3 + "]", Ku3 = "[^" + Ne3 + Fu3 + Hu3 + Bu3 + Uu3 + Du3 + "]", Wr4 = "\\ud83c[\\udffb-\\udfff]", Ps3 = "(?:" + be3 + "|" + Wr4 + ")", Vu3 = "[^" + Ne3 + "]", Hr4 = "(?:\\ud83c[\\udde6-\\uddff]){2}", Xr4 = "[\\ud800-\\udbff][\\udc00-\\udfff]", xt4 = "[" + Du3 + "]", Yu3 = "\\u200d", $u3 = "(?:" + Xu3 + "|" + Ku3 + ")", Is2 = "(?:" + xt4 + "|" + Ku3 + ")", zu3 = "(?:" + Fr4 + "(?:d|ll|m|re|s|t|ve))?", qu3 = "(?:" + Fr4 + "(?:D|LL|M|RE|S|T|VE))?", Zu3 = Ps3 + "?", Ju3 = "[" + Gu3 + "]?", Ls2 = "(?:" + Yu3 + "(?:" + [Vu3, Hr4, Xr4].join("|") + ")" + Ju3 + Zu3 + ")*", ws2 = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", ms3 = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Qu3 = Ju3 + Zu3 + Ls2, Cs3 = "(?:" + [ys3, Hr4, Xr4].join("|") + ")" + Qu3, xs2 = "(?:" + [Vu3 + be3 + "?", be3, Hr4, Xr4, Rs2].join("|") + ")", Ms2 = RegExp(Fr4, "g"), Ns2 = RegExp(be3, "g"), Kr4 = RegExp(Wr4 + "(?=" + Wr4 + ")|" + xs2 + Qu3, "g"), bs3 = RegExp([
84485
+ ], mt4 = "[object Arguments]", we4 = "[object Array]", Ff3 = "[object AsyncFunction]", jt4 = "[object Boolean]", ne2 = "[object Date]", Wf3 = "[object DOMException]", me4 = "[object Error]", Ce3 = "[object Function]", Lu3 = "[object GeneratorFunction]", Mn4 = "[object Map]", te3 = "[object Number]", Hf3 = "[object Null]", $n4 = "[object Object]", wu3 = "[object Promise]", Xf3 = "[object Proxy]", ee3 = "[object RegExp]", Nn3 = "[object Set]", re3 = "[object String]", xe2 = "[object Symbol]", Kf3 = "[object Undefined]", ie3 = "[object WeakMap]", Vf3 = "[object WeakSet]", ue4 = "[object ArrayBuffer]", Ct4 = "[object DataView]", wr4 = "[object Float32Array]", mr4 = "[object Float64Array]", Cr3 = "[object Int8Array]", xr4 = "[object Int16Array]", Mr4 = "[object Int32Array]", Nr5 = "[object Uint8Array]", br3 = "[object Uint8ClampedArray]", Br4 = "[object Uint16Array]", Ur4 = "[object Uint32Array]", Yf3 = /\b__p \+= '';/g, $f3 = /\b(__p \+=) '' \+/g, zf3 = /(__e\(.*?\)|\b__t\)) \+\n'';/g, mu3 = /&(?:amp|lt|gt|quot|#39);/g, Cu3 = /[&<>"']/g, qf3 = RegExp(mu3.source), Zf3 = RegExp(Cu3.source), Jf3 = /<%-([\s\S]+?)%>/g, Qf3 = /<%([\s\S]+?)%>/g, xu3 = /<%=([\s\S]+?)%>/g, kf3 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, jf3 = /^\w*$/, ns3 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Dr4 = /[\\^$.*+?()[\]{}|]/g, ts3 = RegExp(Dr4.source), Gr4 = /^\s+/, es3 = /\s/, rs3 = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, is3 = /\{\n\/\* \[wrapped with (.+)\] \*/, us3 = /,? & /, os7 = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Mu3 = /[()=,{}\[\]\/\s]/, as3 = /\\(\\)?/g, fs13 = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Nu3 = /\w*$/, ss3 = /^[-+]0x[0-9a-f]+$/i, cs3 = /^0b[01]+$/i, ls3 = /^\[object .+?Constructor\]$/, _s3 = /^0o[0-7]+$/i, hs3 = /^(?:0|[1-9]\d*)$/, ps3 = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Me2 = /($^)/, gs3 = /['\n\r\u2028\u2029\\]/g, Ne4 = "\\ud800-\\udfff", ds3 = "\\u0300-\\u036f", Es3 = "\\ufe20-\\ufe2f", vs2 = "\\u20d0-\\u20ff", bu3 = ds3 + Es3 + vs2, Bu3 = "\\u2700-\\u27bf", Uu3 = "a-z\\xdf-\\xf6\\xf8-\\xff", Ts3 = "\\xac\\xb1\\xd7\\xf7", As2 = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Ss3 = "\\u2000-\\u206f", Os2 = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Du3 = "A-Z\\xc0-\\xd6\\xd8-\\xde", Gu3 = "\\ufe0e\\ufe0f", Fu3 = Ts3 + As2 + Ss3 + Os2, Fr4 = "['’]", Rs2 = "[" + Ne4 + "]", Wu3 = "[" + Fu3 + "]", be3 = "[" + bu3 + "]", Hu3 = "\\d+", ys3 = "[" + Bu3 + "]", Xu3 = "[" + Uu3 + "]", Ku3 = "[^" + Ne4 + Fu3 + Hu3 + Bu3 + Uu3 + Du3 + "]", Wr4 = "\\ud83c[\\udffb-\\udfff]", Ps3 = "(?:" + be3 + "|" + Wr4 + ")", Vu3 = "[^" + Ne4 + "]", Hr4 = "(?:\\ud83c[\\udde6-\\uddff]){2}", Xr4 = "[\\ud800-\\udbff][\\udc00-\\udfff]", xt4 = "[" + Du3 + "]", Yu3 = "\\u200d", $u3 = "(?:" + Xu3 + "|" + Ku3 + ")", Is2 = "(?:" + xt4 + "|" + Ku3 + ")", zu3 = "(?:" + Fr4 + "(?:d|ll|m|re|s|t|ve))?", qu3 = "(?:" + Fr4 + "(?:D|LL|M|RE|S|T|VE))?", Zu3 = Ps3 + "?", Ju3 = "[" + Gu3 + "]?", Ls2 = "(?:" + Yu3 + "(?:" + [Vu3, Hr4, Xr4].join("|") + ")" + Ju3 + Zu3 + ")*", ws2 = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", ms3 = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Qu3 = Ju3 + Zu3 + Ls2, Cs3 = "(?:" + [ys3, Hr4, Xr4].join("|") + ")" + Qu3, xs2 = "(?:" + [Vu3 + be3 + "?", be3, Hr4, Xr4, Rs2].join("|") + ")", Ms2 = RegExp(Fr4, "g"), Ns2 = RegExp(be3, "g"), Kr4 = RegExp(Wr4 + "(?=" + Wr4 + ")|" + xs2 + Qu3, "g"), bs3 = RegExp([
84486
84486
  xt4 + "?" + Xu3 + "+" + zu3 + "(?=" + [Wu3, xt4, "$"].join("|") + ")",
84487
84487
  Is2 + "+" + qu3 + "(?=" + [Wu3, xt4 + $u3, "$"].join("|") + ")",
84488
84488
  xt4 + "?" + $u3 + "+" + zu3,
@@ -84491,7 +84491,7 @@ function _03() {
84491
84491
  ws2,
84492
84492
  Hu3,
84493
84493
  Cs3
84494
- ].join("|"), "g"), Bs2 = RegExp("[" + Yu3 + Ne3 + bu3 + Gu3 + "]"), Us2 = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, Ds3 = [
84494
+ ].join("|"), "g"), Bs2 = RegExp("[" + Yu3 + Ne4 + bu3 + Gu3 + "]"), Us2 = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, Ds3 = [
84495
84495
  "Array",
84496
84496
  "Buffer",
84497
84497
  "DataView",
@@ -85365,7 +85365,7 @@ function _03() {
85365
85365
  return e = !!t(i2, a, s2), e;
85366
85366
  }), e;
85367
85367
  }
85368
- function je3(n, t, e) {
85368
+ function je2(n, t, e) {
85369
85369
  for (var i2 = -1, a = n.length;++i2 < a; ) {
85370
85370
  var s2 = n[i2], h = t(s2);
85371
85371
  if (h != null && (p2 === r3 ? h === h && !Sn4(h) : e(h, p2)))
@@ -87946,10 +87946,10 @@ function print() { __p += __j.call(arguments, '') }
87946
87946
  return n / t;
87947
87947
  }, 1), cd3 = yi3("floor");
87948
87948
  function ld3(n) {
87949
- return n && n.length ? je3(n, dn4, si2) : r3;
87949
+ return n && n.length ? je2(n, dn4, si2) : r3;
87950
87950
  }
87951
87951
  function _d3(n, t) {
87952
- return n && n.length ? je3(n, x(t, 2), si2) : r3;
87952
+ return n && n.length ? je2(n, x(t, 2), si2) : r3;
87953
87953
  }
87954
87954
  function hd3(n) {
87955
87955
  return so3(n, dn4);
@@ -87958,10 +87958,10 @@ function print() { __p += __j.call(arguments, '') }
87958
87958
  return so3(n, x(t, 2));
87959
87959
  }
87960
87960
  function gd3(n) {
87961
- return n && n.length ? je3(n, dn4, hi3) : r3;
87961
+ return n && n.length ? je2(n, dn4, hi3) : r3;
87962
87962
  }
87963
87963
  function dd3(n, t) {
87964
- return n && n.length ? je3(n, x(t, 2), hi3) : r3;
87964
+ return n && n.length ? je2(n, x(t, 2), hi3) : r3;
87965
87965
  }
87966
87966
  var Ed3 = or3(function(n, t) {
87967
87967
  return n * t;
@@ -106684,6 +106684,7 @@ var ModelGraph = class e9 {
106684
106684
  undirectedReachabilityCache;
106685
106685
  fanoutReachabilityCache;
106686
106686
  _hashCache;
106687
+ _hasWeights;
106687
106688
  allowAmbiguousPaths;
106688
106689
  shouldPrioritizeLengthForMixedPaths;
106689
106690
  constructor(e10, t, n, r3, i3) {
@@ -106787,28 +106788,43 @@ var ModelGraph = class e9 {
106787
106788
  }
106788
106789
  return null;
106789
106790
  }
106791
+ hasWeightedRelationships() {
106792
+ return this._hasWeights === undefined && (this._hasWeights = this.relationships.some((e10) => !!e10.weight)), this._hasWeights;
106793
+ }
106790
106794
  findFirstPathOfTier(e10, t, n, r3) {
106795
+ if (n === PathTier.DIM_TO_FACT && !this.canReach(e10, t, {
106796
+ allowFanout: false,
106797
+ respectFilterDirection: false
106798
+ }))
106799
+ return null;
106791
106800
  let i3 = this.forward.get(e10) || [], a = this.createNeighborQueueItems(i3, e10, [[e10], undefined], [], undefined, false);
106792
106801
  if (r3 && n !== PathTier.DIM_TO_FACT) {
106793
106802
  let t3 = this.backward.get(e10) || [];
106794
106803
  a = a.concat(this.createNeighborQueueItems(t3, e10, [[e10], undefined], [], undefined, true));
106795
106804
  }
106796
- let s3 = [], c3 = 100;
106797
- for (;a.length > 0 && s3.length < 100; ) {
106798
- let [e11, i4, c4, l] = a.shift(), [u] = i4;
106799
- if (import_lodash2.includes(u, e11))
106805
+ let s3 = [], c3 = 100, l = 50000, u = !this.hasWeightedRelationships(), f3 = Infinity, p3 = 0;
106806
+ for (;p3 < a.length && s3.length < 100; ) {
106807
+ if (p3 >= l) {
106808
+ console.warn(`[amql] path search \`${e10}\` -> \`${t}\` (tier ${n}) hit the ${l}-expansion cap; using best path found so far`);
106809
+ break;
106810
+ }
106811
+ let [i4, c4, m3, S3] = a[p3++], [w3] = c4;
106812
+ if (import_lodash2.includes(w3, i4) || (w3.push(i4), i4 !== t && !this.canReach(i4, t, {
106813
+ allowFanout: true,
106814
+ respectFilterDirection: false
106815
+ })))
106800
106816
  continue;
106801
- switch (u.push(e11), n) {
106817
+ switch (n) {
106802
106818
  case PathTier.DIM_TO_FACT:
106803
- if (l && l !== PathTier.DIM_TO_FACT)
106819
+ if (S3 && S3 !== PathTier.DIM_TO_FACT)
106804
106820
  continue;
106805
106821
  break;
106806
106822
  case PathTier.FACT_TO_DIM:
106807
- if (l === PathTier.DIM_TO_FACT || l === PathTier.MIXED || l === PathTier.MANY_TO_MANY)
106823
+ if (S3 === PathTier.DIM_TO_FACT || S3 === PathTier.MIXED || S3 === PathTier.MANY_TO_MANY)
106808
106824
  continue;
106809
106825
  break;
106810
106826
  case PathTier.MANY_TO_MANY:
106811
- if (l === PathTier.MIXED || l === PathTier.DIM_TO_FACT)
106827
+ if (S3 === PathTier.MIXED || S3 === PathTier.DIM_TO_FACT)
106812
106828
  continue;
106813
106829
  break;
106814
106830
  case PathTier.MIXED:
@@ -106816,14 +106832,16 @@ var ModelGraph = class e9 {
106816
106832
  default:
106817
106833
  return n;
106818
106834
  }
106819
- if (e11 === t) {
106820
- (l === n || !l && n === PathTier.DIM_TO_FACT) && s3.push([c4, i4[1]]);
106835
+ if (i4 === t) {
106836
+ (S3 === n || !S3 && n === PathTier.DIM_TO_FACT) && (s3.push([m3, c4[1]]), u && m3.length < f3 && (f3 = m3.length));
106821
106837
  continue;
106822
106838
  }
106823
- let f3 = import_lodash2.filter(this.forward.get(e11) || [], (e12) => e12 !== u[u.length - 2]);
106824
- a = a.concat(this.createNeighborQueueItems(f3, e11, i4, c4, l, false));
106825
- let p3 = this.backward.get(e11);
106826
- p3 && r3 && n !== PathTier.DIM_TO_FACT && (a = a.concat(this.createNeighborQueueItems(p3, e11, i4, c4, l, true)));
106839
+ if (u && m3.length >= f3)
106840
+ continue;
106841
+ let E = import_lodash2.filter(this.forward.get(i4) || [], (e11) => e11 !== w3[w3.length - 2]);
106842
+ a.push(...this.createNeighborQueueItems(E, i4, c4, m3, S3, false));
106843
+ let N = this.backward.get(i4);
106844
+ N && r3 && n !== PathTier.DIM_TO_FACT && a.push(...this.createNeighborQueueItems(N, i4, c4, m3, S3, true));
106827
106845
  }
106828
106846
  return s3.length === 0 ? null : selectBestPath(s3, n === PathTier.MIXED && !!this.shouldPrioritizeLengthForMixedPaths);
106829
106847
  }
@@ -125652,7 +125670,7 @@ function Ee3(e10, ...t) {
125652
125670
  if (t.length > 0 && !t.includes(e10.length))
125653
125671
  throw Error("Uint8Array expected of length " + t + ", got length=" + e10.length);
125654
125672
  }
125655
- function je3(e10, t = true) {
125673
+ function je2(e10, t = true) {
125656
125674
  if (e10.destroyed)
125657
125675
  throw Error("Hash instance has been destroyed");
125658
125676
  if (t && e10.finished)
@@ -125715,7 +125733,7 @@ var gr4 = class extends Rr5 {
125715
125733
  super(), this.finished = false, this.length = 0, this.pos = 0, this.destroyed = false, this.blockLen = e10, this.outputLen = t, this.padOffset = n, this.isLE = r3, this.buffer = new Uint8Array(e10), this.view = _e4(this.buffer);
125716
125734
  }
125717
125735
  update(e10) {
125718
- je3(this), e10 = en3(e10), Ee3(e10);
125736
+ je2(this), e10 = en3(e10), Ee3(e10);
125719
125737
  let { view: t, buffer: n, blockLen: r3 } = this, i3 = e10.length;
125720
125738
  for (let a = 0;a < i3; ) {
125721
125739
  let s3 = Math.min(r3 - this.pos, i3 - a);
@@ -125730,7 +125748,7 @@ var gr4 = class extends Rr5 {
125730
125748
  return this.length += e10.length, this.roundClean(), this;
125731
125749
  }
125732
125750
  digestInto(e10) {
125733
- je3(this), pr3(e10, this), this.finished = true;
125751
+ je2(this), pr3(e10, this), this.finished = true;
125734
125752
  let { buffer: t, view: n, blockLen: r3, isLE: i3 } = this, { pos: a } = this;
125735
125753
  t[a++] = 128, qe4(this.buffer.subarray(a)), this.padOffset > r3 - a && (this.process(n, 0), a = 0);
125736
125754
  for (let e11 = a;e11 < r3; e11++)
@@ -127573,7 +127591,7 @@ var Xo3 = {
127573
127591
  operationOverrides: An3,
127574
127592
  transformers: vo4
127575
127593
  };
127576
- function Ne3(e10) {
127594
+ function Ne4(e10) {
127577
127595
  return e10.toString().toLowerCase().trim();
127578
127596
  }
127579
127597
  function mt4(e10) {
@@ -127608,10 +127626,10 @@ var Ho3 = /* @__PURE__ */ new Map([
127608
127626
  ])],
127609
127627
  [o.DATETIME_ADD, (e10, t) => t.opSql(o.DATE_ADD, e10)],
127610
127628
  [o.DATETIME_SUB, (e10, t) => t.opSql(o.DATE_SUB, e10)],
127611
- [o.DATE_DIFF_DEFAULT, ([e10, t, n]) => `DATEDIFF(${Ne3(e10)}, ${t}, ${n})`],
127629
+ [o.DATE_DIFF_DEFAULT, ([e10, t, n]) => `DATEDIFF(${Ne4(e10)}, ${t}, ${n})`],
127612
127630
  [o.DATE_DIFF_MILLISECOND, ([, e10, t]) => `DATEDIFF(millisecond, ${e10}, ${t})`],
127613
127631
  [o.DATE_DIFF_SECOND, ([, e10, t]) => `DATEDIFF(second, ${e10}, ${t})`],
127614
- [o.DATE_PART_DEFAULT, ([e10, t]) => `DATE_PART('${Ne3(e10)}', ${t})`],
127632
+ [o.DATE_PART_DEFAULT, ([e10, t]) => `DATE_PART('${Ne4(e10)}', ${t})`],
127615
127633
  [o.APPROX_COUNT_DISTINCT, ([e10]) => `HLL_CARDINALITY(HLL_CREATE_SKETCH(${e10}))`],
127616
127634
  [o.COVAR_POP, ([e10, t]) => `(SUM(${e10} * ${t}) - SUM(${e10}) * SUM(${t}) / NULLIF(COUNT(${t} * ${e10}), 0)) / NULLIF(COUNT(${t} * ${e10}), 0)`],
127617
127635
  [o.CORR, ([e10, t], n) => `${n.opSql(o.COVAR_POP, [t, e10])} / NULLIF(${n.opSql(o.STDEVP, [e10])} * ${n.opSql(o.STDEVP, [t])}, 0)`],
@@ -127635,7 +127653,7 @@ var Ho3 = /* @__PURE__ */ new Map([
127635
127653
  let i3 = pt4(t.toString()), a = r3.opSql(o.NORMALIZE_TEXT_VALUE, [i3]);
127636
127654
  return `TO_CHAR(${r3.opSql(o.TO_WALLCLOCK, [e10, n])}, ${a})`;
127637
127655
  }],
127638
- [o.LAST_DAY, ([e10, t, n], r3) => Ne3(t) === "month" ? `LAST_DAY(${r3.opSql(o.CAST_DB_TYPE, [e10, "date"])})` : r3.opBaseSql(o.LAST_DAY, [
127656
+ [o.LAST_DAY, ([e10, t, n], r3) => Ne4(t) === "month" ? `LAST_DAY(${r3.opSql(o.CAST_DB_TYPE, [e10, "date"])})` : r3.opBaseSql(o.LAST_DAY, [
127639
127657
  e10,
127640
127658
  t,
127641
127659
  n
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@holistics/cli-core",
3
3
  "type": "module",
4
- "version": "2.2.0",
4
+ "version": "2.2.2",
5
5
  "bin": {
6
6
  "holistics": "./bin/holistics.js"
7
7
  },