jssm 5.101.0 → 5.103.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.
@@ -20647,29 +20647,29 @@ var jssm = (function (exports) {
20647
20647
 
20648
20648
  var constants = /*#__PURE__*/Object.freeze({
20649
20649
  __proto__: null,
20650
- NegInfinity: NegInfinity,
20651
- PosInfinity: PosInfinity,
20652
- Epsilon: Epsilon,
20653
- Pi: Pi,
20654
20650
  E: E,
20655
- Root2: Root2,
20656
- RootHalf: RootHalf,
20657
- Ln2: Ln2,
20651
+ Epsilon: Epsilon,
20652
+ EulerC: EulerC,
20658
20653
  Ln10: Ln10,
20659
- Log2E: Log2E,
20654
+ Ln2: Ln2,
20660
20655
  Log10E: Log10E,
20661
- MaxSafeInt: MaxSafeInt,
20662
- MinSafeInt: MinSafeInt,
20656
+ Log2E: Log2E,
20663
20657
  MaxPosNum: MaxPosNum,
20658
+ MaxSafeInt: MaxSafeInt,
20664
20659
  MinPosNum: MinPosNum,
20660
+ MinSafeInt: MinSafeInt,
20661
+ NegInfinity: NegInfinity,
20665
20662
  Phi: Phi,
20666
- EulerC: EulerC,
20663
+ Pi: Pi,
20664
+ PosInfinity: PosInfinity,
20665
+ Root2: Root2,
20666
+ RootHalf: RootHalf,
20667
20667
  gviz_shapes: gviz_shapes$1,
20668
- shapes: shapes$1,
20669
- named_colors: named_colors$1
20668
+ named_colors: named_colors$1,
20669
+ shapes: shapes$1
20670
20670
  });
20671
20671
 
20672
- const version = "5.101.0", build_time = 1729453571202;
20672
+ const version = "5.103.0", build_time = 1729455776683;
20673
20673
 
20674
20674
  // whargarbl lots of these return arrays could/should be sets
20675
20675
  const { shapes, gviz_shapes, named_colors } = constants;
@@ -23175,8 +23175,6 @@ var jssm = (function (exports) {
23175
23175
  exports.weighted_rand_select = weighted_rand_select;
23176
23176
  exports.weighted_sample_select = weighted_sample_select;
23177
23177
 
23178
- Object.defineProperty(exports, '__esModule', { value: true });
23179
-
23180
23178
  return exports;
23181
23179
 
23182
23180
  })({});
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  class circular_buffer{constructor(uCapacity){if(!Number.isInteger(uCapacity)){throw new RangeError(`Capacity must be an integer, received ${uCapacity}`)}if(uCapacity<0){throw new RangeError(`Capacity must be a non-negative integer, received ${uCapacity}`)}this._values=new Array(uCapacity);this._capacity=uCapacity;this._cursor=0;this._offset=0;this._length=0;}get capacity(){return this._capacity}set capacity(newSize){this.resize(newSize);}get length(){return this._length}set length(newLength){if(newLength>this._capacity){throw new RangeError(`Requested new length [${newLength}] exceeds container capacity [${this._capacity}]`)}if(newLength<0){throw new RangeError(`Requested new length [${newLength}] cannot be negative`)}if(!Number.isInteger(newLength)){throw new RangeError(`Requested new length [${newLength}] must be an integer`)}if(this._length<=newLength){return}this._length=newLength;}get available(){return this._capacity-this._length}get isEmpty(){return this._length===0}get isFull(){return this._length===this._capacity}get first(){if(this.isEmpty){throw new RangeError("Cannot return first element of an empty container")}return this.at(0)}get last(){if(this.isEmpty){throw new RangeError("Cannot return last element of an empty container")}return this.at(this.length-1)}static from(i,map_fn,t){const new_array=map_fn?Array.from(i,map_fn,t):Array.from(i);const target_length=new_array.length;const ncb=new circular_buffer(target_length);ncb._values=new_array;ncb._length=target_length;return ncb}push(v){if(this.isFull){throw new RangeError(`Cannot push, structure is full to capacity`)}this._values[(this._cursor+this._length++)%this._capacity]=v;return v}shove(v){let shoved;if(this._capacity===0){throw new RangeError(`Cannot shove, structure is zero-capacity`)}if(this.isFull){shoved=this.pop();}this.push(v);return shoved}fill(x){for(let i=0;i<this._capacity;i++){this._values[i]=x;}this._length=this._capacity;return this._values}indexOf(searchElement,fromIndex){const normalized=this.toArray();return normalized.indexOf(searchElement,fromIndex)}find(predicate,thisArg){return this.toArray().find(predicate,thisArg)}every(functor,thisArg){const normalized=this.toArray(),res=normalized.every(functor,thisArg);this._values=normalized;this._values.length=this._capacity;this._cursor=0;return res}some(functor,thisArg){const normalized=this.toArray(),res=normalized.some(functor,thisArg);this._values=normalized;this._values.length=this._capacity;this._cursor=0;return res}reverse(){const normalized=this.toArray();this._values=normalized.reverse();this._values.length=this._capacity;this._cursor=0;return this}clear(){const old=this.toArray();this._length=0;return old}pop(){if(this._length<=0){throw new RangeError(`Cannot pop, structure is empty`)}const cache=this.at(0);--this._length;++this._offset;++this._cursor;if(this._cursor>=this._capacity){this._cursor-=this._capacity;}return cache}at(i){if(i<0){throw new RangeError(`circular_buffer does not support negative traversals; called at(${i})`)}if(!Number.isInteger(i)){throw new RangeError(`Accessors must be non-negative integers; called at(${i})`)}if(i>=this._capacity){throw new RangeError(`Requested cell ${i} exceeds container permanent capacity`)}if(i>=this._length){throw new RangeError(`Requested cell ${i} exceeds container current length`)}return this._values[(this._cursor+i)%this._capacity]}pos(i){return this.at(i-this.offset())}offset(){return this._offset}resize(newSize,preferEnd=false){this._values=this.toArray();this._cursor=0;const oldSize=this._length;this._length=Math.min(this._length,newSize);this._capacity=newSize;if(newSize>=oldSize){this._values.length=newSize;}else {if(preferEnd){const tmp=this._values.slice(oldSize-newSize);this._values=tmp;}else {this._values.length=newSize;}}}toArray(){const startPoint=this._cursor%this._capacity;if(this._capacity>startPoint+this._length){return this._values.slice(startPoint,startPoint+this._length)}else {const base=this._values.slice(startPoint,this._capacity);base.push(...this._values.slice(0,this.length-(this._capacity-startPoint)));return base}}}
6
4
 
7
5
  const FslDirections = ['up', 'right', 'down', 'left'];
@@ -20648,29 +20646,29 @@ const named_colors$1 = [
20648
20646
 
20649
20647
  var constants = /*#__PURE__*/Object.freeze({
20650
20648
  __proto__: null,
20651
- NegInfinity: NegInfinity,
20652
- PosInfinity: PosInfinity,
20653
- Epsilon: Epsilon,
20654
- Pi: Pi,
20655
20649
  E: E,
20656
- Root2: Root2,
20657
- RootHalf: RootHalf,
20658
- Ln2: Ln2,
20650
+ Epsilon: Epsilon,
20651
+ EulerC: EulerC,
20659
20652
  Ln10: Ln10,
20660
- Log2E: Log2E,
20653
+ Ln2: Ln2,
20661
20654
  Log10E: Log10E,
20662
- MaxSafeInt: MaxSafeInt,
20663
- MinSafeInt: MinSafeInt,
20655
+ Log2E: Log2E,
20664
20656
  MaxPosNum: MaxPosNum,
20657
+ MaxSafeInt: MaxSafeInt,
20665
20658
  MinPosNum: MinPosNum,
20659
+ MinSafeInt: MinSafeInt,
20660
+ NegInfinity: NegInfinity,
20666
20661
  Phi: Phi,
20667
- EulerC: EulerC,
20662
+ Pi: Pi,
20663
+ PosInfinity: PosInfinity,
20664
+ Root2: Root2,
20665
+ RootHalf: RootHalf,
20668
20666
  gviz_shapes: gviz_shapes$1,
20669
- shapes: shapes$1,
20670
- named_colors: named_colors$1
20667
+ named_colors: named_colors$1,
20668
+ shapes: shapes$1
20671
20669
  });
20672
20670
 
20673
- const version = "5.101.0", build_time = 1729453571202;
20671
+ const version = "5.103.0", build_time = 1729455776683;
20674
20672
 
20675
20673
  // whargarbl lots of these return arrays could/should be sets
20676
20674
  const { shapes, gviz_shapes, named_colors } = constants;