@digipair/skill-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.
- package/dist/index.esm.js +289 -94
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -8197,7 +8197,7 @@ function _create_class$v(Constructor, protoProps, staticProps) {
|
|
|
8197
8197
|
if (staticProps) _defineProperties$v(Constructor, staticProps);
|
|
8198
8198
|
return Constructor;
|
|
8199
8199
|
}
|
|
8200
|
-
function _define_property$
|
|
8200
|
+
function _define_property$5$1(obj, key, value) {
|
|
8201
8201
|
if (key in obj) {
|
|
8202
8202
|
Object.defineProperty(obj, key, {
|
|
8203
8203
|
value: value,
|
|
@@ -8272,7 +8272,7 @@ function _non_iterable_rest$5$1() {
|
|
|
8272
8272
|
function _non_iterable_spread$6$1() {
|
|
8273
8273
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8274
8274
|
}
|
|
8275
|
-
function _object_spread$
|
|
8275
|
+
function _object_spread$3$1(target) {
|
|
8276
8276
|
for(var i = 1; i < arguments.length; i++){
|
|
8277
8277
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8278
8278
|
var ownKeys = Object.keys(source);
|
|
@@ -8282,12 +8282,12 @@ function _object_spread$2$1(target) {
|
|
|
8282
8282
|
}));
|
|
8283
8283
|
}
|
|
8284
8284
|
ownKeys.forEach(function(key) {
|
|
8285
|
-
_define_property$
|
|
8285
|
+
_define_property$5$1(target, key, source[key]);
|
|
8286
8286
|
});
|
|
8287
8287
|
}
|
|
8288
8288
|
return target;
|
|
8289
8289
|
}
|
|
8290
|
-
function ownKeys$
|
|
8290
|
+
function ownKeys$2$1(object, enumerableOnly) {
|
|
8291
8291
|
var keys = Object.keys(object);
|
|
8292
8292
|
if (Object.getOwnPropertySymbols) {
|
|
8293
8293
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8295,12 +8295,12 @@ function ownKeys$1$1(object, enumerableOnly) {
|
|
|
8295
8295
|
}
|
|
8296
8296
|
return keys;
|
|
8297
8297
|
}
|
|
8298
|
-
function _object_spread_props$
|
|
8298
|
+
function _object_spread_props$2$1(target, source) {
|
|
8299
8299
|
source = source != null ? source : {};
|
|
8300
8300
|
if (Object.getOwnPropertyDescriptors) {
|
|
8301
8301
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8302
8302
|
} else {
|
|
8303
|
-
ownKeys$
|
|
8303
|
+
ownKeys$2$1(Object(source)).forEach(function(key) {
|
|
8304
8304
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8305
8305
|
});
|
|
8306
8306
|
}
|
|
@@ -9171,7 +9171,7 @@ function getCachedWeekInfo(locString) {
|
|
|
9171
9171
|
data = "getWeekInfo" in locale ? locale.getWeekInfo() : locale.weekInfo;
|
|
9172
9172
|
// minimalDays was removed from WeekInfo: https://github.com/tc39/proposal-intl-locale-info/issues/86
|
|
9173
9173
|
if (!("minimalDays" in data)) {
|
|
9174
|
-
data = _object_spread$
|
|
9174
|
+
data = _object_spread$3$1({}, fallbackWeekSettings, data);
|
|
9175
9175
|
}
|
|
9176
9176
|
weekInfoCache.set(locString, data);
|
|
9177
9177
|
}
|
|
@@ -9278,7 +9278,7 @@ function supportsFastNumbers(loc) {
|
|
|
9278
9278
|
"floor"
|
|
9279
9279
|
]);
|
|
9280
9280
|
if (!forceSimple || Object.keys(otherOpts).length > 0) {
|
|
9281
|
-
var intlOpts = _object_spread$
|
|
9281
|
+
var intlOpts = _object_spread$3$1({
|
|
9282
9282
|
useGrouping: false
|
|
9283
9283
|
}, opts);
|
|
9284
9284
|
if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;
|
|
@@ -9348,7 +9348,7 @@ function supportsFastNumbers(loc) {
|
|
|
9348
9348
|
});
|
|
9349
9349
|
this.originalZone = dt.zone;
|
|
9350
9350
|
}
|
|
9351
|
-
var intlOpts = _object_spread$
|
|
9351
|
+
var intlOpts = _object_spread$3$1({}, this.opts);
|
|
9352
9352
|
intlOpts.timeZone = intlOpts.timeZone || z;
|
|
9353
9353
|
this.dtf = getCachedDTF(intl, intlOpts);
|
|
9354
9354
|
}
|
|
@@ -9379,7 +9379,7 @@ function supportsFastNumbers(loc) {
|
|
|
9379
9379
|
locale: _this.dt.locale,
|
|
9380
9380
|
format: _this.opts.timeZoneName
|
|
9381
9381
|
});
|
|
9382
|
-
return _object_spread_props$
|
|
9382
|
+
return _object_spread_props$2$1(_object_spread$3$1({}, part), {
|
|
9383
9383
|
value: offsetName
|
|
9384
9384
|
});
|
|
9385
9385
|
} else {
|
|
@@ -9404,7 +9404,7 @@ function supportsFastNumbers(loc) {
|
|
|
9404
9404
|
*/ var PolyRelFormatter = /*#__PURE__*/ function() {
|
|
9405
9405
|
function PolyRelFormatter(intl, isEnglish, opts) {
|
|
9406
9406
|
_class_call_check$A(this, PolyRelFormatter);
|
|
9407
|
-
this.opts = _object_spread$
|
|
9407
|
+
this.opts = _object_spread$3$1({
|
|
9408
9408
|
style: "long"
|
|
9409
9409
|
}, opts);
|
|
9410
9410
|
if (!isEnglish && hasRelative()) {
|
|
@@ -9499,7 +9499,7 @@ var fallbackWeekSettings = {
|
|
|
9499
9499
|
key: "redefaultToEN",
|
|
9500
9500
|
value: function redefaultToEN() {
|
|
9501
9501
|
var alts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
9502
|
-
return this.clone(_object_spread_props$
|
|
9502
|
+
return this.clone(_object_spread_props$2$1(_object_spread$3$1({}, alts), {
|
|
9503
9503
|
defaultToEN: true
|
|
9504
9504
|
}));
|
|
9505
9505
|
}
|
|
@@ -9508,7 +9508,7 @@ var fallbackWeekSettings = {
|
|
|
9508
9508
|
key: "redefaultToSystem",
|
|
9509
9509
|
value: function redefaultToSystem() {
|
|
9510
9510
|
var alts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
9511
|
-
return this.clone(_object_spread_props$
|
|
9511
|
+
return this.clone(_object_spread_props$2$1(_object_spread$3$1({}, alts), {
|
|
9512
9512
|
defaultToEN: false
|
|
9513
9513
|
}));
|
|
9514
9514
|
}
|
|
@@ -10387,7 +10387,7 @@ function isoWeekdayToLocal(isoWeekday, startOfWeek) {
|
|
|
10387
10387
|
} else {
|
|
10388
10388
|
weekYear = year;
|
|
10389
10389
|
}
|
|
10390
|
-
return _object_spread$
|
|
10390
|
+
return _object_spread$3$1({
|
|
10391
10391
|
weekYear: weekYear,
|
|
10392
10392
|
weekNumber: weekNumber,
|
|
10393
10393
|
weekday: weekday
|
|
@@ -10407,7 +10407,7 @@ function weekToGregorian(weekData) {
|
|
|
10407
10407
|
year = weekYear;
|
|
10408
10408
|
}
|
|
10409
10409
|
var _uncomputeOrdinal = uncomputeOrdinal(year, ordinal), month = _uncomputeOrdinal.month, day = _uncomputeOrdinal.day;
|
|
10410
|
-
return _object_spread$
|
|
10410
|
+
return _object_spread$3$1({
|
|
10411
10411
|
year: year,
|
|
10412
10412
|
month: month,
|
|
10413
10413
|
day: day
|
|
@@ -10416,7 +10416,7 @@ function weekToGregorian(weekData) {
|
|
|
10416
10416
|
function gregorianToOrdinal(gregData) {
|
|
10417
10417
|
var year = gregData.year, month = gregData.month, day = gregData.day;
|
|
10418
10418
|
var ordinal = computeOrdinal(year, month, day);
|
|
10419
|
-
return _object_spread$
|
|
10419
|
+
return _object_spread$3$1({
|
|
10420
10420
|
year: year,
|
|
10421
10421
|
ordinal: ordinal
|
|
10422
10422
|
}, timeObject(gregData));
|
|
@@ -10424,7 +10424,7 @@ function gregorianToOrdinal(gregData) {
|
|
|
10424
10424
|
function ordinalToGregorian(ordinalData) {
|
|
10425
10425
|
var year = ordinalData.year, ordinal = ordinalData.ordinal;
|
|
10426
10426
|
var _uncomputeOrdinal = uncomputeOrdinal(year, ordinal), month = _uncomputeOrdinal.month, day = _uncomputeOrdinal.day;
|
|
10427
|
-
return _object_spread$
|
|
10427
|
+
return _object_spread$3$1({
|
|
10428
10428
|
year: year,
|
|
10429
10429
|
month: month,
|
|
10430
10430
|
day: day
|
|
@@ -10720,7 +10720,7 @@ function parseZoneInfo(ts, offsetFormat, locale) {
|
|
|
10720
10720
|
if (timeZone) {
|
|
10721
10721
|
intlOpts.timeZone = timeZone;
|
|
10722
10722
|
}
|
|
10723
|
-
var modified = _object_spread$
|
|
10723
|
+
var modified = _object_spread$3$1({
|
|
10724
10724
|
timeZoneName: offsetFormat
|
|
10725
10725
|
}, intlOpts);
|
|
10726
10726
|
var parsed = new Intl.DateTimeFormat(locale, modified).formatToParts(date).find(function(m) {
|
|
@@ -11079,7 +11079,7 @@ var macroTokenToFormatOpts = {
|
|
|
11079
11079
|
if (this.systemLoc === null) {
|
|
11080
11080
|
this.systemLoc = this.loc.redefaultToSystem();
|
|
11081
11081
|
}
|
|
11082
|
-
var df = this.systemLoc.dtFormatter(dt, _object_spread$
|
|
11082
|
+
var df = this.systemLoc.dtFormatter(dt, _object_spread$3$1({}, this.opts, opts));
|
|
11083
11083
|
return df.format();
|
|
11084
11084
|
}
|
|
11085
11085
|
},
|
|
@@ -11087,7 +11087,7 @@ var macroTokenToFormatOpts = {
|
|
|
11087
11087
|
key: "dtFormatter",
|
|
11088
11088
|
value: function dtFormatter(dt) {
|
|
11089
11089
|
var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
11090
|
-
return this.loc.dtFormatter(dt, _object_spread$
|
|
11090
|
+
return this.loc.dtFormatter(dt, _object_spread$3$1({}, this.opts, opts));
|
|
11091
11091
|
}
|
|
11092
11092
|
},
|
|
11093
11093
|
{
|
|
@@ -11123,7 +11123,7 @@ var macroTokenToFormatOpts = {
|
|
|
11123
11123
|
if (this.opts.forceSimple) {
|
|
11124
11124
|
return padStart(n, p);
|
|
11125
11125
|
}
|
|
11126
|
-
var opts = _object_spread$
|
|
11126
|
+
var opts = _object_spread$3$1({}, this.opts);
|
|
11127
11127
|
if (p > 0) {
|
|
11128
11128
|
opts.padTo = p;
|
|
11129
11129
|
}
|
|
@@ -11539,7 +11539,7 @@ function combineExtractors() {
|
|
|
11539
11539
|
var _param = _sliced_to_array$5$1(param, 3), mergedVals = _param[0], mergedZone = _param[1], cursor = _param[2];
|
|
11540
11540
|
var _ex = _sliced_to_array$5$1(ex(m, cursor), 3), val = _ex[0], zone = _ex[1], next = _ex[2];
|
|
11541
11541
|
return [
|
|
11542
|
-
_object_spread$
|
|
11542
|
+
_object_spread$3$1({}, mergedVals, val),
|
|
11543
11543
|
zone || mergedZone,
|
|
11544
11544
|
next
|
|
11545
11545
|
];
|
|
@@ -11850,7 +11850,7 @@ var lowOrderMatrix = {
|
|
|
11850
11850
|
seconds: {
|
|
11851
11851
|
milliseconds: 1000
|
|
11852
11852
|
}
|
|
11853
|
-
}, casualMatrix = _object_spread$
|
|
11853
|
+
}, casualMatrix = _object_spread$3$1({
|
|
11854
11854
|
years: {
|
|
11855
11855
|
quarters: 4,
|
|
11856
11856
|
months: 12,
|
|
@@ -11878,7 +11878,7 @@ var lowOrderMatrix = {
|
|
|
11878
11878
|
seconds: 30 * 24 * 60 * 60,
|
|
11879
11879
|
milliseconds: 30 * 24 * 60 * 60 * 1000
|
|
11880
11880
|
}
|
|
11881
|
-
}, lowOrderMatrix), daysInYearAccurate = 146097.0 / 400, daysInMonthAccurate = 146097.0 / 4800, accurateMatrix = _object_spread$
|
|
11881
|
+
}, lowOrderMatrix), daysInYearAccurate = 146097.0 / 400, daysInMonthAccurate = 146097.0 / 4800, accurateMatrix = _object_spread$3$1({
|
|
11882
11882
|
years: {
|
|
11883
11883
|
quarters: 4,
|
|
11884
11884
|
months: 12,
|
|
@@ -11925,7 +11925,7 @@ function clone$1(dur, alts) {
|
|
|
11925
11925
|
var clear = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
11926
11926
|
// deep merge for vals
|
|
11927
11927
|
var conf = {
|
|
11928
|
-
values: clear ? alts.values : _object_spread$
|
|
11928
|
+
values: clear ? alts.values : _object_spread$3$1({}, dur.values, alts.values || {}),
|
|
11929
11929
|
loc: dur.loc.clone(alts.loc),
|
|
11930
11930
|
conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy,
|
|
11931
11931
|
matrix: alts.matrix || dur.matrix
|
|
@@ -12124,7 +12124,7 @@ function removeZeroes(vals) {
|
|
|
12124
12124
|
value: function toFormat(fmt) {
|
|
12125
12125
|
var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
12126
12126
|
// reverse-compat since 1.2; we always round down now, never up, and we do it by default
|
|
12127
|
-
var fmtOpts = _object_spread_props$
|
|
12127
|
+
var fmtOpts = _object_spread_props$2$1(_object_spread$3$1({}, opts), {
|
|
12128
12128
|
floor: opts.round !== false && opts.floor !== false
|
|
12129
12129
|
});
|
|
12130
12130
|
return this.isValid ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt) : INVALID$2;
|
|
@@ -12157,7 +12157,7 @@ function removeZeroes(vals) {
|
|
|
12157
12157
|
if (isUndefined$2(val) || val === 0 && !showZeros) {
|
|
12158
12158
|
return null;
|
|
12159
12159
|
}
|
|
12160
|
-
return _this.loc.numberFormatter(_object_spread_props$
|
|
12160
|
+
return _this.loc.numberFormatter(_object_spread_props$2$1(_object_spread$3$1({
|
|
12161
12161
|
style: "unit",
|
|
12162
12162
|
unitDisplay: "long"
|
|
12163
12163
|
}, opts), {
|
|
@@ -12166,7 +12166,7 @@ function removeZeroes(vals) {
|
|
|
12166
12166
|
}).filter(function(n) {
|
|
12167
12167
|
return n;
|
|
12168
12168
|
});
|
|
12169
|
-
return this.loc.listFormatter(_object_spread$
|
|
12169
|
+
return this.loc.listFormatter(_object_spread$3$1({
|
|
12170
12170
|
type: "conjunction",
|
|
12171
12171
|
style: opts.listStyle || "narrow"
|
|
12172
12172
|
}, opts)).format(l);
|
|
@@ -12180,7 +12180,7 @@ function removeZeroes(vals) {
|
|
|
12180
12180
|
*/ key: "toObject",
|
|
12181
12181
|
value: function toObject() {
|
|
12182
12182
|
if (!this.isValid) return {};
|
|
12183
|
-
return _object_spread$
|
|
12183
|
+
return _object_spread$3$1({}, this.values);
|
|
12184
12184
|
}
|
|
12185
12185
|
},
|
|
12186
12186
|
{
|
|
@@ -12233,7 +12233,7 @@ function removeZeroes(vals) {
|
|
|
12233
12233
|
if (!this.isValid) return null;
|
|
12234
12234
|
var millis = this.toMillis();
|
|
12235
12235
|
if (millis < 0 || millis >= 86400000) return null;
|
|
12236
|
-
opts = _object_spread_props$
|
|
12236
|
+
opts = _object_spread_props$2$1(_object_spread$3$1({
|
|
12237
12237
|
suppressMilliseconds: false,
|
|
12238
12238
|
suppressSeconds: false,
|
|
12239
12239
|
includePrefix: false,
|
|
@@ -12404,7 +12404,7 @@ function removeZeroes(vals) {
|
|
|
12404
12404
|
*/ key: "set",
|
|
12405
12405
|
value: function set(values) {
|
|
12406
12406
|
if (!this.isValid) return this;
|
|
12407
|
-
var mixed = _object_spread$
|
|
12407
|
+
var mixed = _object_spread$3$1({}, this.values, normalizeObject(values, Duration.normalizeUnit));
|
|
12408
12408
|
return clone$1(this, {
|
|
12409
12409
|
values: mixed
|
|
12410
12410
|
});
|
|
@@ -14015,7 +14015,7 @@ function diff(earlier, later, units, opts) {
|
|
|
14015
14015
|
});
|
|
14016
14016
|
if (lowerOrderUnits.length === 0) {
|
|
14017
14017
|
if (highWater < later) {
|
|
14018
|
-
highWater = cursor.plus(_define_property$
|
|
14018
|
+
highWater = cursor.plus(_define_property$5$1({}, lowestOrder, 1));
|
|
14019
14019
|
}
|
|
14020
14020
|
if (highWater !== cursor) {
|
|
14021
14021
|
results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor);
|
|
@@ -14575,7 +14575,7 @@ function clone$2(inst, alts) {
|
|
|
14575
14575
|
loc: inst.loc,
|
|
14576
14576
|
invalid: inst.invalid
|
|
14577
14577
|
};
|
|
14578
|
-
return new DateTime(_object_spread_props$
|
|
14578
|
+
return new DateTime(_object_spread_props$2$1(_object_spread$3$1({}, current, alts), {
|
|
14579
14579
|
old: current
|
|
14580
14580
|
}));
|
|
14581
14581
|
}
|
|
@@ -14629,7 +14629,7 @@ function objToTS(obj, offset, zone) {
|
|
|
14629
14629
|
}
|
|
14630
14630
|
// create a new DT instance by adding a duration, adjusting for DSTs
|
|
14631
14631
|
function adjustTime(inst, dur) {
|
|
14632
|
-
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$
|
|
14632
|
+
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), {
|
|
14633
14633
|
year: year,
|
|
14634
14634
|
month: month,
|
|
14635
14635
|
day: Math.min(inst.c.day, daysInMonth(year, month)) + Math.trunc(dur.days) + Math.trunc(dur.weeks) * 7
|
|
@@ -14660,7 +14660,7 @@ function adjustTime(inst, dur) {
|
|
|
14660
14660
|
function parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) {
|
|
14661
14661
|
var setZone = opts.setZone, zone = opts.zone;
|
|
14662
14662
|
if (parsed && Object.keys(parsed).length !== 0 || parsedZone) {
|
|
14663
|
-
var interpretationZone = parsedZone || zone, inst = DateTime.fromObject(parsed, _object_spread_props$
|
|
14663
|
+
var interpretationZone = parsedZone || zone, inst = DateTime.fromObject(parsed, _object_spread_props$2$1(_object_spread$3$1({}, opts), {
|
|
14664
14664
|
zone: interpretationZone,
|
|
14665
14665
|
specificOffset: specificOffset
|
|
14666
14666
|
}));
|
|
@@ -15680,11 +15680,11 @@ function lastOpts(argList) {
|
|
|
15680
15680
|
}
|
|
15681
15681
|
var mixed;
|
|
15682
15682
|
if (settingWeekStuff) {
|
|
15683
|
-
mixed = weekToGregorian(_object_spread$
|
|
15683
|
+
mixed = weekToGregorian(_object_spread$3$1({}, gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek), normalized), minDaysInFirstWeek, startOfWeek);
|
|
15684
15684
|
} else if (!isUndefined$2(normalized.ordinal)) {
|
|
15685
|
-
mixed = ordinalToGregorian(_object_spread$
|
|
15685
|
+
mixed = ordinalToGregorian(_object_spread$3$1({}, gregorianToOrdinal(this.c), normalized));
|
|
15686
15686
|
} else {
|
|
15687
|
-
mixed = _object_spread$
|
|
15687
|
+
mixed = _object_spread$3$1({}, this.toObject(), normalized);
|
|
15688
15688
|
// if we didn't set the day but we ended up on an overflow date,
|
|
15689
15689
|
// use the last day of the right month
|
|
15690
15690
|
if (isUndefined$2(normalized.day)) {
|
|
@@ -15803,7 +15803,7 @@ function lastOpts(argList) {
|
|
|
15803
15803
|
* @return {DateTime}
|
|
15804
15804
|
*/ key: "endOf",
|
|
15805
15805
|
value: function endOf(unit, opts) {
|
|
15806
|
-
return this.isValid ? this.plus(_define_property$
|
|
15806
|
+
return this.isValid ? this.plus(_define_property$5$1({}, unit, 1)).startOf(unit, opts).minus(1) : this;
|
|
15807
15807
|
}
|
|
15808
15808
|
},
|
|
15809
15809
|
{
|
|
@@ -16131,7 +16131,7 @@ function lastOpts(argList) {
|
|
|
16131
16131
|
value: function toObject() {
|
|
16132
16132
|
var opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
16133
16133
|
if (!this.isValid) return {};
|
|
16134
|
-
var base = _object_spread$
|
|
16134
|
+
var base = _object_spread$3$1({}, this.c);
|
|
16135
16135
|
if (opts.includeConfig) {
|
|
16136
16136
|
base.outputCalendar = this.outputCalendar;
|
|
16137
16137
|
base.numberingSystem = this.loc.numberingSystem;
|
|
@@ -16171,7 +16171,7 @@ function lastOpts(argList) {
|
|
|
16171
16171
|
if (!this.isValid || !otherDateTime.isValid) {
|
|
16172
16172
|
return Duration.invalid("created by diffing an invalid DateTime");
|
|
16173
16173
|
}
|
|
16174
|
-
var durOpts = _object_spread$
|
|
16174
|
+
var durOpts = _object_spread$3$1({
|
|
16175
16175
|
locale: this.locale,
|
|
16176
16176
|
numberingSystem: this.numberingSystem
|
|
16177
16177
|
}, opts);
|
|
@@ -16275,7 +16275,7 @@ function lastOpts(argList) {
|
|
|
16275
16275
|
units = options.unit;
|
|
16276
16276
|
unit = undefined;
|
|
16277
16277
|
}
|
|
16278
|
-
return diffRelative(base, this.plus(padding), _object_spread_props$
|
|
16278
|
+
return diffRelative(base, this.plus(padding), _object_spread_props$2$1(_object_spread$3$1({}, options), {
|
|
16279
16279
|
numeric: "always",
|
|
16280
16280
|
units: units,
|
|
16281
16281
|
unit: unit
|
|
@@ -16301,7 +16301,7 @@ function lastOpts(argList) {
|
|
|
16301
16301
|
if (!this.isValid) return null;
|
|
16302
16302
|
return diffRelative(options.base || DateTime.fromObject({}, {
|
|
16303
16303
|
zone: this.zone
|
|
16304
|
-
}), this, _object_spread_props$
|
|
16304
|
+
}), this, _object_spread_props$2$1(_object_spread$3$1({}, options), {
|
|
16305
16305
|
numeric: "auto",
|
|
16306
16306
|
units: [
|
|
16307
16307
|
"years",
|
|
@@ -22569,7 +22569,7 @@ function _create_class$r(Constructor, protoProps, staticProps) {
|
|
|
22569
22569
|
if (staticProps) _defineProperties$r(Constructor, staticProps);
|
|
22570
22570
|
return Constructor;
|
|
22571
22571
|
}
|
|
22572
|
-
function _define_property$
|
|
22572
|
+
function _define_property$4$1(obj, key, value) {
|
|
22573
22573
|
if (key in obj) {
|
|
22574
22574
|
Object.defineProperty(obj, key, {
|
|
22575
22575
|
value: value,
|
|
@@ -22622,7 +22622,7 @@ function _non_iterable_rest$2$1() {
|
|
|
22622
22622
|
function _non_iterable_spread$4$1() {
|
|
22623
22623
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
22624
22624
|
}
|
|
22625
|
-
function _object_spread$
|
|
22625
|
+
function _object_spread$2$1(target) {
|
|
22626
22626
|
for(var i = 1; i < arguments.length; i++){
|
|
22627
22627
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
22628
22628
|
var ownKeys = Object.keys(source);
|
|
@@ -22632,12 +22632,12 @@ function _object_spread$1$1(target) {
|
|
|
22632
22632
|
}));
|
|
22633
22633
|
}
|
|
22634
22634
|
ownKeys.forEach(function(key) {
|
|
22635
|
-
_define_property$
|
|
22635
|
+
_define_property$4$1(target, key, source[key]);
|
|
22636
22636
|
});
|
|
22637
22637
|
}
|
|
22638
22638
|
return target;
|
|
22639
22639
|
}
|
|
22640
|
-
function ownKeys$
|
|
22640
|
+
function ownKeys$1$1(object, enumerableOnly) {
|
|
22641
22641
|
var keys = Object.keys(object);
|
|
22642
22642
|
if (Object.getOwnPropertySymbols) {
|
|
22643
22643
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -22645,12 +22645,12 @@ function ownKeys$k(object, enumerableOnly) {
|
|
|
22645
22645
|
}
|
|
22646
22646
|
return keys;
|
|
22647
22647
|
}
|
|
22648
|
-
function _object_spread_props$
|
|
22648
|
+
function _object_spread_props$1$1(target, source) {
|
|
22649
22649
|
source = source != null ? source : {};
|
|
22650
22650
|
if (Object.getOwnPropertyDescriptors) {
|
|
22651
22651
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
22652
22652
|
} else {
|
|
22653
|
-
ownKeys$
|
|
22653
|
+
ownKeys$1$1(Object(source)).forEach(function(key) {
|
|
22654
22654
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
22655
22655
|
});
|
|
22656
22656
|
}
|
|
@@ -22843,14 +22843,14 @@ function indent(str, spaces) {
|
|
|
22843
22843
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
22844
22844
|
// match is required
|
|
22845
22845
|
if (!match) {
|
|
22846
|
-
return
|
|
22846
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
22847
22847
|
v: nextMatch1
|
|
22848
22848
|
};
|
|
22849
22849
|
}
|
|
22850
22850
|
var token = match.token, offset = match.offset;
|
|
22851
22851
|
i1 += offset;
|
|
22852
22852
|
if (token === ' ') {
|
|
22853
|
-
return
|
|
22853
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
22854
22854
|
}
|
|
22855
22855
|
tokens1 = _to_consumable_array$4$1(tokens1).concat([
|
|
22856
22856
|
token
|
|
@@ -22869,7 +22869,7 @@ function indent(str, spaces) {
|
|
|
22869
22869
|
if (contextKeys.some(function(el) {
|
|
22870
22870
|
return el.startsWith(name);
|
|
22871
22871
|
})) {
|
|
22872
|
-
return
|
|
22872
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
22873
22873
|
}
|
|
22874
22874
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22875
22875
|
return el === name;
|
|
@@ -22888,9 +22888,9 @@ function indent(str, spaces) {
|
|
|
22888
22888
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22889
22889
|
return el.startsWith(name);
|
|
22890
22890
|
})) {
|
|
22891
|
-
return
|
|
22891
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
22892
22892
|
}
|
|
22893
|
-
return
|
|
22893
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
22894
22894
|
v: nextMatch1
|
|
22895
22895
|
};
|
|
22896
22896
|
};
|
|
@@ -22902,7 +22902,7 @@ function indent(str, spaces) {
|
|
|
22902
22902
|
}
|
|
22903
22903
|
}
|
|
22904
22904
|
var _obj;
|
|
22905
|
-
var identifiersMap = (_obj = {}, _define_property$
|
|
22905
|
+
var identifiersMap = (_obj = {}, _define_property$4$1(_obj, identifier, 'identifier'), _define_property$4$1(_obj, nameIdentifier, 'nameIdentifier'), _obj);
|
|
22906
22906
|
var identifiers = new ExternalTokenizer(function(input, stack) {
|
|
22907
22907
|
LOG_PARSE_DEBUG && console.log('%s: T <identifier | nameIdentifier>', input.pos);
|
|
22908
22908
|
var nameMatch = parseName(input, stack.context);
|
|
@@ -22951,11 +22951,11 @@ var insertSemicolon = new ExternalTokenizer(function(input, stack) {
|
|
|
22951
22951
|
}
|
|
22952
22952
|
});
|
|
22953
22953
|
var _obj1;
|
|
22954
|
-
var prefixedContextStarts = (_obj1 = {}, _define_property$
|
|
22954
|
+
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);
|
|
22955
22955
|
var _obj2;
|
|
22956
|
-
var contextStarts = (_obj2 = {}, _define_property$
|
|
22956
|
+
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);
|
|
22957
22957
|
var _obj3;
|
|
22958
|
-
var contextEnds = (_obj3 = {}, _define_property$
|
|
22958
|
+
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);
|
|
22959
22959
|
/**
|
|
22960
22960
|
* A simple producer that retrievs a value from
|
|
22961
22961
|
* a given context. Used to lazily take things.
|
|
@@ -23043,7 +23043,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
|
|
|
23043
23043
|
*/ key: "set",
|
|
23044
23044
|
value: function set(key, value) {
|
|
23045
23045
|
var constructor = /** @type { typeof VariableContext } */ this.constructor;
|
|
23046
|
-
return constructor.of(_object_spread_props$
|
|
23046
|
+
return constructor.of(_object_spread_props$1$1(_object_spread$2$1({}, this.value), _define_property$4$1({}, key, value)));
|
|
23047
23047
|
}
|
|
23048
23048
|
},
|
|
23049
23049
|
{
|
|
@@ -23107,7 +23107,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
|
|
|
23107
23107
|
if ((typeof context === "undefined" ? "undefined" : _type_of$z$1(context)) !== 'object') {
|
|
23108
23108
|
return {};
|
|
23109
23109
|
}
|
|
23110
|
-
return _object_spread$
|
|
23110
|
+
return _object_spread$2$1({}, context);
|
|
23111
23111
|
}
|
|
23112
23112
|
},
|
|
23113
23113
|
{
|
|
@@ -23125,13 +23125,13 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
|
|
|
23125
23125
|
return reduce$1(this.__unwrap(other), function(merged, value, key) {
|
|
23126
23126
|
if (_instanceof$f(value, ValueProducer)) {
|
|
23127
23127
|
// keep value producers in tact
|
|
23128
|
-
return _object_spread_props$
|
|
23128
|
+
return _object_spread_props$1$1(_object_spread$2$1({}, merged), _define_property$4$1({}, key, value));
|
|
23129
23129
|
}
|
|
23130
23130
|
value = _this.__unwrap(value);
|
|
23131
23131
|
if (has$2(merged, key)) {
|
|
23132
23132
|
value = _this.__merge(_this.__unwrap(merged[key]), value);
|
|
23133
23133
|
}
|
|
23134
|
-
return _object_spread_props$
|
|
23134
|
+
return _object_spread_props$1$1(_object_spread$2$1({}, merged), _define_property$4$1({}, key, value));
|
|
23135
23135
|
}, this.__unwrap(context));
|
|
23136
23136
|
}
|
|
23137
23137
|
}
|
|
@@ -23350,7 +23350,7 @@ var Variables = /*#__PURE__*/ function() {
|
|
|
23350
23350
|
*/ key: "assign",
|
|
23351
23351
|
value: function assign() {
|
|
23352
23352
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
23353
|
-
return Variables.of(_object_spread$
|
|
23353
|
+
return Variables.of(_object_spread$2$1({}, this, options));
|
|
23354
23354
|
}
|
|
23355
23355
|
},
|
|
23356
23356
|
{
|
|
@@ -23365,7 +23365,7 @@ var Variables = /*#__PURE__*/ function() {
|
|
|
23365
23365
|
context: this.context,
|
|
23366
23366
|
parent: this.parent
|
|
23367
23367
|
};
|
|
23368
|
-
return Variables.of(_object_spread$
|
|
23368
|
+
return Variables.of(_object_spread$2$1({}, defaultOptions, options));
|
|
23369
23369
|
}
|
|
23370
23370
|
}
|
|
23371
23371
|
], [
|
|
@@ -23848,7 +23848,7 @@ function _create_class$q(Constructor, protoProps, staticProps) {
|
|
|
23848
23848
|
if (protoProps) _defineProperties$q(Constructor.prototype, protoProps);
|
|
23849
23849
|
return Constructor;
|
|
23850
23850
|
}
|
|
23851
|
-
function _define_property$
|
|
23851
|
+
function _define_property$3$1(obj, key, value) {
|
|
23852
23852
|
if (key in obj) {
|
|
23853
23853
|
Object.defineProperty(obj, key, {
|
|
23854
23854
|
value: value,
|
|
@@ -25155,7 +25155,7 @@ var builtins = {
|
|
|
25155
25155
|
if (key in context) {
|
|
25156
25156
|
return FALSE;
|
|
25157
25157
|
}
|
|
25158
|
-
return Object.assign(Object.assign({}, context), _define_property$
|
|
25158
|
+
return Object.assign(Object.assign({}, context), _define_property$3$1({}, entry.key, entry.value));
|
|
25159
25159
|
}, {});
|
|
25160
25160
|
if (context === FALSE) {
|
|
25161
25161
|
return null;
|
|
@@ -25208,7 +25208,7 @@ var builtins = {
|
|
|
25208
25208
|
return null;
|
|
25209
25209
|
}
|
|
25210
25210
|
}
|
|
25211
|
-
return Object.assign(Object.assign({}, context), _define_property$
|
|
25211
|
+
return Object.assign(Object.assign({}, context), _define_property$3$1({}, key, value));
|
|
25212
25212
|
}
|
|
25213
25213
|
function matches(a, b) {
|
|
25214
25214
|
return a === b;
|
|
@@ -25935,7 +25935,7 @@ function evalNode(node, input, args) {
|
|
|
25935
25935
|
return function(context) {
|
|
25936
25936
|
return args.slice(1, -1).reduce(function(obj, arg) {
|
|
25937
25937
|
var _arg = _sliced_to_array$1$1(arg(Object.assign(Object.assign({}, context), obj)), 2), key = _arg[0], value = _arg[1];
|
|
25938
|
-
return Object.assign(Object.assign({}, obj), _define_property$
|
|
25938
|
+
return Object.assign(Object.assign({}, obj), _define_property$3$1({}, key, value));
|
|
25939
25939
|
}, {});
|
|
25940
25940
|
};
|
|
25941
25941
|
case 'FunctionBody':
|
|
@@ -26432,7 +26432,7 @@ function extractValue(context, prop, _target) {
|
|
|
26432
26432
|
'range'
|
|
26433
26433
|
].includes(getType(target))) {
|
|
26434
26434
|
return target.map(function(t) {
|
|
26435
|
-
return _define_property$
|
|
26435
|
+
return _define_property$3$1({}, prop, t);
|
|
26436
26436
|
});
|
|
26437
26437
|
}
|
|
26438
26438
|
return null;
|
|
@@ -42896,7 +42896,7 @@ function _class_call_check$1$1(instance, Constructor) {
|
|
|
42896
42896
|
throw new TypeError("Cannot call a class as a function");
|
|
42897
42897
|
}
|
|
42898
42898
|
}
|
|
42899
|
-
function _define_property$
|
|
42899
|
+
function _define_property$2$1(obj, key, value) {
|
|
42900
42900
|
if (key in obj) {
|
|
42901
42901
|
Object.defineProperty(obj, key, {
|
|
42902
42902
|
value: value,
|
|
@@ -42976,7 +42976,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
42976
42976
|
_class_call_check$1$1(this, CelParser);
|
|
42977
42977
|
var _this;
|
|
42978
42978
|
_this = _super.call(this, allTokens);
|
|
42979
|
-
_define_property$
|
|
42979
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "expr", _this.RULE('expr', function() {
|
|
42980
42980
|
_this.SUBRULE(_this.conditionalOr, {
|
|
42981
42981
|
LABEL: 'conditionalOr'
|
|
42982
42982
|
});
|
|
@@ -42991,7 +42991,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
42991
42991
|
});
|
|
42992
42992
|
});
|
|
42993
42993
|
}));
|
|
42994
|
-
_define_property$
|
|
42994
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "conditionalAnd", _this.RULE('conditionalAnd', function() {
|
|
42995
42995
|
_this.SUBRULE(_this.relation, {
|
|
42996
42996
|
LABEL: 'lhs'
|
|
42997
42997
|
});
|
|
@@ -43002,7 +43002,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43002
43002
|
});
|
|
43003
43003
|
});
|
|
43004
43004
|
}));
|
|
43005
|
-
_define_property$
|
|
43005
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "conditionalOr", _this.RULE('conditionalOr', function() {
|
|
43006
43006
|
_this.SUBRULE(_this.conditionalAnd, {
|
|
43007
43007
|
LABEL: 'lhs'
|
|
43008
43008
|
});
|
|
@@ -43013,7 +43013,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43013
43013
|
});
|
|
43014
43014
|
});
|
|
43015
43015
|
}));
|
|
43016
|
-
_define_property$
|
|
43016
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "relation", _this.RULE('relation', function() {
|
|
43017
43017
|
_this.SUBRULE(_this.addition, {
|
|
43018
43018
|
LABEL: 'lhs'
|
|
43019
43019
|
});
|
|
@@ -43024,7 +43024,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43024
43024
|
});
|
|
43025
43025
|
});
|
|
43026
43026
|
}));
|
|
43027
|
-
_define_property$
|
|
43027
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "addition", _this.RULE('addition', function() {
|
|
43028
43028
|
_this.SUBRULE(_this.multiplication, {
|
|
43029
43029
|
LABEL: 'lhs'
|
|
43030
43030
|
});
|
|
@@ -43035,7 +43035,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43035
43035
|
});
|
|
43036
43036
|
});
|
|
43037
43037
|
}));
|
|
43038
|
-
_define_property$
|
|
43038
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "multiplication", _this.RULE('multiplication', function() {
|
|
43039
43039
|
_this.SUBRULE(_this.unaryExpression, {
|
|
43040
43040
|
LABEL: 'lhs'
|
|
43041
43041
|
});
|
|
@@ -43046,13 +43046,13 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43046
43046
|
});
|
|
43047
43047
|
});
|
|
43048
43048
|
}));
|
|
43049
|
-
_define_property$
|
|
43049
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "unaryExpression", _this.RULE('unaryExpression', function() {
|
|
43050
43050
|
_this.MANY(function() {
|
|
43051
43051
|
_this.CONSUME(UnaryOperator);
|
|
43052
43052
|
});
|
|
43053
43053
|
_this.SUBRULE(_this.atomicExpression);
|
|
43054
43054
|
}));
|
|
43055
|
-
_define_property$
|
|
43055
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "parenthesisExpression", _this.RULE('parenthesisExpression', function() {
|
|
43056
43056
|
_this.CONSUME(OpenParenthesis, {
|
|
43057
43057
|
LABEL: 'open'
|
|
43058
43058
|
});
|
|
@@ -43061,7 +43061,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43061
43061
|
LABEL: 'close'
|
|
43062
43062
|
});
|
|
43063
43063
|
}));
|
|
43064
|
-
_define_property$
|
|
43064
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "listExpression", _this.RULE('listExpression', function() {
|
|
43065
43065
|
_this.CONSUME(OpenBracket);
|
|
43066
43066
|
_this.OPTION(function() {
|
|
43067
43067
|
_this.SUBRULE(_this.expr, {
|
|
@@ -43081,7 +43081,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43081
43081
|
});
|
|
43082
43082
|
});
|
|
43083
43083
|
}));
|
|
43084
|
-
_define_property$
|
|
43084
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "mapExpression", _this.RULE('mapExpression', function() {
|
|
43085
43085
|
_this.CONSUME(OpenCurlyBracket);
|
|
43086
43086
|
_this.MANY(function() {
|
|
43087
43087
|
_this.SUBRULE(_this.mapKeyValues, {
|
|
@@ -43106,7 +43106,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43106
43106
|
]);
|
|
43107
43107
|
});
|
|
43108
43108
|
}));
|
|
43109
|
-
_define_property$
|
|
43109
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "mapKeyValues", _this.RULE('mapKeyValues', function() {
|
|
43110
43110
|
_this.SUBRULE(_this.expr, {
|
|
43111
43111
|
LABEL: 'key'
|
|
43112
43112
|
});
|
|
@@ -43118,7 +43118,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43118
43118
|
_this.CONSUME(Comma);
|
|
43119
43119
|
});
|
|
43120
43120
|
}));
|
|
43121
|
-
_define_property$
|
|
43121
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "macrosExpression", _this.RULE('macrosExpression', function() {
|
|
43122
43122
|
_this.CONSUME(Identifier);
|
|
43123
43123
|
_this.CONSUME(OpenParenthesis);
|
|
43124
43124
|
_this.OPTION(function() {
|
|
@@ -43134,7 +43134,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43134
43134
|
});
|
|
43135
43135
|
_this.CONSUME(CloseParenthesis);
|
|
43136
43136
|
}));
|
|
43137
|
-
_define_property$
|
|
43137
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "identifierExpression", _this.RULE('identifierExpression', function() {
|
|
43138
43138
|
_this.CONSUME(Identifier);
|
|
43139
43139
|
_this.MANY(function() {
|
|
43140
43140
|
_this.OR([
|
|
@@ -43153,7 +43153,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43153
43153
|
]);
|
|
43154
43154
|
});
|
|
43155
43155
|
}));
|
|
43156
|
-
_define_property$
|
|
43156
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "identifierDotExpression", _this.RULE('identifierDotExpression', function() {
|
|
43157
43157
|
_this.CONSUME(Dot);
|
|
43158
43158
|
_this.CONSUME(Identifier);
|
|
43159
43159
|
// Optional method call with arguments (for collection macros)
|
|
@@ -43173,12 +43173,12 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
43173
43173
|
_this.CONSUME(CloseParenthesis);
|
|
43174
43174
|
});
|
|
43175
43175
|
}));
|
|
43176
|
-
_define_property$
|
|
43176
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "indexExpression", _this.RULE('indexExpression', function() {
|
|
43177
43177
|
_this.CONSUME(OpenBracket);
|
|
43178
43178
|
_this.SUBRULE(_this.expr);
|
|
43179
43179
|
_this.CONSUME(CloseBracket);
|
|
43180
43180
|
}));
|
|
43181
|
-
_define_property$
|
|
43181
|
+
_define_property$2$1(_assert_this_initialized$1$1(_this), "atomicExpression", _this.RULE('atomicExpression', function() {
|
|
43182
43182
|
_this.OR([
|
|
43183
43183
|
{
|
|
43184
43184
|
ALT: function() {
|
|
@@ -43287,7 +43287,7 @@ function _create_class$w(Constructor, protoProps, staticProps) {
|
|
|
43287
43287
|
if (protoProps) _defineProperties$w(Constructor.prototype, protoProps);
|
|
43288
43288
|
return Constructor;
|
|
43289
43289
|
}
|
|
43290
|
-
function _define_property$
|
|
43290
|
+
function _define_property$1$1(obj, key, value) {
|
|
43291
43291
|
if (key in obj) {
|
|
43292
43292
|
Object.defineProperty(obj, key, {
|
|
43293
43293
|
value: value,
|
|
@@ -43359,7 +43359,7 @@ function _non_iterable_rest$6() {
|
|
|
43359
43359
|
function _non_iterable_spread$k() {
|
|
43360
43360
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
43361
43361
|
}
|
|
43362
|
-
function _object_spread$
|
|
43362
|
+
function _object_spread$1$1(target) {
|
|
43363
43363
|
for(var i = 1; i < arguments.length; i++){
|
|
43364
43364
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
43365
43365
|
var ownKeys = Object.keys(source);
|
|
@@ -43369,7 +43369,7 @@ function _object_spread$p(target) {
|
|
|
43369
43369
|
}));
|
|
43370
43370
|
}
|
|
43371
43371
|
ownKeys.forEach(function(key) {
|
|
43372
|
-
_define_property$
|
|
43372
|
+
_define_property$1$1(target, key, source[key]);
|
|
43373
43373
|
});
|
|
43374
43374
|
}
|
|
43375
43375
|
return target;
|
|
@@ -43455,13 +43455,13 @@ var CelVisitor = /*#__PURE__*/ function(BaseCelVisitor) {
|
|
|
43455
43455
|
_class_call_check$B(this, CelVisitor);
|
|
43456
43456
|
var _this;
|
|
43457
43457
|
_this = _super.call(this);
|
|
43458
|
-
_define_property$
|
|
43458
|
+
_define_property$1$1(_assert_this_initialized$l(_this), "context", void 0);
|
|
43459
43459
|
/**
|
|
43460
43460
|
* Tracks the current mode of the visitor to handle special cases.
|
|
43461
|
-
*/ _define_property$
|
|
43462
|
-
_define_property$
|
|
43461
|
+
*/ _define_property$1$1(_assert_this_initialized$l(_this), "mode", Mode.normal);
|
|
43462
|
+
_define_property$1$1(_assert_this_initialized$l(_this), "functions", void 0);
|
|
43463
43463
|
_this.context = context || {};
|
|
43464
|
-
_this.functions = _object_spread$
|
|
43464
|
+
_this.functions = _object_spread$1$1({}, defaultFunctions, functions || {});
|
|
43465
43465
|
_this.validateVisitor();
|
|
43466
43466
|
return _this;
|
|
43467
43467
|
}
|
|
@@ -44202,6 +44202,198 @@ function evaluate(expression, context, functions) {
|
|
|
44202
44202
|
}
|
|
44203
44203
|
return toAstVisitorInstance.visit(result.cst);
|
|
44204
44204
|
}
|
|
44205
|
+
// Latin-1 Supplement
|
|
44206
|
+
// upper case ranges
|
|
44207
|
+
// [À-ÖØ-ß]
|
|
44208
|
+
// lower case ranges
|
|
44209
|
+
// [à-öø-ÿ]
|
|
44210
|
+
var magicSplit = /^[a-zà-öø-ÿа-я]+|[A-ZÀ-ÖØ-ßА-Я][a-zà-öø-ÿа-я]+|[a-zà-öø-ÿа-я]+|[0-9]+|[A-ZÀ-ÖØ-ßА-Я]+(?![a-zà-öø-ÿа-я])/g;
|
|
44211
|
+
var spaceSplit = /\S+/g;
|
|
44212
|
+
/**
|
|
44213
|
+
* A string.matchAll function that will return an array of "string parts" and the indexes at which it split each part
|
|
44214
|
+
*/ function getPartsAndIndexes(string, splitRegex) {
|
|
44215
|
+
var result = {
|
|
44216
|
+
parts: [],
|
|
44217
|
+
prefixes: []
|
|
44218
|
+
};
|
|
44219
|
+
var matches = string.matchAll(splitRegex);
|
|
44220
|
+
var lastWordEndIndex = 0;
|
|
44221
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
44222
|
+
try {
|
|
44223
|
+
for(var _iterator = matches[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
44224
|
+
var match = _step.value;
|
|
44225
|
+
if (typeof match.index !== 'number') continue;
|
|
44226
|
+
var word = match[0];
|
|
44227
|
+
result.parts.push(word);
|
|
44228
|
+
var prefix = string.slice(lastWordEndIndex, match.index).trim();
|
|
44229
|
+
result.prefixes.push(prefix);
|
|
44230
|
+
lastWordEndIndex = match.index + word.length;
|
|
44231
|
+
}
|
|
44232
|
+
} catch (err) {
|
|
44233
|
+
_didIteratorError = true;
|
|
44234
|
+
_iteratorError = err;
|
|
44235
|
+
} finally{
|
|
44236
|
+
try {
|
|
44237
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
44238
|
+
_iterator.return();
|
|
44239
|
+
}
|
|
44240
|
+
} finally{
|
|
44241
|
+
if (_didIteratorError) {
|
|
44242
|
+
throw _iteratorError;
|
|
44243
|
+
}
|
|
44244
|
+
}
|
|
44245
|
+
}
|
|
44246
|
+
var tail = string.slice(lastWordEndIndex).trim();
|
|
44247
|
+
if (tail) {
|
|
44248
|
+
result.parts.push('');
|
|
44249
|
+
result.prefixes.push(tail);
|
|
44250
|
+
}
|
|
44251
|
+
return result;
|
|
44252
|
+
}
|
|
44253
|
+
/**
|
|
44254
|
+
* A function that splits a string on words and returns an array of words.
|
|
44255
|
+
* - It can prefix each word with a given character
|
|
44256
|
+
* - It can strip or keep special characters, this affects the logic for adding a prefix as well
|
|
44257
|
+
*/ function splitAndPrefix(string, options) {
|
|
44258
|
+
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;
|
|
44259
|
+
var normalString = string.trim().normalize('NFC');
|
|
44260
|
+
var hasSpaces = normalString.includes(' ');
|
|
44261
|
+
var split = hasSpaces ? spaceSplit : magicSplit;
|
|
44262
|
+
var partsAndIndexes = getPartsAndIndexes(normalString, split);
|
|
44263
|
+
return partsAndIndexes.parts.map(function(_part, i) {
|
|
44264
|
+
var foundPrefix = partsAndIndexes.prefixes[i] || '';
|
|
44265
|
+
var part = _part;
|
|
44266
|
+
if (keepSpecialCharacters === false) {
|
|
44267
|
+
if (keep) {
|
|
44268
|
+
part = part.normalize('NFD').replace(new RegExp("[^a-zA-Z\xd8\xdf\xf80-9".concat(keep.join(''), "]"), 'g'), '');
|
|
44269
|
+
}
|
|
44270
|
+
if (!keep) {
|
|
44271
|
+
part = part.normalize('NFD').replace(/[^a-zA-ZØßø0-9]/g, '');
|
|
44272
|
+
foundPrefix = '';
|
|
44273
|
+
}
|
|
44274
|
+
}
|
|
44275
|
+
if (keep && foundPrefix) {
|
|
44276
|
+
foundPrefix = foundPrefix.replace(new RegExp("[^".concat(keep.join(''), "]"), 'g'), '');
|
|
44277
|
+
}
|
|
44278
|
+
// the first word doesn't need a prefix, so only return the found prefix
|
|
44279
|
+
if (i === 0) {
|
|
44280
|
+
// console.log(`foundPrefix → `, foundPrefix)
|
|
44281
|
+
return foundPrefix + part;
|
|
44282
|
+
}
|
|
44283
|
+
if (!foundPrefix && !part) return '';
|
|
44284
|
+
if (!hasSpaces) {
|
|
44285
|
+
// return the found prefix OR fall back to a given prefix
|
|
44286
|
+
return (foundPrefix || prefix) + part;
|
|
44287
|
+
}
|
|
44288
|
+
// space based sentence was split on spaces, so only return found prefixes
|
|
44289
|
+
if (!foundPrefix && prefix.match(/\s/)) {
|
|
44290
|
+
// in this case we have no more found prefix, it was trimmed, but we're looking to add a space
|
|
44291
|
+
// so let's return that space
|
|
44292
|
+
return ' ' + part;
|
|
44293
|
+
}
|
|
44294
|
+
return (foundPrefix || prefix) + part;
|
|
44295
|
+
}).filter(Boolean);
|
|
44296
|
+
}
|
|
44297
|
+
/**
|
|
44298
|
+
* Capitalises a single word
|
|
44299
|
+
* @returns the word with the first character in uppercase and the rest in lowercase
|
|
44300
|
+
*/ function capitaliseWord(string) {
|
|
44301
|
+
var match = string.matchAll(magicSplit).next().value;
|
|
44302
|
+
var firstLetterIndex = match ? match.index : 0;
|
|
44303
|
+
return string.slice(0, firstLetterIndex + 1).toUpperCase() + string.slice(firstLetterIndex + 1).toLowerCase();
|
|
44304
|
+
}
|
|
44305
|
+
function _define_property$p(obj, key, value) {
|
|
44306
|
+
if (key in obj) {
|
|
44307
|
+
Object.defineProperty(obj, key, {
|
|
44308
|
+
value: value,
|
|
44309
|
+
enumerable: true,
|
|
44310
|
+
configurable: true,
|
|
44311
|
+
writable: true
|
|
44312
|
+
});
|
|
44313
|
+
} else {
|
|
44314
|
+
obj[key] = value;
|
|
44315
|
+
}
|
|
44316
|
+
return obj;
|
|
44317
|
+
}
|
|
44318
|
+
function _object_spread$p(target) {
|
|
44319
|
+
for(var i = 1; i < arguments.length; i++){
|
|
44320
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
44321
|
+
var ownKeys = Object.keys(source);
|
|
44322
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
44323
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
44324
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
44325
|
+
}));
|
|
44326
|
+
}
|
|
44327
|
+
ownKeys.forEach(function(key) {
|
|
44328
|
+
_define_property$p(target, key, source[key]);
|
|
44329
|
+
});
|
|
44330
|
+
}
|
|
44331
|
+
return target;
|
|
44332
|
+
}
|
|
44333
|
+
function ownKeys$k(object, enumerableOnly) {
|
|
44334
|
+
var keys = Object.keys(object);
|
|
44335
|
+
if (Object.getOwnPropertySymbols) {
|
|
44336
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
44337
|
+
keys.push.apply(keys, symbols);
|
|
44338
|
+
}
|
|
44339
|
+
return keys;
|
|
44340
|
+
}
|
|
44341
|
+
function _object_spread_props$k(target, source) {
|
|
44342
|
+
source = source != null ? source : {};
|
|
44343
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
44344
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
44345
|
+
} else {
|
|
44346
|
+
ownKeys$k(Object(source)).forEach(function(key) {
|
|
44347
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
44348
|
+
});
|
|
44349
|
+
}
|
|
44350
|
+
return target;
|
|
44351
|
+
}
|
|
44352
|
+
/**
|
|
44353
|
+
* # 🐪 camelCase
|
|
44354
|
+
* converts a string to camelCase
|
|
44355
|
+
* - first lowercase then all capitalised
|
|
44356
|
+
* - *strips away* special characters by default
|
|
44357
|
+
*
|
|
44358
|
+
* @example
|
|
44359
|
+
* camelCase('$catDog') === 'catDog'
|
|
44360
|
+
* @example
|
|
44361
|
+
* camelCase('$catDog', { keepSpecialCharacters: true }) === '$catDog'
|
|
44362
|
+
*/ function camelCase(string, options) {
|
|
44363
|
+
return splitAndPrefix(string, options).reduce(function(result, word, index) {
|
|
44364
|
+
return index === 0 || !(word[0] || '').match(magicSplit) ? result + word.toLowerCase() : result + capitaliseWord(word);
|
|
44365
|
+
}, '');
|
|
44366
|
+
}
|
|
44367
|
+
/**
|
|
44368
|
+
* # 🥙 kebab-case
|
|
44369
|
+
* converts a string to kebab-case
|
|
44370
|
+
* - hyphenated lowercase
|
|
44371
|
+
* - *strips away* special characters by default
|
|
44372
|
+
*
|
|
44373
|
+
* @example
|
|
44374
|
+
* kebabCase('$catDog') === 'cat-dog'
|
|
44375
|
+
* @example
|
|
44376
|
+
* kebabCase('$catDog', { keepSpecialCharacters: true }) === '$cat-dog'
|
|
44377
|
+
*/ function kebabCase(string, options) {
|
|
44378
|
+
return splitAndPrefix(string, _object_spread_props$k(_object_spread$p({}, options), {
|
|
44379
|
+
prefix: '-'
|
|
44380
|
+
})).join('').toLowerCase();
|
|
44381
|
+
}
|
|
44382
|
+
/**
|
|
44383
|
+
* # 🐍 snake_case
|
|
44384
|
+
* converts a string to snake_case
|
|
44385
|
+
* - underscored lowercase
|
|
44386
|
+
* - *strips away* special characters by default
|
|
44387
|
+
*
|
|
44388
|
+
* @example
|
|
44389
|
+
* snakeCase('$catDog') === 'cat_dog'
|
|
44390
|
+
* @example
|
|
44391
|
+
* snakeCase('$catDog', { keepSpecialCharacters: true }) === '$cat_dog'
|
|
44392
|
+
*/ function snakeCase(string, options) {
|
|
44393
|
+
return splitAndPrefix(string, _object_spread_props$k(_object_spread$p({}, options), {
|
|
44394
|
+
prefix: '_'
|
|
44395
|
+
})).join('').toLowerCase();
|
|
44396
|
+
}
|
|
44205
44397
|
const Handlebars = handlebars_min || HandlebarsNamespace;
|
|
44206
44398
|
Handlebars.registerHelper('JSONstringify', function(value) {
|
|
44207
44399
|
return JSON.stringify(value);
|
|
@@ -44216,7 +44408,10 @@ const DIGIPAIR_FUNCTIONS = {
|
|
|
44216
44408
|
encodeUTF8: (value)=>Array.from(new TextEncoder().encode(value)).map((b)=>String.fromCharCode(b)).join(''),
|
|
44217
44409
|
decodeUTF8: (value)=>new TextDecoder().decode(new Uint8Array(Array.from(value).map((c)=>c.charCodeAt(0)))),
|
|
44218
44410
|
JSONparse: (value)=>JSON.parse(value),
|
|
44219
|
-
JSONstringify: (value)=>JSON.stringify(value)
|
|
44411
|
+
JSONstringify: (value)=>JSON.stringify(value),
|
|
44412
|
+
camelCase: (value)=>camelCase(value),
|
|
44413
|
+
kebabCase: (value)=>kebabCase(value),
|
|
44414
|
+
snakeCase: (value)=>snakeCase(value)
|
|
44220
44415
|
};
|
|
44221
44416
|
const globalInstance = typeof window === 'undefined' ? global : window;
|
|
44222
44417
|
const _config = globalInstance.__DIGIPAIR_CONFIG__ = globalInstance.__DIGIPAIR_CONFIG__ ?? {
|