@teselagen/ove 0.3.2 → 0.3.4

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/index.umd.js CHANGED
@@ -23996,7 +23996,7 @@
23996
23996
  var ownKeys$9 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownKeys : hasGetOwnPropertySymbols ? function (obj) {
23997
23997
  return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj));
23998
23998
  } : /* istanbul ignore next */Object.getOwnPropertyNames;
23999
- function toPrimitive$3(value) {
23999
+ function toPrimitive$2(value) {
24000
24000
  return value === null ? null : typeof value === "object" ? "" + value : value;
24001
24001
  }
24002
24002
  function hasProp(target, prop) {
@@ -24925,7 +24925,7 @@
24925
24925
  return this.name_ + "[" + this.value_ + "]";
24926
24926
  };
24927
24927
  _proto.valueOf = function valueOf() {
24928
- return toPrimitive$3(this.get());
24928
+ return toPrimitive$2(this.get());
24929
24929
  };
24930
24930
  _proto[_Symbol$toPrimitive] = function () {
24931
24931
  return this.valueOf();
@@ -25153,7 +25153,7 @@
25153
25153
  return this.name_ + "[" + this.derivation.toString() + "]";
25154
25154
  };
25155
25155
  _proto.valueOf = function valueOf() {
25156
- return toPrimitive$3(this.get());
25156
+ return toPrimitive$2(this.get());
25157
25157
  };
25158
25158
  _proto[_Symbol$toPrimitive$1] = function () {
25159
25159
  return this.valueOf();
@@ -57050,10 +57050,18 @@
57050
57050
  }
57051
57051
  };
57052
57052
 
57053
- // Thank's IE8 for his funny defineProperty
57054
- var _descriptors = !_fails(function () {
57055
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
57056
- });
57053
+ var _descriptors;
57054
+ var hasRequired_descriptors;
57055
+
57056
+ function require_descriptors () {
57057
+ if (hasRequired_descriptors) return _descriptors;
57058
+ hasRequired_descriptors = 1;
57059
+ // Thank's IE8 for his funny defineProperty
57060
+ _descriptors = !_fails(function () {
57061
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
57062
+ });
57063
+ return _descriptors;
57064
+ }
57057
57065
 
57058
57066
  var _domCreate;
57059
57067
  var hasRequired_domCreate;
@@ -57071,9 +57079,17 @@
57071
57079
  return _domCreate;
57072
57080
  }
57073
57081
 
57074
- var _ie8DomDefine = !_descriptors && !_fails(function () {
57075
- return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
57076
- });
57082
+ var _ie8DomDefine;
57083
+ var hasRequired_ie8DomDefine;
57084
+
57085
+ function require_ie8DomDefine () {
57086
+ if (hasRequired_ie8DomDefine) return _ie8DomDefine;
57087
+ hasRequired_ie8DomDefine = 1;
57088
+ _ie8DomDefine = !require_descriptors() && !_fails(function () {
57089
+ return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
57090
+ });
57091
+ return _ie8DomDefine;
57092
+ }
57077
57093
 
57078
57094
  // 7.1.1 ToPrimitive(input [, PreferredType])
57079
57095
  var isObject$6 = _isObject;
@@ -57088,22 +57104,29 @@
57088
57104
  throw TypeError("Can't convert object to primitive value");
57089
57105
  };
57090
57106
 
57091
- var anObject$5 = _anObject;
57092
- var IE8_DOM_DEFINE$1 = _ie8DomDefine;
57093
- var toPrimitive$2 = _toPrimitive$1;
57094
- var dP$3 = Object.defineProperty;
57107
+ var hasRequired_objectDp;
57095
57108
 
57096
- _objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
57097
- anObject$5(O);
57098
- P = toPrimitive$2(P, true);
57099
- anObject$5(Attributes);
57100
- if (IE8_DOM_DEFINE$1) try {
57101
- return dP$3(O, P, Attributes);
57102
- } catch (e) { /* empty */ }
57103
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
57104
- if ('value' in Attributes) O[P] = Attributes.value;
57105
- return O;
57106
- };
57109
+ function require_objectDp () {
57110
+ if (hasRequired_objectDp) return _objectDp;
57111
+ hasRequired_objectDp = 1;
57112
+ var anObject = _anObject;
57113
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
57114
+ var toPrimitive = _toPrimitive$1;
57115
+ var dP = Object.defineProperty;
57116
+
57117
+ _objectDp.f = require_descriptors() ? Object.defineProperty : function defineProperty(O, P, Attributes) {
57118
+ anObject(O);
57119
+ P = toPrimitive(P, true);
57120
+ anObject(Attributes);
57121
+ if (IE8_DOM_DEFINE) try {
57122
+ return dP(O, P, Attributes);
57123
+ } catch (e) { /* empty */ }
57124
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
57125
+ if ('value' in Attributes) O[P] = Attributes.value;
57126
+ return O;
57127
+ };
57128
+ return _objectDp;
57129
+ }
57107
57130
 
57108
57131
  var _propertyDesc = function (bitmap, value) {
57109
57132
  return {
@@ -57114,10 +57137,10 @@
57114
57137
  };
57115
57138
  };
57116
57139
 
57117
- var dP$2 = _objectDp;
57140
+ var dP$1 = require_objectDp();
57118
57141
  var createDesc$3 = _propertyDesc;
57119
- var _hide = _descriptors ? function (object, key, value) {
57120
- return dP$2.f(object, key, createDesc$3(1, value));
57142
+ var _hide = require_descriptors() ? function (object, key, value) {
57143
+ return dP$1.f(object, key, createDesc$3(1, value));
57121
57144
  } : function (object, key, value) {
57122
57145
  object[key] = value;
57123
57146
  return object;
@@ -57133,7 +57156,7 @@
57133
57156
  var ctx$1 = _ctx;
57134
57157
  var hide$2 = _hide;
57135
57158
  var has$d = _has;
57136
- var PROTOTYPE$2 = 'prototype';
57159
+ var PROTOTYPE$1 = 'prototype';
57137
57160
 
57138
57161
  var $export$8 = function (type, name, source) {
57139
57162
  var IS_FORCED = type & $export$8.F;
@@ -57143,8 +57166,8 @@
57143
57166
  var IS_BIND = type & $export$8.B;
57144
57167
  var IS_WRAP = type & $export$8.W;
57145
57168
  var exports = IS_GLOBAL ? core$3 : core$3[name] || (core$3[name] = {});
57146
- var expProto = exports[PROTOTYPE$2];
57147
- var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$2];
57169
+ var expProto = exports[PROTOTYPE$1];
57170
+ var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$1];
57148
57171
  var key, own, out;
57149
57172
  if (IS_GLOBAL) source = name;
57150
57173
  for (key in source) {
@@ -57168,7 +57191,7 @@
57168
57191
  } return new C(a, b, c);
57169
57192
  } return C.apply(this, arguments);
57170
57193
  };
57171
- F[PROTOTYPE$2] = C[PROTOTYPE$2];
57194
+ F[PROTOTYPE$1] = C[PROTOTYPE$1];
57172
57195
  return F;
57173
57196
  // make static versions for prototype methods
57174
57197
  })(out) : IS_PROTO && typeof out == 'function' ? ctx$1(Function.call, out) : out;
@@ -57197,20 +57220,12 @@
57197
57220
  return toString$4.call(it).slice(8, -1);
57198
57221
  };
57199
57222
 
57200
- var _iobject;
57201
- var hasRequired_iobject;
57202
-
57203
- function require_iobject () {
57204
- if (hasRequired_iobject) return _iobject;
57205
- hasRequired_iobject = 1;
57206
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
57207
- var cof = _cof;
57208
- // eslint-disable-next-line no-prototype-builtins
57209
- _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
57210
- return cof(it) == 'String' ? it.split('') : Object(it);
57211
- };
57212
- return _iobject;
57213
- }
57223
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
57224
+ var cof$2 = _cof;
57225
+ // eslint-disable-next-line no-prototype-builtins
57226
+ var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
57227
+ return cof$2(it) == 'String' ? it.split('') : Object(it);
57228
+ };
57214
57229
 
57215
57230
  // 7.2.1 RequireObjectCoercible(argument)
57216
57231
  var _defined = function (it) {
@@ -57219,7 +57234,7 @@
57219
57234
  };
57220
57235
 
57221
57236
  // to indexed object, toObject with fallback for non-array-like ES3 strings
57222
- var IObject = require_iobject();
57237
+ var IObject = _iobject;
57223
57238
  var defined$2 = _defined;
57224
57239
  var _toIobject = function (it) {
57225
57240
  return IObject(defined$2(it));
@@ -57305,14 +57320,14 @@
57305
57320
  var has$c = _has;
57306
57321
  var toIObject$4 = _toIobject;
57307
57322
  var arrayIndexOf = _arrayIncludes$1(false);
57308
- var IE_PROTO$2 = _sharedKey('IE_PROTO');
57323
+ var IE_PROTO$1 = _sharedKey('IE_PROTO');
57309
57324
 
57310
57325
  var _objectKeysInternal = function (object, names) {
57311
57326
  var O = toIObject$4(object);
57312
57327
  var i = 0;
57313
57328
  var result = [];
57314
57329
  var key;
57315
- for (key in O) if (key != IE_PROTO$2) has$c(O, key) && result.push(key);
57330
+ for (key in O) if (key != IE_PROTO$1) has$c(O, key) && result.push(key);
57316
57331
  // Don't enum bug & hidden keys
57317
57332
  while (names.length > i) if (has$c(O, key = names[i++])) {
57318
57333
  ~arrayIndexOf(result, key) || result.push(key);
@@ -57327,10 +57342,10 @@
57327
57342
 
57328
57343
  // 19.1.2.14 / 15.2.3.14 Object.keys(O)
57329
57344
  var $keys$3 = _objectKeysInternal;
57330
- var enumBugKeys$1 = _enumBugKeys;
57345
+ var enumBugKeys = _enumBugKeys;
57331
57346
 
57332
57347
  var _objectKeys = Object.keys || function keys(O) {
57333
- return $keys$3(O, enumBugKeys$1);
57348
+ return $keys$3(O, enumBugKeys);
57334
57349
  };
57335
57350
 
57336
57351
  var _objectGops = {};
@@ -57339,14 +57354,7 @@
57339
57354
 
57340
57355
  var _objectPie = {};
57341
57356
 
57342
- var hasRequired_objectPie;
57343
-
57344
- function require_objectPie () {
57345
- if (hasRequired_objectPie) return _objectPie;
57346
- hasRequired_objectPie = 1;
57347
- _objectPie.f = {}.propertyIsEnumerable;
57348
- return _objectPie;
57349
- }
57357
+ _objectPie.f = {}.propertyIsEnumerable;
57350
57358
 
57351
57359
  // 7.1.13 ToObject(argument)
57352
57360
  var defined$1 = _defined;
@@ -57361,12 +57369,12 @@
57361
57369
  if (hasRequired_objectAssign) return _objectAssign;
57362
57370
  hasRequired_objectAssign = 1;
57363
57371
  // 19.1.2.1 Object.assign(target, source, ...)
57364
- var DESCRIPTORS = _descriptors;
57372
+ var DESCRIPTORS = require_descriptors();
57365
57373
  var getKeys = _objectKeys;
57366
57374
  var gOPS = _objectGops;
57367
- var pIE = require_objectPie();
57375
+ var pIE = _objectPie;
57368
57376
  var toObject = _toObject;
57369
- var IObject = require_iobject();
57377
+ var IObject = _iobject;
57370
57378
  var $assign = Object.assign;
57371
57379
 
57372
57380
  // should work with symbols and should have deterministic property order (V8 bug)
@@ -57437,19 +57445,27 @@
57437
57445
 
57438
57446
  var _redefine = _hide;
57439
57447
 
57440
- var dP$1 = _objectDp;
57441
- var anObject$4 = _anObject;
57442
- var getKeys$1 = _objectKeys;
57448
+ var _objectDps;
57449
+ var hasRequired_objectDps;
57443
57450
 
57444
- var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
57445
- anObject$4(O);
57446
- var keys = getKeys$1(Properties);
57447
- var length = keys.length;
57448
- var i = 0;
57449
- var P;
57450
- while (length > i) dP$1.f(O, P = keys[i++], Properties[P]);
57451
- return O;
57452
- };
57451
+ function require_objectDps () {
57452
+ if (hasRequired_objectDps) return _objectDps;
57453
+ hasRequired_objectDps = 1;
57454
+ var dP = require_objectDp();
57455
+ var anObject = _anObject;
57456
+ var getKeys = _objectKeys;
57457
+
57458
+ _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
57459
+ anObject(O);
57460
+ var keys = getKeys(Properties);
57461
+ var length = keys.length;
57462
+ var i = 0;
57463
+ var P;
57464
+ while (length > i) dP.f(O, P = keys[i++], Properties[P]);
57465
+ return O;
57466
+ };
57467
+ return _objectDps;
57468
+ }
57453
57469
 
57454
57470
  var _html;
57455
57471
  var hasRequired_html;
@@ -57462,47 +57478,55 @@
57462
57478
  return _html;
57463
57479
  }
57464
57480
 
57465
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
57466
- var anObject$3 = _anObject;
57467
- var dPs = _objectDps;
57468
- var enumBugKeys = _enumBugKeys;
57469
- var IE_PROTO$1 = _sharedKey('IE_PROTO');
57470
- var Empty = function () { /* empty */ };
57471
- var PROTOTYPE$1 = 'prototype';
57481
+ var _objectCreate;
57482
+ var hasRequired_objectCreate;
57472
57483
 
57473
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
57474
- var createDict = function () {
57475
- // Thrash, waste and sodomy: IE GC bug
57476
- var iframe = require_domCreate()('iframe');
57477
- var i = enumBugKeys.length;
57478
- var lt = '<';
57479
- var gt = '>';
57480
- var iframeDocument;
57481
- iframe.style.display = 'none';
57482
- require_html().appendChild(iframe);
57483
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
57484
- // createDict = iframe.contentWindow.Object;
57485
- // html.removeChild(iframe);
57486
- iframeDocument = iframe.contentWindow.document;
57487
- iframeDocument.open();
57488
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
57489
- iframeDocument.close();
57490
- createDict = iframeDocument.F;
57491
- while (i--) delete createDict[PROTOTYPE$1][enumBugKeys[i]];
57492
- return createDict();
57493
- };
57494
-
57495
- var _objectCreate = Object.create || function create(O, Properties) {
57496
- var result;
57497
- if (O !== null) {
57498
- Empty[PROTOTYPE$1] = anObject$3(O);
57499
- result = new Empty();
57500
- Empty[PROTOTYPE$1] = null;
57501
- // add "__proto__" for Object.getPrototypeOf polyfill
57502
- result[IE_PROTO$1] = O;
57503
- } else result = createDict();
57504
- return Properties === undefined ? result : dPs(result, Properties);
57505
- };
57484
+ function require_objectCreate () {
57485
+ if (hasRequired_objectCreate) return _objectCreate;
57486
+ hasRequired_objectCreate = 1;
57487
+ // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
57488
+ var anObject = _anObject;
57489
+ var dPs = require_objectDps();
57490
+ var enumBugKeys = _enumBugKeys;
57491
+ var IE_PROTO = _sharedKey('IE_PROTO');
57492
+ var Empty = function () { /* empty */ };
57493
+ var PROTOTYPE = 'prototype';
57494
+
57495
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
57496
+ var createDict = function () {
57497
+ // Thrash, waste and sodomy: IE GC bug
57498
+ var iframe = require_domCreate()('iframe');
57499
+ var i = enumBugKeys.length;
57500
+ var lt = '<';
57501
+ var gt = '>';
57502
+ var iframeDocument;
57503
+ iframe.style.display = 'none';
57504
+ require_html().appendChild(iframe);
57505
+ iframe.src = 'javascript:'; // eslint-disable-line no-script-url
57506
+ // createDict = iframe.contentWindow.Object;
57507
+ // html.removeChild(iframe);
57508
+ iframeDocument = iframe.contentWindow.document;
57509
+ iframeDocument.open();
57510
+ iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
57511
+ iframeDocument.close();
57512
+ createDict = iframeDocument.F;
57513
+ while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
57514
+ return createDict();
57515
+ };
57516
+
57517
+ _objectCreate = Object.create || function create(O, Properties) {
57518
+ var result;
57519
+ if (O !== null) {
57520
+ Empty[PROTOTYPE] = anObject(O);
57521
+ result = new Empty();
57522
+ Empty[PROTOTYPE] = null;
57523
+ // add "__proto__" for Object.getPrototypeOf polyfill
57524
+ result[IE_PROTO] = O;
57525
+ } else result = createDict();
57526
+ return Properties === undefined ? result : dPs(result, Properties);
57527
+ };
57528
+ return _objectCreate;
57529
+ }
57506
57530
 
57507
57531
  var _wks = {exports: {}};
57508
57532
 
@@ -57520,7 +57544,7 @@
57520
57544
 
57521
57545
  var _wksExports = _wks.exports;
57522
57546
 
57523
- var def = _objectDp.f;
57547
+ var def = require_objectDp().f;
57524
57548
  var has$b = _has;
57525
57549
  var TAG$1 = _wksExports('toStringTag');
57526
57550
 
@@ -57528,7 +57552,7 @@
57528
57552
  if (it && !has$b(it = stat ? it : it.prototype, TAG$1)) def(it, TAG$1, { configurable: true, value: tag });
57529
57553
  };
57530
57554
 
57531
- var create$4 = _objectCreate;
57555
+ var create$4 = require_objectCreate();
57532
57556
  var descriptor = _propertyDesc;
57533
57557
  var setToStringTag$2 = _setToStringTag;
57534
57558
  var IteratorPrototype = {};
@@ -57834,7 +57858,7 @@
57834
57858
  return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
57835
57859
  };
57836
57860
 
57837
- var $defineProperty$1 = _objectDp;
57861
+ var $defineProperty$1 = require_objectDp();
57838
57862
  var createDesc$2 = _propertyDesc;
57839
57863
 
57840
57864
  var _createProperty = function (object, index, value) {
@@ -57967,7 +57991,7 @@
57967
57991
 
57968
57992
  var $export$3 = _export;
57969
57993
  // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
57970
- $export$3($export$3.S + $export$3.F * !_descriptors, 'Object', { defineProperty: _objectDp.f });
57994
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), 'Object', { defineProperty: require_objectDp().f });
57971
57995
 
57972
57996
  var $Object$1 = _coreExports.Object;
57973
57997
  var defineProperty$6 = function defineProperty(it, key, desc) {
@@ -58015,7 +58039,7 @@
58015
58039
  var META$1 = _uid('meta');
58016
58040
  var isObject$5 = _isObject;
58017
58041
  var has$9 = _has;
58018
- var setDesc = _objectDp.f;
58042
+ var setDesc = require_objectDp().f;
58019
58043
  var id$1 = 0;
58020
58044
  var isExtensible = Object.isExtensible || function () {
58021
58045
  return true;
@@ -58070,7 +58094,7 @@
58070
58094
 
58071
58095
  var core = _coreExports;
58072
58096
  var wksExt$1 = _wksExt;
58073
- var defineProperty$4 = _objectDp.f;
58097
+ var defineProperty$4 = require_objectDp().f;
58074
58098
  var _wksDefine = function (name) {
58075
58099
  var $Symbol = core.Symbol || (core.Symbol = {} );
58076
58100
  if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$4($Symbol, name, { value: wksExt$1.f(name) });
@@ -58079,7 +58103,7 @@
58079
58103
  // all enumerable object keys, includes symbols
58080
58104
  var getKeys = _objectKeys;
58081
58105
  var gOPS$1 = _objectGops;
58082
- var pIE$1 = require_objectPie();
58106
+ var pIE$1 = _objectPie;
58083
58107
  var _enumKeys = function (it) {
58084
58108
  var result = getKeys(it);
58085
58109
  var getSymbols = gOPS$1.f;
@@ -58132,15 +58156,15 @@
58132
58156
 
58133
58157
  var _objectGopd = {};
58134
58158
 
58135
- var pIE = require_objectPie();
58159
+ var pIE = _objectPie;
58136
58160
  var createDesc$1 = _propertyDesc;
58137
58161
  var toIObject$1 = _toIobject;
58138
58162
  var toPrimitive$1 = _toPrimitive$1;
58139
58163
  var has$8 = _has;
58140
- var IE8_DOM_DEFINE = _ie8DomDefine;
58164
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
58141
58165
  var gOPD$2 = Object.getOwnPropertyDescriptor;
58142
58166
 
58143
- _objectGopd.f = _descriptors ? gOPD$2 : function getOwnPropertyDescriptor(O, P) {
58167
+ _objectGopd.f = require_descriptors() ? gOPD$2 : function getOwnPropertyDescriptor(O, P) {
58144
58168
  O = toIObject$1(O);
58145
58169
  P = toPrimitive$1(P, true);
58146
58170
  if (IE8_DOM_DEFINE) try {
@@ -58152,7 +58176,7 @@
58152
58176
  // ECMAScript 6 symbols shim
58153
58177
  var global$1 = _globalExports;
58154
58178
  var has$7 = _has;
58155
- var DESCRIPTORS = _descriptors;
58179
+ var DESCRIPTORS = require_descriptors();
58156
58180
  var $export$2 = _export;
58157
58181
  var redefine = _redefine;
58158
58182
  var META = _metaExports.KEY;
@@ -58171,11 +58195,11 @@
58171
58195
  var toIObject = _toIobject;
58172
58196
  var toPrimitive = _toPrimitive$1;
58173
58197
  var createDesc = _propertyDesc;
58174
- var _create$1 = _objectCreate;
58198
+ var _create$1 = require_objectCreate();
58175
58199
  var gOPNExt = _objectGopnExt;
58176
58200
  var $GOPD = _objectGopd;
58177
58201
  var $GOPS = _objectGops;
58178
- var $DP = _objectDp;
58202
+ var $DP = require_objectDp();
58179
58203
  var $keys$1 = _objectKeys;
58180
58204
  var gOPD$1 = $GOPD.f;
58181
58205
  var dP = $DP.f;
@@ -58300,7 +58324,7 @@
58300
58324
  $GOPD.f = $getOwnPropertyDescriptor;
58301
58325
  $DP.f = $defineProperty;
58302
58326
  _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
58303
- require_objectPie().f = $propertyIsEnumerable;
58327
+ _objectPie.f = $propertyIsEnumerable;
58304
58328
  $GOPS.f = $getOwnPropertySymbols;
58305
58329
 
58306
58330
  if (DESCRIPTORS && !_library) {
@@ -58481,7 +58505,7 @@
58481
58505
 
58482
58506
  var $export = _export;
58483
58507
  // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
58484
- $export($export.S, 'Object', { create: _objectCreate });
58508
+ $export($export.S, 'Object', { create: require_objectCreate() });
58485
58509
 
58486
58510
  var $Object = _coreExports.Object;
58487
58511
  var create$3 = function create(P, D) {
@@ -151740,6 +151764,7 @@
151740
151764
  }
151741
151765
  if (temp !== sequence.sequence) {
151742
151766
  sequence.type = "RNA";
151767
+ sequence.sequence = temp;
151743
151768
  } else {
151744
151769
  sequence.type = "DNA";
151745
151770
  }
@@ -152319,6 +152344,9 @@
152319
152344
  if (item.match(/ss-dna/i)) {
152320
152345
  options.isSingleStrandedDNA = true;
152321
152346
  }
152347
+ if (item.match(/rna/i)) {
152348
+ options.isRna = true;
152349
+ }
152322
152350
  if (item.match(/rna/i) && !item.match(/ss-rna/i)) {
152323
152351
  options.isDoubleStrandedRNA = true;
152324
152352
  }
@@ -152333,6 +152361,7 @@
152333
152361
  result.parsedSequence.gbDivision = gbDivision;
152334
152362
  result.parsedSequence.sequenceTypeFromLocus = options.sequenceTypeFromLocus;
152335
152363
  result.parsedSequence.isSingleStrandedDNA = options.isSingleStrandedDNA;
152364
+ result.parsedSequence.isRna = options.isRna;
152336
152365
  result.parsedSequence.isDoubleStrandedRNA = options.isDoubleStrandedRNA;
152337
152366
  result.parsedSequence.date = date;
152338
152367
  result.parsedSequence.circular = circular;
@@ -169896,7 +169925,7 @@
169896
169925
  caret: true,
169897
169926
  sequence: true,
169898
169927
  cutsites: false,
169899
- reverseSequence: sequenceData?.isDoubleStrandedRNA,
169928
+ reverseSequence: Boolean(sequenceData?.isDoubleStrandedRNA),
169900
169929
  translations: false,
169901
169930
  aminoAcidNumbers: false,
169902
169931
  primaryProteinSequence: false,
@@ -188626,7 +188655,7 @@ double click --> edit`}`;
188626
188655
  }
188627
188656
 
188628
188657
  const name = "@teselagen/ove";
188629
- const version = "0.3.1";
188658
+ const version = "0.3.3";
188630
188659
  const main = "./src/index.js";
188631
188660
  const packageJson = {
188632
188661
  name: name,
@@ -192456,13 +192485,22 @@ double click --> edit`}`;
192456
192485
  sequenceData,
192457
192486
  selectionLayerUpdate,
192458
192487
  caretPosition,
192459
- selectionLayer
192488
+ selectionLayer,
192489
+ bpLimit
192460
192490
  } = props;
192461
192491
  const [newSeqData, { maintainOriginSplit }] = wrappedInsertSequenceDataAtPositionOrRange(
192462
192492
  seqDataToInsert,
192463
192493
  sequenceData,
192464
192494
  caretPosition > -1 ? caretPosition : selectionLayer
192465
192495
  );
192496
+ if (bpLimit) {
192497
+ if (newSeqData.sequence.length > bpLimit) {
192498
+ window.toastr.error(
192499
+ `Sorry, you cannot go over the limit of ${bpLimit} base pairs`
192500
+ );
192501
+ throw new Error("bpLimit exceeded");
192502
+ }
192503
+ }
192466
192504
  updateSequenceData(newSeqData);
192467
192505
  const seqDataInsertLength = seqDataToInsert.sequence ? seqDataToInsert.sequence.length : null;
192468
192506
  const selectionStartDistanceFromEnd = Math.min(sequenceData.size - selectionLayer.start, seqDataInsertLength) || seqDataInsertLength;
@@ -206978,6 +207016,7 @@ ${seqDataToCopy}\r
206978
207016
  }
206979
207017
 
206980
207018
  const userDefinedHandlersAndOpts = [
207019
+ "onChangeEditLock",
206981
207020
  "defaultLinkedOligoMessage",
206982
207021
  "allowMultipleFeatureDirections",
206983
207022
  "getAdditionalEditAnnotationComps",
@@ -206991,6 +207030,7 @@ ${seqDataToCopy}\r
206991
207030
  "smartCircViewLabelRender",
206992
207031
  "onConfigureFeatureTypesClick",
206993
207032
  "allPartTags",
207033
+ "bpLimit",
206994
207034
  "editTagsLink",
206995
207035
  "readOnly",
206996
207036
  "shouldAutosave",
@@ -207241,20 +207281,38 @@ ${seqDataToCopy}\r
207241
207281
  return {
207242
207282
  readOnly: editorState.readOnly
207243
207283
  };
207244
- })(({ toolbarItemProps, readOnly, toggleReadOnlyMode, disableSetReadOnly }) => {
207245
- return /* @__PURE__ */ React$3.createElement(
207246
- ToolbarItem$1,
207247
- {
207248
- ...{
207249
- disabled: disableSetReadOnly,
207250
- Icon: /* @__PURE__ */ React$3.createElement(Icon, { icon: readOnly ? "lock" : "unlock" }),
207251
- onIconClick: toggleReadOnlyMode,
207252
- tooltip: readOnly ? /* @__PURE__ */ React$3.createElement("span", null, "Switch to edit mode") : /* @__PURE__ */ React$3.createElement("span", null, "Switch to read only mode"),
207253
- ...toolbarItemProps
207284
+ })(
207285
+ ({
207286
+ toolbarItemProps,
207287
+ readOnly,
207288
+ toggleReadOnlyMode,
207289
+ disableSetReadOnly,
207290
+ onChangeEditLock
207291
+ }) => {
207292
+ const readOnlyTooltip = ({ readOnly: readOnly2, disableSetReadOnly: disableSetReadOnly2 }) => {
207293
+ if (disableSetReadOnly2) {
207294
+ return "You do not have permission to edit locks on this sequence";
207254
207295
  }
207255
- }
207256
- );
207257
- });
207296
+ return readOnly2 ? "Click to enable editing" : "Click to disable editing";
207297
+ };
207298
+ return /* @__PURE__ */ React$3.createElement(
207299
+ ToolbarItem$1,
207300
+ {
207301
+ ...{
207302
+ disabled: disableSetReadOnly,
207303
+ Icon: /* @__PURE__ */ React$3.createElement(Icon, { icon: readOnly ? "lock" : "unlock" }),
207304
+ onIconClick: () => {
207305
+ if (onChangeEditLock)
207306
+ onChangeEditLock(!readOnly);
207307
+ toggleReadOnlyMode();
207308
+ },
207309
+ tooltip: readOnlyTooltip({ readOnly, disableSetReadOnly }),
207310
+ ...toolbarItemProps
207311
+ }
207312
+ }
207313
+ );
207314
+ }
207315
+ );
207258
207316
 
207259
207317
  const style$4 = '';
207260
207318
 
@@ -208053,11 +208111,9 @@ ${seqDataToCopy}\r
208053
208111
  EditReadOnlyItem,
208054
208112
  {
208055
208113
  editorName,
208056
- ...{
208057
- onSave,
208058
- disableSetReadOnly,
208059
- showReadOnly
208060
- }
208114
+ onSave,
208115
+ disableSetReadOnly,
208116
+ showReadOnly
208061
208117
  }
208062
208118
  ), /* @__PURE__ */ React$3.createElement(
208063
208119
  EditCircularityItem,
@@ -218098,46 +218154,46 @@ ${seqDataToCopy}\r
218098
218154
  render() {
218099
218155
  const { previewModeFullscreen: uncontrolledPreviewModeFullscreen } = this.state;
218100
218156
  const {
218101
- ToolBarProps = {},
218102
- StatusBarProps = {},
218103
- extraRightSidePanel,
218157
+ allowPanelTabDraggable = true,
218158
+ annotationsToSupport,
218159
+ caretPositionUpdate,
218160
+ closePanel,
218161
+ collapseSplitScreen,
218162
+ displayMenuBarAboveTools = true,
218104
218163
  editorName,
218164
+ fullScreenOffsets,
218165
+ expandTabToSplitScreen,
218166
+ extraRightSidePanel,
218167
+ getSequenceAtVersion,
218168
+ getVersionList,
218169
+ handleFullscreenClose,
218105
218170
  height: _height,
218106
- showCircularity,
218107
218171
  hideSingleImport,
218172
+ hideStatusBar,
218173
+ hoveredId,
218174
+ isFullscreen,
218175
+ maxAnnotationsToDisplay,
218108
218176
  minHeight = 400,
218109
- showMenuBar,
218110
- annotationsToSupport,
218111
- withRotateCircularView = true,
218112
- withZoomCircularView = true,
218113
- withZoomLinearView = true,
218114
- displayMenuBarAboveTools = true,
218115
- updateSequenceData,
218177
+ onlyShowLabelsThatDoNotFit = true,
218178
+ onSave,
218179
+ previewModeButtonMenu,
218180
+ previewModeFullscreen: controlledPreviewModeFullscreen,
218116
218181
  readOnly,
218182
+ selectionLayer,
218183
+ sequenceData = {},
218117
218184
  setPanelAsActive,
218185
+ showCircularity,
218186
+ showMenuBar,
218187
+ StatusBarProps = {},
218118
218188
  style = {},
218119
- maxAnnotationsToDisplay,
218120
218189
  togglePanelFullScreen,
218121
- collapseSplitScreen,
218122
- expandTabToSplitScreen,
218123
- closePanel,
218124
- onSave,
218125
- hideStatusBar,
218126
- caretPositionUpdate,
218127
- getVersionList,
218128
- getSequenceAtVersion,
218129
- selectionLayer,
218190
+ ToolBarProps = {},
218191
+ updateSequenceData,
218130
218192
  VersionHistoryViewProps,
218131
- sequenceData = {},
218132
- fullScreenOffsets,
218133
- withPreviewMode,
218134
- isFullscreen,
218135
- hoveredId,
218136
- handleFullscreenClose,
218137
- onlyShowLabelsThatDoNotFit = true,
218138
- previewModeFullscreen: controlledPreviewModeFullscreen,
218139
- previewModeButtonMenu,
218140
- allowPanelTabDraggable = true
218193
+ withRotateCircularView = true,
218194
+ withZoomCircularView = true,
218195
+ withZoomLinearView = true,
218196
+ withPreviewMode
218141
218197
  } = this.props;
218142
218198
  if (!this.props.noVersionHistory && this.props.versionHistory && this.props.versionHistory.viewVersionHistory) {
218143
218199
  return /* @__PURE__ */ React$3.createElement(
@@ -218621,12 +218677,11 @@ ${seqDataToCopy}\r
218621
218677
  userDefinedHandlersAndOpts,
218622
218678
  annotationsToSupport,
218623
218679
  closeFullscreen: !!(isFullscreen ? handleFullscreenClose : previewModeFullscreen),
218624
- ...{
218625
- modifyTools: this.props.modifyTools,
218626
- contentLeft: this.props.contentLeft,
218627
- editorName
218628
- },
218680
+ modifyTools: this.props.modifyTools,
218681
+ contentLeft: this.props.contentLeft,
218682
+ editorName,
218629
218683
  withDigestTool: true,
218684
+ onChangeEditLock: this.props.onChangeEditLock,
218630
218685
  ...ToolBarProps
218631
218686
  }
218632
218687
  ),
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "main": "./src/index.js",
5
5
  "dependencies": {
6
- "@teselagen/sequence-utils": "0.3.2",
7
- "@teselagen/range-utils": "0.3.2",
8
- "@teselagen/ui": "0.3.2",
9
- "@teselagen/file-utils": "0.3.2",
10
- "@teselagen/bounce-loader": "0.3.2",
11
- "@teselagen/bio-parsers": "0.3.2",
6
+ "@teselagen/sequence-utils": "0.3.4",
7
+ "@teselagen/range-utils": "0.3.4",
8
+ "@teselagen/ui": "0.3.4",
9
+ "@teselagen/file-utils": "0.3.4",
10
+ "@teselagen/bounce-loader": "0.3.4",
11
+ "@teselagen/bio-parsers": "0.3.4",
12
12
  "@blueprintjs/core": "3.52.0",
13
13
  "@blueprintjs/datetime": "3.23.19",
14
14
  "@blueprintjs/icons": "3.33.0",
@@ -342,46 +342,46 @@ export class Editor extends React.Component {
342
342
  const { previewModeFullscreen: uncontrolledPreviewModeFullscreen } =
343
343
  this.state;
344
344
  const {
345
- ToolBarProps = {},
346
- StatusBarProps = {},
347
- extraRightSidePanel,
345
+ allowPanelTabDraggable = true,
346
+ annotationsToSupport,
347
+ caretPositionUpdate,
348
+ closePanel,
349
+ collapseSplitScreen,
350
+ displayMenuBarAboveTools = true,
348
351
  editorName,
352
+ fullScreenOffsets,
353
+ expandTabToSplitScreen,
354
+ extraRightSidePanel,
355
+ getSequenceAtVersion,
356
+ getVersionList,
357
+ handleFullscreenClose,
349
358
  height: _height,
350
- showCircularity,
351
359
  hideSingleImport,
360
+ hideStatusBar,
361
+ hoveredId,
362
+ isFullscreen,
363
+ maxAnnotationsToDisplay,
352
364
  minHeight = 400,
353
- showMenuBar,
354
- annotationsToSupport,
355
- withRotateCircularView = true,
356
- withZoomCircularView = true,
357
- withZoomLinearView = true,
358
- displayMenuBarAboveTools = true,
359
- updateSequenceData,
365
+ onlyShowLabelsThatDoNotFit = true,
366
+ onSave,
367
+ previewModeButtonMenu,
368
+ previewModeFullscreen: controlledPreviewModeFullscreen,
360
369
  readOnly,
370
+ selectionLayer,
371
+ sequenceData = {},
361
372
  setPanelAsActive,
373
+ showCircularity,
374
+ showMenuBar,
375
+ StatusBarProps = {},
362
376
  style = {},
363
- maxAnnotationsToDisplay,
364
377
  togglePanelFullScreen,
365
- collapseSplitScreen,
366
- expandTabToSplitScreen,
367
- closePanel,
368
- onSave,
369
- hideStatusBar,
370
- caretPositionUpdate,
371
- getVersionList,
372
- getSequenceAtVersion,
373
- selectionLayer,
378
+ ToolBarProps = {},
379
+ updateSequenceData,
374
380
  VersionHistoryViewProps,
375
- sequenceData = {},
376
- fullScreenOffsets,
377
- withPreviewMode,
378
- isFullscreen,
379
- hoveredId,
380
- handleFullscreenClose,
381
- onlyShowLabelsThatDoNotFit = true,
382
- previewModeFullscreen: controlledPreviewModeFullscreen,
383
- previewModeButtonMenu,
384
- allowPanelTabDraggable = true
381
+ withRotateCircularView = true,
382
+ withZoomCircularView = true,
383
+ withZoomLinearView = true,
384
+ withPreviewMode
385
385
  } = this.props;
386
386
  if (
387
387
  !this.props.noVersionHistory &&
@@ -898,12 +898,11 @@ export class Editor extends React.Component {
898
898
  closeFullscreen={
899
899
  !!(isFullscreen ? handleFullscreenClose : previewModeFullscreen)
900
900
  }
901
- {...{
902
- modifyTools: this.props.modifyTools,
903
- contentLeft: this.props.contentLeft,
904
- editorName
905
- }}
901
+ modifyTools={this.props.modifyTools}
902
+ contentLeft={this.props.contentLeft}
903
+ editorName={editorName}
906
904
  withDigestTool
905
+ onChangeEditLock={this.props.onChangeEditLock}
907
906
  {...ToolBarProps}
908
907
  />
909
908
 
@@ -1,4 +1,5 @@
1
1
  export const userDefinedHandlersAndOpts = [
2
+ "onChangeEditLock",
2
3
  "defaultLinkedOligoMessage",
3
4
  "allowMultipleFeatureDirections",
4
5
  "getAdditionalEditAnnotationComps",
@@ -12,6 +13,7 @@ export const userDefinedHandlersAndOpts = [
12
13
  "smartCircViewLabelRender",
13
14
  "onConfigureFeatureTypesClick",
14
15
  "allPartTags",
16
+ "bpLimit",
15
17
  "editTagsLink",
16
18
  "readOnly",
17
19
  "shouldAutosave",
@@ -235,11 +235,9 @@ export function StatusBar({
235
235
  )}
236
236
  <EditReadOnlyItem
237
237
  editorName={editorName}
238
- {...{
239
- onSave,
240
- disableSetReadOnly,
241
- showReadOnly
242
- }}
238
+ onSave={onSave}
239
+ disableSetReadOnly={disableSetReadOnly}
240
+ showReadOnly={showReadOnly}
243
241
  />
244
242
  <EditCircularityItem
245
243
  editorName={editorName}
@@ -1,5 +1,5 @@
1
- import { Icon } from "@blueprintjs/core";
2
1
  import React from "react";
2
+ import { Icon } from "@blueprintjs/core";
3
3
  import ToolbarItem from "./ToolbarItem";
4
4
  import { connectToEditor } from "../withEditorProps";
5
5
 
@@ -7,20 +7,33 @@ export default connectToEditor((editorState) => {
7
7
  return {
8
8
  readOnly: editorState.readOnly
9
9
  };
10
- })(({ toolbarItemProps, readOnly, toggleReadOnlyMode, disableSetReadOnly }) => {
11
- return (
12
- <ToolbarItem
13
- {...{
14
- disabled: disableSetReadOnly,
15
- Icon: <Icon icon={readOnly ? "lock" : "unlock"} />,
16
- onIconClick: toggleReadOnlyMode,
17
- tooltip: readOnly ? (
18
- <span>Switch to edit mode</span>
19
- ) : (
20
- <span>Switch to read only mode</span>
21
- ),
22
- ...toolbarItemProps
23
- }}
24
- />
25
- );
26
- });
10
+ })(
11
+ ({
12
+ toolbarItemProps,
13
+ readOnly,
14
+ toggleReadOnlyMode,
15
+ disableSetReadOnly,
16
+ onChangeEditLock
17
+ }) => {
18
+ const readOnlyTooltip = ({ readOnly, disableSetReadOnly }) => {
19
+ if (disableSetReadOnly) {
20
+ return "You do not have permission to edit locks on this sequence";
21
+ }
22
+ return readOnly ? "Click to enable editing" : "Click to disable editing";
23
+ };
24
+ return (
25
+ <ToolbarItem
26
+ {...{
27
+ disabled: disableSetReadOnly,
28
+ Icon: <Icon icon={readOnly ? "lock" : "unlock"} />,
29
+ onIconClick: () => {
30
+ if (onChangeEditLock) onChangeEditLock(!readOnly);
31
+ toggleReadOnlyMode();
32
+ },
33
+ tooltip: readOnlyTooltip({ readOnly, disableSetReadOnly }),
34
+ ...toolbarItemProps
35
+ }}
36
+ />
37
+ );
38
+ }
39
+ );
@@ -1,9 +1,5 @@
1
1
  import React from "react";
2
- import {
3
- InputField,
4
- BPSelect,
5
- TextareaField
6
- } from "@teselagen/ui";
2
+ import { InputField, BPSelect, TextareaField } from "@teselagen/ui";
7
3
  import { reduxForm } from "redux-form";
8
4
  import withEditorProps from "../../withEditorProps";
9
5
  import { compose } from "recompose";
@@ -118,7 +118,7 @@ export default function updateEditor(
118
118
  caret: true,
119
119
  sequence: true,
120
120
  cutsites: false,
121
- reverseSequence: sequenceData?.isDoubleStrandedRNA,
121
+ reverseSequence: Boolean(sequenceData?.isDoubleStrandedRNA),
122
122
  translations: false,
123
123
  aminoAcidNumbers: false,
124
124
  primaryProteinSequence: false,
@@ -261,7 +261,7 @@ function VectorInteractionHOC(Component /* options */) {
261
261
  copyOptions,
262
262
  readOnly
263
263
  } = this.props;
264
- const onCut = this.props.onCut || this.props.onCopy || (noop);
264
+ const onCut = this.props.onCut || this.props.onCopy || noop;
265
265
  const seqData = tidyUpSequenceData(
266
266
  this.sequenceDataToCopy ||
267
267
  getSequenceDataBetweenRange(
@@ -516,9 +516,9 @@ function VectorInteractionHOC(Component /* options */) {
516
516
  // onCancel: undefined,
517
517
  text: (
518
518
  <div style={{ wordBreak: "break-word" }}>
519
- <h3>{annotation.name}:</h3>
520
- {annotation.message}
521
- </div>
519
+ <h3>{annotation.name}:</h3>
520
+ {annotation.message}
521
+ </div>
522
522
  )
523
523
  });
524
524
  this.updateSelectionOrCaret(event.shiftKey, annotation);
@@ -1195,7 +1195,8 @@ const insertAndSelectHelper = ({ seqDataToInsert, props }) => {
1195
1195
  sequenceData,
1196
1196
  selectionLayerUpdate,
1197
1197
  caretPosition,
1198
- selectionLayer
1198
+ selectionLayer,
1199
+ bpLimit
1199
1200
  } = props;
1200
1201
 
1201
1202
  // sequenceData,
@@ -1222,6 +1223,14 @@ const insertAndSelectHelper = ({ seqDataToInsert, props }) => {
1222
1223
  sequenceData,
1223
1224
  caretPosition > -1 ? caretPosition : selectionLayer
1224
1225
  );
1226
+ if (bpLimit) {
1227
+ if (newSeqData.sequence.length > bpLimit) {
1228
+ window.toastr.error(
1229
+ `Sorry, you cannot go over the limit of ${bpLimit} base pairs`
1230
+ );
1231
+ throw new Error("bpLimit exceeded");
1232
+ }
1233
+ }
1225
1234
  updateSequenceData(newSeqData);
1226
1235
  const seqDataInsertLength = seqDataToInsert.sequence
1227
1236
  ? seqDataToInsert.sequence.length