@digipair/skill-client-mcp 0.117.6 → 0.117.8

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/index.esm.js +289 -94
  2. package/package.json +1 -1
package/dist/index.esm.js CHANGED
@@ -8199,7 +8199,7 @@ function _create_class$v(Constructor, protoProps, staticProps) {
8199
8199
  if (staticProps) _defineProperties$v(Constructor, staticProps);
8200
8200
  return Constructor;
8201
8201
  }
8202
- function _define_property$4$1(obj, key, value) {
8202
+ function _define_property$5$1(obj, key, value) {
8203
8203
  if (key in obj) {
8204
8204
  Object.defineProperty(obj, key, {
8205
8205
  value: value,
@@ -8274,7 +8274,7 @@ function _non_iterable_rest$5() {
8274
8274
  function _non_iterable_spread$6() {
8275
8275
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8276
8276
  }
8277
- function _object_spread$2$1(target) {
8277
+ function _object_spread$3$1(target) {
8278
8278
  for(var i = 1; i < arguments.length; i++){
8279
8279
  var source = arguments[i] != null ? arguments[i] : {};
8280
8280
  var ownKeys = Object.keys(source);
@@ -8284,12 +8284,12 @@ function _object_spread$2$1(target) {
8284
8284
  }));
8285
8285
  }
8286
8286
  ownKeys.forEach(function(key) {
8287
- _define_property$4$1(target, key, source[key]);
8287
+ _define_property$5$1(target, key, source[key]);
8288
8288
  });
8289
8289
  }
8290
8290
  return target;
8291
8291
  }
8292
- function ownKeys$1$1(object, enumerableOnly) {
8292
+ function ownKeys$2$1(object, enumerableOnly) {
8293
8293
  var keys = Object.keys(object);
8294
8294
  if (Object.getOwnPropertySymbols) {
8295
8295
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8297,12 +8297,12 @@ function ownKeys$1$1(object, enumerableOnly) {
8297
8297
  }
8298
8298
  return keys;
8299
8299
  }
8300
- function _object_spread_props$1$1(target, source) {
8300
+ function _object_spread_props$2$1(target, source) {
8301
8301
  source = source != null ? source : {};
8302
8302
  if (Object.getOwnPropertyDescriptors) {
8303
8303
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8304
8304
  } else {
8305
- ownKeys$1$1(Object(source)).forEach(function(key) {
8305
+ ownKeys$2$1(Object(source)).forEach(function(key) {
8306
8306
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8307
8307
  });
8308
8308
  }
@@ -9173,7 +9173,7 @@ function getCachedWeekInfo(locString) {
9173
9173
  data = "getWeekInfo" in locale ? locale.getWeekInfo() : locale.weekInfo;
9174
9174
  // minimalDays was removed from WeekInfo: https://github.com/tc39/proposal-intl-locale-info/issues/86
9175
9175
  if (!("minimalDays" in data)) {
9176
- data = _object_spread$2$1({}, fallbackWeekSettings, data);
9176
+ data = _object_spread$3$1({}, fallbackWeekSettings, data);
9177
9177
  }
9178
9178
  weekInfoCache.set(locString, data);
9179
9179
  }
@@ -9280,7 +9280,7 @@ function supportsFastNumbers(loc) {
9280
9280
  "floor"
9281
9281
  ]);
9282
9282
  if (!forceSimple || Object.keys(otherOpts).length > 0) {
9283
- var intlOpts = _object_spread$2$1({
9283
+ var intlOpts = _object_spread$3$1({
9284
9284
  useGrouping: false
9285
9285
  }, opts);
9286
9286
  if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;
@@ -9350,7 +9350,7 @@ function supportsFastNumbers(loc) {
9350
9350
  });
9351
9351
  this.originalZone = dt.zone;
9352
9352
  }
9353
- var intlOpts = _object_spread$2$1({}, this.opts);
9353
+ var intlOpts = _object_spread$3$1({}, this.opts);
9354
9354
  intlOpts.timeZone = intlOpts.timeZone || z;
9355
9355
  this.dtf = getCachedDTF(intl, intlOpts);
9356
9356
  }
@@ -9381,7 +9381,7 @@ function supportsFastNumbers(loc) {
9381
9381
  locale: _this.dt.locale,
9382
9382
  format: _this.opts.timeZoneName
9383
9383
  });
9384
- return _object_spread_props$1$1(_object_spread$2$1({}, part), {
9384
+ return _object_spread_props$2$1(_object_spread$3$1({}, part), {
9385
9385
  value: offsetName
9386
9386
  });
9387
9387
  } else {
@@ -9406,7 +9406,7 @@ function supportsFastNumbers(loc) {
9406
9406
  */ var PolyRelFormatter = /*#__PURE__*/ function() {
9407
9407
  function PolyRelFormatter(intl, isEnglish, opts) {
9408
9408
  _class_call_check$A(this, PolyRelFormatter);
9409
- this.opts = _object_spread$2$1({
9409
+ this.opts = _object_spread$3$1({
9410
9410
  style: "long"
9411
9411
  }, opts);
9412
9412
  if (!isEnglish && hasRelative()) {
@@ -9501,7 +9501,7 @@ var fallbackWeekSettings = {
9501
9501
  key: "redefaultToEN",
9502
9502
  value: function redefaultToEN() {
9503
9503
  var alts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
9504
- return this.clone(_object_spread_props$1$1(_object_spread$2$1({}, alts), {
9504
+ return this.clone(_object_spread_props$2$1(_object_spread$3$1({}, alts), {
9505
9505
  defaultToEN: true
9506
9506
  }));
9507
9507
  }
@@ -9510,7 +9510,7 @@ var fallbackWeekSettings = {
9510
9510
  key: "redefaultToSystem",
9511
9511
  value: function redefaultToSystem() {
9512
9512
  var alts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
9513
- return this.clone(_object_spread_props$1$1(_object_spread$2$1({}, alts), {
9513
+ return this.clone(_object_spread_props$2$1(_object_spread$3$1({}, alts), {
9514
9514
  defaultToEN: false
9515
9515
  }));
9516
9516
  }
@@ -10389,7 +10389,7 @@ function isoWeekdayToLocal(isoWeekday, startOfWeek) {
10389
10389
  } else {
10390
10390
  weekYear = year;
10391
10391
  }
10392
- return _object_spread$2$1({
10392
+ return _object_spread$3$1({
10393
10393
  weekYear: weekYear,
10394
10394
  weekNumber: weekNumber,
10395
10395
  weekday: weekday
@@ -10409,7 +10409,7 @@ function weekToGregorian(weekData) {
10409
10409
  year = weekYear;
10410
10410
  }
10411
10411
  var _uncomputeOrdinal = uncomputeOrdinal(year, ordinal), month = _uncomputeOrdinal.month, day = _uncomputeOrdinal.day;
10412
- return _object_spread$2$1({
10412
+ return _object_spread$3$1({
10413
10413
  year: year,
10414
10414
  month: month,
10415
10415
  day: day
@@ -10418,7 +10418,7 @@ function weekToGregorian(weekData) {
10418
10418
  function gregorianToOrdinal(gregData) {
10419
10419
  var year = gregData.year, month = gregData.month, day = gregData.day;
10420
10420
  var ordinal = computeOrdinal(year, month, day);
10421
- return _object_spread$2$1({
10421
+ return _object_spread$3$1({
10422
10422
  year: year,
10423
10423
  ordinal: ordinal
10424
10424
  }, timeObject(gregData));
@@ -10426,7 +10426,7 @@ function gregorianToOrdinal(gregData) {
10426
10426
  function ordinalToGregorian(ordinalData) {
10427
10427
  var year = ordinalData.year, ordinal = ordinalData.ordinal;
10428
10428
  var _uncomputeOrdinal = uncomputeOrdinal(year, ordinal), month = _uncomputeOrdinal.month, day = _uncomputeOrdinal.day;
10429
- return _object_spread$2$1({
10429
+ return _object_spread$3$1({
10430
10430
  year: year,
10431
10431
  month: month,
10432
10432
  day: day
@@ -10722,7 +10722,7 @@ function parseZoneInfo(ts, offsetFormat, locale) {
10722
10722
  if (timeZone) {
10723
10723
  intlOpts.timeZone = timeZone;
10724
10724
  }
10725
- var modified = _object_spread$2$1({
10725
+ var modified = _object_spread$3$1({
10726
10726
  timeZoneName: offsetFormat
10727
10727
  }, intlOpts);
10728
10728
  var parsed = new Intl.DateTimeFormat(locale, modified).formatToParts(date).find(function(m) {
@@ -11081,7 +11081,7 @@ var macroTokenToFormatOpts = {
11081
11081
  if (this.systemLoc === null) {
11082
11082
  this.systemLoc = this.loc.redefaultToSystem();
11083
11083
  }
11084
- var df = this.systemLoc.dtFormatter(dt, _object_spread$2$1({}, this.opts, opts));
11084
+ var df = this.systemLoc.dtFormatter(dt, _object_spread$3$1({}, this.opts, opts));
11085
11085
  return df.format();
11086
11086
  }
11087
11087
  },
@@ -11089,7 +11089,7 @@ var macroTokenToFormatOpts = {
11089
11089
  key: "dtFormatter",
11090
11090
  value: function dtFormatter(dt) {
11091
11091
  var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
11092
- return this.loc.dtFormatter(dt, _object_spread$2$1({}, this.opts, opts));
11092
+ return this.loc.dtFormatter(dt, _object_spread$3$1({}, this.opts, opts));
11093
11093
  }
11094
11094
  },
11095
11095
  {
@@ -11125,7 +11125,7 @@ var macroTokenToFormatOpts = {
11125
11125
  if (this.opts.forceSimple) {
11126
11126
  return padStart(n, p);
11127
11127
  }
11128
- var opts = _object_spread$2$1({}, this.opts);
11128
+ var opts = _object_spread$3$1({}, this.opts);
11129
11129
  if (p > 0) {
11130
11130
  opts.padTo = p;
11131
11131
  }
@@ -11541,7 +11541,7 @@ function combineExtractors() {
11541
11541
  var _param = _sliced_to_array$5(param, 3), mergedVals = _param[0], mergedZone = _param[1], cursor = _param[2];
11542
11542
  var _ex = _sliced_to_array$5(ex(m, cursor), 3), val = _ex[0], zone = _ex[1], next = _ex[2];
11543
11543
  return [
11544
- _object_spread$2$1({}, mergedVals, val),
11544
+ _object_spread$3$1({}, mergedVals, val),
11545
11545
  zone || mergedZone,
11546
11546
  next
11547
11547
  ];
@@ -11852,7 +11852,7 @@ var lowOrderMatrix = {
11852
11852
  seconds: {
11853
11853
  milliseconds: 1000
11854
11854
  }
11855
- }, casualMatrix = _object_spread$2$1({
11855
+ }, casualMatrix = _object_spread$3$1({
11856
11856
  years: {
11857
11857
  quarters: 4,
11858
11858
  months: 12,
@@ -11880,7 +11880,7 @@ var lowOrderMatrix = {
11880
11880
  seconds: 30 * 24 * 60 * 60,
11881
11881
  milliseconds: 30 * 24 * 60 * 60 * 1000
11882
11882
  }
11883
- }, lowOrderMatrix), daysInYearAccurate = 146097.0 / 400, daysInMonthAccurate = 146097.0 / 4800, accurateMatrix = _object_spread$2$1({
11883
+ }, lowOrderMatrix), daysInYearAccurate = 146097.0 / 400, daysInMonthAccurate = 146097.0 / 4800, accurateMatrix = _object_spread$3$1({
11884
11884
  years: {
11885
11885
  quarters: 4,
11886
11886
  months: 12,
@@ -11927,7 +11927,7 @@ function clone$1(dur, alts) {
11927
11927
  var clear = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
11928
11928
  // deep merge for vals
11929
11929
  var conf = {
11930
- values: clear ? alts.values : _object_spread$2$1({}, dur.values, alts.values || {}),
11930
+ values: clear ? alts.values : _object_spread$3$1({}, dur.values, alts.values || {}),
11931
11931
  loc: dur.loc.clone(alts.loc),
11932
11932
  conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy,
11933
11933
  matrix: alts.matrix || dur.matrix
@@ -12126,7 +12126,7 @@ function removeZeroes(vals) {
12126
12126
  value: function toFormat(fmt) {
12127
12127
  var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
12128
12128
  // reverse-compat since 1.2; we always round down now, never up, and we do it by default
12129
- var fmtOpts = _object_spread_props$1$1(_object_spread$2$1({}, opts), {
12129
+ var fmtOpts = _object_spread_props$2$1(_object_spread$3$1({}, opts), {
12130
12130
  floor: opts.round !== false && opts.floor !== false
12131
12131
  });
12132
12132
  return this.isValid ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt) : INVALID$2;
@@ -12159,7 +12159,7 @@ function removeZeroes(vals) {
12159
12159
  if (isUndefined$2(val) || val === 0 && !showZeros) {
12160
12160
  return null;
12161
12161
  }
12162
- return _this.loc.numberFormatter(_object_spread_props$1$1(_object_spread$2$1({
12162
+ return _this.loc.numberFormatter(_object_spread_props$2$1(_object_spread$3$1({
12163
12163
  style: "unit",
12164
12164
  unitDisplay: "long"
12165
12165
  }, opts), {
@@ -12168,7 +12168,7 @@ function removeZeroes(vals) {
12168
12168
  }).filter(function(n) {
12169
12169
  return n;
12170
12170
  });
12171
- return this.loc.listFormatter(_object_spread$2$1({
12171
+ return this.loc.listFormatter(_object_spread$3$1({
12172
12172
  type: "conjunction",
12173
12173
  style: opts.listStyle || "narrow"
12174
12174
  }, opts)).format(l);
@@ -12182,7 +12182,7 @@ function removeZeroes(vals) {
12182
12182
  */ key: "toObject",
12183
12183
  value: function toObject() {
12184
12184
  if (!this.isValid) return {};
12185
- return _object_spread$2$1({}, this.values);
12185
+ return _object_spread$3$1({}, this.values);
12186
12186
  }
12187
12187
  },
12188
12188
  {
@@ -12235,7 +12235,7 @@ function removeZeroes(vals) {
12235
12235
  if (!this.isValid) return null;
12236
12236
  var millis = this.toMillis();
12237
12237
  if (millis < 0 || millis >= 86400000) return null;
12238
- opts = _object_spread_props$1$1(_object_spread$2$1({
12238
+ opts = _object_spread_props$2$1(_object_spread$3$1({
12239
12239
  suppressMilliseconds: false,
12240
12240
  suppressSeconds: false,
12241
12241
  includePrefix: false,
@@ -12406,7 +12406,7 @@ function removeZeroes(vals) {
12406
12406
  */ key: "set",
12407
12407
  value: function set(values) {
12408
12408
  if (!this.isValid) return this;
12409
- var mixed = _object_spread$2$1({}, this.values, normalizeObject(values, Duration.normalizeUnit));
12409
+ var mixed = _object_spread$3$1({}, this.values, normalizeObject(values, Duration.normalizeUnit));
12410
12410
  return clone$1(this, {
12411
12411
  values: mixed
12412
12412
  });
@@ -14017,7 +14017,7 @@ function diff(earlier, later, units, opts) {
14017
14017
  });
14018
14018
  if (lowerOrderUnits.length === 0) {
14019
14019
  if (highWater < later) {
14020
- highWater = cursor.plus(_define_property$4$1({}, lowestOrder, 1));
14020
+ highWater = cursor.plus(_define_property$5$1({}, lowestOrder, 1));
14021
14021
  }
14022
14022
  if (highWater !== cursor) {
14023
14023
  results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor);
@@ -14577,7 +14577,7 @@ function clone$2(inst, alts) {
14577
14577
  loc: inst.loc,
14578
14578
  invalid: inst.invalid
14579
14579
  };
14580
- return new DateTime(_object_spread_props$1$1(_object_spread$2$1({}, current, alts), {
14580
+ return new DateTime(_object_spread_props$2$1(_object_spread$3$1({}, current, alts), {
14581
14581
  old: current
14582
14582
  }));
14583
14583
  }
@@ -14631,7 +14631,7 @@ function objToTS(obj, offset, zone) {
14631
14631
  }
14632
14632
  // create a new DT instance by adding a duration, adjusting for DSTs
14633
14633
  function adjustTime(inst, dur) {
14634
- var oPre = inst.o, year = inst.c.year + Math.trunc(dur.years), month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3, c = _object_spread_props$1$1(_object_spread$2$1({}, inst.c), {
14634
+ var oPre = inst.o, year = inst.c.year + Math.trunc(dur.years), month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3, c = _object_spread_props$2$1(_object_spread$3$1({}, inst.c), {
14635
14635
  year: year,
14636
14636
  month: month,
14637
14637
  day: Math.min(inst.c.day, daysInMonth(year, month)) + Math.trunc(dur.days) + Math.trunc(dur.weeks) * 7
@@ -14662,7 +14662,7 @@ function adjustTime(inst, dur) {
14662
14662
  function parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) {
14663
14663
  var setZone = opts.setZone, zone = opts.zone;
14664
14664
  if (parsed && Object.keys(parsed).length !== 0 || parsedZone) {
14665
- var interpretationZone = parsedZone || zone, inst = DateTime.fromObject(parsed, _object_spread_props$1$1(_object_spread$2$1({}, opts), {
14665
+ var interpretationZone = parsedZone || zone, inst = DateTime.fromObject(parsed, _object_spread_props$2$1(_object_spread$3$1({}, opts), {
14666
14666
  zone: interpretationZone,
14667
14667
  specificOffset: specificOffset
14668
14668
  }));
@@ -15682,11 +15682,11 @@ function lastOpts(argList) {
15682
15682
  }
15683
15683
  var mixed;
15684
15684
  if (settingWeekStuff) {
15685
- mixed = weekToGregorian(_object_spread$2$1({}, gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek), normalized), minDaysInFirstWeek, startOfWeek);
15685
+ mixed = weekToGregorian(_object_spread$3$1({}, gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek), normalized), minDaysInFirstWeek, startOfWeek);
15686
15686
  } else if (!isUndefined$2(normalized.ordinal)) {
15687
- mixed = ordinalToGregorian(_object_spread$2$1({}, gregorianToOrdinal(this.c), normalized));
15687
+ mixed = ordinalToGregorian(_object_spread$3$1({}, gregorianToOrdinal(this.c), normalized));
15688
15688
  } else {
15689
- mixed = _object_spread$2$1({}, this.toObject(), normalized);
15689
+ mixed = _object_spread$3$1({}, this.toObject(), normalized);
15690
15690
  // if we didn't set the day but we ended up on an overflow date,
15691
15691
  // use the last day of the right month
15692
15692
  if (isUndefined$2(normalized.day)) {
@@ -15805,7 +15805,7 @@ function lastOpts(argList) {
15805
15805
  * @return {DateTime}
15806
15806
  */ key: "endOf",
15807
15807
  value: function endOf(unit, opts) {
15808
- return this.isValid ? this.plus(_define_property$4$1({}, unit, 1)).startOf(unit, opts).minus(1) : this;
15808
+ return this.isValid ? this.plus(_define_property$5$1({}, unit, 1)).startOf(unit, opts).minus(1) : this;
15809
15809
  }
15810
15810
  },
15811
15811
  {
@@ -16133,7 +16133,7 @@ function lastOpts(argList) {
16133
16133
  value: function toObject() {
16134
16134
  var opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
16135
16135
  if (!this.isValid) return {};
16136
- var base = _object_spread$2$1({}, this.c);
16136
+ var base = _object_spread$3$1({}, this.c);
16137
16137
  if (opts.includeConfig) {
16138
16138
  base.outputCalendar = this.outputCalendar;
16139
16139
  base.numberingSystem = this.loc.numberingSystem;
@@ -16173,7 +16173,7 @@ function lastOpts(argList) {
16173
16173
  if (!this.isValid || !otherDateTime.isValid) {
16174
16174
  return Duration.invalid("created by diffing an invalid DateTime");
16175
16175
  }
16176
- var durOpts = _object_spread$2$1({
16176
+ var durOpts = _object_spread$3$1({
16177
16177
  locale: this.locale,
16178
16178
  numberingSystem: this.numberingSystem
16179
16179
  }, opts);
@@ -16277,7 +16277,7 @@ function lastOpts(argList) {
16277
16277
  units = options.unit;
16278
16278
  unit = undefined;
16279
16279
  }
16280
- return diffRelative(base, this.plus(padding), _object_spread_props$1$1(_object_spread$2$1({}, options), {
16280
+ return diffRelative(base, this.plus(padding), _object_spread_props$2$1(_object_spread$3$1({}, options), {
16281
16281
  numeric: "always",
16282
16282
  units: units,
16283
16283
  unit: unit
@@ -16303,7 +16303,7 @@ function lastOpts(argList) {
16303
16303
  if (!this.isValid) return null;
16304
16304
  return diffRelative(options.base || DateTime.fromObject({}, {
16305
16305
  zone: this.zone
16306
- }), this, _object_spread_props$1$1(_object_spread$2$1({}, options), {
16306
+ }), this, _object_spread_props$2$1(_object_spread$3$1({}, options), {
16307
16307
  numeric: "auto",
16308
16308
  units: [
16309
16309
  "years",
@@ -22571,7 +22571,7 @@ function _create_class$r(Constructor, protoProps, staticProps) {
22571
22571
  if (staticProps) _defineProperties$r(Constructor, staticProps);
22572
22572
  return Constructor;
22573
22573
  }
22574
- function _define_property$3$1(obj, key, value) {
22574
+ function _define_property$4$1(obj, key, value) {
22575
22575
  if (key in obj) {
22576
22576
  Object.defineProperty(obj, key, {
22577
22577
  value: value,
@@ -22624,7 +22624,7 @@ function _non_iterable_rest$2$1() {
22624
22624
  function _non_iterable_spread$4() {
22625
22625
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
22626
22626
  }
22627
- function _object_spread$1$1(target) {
22627
+ function _object_spread$2$1(target) {
22628
22628
  for(var i = 1; i < arguments.length; i++){
22629
22629
  var source = arguments[i] != null ? arguments[i] : {};
22630
22630
  var ownKeys = Object.keys(source);
@@ -22634,12 +22634,12 @@ function _object_spread$1$1(target) {
22634
22634
  }));
22635
22635
  }
22636
22636
  ownKeys.forEach(function(key) {
22637
- _define_property$3$1(target, key, source[key]);
22637
+ _define_property$4$1(target, key, source[key]);
22638
22638
  });
22639
22639
  }
22640
22640
  return target;
22641
22641
  }
22642
- function ownKeys$4(object, enumerableOnly) {
22642
+ function ownKeys$1$1(object, enumerableOnly) {
22643
22643
  var keys = Object.keys(object);
22644
22644
  if (Object.getOwnPropertySymbols) {
22645
22645
  var symbols = Object.getOwnPropertySymbols(object);
@@ -22647,12 +22647,12 @@ function ownKeys$4(object, enumerableOnly) {
22647
22647
  }
22648
22648
  return keys;
22649
22649
  }
22650
- function _object_spread_props$4(target, source) {
22650
+ function _object_spread_props$1$1(target, source) {
22651
22651
  source = source != null ? source : {};
22652
22652
  if (Object.getOwnPropertyDescriptors) {
22653
22653
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
22654
22654
  } else {
22655
- ownKeys$4(Object(source)).forEach(function(key) {
22655
+ ownKeys$1$1(Object(source)).forEach(function(key) {
22656
22656
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
22657
22657
  });
22658
22658
  }
@@ -22845,14 +22845,14 @@ function indent(str, spaces) {
22845
22845
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
22846
22846
  // match is required
22847
22847
  if (!match) {
22848
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
22848
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
22849
22849
  v: nextMatch1
22850
22850
  };
22851
22851
  }
22852
22852
  var token = match.token, offset = match.offset;
22853
22853
  i1 += offset;
22854
22854
  if (token === ' ') {
22855
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
22855
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22856
22856
  }
22857
22857
  tokens1 = _to_consumable_array$4(tokens1).concat([
22858
22858
  token
@@ -22871,7 +22871,7 @@ function indent(str, spaces) {
22871
22871
  if (contextKeys.some(function(el) {
22872
22872
  return el.startsWith(name);
22873
22873
  })) {
22874
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
22874
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22875
22875
  }
22876
22876
  if (dateTimeIdentifiers.some(function(el) {
22877
22877
  return el === name;
@@ -22890,9 +22890,9 @@ function indent(str, spaces) {
22890
22890
  if (dateTimeIdentifiers.some(function(el) {
22891
22891
  return el.startsWith(name);
22892
22892
  })) {
22893
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
22893
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22894
22894
  }
22895
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
22895
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
22896
22896
  v: nextMatch1
22897
22897
  };
22898
22898
  };
@@ -22904,7 +22904,7 @@ function indent(str, spaces) {
22904
22904
  }
22905
22905
  }
22906
22906
  var _obj$1;
22907
- var identifiersMap = (_obj$1 = {}, _define_property$3$1(_obj$1, identifier, 'identifier'), _define_property$3$1(_obj$1, nameIdentifier, 'nameIdentifier'), _obj$1);
22907
+ var identifiersMap = (_obj$1 = {}, _define_property$4$1(_obj$1, identifier, 'identifier'), _define_property$4$1(_obj$1, nameIdentifier, 'nameIdentifier'), _obj$1);
22908
22908
  var identifiers = new ExternalTokenizer(function(input, stack) {
22909
22909
  LOG_PARSE_DEBUG && console.log('%s: T <identifier | nameIdentifier>', input.pos);
22910
22910
  var nameMatch = parseName(input, stack.context);
@@ -22953,11 +22953,11 @@ var insertSemicolon = new ExternalTokenizer(function(input, stack) {
22953
22953
  }
22954
22954
  });
22955
22955
  var _obj1;
22956
- var prefixedContextStarts = (_obj1 = {}, _define_property$3$1(_obj1, functionInvocationStart, 'FunctionInvocation'), _define_property$3$1(_obj1, filterExpressionStart, 'FilterExpression'), _define_property$3$1(_obj1, pathExpressionStart, 'PathExpression'), _obj1);
22956
+ var prefixedContextStarts = (_obj1 = {}, _define_property$4$1(_obj1, functionInvocationStart, 'FunctionInvocation'), _define_property$4$1(_obj1, filterExpressionStart, 'FilterExpression'), _define_property$4$1(_obj1, pathExpressionStart, 'PathExpression'), _obj1);
22957
22957
  var _obj2;
22958
- var contextStarts = (_obj2 = {}, _define_property$3$1(_obj2, contextStart, 'Context'), _define_property$3$1(_obj2, functionDefinitionStart, 'FunctionDefinition'), _define_property$3$1(_obj2, forExpressionStart, 'ForExpression'), _define_property$3$1(_obj2, listStart, 'List'), _define_property$3$1(_obj2, ifExpressionStart, 'IfExpression'), _define_property$3$1(_obj2, quantifiedExpressionStart, 'QuantifiedExpression'), _obj2);
22958
+ var contextStarts = (_obj2 = {}, _define_property$4$1(_obj2, contextStart, 'Context'), _define_property$4$1(_obj2, functionDefinitionStart, 'FunctionDefinition'), _define_property$4$1(_obj2, forExpressionStart, 'ForExpression'), _define_property$4$1(_obj2, listStart, 'List'), _define_property$4$1(_obj2, ifExpressionStart, 'IfExpression'), _define_property$4$1(_obj2, quantifiedExpressionStart, 'QuantifiedExpression'), _obj2);
22959
22959
  var _obj3;
22960
- var contextEnds = (_obj3 = {}, _define_property$3$1(_obj3, Context, 'Context'), _define_property$3$1(_obj3, FunctionDefinition, 'FunctionDefinition'), _define_property$3$1(_obj3, ForExpression, 'ForExpression'), _define_property$3$1(_obj3, List, 'List'), _define_property$3$1(_obj3, IfExpression, 'IfExpression'), _define_property$3$1(_obj3, QuantifiedExpression, 'QuantifiedExpression'), _define_property$3$1(_obj3, PathExpression, 'PathExpression'), _define_property$3$1(_obj3, FunctionInvocation, 'FunctionInvocation'), _define_property$3$1(_obj3, FilterExpression, 'FilterExpression'), _define_property$3$1(_obj3, ArithmeticExpression, 'ArithmeticExpression'), _obj3);
22960
+ var contextEnds = (_obj3 = {}, _define_property$4$1(_obj3, Context, 'Context'), _define_property$4$1(_obj3, FunctionDefinition, 'FunctionDefinition'), _define_property$4$1(_obj3, ForExpression, 'ForExpression'), _define_property$4$1(_obj3, List, 'List'), _define_property$4$1(_obj3, IfExpression, 'IfExpression'), _define_property$4$1(_obj3, QuantifiedExpression, 'QuantifiedExpression'), _define_property$4$1(_obj3, PathExpression, 'PathExpression'), _define_property$4$1(_obj3, FunctionInvocation, 'FunctionInvocation'), _define_property$4$1(_obj3, FilterExpression, 'FilterExpression'), _define_property$4$1(_obj3, ArithmeticExpression, 'ArithmeticExpression'), _obj3);
22961
22961
  /**
22962
22962
  * A simple producer that retrievs a value from
22963
22963
  * a given context. Used to lazily take things.
@@ -23045,7 +23045,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
23045
23045
  */ key: "set",
23046
23046
  value: function set(key, value) {
23047
23047
  var constructor = /** @type { typeof VariableContext } */ this.constructor;
23048
- return constructor.of(_object_spread_props$4(_object_spread$1$1({}, this.value), _define_property$3$1({}, key, value)));
23048
+ return constructor.of(_object_spread_props$1$1(_object_spread$2$1({}, this.value), _define_property$4$1({}, key, value)));
23049
23049
  }
23050
23050
  },
23051
23051
  {
@@ -23109,7 +23109,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
23109
23109
  if ((typeof context === "undefined" ? "undefined" : _type_of$z(context)) !== 'object') {
23110
23110
  return {};
23111
23111
  }
23112
- return _object_spread$1$1({}, context);
23112
+ return _object_spread$2$1({}, context);
23113
23113
  }
23114
23114
  },
23115
23115
  {
@@ -23127,13 +23127,13 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
23127
23127
  return reduce$1(this.__unwrap(other), function(merged, value, key) {
23128
23128
  if (_instanceof$f(value, ValueProducer)) {
23129
23129
  // keep value producers in tact
23130
- return _object_spread_props$4(_object_spread$1$1({}, merged), _define_property$3$1({}, key, value));
23130
+ return _object_spread_props$1$1(_object_spread$2$1({}, merged), _define_property$4$1({}, key, value));
23131
23131
  }
23132
23132
  value = _this.__unwrap(value);
23133
23133
  if (has$2(merged, key)) {
23134
23134
  value = _this.__merge(_this.__unwrap(merged[key]), value);
23135
23135
  }
23136
- return _object_spread_props$4(_object_spread$1$1({}, merged), _define_property$3$1({}, key, value));
23136
+ return _object_spread_props$1$1(_object_spread$2$1({}, merged), _define_property$4$1({}, key, value));
23137
23137
  }, this.__unwrap(context));
23138
23138
  }
23139
23139
  }
@@ -23352,7 +23352,7 @@ var Variables = /*#__PURE__*/ function() {
23352
23352
  */ key: "assign",
23353
23353
  value: function assign() {
23354
23354
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
23355
- return Variables.of(_object_spread$1$1({}, this, options));
23355
+ return Variables.of(_object_spread$2$1({}, this, options));
23356
23356
  }
23357
23357
  },
23358
23358
  {
@@ -23367,7 +23367,7 @@ var Variables = /*#__PURE__*/ function() {
23367
23367
  context: this.context,
23368
23368
  parent: this.parent
23369
23369
  };
23370
- return Variables.of(_object_spread$1$1({}, defaultOptions, options));
23370
+ return Variables.of(_object_spread$2$1({}, defaultOptions, options));
23371
23371
  }
23372
23372
  }
23373
23373
  ], [
@@ -23850,7 +23850,7 @@ function _create_class$q(Constructor, protoProps, staticProps) {
23850
23850
  if (protoProps) _defineProperties$q(Constructor.prototype, protoProps);
23851
23851
  return Constructor;
23852
23852
  }
23853
- function _define_property$2$1(obj, key, value) {
23853
+ function _define_property$3$1(obj, key, value) {
23854
23854
  if (key in obj) {
23855
23855
  Object.defineProperty(obj, key, {
23856
23856
  value: value,
@@ -25157,7 +25157,7 @@ var builtins = {
25157
25157
  if (key in context) {
25158
25158
  return FALSE;
25159
25159
  }
25160
- return Object.assign(Object.assign({}, context), _define_property$2$1({}, entry.key, entry.value));
25160
+ return Object.assign(Object.assign({}, context), _define_property$3$1({}, entry.key, entry.value));
25161
25161
  }, {});
25162
25162
  if (context === FALSE) {
25163
25163
  return null;
@@ -25210,7 +25210,7 @@ var builtins = {
25210
25210
  return null;
25211
25211
  }
25212
25212
  }
25213
- return Object.assign(Object.assign({}, context), _define_property$2$1({}, key, value));
25213
+ return Object.assign(Object.assign({}, context), _define_property$3$1({}, key, value));
25214
25214
  }
25215
25215
  function matches(a, b) {
25216
25216
  return a === b;
@@ -25937,7 +25937,7 @@ function evalNode(node, input, args) {
25937
25937
  return function(context) {
25938
25938
  return args.slice(1, -1).reduce(function(obj, arg) {
25939
25939
  var _arg = _sliced_to_array$1$1(arg(Object.assign(Object.assign({}, context), obj)), 2), key = _arg[0], value = _arg[1];
25940
- return Object.assign(Object.assign({}, obj), _define_property$2$1({}, key, value));
25940
+ return Object.assign(Object.assign({}, obj), _define_property$3$1({}, key, value));
25941
25941
  }, {});
25942
25942
  };
25943
25943
  case 'FunctionBody':
@@ -26434,7 +26434,7 @@ function extractValue(context, prop, _target) {
26434
26434
  'range'
26435
26435
  ].includes(getType(target))) {
26436
26436
  return target.map(function(t) {
26437
- return _define_property$2$1({}, prop, t);
26437
+ return _define_property$3$1({}, prop, t);
26438
26438
  });
26439
26439
  }
26440
26440
  return null;
@@ -42898,7 +42898,7 @@ function _class_call_check$1$1(instance, Constructor) {
42898
42898
  throw new TypeError("Cannot call a class as a function");
42899
42899
  }
42900
42900
  }
42901
- function _define_property$1$1(obj, key, value) {
42901
+ function _define_property$2$1(obj, key, value) {
42902
42902
  if (key in obj) {
42903
42903
  Object.defineProperty(obj, key, {
42904
42904
  value: value,
@@ -42978,7 +42978,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
42978
42978
  _class_call_check$1$1(this, CelParser);
42979
42979
  var _this;
42980
42980
  _this = _super.call(this, allTokens);
42981
- _define_property$1$1(_assert_this_initialized$1$1(_this), "expr", _this.RULE('expr', function() {
42981
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "expr", _this.RULE('expr', function() {
42982
42982
  _this.SUBRULE(_this.conditionalOr, {
42983
42983
  LABEL: 'conditionalOr'
42984
42984
  });
@@ -42993,7 +42993,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
42993
42993
  });
42994
42994
  });
42995
42995
  }));
42996
- _define_property$1$1(_assert_this_initialized$1$1(_this), "conditionalAnd", _this.RULE('conditionalAnd', function() {
42996
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "conditionalAnd", _this.RULE('conditionalAnd', function() {
42997
42997
  _this.SUBRULE(_this.relation, {
42998
42998
  LABEL: 'lhs'
42999
42999
  });
@@ -43004,7 +43004,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43004
43004
  });
43005
43005
  });
43006
43006
  }));
43007
- _define_property$1$1(_assert_this_initialized$1$1(_this), "conditionalOr", _this.RULE('conditionalOr', function() {
43007
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "conditionalOr", _this.RULE('conditionalOr', function() {
43008
43008
  _this.SUBRULE(_this.conditionalAnd, {
43009
43009
  LABEL: 'lhs'
43010
43010
  });
@@ -43015,7 +43015,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43015
43015
  });
43016
43016
  });
43017
43017
  }));
43018
- _define_property$1$1(_assert_this_initialized$1$1(_this), "relation", _this.RULE('relation', function() {
43018
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "relation", _this.RULE('relation', function() {
43019
43019
  _this.SUBRULE(_this.addition, {
43020
43020
  LABEL: 'lhs'
43021
43021
  });
@@ -43026,7 +43026,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43026
43026
  });
43027
43027
  });
43028
43028
  }));
43029
- _define_property$1$1(_assert_this_initialized$1$1(_this), "addition", _this.RULE('addition', function() {
43029
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "addition", _this.RULE('addition', function() {
43030
43030
  _this.SUBRULE(_this.multiplication, {
43031
43031
  LABEL: 'lhs'
43032
43032
  });
@@ -43037,7 +43037,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43037
43037
  });
43038
43038
  });
43039
43039
  }));
43040
- _define_property$1$1(_assert_this_initialized$1$1(_this), "multiplication", _this.RULE('multiplication', function() {
43040
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "multiplication", _this.RULE('multiplication', function() {
43041
43041
  _this.SUBRULE(_this.unaryExpression, {
43042
43042
  LABEL: 'lhs'
43043
43043
  });
@@ -43048,13 +43048,13 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43048
43048
  });
43049
43049
  });
43050
43050
  }));
43051
- _define_property$1$1(_assert_this_initialized$1$1(_this), "unaryExpression", _this.RULE('unaryExpression', function() {
43051
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "unaryExpression", _this.RULE('unaryExpression', function() {
43052
43052
  _this.MANY(function() {
43053
43053
  _this.CONSUME(UnaryOperator);
43054
43054
  });
43055
43055
  _this.SUBRULE(_this.atomicExpression);
43056
43056
  }));
43057
- _define_property$1$1(_assert_this_initialized$1$1(_this), "parenthesisExpression", _this.RULE('parenthesisExpression', function() {
43057
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "parenthesisExpression", _this.RULE('parenthesisExpression', function() {
43058
43058
  _this.CONSUME(OpenParenthesis, {
43059
43059
  LABEL: 'open'
43060
43060
  });
@@ -43063,7 +43063,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43063
43063
  LABEL: 'close'
43064
43064
  });
43065
43065
  }));
43066
- _define_property$1$1(_assert_this_initialized$1$1(_this), "listExpression", _this.RULE('listExpression', function() {
43066
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "listExpression", _this.RULE('listExpression', function() {
43067
43067
  _this.CONSUME(OpenBracket);
43068
43068
  _this.OPTION(function() {
43069
43069
  _this.SUBRULE(_this.expr, {
@@ -43083,7 +43083,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43083
43083
  });
43084
43084
  });
43085
43085
  }));
43086
- _define_property$1$1(_assert_this_initialized$1$1(_this), "mapExpression", _this.RULE('mapExpression', function() {
43086
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "mapExpression", _this.RULE('mapExpression', function() {
43087
43087
  _this.CONSUME(OpenCurlyBracket);
43088
43088
  _this.MANY(function() {
43089
43089
  _this.SUBRULE(_this.mapKeyValues, {
@@ -43108,7 +43108,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43108
43108
  ]);
43109
43109
  });
43110
43110
  }));
43111
- _define_property$1$1(_assert_this_initialized$1$1(_this), "mapKeyValues", _this.RULE('mapKeyValues', function() {
43111
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "mapKeyValues", _this.RULE('mapKeyValues', function() {
43112
43112
  _this.SUBRULE(_this.expr, {
43113
43113
  LABEL: 'key'
43114
43114
  });
@@ -43120,7 +43120,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43120
43120
  _this.CONSUME(Comma);
43121
43121
  });
43122
43122
  }));
43123
- _define_property$1$1(_assert_this_initialized$1$1(_this), "macrosExpression", _this.RULE('macrosExpression', function() {
43123
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "macrosExpression", _this.RULE('macrosExpression', function() {
43124
43124
  _this.CONSUME(Identifier);
43125
43125
  _this.CONSUME(OpenParenthesis);
43126
43126
  _this.OPTION(function() {
@@ -43136,7 +43136,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43136
43136
  });
43137
43137
  _this.CONSUME(CloseParenthesis);
43138
43138
  }));
43139
- _define_property$1$1(_assert_this_initialized$1$1(_this), "identifierExpression", _this.RULE('identifierExpression', function() {
43139
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "identifierExpression", _this.RULE('identifierExpression', function() {
43140
43140
  _this.CONSUME(Identifier);
43141
43141
  _this.MANY(function() {
43142
43142
  _this.OR([
@@ -43155,7 +43155,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43155
43155
  ]);
43156
43156
  });
43157
43157
  }));
43158
- _define_property$1$1(_assert_this_initialized$1$1(_this), "identifierDotExpression", _this.RULE('identifierDotExpression', function() {
43158
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "identifierDotExpression", _this.RULE('identifierDotExpression', function() {
43159
43159
  _this.CONSUME(Dot);
43160
43160
  _this.CONSUME(Identifier);
43161
43161
  // Optional method call with arguments (for collection macros)
@@ -43175,12 +43175,12 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
43175
43175
  _this.CONSUME(CloseParenthesis);
43176
43176
  });
43177
43177
  }));
43178
- _define_property$1$1(_assert_this_initialized$1$1(_this), "indexExpression", _this.RULE('indexExpression', function() {
43178
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "indexExpression", _this.RULE('indexExpression', function() {
43179
43179
  _this.CONSUME(OpenBracket);
43180
43180
  _this.SUBRULE(_this.expr);
43181
43181
  _this.CONSUME(CloseBracket);
43182
43182
  }));
43183
- _define_property$1$1(_assert_this_initialized$1$1(_this), "atomicExpression", _this.RULE('atomicExpression', function() {
43183
+ _define_property$2$1(_assert_this_initialized$1$1(_this), "atomicExpression", _this.RULE('atomicExpression', function() {
43184
43184
  _this.OR([
43185
43185
  {
43186
43186
  ALT: function() {
@@ -43289,7 +43289,7 @@ function _create_class$w(Constructor, protoProps, staticProps) {
43289
43289
  if (protoProps) _defineProperties$w(Constructor.prototype, protoProps);
43290
43290
  return Constructor;
43291
43291
  }
43292
- function _define_property$8(obj, key, value) {
43292
+ function _define_property$1$1(obj, key, value) {
43293
43293
  if (key in obj) {
43294
43294
  Object.defineProperty(obj, key, {
43295
43295
  value: value,
@@ -43361,7 +43361,7 @@ function _non_iterable_rest$6() {
43361
43361
  function _non_iterable_spread$7() {
43362
43362
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
43363
43363
  }
43364
- function _object_spread$7(target) {
43364
+ function _object_spread$1$1(target) {
43365
43365
  for(var i = 1; i < arguments.length; i++){
43366
43366
  var source = arguments[i] != null ? arguments[i] : {};
43367
43367
  var ownKeys = Object.keys(source);
@@ -43371,7 +43371,7 @@ function _object_spread$7(target) {
43371
43371
  }));
43372
43372
  }
43373
43373
  ownKeys.forEach(function(key) {
43374
- _define_property$8(target, key, source[key]);
43374
+ _define_property$1$1(target, key, source[key]);
43375
43375
  });
43376
43376
  }
43377
43377
  return target;
@@ -43457,13 +43457,13 @@ var CelVisitor = /*#__PURE__*/ function(BaseCelVisitor) {
43457
43457
  _class_call_check$B(this, CelVisitor);
43458
43458
  var _this;
43459
43459
  _this = _super.call(this);
43460
- _define_property$8(_assert_this_initialized$l(_this), "context", void 0);
43460
+ _define_property$1$1(_assert_this_initialized$l(_this), "context", void 0);
43461
43461
  /**
43462
43462
  * Tracks the current mode of the visitor to handle special cases.
43463
- */ _define_property$8(_assert_this_initialized$l(_this), "mode", Mode.normal);
43464
- _define_property$8(_assert_this_initialized$l(_this), "functions", void 0);
43463
+ */ _define_property$1$1(_assert_this_initialized$l(_this), "mode", Mode.normal);
43464
+ _define_property$1$1(_assert_this_initialized$l(_this), "functions", void 0);
43465
43465
  _this.context = context || {};
43466
- _this.functions = _object_spread$7({}, defaultFunctions, functions || {});
43466
+ _this.functions = _object_spread$1$1({}, defaultFunctions, functions || {});
43467
43467
  _this.validateVisitor();
43468
43468
  return _this;
43469
43469
  }
@@ -44204,6 +44204,198 @@ function evaluate(expression, context, functions) {
44204
44204
  }
44205
44205
  return toAstVisitorInstance.visit(result.cst);
44206
44206
  }
44207
+ // Latin-1 Supplement
44208
+ // upper case ranges
44209
+ // [À-ÖØ-ß]
44210
+ // lower case ranges
44211
+ // [à-öø-ÿ]
44212
+ var magicSplit = /^[a-zà-öø-ÿа-я]+|[A-ZÀ-ÖØ-ßА-Я][a-zà-öø-ÿа-я]+|[a-zà-öø-ÿа-я]+|[0-9]+|[A-ZÀ-ÖØ-ßА-Я]+(?![a-zà-öø-ÿа-я])/g;
44213
+ var spaceSplit = /\S+/g;
44214
+ /**
44215
+ * A string.matchAll function that will return an array of "string parts" and the indexes at which it split each part
44216
+ */ function getPartsAndIndexes(string, splitRegex) {
44217
+ var result = {
44218
+ parts: [],
44219
+ prefixes: []
44220
+ };
44221
+ var matches = string.matchAll(splitRegex);
44222
+ var lastWordEndIndex = 0;
44223
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
44224
+ try {
44225
+ for(var _iterator = matches[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
44226
+ var match = _step.value;
44227
+ if (typeof match.index !== 'number') continue;
44228
+ var word = match[0];
44229
+ result.parts.push(word);
44230
+ var prefix = string.slice(lastWordEndIndex, match.index).trim();
44231
+ result.prefixes.push(prefix);
44232
+ lastWordEndIndex = match.index + word.length;
44233
+ }
44234
+ } catch (err) {
44235
+ _didIteratorError = true;
44236
+ _iteratorError = err;
44237
+ } finally{
44238
+ try {
44239
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
44240
+ _iterator.return();
44241
+ }
44242
+ } finally{
44243
+ if (_didIteratorError) {
44244
+ throw _iteratorError;
44245
+ }
44246
+ }
44247
+ }
44248
+ var tail = string.slice(lastWordEndIndex).trim();
44249
+ if (tail) {
44250
+ result.parts.push('');
44251
+ result.prefixes.push(tail);
44252
+ }
44253
+ return result;
44254
+ }
44255
+ /**
44256
+ * A function that splits a string on words and returns an array of words.
44257
+ * - It can prefix each word with a given character
44258
+ * - It can strip or keep special characters, this affects the logic for adding a prefix as well
44259
+ */ function splitAndPrefix(string, options) {
44260
+ var _ref = options || {}, _ref_keepSpecialCharacters = _ref.keepSpecialCharacters, keepSpecialCharacters = _ref_keepSpecialCharacters === void 0 ? false : _ref_keepSpecialCharacters, keep = _ref.keep, _ref_prefix = _ref.prefix, prefix = _ref_prefix === void 0 ? '' : _ref_prefix;
44261
+ var normalString = string.trim().normalize('NFC');
44262
+ var hasSpaces = normalString.includes(' ');
44263
+ var split = hasSpaces ? spaceSplit : magicSplit;
44264
+ var partsAndIndexes = getPartsAndIndexes(normalString, split);
44265
+ return partsAndIndexes.parts.map(function(_part, i) {
44266
+ var foundPrefix = partsAndIndexes.prefixes[i] || '';
44267
+ var part = _part;
44268
+ if (keepSpecialCharacters === false) {
44269
+ if (keep) {
44270
+ part = part.normalize('NFD').replace(new RegExp("[^a-zA-Z\xd8\xdf\xf80-9".concat(keep.join(''), "]"), 'g'), '');
44271
+ }
44272
+ if (!keep) {
44273
+ part = part.normalize('NFD').replace(/[^a-zA-ZØßø0-9]/g, '');
44274
+ foundPrefix = '';
44275
+ }
44276
+ }
44277
+ if (keep && foundPrefix) {
44278
+ foundPrefix = foundPrefix.replace(new RegExp("[^".concat(keep.join(''), "]"), 'g'), '');
44279
+ }
44280
+ // the first word doesn't need a prefix, so only return the found prefix
44281
+ if (i === 0) {
44282
+ // console.log(`foundPrefix → `, foundPrefix)
44283
+ return foundPrefix + part;
44284
+ }
44285
+ if (!foundPrefix && !part) return '';
44286
+ if (!hasSpaces) {
44287
+ // return the found prefix OR fall back to a given prefix
44288
+ return (foundPrefix || prefix) + part;
44289
+ }
44290
+ // space based sentence was split on spaces, so only return found prefixes
44291
+ if (!foundPrefix && prefix.match(/\s/)) {
44292
+ // in this case we have no more found prefix, it was trimmed, but we're looking to add a space
44293
+ // so let's return that space
44294
+ return ' ' + part;
44295
+ }
44296
+ return (foundPrefix || prefix) + part;
44297
+ }).filter(Boolean);
44298
+ }
44299
+ /**
44300
+ * Capitalises a single word
44301
+ * @returns the word with the first character in uppercase and the rest in lowercase
44302
+ */ function capitaliseWord(string) {
44303
+ var match = string.matchAll(magicSplit).next().value;
44304
+ var firstLetterIndex = match ? match.index : 0;
44305
+ return string.slice(0, firstLetterIndex + 1).toUpperCase() + string.slice(firstLetterIndex + 1).toLowerCase();
44306
+ }
44307
+ function _define_property$8(obj, key, value) {
44308
+ if (key in obj) {
44309
+ Object.defineProperty(obj, key, {
44310
+ value: value,
44311
+ enumerable: true,
44312
+ configurable: true,
44313
+ writable: true
44314
+ });
44315
+ } else {
44316
+ obj[key] = value;
44317
+ }
44318
+ return obj;
44319
+ }
44320
+ function _object_spread$7(target) {
44321
+ for(var i = 1; i < arguments.length; i++){
44322
+ var source = arguments[i] != null ? arguments[i] : {};
44323
+ var ownKeys = Object.keys(source);
44324
+ if (typeof Object.getOwnPropertySymbols === "function") {
44325
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
44326
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
44327
+ }));
44328
+ }
44329
+ ownKeys.forEach(function(key) {
44330
+ _define_property$8(target, key, source[key]);
44331
+ });
44332
+ }
44333
+ return target;
44334
+ }
44335
+ function ownKeys$4(object, enumerableOnly) {
44336
+ var keys = Object.keys(object);
44337
+ if (Object.getOwnPropertySymbols) {
44338
+ var symbols = Object.getOwnPropertySymbols(object);
44339
+ keys.push.apply(keys, symbols);
44340
+ }
44341
+ return keys;
44342
+ }
44343
+ function _object_spread_props$4(target, source) {
44344
+ source = source != null ? source : {};
44345
+ if (Object.getOwnPropertyDescriptors) {
44346
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
44347
+ } else {
44348
+ ownKeys$4(Object(source)).forEach(function(key) {
44349
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
44350
+ });
44351
+ }
44352
+ return target;
44353
+ }
44354
+ /**
44355
+ * # 🐪 camelCase
44356
+ * converts a string to camelCase
44357
+ * - first lowercase then all capitalised
44358
+ * - *strips away* special characters by default
44359
+ *
44360
+ * @example
44361
+ * camelCase('$catDog') === 'catDog'
44362
+ * @example
44363
+ * camelCase('$catDog', { keepSpecialCharacters: true }) === '$catDog'
44364
+ */ function camelCase(string, options) {
44365
+ return splitAndPrefix(string, options).reduce(function(result, word, index) {
44366
+ return index === 0 || !(word[0] || '').match(magicSplit) ? result + word.toLowerCase() : result + capitaliseWord(word);
44367
+ }, '');
44368
+ }
44369
+ /**
44370
+ * # 🥙 kebab-case
44371
+ * converts a string to kebab-case
44372
+ * - hyphenated lowercase
44373
+ * - *strips away* special characters by default
44374
+ *
44375
+ * @example
44376
+ * kebabCase('$catDog') === 'cat-dog'
44377
+ * @example
44378
+ * kebabCase('$catDog', { keepSpecialCharacters: true }) === '$cat-dog'
44379
+ */ function kebabCase(string, options) {
44380
+ return splitAndPrefix(string, _object_spread_props$4(_object_spread$7({}, options), {
44381
+ prefix: '-'
44382
+ })).join('').toLowerCase();
44383
+ }
44384
+ /**
44385
+ * # 🐍 snake_case
44386
+ * converts a string to snake_case
44387
+ * - underscored lowercase
44388
+ * - *strips away* special characters by default
44389
+ *
44390
+ * @example
44391
+ * snakeCase('$catDog') === 'cat_dog'
44392
+ * @example
44393
+ * snakeCase('$catDog', { keepSpecialCharacters: true }) === '$cat_dog'
44394
+ */ function snakeCase(string, options) {
44395
+ return splitAndPrefix(string, _object_spread_props$4(_object_spread$7({}, options), {
44396
+ prefix: '_'
44397
+ })).join('').toLowerCase();
44398
+ }
44207
44399
  const Handlebars = handlebars_min || HandlebarsNamespace;
44208
44400
  Handlebars.registerHelper('JSONstringify', function(value) {
44209
44401
  return JSON.stringify(value);
@@ -44218,7 +44410,10 @@ const DIGIPAIR_FUNCTIONS = {
44218
44410
  encodeUTF8: (value)=>Array.from(new TextEncoder().encode(value)).map((b)=>String.fromCharCode(b)).join(''),
44219
44411
  decodeUTF8: (value)=>new TextDecoder().decode(new Uint8Array(Array.from(value).map((c)=>c.charCodeAt(0)))),
44220
44412
  JSONparse: (value)=>JSON.parse(value),
44221
- JSONstringify: (value)=>JSON.stringify(value)
44413
+ JSONstringify: (value)=>JSON.stringify(value),
44414
+ camelCase: (value)=>camelCase(value),
44415
+ kebabCase: (value)=>kebabCase(value),
44416
+ snakeCase: (value)=>snakeCase(value)
44222
44417
  };
44223
44418
  const globalInstance = typeof window === 'undefined' ? global : window;
44224
44419
  const _config = globalInstance.__DIGIPAIR_CONFIG__ = globalInstance.__DIGIPAIR_CONFIG__ ?? {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-client-mcp",
3
- "version": "0.117.6",
3
+ "version": "0.117.8",
4
4
  "main": "./index.cjs.js",
5
5
  "module": "./index.esm.js",
6
6
  "types": "./dist/index.d.ts",