nativescript-vue 2.9.0 → 2.9.1-rc.0

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.js CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /*!
3
- * NativeScript-Vue v2.9.0
4
- * (Using Vue v2.6.12)
5
- * (c) 2017-2021 rigor789
3
+ * NativeScript-Vue v2.9.1-rc.0
4
+ * (Using Vue v2.6.14)
5
+ * (c) 2017-2022 rigor789
6
6
  * Released under the MIT license.
7
7
  */
8
8
 
@@ -40,7 +40,7 @@ function isFalse (v) {
40
40
  /**
41
41
  * Check if value is primitive.
42
42
  */
43
- function isPrimitive (value) {
43
+ function isPrimitive$2 (value) {
44
44
  return (
45
45
  typeof value === 'string' ||
46
46
  typeof value === 'number' ||
@@ -55,7 +55,7 @@ function isPrimitive (value) {
55
55
  * Objects from primitive values when we know the value
56
56
  * is a JSON-compliant type.
57
57
  */
58
- function isObject$1 (obj) {
58
+ function isObject$2 (obj) {
59
59
  return obj !== null && typeof obj === 'object'
60
60
  }
61
61
 
@@ -72,7 +72,7 @@ function toRawType (value) {
72
72
  * Strict object type check. Only returns true
73
73
  * for plain JavaScript objects.
74
74
  */
75
- function isPlainObject$1 (obj) {
75
+ function isPlainObject$2 (obj) {
76
76
  return _toString.call(obj) === '[object Object]'
77
77
  }
78
78
 
@@ -102,7 +102,7 @@ function isPromise (val) {
102
102
  function toString (val) {
103
103
  return val == null
104
104
  ? ''
105
- : Array.isArray(val) || (isPlainObject$1(val) && val.toString === _toString)
105
+ : Array.isArray(val) || (isPlainObject$2(val) && val.toString === _toString)
106
106
  ? JSON.stringify(val, null, 2)
107
107
  : String(val)
108
108
  }
@@ -301,8 +301,8 @@ function genStaticKeys$1 (modules) {
301
301
  */
302
302
  function looseEqual (a, b) {
303
303
  if (a === b) { return true }
304
- var isObjectA = isObject$1(a);
305
- var isObjectB = isObject$1(b);
304
+ var isObjectA = isObject$2(a);
305
+ var isObjectB = isObject$2(b);
306
306
  if (isObjectA && isObjectB) {
307
307
  try {
308
308
  var isArrayA = Array.isArray(a);
@@ -802,6 +802,8 @@ prototypeAccessors$2.child.get = function () {
802
802
 
803
803
  Object.defineProperties( VNode.prototype, prototypeAccessors$2 );
804
804
 
805
+ var VNode$1 = VNode;
806
+
805
807
  var createEmptyVNode = function (text) {
806
808
  if ( text === void 0 ) text = '';
807
809
 
@@ -980,7 +982,7 @@ function copyAugment (target, src, keys) {
980
982
  * or the existing observer if the value already has one.
981
983
  */
982
984
  function observe (value, asRootData) {
983
- if (!isObject$1(value) || value instanceof VNode) {
985
+ if (!isObject$2(value) || value instanceof VNode$1) {
984
986
  return
985
987
  }
986
988
  var ob;
@@ -989,7 +991,7 @@ function observe (value, asRootData) {
989
991
  } else if (
990
992
  shouldObserve &&
991
993
  !isServerRendering() &&
992
- (Array.isArray(value) || isPlainObject$1(value)) &&
994
+ (Array.isArray(value) || isPlainObject$2(value)) &&
993
995
  Object.isExtensible(value) &&
994
996
  !value._isVue
995
997
  ) {
@@ -1070,9 +1072,9 @@ function defineReactive (
1070
1072
  * triggers change notification if the property doesn't
1071
1073
  * already exist.
1072
1074
  */
1073
- function set$1 (target, key, val) {
1075
+ function set (target, key, val) {
1074
1076
  if (process.env.NODE_ENV !== 'production' &&
1075
- (isUndef(target) || isPrimitive(target))
1077
+ (isUndef(target) || isPrimitive$2(target))
1076
1078
  ) {
1077
1079
  warn$1(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
1078
1080
  }
@@ -1107,7 +1109,7 @@ function set$1 (target, key, val) {
1107
1109
  */
1108
1110
  function del (target, key) {
1109
1111
  if (process.env.NODE_ENV !== 'production' &&
1110
- (isUndef(target) || isPrimitive(target))
1112
+ (isUndef(target) || isPrimitive$2(target))
1111
1113
  ) {
1112
1114
  warn$1(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
1113
1115
  }
@@ -1189,11 +1191,11 @@ function mergeData (to, from) {
1189
1191
  toVal = to[key];
1190
1192
  fromVal = from[key];
1191
1193
  if (!hasOwn(to, key)) {
1192
- set$1(to, key, fromVal);
1194
+ set(to, key, fromVal);
1193
1195
  } else if (
1194
1196
  toVal !== fromVal &&
1195
- isPlainObject$1(toVal) &&
1196
- isPlainObject$1(fromVal)
1197
+ isPlainObject$2(toVal) &&
1198
+ isPlainObject$2(fromVal)
1197
1199
  ) {
1198
1200
  mergeData(toVal, fromVal);
1199
1201
  }
@@ -1439,11 +1441,11 @@ function normalizeProps (options, vm) {
1439
1441
  warn$1('props must be strings when using array syntax.');
1440
1442
  }
1441
1443
  }
1442
- } else if (isPlainObject$1(props)) {
1444
+ } else if (isPlainObject$2(props)) {
1443
1445
  for (var key in props) {
1444
1446
  val = props[key];
1445
1447
  name = camelize(key);
1446
- res[name] = isPlainObject$1(val)
1448
+ res[name] = isPlainObject$2(val)
1447
1449
  ? val
1448
1450
  : { type: val };
1449
1451
  }
@@ -1468,10 +1470,10 @@ function normalizeInject (options, vm) {
1468
1470
  for (var i = 0; i < inject.length; i++) {
1469
1471
  normalized[inject[i]] = { from: inject[i] };
1470
1472
  }
1471
- } else if (isPlainObject$1(inject)) {
1473
+ } else if (isPlainObject$2(inject)) {
1472
1474
  for (var key in inject) {
1473
1475
  var val = inject[key];
1474
- normalized[key] = isPlainObject$1(val)
1476
+ normalized[key] = isPlainObject$2(val)
1475
1477
  ? extend({ from: key }, val)
1476
1478
  : { from: val };
1477
1479
  }
@@ -1500,7 +1502,7 @@ function normalizeDirectives$1 (options) {
1500
1502
  }
1501
1503
 
1502
1504
  function assertObjectType (name, value, vm) {
1503
- if (!isPlainObject$1(value)) {
1505
+ if (!isPlainObject$2(value)) {
1504
1506
  warn$1(
1505
1507
  "Invalid value for option \"" + name + "\": expected an Object, " +
1506
1508
  "but got " + (toRawType(value)) + ".",
@@ -1652,7 +1654,7 @@ function getPropDefaultValue (vm, prop, key) {
1652
1654
  }
1653
1655
  var def = prop.default;
1654
1656
  // warn against non-factory defaults for Object & Array
1655
- if (process.env.NODE_ENV !== 'production' && isObject$1(def)) {
1657
+ if (process.env.NODE_ENV !== 'production' && isObject$2(def)) {
1656
1658
  warn$1(
1657
1659
  'Invalid default value for prop "' + key + '": ' +
1658
1660
  'Props with type Object/Array must use a factory function ' +
@@ -1703,13 +1705,14 @@ function assertProp (
1703
1705
  type = [type];
1704
1706
  }
1705
1707
  for (var i = 0; i < type.length && !valid; i++) {
1706
- var assertedType = assertType(value, type[i]);
1708
+ var assertedType = assertType(value, type[i], vm);
1707
1709
  expectedTypes.push(assertedType.expectedType || '');
1708
1710
  valid = assertedType.valid;
1709
1711
  }
1710
1712
  }
1711
1713
 
1712
- if (!valid) {
1714
+ var haveExpectedTypes = expectedTypes.some(function (t) { return t; });
1715
+ if (!valid && haveExpectedTypes) {
1713
1716
  warn$1(
1714
1717
  getInvalidTypeMessage(name, value, expectedTypes),
1715
1718
  vm
@@ -1727,9 +1730,9 @@ function assertProp (
1727
1730
  }
1728
1731
  }
1729
1732
 
1730
- var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
1733
+ var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol|BigInt)$/;
1731
1734
 
1732
- function assertType (value, type) {
1735
+ function assertType (value, type, vm) {
1733
1736
  var valid;
1734
1737
  var expectedType = getType(type);
1735
1738
  if (simpleCheckRE.test(expectedType)) {
@@ -1740,11 +1743,16 @@ function assertType (value, type) {
1740
1743
  valid = value instanceof type;
1741
1744
  }
1742
1745
  } else if (expectedType === 'Object') {
1743
- valid = isPlainObject$1(value);
1746
+ valid = isPlainObject$2(value);
1744
1747
  } else if (expectedType === 'Array') {
1745
1748
  valid = Array.isArray(value);
1746
1749
  } else {
1747
- valid = value instanceof type;
1750
+ try {
1751
+ valid = value instanceof type;
1752
+ } catch (e) {
1753
+ warn$1('Invalid prop type: "' + String(type) + '" is not a constructor', vm);
1754
+ valid = false;
1755
+ }
1748
1756
  }
1749
1757
  return {
1750
1758
  valid: valid,
@@ -1752,13 +1760,15 @@ function assertType (value, type) {
1752
1760
  }
1753
1761
  }
1754
1762
 
1763
+ var functionTypeCheckRE = /^\s*function (\w+)/;
1764
+
1755
1765
  /**
1756
1766
  * Use function string name to check built-in types,
1757
1767
  * because a simple equality check will fail when running
1758
1768
  * across different vms / iframes.
1759
1769
  */
1760
1770
  function getType (fn) {
1761
- var match = fn && fn.toString().match(/^\s*function (\w+)/);
1771
+ var match = fn && fn.toString().match(functionTypeCheckRE);
1762
1772
  return match ? match[1] : ''
1763
1773
  }
1764
1774
 
@@ -1783,18 +1793,19 @@ function getInvalidTypeMessage (name, value, expectedTypes) {
1783
1793
  " Expected " + (expectedTypes.map(capitalize).join(', '));
1784
1794
  var expectedType = expectedTypes[0];
1785
1795
  var receivedType = toRawType(value);
1786
- var expectedValue = styleValue(value, expectedType);
1787
- var receivedValue = styleValue(value, receivedType);
1788
1796
  // check if we need to specify expected value
1789
- if (expectedTypes.length === 1 &&
1790
- isExplicable(expectedType) &&
1791
- !isBoolean(expectedType, receivedType)) {
1792
- message += " with value " + expectedValue;
1797
+ if (
1798
+ expectedTypes.length === 1 &&
1799
+ isExplicable(expectedType) &&
1800
+ isExplicable(typeof value) &&
1801
+ !isBoolean(expectedType, receivedType)
1802
+ ) {
1803
+ message += " with value " + (styleValue(value, expectedType));
1793
1804
  }
1794
1805
  message += ", got " + receivedType + " ";
1795
1806
  // check if we need to specify received value
1796
1807
  if (isExplicable(receivedType)) {
1797
- message += "with value " + receivedValue + ".";
1808
+ message += "with value " + (styleValue(value, receivedType)) + ".";
1798
1809
  }
1799
1810
  return message
1800
1811
  }
@@ -1809,9 +1820,9 @@ function styleValue (value, type) {
1809
1820
  }
1810
1821
  }
1811
1822
 
1823
+ var EXPLICABLE_TYPES = ['string', 'number', 'boolean'];
1812
1824
  function isExplicable (value) {
1813
- var explicitTypes = ['string', 'number', 'boolean'];
1814
- return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
1825
+ return EXPLICABLE_TYPES.some(function (elem) { return value.toLowerCase() === elem; })
1815
1826
  }
1816
1827
 
1817
1828
  function isBoolean () {
@@ -2062,7 +2073,7 @@ function traverse (val) {
2062
2073
  function _traverse (val, seen) {
2063
2074
  var i, keys;
2064
2075
  var isA = Array.isArray(val);
2065
- if ((!isA && !isObject$1(val)) || Object.isFrozen(val) || val instanceof VNode) {
2076
+ if ((!isA && !isObject$2(val)) || Object.isFrozen(val) || val instanceof VNode$1) {
2066
2077
  return
2067
2078
  }
2068
2079
  if (val.__ob__) {
@@ -2407,18 +2418,15 @@ Watcher.prototype.run = function run () {
2407
2418
  // Deep watchers and watchers on Object/Arrays should fire even
2408
2419
  // when the value is the same, because the value may
2409
2420
  // have mutated.
2410
- isObject$1(value) ||
2421
+ isObject$2(value) ||
2411
2422
  this.deep
2412
2423
  ) {
2413
2424
  // set new value
2414
2425
  var oldValue = this.value;
2415
2426
  this.value = value;
2416
2427
  if (this.user) {
2417
- try {
2418
- this.cb.call(this.vm, value, oldValue);
2419
- } catch (e) {
2420
- handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
2421
- }
2428
+ var info = "callback for watcher \"" + (this.expression) + "\"";
2429
+ invokeWithErrorHandling(this.cb, this.vm, [value, oldValue], this.vm, info);
2422
2430
  } else {
2423
2431
  this.cb.call(this.vm, value, oldValue);
2424
2432
  }
@@ -2464,6 +2472,8 @@ Watcher.prototype.teardown = function teardown () {
2464
2472
  }
2465
2473
  };
2466
2474
 
2475
+ var Watcher$1 = Watcher;
2476
+
2467
2477
  var mark;
2468
2478
  var measure;
2469
2479
 
@@ -2565,7 +2575,7 @@ function updateListeners (
2565
2575
  /* */
2566
2576
 
2567
2577
  function mergeVNodeHook (def, hookKey, hook) {
2568
- if (def instanceof VNode) {
2578
+ if (def instanceof VNode$1) {
2569
2579
  def = def.data.hook || (def.data.hook = {});
2570
2580
  }
2571
2581
  var invoker;
@@ -2693,7 +2703,7 @@ function simpleNormalizeChildren (children) {
2693
2703
  // with hand-written render functions / JSX. In such cases a full normalization
2694
2704
  // is needed to cater to all possible types of children values.
2695
2705
  function normalizeChildren (children) {
2696
- return isPrimitive(children)
2706
+ return isPrimitive$2(children)
2697
2707
  ? [createTextVNode(children)]
2698
2708
  : Array.isArray(children)
2699
2709
  ? normalizeArrayChildren(children)
@@ -2723,7 +2733,7 @@ function normalizeArrayChildren (children, nestedIndex) {
2723
2733
  }
2724
2734
  res.push.apply(res, c);
2725
2735
  }
2726
- } else if (isPrimitive(c)) {
2736
+ } else if (isPrimitive$2(c)) {
2727
2737
  if (isTextNode(last)) {
2728
2738
  // merge adjacent text nodes
2729
2739
  // this is necessary for SSR hydration because text nodes are
@@ -2760,7 +2770,7 @@ if (process.env.NODE_ENV !== 'production') {
2760
2770
  var allowedGlobals = makeMap(
2761
2771
  'Infinity,undefined,NaN,isFinite,isNaN,' +
2762
2772
  'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
2763
- 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
2773
+ 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,' +
2764
2774
  'require' // for Webpack/Browserify
2765
2775
  );
2766
2776
 
@@ -2930,7 +2940,7 @@ function initData (vm) {
2930
2940
  data = vm._data = typeof data === 'function'
2931
2941
  ? getData(data, vm)
2932
2942
  : data || {};
2933
- if (!isPlainObject$1(data)) {
2943
+ if (!isPlainObject$2(data)) {
2934
2944
  data = {};
2935
2945
  process.env.NODE_ENV !== 'production' && warn$1(
2936
2946
  'data functions should return an object:\n' +
@@ -2998,7 +3008,7 @@ function initComputed$1 (vm, computed) {
2998
3008
 
2999
3009
  {
3000
3010
  // create internal watcher for the computed property.
3001
- watchers[key] = new Watcher(
3011
+ watchers[key] = new Watcher$1(
3002
3012
  vm,
3003
3013
  getter || noop,
3004
3014
  noop,
@@ -3016,6 +3026,8 @@ function initComputed$1 (vm, computed) {
3016
3026
  warn$1(("The computed property \"" + key + "\" is already defined in data."), vm);
3017
3027
  } else if (vm.$options.props && key in vm.$options.props) {
3018
3028
  warn$1(("The computed property \"" + key + "\" is already defined as a prop."), vm);
3029
+ } else if (vm.$options.methods && key in vm.$options.methods) {
3030
+ warn$1(("The computed property \"" + key + "\" is already defined as a method."), vm);
3019
3031
  }
3020
3032
  }
3021
3033
  }
@@ -3118,7 +3130,7 @@ function createWatcher (
3118
3130
  handler,
3119
3131
  options
3120
3132
  ) {
3121
- if (isPlainObject$1(handler)) {
3133
+ if (isPlainObject$2(handler)) {
3122
3134
  options = handler;
3123
3135
  handler = handler.handler;
3124
3136
  }
@@ -3151,7 +3163,7 @@ function stateMixin (Vue) {
3151
3163
  Object.defineProperty(Vue.prototype, '$data', dataDef);
3152
3164
  Object.defineProperty(Vue.prototype, '$props', propsDef);
3153
3165
 
3154
- Vue.prototype.$set = set$1;
3166
+ Vue.prototype.$set = set;
3155
3167
  Vue.prototype.$delete = del;
3156
3168
 
3157
3169
  Vue.prototype.$watch = function (
@@ -3160,18 +3172,17 @@ function stateMixin (Vue) {
3160
3172
  options
3161
3173
  ) {
3162
3174
  var vm = this;
3163
- if (isPlainObject$1(cb)) {
3175
+ if (isPlainObject$2(cb)) {
3164
3176
  return createWatcher(vm, expOrFn, cb, options)
3165
3177
  }
3166
3178
  options = options || {};
3167
3179
  options.user = true;
3168
- var watcher = new Watcher(vm, expOrFn, cb, options);
3180
+ var watcher = new Watcher$1(vm, expOrFn, cb, options);
3169
3181
  if (options.immediate) {
3170
- try {
3171
- cb.call(vm, watcher.value);
3172
- } catch (error) {
3173
- handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
3174
- }
3182
+ var info = "callback for immediate watcher \"" + (watcher.expression) + "\"";
3183
+ pushTarget();
3184
+ invokeWithErrorHandling(cb, vm, [watcher.value], vm, info);
3185
+ popTarget();
3175
3186
  }
3176
3187
  return function unwatchFn () {
3177
3188
  watcher.teardown();
@@ -3421,6 +3432,12 @@ function isWhitespace (node) {
3421
3432
 
3422
3433
  /* */
3423
3434
 
3435
+ function isAsyncPlaceholder (node) {
3436
+ return node.isComment && node.asyncFactory
3437
+ }
3438
+
3439
+ /* */
3440
+
3424
3441
  function normalizeScopedSlots (
3425
3442
  slots,
3426
3443
  normalSlots,
@@ -3477,9 +3494,10 @@ function normalizeScopedSlot(normalSlots, key, fn) {
3477
3494
  res = res && typeof res === 'object' && !Array.isArray(res)
3478
3495
  ? [res] // single vnode
3479
3496
  : normalizeChildren(res);
3497
+ var vnode = res && res[0];
3480
3498
  return res && (
3481
- res.length === 0 ||
3482
- (res.length === 1 && res[0].isComment) // #9658
3499
+ !vnode ||
3500
+ (res.length === 1 && vnode.isComment && !isAsyncPlaceholder(vnode)) // #9658, #10391
3483
3501
  ) ? undefined
3484
3502
  : res
3485
3503
  };
@@ -3520,7 +3538,7 @@ function renderList (
3520
3538
  for (i = 0; i < val; i++) {
3521
3539
  ret[i] = render(i + 1, i);
3522
3540
  }
3523
- } else if (isObject$1(val)) {
3541
+ } else if (isObject$2(val)) {
3524
3542
  if (hasSymbol && val[Symbol.iterator]) {
3525
3543
  ret = [];
3526
3544
  var iterator = val[Symbol.iterator]();
@@ -3552,26 +3570,28 @@ function renderList (
3552
3570
  */
3553
3571
  function renderSlot (
3554
3572
  name,
3555
- fallback,
3573
+ fallbackRender,
3556
3574
  props,
3557
3575
  bindObject
3558
3576
  ) {
3559
3577
  var scopedSlotFn = this.$scopedSlots[name];
3560
3578
  var nodes;
3561
- if (scopedSlotFn) { // scoped slot
3579
+ if (scopedSlotFn) {
3580
+ // scoped slot
3562
3581
  props = props || {};
3563
3582
  if (bindObject) {
3564
- if (process.env.NODE_ENV !== 'production' && !isObject$1(bindObject)) {
3565
- warn$1(
3566
- 'slot v-bind without argument expects an Object',
3567
- this
3568
- );
3583
+ if (process.env.NODE_ENV !== 'production' && !isObject$2(bindObject)) {
3584
+ warn$1('slot v-bind without argument expects an Object', this);
3569
3585
  }
3570
3586
  props = extend(extend({}, bindObject), props);
3571
3587
  }
3572
- nodes = scopedSlotFn(props) || fallback;
3588
+ nodes =
3589
+ scopedSlotFn(props) ||
3590
+ (typeof fallbackRender === 'function' ? fallbackRender() : fallbackRender);
3573
3591
  } else {
3574
- nodes = this.$slots[name] || fallback;
3592
+ nodes =
3593
+ this.$slots[name] ||
3594
+ (typeof fallbackRender === 'function' ? fallbackRender() : fallbackRender);
3575
3595
  }
3576
3596
 
3577
3597
  var target = props && props.slot;
@@ -3621,6 +3641,7 @@ function checkKeyCodes (
3621
3641
  } else if (eventKeyName) {
3622
3642
  return hyphenate(eventKeyName) !== key
3623
3643
  }
3644
+ return eventKeyCode === undefined
3624
3645
  }
3625
3646
 
3626
3647
  /* */
@@ -3636,7 +3657,7 @@ function bindObjectProps (
3636
3657
  isSync
3637
3658
  ) {
3638
3659
  if (value) {
3639
- if (!isObject$1(value)) {
3660
+ if (!isObject$2(value)) {
3640
3661
  process.env.NODE_ENV !== 'production' && warn$1(
3641
3662
  'v-bind without argument expects an Object or Array value',
3642
3663
  this
@@ -3744,7 +3765,7 @@ function markStaticNode (node, key, isOnce) {
3744
3765
 
3745
3766
  function bindObjectListeners (data, value) {
3746
3767
  if (value) {
3747
- if (!isPlainObject$1(value)) {
3768
+ if (!isPlainObject$2(value)) {
3748
3769
  process.env.NODE_ENV !== 'production' && warn$1(
3749
3770
  'v-on without argument expects an Object value',
3750
3771
  this
@@ -3845,7 +3866,7 @@ function FunctionalRenderContext (
3845
3866
  parent,
3846
3867
  Ctor
3847
3868
  ) {
3848
- var this$1 = this;
3869
+ var this$1$1 = this;
3849
3870
 
3850
3871
  var options = Ctor.options;
3851
3872
  // ensure the createElement function in functional components
@@ -3873,13 +3894,13 @@ function FunctionalRenderContext (
3873
3894
  this.listeners = data.on || emptyObject;
3874
3895
  this.injections = resolveInject(options.inject, parent);
3875
3896
  this.slots = function () {
3876
- if (!this$1.$slots) {
3897
+ if (!this$1$1.$slots) {
3877
3898
  normalizeScopedSlots(
3878
3899
  data.scopedSlots,
3879
- this$1.$slots = resolveSlots(children, parent)
3900
+ this$1$1.$slots = resolveSlots(children, parent)
3880
3901
  );
3881
3902
  }
3882
- return this$1.$slots
3903
+ return this$1$1.$slots
3883
3904
  };
3884
3905
 
3885
3906
  Object.defineProperty(this, 'scopedSlots', ({
@@ -3943,7 +3964,7 @@ function createFunctionalComponent (
3943
3964
 
3944
3965
  var vnode = options.render.call(null, renderContext._c, renderContext);
3945
3966
 
3946
- if (vnode instanceof VNode) {
3967
+ if (vnode instanceof VNode$1) {
3947
3968
  return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
3948
3969
  } else if (Array.isArray(vnode)) {
3949
3970
  var vnodes = normalizeChildren(vnode) || [];
@@ -4060,7 +4081,7 @@ function createComponent (
4060
4081
  var baseCtor = context.$options._base;
4061
4082
 
4062
4083
  // plain options object: turn it into a constructor
4063
- if (isObject$1(Ctor)) {
4084
+ if (isObject$2(Ctor)) {
4064
4085
  Ctor = baseCtor.extend(Ctor);
4065
4086
  }
4066
4087
 
@@ -4135,7 +4156,7 @@ function createComponent (
4135
4156
 
4136
4157
  // return a placeholder vnode
4137
4158
  var name = Ctor.options.name || tag;
4138
- var vnode = new VNode(
4159
+ var vnode = new VNode$1(
4139
4160
  ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
4140
4161
  data, undefined, undefined, undefined, context,
4141
4162
  { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
@@ -4146,8 +4167,10 @@ function createComponent (
4146
4167
  }
4147
4168
 
4148
4169
  function createComponentInstanceForVnode (
4149
- vnode, // we know it's MountedComponentVNode but flow doesn't
4150
- parent // activeInstance in lifecycle state
4170
+ // we know it's MountedComponentVNode but flow doesn't
4171
+ vnode,
4172
+ // activeInstance in lifecycle state
4173
+ parent
4151
4174
  ) {
4152
4175
  var options = {
4153
4176
  _isComponent: true,
@@ -4222,7 +4245,7 @@ function createElement$1 (
4222
4245
  normalizationType,
4223
4246
  alwaysNormalize
4224
4247
  ) {
4225
- if (Array.isArray(data) || isPrimitive(data)) {
4248
+ if (Array.isArray(data) || isPrimitive$2(data)) {
4226
4249
  normalizationType = children;
4227
4250
  children = data;
4228
4251
  data = undefined;
@@ -4258,7 +4281,7 @@ function _createElement (
4258
4281
  }
4259
4282
  // warn against non-primitive key
4260
4283
  if (process.env.NODE_ENV !== 'production' &&
4261
- isDef(data) && isDef(data.key) && !isPrimitive(data.key)
4284
+ isDef(data) && isDef(data.key) && !isPrimitive$2(data.key)
4262
4285
  ) {
4263
4286
  {
4264
4287
  warn$1(
@@ -4287,13 +4310,13 @@ function _createElement (
4287
4310
  ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
4288
4311
  if (config.isReservedTag(tag)) {
4289
4312
  // platform built-in elements
4290
- if (process.env.NODE_ENV !== 'production' && isDef(data) && isDef(data.nativeOn)) {
4313
+ if (process.env.NODE_ENV !== 'production' && isDef(data) && isDef(data.nativeOn) && data.tag !== 'component') {
4291
4314
  warn$1(
4292
4315
  ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
4293
4316
  context
4294
4317
  );
4295
4318
  }
4296
- vnode = new VNode(
4319
+ vnode = new VNode$1(
4297
4320
  config.parsePlatformTagName(tag), data, children,
4298
4321
  undefined, undefined, context
4299
4322
  );
@@ -4304,7 +4327,7 @@ function _createElement (
4304
4327
  // unknown or unlisted namespaced elements
4305
4328
  // check at runtime because it may get assigned a namespace when its
4306
4329
  // parent normalizes children
4307
- vnode = new VNode(
4330
+ vnode = new VNode$1(
4308
4331
  tag, data, children,
4309
4332
  undefined, undefined, context
4310
4333
  );
@@ -4346,10 +4369,10 @@ function applyNS (vnode, ns, force) {
4346
4369
  // necessary to ensure parent re-render when deep bindings like :style and
4347
4370
  // :class are used on slot nodes
4348
4371
  function registerDeepBindings (data) {
4349
- if (isObject$1(data.style)) {
4372
+ if (isObject$2(data.style)) {
4350
4373
  traverse(data.style);
4351
4374
  }
4352
- if (isObject$1(data.class)) {
4375
+ if (isObject$2(data.class)) {
4353
4376
  traverse(data.class);
4354
4377
  }
4355
4378
  }
@@ -4449,7 +4472,7 @@ function renderMixin (Vue) {
4449
4472
  vnode = vnode[0];
4450
4473
  }
4451
4474
  // return empty vnode in case the render function errored out
4452
- if (!(vnode instanceof VNode)) {
4475
+ if (!(vnode instanceof VNode$1)) {
4453
4476
  if (process.env.NODE_ENV !== 'production' && Array.isArray(vnode)) {
4454
4477
  warn$1(
4455
4478
  'Multiple root nodes returned from render function. Render function ' +
@@ -4474,7 +4497,7 @@ function ensureCtor (comp, base) {
4474
4497
  ) {
4475
4498
  comp = comp.default;
4476
4499
  }
4477
- return isObject$1(comp)
4500
+ return isObject$2(comp)
4478
4501
  ? base.extend(comp)
4479
4502
  : comp
4480
4503
  }
@@ -4565,7 +4588,7 @@ function resolveAsyncComponent (
4565
4588
 
4566
4589
  var res = factory(resolve, reject);
4567
4590
 
4568
- if (isObject$1(res)) {
4591
+ if (isObject$2(res)) {
4569
4592
  if (isPromise(res)) {
4570
4593
  // () => Promise
4571
4594
  if (isUndef(factory.resolved)) {
@@ -4618,12 +4641,6 @@ function resolveAsyncComponent (
4618
4641
 
4619
4642
  /* */
4620
4643
 
4621
- function isAsyncPlaceholder (node) {
4622
- return node.isComment && node.asyncFactory
4623
- }
4624
-
4625
- /* */
4626
-
4627
4644
  function getFirstComponentChild (children) {
4628
4645
  if (Array.isArray(children)) {
4629
4646
  for (var i = 0; i < children.length; i++) {
@@ -4948,7 +4965,7 @@ function mountComponent (
4948
4965
  // we set this to vm._watcher inside the watcher's constructor
4949
4966
  // since the watcher's initial patch may call $forceUpdate (e.g. inside child
4950
4967
  // component's mounted hook), which relies on vm._watcher being already defined
4951
- new Watcher(vm, updateComponent, noop, {
4968
+ new Watcher$1(vm, updateComponent, noop, {
4952
4969
  before: function before () {
4953
4970
  if (vm._isMounted && !vm._isDestroyed) {
4954
4971
  callHook$1(vm, 'beforeUpdate');
@@ -4988,7 +5005,8 @@ function updateChildComponent (
4988
5005
  var hasDynamicScopedSlot = !!(
4989
5006
  (newScopedSlots && !newScopedSlots.$stable) ||
4990
5007
  (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
4991
- (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
5008
+ (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key) ||
5009
+ (!newScopedSlots && vm.$scopedSlots.$key)
4992
5010
  );
4993
5011
 
4994
5012
  // Any static slot children from the parent may have changed during parent's
@@ -5123,7 +5141,7 @@ makeMap(
5123
5141
  // contain child elements.
5124
5142
  makeMap(
5125
5143
  'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,' +
5126
- 'foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +
5144
+ 'foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +
5127
5145
  'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view',
5128
5146
  true
5129
5147
  );
@@ -5142,13 +5160,14 @@ var isTextInputType = makeMap('text,number,password,search,email,tel,url');
5142
5160
  * of making flow understand it is not worth it.
5143
5161
  */
5144
5162
 
5145
- var emptyNode = new VNode('', {}, []);
5163
+ var emptyNode = new VNode$1('', {}, []);
5146
5164
 
5147
5165
  var hooks = ['create', 'activate', 'update', 'remove', 'destroy'];
5148
5166
 
5149
5167
  function sameVnode (a, b) {
5150
5168
  return (
5151
- a.key === b.key && (
5169
+ a.key === b.key &&
5170
+ a.asyncFactory === b.asyncFactory && (
5152
5171
  (
5153
5172
  a.tag === b.tag &&
5154
5173
  a.isComment === b.isComment &&
@@ -5156,7 +5175,6 @@ function sameVnode (a, b) {
5156
5175
  sameInputType(a, b)
5157
5176
  ) || (
5158
5177
  isTrue(a.isAsyncPlaceholder) &&
5159
- a.asyncFactory === b.asyncFactory &&
5160
5178
  isUndef(b.asyncFactory.error)
5161
5179
  )
5162
5180
  )
@@ -5198,7 +5216,7 @@ function createPatchFunction (backend) {
5198
5216
  }
5199
5217
 
5200
5218
  function emptyNodeAt (elm) {
5201
- return new VNode(nodeOps.tagName(elm).toLowerCase(), {}, [], undefined, elm)
5219
+ return new VNode$1(nodeOps.tagName(elm).toLowerCase(), {}, [], undefined, elm)
5202
5220
  }
5203
5221
 
5204
5222
  function createRmCb (childElm, listeners) {
@@ -5386,7 +5404,7 @@ function createPatchFunction (backend) {
5386
5404
  for (var i = 0; i < children.length; ++i) {
5387
5405
  createElm(children[i], insertedVnodeQueue, vnode.elm, null, true, children, i);
5388
5406
  }
5389
- } else if (isPrimitive(vnode.text)) {
5407
+ } else if (isPrimitive$2(vnode.text)) {
5390
5408
  nodeOps.appendChild(vnode.elm, nodeOps.createTextNode(String(vnode.text)));
5391
5409
  }
5392
5410
  }
@@ -6103,7 +6121,7 @@ function stringifyClass (value) {
6103
6121
  if (Array.isArray(value)) {
6104
6122
  return stringifyArray(value)
6105
6123
  }
6106
- if (isObject$1(value)) {
6124
+ if (isObject$2(value)) {
6107
6125
  return stringifyObject(value)
6108
6126
  }
6109
6127
  if (typeof value === 'string') {
@@ -6482,7 +6500,7 @@ function enter(vnode, toggleDisplay) {
6482
6500
  : enterCancelled;
6483
6501
 
6484
6502
  var explicitEnterDuration = toNumber(
6485
- isObject$1(duration) ? duration.enter : duration
6503
+ isObject$2(duration) ? duration.enter : duration
6486
6504
  );
6487
6505
 
6488
6506
  if (process.env.NODE_ENV !== 'production' && explicitEnterDuration != null) {
@@ -6588,7 +6606,7 @@ function leave(vnode, rm) {
6588
6606
  var userWantsControl = getHookArgumentsLength(leave);
6589
6607
 
6590
6608
  var explicitLeaveDuration = toNumber(
6591
- isObject$1(duration) ? duration.leave : duration
6609
+ isObject$2(duration) ? duration.leave : duration
6592
6610
  );
6593
6611
 
6594
6612
  if (process.env.NODE_ENV !== 'production' && isDef(explicitLeaveDuration)) {
@@ -6739,8 +6757,20 @@ function setFrame(id, frame) {
6739
6757
  return frames.set(id, frame)
6740
6758
  }
6741
6759
 
6742
- function getFrame(id) {
6743
- return frames.get(id)
6760
+ function getFrame(id, fallback) {
6761
+ if (frames.has(id)) {
6762
+ return frames.get(id)
6763
+ }
6764
+
6765
+ // handle a fallback case where the frame with a same id might have been unmounted, but another one with the same id exists as a fallback...
6766
+ if (fallback) {
6767
+ var frameVM = fallback[VUE_ELEMENT_REF]['__vue__'];
6768
+ setFrame(id, frameVM);
6769
+
6770
+ return frameVM
6771
+ }
6772
+
6773
+ return null
6744
6774
  }
6745
6775
 
6746
6776
  function deleteFrame(id) {
@@ -6861,7 +6891,7 @@ var frame = {
6861
6891
  },
6862
6892
 
6863
6893
  navigate: function navigate(entry, back) {
6864
- var this$1 = this;
6894
+ var this$1$1 = this;
6865
6895
  if ( back === void 0 ) back = false;
6866
6896
 
6867
6897
  var frame = this._getFrame();
@@ -6874,14 +6904,14 @@ var frame = {
6874
6904
  // to fire the frame events
6875
6905
  var page = entry.create();
6876
6906
  page.once('navigatedTo', function () {
6877
- this$1.$emit('navigated', entry);
6907
+ this$1$1.$emit('navigated', entry);
6878
6908
  });
6879
6909
 
6880
6910
  var handler = function (args) {
6881
6911
  if (args.isBackNavigation) {
6882
6912
  page.off('navigatedFrom', handler);
6883
6913
 
6884
- this$1.$emit('navigatedBack', entry);
6914
+ this$1$1.$emit('navigatedBack', entry);
6885
6915
  }
6886
6916
  };
6887
6917
  page.on('navigatedFrom', handler);
@@ -7076,7 +7106,7 @@ var listView = {
7076
7106
  },
7077
7107
 
7078
7108
  mounted: function mounted() {
7079
- var this$1 = this;
7109
+ var this$1$1 = this;
7080
7110
 
7081
7111
  if (!this.$templates) {
7082
7112
  return
@@ -7087,7 +7117,7 @@ var listView = {
7087
7117
  this.$templates.getKeyedTemplates()
7088
7118
  );
7089
7119
  this.$refs.listView.setAttribute('itemTemplateSelector', function (item, index) {
7090
- return this$1.$templates.selectorFn(this$1.getItemContext(item, index))
7120
+ return this$1$1.$templates.selectorFn(this$1$1.getItemContext(item, index))
7091
7121
  });
7092
7122
  },
7093
7123
 
@@ -7163,8 +7193,8 @@ function isUnknownElement(el) {
7163
7193
  return !isKnownView(el)
7164
7194
  }
7165
7195
 
7166
- var VUE_VERSION = process.env.VUE_VERSION || '2.6.12';
7167
- var NS_VUE_VERSION = process.env.NS_VUE_VERSION || '2.9.0';
7196
+ var VUE_VERSION = process.env.VUE_VERSION || '2.6.14';
7197
+ var NS_VUE_VERSION = process.env.NS_VUE_VERSION || '2.9.1-rc.0';
7168
7198
 
7169
7199
  var infoTrace = once(function () {
7170
7200
  console.log(
@@ -7208,7 +7238,7 @@ var page = {
7208
7238
  )
7209
7239
  },
7210
7240
  mounted: function mounted() {
7211
- var this$1 = this;
7241
+ var this$1$1 = this;
7212
7242
 
7213
7243
  this.$el.nativeView[PAGE_REF] = this;
7214
7244
 
@@ -7223,8 +7253,8 @@ var page = {
7223
7253
 
7224
7254
  var handler = function (e) {
7225
7255
  if (e.isBackNavigation) {
7226
- this$1.$el.nativeView.off('navigatedFrom', handler);
7227
- this$1.$parent.$destroy();
7256
+ this$1$1.$el.nativeView.off('navigatedFrom', handler);
7257
+ this$1$1.$parent.$destroy();
7228
7258
  }
7229
7259
  };
7230
7260
 
@@ -7237,8 +7267,8 @@ var page = {
7237
7267
  var args = [], len = arguments.length;
7238
7268
  while ( len-- ) args[ len ] = arguments[ len ];
7239
7269
 
7240
- this$1.$parent.$destroy();
7241
- dispose.call(this$1.$el.nativeView, args);
7270
+ this$1$1.$parent.$destroy();
7271
+ dispose.call(this$1$1.$el.nativeView, args);
7242
7272
  updateDevtools();
7243
7273
  };
7244
7274
  },
@@ -7372,7 +7402,7 @@ var Transition = {
7372
7402
  abstract: true,
7373
7403
 
7374
7404
  render: function render (h) {
7375
- var this$1 = this;
7405
+ var this$1$1 = this;
7376
7406
 
7377
7407
  var children = this.$slots.default;
7378
7408
  if (!children) {
@@ -7435,7 +7465,7 @@ var Transition = {
7435
7465
  ? child.isComment
7436
7466
  ? id + 'comment'
7437
7467
  : id + child.tag
7438
- : isPrimitive(child.key)
7468
+ : isPrimitive$2(child.key)
7439
7469
  ? (String(child.key).indexOf(id) === 0 ? child.key : id + child.key)
7440
7470
  : child.key;
7441
7471
 
@@ -7465,8 +7495,8 @@ var Transition = {
7465
7495
  // return placeholder node and queue update when leave finishes
7466
7496
  this._leaving = true;
7467
7497
  mergeVNodeHook(oldData, 'afterLeave', function () {
7468
- this$1._leaving = false;
7469
- this$1.$forceUpdate();
7498
+ this$1$1._leaving = false;
7499
+ this$1$1.$forceUpdate();
7470
7500
  });
7471
7501
  return placeholder(h, rawChild)
7472
7502
  } else if (mode === 'in-out') {
@@ -7806,6 +7836,20 @@ registerElement('Frame', function () { return require('@nativescript/core').Fram
7806
7836
  component: frame
7807
7837
  });
7808
7838
 
7839
+ /*!
7840
+ * is-primitive <https://github.com/jonschlinkert/is-primitive>
7841
+ *
7842
+ * Copyright (c) 2014-present, Jon Schlinkert.
7843
+ * Released under the MIT License.
7844
+ */
7845
+
7846
+ var isPrimitive$1 = function isPrimitive(val) {
7847
+ if (typeof val === 'object') {
7848
+ return val === null;
7849
+ }
7850
+ return typeof val !== 'function';
7851
+ };
7852
+
7809
7853
  /*!
7810
7854
  * isobject <https://github.com/jonschlinkert/isobject>
7811
7855
  *
@@ -7824,14 +7868,14 @@ var isobject = function isObject(val) {
7824
7868
  * Released under the MIT License.
7825
7869
  */
7826
7870
 
7827
-
7871
+ var isObject$1 = isobject;
7828
7872
 
7829
7873
  function isObjectObject(o) {
7830
- return isobject(o) === true
7874
+ return isObject$1(o) === true
7831
7875
  && Object.prototype.toString.call(o) === '[object Object]';
7832
7876
  }
7833
7877
 
7834
- var isPlainObject = function isPlainObject(o) {
7878
+ var isPlainObject$1 = function isPlainObject(o) {
7835
7879
  var ctor,prot;
7836
7880
 
7837
7881
  if (isObjectObject(o) === false) { return false; }
@@ -7856,111 +7900,172 @@ var isPlainObject = function isPlainObject(o) {
7856
7900
  /*!
7857
7901
  * set-value <https://github.com/jonschlinkert/set-value>
7858
7902
  *
7859
- * Copyright (c) 2014-2018, Jon Schlinkert.
7903
+ * Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
7860
7904
  * Released under the MIT License.
7861
7905
  */
7862
7906
 
7907
+ var deleteProperty = Reflect.deleteProperty;
7908
+ var isPrimitive = isPrimitive$1;
7909
+ var isPlainObject = isPlainObject$1;
7863
7910
 
7911
+ var isObject = function (value) {
7912
+ return (typeof value === 'object' && value !== null) || typeof value === 'function';
7913
+ };
7864
7914
 
7865
- function set(target, path, value, options) {
7866
- if (!isObject(target)) {
7867
- return target;
7868
- }
7915
+ var isUnsafeKey = function (key) {
7916
+ return key === '__proto__' || key === 'constructor' || key === 'prototype';
7917
+ };
7869
7918
 
7870
- var opts = options || {};
7871
- var isArray = Array.isArray(path);
7872
- if (!isArray && typeof path !== 'string') {
7873
- return target;
7919
+ var validateKey = function (key) {
7920
+ if (!isPrimitive(key)) {
7921
+ throw new TypeError('Object keys must be strings or symbols');
7874
7922
  }
7875
7923
 
7876
- var merge = opts.merge;
7877
- if (merge && typeof merge !== 'function') {
7878
- merge = Object.assign;
7924
+ if (isUnsafeKey(key)) {
7925
+ throw new Error(("Cannot set unsafe key: \"" + key + "\""));
7879
7926
  }
7927
+ };
7928
+
7929
+ var toStringKey = function (input) {
7930
+ return Array.isArray(input) ? input.flat().map(String).join(',') : input;
7931
+ };
7932
+
7933
+ var createMemoKey = function (input, options) {
7934
+ if (typeof input !== 'string' || !options) { return input; }
7935
+ var key = input + ';';
7936
+ if (options.arrays !== undefined) { key += "arrays=" + (options.arrays) + ";"; }
7937
+ if (options.separator !== undefined) { key += "separator=" + (options.separator) + ";"; }
7938
+ if (options.split !== undefined) { key += "split=" + (options.split) + ";"; }
7939
+ if (options.merge !== undefined) { key += "merge=" + (options.merge) + ";"; }
7940
+ if (options.preservePaths !== undefined) { key += "preservePaths=" + (options.preservePaths) + ";"; }
7941
+ return key;
7942
+ };
7943
+
7944
+ var memoize = function (input, options, fn) {
7945
+ var key = toStringKey(options ? createMemoKey(input, options) : input);
7946
+ validateKey(key);
7880
7947
 
7881
- var keys = (isArray ? path : split(path, opts)).filter(isValidKey);
7882
- var len = keys.length;
7883
- var orig = target;
7948
+ var value = setValue.cache.get(key) || fn();
7949
+ setValue.cache.set(key, value);
7950
+ return value;
7951
+ };
7952
+
7953
+ var splitString = function (input, options) {
7954
+ if ( options === void 0 ) options = {};
7884
7955
 
7885
- if (!options && keys.length === 1) {
7886
- result(target, keys[0], value, merge);
7887
- return target;
7956
+ var sep = options.separator || '.';
7957
+ var preserve = sep === '/' ? false : options.preservePaths;
7958
+
7959
+ if (typeof input === 'string' && preserve !== false && /\//.test(input)) {
7960
+ return [input];
7888
7961
  }
7889
7962
 
7890
- for (var i = 0; i < len; i++) {
7891
- var prop = keys[i];
7963
+ var parts = [];
7964
+ var part = '';
7892
7965
 
7893
- if (!isObject(target[prop])) {
7894
- target[prop] = {};
7966
+ var push = function (part) {
7967
+ var number;
7968
+ if (part.trim() !== '' && Number.isInteger((number = Number(part)))) {
7969
+ parts.push(number);
7970
+ } else {
7971
+ parts.push(part);
7895
7972
  }
7973
+ };
7896
7974
 
7897
- if (i === len - 1) {
7898
- result(target, prop, value, merge);
7899
- break;
7975
+ for (var i = 0; i < input.length; i++) {
7976
+ var value = input[i];
7977
+
7978
+ if (value === '\\') {
7979
+ part += input[++i];
7980
+ continue;
7900
7981
  }
7901
7982
 
7902
- target = target[prop];
7903
- }
7983
+ if (value === sep) {
7984
+ push(part);
7985
+ part = '';
7986
+ continue;
7987
+ }
7904
7988
 
7905
- return orig;
7906
- }
7989
+ part += value;
7990
+ }
7907
7991
 
7908
- function result(target, path, value, merge) {
7909
- if (merge && isPlainObject(target[path]) && isPlainObject(value)) {
7910
- target[path] = merge({}, target[path], value);
7911
- } else {
7912
- target[path] = value;
7992
+ if (part) {
7993
+ push(part);
7913
7994
  }
7914
- }
7915
7995
 
7916
- function split(path, options) {
7917
- var id = createKey(path, options);
7918
- if (set.memo[id]) { return set.memo[id]; }
7996
+ return parts;
7997
+ };
7919
7998
 
7920
- var char = (options && options.separator) ? options.separator : '.';
7921
- var keys = [];
7922
- var res = [];
7999
+ var split = function (input, options) {
8000
+ if (options && typeof options.split === 'function') { return options.split(input); }
8001
+ if (typeof input === 'symbol') { return [input]; }
8002
+ if (Array.isArray(input)) { return input; }
8003
+ return memoize(input, options, function () { return splitString(input, options); });
8004
+ };
7923
8005
 
7924
- if (options && typeof options.split === 'function') {
7925
- keys = options.split(path);
7926
- } else {
7927
- keys = path.split(char);
7928
- }
8006
+ var assignProp = function (obj, prop, value, options) {
8007
+ validateKey(prop);
7929
8008
 
7930
- for (var i = 0; i < keys.length; i++) {
7931
- var prop = keys[i];
7932
- while (prop && prop.slice(-1) === '\\' && keys[i + 1] != null) {
7933
- prop = prop.slice(0, -1) + char + keys[++i];
8009
+ // Delete property when "value" is undefined
8010
+ if (value === undefined) {
8011
+ deleteProperty(obj, prop);
8012
+
8013
+ } else if (options && options.merge) {
8014
+ var merge = options.merge === 'function' ? options.merge : Object.assign;
8015
+
8016
+ // Only merge plain objects
8017
+ if (merge && isPlainObject(obj[prop]) && isPlainObject(value)) {
8018
+ obj[prop] = merge(obj[prop], value);
8019
+ } else {
8020
+ obj[prop] = value;
7934
8021
  }
7935
- res.push(prop);
7936
- }
7937
- set.memo[id] = res;
7938
- return res;
7939
- }
7940
8022
 
7941
- function createKey(pattern, options) {
7942
- var id = pattern;
7943
- if (typeof options === 'undefined') {
7944
- return id + '';
8023
+ } else {
8024
+ obj[prop] = value;
7945
8025
  }
7946
- var keys = Object.keys(options);
8026
+
8027
+ return obj;
8028
+ };
8029
+
8030
+ var setValue = function (target, path, value, options) {
8031
+ if (!path || !isObject(target)) { return target; }
8032
+
8033
+ var keys = split(path, options);
8034
+ var obj = target;
8035
+
7947
8036
  for (var i = 0; i < keys.length; i++) {
7948
8037
  var key = keys[i];
7949
- id += ';' + key + '=' + String(options[key]);
8038
+ var next = keys[i + 1];
8039
+
8040
+ validateKey(key);
8041
+
8042
+ if (next === undefined) {
8043
+ assignProp(obj, key, value, options);
8044
+ break;
8045
+ }
8046
+
8047
+ if (typeof next === 'number' && !Array.isArray(obj[key])) {
8048
+ obj = obj[key] = [];
8049
+ continue;
8050
+ }
8051
+
8052
+ if (!isObject(obj[key])) {
8053
+ obj[key] = {};
8054
+ }
8055
+
8056
+ obj = obj[key];
7950
8057
  }
7951
- return id;
7952
- }
7953
8058
 
7954
- function isValidKey(key) {
7955
- return key !== '__proto__' && key !== 'constructor' && key !== 'prototype';
7956
- }
8059
+ return target;
8060
+ };
7957
8061
 
7958
- function isObject(val) {
7959
- return val !== null && (typeof val === 'object' || typeof val === 'function');
7960
- }
8062
+ setValue.split = split;
8063
+ setValue.cache = new Map();
8064
+ setValue.clear = function () {
8065
+ setValue.cache = new Map();
8066
+ };
7961
8067
 
7962
- set.memo = {};
7963
- var setValue = set;
8068
+ var setValue_1 = setValue;
7964
8069
 
7965
8070
  var View;
7966
8071
  function isView(view) {
@@ -8169,17 +8274,17 @@ ViewNode.prototype.setAttribute = function setAttribute (key, value) {
8169
8274
  }
8170
8275
 
8171
8276
  if (isAndroid && key.startsWith('android:')) {
8172
- setValue(nv, key.substr(8), value);
8277
+ setValue_1(nv, key.substr(8), value);
8173
8278
  } else if (isIOS && key.startsWith('ios:')) {
8174
- setValue(nv, key.substr(4), value);
8279
+ setValue_1(nv, key.substr(4), value);
8175
8280
  } else if (key.endsWith('.decode')) {
8176
- setValue(
8281
+ setValue_1(
8177
8282
  nv,
8178
8283
  key.slice(0, -7),
8179
8284
  require('@nativescript/core').XmlParser._dereferenceEntities(value)
8180
8285
  );
8181
8286
  } else {
8182
- setValue(nv, key, value);
8287
+ setValue_1(nv, key, value);
8183
8288
  }
8184
8289
  }
8185
8290
  } catch (e) {
@@ -8613,7 +8718,7 @@ var isNonPhrasingTag = makeMap(
8613
8718
 
8614
8719
  // Regular Expressions for parsing tags and attributes
8615
8720
  var attribute = /^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
8616
- var dynamicArgAttribute = /^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
8721
+ var dynamicArgAttribute = /^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
8617
8722
  var ncname = "[a-zA-Z_][\\-\\.0-9_a-zA-Z" + (unicodeRegExp.source) + "]*";
8618
8723
  var qnameCapture = "((?:" + ncname + "\\:)?" + ncname + ")";
8619
8724
  var startTagOpen = new RegExp(("^<" + qnameCapture));
@@ -9442,7 +9547,7 @@ var modifierRE = /\.[^.\]]+(?=[^\]]*$)/g;
9442
9547
  var slotRE = /^v-slot(:|$)|^#/;
9443
9548
 
9444
9549
  var lineBreakRE = /[\r\n]/;
9445
- var whitespaceRE = /\s+/g;
9550
+ var whitespaceRE = /[ \f\t\r\n]+/g;
9446
9551
 
9447
9552
  var invalidAttributeRE = /[\s"'<>\/=]/;
9448
9553
 
@@ -9490,8 +9595,12 @@ function parse (
9490
9595
  platformMustUseProp = options.mustUseProp || no;
9491
9596
  platformGetTagNamespace = options.getTagNamespace || no;
9492
9597
  var isReservedTag = options.isReservedTag || no;
9493
- maybeComponent = function (el) { return !!el.component || !isReservedTag(el.tag); };
9494
-
9598
+ maybeComponent = function (el) { return !!(
9599
+ el.component ||
9600
+ el.attrsMap[':is'] ||
9601
+ el.attrsMap['v-bind:is'] ||
9602
+ !(el.attrsMap.is ? isReservedTag(el.attrsMap.is) : isReservedTag(el.tag))
9603
+ ); };
9495
9604
  transforms = pluckModuleFunction(options.modules, 'transformNode');
9496
9605
  preTransforms = pluckModuleFunction(options.modules, 'preTransformNode');
9497
9606
  postTransforms = pluckModuleFunction(options.modules, 'postTransformNode');
@@ -10627,9 +10736,9 @@ function genHandler (handler) {
10627
10736
  code += genModifierCode;
10628
10737
  }
10629
10738
  var handlerCode = isMethodPath
10630
- ? ("return " + (handler.value) + "($event)")
10739
+ ? ("return " + (handler.value) + ".apply(null, arguments)")
10631
10740
  : isFunctionExpression
10632
- ? ("return (" + (handler.value) + ")($event)")
10741
+ ? ("return (" + (handler.value) + ").apply(null, arguments)")
10633
10742
  : isFunctionInvocation
10634
10743
  ? ("return " + (handler.value))
10635
10744
  : handler.value;
@@ -10715,7 +10824,8 @@ function generate (
10715
10824
  options
10716
10825
  ) {
10717
10826
  var state = new CodegenState(options);
10718
- var code = ast ? genElement(ast, state) : '_c("NativeContentView")';
10827
+ // fix #11483, Root level <script> tags should not be rendered.
10828
+ var code = ast ? (ast.tag === 'script' ? 'null' : genElement(ast, state)) : '_c("NativeContentView")';
10719
10829
  return {
10720
10830
  render: ("with(this){return " + code + "}"),
10721
10831
  staticRenderFns: state.staticRenderFns
@@ -11180,7 +11290,7 @@ function genComment (comment) {
11180
11290
  function genSlot (el, state) {
11181
11291
  var slotName = el.slotName || '"default"';
11182
11292
  var children = genChildren(el, state);
11183
- var res = "_t(" + slotName + (children ? ("," + children) : '');
11293
+ var res = "_t(" + slotName + (children ? (",function(){return " + children + "}") : '');
11184
11294
  var attrs = el.attrs || el.dynamicAttrs
11185
11295
  ? genProps((el.attrs || []).concat(el.dynamicAttrs || []).map(function (attr) { return ({
11186
11296
  // slot props are camelized
@@ -11885,6 +11995,7 @@ var baseOptions = {
11885
11995
  };
11886
11996
 
11887
11997
  var ref = createCompiler(baseOptions);
11998
+ ref.compile;
11888
11999
  var compileToFunctions = ref.compileToFunctions;
11889
12000
 
11890
12001
  function Vue (options) {
@@ -12043,7 +12154,7 @@ function initAssetRegisters (Vue) {
12043
12154
  if (process.env.NODE_ENV !== 'production' && type === 'component') {
12044
12155
  validateComponentName(id);
12045
12156
  }
12046
- if (type === 'component' && isPlainObject$1(definition)) {
12157
+ if (type === 'component' && isPlainObject$2(definition)) {
12047
12158
  definition.name = definition.name || id;
12048
12159
  definition = this.options._base.extend(definition);
12049
12160
  }
@@ -12061,6 +12172,8 @@ function initAssetRegisters (Vue) {
12061
12172
 
12062
12173
 
12063
12174
 
12175
+
12176
+
12064
12177
  function getComponentName (opts) {
12065
12178
  return opts && (opts.Ctor.options.name || opts.tag)
12066
12179
  }
@@ -12082,9 +12195,9 @@ function pruneCache (keepAliveInstance, filter) {
12082
12195
  var keys = keepAliveInstance.keys;
12083
12196
  var _vnode = keepAliveInstance._vnode;
12084
12197
  for (var key in cache) {
12085
- var cachedNode = cache[key];
12086
- if (cachedNode) {
12087
- var name = getComponentName(cachedNode.componentOptions);
12198
+ var entry = cache[key];
12199
+ if (entry) {
12200
+ var name = entry.name;
12088
12201
  if (name && !filter(name)) {
12089
12202
  pruneCacheEntry(cache, key, keys, _vnode);
12090
12203
  }
@@ -12098,9 +12211,9 @@ function pruneCacheEntry (
12098
12211
  keys,
12099
12212
  current
12100
12213
  ) {
12101
- var cached = cache[key];
12102
- if (cached && (!current || cached.tag !== current.tag)) {
12103
- cached.componentInstance.$destroy();
12214
+ var entry = cache[key];
12215
+ if (entry && (!current || entry.tag !== current.tag)) {
12216
+ entry.componentInstance.$destroy();
12104
12217
  }
12105
12218
  cache[key] = null;
12106
12219
  remove$2(keys, key);
@@ -12118,6 +12231,32 @@ var KeepAlive = {
12118
12231
  max: [String, Number]
12119
12232
  },
12120
12233
 
12234
+ methods: {
12235
+ cacheVNode: function cacheVNode() {
12236
+ var ref = this;
12237
+ var cache = ref.cache;
12238
+ var keys = ref.keys;
12239
+ var vnodeToCache = ref.vnodeToCache;
12240
+ var keyToCache = ref.keyToCache;
12241
+ if (vnodeToCache) {
12242
+ var tag = vnodeToCache.tag;
12243
+ var componentInstance = vnodeToCache.componentInstance;
12244
+ var componentOptions = vnodeToCache.componentOptions;
12245
+ cache[keyToCache] = {
12246
+ name: getComponentName(componentOptions),
12247
+ tag: tag,
12248
+ componentInstance: componentInstance,
12249
+ };
12250
+ keys.push(keyToCache);
12251
+ // prune oldest entry
12252
+ if (this.max && keys.length > parseInt(this.max)) {
12253
+ pruneCacheEntry(cache, keys[0], keys, this._vnode);
12254
+ }
12255
+ this.vnodeToCache = null;
12256
+ }
12257
+ }
12258
+ },
12259
+
12121
12260
  created: function created () {
12122
12261
  this.cache = Object.create(null);
12123
12262
  this.keys = [];
@@ -12130,16 +12269,21 @@ var KeepAlive = {
12130
12269
  },
12131
12270
 
12132
12271
  mounted: function mounted () {
12133
- var this$1 = this;
12272
+ var this$1$1 = this;
12134
12273
 
12274
+ this.cacheVNode();
12135
12275
  this.$watch('include', function (val) {
12136
- pruneCache(this$1, function (name) { return matches(val, name); });
12276
+ pruneCache(this$1$1, function (name) { return matches(val, name); });
12137
12277
  });
12138
12278
  this.$watch('exclude', function (val) {
12139
- pruneCache(this$1, function (name) { return !matches(val, name); });
12279
+ pruneCache(this$1$1, function (name) { return !matches(val, name); });
12140
12280
  });
12141
12281
  },
12142
12282
 
12283
+ updated: function updated () {
12284
+ this.cacheVNode();
12285
+ },
12286
+
12143
12287
  render: function render () {
12144
12288
  var slot = this.$slots.default;
12145
12289
  var vnode = getFirstComponentChild(slot);
@@ -12173,12 +12317,9 @@ var KeepAlive = {
12173
12317
  remove$2(keys, key);
12174
12318
  keys.push(key);
12175
12319
  } else {
12176
- cache[key] = vnode;
12177
- keys.push(key);
12178
- // prune oldest entry
12179
- if (this.max && keys.length > parseInt(this.max)) {
12180
- pruneCacheEntry(cache, keys[0], keys, this._vnode);
12181
- }
12320
+ // delay setting the cache until update
12321
+ this.vnodeToCache = vnode;
12322
+ this.keyToCache = key;
12182
12323
  }
12183
12324
 
12184
12325
  vnode.data.keepAlive = true;
@@ -12216,7 +12357,7 @@ function initGlobalAPI (Vue) {
12216
12357
  defineReactive: defineReactive
12217
12358
  };
12218
12359
 
12219
- Vue.set = set$1;
12360
+ Vue.set = set;
12220
12361
  Vue.delete = del;
12221
12362
  Vue.nextTick = nextTick;
12222
12363
 
@@ -12261,7 +12402,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
12261
12402
  value: FunctionalRenderContext
12262
12403
  });
12263
12404
 
12264
- Vue.version = '2.6.12';
12405
+ Vue.version = '2.6.14';
12265
12406
 
12266
12407
  // recursively search for possible transition defined inside the component root
12267
12408
  function locateNode(vnode) {
@@ -12439,7 +12580,7 @@ function serializeModalOptions(options) {
12439
12580
  }
12440
12581
 
12441
12582
  function getTargetView(target) {
12442
- if (isObject$1(target) && isDef(target.$el)) {
12583
+ if (isObject$2(target) && isDef(target.$el)) {
12443
12584
  return target.$el.nativeView
12444
12585
  } else if (isDef(target.nativeView)) {
12445
12586
  return target.nativeView
@@ -12479,7 +12620,7 @@ var ModalPlugin = {
12479
12620
  });
12480
12621
 
12481
12622
  Vue.prototype.$showModal = function (component, options) {
12482
- var this$1 = this;
12623
+ var this$1$1 = this;
12483
12624
 
12484
12625
  return new Promise(function (resolve) {
12485
12626
  var resolved = false;
@@ -12499,7 +12640,7 @@ var ModalPlugin = {
12499
12640
  // build options object with defaults
12500
12641
  options = Object.assign(
12501
12642
  {
12502
- target: this$1.$root
12643
+ target: this$1$1.$root
12503
12644
  },
12504
12645
  options,
12505
12646
  {
@@ -12552,15 +12693,15 @@ function getFrameInstance(frame) {
12552
12693
  // a Vue ref to a frame
12553
12694
  // a Frame ViewNode
12554
12695
  // or a Frame instance
12555
- if (isObject$1(frame) && isDef(frame.$el)) {
12696
+ if (isObject$2(frame) && isDef(frame.$el)) {
12556
12697
  frame = frame.$el.nativeView;
12557
- } else if (isPrimitive(frame)) {
12698
+ } else if (isPrimitive$2(frame)) {
12558
12699
  frame = require('@nativescript/core').Frame.getFrameById(frame);
12559
12700
  } else if (isDef(frame.nativeView)) {
12560
12701
  frame = frame.nativeView;
12561
12702
  }
12562
12703
  // finally get the component instance for this frame
12563
- return getFrame(frame.id)
12704
+ return getFrame(frame.id, frame)
12564
12705
  }
12565
12706
 
12566
12707
  function findParentFrame(vm) {