@tko/build.reference 4.0.0-beta1.5 → 4.0.0-beta1.6

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/browser.js CHANGED
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
- // @tko/build.reference 🥊 4.0.0-beta1.5 IIFE
2
+ // @tko/build.reference 🥊 4.0.0-beta1.6 IIFE
3
3
  var tko = (() => {
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __pow = Math.pow;
8
9
  var __export = (target, all) => {
9
10
  for (var name in all)
10
11
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -17,7 +18,7 @@ var tko = (() => {
17
18
  }
18
19
  return to;
19
20
  };
20
- var __toCommonJS = (mod2) => __copyProps(__defProp({}, "__esModule", { value: true }), mod2);
21
+ var __toCommonJS = (mod3) => __copyProps(__defProp({}, "__esModule", { value: true }), mod3);
21
22
 
22
23
  // src/index.ts
23
24
  var src_exports = {};
@@ -263,8 +264,8 @@ var tko = (() => {
263
264
 
264
265
  // ../../packages/utils/dist/ie.js
265
266
  var ieVersion = options_default.document && function() {
266
- var version2 = 3, div2 = options_default.document.createElement("div"), iElems = div2.getElementsByTagName("i");
267
- while (div2.innerHTML = "<!--[if gt IE " + ++version2 + "]><i></i><![endif]-->", iElems[0]) {
267
+ var version2 = 3, div3 = options_default.document.createElement("div"), iElems = div3.getElementsByTagName("i");
268
+ while (div3.innerHTML = "<!--[if gt IE " + ++version2 + "]><i></i><![endif]-->", iElems[0]) {
268
269
  }
269
270
  if (!version2) {
270
271
  const userAgent = window.navigator.userAgent;
@@ -1067,17 +1068,17 @@ var tko = (() => {
1067
1068
  function simpleHtmlParse(html2, documentContext) {
1068
1069
  documentContext || (documentContext = document);
1069
1070
  var windowContext = documentContext["parentWindow"] || documentContext["defaultView"] || window;
1070
- var tags = stringTrim(html2).toLowerCase(), div2 = documentContext.createElement("div"), wrap = getWrap(tags), depth = wrap[0];
1071
+ var tags = stringTrim(html2).toLowerCase(), div3 = documentContext.createElement("div"), wrap = getWrap(tags), depth = wrap[0];
1071
1072
  var markup = "ignored<div>" + wrap[1] + html2 + wrap[2] + "</div>";
1072
1073
  if (typeof windowContext["innerShiv"] === "function") {
1073
- div2.appendChild(windowContext["innerShiv"](markup));
1074
+ div3.appendChild(windowContext["innerShiv"](markup));
1074
1075
  } else {
1075
- div2.innerHTML = markup;
1076
+ div3.innerHTML = markup;
1076
1077
  }
1077
1078
  while (depth--) {
1078
- div2 = div2.lastChild;
1079
+ div3 = div3.lastChild;
1079
1080
  }
1080
- return makeArray(div2.lastChild.childNodes);
1081
+ return makeArray(div3.lastChild.childNodes);
1081
1082
  }
1082
1083
  function templateHtmlParse(html2, documentContext) {
1083
1084
  if (!documentContext) {
@@ -1299,10 +1300,10 @@ var tko = (() => {
1299
1300
  var w = options_default.global;
1300
1301
  if (w && w.MutationObserver && !(w.navigator && w.navigator.standalone)) {
1301
1302
  options_default.taskScheduler = function(callback) {
1302
- var div2 = w.document.createElement("div");
1303
- new w.MutationObserver(callback).observe(div2, { attributes: true });
1303
+ var div3 = w.document.createElement("div");
1304
+ new w.MutationObserver(callback).observe(div3, { attributes: true });
1304
1305
  return function() {
1305
- div2.classList.toggle("foo");
1306
+ div3.classList.toggle("foo");
1306
1307
  };
1307
1308
  }(scheduledProcess);
1308
1309
  } else if (w && w.document && "onreadystatechange" in w.document.createElement("script")) {
@@ -2088,7 +2089,7 @@ var tko = (() => {
2088
2089
  }
2089
2090
 
2090
2091
  // ../../packages/utils.parser/dist/operators.js
2091
- var __pow = Math.pow;
2092
+ var __pow2 = Math.pow;
2092
2093
  function LAMBDA() {
2093
2094
  }
2094
2095
  function unwrapOrCall(a, b) {
@@ -2114,7 +2115,7 @@ var tko = (() => {
2114
2115
  return --b;
2115
2116
  },
2116
2117
  "**": function exp(a, b) {
2117
- return __pow(a, b);
2118
+ return __pow2(a, b);
2118
2119
  },
2119
2120
  "*": function mul(a, b) {
2120
2121
  return a * b;
@@ -2147,10 +2148,10 @@ var tko = (() => {
2147
2148
  return a >= b;
2148
2149
  },
2149
2150
  "==": function equal(a, b) {
2150
- return a === b;
2151
+ return a == b;
2151
2152
  },
2152
2153
  "!=": function ne(a, b) {
2153
- return a !== b;
2154
+ return a != b;
2154
2155
  },
2155
2156
  "===": function sequal(a, b) {
2156
2157
  return a === b;
@@ -2353,24 +2354,24 @@ var tko = (() => {
2353
2354
  this.parser = parser;
2354
2355
  }
2355
2356
  dereference(value2, $context, globals, node) {
2356
- let member2;
2357
+ let member3;
2357
2358
  let refs = this.dereferences || [];
2358
2359
  const $data = $context.$data || {};
2359
2360
  let lastValue;
2360
2361
  let i, n;
2361
2362
  for (i = 0, n = refs.length; i < n; ++i) {
2362
- member2 = Node2.value_of(refs[i], $context, globals, node);
2363
+ member3 = Node2.value_of(refs[i], $context, globals, node);
2363
2364
  if (typeof value2 === "function" && refs[i] instanceof Arguments) {
2364
- value2 = value2.apply(lastValue || $data, member2);
2365
+ value2 = value2.apply(lastValue || $data, member3);
2365
2366
  lastValue = value2;
2366
2367
  } else if (value2 === null || value2 === void 0) {
2367
2368
  return value2;
2368
2369
  } else {
2369
2370
  lastValue = value2;
2370
- value2 = Node2.value_of(value2[member2], $context, globals, node);
2371
+ value2 = Node2.value_of(value2[member3], $context, globals, node);
2371
2372
  }
2372
2373
  }
2373
- if (typeof value2 === "function" && n > 0 && lastValue !== value2 && !hasOwnProperty(lastValue, member2)) {
2374
+ if (typeof value2 === "function" && n > 0 && lastValue !== value2 && !hasOwnProperty(lastValue, member3)) {
2374
2375
  return value2.bind(lastValue);
2375
2376
  }
2376
2377
  return value2;
@@ -2850,13 +2851,13 @@ ${name} ${msg} of
2850
2851
  }
2851
2852
  ch = this.white();
2852
2853
  }
2853
- var filter = function filter2(value2, ignored, context, globals, node) {
2854
+ function filter(value2, ignored, context, globals, node) {
2854
2855
  var argValues = [value2];
2855
2856
  for (var i = 0, j = args.length; i < j; ++i) {
2856
2857
  argValues.push(Node2.value_of(args[i], context, globals, node));
2857
2858
  }
2858
- return nextFilter(options_default.filters[name].apply(context, argValues));
2859
- };
2859
+ return nextFilter(options_default.filters[name].apply(context, argValues), ignored, context, globals, node);
2860
+ }
2860
2861
  filter.precedence = 1;
2861
2862
  return filter;
2862
2863
  }
@@ -2933,12 +2934,12 @@ ${name} ${msg} of
2933
2934
  return this.expression(filterable, false);
2934
2935
  }
2935
2936
  ternary(nodes) {
2936
- var ternary2 = new Ternary();
2937
- ternary2.yes = this.singleValueExpression();
2937
+ var ternary3 = new Ternary();
2938
+ ternary3.yes = this.singleValueExpression();
2938
2939
  this.next(":");
2939
- ternary2.no = this.singleValueExpression();
2940
+ ternary3.no = this.singleValueExpression();
2940
2941
  nodes.push(operators["?"]);
2941
- nodes.push(ternary2);
2942
+ nodes.push(ternary3);
2942
2943
  }
2943
2944
  funcArguments() {
2944
2945
  let args = [];
@@ -2959,31 +2960,31 @@ ${name} ${msg} of
2959
2960
  this.error("Bad arguments to function");
2960
2961
  }
2961
2962
  member() {
2962
- let member2 = "";
2963
+ let member3 = "";
2963
2964
  let ch = this.white();
2964
2965
  let isIdentifierChar = Identifier.is_valid_start_char;
2965
2966
  while (ch) {
2966
2967
  if (!isIdentifierChar(ch)) {
2967
2968
  break;
2968
2969
  }
2969
- member2 += ch;
2970
+ member3 += ch;
2970
2971
  ch = this.next();
2971
2972
  isIdentifierChar = Identifier.is_valid_continue_char;
2972
2973
  }
2973
- return member2;
2974
+ return member3;
2974
2975
  }
2975
2976
  dereference() {
2976
- let member2;
2977
+ let member3;
2977
2978
  let ch = this.white();
2978
2979
  while (ch) {
2979
2980
  if (ch === "(") {
2980
2981
  return this.funcArguments();
2981
2982
  } else if (ch === "[") {
2982
2983
  this.next("[");
2983
- member2 = this.expression();
2984
+ member3 = this.expression();
2984
2985
  this.white();
2985
2986
  this.next("]");
2986
- return member2;
2987
+ return member3;
2987
2988
  } else if (ch === ".") {
2988
2989
  this.next(".");
2989
2990
  return this.member();
@@ -8111,7 +8112,434 @@ ${name} ${msg} of
8111
8112
  return (+unwrap(value2)).toLocaleString();
8112
8113
  };
8113
8114
 
8115
+ // ../../packages/utils.parser/src/operators.ts
8116
+ function LAMBDA2() {
8117
+ }
8118
+ function unwrapOrCall2(a, b) {
8119
+ while (typeof b === "function") {
8120
+ b = b();
8121
+ }
8122
+ return b;
8123
+ }
8124
+ var operators2 = {
8125
+ "@": unwrapOrCall2,
8126
+ "#": (a, b) => () => unwrap(b),
8127
+ "=>": LAMBDA2,
8128
+ "!": function not2(a, b) {
8129
+ return !b;
8130
+ },
8131
+ "!!": function notnot2(a, b) {
8132
+ return !!b;
8133
+ },
8134
+ "++": function preinc3(a, b) {
8135
+ return ++b;
8136
+ },
8137
+ "--": function preinc4(a, b) {
8138
+ return --b;
8139
+ },
8140
+ "**": function exp2(a, b) {
8141
+ return __pow(a, b);
8142
+ },
8143
+ "*": function mul2(a, b) {
8144
+ return a * b;
8145
+ },
8146
+ "/": function div2(a, b) {
8147
+ return a / b;
8148
+ },
8149
+ "%": function mod2(a, b) {
8150
+ return a % b;
8151
+ },
8152
+ "+": function add2(a, b) {
8153
+ return a + b;
8154
+ },
8155
+ "-": function sub2(a, b) {
8156
+ return (a || 0) - (b || 0);
8157
+ },
8158
+ "&-": function neg2(a, b) {
8159
+ return -1 * b;
8160
+ },
8161
+ "<": function lt2(a, b) {
8162
+ return a < b;
8163
+ },
8164
+ "<=": function le2(a, b) {
8165
+ return a <= b;
8166
+ },
8167
+ ">": function gt2(a, b) {
8168
+ return a > b;
8169
+ },
8170
+ ">=": function ge2(a, b) {
8171
+ return a >= b;
8172
+ },
8173
+ "==": function equal2(a, b) {
8174
+ return a == b;
8175
+ },
8176
+ "!=": function ne2(a, b) {
8177
+ return a != b;
8178
+ },
8179
+ "===": function sequal2(a, b) {
8180
+ return a === b;
8181
+ },
8182
+ "!==": function sne2(a, b) {
8183
+ return a !== b;
8184
+ },
8185
+ "&": function bitAnd2(a, b) {
8186
+ return a & b;
8187
+ },
8188
+ "^": function xor2(a, b) {
8189
+ return a ^ b;
8190
+ },
8191
+ "|": function bitOr2(a, b) {
8192
+ return a | b;
8193
+ },
8194
+ "&&": function logicAnd2(a, b) {
8195
+ return a && b;
8196
+ },
8197
+ "||": function logicOr2(a, b) {
8198
+ return a || b;
8199
+ },
8200
+ "??": function nullishCoalesce2(a, b) {
8201
+ return a != null ? a : b;
8202
+ },
8203
+ ".": function member2(a, b) {
8204
+ return a == null ? void 0 : a[b];
8205
+ },
8206
+ "?.": function omember2(a, b) {
8207
+ return a == null ? void 0 : a[b];
8208
+ },
8209
+ "[": function bmember2(a, b) {
8210
+ return a == null ? void 0 : a[b];
8211
+ },
8212
+ ",": function comma2(a, b) {
8213
+ return b;
8214
+ },
8215
+ "call": function callOp2(a, b) {
8216
+ return a.apply(null, b);
8217
+ }
8218
+ };
8219
+ operators2["@"].precedence = 21;
8220
+ operators2["#"].precedence = 21;
8221
+ operators2["."].precedence = 19;
8222
+ operators2["["].precedence = 19;
8223
+ operators2["?."].precedence = 19;
8224
+ operators2["!"].precedence = 16;
8225
+ operators2["!!"].precedence = 16;
8226
+ operators2["++"].precedence = 16;
8227
+ operators2["--"].precedence = 16;
8228
+ operators2["&-"].precedence = 16;
8229
+ operators2["**"].precedent = 15;
8230
+ operators2["%"].precedence = 14;
8231
+ operators2["*"].precedence = 14;
8232
+ operators2["/"].precedence = 14;
8233
+ operators2["+"].precedence = 13;
8234
+ operators2["-"].precedence = 13;
8235
+ operators2["|"].precedence = 12;
8236
+ operators2["^"].precedence = 11;
8237
+ operators2["&"].precedence = 10;
8238
+ operators2["<"].precedence = 11;
8239
+ operators2["<="].precedence = 11;
8240
+ operators2[">"].precedence = 11;
8241
+ operators2[">="].precedence = 11;
8242
+ operators2["=="].precedence = 10;
8243
+ operators2["!="].precedence = 10;
8244
+ operators2["==="].precedence = 10;
8245
+ operators2["!=="].precedence = 10;
8246
+ operators2["&&"].precedence = 6;
8247
+ operators2["||"].precedence = 5;
8248
+ operators2["??"].precedence = 5;
8249
+ operators2["&&"].earlyOut = (a) => !a;
8250
+ operators2["||"].earlyOut = (a) => a;
8251
+ operators2["??"].earlyOut = (a) => a;
8252
+ operators2[","].precedence = 2;
8253
+ operators2["call"].precedence = 1;
8254
+ operators2["=>"].precedence = 1;
8255
+
8256
+ // ../../packages/utils.parser/src/Node.ts
8257
+ var IS_EXPR_OR_IDENT2 = Symbol("Node - Is Expression Or Identifier");
8258
+ var Node3 = class {
8259
+ constructor(lhs, op, rhs) {
8260
+ this.lhs = lhs;
8261
+ this.op = op;
8262
+ this.rhs = rhs;
8263
+ }
8264
+ static get operators() {
8265
+ return operators2;
8266
+ }
8267
+ get_leaf_value(leaf, context, globals, node) {
8268
+ if (typeof leaf === "function") {
8269
+ return unwrap(leaf());
8270
+ }
8271
+ if (typeof leaf !== "object" || leaf === null) {
8272
+ return leaf;
8273
+ }
8274
+ if (leaf[Node3.isExpressionOrIdentifierSymbol]) {
8275
+ return unwrap(leaf.get_value(void 0, context, globals, node));
8276
+ }
8277
+ return leaf;
8278
+ }
8279
+ get_value(notused, context, globals, node) {
8280
+ var node = this;
8281
+ if (node.op === LAMBDA2) {
8282
+ return (...args) => {
8283
+ let lambdaContext = context;
8284
+ if (node.lhs) {
8285
+ lambdaContext = node.lhs.extendContext(context, args);
8286
+ }
8287
+ return node.get_leaf_value(node.rhs, lambdaContext, globals, node);
8288
+ };
8289
+ }
8290
+ const lhv = node.get_leaf_value(node.lhs, context, globals, node);
8291
+ const earlyOut = node.op.earlyOut;
8292
+ if (earlyOut && earlyOut(lhv)) {
8293
+ return lhv;
8294
+ }
8295
+ const rhv = node.get_leaf_value(node.rhs, context, globals, node);
8296
+ return node.op(lhv, rhv, context, globals);
8297
+ }
8298
+ static get isExpressionOrIdentifierSymbol() {
8299
+ return IS_EXPR_OR_IDENT2;
8300
+ }
8301
+ get [IS_EXPR_OR_IDENT2]() {
8302
+ return true;
8303
+ }
8304
+ static value_of(item, context, globals, node) {
8305
+ if (item && item[Node3.isExpressionOrIdentifierSymbol]) {
8306
+ return item.get_value(item, context, globals, node);
8307
+ }
8308
+ return item;
8309
+ }
8310
+ static create_root(nodes, debug = false) {
8311
+ const out = [];
8312
+ const ops = [];
8313
+ for (let i = 0; i < nodes.length; i += 2) {
8314
+ out.push(nodes[i]);
8315
+ const op = nodes[i + 1];
8316
+ const prec = (op == null ? void 0 : op.precedence) || 0;
8317
+ while (ops.length && prec <= ops[ops.length - 1].precedence) {
8318
+ const rhs = out.pop();
8319
+ const lhs = out.pop();
8320
+ out.push(new Node3(lhs, ops.pop(), rhs));
8321
+ }
8322
+ ops.push(op);
8323
+ }
8324
+ if (out.length !== 1) {
8325
+ throw new Error(`unexpected nodes remain in shunting yard output stack: ${out}`);
8326
+ }
8327
+ return out[0];
8328
+ }
8329
+ };
8330
+ operators2["?"] = function ternary2(a, b, context, globals, node) {
8331
+ return Node3.value_of(a ? b.yes : b.no, context, globals, node);
8332
+ };
8333
+ operators2["?"].precedence = 4;
8334
+
8335
+ // ../../packages/utils.parser/src/Expression.ts
8336
+ var Expression3 = class {
8337
+ constructor(nodes) {
8338
+ this.nodes = nodes;
8339
+ this.root = Node3.create_root(nodes);
8340
+ }
8341
+ get_value(parent, context, globals, node) {
8342
+ if (!this.root) {
8343
+ this.root = Node3.create_root(this.nodes);
8344
+ }
8345
+ return this.root.get_value(parent, context, globals, node);
8346
+ }
8347
+ };
8348
+ Expression3.prototype[Node3.isExpressionOrIdentifierSymbol] = true;
8349
+
8350
+ // ../../packages/utils.parser/src/Arguments.ts
8351
+ var Arguments2 = class {
8352
+ constructor(parser, args) {
8353
+ this.parser = parser;
8354
+ this.args = args;
8355
+ }
8356
+ get_value(parent, context, globals, node) {
8357
+ var deReffedArgs = [];
8358
+ for (var i = 0, j = this.args.length; i < j; ++i) {
8359
+ deReffedArgs.push(Node3.value_of(this.args[i], context, globals, node));
8360
+ }
8361
+ return deReffedArgs;
8362
+ }
8363
+ get [Node3.isExpressionOrIdentifierSymbol]() {
8364
+ return true;
8365
+ }
8366
+ };
8367
+
8368
+ // ../../packages/utils.parser/src/identifierExpressions.ts
8369
+ var IDStart2 = /[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/;
8370
+ var IDContinue2 = /[\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/;
8371
+
8372
+ // ../../packages/utils.parser/src/Identifier.ts
8373
+ var Identifier2 = class {
8374
+ constructor(parser, token, dereferences) {
8375
+ this.token = token;
8376
+ this.dereferences = dereferences;
8377
+ this.parser = parser;
8378
+ }
8379
+ dereference(value2, $context, globals, node) {
8380
+ let member3;
8381
+ let refs = this.dereferences || [];
8382
+ const $data = $context.$data || {};
8383
+ let lastValue;
8384
+ let i, n;
8385
+ for (i = 0, n = refs.length; i < n; ++i) {
8386
+ member3 = Node3.value_of(refs[i], $context, globals, node);
8387
+ if (typeof value2 === "function" && refs[i] instanceof Arguments2) {
8388
+ value2 = value2.apply(lastValue || $data, member3);
8389
+ lastValue = value2;
8390
+ } else if (value2 === null || value2 === void 0) {
8391
+ return value2;
8392
+ } else {
8393
+ lastValue = value2;
8394
+ value2 = Node3.value_of(value2[member3], $context, globals, node);
8395
+ }
8396
+ }
8397
+ if (typeof value2 === "function" && n > 0 && lastValue !== value2 && !hasOwnProperty(lastValue, member3)) {
8398
+ return value2.bind(lastValue);
8399
+ }
8400
+ return value2;
8401
+ }
8402
+ get_value(parent, context, globals, node) {
8403
+ const intermediate = parent && !(parent instanceof Identifier2) ? Node3.value_of(parent, context, globals, node)[this.token] : context.lookup(this.token, globals, node);
8404
+ return this.dereference(intermediate, context, globals, node);
8405
+ }
8406
+ assign(object2, property, value2) {
8407
+ if (isWriteableObservable(object2[property])) {
8408
+ object2[property](value2);
8409
+ } else if (!isObservable(object2[property])) {
8410
+ object2[property] = value2;
8411
+ }
8412
+ }
8413
+ set_value(new_value, $context, globals) {
8414
+ const $data = $context.$data || {};
8415
+ const refs = this.dereferences || [];
8416
+ let leaf = this.token;
8417
+ let i, n, root;
8418
+ if (isObjectLike($data) && leaf in $data) {
8419
+ root = $data;
8420
+ } else if (leaf in $context) {
8421
+ root = $context;
8422
+ } else if (leaf in globals) {
8423
+ root = globals;
8424
+ } else {
8425
+ throw new Error("Identifier::set_value -- The property '" + leaf + "' does not exist on the $data, $context, or globals.");
8426
+ }
8427
+ n = refs.length;
8428
+ if (n === 0) {
8429
+ this.assign(root, leaf, new_value);
8430
+ return;
8431
+ }
8432
+ root = root[leaf];
8433
+ for (i = 0; i < n - 1; ++i) {
8434
+ leaf = refs[i];
8435
+ if (leaf instanceof Arguments2) {
8436
+ root = root();
8437
+ } else {
8438
+ root = root[Node3.value_of(leaf)];
8439
+ }
8440
+ }
8441
+ if (refs[i] === true) {
8442
+ throw new Error("Cannot assign a value to a function.");
8443
+ }
8444
+ if (refs[i]) {
8445
+ this.assign(root, Node3.value_of(refs[i]), new_value);
8446
+ }
8447
+ }
8448
+ static is_valid_start_char(ch) {
8449
+ return IDStart2.test(ch);
8450
+ }
8451
+ static is_valid_continue_char(ch) {
8452
+ return IDContinue2.test(ch);
8453
+ }
8454
+ get [Node3.isExpressionOrIdentifierSymbol]() {
8455
+ return true;
8456
+ }
8457
+ };
8458
+
8459
+ // ../../packages/utils.parser/src/Parameters.ts
8460
+ var Parameters2 = class {
8461
+ constructor(parser, node) {
8462
+ if (node instanceof Expression3) {
8463
+ node = node.root;
8464
+ }
8465
+ try {
8466
+ this.names = Parameters2.nodeTreeToNames(node);
8467
+ } catch (e) {
8468
+ parser.error(e);
8469
+ }
8470
+ }
8471
+ extendContext(context, args) {
8472
+ if (!this.names) {
8473
+ return context;
8474
+ } else {
8475
+ const newValues = {};
8476
+ this.names.forEach((name, index) => {
8477
+ newValues[name] = args[index];
8478
+ });
8479
+ return context.extend(newValues);
8480
+ }
8481
+ }
8482
+ get [Node3.isExpressionOrIdentifierSymbol]() {
8483
+ return true;
8484
+ }
8485
+ static nodeTreeToNames(node) {
8486
+ const names = [];
8487
+ while (node) {
8488
+ if (node instanceof Identifier2) {
8489
+ names.push(node.token);
8490
+ node = null;
8491
+ } else if (this.isCommaNode(node)) {
8492
+ names.push(node.rhs.token);
8493
+ node = node.lhs;
8494
+ } else {
8495
+ throw new Error(`only simple identifiers allowed in lambda parameter list but found ${JSON.stringify(node, null, 2)}`);
8496
+ }
8497
+ }
8498
+ names.reverse();
8499
+ return names;
8500
+ }
8501
+ static isCommaNode(node) {
8502
+ return node instanceof Node3 && node.op === operators2[","] && node.rhs instanceof Identifier2;
8503
+ }
8504
+ };
8505
+
8506
+ // ../../packages/utils.parser/src/Ternary.ts
8507
+ var Ternary2 = class {
8508
+ constructor(yes, no) {
8509
+ Object.assign(this, { yes, no });
8510
+ }
8511
+ get_value() {
8512
+ return this;
8513
+ }
8514
+ get [Node3.isExpressionOrIdentifierSymbol]() {
8515
+ return true;
8516
+ }
8517
+ };
8518
+
8519
+ // ../../packages/utils.parser/src/preparse.ts
8520
+ var specials2 = ",\"'`{}()/:[\\]";
8521
+ var bindingToken2 = RegExp([
8522
+ '"(?:\\\\.|[^"])*"',
8523
+ "'(?:\\\\.|[^'])*'",
8524
+ "`(?:\\\\.|[^`])*`",
8525
+ "/\\*(?:[^*]|\\*+[^*/])*\\*+/",
8526
+ "//.*\n",
8527
+ "/(?:\\\\.|[^/])+/\\w*",
8528
+ "[^\\s:,/][^" + specials2 + "]*[^\\s" + specials2 + "]",
8529
+ "[^\\s]"
8530
+ ].join("|"), "g");
8531
+
8532
+ // ../../packages/utils.parser/src/index.ts
8533
+ function overloadOperator(op, fn, precedence) {
8534
+ operators2[op] = fn;
8535
+ if (Number.isInteger(precedence)) {
8536
+ operators2[op].precedence = precedence;
8537
+ }
8538
+ }
8539
+
8114
8540
  // src/index.ts
8541
+ overloadOperator("==", (a, b) => a === b);
8542
+ overloadOperator("!=", (a, b) => a !== b);
8115
8543
  var builder = new Builder({
8116
8544
  filters,
8117
8545
  provider: new MultiProvider({
@@ -8134,7 +8562,7 @@ ${name} ${msg} of
8134
8562
  { each: bindings4.foreach }
8135
8563
  ]
8136
8564
  });
8137
- var version = "4.0.0-beta1.5";
8565
+ var version = "4.0.0-beta1.6";
8138
8566
  var src_default = builder.create({
8139
8567
  jsx: {
8140
8568
  createElement,