diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f25233..e739f79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,94 +1,86 @@ -## [1.0.6](https://github.com/LCluber/Orbis.js/compare/v1.0.5...v1.0.6) (2020-01-04) +## Version 1.0.7 (June 19th 2020) + +- Update Aias.js to version 2.7.1 +- Update Type6.js to version 2.0.1 +## [1.0.6](https://github.com/LCluber/Orbis.js/compare/v1.0.5...v1.0.6) (2020-01-04) ### Bug Fixes -* **dependencies:** update @cluber/* dependencies ([34bd901](https://github.com/LCluber/Orbis.js/commit/34bd90102ddcd1cce460cc1481bce91b6e235325)) +- **dependencies:** update @cluber/\* dependencies ([34bd901](https://github.com/LCluber/Orbis.js/commit/34bd90102ddcd1cce460cc1481bce91b6e235325)) ## [1.0.5](https://github.com/LCluber/Orbis.js/compare/v1.0.4...v1.0.5) (2020-01-04) - ### Bug Fixes -* **typings:** fix Loader assets list typings ([3a66425](https://github.com/LCluber/Orbis.js/commit/3a66425cb6b4b678304b754cbb9eb9b3e88e2422)) +- **typings:** fix Loader assets list typings ([3a66425](https://github.com/LCluber/Orbis.js/commit/3a66425cb6b4b678304b754cbb9eb9b3e88e2422)) ## [1.0.4](https://github.com/LCluber/Orbis.js/compare/v1.0.3...v1.0.4) (2020-01-03) - ### Bug Fixes -* **declaration:** fix declaration file imports ([2a0ae51](https://github.com/LCluber/Orbis.js/commit/2a0ae513b3a516eeff6c188812c66f7132d77d9a)) +- **declaration:** fix declaration file imports ([2a0ae51](https://github.com/LCluber/Orbis.js/commit/2a0ae513b3a516eeff6c188812c66f7132d77d9a)) ## [1.0.3](https://github.com/LCluber/Orbis.js/compare/v1.0.2...v1.0.3) (2020-01-02) - ### Bug Fixes -* **readme:** update readme.md with improved angular service example ([ab066d9](https://github.com/LCluber/Orbis.js/commit/ab066d97f0b7016b0e11513c71e8b5a6c8cc5f48)) +- **readme:** update readme.md with improved angular service example ([ab066d9](https://github.com/LCluber/Orbis.js/commit/ab066d97f0b7016b0e11513c71e8b5a6c8cc5f48)) ## [1.0.2](https://github.com/LCluber/Orbis.js/compare/v1.0.1...v1.0.2) (2020-01-02) - ### Bug Fixes -* **typing:** improve typing with better interfaces for Angular ([181f728](https://github.com/LCluber/Orbis.js/commit/181f728fca642a309b1e795b9f8e6ce1f71dd4ab)) +- **typing:** improve typing with better interfaces for Angular ([181f728](https://github.com/LCluber/Orbis.js/commit/181f728fca642a309b1e795b9f8e6ce1f71dd4ab)) ## [1.0.1](https://github.com/LCluber/Orbis.js/compare/v1.0.0...v1.0.1) (2020-01-01) - ### Bug Fixes -* **asset:** fix optional parameters of Asset type ([cd21bc7](https://github.com/LCluber/Orbis.js/commit/cd21bc7a62ee5cbfb854e73978f13289ed9d4350)) +- **asset:** fix optional parameters of Asset type ([cd21bc7](https://github.com/LCluber/Orbis.js/commit/cd21bc7a62ee5cbfb854e73978f13289ed9d4350)) # [1.0.0](https://github.com/LCluber/Orbis.js/compare/v0.9.2...v1.0.0) (2020-01-01) - ### Features -* **loader:** add getContent() method ([daa1bc2](https://github.com/LCluber/Orbis.js/commit/daa1bc2efbc5fda6ec1f3264d1c7a0010a6356c2)) - +- **loader:** add getContent() method ([daa1bc2](https://github.com/LCluber/Orbis.js/commit/daa1bc2efbc5fda6ec1f3264d1c7a0010a6356c2)) ### BREAKING CHANGES -* **loader:** change Loader.launch() to Loader.start() +- **loader:** change Loader.launch() to Loader.start() ## [0.9.2](https://github.com/LCluber/Orbis.js/compare/v0.9.1...v0.9.2) (2019-10-05) - ### Bug Fixes -* **aiasjs:** updated aias.js library for better audio context handling ([5abf7e4](https://github.com/LCluber/Orbis.js/commit/5abf7e4)) +- **aiasjs:** updated aias.js library for better audio context handling ([5abf7e4](https://github.com/LCluber/Orbis.js/commit/5abf7e4)) ## [0.9.1](https://github.com/LCluber/Orbis.js/compare/v0.9.0...v0.9.1) (2019-10-05) - ### Bug Fixes -* **audiobuffer:** can load audio buffer on safari ([0c65244](https://github.com/LCluber/Orbis.js/commit/0c65244)) +- **audiobuffer:** can load audio buffer on safari ([0c65244](https://github.com/LCluber/Orbis.js/commit/0c65244)) # [0.9.0](https://github.com/LCluber/Orbis.js/compare/v0.8.2...v0.9.0) (2019-09-29) - ### Features -* **asset:** improved asset structure ([3b8ee35](https://github.com/LCluber/Orbis.js/commit/3b8ee35)) -* **errors:** better error handling for sound loader ([1297cb2](https://github.com/LCluber/Orbis.js/commit/1297cb2)) -* **logger:** added setloglevel and getloglevel methods ([e190541](https://github.com/LCluber/Orbis.js/commit/e190541)) -* **sound:** load sound as audiobuffer instead of audioelement ([fa064b7](https://github.com/LCluber/Orbis.js/commit/fa064b7)) +- **asset:** improved asset structure ([3b8ee35](https://github.com/LCluber/Orbis.js/commit/3b8ee35)) +- **errors:** better error handling for sound loader ([1297cb2](https://github.com/LCluber/Orbis.js/commit/1297cb2)) +- **logger:** added setloglevel and getloglevel methods ([e190541](https://github.com/LCluber/Orbis.js/commit/e190541)) +- **sound:** load sound as audiobuffer instead of audioelement ([fa064b7](https://github.com/LCluber/Orbis.js/commit/fa064b7)) ## [0.8.2](https://github.com/LCluber/Orbis.js/compare/v0.8.1...v0.8.2) (2019-08-31) - ### Bug Fixes -* **sound:** added stalled event listener to sound loader ([facd150](https://github.com/LCluber/Orbis.js/commit/facd150)) +- **sound:** added stalled event listener to sound loader ([facd150](https://github.com/LCluber/Orbis.js/commit/facd150)) ## [0.8.1](https://github.com/LCluber/Orbis.js/compare/v0.8.0...v0.8.1) (2019-08-18) - ### Bug Fixes -* **dist:** fixed dist forlder ([708766d](https://github.com/LCluber/Orbis.js/commit/708766d)) +- **dist:** fixed dist forlder ([708766d](https://github.com/LCluber/Orbis.js/commit/708766d)) ## Version 0.8.0 (August 17th 2019) diff --git a/Gruntfile.js b/Gruntfile.js index 51e1db3..2b753bd 100755 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -71,18 +71,6 @@ module.exports = function(grunt) { src: [publicDir + "fonts/*"] } }, - typedoc: { - build: { - options: { - out: docDir, - target: "es6", - name: projectName + ".js - Documentation", - includeDeclarations: false, - hideGenerator: true - }, - src: [srcDir + "ts/*.ts"] - } - }, jshint: { options: { // jshintrc: 'config/.jshintrc' @@ -443,7 +431,6 @@ module.exports = function(grunt) { grunt.loadNpmTasks("grunt-open"); grunt.loadNpmTasks("grunt-ts"); grunt.loadNpmTasks("grunt-rollup"); - grunt.loadNpmTasks("grunt-typedoc"); grunt.loadNpmTasks("grunt-sass"); grunt.registerTask("lib", "build the library in the dist/ folder", [ @@ -509,7 +496,7 @@ module.exports = function(grunt) { //build site grunt.task.run("website"); //build documentation - grunt.task.run("doc"); + // grunt.task.run("doc"); // launch server and watch for changes grunt.task.run("serve"); }); diff --git a/dist/orbis.iife.js b/dist/orbis.iife.js index b0676b3..e8b5d30 100644 --- a/dist/orbis.iife.js +++ b/dist/orbis.iife.js @@ -713,6 +713,1531 @@ var Orbis = (function (exports) { value: function mix(x, y, ratio) { return (1 - ratio) * x + ratio * y; } + }, { + key: 'getSign', + value: function getSign(x) { + return x ? x < 0 ? -1 : 1 : 0; + } + }, { + key: 'opposite', + value: function opposite(x) { + return -x; + } + }, { + key: 'clamp', + value: function clamp(x, min, max) { + return Math.min(Math.max(x, min), max); + } + }, { + key: 'normalize', + value: function normalize(x, min, max) { + return (x - min) / (max - min); + } + }, { + key: 'lerp', + value: function lerp(min, max, amount) { + return (max - min) * amount + min; + } + }, { + key: 'map', + value: function map(x, sourceMin, sourceMax, destMin, destMax) { + return this.lerp(destMin, destMax, this.normalize(x, sourceMin, sourceMax)); + } + }, { + key: 'isIn', + value: function isIn(x, min, max) { + return x >= min && x <= max; + } + }, { + key: 'isOut', + value: function isOut(x, min, max) { + return x < min || x > max; + } + }]); + + return Utils; + }(); + + var Trigonometry = function () { + function Trigonometry() { + _classCallCheck$2(this, Trigonometry); + } + + _createClass$2(Trigonometry, null, [{ + key: 'init', + value: function init() { + Trigonometry.createRoundedPis(); + Trigonometry.createFactorialArray(); + } + }, { + key: 'createRoundedPis', + value: function createRoundedPis() { + var decimals = 2; + this.pi = Utils.round(Math.PI, decimals); + this.twopi = Utils.round(Math.PI * 2, decimals); + this.halfpi = Utils.round(Math.PI * 0.5, decimals); + } + }, { + key: 'createFactorialArray', + value: function createFactorialArray() { + var maxSin = this.sineLoops[this.sineLoops.length - 1] * 3; + var maxCos = this.cosineLoops[this.cosineLoops.length - 1] * 2; + for (var i = 1, f = 1; i <= Math.max(maxSin, maxCos); i++) { + f *= this.factorial(i); + this.factorialArray.push(f); + } + } + }, { + key: 'factorial', + value: function factorial(i) { + return i > 1 ? i - 1 : 1; + } + }, { + key: 'setSinePrecision', + value: function setSinePrecision(value) { + if (value >= 0 && value <= this.maxDecimals) { + this.sineDecimals = value; + return value; + } + return this.sineDecimals = this.maxDecimals; + } + }, { + key: 'setCosinePrecision', + value: function setCosinePrecision(value) { + if (value >= 0 && value <= this.maxDecimals) { + this.cosineDecimals = value; + return value; + } + return this.cosineDecimals = this.maxDecimals; + } + }, { + key: 'setArctanPrecision', + value: function setArctanPrecision(value) { + if (value >= 0 && value <= this.maxDecimals) { + this.arctanDecimals = value; + return value; + } + return this.arctanDecimals = this.maxDecimals; + } + }, { + key: 'degreeToRadian', + value: function degreeToRadian(degree) { + return degree * this.pi / 180; + } + }, { + key: 'radianToDegree', + value: function radianToDegree(radian) { + return radian * 180 / this.pi; + } + }, { + key: 'normalizeRadian', + value: function normalizeRadian(angle) { + if (angle > this.pi || angle < -this.pi) { + return angle - this.twopi * Math.floor((angle + this.pi) / this.twopi); + } + return angle; + } + }, { + key: 'sine', + value: function sine(angle) { + angle = this.normalizeRadian(angle); + if (Trigonometry.sineDecimals <= 2 && angle < 0.28 && angle > -0.28) { + return angle; + } else { + return this.taylorSerie(3, Trigonometry.sineLoops[this.sineDecimals], angle, angle, true); + } + } + }, { + key: 'cosine', + value: function cosine(angle) { + angle = this.normalizeRadian(angle); + var squaredAngle = angle * angle; + if (this.cosineDecimals <= 2 && angle <= 0.5 && angle >= -0.5) { + return 1 - squaredAngle * 0.5; + } else { + return this.taylorSerie(2, Trigonometry.cosineLoops[this.cosineDecimals], 1, angle, true); + } + } + }, { + key: 'arctan2', + value: function arctan2(x, y) { + var angle = y / x; + if (x > 0) { + return this.arctan(angle); + } else if (x < 0) { + if (y < 0) { + return this.arctan(angle) - this.pi; + } else { + return this.arctan(angle) + this.pi; + } + } else { + if (y < 0) { + return -this.halfpi; + } else if (y > 0) { + return this.halfpi; + } else { + return false; + } + } + } + }, { + key: 'arctan', + value: function arctan(angle) { + var loops = Trigonometry.arctanLoops[this.arctanDecimals]; + if (angle < 1 && angle > -1) { + return this.taylorSerie(3, loops, angle, angle, false); + } else { + if (angle >= 1) { + angle = 1 / angle; + return -(this.taylorSerie(3, loops, angle, angle, false) - this.halfpi); + } else { + angle = -1 / angle; + return this.taylorSerie(3, loops, angle, angle, false) - this.halfpi; + } + } + } + }, { + key: 'sineEquation', + value: function sineEquation(amplitude, period, shiftX, shiftY) { + return amplitude * this.sine(period + shiftX) + shiftY; + } + }, { + key: 'cosineEquation', + value: function cosineEquation(amplitude, period, shiftX, shiftY) { + return amplitude * this.cosine(period + shiftX) + shiftY; + } + }, { + key: 'arctanEquation', + value: function arctanEquation(amplitude, period, shiftX, shiftY) { + return amplitude * this.arctan(period + shiftX) + shiftY; + } + }, { + key: 'taylorSerie', + value: function taylorSerie(start, max, x, angle, needFactorial) { + var squaredAngle = angle * angle; + var result = x; + var denominator = 0; + var sign = -1; + for (var i = 0; start <= max; start += 2, i++) { + x *= squaredAngle; + denominator = needFactorial ? this.factorialArray[start] : start; + result += x / denominator * sign; + sign = Utils.opposite(sign); + } + return result; + } + }]); + + return Trigonometry; + }(); + + Trigonometry.sineLoops = [9, 11, 13, 15, 17, 18, 19, 21, 23]; + Trigonometry.cosineLoops = [6, 8, 10, 12, 14, 16, 18, 20, 22]; + Trigonometry.arctanLoops = [17, 19, 21, 23, 25, 27, 29, 31, 33]; + Trigonometry.sineDecimals = 2; + Trigonometry.cosineDecimals = 2; + Trigonometry.arctanDecimals = 2; + Trigonometry.maxDecimals = 8; + Trigonometry.factorialArray = []; + Trigonometry.init(); + + var Time = function () { + function Time() { + _classCallCheck$2(this, Time); + } + + _createClass$2(Time, null, [{ + key: 'millisecToSec', + value: function millisecToSec(millisecond) { + return millisecond * 0.001; + } + }, { + key: 'secToMillisec', + value: function secToMillisec(second) { + return second * 1000; + } + }, { + key: 'millisecToFps', + value: function millisecToFps(millisecond) { + return 1000 / millisecond; + } + }, { + key: 'fpsToMillisec', + value: function fpsToMillisec(refreshRate) { + return 1000 / refreshRate; + } + }]); + + return Time; + }(); + + var Random = function () { + function Random() { + _classCallCheck$2(this, Random); + } + + _createClass$2(Random, null, [{ + key: 'float', + value: function float(min, max) { + return min + Math.random() * (max - min); + } + }, { + key: 'integer', + value: function integer(min, max) { + return Math.floor(min + Math.random() * (max - min + 1)); + } + }, { + key: 'distribution', + value: function distribution(min, max, iterations) { + var total = 0; + for (var i = 0; i < iterations; i++) { + total += this.float(min, max); + } + return total / iterations; + } + }, { + key: 'pick', + value: function pick(value1, value2) { + return Math.random() < 0.5 ? value1 : value2; + } + }]); + + return Random; + }(); + + var NumArray = function () { + function NumArray() { + _classCallCheck$2(this, NumArray); + } + + _createClass$2(NumArray, null, [{ + key: 'min', + value: function min(array) { + return Math.min.apply(Math, _toConsumableArray(array)); + } + }, { + key: 'max', + value: function max(array) { + return Math.max.apply(Math, _toConsumableArray(array)); + } + }, { + key: 'sum', + value: function sum(array) { + return array.reduce(function (a, b) { + return a + b; + }, 0); + } + }, { + key: 'multiply', + value: function multiply(array) { + return array.reduce(function (a, b) { + return a * b; + }, 0); + } + }, { + key: 'average', + value: function average(array, length) { + return NumArray.sum(array) / length; + } + }]); + + return NumArray; + }(); + + var Bezier = function () { + function Bezier() { + _classCallCheck$2(this, Bezier); + } + + _createClass$2(Bezier, null, [{ + key: 'quadratic', + value: function quadratic(p0, p1, p2, t) { + var oneMinusT = 1 - t; + return Math.pow(oneMinusT, 2) * p0 + oneMinusT * 2 * t * p1 + t * t * p2; + } + }, { + key: 'cubic', + value: function cubic(p0, p1, p2, p3, t) { + var oneMinusT = 1 - t; + var tByT = t * t; + return Math.pow(oneMinusT, 3) * p0 + Math.pow(oneMinusT, 2) * 3 * t * p1 + oneMinusT * 3 * tByT * p2 + tByT * t * p3; + } + }]); + + return Bezier; + }(); + + var Vector2 = function () { + function Vector2(x, y) { + _classCallCheck$2(this, Vector2); + + this.x = x || 0.0; + this.y = y || 0.0; + } + + _createClass$2(Vector2, [{ + key: 'isOrigin', + value: function isOrigin() { + return this.x === 0 && this.y === 0 ? true : false; + } + }, { + key: 'isPositive', + value: function isPositive() { + return this.x >= 0 && this.y >= 0 ? true : false; + } + }, { + key: 'setFromArray', + value: function setFromArray(array, offset) { + if (offset === undefined) { + offset = 0; + } + this.x = array[offset]; + this.y = array[offset + 1]; + return this; + } + }, { + key: 'toArray', + value: function toArray() { + return [this.x, this.y]; + } + }, { + key: 'toString', + value: function toString() { + return '(x = ' + this.x + '; y = ' + this.y + ')'; + } + }, { + key: 'set', + value: function set(x, y) { + this.x = x; + this.y = y; + return this; + } + }, { + key: 'clone', + value: function clone() { + return new Vector2(this.x, this.y); + } + }, { + key: 'copy', + value: function copy(v) { + this.x = v.x; + this.y = v.y; + return this; + } + }, { + key: 'origin', + value: function origin() { + this.x = 0.0; + this.y = 0.0; + return this; + } + }, { + key: 'setFromAngle', + value: function setFromAngle(angle) { + if (angle) { + var length = this.getMagnitude(); + this.x = Trigonometry.cosine(angle) * length; + this.y = Trigonometry.sine(angle) * length; + } + return this; + } + }, { + key: 'getAngle', + value: function getAngle() { + return Math.atan2(this.y, this.x); + } + }, { + key: 'getMagnitude', + value: function getMagnitude() { + var square = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + + return square ? this.getSquaredMagnitude() : Math.sqrt(this.getSquaredMagnitude()); + } + }, { + key: 'getSquaredMagnitude', + value: function getSquaredMagnitude() { + return this.x * this.x + this.y * this.y; + } + }, { + key: 'getDistance', + value: function getDistance(v) { + var square = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + + this.subtract(v); + var magnitude = this.getMagnitude(square); + this.add(v); + return magnitude; + } + }, { + key: 'quadraticBezier', + value: function quadraticBezier(p0, p1, p2, t) { + this.x = Bezier.quadratic(p0.x, p1.x, p2.x, t); + this.y = Bezier.quadratic(p0.y, p1.y, p2.y, t); + return this; + } + }, { + key: 'cubicBezier', + value: function cubicBezier(p0, p1, p2, p3, t) { + this.x = Bezier.cubic(p0.x, p1.x, p2.x, p3.x, t); + this.y = Bezier.cubic(p0.y, p1.y, p2.y, p3.y, t); + return this; + } + }, { + key: 'add', + value: function add(v) { + this.x += v.x; + this.y += v.y; + return this; + } + }, { + key: 'addScalar', + value: function addScalar(scalar) { + this.x += scalar; + this.y += scalar; + return this; + } + }, { + key: 'addScaledVector', + value: function addScaledVector(v, scalar) { + this.x += v.x * scalar; + this.y += v.y * scalar; + return this; + } + }, { + key: 'subtract', + value: function subtract(v) { + this.x -= v.x; + this.y -= v.y; + return this; + } + }, { + key: 'subtractScalar', + value: function subtractScalar(scalar) { + this.x -= scalar; + this.y -= scalar; + return this; + } + }, { + key: 'subtractScaledVector', + value: function subtractScaledVector(v, scalar) { + this.x -= v.x * scalar; + this.y -= v.y * scalar; + return this; + } + }, { + key: 'scale', + value: function scale(value) { + this.x *= value; + this.y *= value; + return this; + } + }, { + key: 'multiply', + value: function multiply(v) { + this.x *= v.x; + this.y *= v.y; + return this; + } + }, { + key: 'multiplyScaledVector', + value: function multiplyScaledVector(v, scalar) { + this.x *= v.x * scalar; + this.y *= v.y * scalar; + return this; + } + }, { + key: 'divide', + value: function divide(v) { + this.x /= v.x; + this.y /= v.y; + return this; + } + }, { + key: 'divideScaledVector', + value: function divideScaledVector(v, scalar) { + this.x /= v.x * scalar; + this.y /= v.y * scalar; + return this; + } + }, { + key: 'halve', + value: function halve() { + this.x *= 0.5; + this.y *= 0.5; + return this; + } + }, { + key: 'max', + value: function max(v) { + this.x = Math.max(this.x, v.x); + this.y = Math.max(this.y, v.y); + return this; + } + }, { + key: 'min', + value: function min(v) { + this.x = Math.min(this.x, v.x); + this.y = Math.min(this.y, v.y); + return this; + } + }, { + key: 'maxScalar', + value: function maxScalar(scalar) { + this.x = Math.max(this.x, scalar); + this.y = Math.max(this.y, scalar); + return this; + } + }, { + key: 'minScalar', + value: function minScalar(scalar) { + this.x = Math.min(this.x, scalar); + this.y = Math.min(this.y, scalar); + return this; + } + }, { + key: 'getMaxAxis', + value: function getMaxAxis() { + return this.y > this.x ? 'y' : 'x'; + } + }, { + key: 'getMinAxis', + value: function getMinAxis() { + return this.y < this.x ? 'y' : 'x'; + } + }, { + key: 'setOppositeAxis', + value: function setOppositeAxis(axis, value) { + if (axis === 'y') { + this.x = value; + } else { + this.y = value; + } + return this; + } + }, { + key: 'normalize', + value: function normalize() { + var length = this.getMagnitude(); + if (length && length != 1) { + this.scale(1 / length); + } + return this; + } + }, { + key: 'absolute', + value: function absolute() { + this.x = Math.abs(this.x); + this.y = Math.abs(this.y); + return this; + } + }, { + key: 'opposite', + value: function opposite() { + this.x = -this.x; + this.y = -this.y; + return this; + } + }, { + key: 'clamp', + value: function clamp(rectangle) { + this.x = Utils.clamp(this.x, rectangle.topLeftCorner.x, rectangle.bottomRightCorner.x); + this.y = Utils.clamp(this.y, rectangle.topLeftCorner.y, rectangle.bottomRightCorner.y); + return this; + } + }, { + key: 'lerp', + value: function lerp(min, max, amount) { + this.x = Utils.lerp(min.x, max.x, amount); + this.y = Utils.lerp(min.y, max.y, amount); + return this; + } + }, { + key: 'dotProduct', + value: function dotProduct(v) { + return this.x * v.x + this.y * v.y; + } + }]); + + return Vector2; + }(); + + var Circle = function () { + function Circle(positionX, positionY, radius) { + _classCallCheck$2(this, Circle); + + this.shape = 'circle'; + this._radius = 0.0; + this._diameter = 0.0; + this.position = new Vector2(positionX, positionY); + this.radius = radius; + } + + _createClass$2(Circle, [{ + key: 'clone', + value: function clone() { + return new Circle(this.position.x, this.position.y, this.radius); + } + }, { + key: 'copy', + value: function copy(circle) { + this.position.copy(circle.position); + this.radius = circle.radius; + return this; + } + }, { + key: 'set', + value: function set(positionX, positionY, radius) { + this.position.set(positionX, positionY); + this.radius = radius; + return this; + } + }, { + key: 'setPositionXY', + value: function setPositionXY(positionX, positionY) { + this.position.set(positionX, positionY); + return this; + } + }, { + key: 'setPositionFromVector', + value: function setPositionFromVector(position) { + this.position.copy(position); + return this; + } + }, { + key: 'scale', + value: function scale(scalar) { + this.radius *= scalar; + return this; + } + }, { + key: 'isIn', + value: function isIn(v) { + return v.getDistance(this.position, true) <= this.radius * this.radius; + } + }, { + key: 'draw', + value: function draw(context, fillColor, strokeColor, strokeWidth) { + context.beginPath(); + context.arc(this.position.x, this.position.y, this.radius, 0, Trigonometry.twopi, false); + if (fillColor) { + context.fillStyle = fillColor; + context.fill(); + } + if (strokeColor) { + context.strokeStyle = strokeColor; + context.lineWidth = strokeWidth; + context.stroke(); + } + } + }, { + key: 'radius', + set: function set(radius) { + this._radius = radius; + this._diameter = this._radius * 2; + }, + get: function get() { + return this._radius; + } + }, { + key: 'diameter', + set: function set(diameter) { + this._diameter = diameter; + this._radius = this._diameter * 0.5; + }, + get: function get() { + return this._diameter; + } + }]); + + return Circle; + }(); + + var Rectangle = function () { + function Rectangle(positionX, positionY, sizeX, sizeY) { + _classCallCheck$2(this, Rectangle); + + this.shape = 'aabb'; + this.size = new Vector2(sizeX, sizeY); + this.halfSize = new Vector2(); + this.setHalfSize(); + this.position = new Vector2(positionX, positionY); + this.topLeftCorner = new Vector2(positionX - this.halfSize.x, positionY - this.halfSize.y); + this.bottomRightCorner = new Vector2(positionX + this.halfSize.x, positionY + this.halfSize.y); + } + + _createClass$2(Rectangle, [{ + key: 'clone', + value: function clone() { + return new Rectangle(this.position.x, this.position.y, this.size.x, this.size.y); + } + }, { + key: 'copy', + value: function copy(rectangle) { + this.setSizeFromVector(rectangle.size); + this.setPositionFromVector(rectangle.position); + return this; + } + }, { + key: 'set', + value: function set(positionX, positionY, sizeX, sizeY) { + this.setSizeXY(sizeX, sizeY); + this.setPositionXY(positionX, positionY); + return this; + } + }, { + key: 'setPositionX', + value: function setPositionX(x) { + this.setPosition('x', x); + return this; + } + }, { + key: 'setPositionY', + value: function setPositionY(y) { + this.setPosition('y', y); + return this; + } + }, { + key: 'setPosition', + value: function setPosition(property, value) { + this.position[property] = value; + this.topLeftCorner[property] = value - this.halfSize[property]; + this.bottomRightCorner[property] = value + this.halfSize[property]; + } + }, { + key: 'setPositionXY', + value: function setPositionXY(positionX, positionY) { + this.position.set(positionX, positionY); + this.setCorners(); + return this; + } + }, { + key: 'setPositionFromVector', + value: function setPositionFromVector(position) { + this.position.copy(position); + this.setCorners(); + return this; + } + }, { + key: 'setSizeX', + value: function setSizeX(width) { + this.setSize('x', width); + return this; + } + }, { + key: 'setSizeY', + value: function setSizeY(height) { + this.setSize('y', height); + return this; + } + }, { + key: 'setSize', + value: function setSize(property, value) { + this.size[property] = value; + this.setHalfSize(); + this.topLeftCorner[property] = this.position[property] - this.halfSize[property]; + this.bottomRightCorner[property] = this.position[property] + this.halfSize[property]; + } + }, { + key: 'setSizeXY', + value: function setSizeXY(width, height) { + this.size.set(width, height); + this.setHalfSize(); + this.setCorners(); + return this; + } + }, { + key: 'setSizeFromVector', + value: function setSizeFromVector(size) { + this.size.copy(size); + this.setHalfSize(); + this.setCorners(); + return this; + } + }, { + key: 'setCorners', + value: function setCorners() { + this.topLeftCorner.set(this.position.x - this.halfSize.x, this.position.y - this.halfSize.y); + this.bottomRightCorner.set(this.position.x + this.halfSize.x, this.position.y + this.halfSize.y); + } + }, { + key: 'setHalfSize', + value: function setHalfSize() { + this.halfSize.copy(this.size); + this.halfSize.halve(); + } + }, { + key: 'isIn', + value: function isIn(vector) { + return Utils.isIn(vector.x, this.topLeftCorner.x, this.bottomRightCorner.x) && Utils.isIn(vector.y, this.topLeftCorner.y, this.bottomRightCorner.y); + } + }, { + key: 'draw', + value: function draw(context, fillColor, strokeColor, strokeWidth) { + context.beginPath(); + context.rect(this.topLeftCorner.x, this.topLeftCorner.y, this.size.x, this.size.y); + if (fillColor) { + context.fillStyle = fillColor; + context.fill(); + } + if (strokeColor) { + context.strokeStyle = strokeColor; + context.lineWidth = strokeWidth; + context.stroke(); + } + } + }]); + + return Rectangle; + }(); + + var Vector3 = function () { + function Vector3(x, y, z) { + _classCallCheck$2(this, Vector3); + + this.x = x || 0.0; + this.y = y || 0.0; + this.z = z || 0.0; + } + + _createClass$2(Vector3, [{ + key: 'isOrigin', + value: function isOrigin() { + return this.x === 0 && this.y === 0 && this.z === 0 ? true : false; + } + }, { + key: 'isPositive', + value: function isPositive() { + return this.x >= 0 && this.y >= 0 && this.z >= 0 ? true : false; + } + }, { + key: 'setFromArray', + value: function setFromArray(array, offset) { + if (offset === undefined) { + offset = 0; + } + this.x = array[offset]; + this.y = array[offset + 1]; + this.z = array[offset + 2]; + return this; + } + }, { + key: 'toArray', + value: function toArray() { + return [this.x, this.y, this.z]; + } + }, { + key: 'toString', + value: function toString() { + return '(x = ' + this.x + '; y = ' + this.y + '; z = ' + this.z + ')'; + } + }, { + key: 'set', + value: function set(x, y, z) { + this.x = x; + this.y = y; + this.z = z; + return this; + } + }, { + key: 'clone', + value: function clone() { + return new Vector3(this.x, this.y, this.z); + } + }, { + key: 'copy', + value: function copy(v) { + this.x = v.x; + this.y = v.y; + this.z = v.z; + return this; + } + }, { + key: 'origin', + value: function origin() { + this.x = 0.0; + this.y = 0.0; + this.z = 0.0; + return this; + } + }, { + key: 'getMagnitude', + value: function getMagnitude() { + var square = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + + return square ? this.getSquaredMagnitude() : Math.sqrt(this.getSquaredMagnitude()); + } + }, { + key: 'getSquaredMagnitude', + value: function getSquaredMagnitude() { + return this.x * this.x + this.y * this.y + this.z * this.z; + } + }, { + key: 'getDistance', + value: function getDistance(v) { + var square = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + + this.subtract(v); + var magnitude = this.getMagnitude(square); + this.add(v); + return magnitude; + } + }, { + key: 'add', + value: function add(v) { + this.x += v.x; + this.y += v.y; + this.z += v.z; + return this; + } + }, { + key: 'addScalar', + value: function addScalar(scalar) { + this.x += scalar; + this.y += scalar; + this.z += scalar; + return this; + } + }, { + key: 'addScaledVector', + value: function addScaledVector(v, scalar) { + this.x += v.x * scalar; + this.y += v.y * scalar; + this.z += v.z * scalar; + return this; + } + }, { + key: 'subtract', + value: function subtract(v) { + this.x -= v.x; + this.y -= v.y; + this.z -= v.z; + return this; + } + }, { + key: 'subtractScalar', + value: function subtractScalar(scalar) { + this.x -= scalar; + this.y -= scalar; + this.z -= scalar; + return this; + } + }, { + key: 'subtractScaledVector', + value: function subtractScaledVector(v, scalar) { + this.x -= v.x * scalar; + this.y -= v.y * scalar; + this.z -= v.z * scalar; + return this; + } + }, { + key: 'scale', + value: function scale(value) { + this.x *= value; + this.y *= value; + this.z *= value; + return this; + } + }, { + key: 'multiply', + value: function multiply(v) { + this.x *= v.x; + this.y *= v.y; + this.z *= v.z; + return this; + } + }, { + key: 'multiplyScaledVector', + value: function multiplyScaledVector(v, scalar) { + this.x *= v.x * scalar; + this.y *= v.y * scalar; + this.z *= v.z * scalar; + return this; + } + }, { + key: 'divide', + value: function divide(v) { + this.x /= v.x; + this.y /= v.y; + this.z /= v.z; + return this; + } + }, { + key: 'divideScaledVector', + value: function divideScaledVector(v, scalar) { + this.x /= v.x * scalar; + this.y /= v.y * scalar; + this.z /= v.z * scalar; + return this; + } + }, { + key: 'halve', + value: function halve() { + this.x *= 0.5; + this.y *= 0.5; + this.z *= 0.5; + return this; + } + }, { + key: 'max', + value: function max(v) { + this.x = Math.max(this.x, v.x); + this.y = Math.max(this.y, v.y); + this.z = Math.max(this.z, v.z); + return this; + } + }, { + key: 'min', + value: function min(v) { + this.x = Math.min(this.x, v.x); + this.y = Math.min(this.y, v.y); + this.z = Math.min(this.z, v.z); + return this; + } + }, { + key: 'maxScalar', + value: function maxScalar(scalar) { + this.x = Math.max(this.x, scalar); + this.y = Math.max(this.y, scalar); + this.z = Math.max(this.z, scalar); + return this; + } + }, { + key: 'minScalar', + value: function minScalar(scalar) { + this.x = Math.min(this.x, scalar); + this.y = Math.min(this.y, scalar); + this.z = Math.min(this.z, scalar); + return this; + } + }, { + key: 'normalize', + value: function normalize() { + var length = this.getMagnitude(); + if (length && length != 1) { + this.scale(1 / length); + } + return this; + } + }, { + key: 'absolute', + value: function absolute() { + this.x = Math.abs(this.x); + this.y = Math.abs(this.y); + this.z = Math.abs(this.z); + return this; + } + }, { + key: 'opposite', + value: function opposite() { + this.x = -this.x; + this.y = -this.y; + this.z = -this.z; + return this; + } + }, { + key: 'dotProduct', + value: function dotProduct(v) { + return this.x * v.x + this.y * v.y + this.z * v.z; + } + }, { + key: 'cross', + value: function cross(v) { + var x = this.x, + y = this.y, + z = this.z; + this.x = y * v.z - z * v.y; + this.y = z * v.x - x * v.z; + this.z = x * v.y - y * v.x; + return this; + } + }]); + + return Vector3; + }(); + + var Matrix3x3 = function () { + function Matrix3x3(x1, x2, x3, y1, y2, y3, t1, t2, t3) { + _classCallCheck$2(this, Matrix3x3); + + this.m = new Float32Array(9); + this.make(x1, x2, x3, y1, y2, y3, t1, t2, t3); + } + + _createClass$2(Matrix3x3, [{ + key: 'make', + value: function make(x1, x2, x3, y1, y2, y3, t1, t2, t3) { + this.m[0] = x1 || 0.0; + this.m[1] = x2 || 0.0; + this.m[2] = x3 || 0.0; + this.m[3] = y1 || 0.0; + this.m[4] = y2 || 0.0; + this.m[5] = y3 || 0.0; + this.m[6] = t1 || 0.0; + this.m[7] = t2 || 0.0; + this.m[8] = t3 || 0.0; + } + }, { + key: 'copy', + value: function copy(matrix3x3) { + var m = matrix3x3.m; + this.make(m[0], m[1], m[2], m[3], m[4], m[5], m[6], m[7], m[8]); + return this; + } + }, { + key: 'toArray', + value: function toArray() { + return this.m; + } + }, { + key: 'toString', + value: function toString() { + return '(' + this.m[0] + ',' + this.m[1] + ',' + this.m[2] + ';' + this.m[3] + ',' + this.m[4] + ',' + this.m[5] + ';' + this.m[6] + ',' + this.m[7] + ',' + this.m[8] + ')'; + } + }, { + key: 'identity', + value: function identity() { + this.make(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0); + return this; + } + }, { + key: 'scale', + value: function scale(vector2) { + this.make(vector2.x, 0.0, 0.0, 0.0, vector2.y, 0.0, 0.0, 0.0, 1.0); + return this; + } + }, { + key: 'rotate', + value: function rotate(angle) { + var cos = Trigonometry.cosine(angle); + var sin = Trigonometry.sine(angle); + this.make(cos, sin, 0.0, -sin, cos, 0.0, 0.0, 0.0, 1.0); + return this; + } + }, { + key: 'translate', + value: function translate(vector2) { + this.make(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, vector2.x, vector2.y, 1.0); + return this; + } + }, { + key: 'multiply', + value: function multiply(matrix3x3) { + var m1 = this.m; + var m2 = matrix3x3.m; + this.make(m1[0] * m2[0] + m1[3] * m2[1] + m1[6] * m2[2], m1[1] * m2[0] + m1[4] * m2[1] + m1[7] * m2[2], m1[2] * m2[0] + m1[5] * m2[1] + m1[8] * m2[2], m1[0] * m2[3] + m1[3] * m2[4] + m1[6] * m2[5], m1[1] * m2[3] + m1[4] * m2[4] + m1[7] * m2[5], m1[2] * m2[3] + m1[5] * m2[4] + m1[8] * m2[5], m1[0] * m2[6] + m1[3] * m2[7] + m1[6] * m2[8], m1[1] * m2[6] + m1[4] * m2[7] + m1[7] * m2[8], m1[2] * m2[6] + m1[5] * m2[7] + m1[8] * m2[8]); + return this; + } + }]); + + return Matrix3x3; + }(); + + var Matrix4x3 = function () { + function Matrix4x3(x1, x2, x3, y1, y2, y3, z1, z2, z3, t1, t2, t3) { + _classCallCheck$2(this, Matrix4x3); + + this.m = new Float32Array(16); + this.xAxis = new Vector3(); + this.yAxis = new Vector3(); + this.zAxis = new Vector3(); + this.make(x1, x2, x3, y1, y2, y3, z1, z2, z3, t1, t2, t3); + } + + _createClass$2(Matrix4x3, [{ + key: 'make', + value: function make(x1, x2, x3, y1, y2, y3, z1, z2, z3, t1, t2, t3) { + this.m[0] = x1 || 0.0; + this.m[1] = x2 || 0.0; + this.m[2] = x3 || 0.0; + this.m[3] = 0.0; + this.m[4] = y1 || 0.0; + this.m[5] = y2 || 0.0; + this.m[6] = y3 || 0.0; + this.m[7] = 0.0; + this.m[8] = z1 || 0.0; + this.m[9] = z2 || 0.0; + this.m[10] = z3 || 0.0; + this.m[11] = 0.0; + this.m[12] = t1 || 0.0; + this.m[13] = t2 || 0.0; + this.m[14] = t3 || 0.0; + this.m[15] = 1.0; + } + }, { + key: 'copy', + value: function copy(matrix4x3) { + var m = matrix4x3.m; + this.make(m[0], m[1], m[2], m[4], m[5], m[6], m[8], m[9], m[10], m[12], m[13], m[14]); + return this; + } + }, { + key: 'toArray', + value: function toArray() { + return this.m; + } + }, { + key: 'toString', + value: function toString() { + return '(' + this.m[0] + ',' + this.m[1] + ',' + this.m[2] + ',' + this.m[3] + ';' + this.m[4] + ',' + this.m[5] + ',' + this.m[6] + ',' + this.m[7] + ';' + this.m[8] + ',' + this.m[9] + ',' + this.m[10] + ',' + this.m[11] + ';' + this.m[12] + ',' + this.m[13] + ',' + this.m[14] + ',' + this.m[15] + ')'; + } + }, { + key: 'identity', + value: function identity() { + this.make(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0); + return this; + } + }, { + key: 'scale', + value: function scale(vector3) { + this.make(vector3.x, 0.0, 0.0, 0.0, vector3.y, 0.0, 0.0, 0.0, vector3.z, 0.0, 0.0, 0.0); + return this; + } + }, { + key: 'rotateX', + value: function rotateX(angle) { + var cos = Trigonometry.cosine(angle); + var sin = Trigonometry.sine(angle); + this.make(1.0, 0.0, 0.0, 0.0, cos, sin, 0.0, -sin, cos, 0.0, 0.0, 0.0); + return this; + } + }, { + key: 'rotateY', + value: function rotateY(angle) { + var cos = Trigonometry.cosine(angle); + var sin = Trigonometry.sine(angle); + this.make(cos, 0.0, -sin, 0.0, 1.0, 0.0, sin, 0.0, cos, 0.0, 0.0, 0.0); + return this; + } + }, { + key: 'rotateZ', + value: function rotateZ(angle) { + var cos = Trigonometry.cosine(angle); + var sin = Trigonometry.sine(angle); + this.make(cos, sin, 0.0, -sin, cos, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0); + return this; + } + }, { + key: 'translate', + value: function translate(vector3) { + this.make(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, vector3.x, vector3.y, vector3.z); + return this; + } + }, { + key: 'multiply', + value: function multiply(matrix4x3) { + var m1 = this.m; + var m2 = matrix4x3.m; + this.make(m1[0] * m2[0] + m1[4] * m2[1] + m1[8] * m2[2], m1[1] * m2[0] + m1[5] * m2[1] + m1[9] * m2[2], m1[2] * m2[0] + m1[6] * m2[1] + m1[10] * m2[2], m1[0] * m2[4] + m1[4] * m2[5] + m1[8] * m2[6], m1[1] * m2[4] + m1[5] * m2[5] + m1[9] * m2[6], m1[2] * m2[4] + m1[6] * m2[5] + m1[10] * m2[6], m1[0] * m2[8] + m1[4] * m2[9] + m1[8] * m2[10], m1[1] * m2[8] + m1[5] * m2[9] + m1[9] * m2[10], m1[2] * m2[8] + m1[6] * m2[9] + m1[10] * m2[10], m1[0] * m2[12] + m1[4] * m2[13] + m1[8] * m2[14] + m1[12], m1[1] * m2[12] + m1[5] * m2[13] + m1[9] * m2[14] + m1[13], m1[2] * m2[12] + m1[6] * m2[13] + m1[10] * m2[14] + m1[14]); + return this; + } + }, { + key: 'lookAtRH', + value: function lookAtRH(eye, target, up) { + this.zAxis.copy(eye).subtract(target).normalize(); + this.xAxis.copy(up).cross(this.zAxis).normalize(); + this.yAxis.copy(this.zAxis).cross(this.xAxis); + this.make(this.xAxis.x, this.yAxis.x, this.zAxis.x, this.xAxis.y, this.yAxis.y, this.zAxis.y, this.xAxis.z, this.yAxis.z, this.zAxis.z, -this.xAxis.dotProduct(eye), -this.yAxis.dotProduct(eye), -this.zAxis.dotProduct(eye)); + return this; + } + }]); + + return Matrix4x3; + }(); + + var Matrix4x4 = function () { + function Matrix4x4(x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4, t1, t2, t3, t4) { + _classCallCheck$2(this, Matrix4x4); + + this.m = new Float32Array(16); + this.make(x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4, t1, t2, t3, t4); + } + + _createClass$2(Matrix4x4, [{ + key: 'make', + value: function make(x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4, t1, t2, t3, t4) { + this.m[0] = x1 || 0.0; + this.m[1] = x2 || 0.0; + this.m[2] = x3 || 0.0; + this.m[3] = x4 || 0.0; + this.m[4] = y1 || 0.0; + this.m[5] = y2 || 0.0; + this.m[6] = y3 || 0.0; + this.m[7] = y4 || 0.0; + this.m[8] = z1 || 0.0; + this.m[9] = z2 || 0.0; + this.m[10] = z3 || 0.0; + this.m[11] = z4 || 0.0; + this.m[12] = t1 || 0.0; + this.m[13] = t2 || 0.0; + this.m[14] = t3 || 0.0; + this.m[15] = t4 || 0.0; + } + }, { + key: 'copy', + value: function copy(matrix4x4) { + var m = matrix4x4.m; + this.make(m[0], m[1], m[2], m[3], m[4], m[5], m[6], m[7], m[8], m[9], m[10], m[11], m[12], m[13], m[14], m[15]); + return this; + } + }, { + key: 'toArray', + value: function toArray() { + return this.m; + } + }, { + key: 'toString', + value: function toString() { + return '(' + this.m[0] + ',' + this.m[1] + ',' + this.m[2] + ',' + this.m[3] + ';' + this.m[4] + ',' + this.m[5] + ',' + this.m[6] + ',' + this.m[7] + ';' + this.m[8] + ',' + this.m[9] + ',' + this.m[10] + ',' + this.m[11] + ';' + this.m[12] + ',' + this.m[13] + ',' + this.m[14] + ',' + this.m[15] + ')'; + } + }, { + key: 'identity', + value: function identity() { + this.make(1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0); + return this; + } + }, { + key: 'scale', + value: function scale(vector3) { + this.make(vector3.x, 0.0, 0.0, 0.0, 0.0, vector3.y, 0.0, 0.0, 0.0, 0.0, vector3.z, 0.0, 0.0, 0.0, 0.0, 1.0); + return this; + } + }, { + key: 'rotateX', + value: function rotateX(angle) { + var cos = Trigonometry.cosine(angle); + var sin = Trigonometry.sine(angle); + this.make(1.0, 0.0, 0.0, 0.0, 0.0, cos, sin, 0.0, 0.0, -sin, cos, 0.0, 0.0, 0.0, 0.0, 1.0); + return this; + } + }, { + key: 'rotateY', + value: function rotateY(angle) { + var cos = Trigonometry.cosine(angle); + var sin = Trigonometry.sine(angle); + this.make(cos, 0.0, -sin, 0.0, 0.0, 1.0, 0.0, 0.0, sin, 0.0, cos, 0.0, 0.0, 0.0, 0.0, 1.0); + return this; + } + }, { + key: 'rotateZ', + value: function rotateZ(angle) { + var cos = Trigonometry.cosine(angle); + var sin = Trigonometry.sine(angle); + this.make(cos, sin, 0.0, 0.0, -sin, cos, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0); + return this; + } + }, { + key: 'translate', + value: function translate(vector3) { + this.make(1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, vector3.x, vector3.y, vector3.z, 1.0); + return this; + } + }, { + key: 'multiply', + value: function multiply(matrix4x4) { + var m1 = this.m; + var m2 = matrix4x4.m; + this.make(m1[0] * m2[0] + m1[4] * m2[1] + m1[8] * m2[2], m1[1] * m2[0] + m1[5] * m2[1] + m1[9] * m2[2], m1[2] * m2[0] + m1[6] * m2[1] + m1[10] * m2[2], 0.0, m1[0] * m2[4] + m1[4] * m2[5] + m1[8] * m2[6], m1[1] * m2[4] + m1[5] * m2[5] + m1[9] * m2[6], m1[2] * m2[4] + m1[6] * m2[5] + m1[10] * m2[6], 0.0, m1[0] * m2[8] + m1[4] * m2[9] + m1[8] * m2[10], m1[1] * m2[8] + m1[5] * m2[9] + m1[9] * m2[10], m1[2] * m2[8] + m1[6] * m2[9] + m1[10] * m2[10], 0.0, m1[0] * m2[12] + m1[4] * m2[13] + m1[8] * m2[14] + m1[12], m1[1] * m2[12] + m1[5] * m2[13] + m1[9] * m2[14] + m1[13], m1[2] * m2[12] + m1[6] * m2[13] + m1[10] * m2[14] + m1[14], 1.0); + return this; + } + }, { + key: 'perspective', + value: function perspective(fovy, aspect, znear, zfar) { + var f = Math.tan(Trigonometry.halfpi - 0.5 * fovy * Trigonometry.pi / 180); + var rangeInv = 1.0 / (znear - zfar); + this.make(f / aspect, 0.0, 0.0, 0.0, 0.0, f, 0.0, 0.0, 0.0, 0.0, (znear + zfar) * rangeInv, -1.0, 0.0, 0.0, znear * zfar * rangeInv * 2, 0.0); + return this; + } + }, { + key: 'orthographic', + value: function orthographic(left, right, top, bottom, near, far) { + var w = right - left; + var h = top - bottom; + var p = far - near; + var x = (right + left) / w; + var y = (top + bottom) / h; + var z = (far + near) / p; + this.make(2 / w, 0.0, 0.0, 0.0, 0.0, 2 / h, 0.0, 0.0, 0.0, 0.0, -2 / p, 0.0, -x, -y, -z, 1.0); + return this; + } + }]); + + return Matrix4x4; + }(); + + var _createClass$3 = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + function _toConsumableArray$1(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } + + function _classCallCheck$3(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + /** MIT License + * + * Copyright (c) 2011 Ludovic CLUBER + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * http://type6js.lcluber.com + */ + + var Utils$1 = function () { + function Utils() { + _classCallCheck$3(this, Utils); + } + + _createClass$3(Utils, null, [{ + key: 'round', + value: function round(x, decimals) { + decimals = Math.pow(10, decimals); + return Math.round(x * decimals) / decimals; + } + }, { + key: 'floor', + value: function floor(x, decimals) { + decimals = Math.pow(10, decimals); + return Math.floor(x * decimals) / decimals; + } + }, { + key: 'ceil', + value: function ceil(x, decimals) { + decimals = Math.pow(10, decimals); + return Math.ceil(x * decimals) / decimals; + } + }, { + key: 'trunc', + value: function trunc(x, decimals) { + decimals = Math.pow(10, decimals); + var v = +x * decimals; + if (!isFinite(v)) { + return v; + } + return (v - v % 1) / decimals || (v < 0 ? -0 : v === 0 ? v : 0); + } + }, { + key: 'roundToNearest', + value: function roundToNearest(x, nearest) { + return Math.round(x / nearest) * nearest; + } + }, { + key: 'mix', + value: function mix(x, y, ratio) { + return (1 - ratio) * x + ratio * y; + } }, { key: 'sign', value: function sign(x) { @@ -778,12 +2303,12 @@ var Orbis = (function (exports) { return Utils; }(); - var Trigonometry = function () { + var Trigonometry$1 = function () { function Trigonometry() { - _classCallCheck$2(this, Trigonometry); + _classCallCheck$3(this, Trigonometry); } - _createClass$2(Trigonometry, null, [{ + _createClass$3(Trigonometry, null, [{ key: 'init', value: function init() { Trigonometry.createRoundedPis(); @@ -793,9 +2318,9 @@ var Orbis = (function (exports) { key: 'createRoundedPis', value: function createRoundedPis() { var decimals = 2; - this.pi = Utils.round(Math.PI, decimals); - this.twopi = Utils.round(Math.PI * 2, decimals); - this.halfpi = Utils.round(Math.PI * 0.5, decimals); + this.pi = Utils$1.round(Math.PI, decimals); + this.twopi = Utils$1.round(Math.PI * 2, decimals); + this.halfpi = Utils$1.round(Math.PI * 0.5, decimals); } }, { key: 'createFactorialArray', @@ -950,7 +2475,7 @@ var Orbis = (function (exports) { x *= squaredAngle; denominator = needFactorial ? this.factorialArray[start] : start; result += x / denominator * sign; - sign = Utils.opposite(sign); + sign = Utils$1.opposite(sign); } return result; } @@ -959,21 +2484,21 @@ var Orbis = (function (exports) { return Trigonometry; }(); - Trigonometry.sineLoops = [9, 11, 13, 15, 17, 18, 19, 21, 23]; - Trigonometry.cosineLoops = [6, 8, 10, 12, 14, 16, 18, 20, 22]; - Trigonometry.arctanLoops = [17, 19, 21, 23, 25, 27, 29, 31, 33]; - Trigonometry.sineDecimals = 2; - Trigonometry.cosineDecimals = 2; - Trigonometry.arctanDecimals = 2; - Trigonometry.factorialArray = []; - Trigonometry.init(); + Trigonometry$1.sineLoops = [9, 11, 13, 15, 17, 18, 19, 21, 23]; + Trigonometry$1.cosineLoops = [6, 8, 10, 12, 14, 16, 18, 20, 22]; + Trigonometry$1.arctanLoops = [17, 19, 21, 23, 25, 27, 29, 31, 33]; + Trigonometry$1.sineDecimals = 2; + Trigonometry$1.cosineDecimals = 2; + Trigonometry$1.arctanDecimals = 2; + Trigonometry$1.factorialArray = []; + Trigonometry$1.init(); - var Time = function () { + var Time$1 = function () { function Time() { - _classCallCheck$2(this, Time); + _classCallCheck$3(this, Time); } - _createClass$2(Time, null, [{ + _createClass$3(Time, null, [{ key: 'millisecondToSecond', value: function millisecondToSecond(millisecond) { return millisecond * 0.001; @@ -998,12 +2523,12 @@ var Orbis = (function (exports) { return Time; }(); - var Random = function () { + var Random$1 = function () { function Random() { - _classCallCheck$2(this, Random); + _classCallCheck$3(this, Random); } - _createClass$2(Random, null, [{ + _createClass$3(Random, null, [{ key: 'float', value: function float(min, max) { return min + Math.random() * (max - min); @@ -1032,20 +2557,20 @@ var Orbis = (function (exports) { return Random; }(); - var NumArray = function () { + var NumArray$1 = function () { function NumArray() { - _classCallCheck$2(this, NumArray); + _classCallCheck$3(this, NumArray); } - _createClass$2(NumArray, null, [{ + _createClass$3(NumArray, null, [{ key: 'min', value: function min(array) { - return Math.min.apply(Math, _toConsumableArray(array)); + return Math.min.apply(Math, _toConsumableArray$1(array)); } }, { key: 'max', value: function max(array) { - return Math.max.apply(Math, _toConsumableArray(array)); + return Math.max.apply(Math, _toConsumableArray$1(array)); } }, { key: 'sum', @@ -1071,12 +2596,12 @@ var Orbis = (function (exports) { return NumArray; }(); - var Bezier = function () { + var Bezier$1 = function () { function Bezier() { - _classCallCheck$2(this, Bezier); + _classCallCheck$3(this, Bezier); } - _createClass$2(Bezier, null, [{ + _createClass$3(Bezier, null, [{ key: 'quadratic', value: function quadratic(p0, p1, p2, t) { var oneMinusT = 1 - t; @@ -1094,33 +2619,33 @@ var Orbis = (function (exports) { return Bezier; }(); - var Vector2 = function () { + var Vector2$1 = function () { function Vector2(x, y) { - _classCallCheck$2(this, Vector2); + _classCallCheck$3(this, Vector2); this.x = x || 0.0; this.y = y || 0.0; } - _createClass$2(Vector2, [{ + _createClass$3(Vector2, [{ key: 'isOrigin', value: function isOrigin() { - return Utils.isOrigin(this.x) && Utils.isOrigin(this.y) ? true : false; + return Utils$1.isOrigin(this.x) && Utils$1.isOrigin(this.y) ? true : false; } }, { key: 'isNotOrigin', value: function isNotOrigin() { - return !Utils.isOrigin(this.x) || !Utils.isOrigin(this.y) ? true : false; + return !Utils$1.isOrigin(this.x) || !Utils$1.isOrigin(this.y) ? true : false; } }, { key: 'isPositive', value: function isPositive() { - return Utils.isPositive(this.x) && Utils.isPositive(this.y) ? true : false; + return Utils$1.isPositive(this.x) && Utils$1.isPositive(this.y) ? true : false; } }, { key: 'isNegative', value: function isNegative() { - return Utils.isNegative(this.x) && Utils.isNegative(this.y) ? true : false; + return Utils$1.isNegative(this.x) && Utils$1.isNegative(this.y) ? true : false; } }, { key: 'fromArray', @@ -1173,8 +2698,8 @@ var Orbis = (function (exports) { value: function setAngle(angle) { if (angle) { var length = this.getMagnitude(); - this.x = Trigonometry.cosine(angle) * length; - this.y = Trigonometry.sine(angle) * length; + this.x = Trigonometry$1.cosine(angle) * length; + this.y = Trigonometry$1.sine(angle) * length; } return this; } @@ -1212,15 +2737,15 @@ var Orbis = (function (exports) { }, { key: 'quadraticBezier', value: function quadraticBezier(p0, p1, p2, t) { - this.x = Bezier.quadratic(p0.x, p1.x, p2.x, t); - this.y = Bezier.quadratic(p0.y, p1.y, p2.y, t); + this.x = Bezier$1.quadratic(p0.x, p1.x, p2.x, t); + this.y = Bezier$1.quadratic(p0.y, p1.y, p2.y, t); return this; } }, { key: 'cubicBezier', value: function cubicBezier(p0, p1, p2, p3, t) { - this.x = Bezier.cubic(p0.x, p1.x, p2.x, p3.x, t); - this.y = Bezier.cubic(p0.y, p1.y, p2.y, p3.y, t); + this.x = Bezier$1.cubic(p0.x, p1.x, p2.x, p3.x, t); + this.y = Bezier$1.cubic(p0.y, p1.y, p2.y, p3.y, t); return this; } }, { @@ -1436,15 +2961,15 @@ var Orbis = (function (exports) { }, { key: 'clamp', value: function clamp(rectangle) { - this.x = Utils.clamp(this.x, rectangle.topLeftCorner.x, rectangle.bottomRightCorner.x); - this.y = Utils.clamp(this.y, rectangle.topLeftCorner.y, rectangle.bottomRightCorner.y); + this.x = Utils$1.clamp(this.x, rectangle.topLeftCorner.x, rectangle.bottomRightCorner.x); + this.y = Utils$1.clamp(this.y, rectangle.topLeftCorner.y, rectangle.bottomRightCorner.y); return this; } }, { key: 'lerp', value: function lerp(normal, min, max) { - this.x = Utils.lerp(normal, min.x, max.x); - this.y = Utils.lerp(normal, min.y, max.y); + this.x = Utils$1.lerp(normal, min.x, max.x); + this.y = Utils$1.lerp(normal, min.y, max.y); return this; } }, { @@ -1457,18 +2982,18 @@ var Orbis = (function (exports) { return Vector2; }(); - var Circle = function () { + var Circle$1 = function () { function Circle(positionX, positionY, radius) { - _classCallCheck$2(this, Circle); + _classCallCheck$3(this, Circle); this.shape = 'circle'; this._radius = 0.0; this._diameter = 0.0; - this.position = new Vector2(positionX, positionY); + this.position = new Vector2$1(positionX, positionY); this.radius = radius; } - _createClass$2(Circle, [{ + _createClass$3(Circle, [{ key: 'clone', value: function clone() { return new Circle(this.position.x, this.position.y, this.radius); @@ -1509,7 +3034,7 @@ var Orbis = (function (exports) { key: 'draw', value: function draw(context, fillColor, strokeColor, strokeWidth) { context.beginPath(); - context.arc(this.position.x, this.position.y, this.radius, 0, Trigonometry.twopi, false); + context.arc(this.position.x, this.position.y, this.radius, 0, Trigonometry$1.twopi, false); if (fillColor) { context.fillStyle = fillColor; context.fill(); @@ -1543,20 +3068,20 @@ var Orbis = (function (exports) { return Circle; }(); - var Rectangle = function () { + var Rectangle$1 = function () { function Rectangle(positionX, positionY, sizeX, sizeY) { - _classCallCheck$2(this, Rectangle); + _classCallCheck$3(this, Rectangle); this.shape = 'aabb'; - this.size = new Vector2(sizeX, sizeY); - this.halfSize = new Vector2(); + this.size = new Vector2$1(sizeX, sizeY); + this.halfSize = new Vector2$1(); this.setHalfSize(); - this.position = new Vector2(positionX, positionY); - this.topLeftCorner = new Vector2(positionX - this.halfSize.x, positionY - this.halfSize.y); - this.bottomRightCorner = new Vector2(positionX + this.halfSize.x, positionY + this.halfSize.y); + this.position = new Vector2$1(positionX, positionY); + this.topLeftCorner = new Vector2$1(positionX - this.halfSize.x, positionY - this.halfSize.y); + this.bottomRightCorner = new Vector2$1(positionX + this.halfSize.x, positionY + this.halfSize.y); } - _createClass$2(Rectangle, [{ + _createClass$3(Rectangle, [{ key: 'clone', value: function clone() { return new Rectangle(this.position.x, this.position.y, this.size.x, this.size.y); @@ -1649,7 +3174,7 @@ var Orbis = (function (exports) { }, { key: 'contains', value: function contains(vector) { - return Utils.contains(vector.x, this.topLeftCorner.x, this.bottomRightCorner.x) && Utils.contains(vector.y, this.topLeftCorner.y, this.bottomRightCorner.y); + return Utils$1.contains(vector.x, this.topLeftCorner.x, this.bottomRightCorner.x) && Utils$1.contains(vector.y, this.topLeftCorner.y, this.bottomRightCorner.y); } }, { key: 'draw', @@ -1671,16 +3196,16 @@ var Orbis = (function (exports) { return Rectangle; }(); - var Vector3 = function () { + var Vector3$1 = function () { function Vector3(x, y, z) { - _classCallCheck$2(this, Vector3); + _classCallCheck$3(this, Vector3); this.x = x || 0.0; this.y = y || 0.0; this.z = z || 0.0; } - _createClass$2(Vector3, [{ + _createClass$3(Vector3, [{ key: 'fromArray', value: function fromArray(array, offset) { if (offset === undefined) { @@ -1960,18 +3485,18 @@ var Orbis = (function (exports) { return Vector3; }(); - var Matrix4x3 = function () { + var Matrix4x3$1 = function () { function Matrix4x3(x1, x2, x3, y1, y2, y3, z1, z2, z3, t1, t2, t3) { - _classCallCheck$2(this, Matrix4x3); + _classCallCheck$3(this, Matrix4x3); this.m = new Float32Array(16); - this.xAxis = new Vector3(); - this.yAxis = new Vector3(); - this.zAxis = new Vector3(); + this.xAxis = new Vector3$1(); + this.yAxis = new Vector3$1(); + this.zAxis = new Vector3$1(); this.make(x1, x2, x3, y1, y2, y3, z1, z2, z3, t1, t2, t3); } - _createClass$2(Matrix4x3, [{ + _createClass$3(Matrix4x3, [{ key: 'make', value: function make(x1, x2, x3, y1, y2, y3, z1, z2, z3, t1, t2, t3) { this.m[0] = x1 || 0.0; @@ -2023,24 +3548,24 @@ var Orbis = (function (exports) { }, { key: 'rotateX', value: function rotateX(angle) { - var cos = Trigonometry.cosine(angle); - var sin = Trigonometry.sine(angle); + var cos = Trigonometry$1.cosine(angle); + var sin = Trigonometry$1.sine(angle); this.make(1.0, 0.0, 0.0, 0.0, cos, sin, 0.0, -sin, cos, 0.0, 0.0, 0.0); return this; } }, { key: 'rotateY', value: function rotateY(angle) { - var cos = Trigonometry.cosine(angle); - var sin = Trigonometry.sine(angle); + var cos = Trigonometry$1.cosine(angle); + var sin = Trigonometry$1.sine(angle); this.make(cos, 0.0, -sin, 0.0, 1.0, 0.0, sin, 0.0, cos, 0.0, 0.0, 0.0); return this; } }, { key: 'rotateZ', value: function rotateZ(angle) { - var cos = Trigonometry.cosine(angle); - var sin = Trigonometry.sine(angle); + var cos = Trigonometry$1.cosine(angle); + var sin = Trigonometry$1.sine(angle); this.make(cos, sin, 0.0, -sin, cos, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0); return this; } @@ -2072,15 +3597,15 @@ var Orbis = (function (exports) { return Matrix4x3; }(); - var Matrix4x4 = function () { + var Matrix4x4$1 = function () { function Matrix4x4(x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4, t1, t2, t3, t4) { - _classCallCheck$2(this, Matrix4x4); + _classCallCheck$3(this, Matrix4x4); this.m = new Float32Array(16); this.make(x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4, t1, t2, t3, t4); } - _createClass$2(Matrix4x4, [{ + _createClass$3(Matrix4x4, [{ key: 'make', value: function make(x1, x2, x3, x4, y1, y2, y3, y4, z1, z2, z3, z4, t1, t2, t3, t4) { this.m[0] = x1 || 0.0; @@ -2132,24 +3657,24 @@ var Orbis = (function (exports) { }, { key: 'rotateX', value: function rotateX(angle) { - var cos = Trigonometry.cosine(angle); - var sin = Trigonometry.sine(angle); + var cos = Trigonometry$1.cosine(angle); + var sin = Trigonometry$1.sine(angle); this.make(1.0, 0.0, 0.0, 0.0, 0.0, cos, sin, 0.0, 0.0, -sin, cos, 0.0, 0.0, 0.0, 0.0, 1.0); return this; } }, { key: 'rotateY', value: function rotateY(angle) { - var cos = Trigonometry.cosine(angle); - var sin = Trigonometry.sine(angle); + var cos = Trigonometry$1.cosine(angle); + var sin = Trigonometry$1.sine(angle); this.make(cos, 0.0, -sin, 0.0, 0.0, 1.0, 0.0, 0.0, sin, 0.0, cos, 0.0, 0.0, 0.0, 0.0, 1.0); return this; } }, { key: 'rotateZ', value: function rotateZ(angle) { - var cos = Trigonometry.cosine(angle); - var sin = Trigonometry.sine(angle); + var cos = Trigonometry$1.cosine(angle); + var sin = Trigonometry$1.sine(angle); this.make(cos, sin, 0.0, 0.0, -sin, cos, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0); return this; } @@ -2170,7 +3695,7 @@ var Orbis = (function (exports) { }, { key: 'perspective', value: function perspective(fovy, aspect, znear, zfar) { - var f = Math.tan(Trigonometry.halfpi - 0.5 * fovy * Trigonometry.pi / 180); + var f = Math.tan(Trigonometry$1.halfpi - 0.5 * fovy * Trigonometry$1.pi / 180); var rangeInv = 1.0 / (znear - zfar); this.make(f / aspect, 0.0, 0.0, 0.0, 0.0, f, 0.0, 0.0, 0.0, 0.0, (znear + zfar) * rangeInv, -1.0, 0.0, 0.0, znear * zfar * rangeInv * 2, 0.0); return this; @@ -2192,9 +3717,9 @@ var Orbis = (function (exports) { return Matrix4x4; }(); - var _createClass$3 = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + var _createClass$4 = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - function _classCallCheck$3(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + function _classCallCheck$4(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /** MIT License * @@ -2241,7 +3766,7 @@ var Orbis = (function (exports) { var Message$1 = function () { function Message(level, content) { - _classCallCheck$3(this, Message); + _classCallCheck$4(this, Message); this.id = level.id; this.name = level.name; @@ -2250,7 +3775,7 @@ var Orbis = (function (exports) { this.date = formatDate$1(); } - _createClass$3(Message, [{ + _createClass$4(Message, [{ key: 'display', value: function display(groupName) { console[this.name]('%c[' + groupName + '] ' + this.date + ' : ', 'color:' + this.color + ';', this.content); @@ -2262,7 +3787,7 @@ var Orbis = (function (exports) { var Group$1 = function () { function Group(name, level) { - _classCallCheck$3(this, Group); + _classCallCheck$4(this, Group); this.messages = []; this.name = name; @@ -2270,7 +3795,7 @@ var Orbis = (function (exports) { this._level = level; } - _createClass$3(Group, [{ + _createClass$4(Group, [{ key: 'info', value: function info(message) { this.log(LEVELS$1.info, message); @@ -2314,10 +3839,10 @@ var Orbis = (function (exports) { var Logger$1 = function () { function Logger() { - _classCallCheck$3(this, Logger); + _classCallCheck$4(this, Logger); } - _createClass$3(Logger, null, [{ + _createClass$4(Logger, null, [{ key: 'setLevel', value: function setLevel(name) { Logger.level = LEVELS$1.hasOwnProperty(name) ? LEVELS$1[name] : Logger.level; @@ -2403,7 +3928,7 @@ var Orbis = (function (exports) { Logger$1.level = LEVELS$1.error; Logger$1.groups = []; - function _classCallCheck$4(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + function _classCallCheck$5(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /** MIT License * @@ -2433,7 +3958,7 @@ var Orbis = (function (exports) { var FSM = function FSM(events) { var _this = this; - _classCallCheck$4(this, FSM); + _classCallCheck$5(this, FSM); this.state = events[0].from; this.log = Logger$1.addGroup('Taipan'); @@ -2494,9 +4019,9 @@ var Orbis = (function (exports) { return isInteger$1(number) || isFloat$1(number); } - var _createClass$4 = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + var _createClass$5 = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - function _classCallCheck$5(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + function _classCallCheck$6(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /** MIT License * @@ -2525,14 +4050,14 @@ var Orbis = (function (exports) { var Clock = function () { function Clock() { - _classCallCheck$5(this, Clock); + _classCallCheck$6(this, Clock); this.fpsArrayLength = 60; this.fpsArray = Array(this.fpsArrayLength); this.reset(); } - _createClass$4(Clock, [{ + _createClass$5(Clock, [{ key: 'reset', value: function reset() { this.now = 0; @@ -2551,7 +4076,7 @@ var Orbis = (function (exports) { value: function tick(now) { this.now = now; this.total += this.delta; - this.fpsArray[this.ticks % 60] = Time.millisecondToFramePerSecond(this.delta); + this.fpsArray[this.ticks % 60] = Time$1.millisecondToFramePerSecond(this.delta); this.ticks++; } }, { @@ -2562,7 +4087,7 @@ var Orbis = (function (exports) { }, { key: 'computeAverageFPS', value: function computeAverageFPS() { - return NumArray.average(this.fpsArray, this.fpsArrayLength); + return NumArray$1.average(this.fpsArray, this.fpsArrayLength); } }]); @@ -2571,7 +4096,7 @@ var Orbis = (function (exports) { var Player = function () { function Player(callback) { - _classCallCheck$5(this, Player); + _classCallCheck$6(this, Player); this.frameId = 0; this.minDelta = 0; @@ -2580,20 +4105,20 @@ var Orbis = (function (exports) { this.fsm = new FSM([{ name: 'play', from: false, to: true }, { name: 'stop', from: true, to: false }]); } - _createClass$4(Player, [{ + _createClass$5(Player, [{ key: 'setMaxRefreshRate', value: function setMaxRefreshRate(maxFPS) { - this.minDelta = isNumber$1(maxFPS) ? Time.framePerSecondToMillisecond(maxFPS) : this.minDelta; + this.minDelta = isNumber$1(maxFPS) ? Time$1.framePerSecondToMillisecond(maxFPS) : this.minDelta; } }, { key: 'getDelta', value: function getDelta() { - return Time.millisecondToSecond(this.clock.delta); + return Time$1.millisecondToSecond(this.clock.delta); } }, { key: 'getTotal', value: function getTotal() { - return Time.millisecondToSecond(this.clock.total); + return Time$1.millisecondToSecond(this.clock.total); } }, { key: 'getFPS', @@ -2752,7 +4277,7 @@ var Orbis = (function (exports) { return Progress; }(); - function _classCallCheck$6(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + function _classCallCheck$7(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /** MIT License * @@ -2782,7 +4307,7 @@ var Orbis = (function (exports) { var FSM$1 = function FSM(events) { var _this = this; - _classCallCheck$6(this, FSM); + _classCallCheck$7(this, FSM); this.state = events[0].from; this.log = Logger.addGroup('Taipan'); @@ -5499,68 +7024,334 @@ var Orbis = (function (exports) { /** PURE_IMPORTS_START PURE_IMPORTS_END */ - var _createClass$5 = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + /** + * @this {Promise} + */ + function finallyConstructor(callback) { + var constructor = this.constructor; + return this.then(function (value) { + // @ts-ignore + return constructor.resolve(callback()).then(function () { + return value; + }); + }, function (reason) { + // @ts-ignore + return constructor.resolve(callback()).then(function () { + // @ts-ignore + return constructor.reject(reason); + }); + }); + } - function _classCallCheck$7(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var _typeof$8 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - /** MIT License - * - * Copyright (c) 2010 Ludovic CLUBER - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - * https://github.com/LCluber/Aias.js - */ + // Store setTimeout reference so promise-polyfill will be unaffected by + // other code modifying setTimeout (like sinon.useFakeTimers()) + var setTimeoutFunc = setTimeout; + + function isArray$4(x) { + return Boolean(x && typeof x.length !== 'undefined'); + } + + function noop$1() {} + + // Polyfill for Function.prototype.bind + function bind(fn, thisArg) { + return function () { + fn.apply(thisArg, arguments); + }; + } + + /** + * @constructor + * @param {Function} fn + */ + function Promise$1(fn) { + if (!(this instanceof Promise$1)) throw new TypeError('Promises must be constructed via new'); + if (typeof fn !== 'function') throw new TypeError('not a function'); + /** @type {!number} */ + this._state = 0; + /** @type {!boolean} */ + this._handled = false; + /** @type {Promise|undefined} */ + this._value = undefined; + /** @type {!Array} */ + this._deferreds = []; + + doResolve(fn, this); + } + + function handle(self, deferred) { + while (self._state === 3) { + self = self._value; + } + if (self._state === 0) { + self._deferreds.push(deferred); + return; + } + self._handled = true; + Promise$1._immediateFn(function () { + var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected; + if (cb === null) { + (self._state === 1 ? resolve : reject)(deferred.promise, self._value); + return; + } + var ret; + try { + ret = cb(self._value); + } catch (e) { + reject(deferred.promise, e); + return; + } + resolve(deferred.promise, ret); + }); + } + + function resolve(self, newValue) { + try { + // Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure + if (newValue === self) throw new TypeError('A promise cannot be resolved with itself.'); + if (newValue && ((typeof newValue === 'undefined' ? 'undefined' : _typeof$8(newValue)) === 'object' || typeof newValue === 'function')) { + var then = newValue.then; + if (newValue instanceof Promise$1) { + self._state = 3; + self._value = newValue; + finale(self); + return; + } else if (typeof then === 'function') { + doResolve(bind(then, newValue), self); + return; + } + } + self._state = 1; + self._value = newValue; + finale(self); + } catch (e) { + reject(self, e); + } + } + + function reject(self, newValue) { + self._state = 2; + self._value = newValue; + finale(self); + } + + function finale(self) { + if (self._state === 2 && self._deferreds.length === 0) { + Promise$1._immediateFn(function () { + if (!self._handled) { + Promise$1._unhandledRejectionFn(self._value); + } + }); + } + + for (var i = 0, len = self._deferreds.length; i < len; i++) { + handle(self, self._deferreds[i]); + } + self._deferreds = null; + } + + /** + * @constructor + */ + function Handler(onFulfilled, onRejected, promise) { + this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null; + this.onRejected = typeof onRejected === 'function' ? onRejected : null; + this.promise = promise; + } + + /** + * Take a potentially misbehaving resolver function and make sure + * onFulfilled and onRejected are only called once. + * + * Makes no guarantees about asynchrony. + */ + function doResolve(fn, self) { + var done = false; + try { + fn(function (value) { + if (done) return; + done = true; + resolve(self, value); + }, function (reason) { + if (done) return; + done = true; + reject(self, reason); + }); + } catch (ex) { + if (done) return; + done = true; + reject(self, ex); + } + } + + Promise$1.prototype['catch'] = function (onRejected) { + return this.then(null, onRejected); + }; + + Promise$1.prototype.then = function (onFulfilled, onRejected) { + // @ts-ignore + var prom = new this.constructor(noop$1); + + handle(this, new Handler(onFulfilled, onRejected, prom)); + return prom; + }; + + Promise$1.prototype['finally'] = finallyConstructor; + + Promise$1.all = function (arr) { + return new Promise$1(function (resolve, reject) { + if (!isArray$4(arr)) { + return reject(new TypeError('Promise.all accepts an array')); + } + + var args = Array.prototype.slice.call(arr); + if (args.length === 0) return resolve([]); + var remaining = args.length; + + function res(i, val) { + try { + if (val && ((typeof val === 'undefined' ? 'undefined' : _typeof$8(val)) === 'object' || typeof val === 'function')) { + var then = val.then; + if (typeof then === 'function') { + then.call(val, function (val) { + res(i, val); + }, reject); + return; + } + } + args[i] = val; + if (--remaining === 0) { + resolve(args); + } + } catch (ex) { + reject(ex); + } + } + + for (var i = 0; i < args.length; i++) { + res(i, args[i]); + } + }); + }; + + Promise$1.resolve = function (value) { + if (value && (typeof value === 'undefined' ? 'undefined' : _typeof$8(value)) === 'object' && value.constructor === Promise$1) { + return value; + } + + return new Promise$1(function (resolve) { + resolve(value); + }); + }; + + Promise$1.reject = function (value) { + return new Promise$1(function (resolve, reject) { + reject(value); + }); + }; + + Promise$1.race = function (arr) { + return new Promise$1(function (resolve, reject) { + if (!isArray$4(arr)) { + return reject(new TypeError('Promise.race accepts an array')); + } + + for (var i = 0, len = arr.length; i < len; i++) { + Promise$1.resolve(arr[i]).then(resolve, reject); + } + }); + }; + + // Use polyfill for setImmediate for performance gains + Promise$1._immediateFn = + // @ts-ignore + typeof setImmediate === 'function' && function (fn) { + // @ts-ignore + setImmediate(fn); + } || function (fn) { + setTimeoutFunc(fn, 0); + }; + + Promise$1._unhandledRejectionFn = function _unhandledRejectionFn(err) { + if (typeof console !== 'undefined' && console) { + console.warn('Possible Unhandled Promise Rejection:', err); // eslint-disable-line no-console + } + }; + Array.prototype.includes || Object.defineProperty(Array.prototype, "includes", { value: function value(r, e) { + if (null == this) throw new TypeError('"this" is null or not defined');var t = Object(this), + n = t.length >>> 0;if (0 === n) return !1;for (var i = 0 | e, o = Math.max(i >= 0 ? i : n - Math.abs(i), 0); o < n;) { + if (function (r, e) { + return r === e || "number" == typeof r && "number" == typeof e && isNaN(r) && isNaN(e); + }(t[o], r)) return !0;o++; + }return !1; + } }); + + var _createClass$6 = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + function _classCallCheck$8(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + /** MIT License + * + * Copyright (c) 2010 Ludovic CLUBER + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * https://github.com/LCluber/Aias.js + */ var AudioContext = window.AudioContext || window.webkitAudioContext || false; - var Method = function () { - function Method(method, defaultHeaders) { - _classCallCheck$7(this, Method); + var Request = function () { + function Request(method, url, responseType, headers, eventType, data) { + _classCallCheck$8(this, Request); + this.eventType = "promise"; this.log = Logger.addGroup("Aias"); this.method = method; + this.url = url; + this.responseType = responseType; this.async = true; this.noCache = false; - this.headers = defaultHeaders; + this.headers = headers; + this.eventType = eventType || this.eventType; + this.data = data || null; } - _createClass$5(Method, [{ - key: 'setHeaders', - value: function setHeaders(headers) { - for (var property in headers) { - if (headers.hasOwnProperty(property)) { - this.headers[property] = headers[property]; - } + _createClass$6(Request, [{ + key: 'call', + value: function call() { + switch (this.eventType) { + case "observable": + return this.useObservable(this.url, this.responseType, this.data); + default: + return this.usePromise(this.url, this.responseType, this.data); } } - }, { - key: 'getHeaders', - value: function getHeaders() { - return this.headers; - } }, { key: 'usePromise', value: function usePromise(url, responseType, data) { var _this = this; - return new Promise(function (resolve, reject) { + return new Promise$1(function (resolve, reject) { var http = new XMLHttpRequest(); url += _this.noCache ? "?cache=" + new Date().getTime() : ""; http.open(_this.method, url, _this.async); @@ -5735,17 +7526,6 @@ var Orbis = (function (exports) { _this2.log.info("xhr (" + _this2.method + ":" + url + ")" + "sent"); }); } - }, { - key: 'call', - value: function call(url, responseType, eventType, data) { - switch (eventType) { - case "observable": - return this.useObservable(url, responseType, data); - break; - default: - return this.usePromise(url, responseType, data); - } - } }, { key: 'setRequestHeaders', value: function setRequestHeaders(http) { @@ -5767,24 +7547,98 @@ var Orbis = (function (exports) { } }]); - return Method; + return Request; }(); + var HTTPHeaders = function HTTPHeaders() { + _classCallCheck$8(this, HTTPHeaders); + }; + + var METHODS = { + GET: { + type: "GET", + defaultHeaders: { + "Content-Type": "application/x-www-form-urlencoded" + }, + headers: {}, + data: false + }, + HEAD: { + type: "HEAD", + defaultHeaders: { + "Content-Type": "application/x-www-form-urlencoded" + }, + headers: {}, + data: false + }, + POST: { + type: "POST", + defaultHeaders: { + "Content-Type": "application/json" + }, + headers: {}, + data: true + }, + PUT: { + type: "PUT", + defaultHeaders: { + "Content-Type": "application/json" + }, + headers: {}, + data: true + }, + DELETE: { + type: "DELETE", + defaultHeaders: { + "Content-Type": "application/x-www-form-urlencoded" + }, + headers: {}, + data: false + }, + CONNECT: { + type: "CONNECT", + defaultHeaders: { + "Content-Type": "application/x-www-form-urlencoded" + }, + headers: {}, + data: false + }, + OPTIONS: { + type: "OPTIONS", + defaultHeaders: { + "Content-Type": "application/x-www-form-urlencoded" + }, + headers: {}, + data: false + }, + TRACE: { + type: "TRACE", + defaultHeaders: { + "Content-Type": "application/x-www-form-urlencoded" + }, + headers: {}, + data: false + }, + PATCH: { + type: "PATCH", + defaultHeaders: { + "Content-Type": "application/json" + }, + headers: {}, + data: false + } + }; + var HTTP = function () { function HTTP() { - _classCallCheck$7(this, HTTP); + _classCallCheck$8(this, HTTP); } - _createClass$5(HTTP, null, [{ + _createClass$6(HTTP, null, [{ key: 'setEventType', value: function setEventType(eventType) { this.eventType = this.isOfTypeEventType(eventType) ? eventType : "promise"; } - }, { - key: 'isOfTypeEventType', - value: function isOfTypeEventType(eventType) { - return ["promise", "observable"].includes(eventType); - } }, { key: 'setLogLevel', value: function setLogLevel(name) { @@ -5795,6 +7649,17 @@ var Orbis = (function (exports) { value: function getLogLevel() { return this.log.getLevel(); } + }, { + key: 'setHeaders', + value: function setHeaders(method, headers) { + if (METHODS.hasOwnProperty(method)) { + for (var property in headers) { + if (headers.hasOwnProperty(property) && HTTPHeaders.hasOwnProperty(property)) { + METHODS[method].headers[property] = headers[property]; + } + } + } + } }, { key: 'setMockup', value: function setMockup(mockup) { @@ -5820,68 +7685,82 @@ var Orbis = (function (exports) { } }, _this3.mockup.delay); }); - break; default: return this.promiseTimeout().then(function () { - return new Promise(function (resolve, reject) { + return new Promise$1(function (resolve, reject) { _this3.mockup.data ? resolve(_this3.mockup.data) : reject(null); }); }); } } }, { - key: 'promiseTimeout', - value: function promiseTimeout() { - var _this4 = this; - - return new Promise(function (resolve) { - return setTimeout(resolve, _this4.mockup.delay); - }); + key: 'get', + value: function get(url, responseType) { + return this.request(METHODS.GET.type, url, responseType, METHODS.GET.headers || METHODS.GET.defaultHeaders, null); + } + }, { + key: 'head', + value: function head(url, responseType) { + return this.request(METHODS.HEAD.type, url, responseType, METHODS.HEAD.headers || METHODS.HEAD.defaultHeaders, null); } }, { - key: 'GET', - value: function GET(url, responseType) { - return this.mockup.data ? this.getMockupData() : this.get.call(url, responseType, this.eventType); + key: 'post', + value: function post(url, responseType, data) { + return this.request(METHODS.POST.type, url, responseType, METHODS.POST.headers || METHODS.POST.defaultHeaders, data); } }, { - key: 'HEAD', - value: function HEAD(url, responseType) { - return this.mockup.data ? this.getMockupData() : this.head.call(url, responseType, this.eventType); + key: 'put', + value: function put(url, responseType, data) { + return this.request(METHODS.PUT.type, url, responseType, METHODS.PUT.headers || METHODS.PUT.defaultHeaders, data); } }, { - key: 'POST', - value: function POST(url, responseType, data) { - return this.mockup.data ? this.getMockupData() : this.post.call(url, responseType, this.eventType, data); + key: 'delete', + value: function _delete(url, responseType) { + return this.request(METHODS.DELETE.type, url, responseType, METHODS.DELETE.headers || METHODS.DELETE.defaultHeaders, null); } }, { - key: 'PUT', - value: function PUT(url, responseType, data) { - return this.mockup.data ? this.getMockupData() : this.put.call(url, responseType, this.eventType, data); + key: 'connect', + value: function connect(url, responseType) { + return this.request(METHODS.CONNECT.type, url, responseType, METHODS.CONNECT.headers || METHODS.CONNECT.defaultHeaders, null); } }, { - key: 'DELETE', - value: function DELETE(url, responseType) { - return this.mockup.data ? this.getMockupData() : this.delete.call(url, responseType, this.eventType); + key: 'options', + value: function options(url, responseType) { + return this.request(METHODS.OPTIONS.type, url, responseType, METHODS.OPTIONS.headers || METHODS.OPTIONS.defaultHeaders, null); } }, { - key: 'CONNECT', - value: function CONNECT(url, responseType) { - return this.mockup.data ? this.getMockupData() : this.connect.call(url, responseType, this.eventType); + key: 'trace', + value: function trace(url, responseType) { + return this.request(METHODS.TRACE.type, url, responseType, METHODS.TRACE.headers || METHODS.TRACE.defaultHeaders, null); + } + }, { + key: 'patch', + value: function patch(url, responseType, data) { + return this.request(METHODS.PATCH.type, url, responseType, METHODS.PATCH.headers || METHODS.PATCH.defaultHeaders, data); } }, { - key: 'OPTIONS', - value: function OPTIONS(url, responseType) { - return this.mockup.data ? this.getMockupData() : this.options.call(url, responseType, this.eventType); + key: 'request', + value: function request(type, url, responseType, headers, data) { + if (this.mockup.data) { + return this.getMockupData(); + } else { + var request = new Request(type, url, responseType, headers, this.eventType, data || null); + return request.call(); + } } }, { - key: 'TRACE', - value: function TRACE(url, responseType) { - return this.mockup.data ? this.getMockupData() : this.trace.call(url, responseType, this.eventType); + key: 'promiseTimeout', + value: function promiseTimeout() { + var _this4 = this; + + return new Promise$1(function (resolve) { + return setTimeout(resolve, _this4.mockup.delay); + }); } }, { - key: 'PATCH', - value: function PATCH(url, responseType, data) { - return this.mockup.data ? this.getMockupData() : this.patch.call(url, responseType, this.eventType, data); + key: 'isOfTypeEventType', + value: function isOfTypeEventType(eventType) { + return ["promise", "observable"].includes(eventType); } }]); @@ -5894,43 +7773,16 @@ var Orbis = (function (exports) { data: null, delay: 200 }; - HTTP.get = new Method("GET", { - "Content-Type": "application/x-www-form-urlencoded" - }); - HTTP.head = new Method("HEAD", { - "Content-Type": "application/x-www-form-urlencoded" - }); - HTTP.post = new Method("POST", { - "Content-Type": "application/json" - }); - HTTP.put = new Method("PUT", { - "Content-Type": "application/json" - }); - HTTP.delete = new Method("DELETE", { - "Content-Type": "application/x-www-form-urlencoded" - }); - HTTP.connect = new Method("CONNECT", { - "Content-Type": "application/x-www-form-urlencoded" - }); - HTTP.options = new Method("OPTIONS", { - "Content-Type": "application/x-www-form-urlencoded" - }); - HTTP.trace = new Method("TRACE", { - "Content-Type": "application/x-www-form-urlencoded" - }); - HTTP.patch = new Method("PATCH", { - "Content-Type": "application/json" - }); function loadSound(path) { - return HTTP.GET(path, "audiobuffer"); + return HTTP.get(path, "audiobuffer"); } function loadFile(path) { - return HTTP.GET(path, "text"); + return HTTP.get(path, "text"); } - var Request = function () { + var Request$1 = function () { function Request() { this.fsm = new FSM$1([{ name: "send", from: "idle", to: "pending" }, { name: "success", from: "pending", to: "success" }, { name: "error", from: "pending", to: "error" }]); this.ajax = { @@ -5963,7 +7815,7 @@ var Orbis = (function (exports) { this.path = path; this.extension = extension; this.type = type; - this.request = new Request(); + this.request = new Request$1(); this.response = null; } XHR.prototype.sendRequest = function (fileName) { diff --git a/dist/orbis.iife.min.js b/dist/orbis.iife.min.js index 7699fde..593ff86 100644 --- a/dist/orbis.iife.min.js +++ b/dist/orbis.iife.min.js @@ -23,4 +23,4 @@ * http://orbisjs.lcluber.com */ -var Orbis=function(t){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t){return t<10?"0"+t:t}function c(t){return"string"==typeof t}function l(t){return!!t&&("object"===("undefined"==typeof HTMLElement?"undefined":M(HTMLElement))?t instanceof HTMLElement:t&&"object"===(void 0===t?"undefined":M(t))&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e]*>(.*?)<\s*.*\s*>/gi)?o.innerHTML=t:o.textContent=t}}}catch(t){n=!0,i=t}finally{try{!e&&s.return&&s.return()}finally{if(n)throw i}}}}},{key:"getElements",value:function(t){var e,n=[];if(null!==(e=t)&&e.constructor===Array){var i=!0,r=!1,s=void 0;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done);i=!0){var u=o.value;l(u)&&n.push(u)}}catch(t){r=!0,s=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw s}}}else if(c(t)){var h=O.findById(t);h?n.push(h):n=O.findByClass(t)}else l(t)&&n.push(t);return n}},{key:"value",set:function(t){this._value=t,this.updateDom()},get:function(){return this._value}}]),i}(),D=function(){function i(t,e){for(var n=0;nthis.pi||t<-this.pi?t-this.twopi*Math.floor((t+this.pi)/this.twopi):t}},{key:"sine",value:function(t){return t=this.normalizeRadian(t),n.sineDecimals<=2&&t<.28&&-.28this.x?"y":"x"}},{key:"minAxis",value:function(){return this.y=this.minDelta)&&(this.clock.tick(t),!1===this.callback()&&(e=!1)),e?this.requestNewFrame():this.stop()}},{key:"startAnimation",value:function(){this.clock.start(),this.requestNewFrame()}},{key:"stopAnimation",value:function(){window.cancelAnimationFrame(this.frameId)}},{key:"requestNewFrame",value:function(){this.frameId=window.requestAnimationFrame(this.tick.bind(this))}}]),e}(),$=function(){function t(t,e){if(this.rate=0,this.total=0,this.percentage=0,this.target=0,this.speed=40,this.nbAssets=0,this.barWidth=0,this.running=!1,this.bar=null,this.number=null,this.animation=null,t){var n=O.findById(t);if(n){this.barWidth=n.clientWidth;var i=n.children[1];this.bar=i?new L(i,"style.width","0px"):null;var r=n.children[0];this.number=r?new L(r,"",0):null,this.animation=new Z(this.animateBar),this.animation.setScope(this)}}this.text=e?new L(e,"","Loading"):null}return t.prototype.animateBar=function(){return this.running=!!this.animation&&this.updateBar(this.animation.getDelta())},t.prototype.start=function(){this.animation&&this.animation.play()},t.prototype.reset=function(){this.running=!1,this.percentage=0,this.text&&this.text.update("Loading")},t.prototype.update=function(t){this.total++,this.rate=this.total/this.nbAssets,this.target=Math.round(100*this.rate),this.text&&this.text.update(t)},t.prototype.updateBar=function(t){this.percentage+=this.speed*t,this.percentage>=this.target&&(this.percentage=this.target);var e=C.floor(this.percentage,0);return this.bar&&this.bar.update(C.map(this.percentage,0,100,0,this.barWidth)+"px"),this.number&&this.number.update(e+"%"),100!==e||(this.animation&&this.animation.stop(),this.text&&this.text.update("Loading complete"),!1)},t}(),K=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.state=e[0].from,this.log=P.addGroup("Taipan");var i=!0,r=!1,s=void 0;try{for(var o,a=function(){var t=o.value;n.hasOwnProperty(t.name)||(n[t.name]=function(){return n.log.info("- Event "+t.name+" triggered"),n.state===t.from?(n.state=t.to,n.log.info("from "+t.from+" to "+n.state),!0):(n.log.warn("Cannot transition from "+n.state+" to "+t.to),!1)})},u=e[Symbol.iterator]();!(i=(o=u.next()).done);i=!0)a()}catch(t){r=!0,s=t}finally{try{!i&&u.return&&u.return()}finally{if(r)throw s}}},Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tt=function(t,e){return(tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},et=!1,nt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;et=t},get useDeprecatedSynchronousErrorHandling(){return et}},it={closed:!0,next:function(){},error:function(t){if(nt.useDeprecatedSynchronousErrorHandling)throw t;v(t)},complete:function(){}},rt=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}(),st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ut=function(){function a(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var t;return a.prototype.unsubscribe=function(){var e;if(!this.closed){var t=this._parentOrParents,n=this._unsubscribe,i=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof a)t.remove(this);else if(null!==t)for(var r=0;r]*>(.*?)<\s*.*\s*>/gi)?o.innerHTML=t:o.textContent=t}}}catch(t){i=!0,n=t}finally{try{!e&&r.return&&r.return()}finally{if(i)throw n}}}}},{key:"getElements",value:function(t){var e,i=[];if(null!==(e=t)&&e.constructor===Array){var n=!0,s=!1,r=void 0;try{for(var o,u=t[Symbol.iterator]();!(n=(o=u.next()).done);n=!0){var a=o.value;l(a)&&i.push(a)}}catch(t){s=!0,r=t}finally{try{!n&&u.return&&u.return()}finally{if(s)throw r}}}else if(c(t)){var h=N.findById(t);h?i.push(h):i=N.findByClass(t)}else l(t)&&i.push(t);return i}},{key:"value",set:function(t){this._value=t,this.updateDom()},get:function(){return this._value}}]),n}(),G=function(){function n(t,e){for(var i=0;ithis.pi||t<-this.pi?t-this.twopi*Math.floor((t+this.pi)/this.twopi):t}},{key:"sine",value:function(t){return t=this.normalizeRadian(t),i.sineDecimals<=2&&t<.28&&-.28this.x?"y":"x"}},{key:"getMinAxis",value:function(){return this.ythis.pi||t<-this.pi?t-this.twopi*Math.floor((t+this.pi)/this.twopi):t}},{key:"sine",value:function(t){return t=this.normalizeRadian(t),i.sineDecimals<=2&&t<.28&&-.28this.x?"y":"x"}},{key:"minAxis",value:function(){return this.y=this.minDelta)&&(this.clock.tick(t),!1===this.callback()&&(e=!1)),e?this.requestNewFrame():this.stop()}},{key:"startAnimation",value:function(){this.clock.start(),this.requestNewFrame()}},{key:"stopAnimation",value:function(){window.cancelAnimationFrame(this.frameId)}},{key:"requestNewFrame",value:function(){this.frameId=window.requestAnimationFrame(this.tick.bind(this))}}]),e}(),pt=function(){function t(t,e){if(this.rate=0,this.total=0,this.percentage=0,this.target=0,this.speed=40,this.nbAssets=0,this.barWidth=0,this.running=!1,this.bar=null,this.number=null,this.animation=null,t){var i=N.findById(t);if(i){this.barWidth=i.clientWidth;var n=i.children[1];this.bar=n?new Y(n,"style.width","0px"):null;var s=i.children[0];this.number=s?new Y(s,"",0):null,this.animation=new ft(this.animateBar),this.animation.setScope(this)}}this.text=e?new Y(e,"","Loading"):null}return t.prototype.animateBar=function(){return this.running=!!this.animation&&this.updateBar(this.animation.getDelta())},t.prototype.start=function(){this.animation&&this.animation.play()},t.prototype.reset=function(){this.running=!1,this.percentage=0,this.text&&this.text.update("Loading")},t.prototype.update=function(t){this.total++,this.rate=this.total/this.nbAssets,this.target=Math.round(100*this.rate),this.text&&this.text.update(t)},t.prototype.updateBar=function(t){this.percentage+=this.speed*t,this.percentage>=this.target&&(this.percentage=this.target);var e=B.floor(this.percentage,0);return this.bar&&this.bar.update(B.map(this.percentage,0,100,0,this.barWidth)+"px"),this.number&&this.number.update(e+"%"),100!==e||(this.animation&&this.animation.stop(),this.text&&this.text.update("Loading complete"),!1)},t}(),vt=function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.state=e[0].from,this.log=F.addGroup("Taipan");var n=!0,s=!1,r=void 0;try{for(var o,u=function(){var t=o.value;i.hasOwnProperty(t.name)||(i[t.name]=function(){return i.log.info("- Event "+t.name+" triggered"),i.state===t.from?(i.state=t.to,i.log.info("from "+t.from+" to "+i.state),!0):(i.log.warn("Cannot transition from "+i.state+" to "+t.to),!1)})},a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0)u()}catch(t){s=!0,r=t}finally{try{!n&&a.return&&a.return()}finally{if(s)throw r}}},dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mt=function(t,e){return(mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},kt=!1,xt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;kt=t},get useDeprecatedSynchronousErrorHandling(){return kt}},gt={closed:!0,next:function(){},error:function(t){if(xt.useDeprecatedSynchronousErrorHandling)throw t;d(t)},complete:function(){}},bt=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}(),wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},St=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tt=function(){function u(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var t;return u.prototype.unsubscribe=function(){var e;if(!this.closed){var t=this._parentOrParents,i=this._unsubscribe,n=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof u)t.remove(this);else if(null!==t)for(var s=0;s>>0;if(0===r)return!1;for(var o=0|e,u=Math.max(0<=o?o:r-Math.abs(o),0);u */ -.hljs { - display: inline-block; - padding: 0.5em; - background: white; - color: black; } - -.hljs-comment, .hljs-annotation, .hljs-template_comment, .diff .hljs-header, .hljs-chunk, .apache .hljs-cbracket { - color: #008000; } - -.hljs-keyword, .hljs-id, .hljs-built_in, .css .smalltalk .hljs-class, .hljs-winutils, .bash .hljs-variable, .tex .hljs-command, .hljs-request, .hljs-status, .nginx .hljs-title { - color: #00f; } - -.xml .hljs-tag { - color: #00f; } - .xml .hljs-tag .hljs-value { - color: #00f; } - -.hljs-string, .hljs-title, .hljs-parent, .hljs-tag .hljs-value, .hljs-rules .hljs-value { - color: #a31515; } - -.ruby .hljs-symbol { - color: #a31515; } - .ruby .hljs-symbol .hljs-string { - color: #a31515; } - -.hljs-template_tag, .django .hljs-variable, .hljs-addition, .hljs-flow, .hljs-stream, .apache .hljs-tag, .hljs-date, .tex .hljs-formula, .coffeescript .hljs-attribute { - color: #a31515; } - -.ruby .hljs-string, .hljs-decorator, .hljs-filter .hljs-argument, .hljs-localvars, .hljs-array, .hljs-attr_selector, .hljs-pseudo, .hljs-pi, .hljs-doctype, .hljs-deletion, .hljs-envvar, .hljs-shebang, .hljs-preprocessor, .hljs-pragma, .userType, .apache .hljs-sqbracket, .nginx .hljs-built_in, .tex .hljs-special, .hljs-prompt { - color: #2b91af; } - -.hljs-phpdoc, .hljs-javadoc, .hljs-xmlDocTag { - color: #808080; } - -.vhdl .hljs-typename { - font-weight: bold; } - -.vhdl .hljs-string { - color: #666666; } - -.vhdl .hljs-literal { - color: #a31515; } - -.vhdl .hljs-attribute { - color: #00b0e8; } - -.xml .hljs-attribute { - color: #f00; } - -.col > :first-child, .col-1 > :first-child, .col-2 > :first-child, .col-3 > :first-child, .col-4 > :first-child, .col-5 > :first-child, .col-6 > :first-child, .col-7 > :first-child, .col-8 > :first-child, .col-9 > :first-child, .col-10 > :first-child, .col-11 > :first-child, .tsd-panel > :first-child, ul.tsd-descriptions > li > :first-child, -.col > :first-child > :first-child, -.col-1 > :first-child > :first-child, -.col-2 > :first-child > :first-child, -.col-3 > :first-child > :first-child, -.col-4 > :first-child > :first-child, -.col-5 > :first-child > :first-child, -.col-6 > :first-child > :first-child, -.col-7 > :first-child > :first-child, -.col-8 > :first-child > :first-child, -.col-9 > :first-child > :first-child, -.col-10 > :first-child > :first-child, -.col-11 > :first-child > :first-child, -.tsd-panel > :first-child > :first-child, -ul.tsd-descriptions > li > :first-child > :first-child, -.col > :first-child > :first-child > :first-child, -.col-1 > :first-child > :first-child > :first-child, -.col-2 > :first-child > :first-child > :first-child, -.col-3 > :first-child > :first-child > :first-child, -.col-4 > :first-child > :first-child > :first-child, -.col-5 > :first-child > :first-child > :first-child, -.col-6 > :first-child > :first-child > :first-child, -.col-7 > :first-child > :first-child > :first-child, -.col-8 > :first-child > :first-child > :first-child, -.col-9 > :first-child > :first-child > :first-child, -.col-10 > :first-child > :first-child > :first-child, -.col-11 > :first-child > :first-child > :first-child, -.tsd-panel > :first-child > :first-child > :first-child, -ul.tsd-descriptions > li > :first-child > :first-child > :first-child { - margin-top: 0; } - -.col > :last-child, .col-1 > :last-child, .col-2 > :last-child, .col-3 > :last-child, .col-4 > :last-child, .col-5 > :last-child, .col-6 > :last-child, .col-7 > :last-child, .col-8 > :last-child, .col-9 > :last-child, .col-10 > :last-child, .col-11 > :last-child, .tsd-panel > :last-child, ul.tsd-descriptions > li > :last-child, -.col > :last-child > :last-child, -.col-1 > :last-child > :last-child, -.col-2 > :last-child > :last-child, -.col-3 > :last-child > :last-child, -.col-4 > :last-child > :last-child, -.col-5 > :last-child > :last-child, -.col-6 > :last-child > :last-child, -.col-7 > :last-child > :last-child, -.col-8 > :last-child > :last-child, -.col-9 > :last-child > :last-child, -.col-10 > :last-child > :last-child, -.col-11 > :last-child > :last-child, -.tsd-panel > :last-child > :last-child, -ul.tsd-descriptions > li > :last-child > :last-child, -.col > :last-child > :last-child > :last-child, -.col-1 > :last-child > :last-child > :last-child, -.col-2 > :last-child > :last-child > :last-child, -.col-3 > :last-child > :last-child > :last-child, -.col-4 > :last-child > :last-child > :last-child, -.col-5 > :last-child > :last-child > :last-child, -.col-6 > :last-child > :last-child > :last-child, -.col-7 > :last-child > :last-child > :last-child, -.col-8 > :last-child > :last-child > :last-child, -.col-9 > :last-child > :last-child > :last-child, -.col-10 > :last-child > :last-child > :last-child, -.col-11 > :last-child > :last-child > :last-child, -.tsd-panel > :last-child > :last-child > :last-child, -ul.tsd-descriptions > li > :last-child > :last-child > :last-child { - margin-bottom: 0; } - -.container { - max-width: 1200px; - margin: 0 auto; - padding: 0 40px; } - @media (max-width: 640px) { - .container { - padding: 0 20px; } } - -.container-main { - padding-bottom: 200px; } - -.row { - position: relative; - margin: 0 -10px; } - .row:after { - visibility: hidden; - display: block; - content: ""; - clear: both; - height: 0; } - -.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11 { - box-sizing: border-box; - float: left; - padding: 0 10px; } - -.col-1 { - width: 8.3333333333%; } - -.offset-1 { - margin-left: 8.3333333333%; } - -.col-2 { - width: 16.6666666667%; } - -.offset-2 { - margin-left: 16.6666666667%; } - -.col-3 { - width: 25%; } - -.offset-3 { - margin-left: 25%; } - -.col-4 { - width: 33.3333333333%; } - -.offset-4 { - margin-left: 33.3333333333%; } - -.col-5 { - width: 41.6666666667%; } - -.offset-5 { - margin-left: 41.6666666667%; } - -.col-6 { - width: 50%; } - -.offset-6 { - margin-left: 50%; } - -.col-7 { - width: 58.3333333333%; } - -.offset-7 { - margin-left: 58.3333333333%; } - -.col-8 { - width: 66.6666666667%; } - -.offset-8 { - margin-left: 66.6666666667%; } - -.col-9 { - width: 75%; } - -.offset-9 { - margin-left: 75%; } - -.col-10 { - width: 83.3333333333%; } - -.offset-10 { - margin-left: 83.3333333333%; } - -.col-11 { - width: 91.6666666667%; } - -.offset-11 { - margin-left: 91.6666666667%; } - -.tsd-kind-icon { - display: block; - position: relative; - padding-left: 20px; - text-indent: -20px; } - .tsd-kind-icon:before { - content: ''; - display: inline-block; - vertical-align: middle; - width: 17px; - height: 17px; - margin: 0 3px 2px 0; - background-image: url(../images/icons.png); } - @media (-webkit-min-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { - .tsd-kind-icon:before { - background-image: url(../images/icons@2x.png); - background-size: 238px 204px; } } - -.tsd-signature.tsd-kind-icon:before { - background-position: 0 -153px; } - -.tsd-kind-object-literal > .tsd-kind-icon:before { - background-position: 0px -17px; } - -.tsd-kind-object-literal.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -17px; } - -.tsd-kind-object-literal.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -17px; } - -.tsd-kind-class > .tsd-kind-icon:before { - background-position: 0px -34px; } - -.tsd-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -34px; } - -.tsd-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -34px; } - -.tsd-kind-class.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: 0px -51px; } - -.tsd-kind-class.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -51px; } - -.tsd-kind-class.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -51px; } - -.tsd-kind-interface > .tsd-kind-icon:before { - background-position: 0px -68px; } - -.tsd-kind-interface.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -68px; } - -.tsd-kind-interface.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -68px; } - -.tsd-kind-interface.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: 0px -85px; } - -.tsd-kind-interface.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -85px; } - -.tsd-kind-interface.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -85px; } - -.tsd-kind-module > .tsd-kind-icon:before { - background-position: 0px -102px; } - -.tsd-kind-module.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -102px; } - -.tsd-kind-module.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -102px; } - -.tsd-kind-external-module > .tsd-kind-icon:before { - background-position: 0px -102px; } - -.tsd-kind-external-module.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -102px; } - -.tsd-kind-external-module.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -102px; } - -.tsd-kind-enum > .tsd-kind-icon:before { - background-position: 0px -119px; } - -.tsd-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -119px; } - -.tsd-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -119px; } - -.tsd-kind-enum-member > .tsd-kind-icon:before { - background-position: 0px -136px; } - -.tsd-kind-enum-member.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -136px; } - -.tsd-kind-enum-member.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -136px; } - -.tsd-kind-signature > .tsd-kind-icon:before { - background-position: 0px -153px; } - -.tsd-kind-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -153px; } - -.tsd-kind-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -153px; } - -.tsd-kind-type-alias > .tsd-kind-icon:before { - background-position: 0px -170px; } - -.tsd-kind-type-alias.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -170px; } - -.tsd-kind-type-alias.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -170px; } - -.tsd-kind-type-alias.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: 0px -187px; } - -.tsd-kind-type-alias.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -187px; } - -.tsd-kind-type-alias.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -187px; } - -.tsd-kind-variable > .tsd-kind-icon:before { - background-position: -136px -0px; } - -.tsd-kind-variable.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -0px; } - -.tsd-kind-variable.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; } - -.tsd-kind-variable.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -0px; } - -.tsd-kind-variable.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -0px; } - -.tsd-kind-variable.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -0px; } - -.tsd-kind-variable.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -0px; } - -.tsd-kind-variable.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; } - -.tsd-kind-variable.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -0px; } - -.tsd-kind-variable.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -0px; } - -.tsd-kind-variable.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; } - -.tsd-kind-variable.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -0px; } - -.tsd-kind-variable.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -0px; } - -.tsd-kind-property > .tsd-kind-icon:before { - background-position: -136px -0px; } - -.tsd-kind-property.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -0px; } - -.tsd-kind-property.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; } - -.tsd-kind-property.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -0px; } - -.tsd-kind-property.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -0px; } - -.tsd-kind-property.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -0px; } - -.tsd-kind-property.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -0px; } - -.tsd-kind-property.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; } - -.tsd-kind-property.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -0px; } - -.tsd-kind-property.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -0px; } - -.tsd-kind-property.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; } - -.tsd-kind-property.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -0px; } - -.tsd-kind-property.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -0px; } - -.tsd-kind-get-signature > .tsd-kind-icon:before { - background-position: -136px -17px; } - -.tsd-kind-get-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -17px; } - -.tsd-kind-get-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -17px; } - -.tsd-kind-get-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -17px; } - -.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -17px; } - -.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -17px; } - -.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -17px; } - -.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -17px; } - -.tsd-kind-get-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -17px; } - -.tsd-kind-get-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -17px; } - -.tsd-kind-get-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -17px; } - -.tsd-kind-get-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -17px; } - -.tsd-kind-get-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -17px; } - -.tsd-kind-set-signature > .tsd-kind-icon:before { - background-position: -136px -34px; } - -.tsd-kind-set-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -34px; } - -.tsd-kind-set-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -34px; } - -.tsd-kind-set-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -34px; } - -.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -34px; } - -.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -34px; } - -.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -34px; } - -.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -34px; } - -.tsd-kind-set-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -34px; } - -.tsd-kind-set-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -34px; } - -.tsd-kind-set-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -34px; } - -.tsd-kind-set-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -34px; } - -.tsd-kind-set-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -34px; } - -.tsd-kind-accessor > .tsd-kind-icon:before { - background-position: -136px -51px; } - -.tsd-kind-accessor.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -51px; } - -.tsd-kind-accessor.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -51px; } - -.tsd-kind-accessor.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -51px; } - -.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -51px; } - -.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -51px; } - -.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -51px; } - -.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -51px; } - -.tsd-kind-accessor.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -51px; } - -.tsd-kind-accessor.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -51px; } - -.tsd-kind-accessor.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -51px; } - -.tsd-kind-accessor.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -51px; } - -.tsd-kind-accessor.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -51px; } - -.tsd-kind-function > .tsd-kind-icon:before { - background-position: -136px -68px; } - -.tsd-kind-function.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -68px; } - -.tsd-kind-function.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; } - -.tsd-kind-function.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -68px; } - -.tsd-kind-function.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -68px; } - -.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -68px; } - -.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -68px; } - -.tsd-kind-function.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; } - -.tsd-kind-function.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -68px; } - -.tsd-kind-function.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -68px; } - -.tsd-kind-function.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; } - -.tsd-kind-function.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -68px; } - -.tsd-kind-function.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -68px; } - -.tsd-kind-method > .tsd-kind-icon:before { - background-position: -136px -68px; } - -.tsd-kind-method.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -68px; } - -.tsd-kind-method.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; } - -.tsd-kind-method.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -68px; } - -.tsd-kind-method.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -68px; } - -.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -68px; } - -.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -68px; } - -.tsd-kind-method.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; } - -.tsd-kind-method.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -68px; } - -.tsd-kind-method.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -68px; } - -.tsd-kind-method.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; } - -.tsd-kind-method.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -68px; } - -.tsd-kind-method.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -68px; } - -.tsd-kind-call-signature > .tsd-kind-icon:before { - background-position: -136px -68px; } - -.tsd-kind-call-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -68px; } - -.tsd-kind-call-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; } - -.tsd-kind-call-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -68px; } - -.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -68px; } - -.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -68px; } - -.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -68px; } - -.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; } - -.tsd-kind-call-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -68px; } - -.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -68px; } - -.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; } - -.tsd-kind-call-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -68px; } - -.tsd-kind-call-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -68px; } - -.tsd-kind-function.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: -136px -85px; } - -.tsd-kind-function.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -85px; } - -.tsd-kind-function.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -85px; } - -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -85px; } - -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -85px; } - -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -85px; } - -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -85px; } - -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -85px; } - -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -85px; } - -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -85px; } - -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -85px; } - -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -85px; } - -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -85px; } - -.tsd-kind-method.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: -136px -85px; } - -.tsd-kind-method.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -85px; } - -.tsd-kind-method.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -85px; } - -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -85px; } - -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -85px; } - -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -85px; } - -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -85px; } - -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -85px; } - -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -85px; } - -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -85px; } - -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -85px; } - -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -85px; } - -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -85px; } - -.tsd-kind-constructor > .tsd-kind-icon:before { - background-position: -136px -102px; } - -.tsd-kind-constructor.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -102px; } - -.tsd-kind-constructor.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -102px; } - -.tsd-kind-constructor.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -102px; } - -.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -102px; } - -.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -102px; } - -.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -102px; } - -.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -102px; } - -.tsd-kind-constructor.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -102px; } - -.tsd-kind-constructor.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -102px; } - -.tsd-kind-constructor.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -102px; } - -.tsd-kind-constructor.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -102px; } - -.tsd-kind-constructor.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -102px; } - -.tsd-kind-constructor-signature > .tsd-kind-icon:before { - background-position: -136px -102px; } - -.tsd-kind-constructor-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -102px; } - -.tsd-kind-constructor-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -102px; } - -.tsd-kind-constructor-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -102px; } - -.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -102px; } - -.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -102px; } - -.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -102px; } - -.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -102px; } - -.tsd-kind-constructor-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -102px; } - -.tsd-kind-constructor-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -102px; } - -.tsd-kind-constructor-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -102px; } - -.tsd-kind-constructor-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -102px; } - -.tsd-kind-constructor-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -102px; } - -.tsd-kind-index-signature > .tsd-kind-icon:before { - background-position: -136px -119px; } - -.tsd-kind-index-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -119px; } - -.tsd-kind-index-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -119px; } - -.tsd-kind-index-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -119px; } - -.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -119px; } - -.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -119px; } - -.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -119px; } - -.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -119px; } - -.tsd-kind-index-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -119px; } - -.tsd-kind-index-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -119px; } - -.tsd-kind-index-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -119px; } - -.tsd-kind-index-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -119px; } - -.tsd-kind-index-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -119px; } - -.tsd-kind-event > .tsd-kind-icon:before { - background-position: -136px -136px; } - -.tsd-kind-event.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -136px; } - -.tsd-kind-event.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -136px; } - -.tsd-kind-event.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -136px; } - -.tsd-kind-event.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -136px; } - -.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -136px; } - -.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -136px; } - -.tsd-kind-event.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -136px; } - -.tsd-kind-event.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -136px; } - -.tsd-kind-event.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -136px; } - -.tsd-kind-event.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -136px; } - -.tsd-kind-event.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -136px; } - -.tsd-kind-event.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -136px; } - -.tsd-is-static > .tsd-kind-icon:before { - background-position: -136px -153px; } - -.tsd-is-static.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -153px; } - -.tsd-is-static.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -153px; } - -.tsd-is-static.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -153px; } - -.tsd-is-static.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -153px; } - -.tsd-is-static.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -153px; } - -.tsd-is-static.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -153px; } - -.tsd-is-static.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -153px; } - -.tsd-is-static.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -153px; } - -.tsd-is-static.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -153px; } - -.tsd-is-static.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -153px; } - -.tsd-is-static.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -153px; } - -.tsd-is-static.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -153px; } - -.tsd-is-static.tsd-kind-function > .tsd-kind-icon:before { - background-position: -136px -170px; } - -.tsd-is-static.tsd-kind-function.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -170px; } - -.tsd-is-static.tsd-kind-function.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; } - -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -170px; } - -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -170px; } - -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -170px; } - -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -170px; } - -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; } - -.tsd-is-static.tsd-kind-function.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -170px; } - -.tsd-is-static.tsd-kind-function.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -170px; } - -.tsd-is-static.tsd-kind-function.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; } - -.tsd-is-static.tsd-kind-function.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -170px; } - -.tsd-is-static.tsd-kind-function.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -170px; } - -.tsd-is-static.tsd-kind-method > .tsd-kind-icon:before { - background-position: -136px -170px; } - -.tsd-is-static.tsd-kind-method.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -170px; } - -.tsd-is-static.tsd-kind-method.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; } - -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -170px; } - -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -170px; } - -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -170px; } - -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -170px; } - -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; } - -.tsd-is-static.tsd-kind-method.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -170px; } - -.tsd-is-static.tsd-kind-method.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -170px; } - -.tsd-is-static.tsd-kind-method.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; } - -.tsd-is-static.tsd-kind-method.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -170px; } - -.tsd-is-static.tsd-kind-method.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -170px; } - -.tsd-is-static.tsd-kind-call-signature > .tsd-kind-icon:before { - background-position: -136px -170px; } - -.tsd-is-static.tsd-kind-call-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -170px; } - -.tsd-is-static.tsd-kind-call-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; } - -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -170px; } - -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -170px; } - -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -170px; } - -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -170px; } - -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; } - -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -170px; } - -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -170px; } - -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; } - -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -170px; } - -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -170px; } - -.tsd-is-static.tsd-kind-event > .tsd-kind-icon:before { - background-position: -136px -187px; } - -.tsd-is-static.tsd-kind-event.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -187px; } - -.tsd-is-static.tsd-kind-event.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -187px; } - -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -187px; } - -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -187px; } - -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -187px; } - -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -187px; } - -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -187px; } - -.tsd-is-static.tsd-kind-event.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -187px; } - -.tsd-is-static.tsd-kind-event.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -187px; } - -.tsd-is-static.tsd-kind-event.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -187px; } - -.tsd-is-static.tsd-kind-event.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -187px; } - -.tsd-is-static.tsd-kind-event.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -187px; } - -.no-transition { - transition: none !important; } - -@keyframes fade-in { - from { - opacity: 0; } - to { - opacity: 1; } } - -@keyframes fade-out { - from { - opacity: 1; - visibility: visible; } - to { - opacity: 0; } } - -@keyframes fade-in-delayed { - 0% { - opacity: 0; } - 33% { - opacity: 0; } - 100% { - opacity: 1; } } - -@keyframes fade-out-delayed { - 0% { - opacity: 1; - visibility: visible; } - 66% { - opacity: 0; } - 100% { - opacity: 0; } } - -@keyframes shift-to-left { - from { - transform: translate(0, 0); } - to { - transform: translate(-25%, 0); } } - -@keyframes unshift-to-left { - from { - transform: translate(-25%, 0); } - to { - transform: translate(0, 0); } } - -@keyframes pop-in-from-right { - from { - transform: translate(100%, 0); } - to { - transform: translate(0, 0); } } - -@keyframes pop-out-to-right { - from { - transform: translate(0, 0); - visibility: visible; } - to { - transform: translate(100%, 0); } } - -body { - background: #fdfdfd; - font-family: "Segoe UI", sans-serif; - font-size: 16px; - color: #222; } - -a { - color: #4da6ff; - text-decoration: none; } - a:hover { - text-decoration: underline; } - -code, pre { - font-family: Menlo, Monaco, Consolas, "Courier New", monospace; - padding: 0.2em; - margin: 0; - font-size: 14px; - background-color: rgba(0, 0, 0, 0.04); } - -pre { - padding: 10px; } - pre code { - padding: 0; - font-size: 100%; - background-color: transparent; } - -.tsd-typography { - line-height: 1.333em; } - .tsd-typography ul { - list-style: square; - padding: 0 0 0 20px; - margin: 0; } - .tsd-typography h4, .tsd-typography .tsd-index-panel h3, .tsd-index-panel .tsd-typography h3, .tsd-typography h5, .tsd-typography h6 { - font-size: 1em; - margin: 0; } - .tsd-typography h5, .tsd-typography h6 { - font-weight: normal; } - .tsd-typography p, .tsd-typography ul, .tsd-typography ol { - margin: 1em 0; } - -@media (min-width: 901px) and (max-width: 1024px) { - html.default .col-content { - width: 72%; } - html.default .col-menu { - width: 28%; } - html.default .tsd-navigation { - padding-left: 10px; } } - -@media (max-width: 900px) { - html.default .col-content { - float: none; - width: 100%; } - html.default .col-menu { - position: fixed !important; - overflow: auto; - -webkit-overflow-scrolling: touch; - overflow-scrolling: touch; - z-index: 1024; - top: 0 !important; - bottom: 0 !important; - left: auto !important; - right: 0 !important; - width: 100%; - padding: 20px 20px 0 0; - max-width: 450px; - visibility: hidden; - background-color: #fff; - transform: translate(100%, 0); } - html.default .col-menu > *:last-child { - padding-bottom: 20px; } - html.default .overlay { - content: ''; - display: block; - position: fixed; - z-index: 1023; - top: 0; - left: 0; - right: 0; - bottom: 0; - background-color: rgba(0, 0, 0, 0.75); - visibility: hidden; } - html.default.to-has-menu .overlay { - animation: fade-in 0.4s; } - html.default.to-has-menu header, - html.default.to-has-menu footer, - html.default.to-has-menu .col-content { - animation: shift-to-left 0.4s; } - html.default.to-has-menu .col-menu { - animation: pop-in-from-right 0.4s; } - html.default.from-has-menu .overlay { - animation: fade-out 0.4s; } - html.default.from-has-menu header, - html.default.from-has-menu footer, - html.default.from-has-menu .col-content { - animation: unshift-to-left 0.4s; } - html.default.from-has-menu .col-menu { - animation: pop-out-to-right 0.4s; } - html.default.has-menu body { - overflow: hidden; } - html.default.has-menu .overlay { - visibility: visible; } - html.default.has-menu header, - html.default.has-menu footer, - html.default.has-menu .col-content { - transform: translate(-25%, 0); } - html.default.has-menu .col-menu { - visibility: visible; - transform: translate(0, 0); } } - -.tsd-page-title { - padding: 70px 0 20px 0; - margin: 0 0 40px 0; - background: #fff; - box-shadow: 0 0 5px rgba(0, 0, 0, 0.35); } - .tsd-page-title h1 { - margin: 0; } - -.tsd-breadcrumb { - margin: 0; - padding: 0; - color: #808080; } - .tsd-breadcrumb a { - color: #808080; - text-decoration: none; } - .tsd-breadcrumb a:hover { - text-decoration: underline; } - .tsd-breadcrumb li { - display: inline; } - .tsd-breadcrumb li:after { - content: ' / '; } - -html.minimal .container { - margin: 0; } - -html.minimal .container-main { - padding-top: 50px; - padding-bottom: 0; } - -html.minimal .content-wrap { - padding-left: 300px; } - -html.minimal .tsd-navigation { - position: fixed !important; - overflow: auto; - -webkit-overflow-scrolling: touch; - overflow-scrolling: touch; - box-sizing: border-box; - z-index: 1; - left: 0; - top: 40px; - bottom: 0; - width: 300px; - padding: 20px; - margin: 0; } - -html.minimal .tsd-member .tsd-member { - margin-left: 0; } - -html.minimal .tsd-page-toolbar { - position: fixed; - z-index: 2; } - -html.minimal #tsd-filter .tsd-filter-group { - right: 0; - transform: none; } - -html.minimal footer { - background-color: transparent; } - html.minimal footer .container { - padding: 0; } - -html.minimal .tsd-generator { - padding: 0; } - -@media (max-width: 900px) { - html.minimal .tsd-navigation { - display: none; } - html.minimal .content-wrap { - padding-left: 0; } } - -dl.tsd-comment-tags { - overflow: hidden; } - dl.tsd-comment-tags dt { - float: left; - padding: 1px 5px; - margin: 0 10px 0 0; - border-radius: 4px; - border: 1px solid #808080; - color: #808080; - font-size: 0.8em; - font-weight: normal; } - dl.tsd-comment-tags dd { - margin: 0 0 10px 0; } - dl.tsd-comment-tags dd:before, dl.tsd-comment-tags dd:after { - display: table; - content: " "; } - dl.tsd-comment-tags dd pre, dl.tsd-comment-tags dd:after { - clear: both; } - dl.tsd-comment-tags p { - margin: 0; } - -.tsd-panel.tsd-comment .lead { - font-size: 1.1em; - line-height: 1.333em; - margin-bottom: 2em; } - .tsd-panel.tsd-comment .lead:last-child { - margin-bottom: 0; } - -.toggle-protected .tsd-is-private { - display: none; } - -.toggle-public .tsd-is-private, -.toggle-public .tsd-is-protected, -.toggle-public .tsd-is-private-protected { - display: none; } - -.toggle-inherited .tsd-is-inherited { - display: none; } - -.toggle-only-exported .tsd-is-not-exported { - display: none; } - -.toggle-externals .tsd-is-external { - display: none; } - -#tsd-filter { - position: relative; - display: inline-block; - height: 40px; - vertical-align: bottom; } - .no-filter #tsd-filter { - display: none; } - #tsd-filter .tsd-filter-group { - display: inline-block; - height: 40px; - vertical-align: bottom; - white-space: nowrap; } - #tsd-filter input { - display: none; } - @media (max-width: 900px) { - #tsd-filter .tsd-filter-group { - display: block; - position: absolute; - top: 40px; - right: 20px; - height: auto; - background-color: #fff; - visibility: hidden; - transform: translate(50%, 0); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); } - .has-options #tsd-filter .tsd-filter-group { - visibility: visible; } - .to-has-options #tsd-filter .tsd-filter-group { - animation: fade-in 0.2s; } - .from-has-options #tsd-filter .tsd-filter-group { - animation: fade-out 0.2s; } - #tsd-filter label, - #tsd-filter .tsd-select { - display: block; - padding-right: 20px; } } - -footer { - border-top: 1px solid #eee; - background-color: #fff; } - footer.with-border-bottom { - border-bottom: 1px solid #eee; } - footer .tsd-legend-group { - font-size: 0; } - footer .tsd-legend { - display: inline-block; - width: 25%; - padding: 0; - font-size: 16px; - list-style: none; - line-height: 1.333em; - vertical-align: top; } - @media (max-width: 900px) { - footer .tsd-legend { - width: 50%; } } - -.tsd-hierarchy { - list-style: square; - padding: 0 0 0 20px; - margin: 0; } - .tsd-hierarchy .target { - font-weight: bold; } - -.tsd-index-panel .tsd-index-content { - margin-bottom: -30px !important; } - -.tsd-index-panel .tsd-index-section { - margin-bottom: 30px !important; } - -.tsd-index-panel h3 { - margin: 0 -20px 10px -20px; - padding: 0 20px 10px 20px; - border-bottom: 1px solid #eee; } - -.tsd-index-panel ul.tsd-index-list { - -moz-column-count: 3; - -ms-column-count: 3; - -o-column-count: 3; - column-count: 3; - -moz-column-gap: 20px; - -ms-column-gap: 20px; - -o-column-gap: 20px; - column-gap: 20px; - padding: 0; - list-style: none; - line-height: 1.333em; } - @media (max-width: 900px) { - .tsd-index-panel ul.tsd-index-list { - -moz-column-count: 1; - -ms-column-count: 1; - -o-column-count: 1; - column-count: 1; } } - @media (min-width: 901px) and (max-width: 1024px) { - .tsd-index-panel ul.tsd-index-list { - -moz-column-count: 2; - -ms-column-count: 2; - -o-column-count: 2; - column-count: 2; } } - .tsd-index-panel ul.tsd-index-list li { - -webkit-column-break-inside: avoid; - -moz-column-break-inside: avoid; - -ms-column-break-inside: avoid; - -o-column-break-inside: avoid; - column-break-inside: avoid; - -webkit-page-break-inside: avoid; - -moz-page-break-inside: avoid; - -ms-page-break-inside: avoid; - -o-page-break-inside: avoid; - page-break-inside: avoid; } - -.tsd-index-panel a, -.tsd-index-panel .tsd-parent-kind-module a { - color: #9600ff; } - -.tsd-index-panel .tsd-parent-kind-interface a { - color: #7da01f; } - -.tsd-index-panel .tsd-parent-kind-enum a { - color: #cc9900; } - -.tsd-index-panel .tsd-parent-kind-class a { - color: #4da6ff; } - -.tsd-index-panel .tsd-kind-module a { - color: #9600ff; } - -.tsd-index-panel .tsd-kind-interface a { - color: #7da01f; } - -.tsd-index-panel .tsd-kind-enum a { - color: #cc9900; } - -.tsd-index-panel .tsd-kind-class a { - color: #4da6ff; } - -.tsd-index-panel .tsd-is-private a { - color: #808080; } - -.tsd-flag { - display: inline-block; - padding: 1px 5px; - border-radius: 4px; - color: #fff; - background-color: #808080; - text-indent: 0; - font-size: 14px; - font-weight: normal; } - -.tsd-anchor { - position: absolute; - top: -100px; } - -.tsd-member { - position: relative; } - .tsd-member .tsd-anchor + h3 { - margin-top: 0; - margin-bottom: 0; - border-bottom: none; } - -.tsd-navigation { - padding: 0 0 0 40px; } - .tsd-navigation a { - display: block; - padding-top: 2px; - padding-bottom: 2px; - border-left: 2px solid transparent; - color: #222; - text-decoration: none; - transition: border-left-color 0.1s; } - .tsd-navigation a:hover { - text-decoration: underline; } - .tsd-navigation ul { - margin: 0; - padding: 0; - list-style: none; } - .tsd-navigation li { - padding: 0; } - -.tsd-navigation.primary { - padding-bottom: 40px; } - .tsd-navigation.primary a { - display: block; - padding-top: 6px; - padding-bottom: 6px; } - .tsd-navigation.primary ul li a { - padding-left: 5px; } - .tsd-navigation.primary ul li li a { - padding-left: 25px; } - .tsd-navigation.primary ul li li li a { - padding-left: 45px; } - .tsd-navigation.primary ul li li li li a { - padding-left: 65px; } - .tsd-navigation.primary ul li li li li li a { - padding-left: 85px; } - .tsd-navigation.primary ul li li li li li li a { - padding-left: 105px; } - .tsd-navigation.primary > ul { - border-bottom: 1px solid #eee; } - .tsd-navigation.primary li { - border-top: 1px solid #eee; } - .tsd-navigation.primary li.current > a { - font-weight: bold; } - .tsd-navigation.primary li.label span { - display: block; - padding: 20px 0 6px 5px; - color: #808080; } - .tsd-navigation.primary li.globals + li > span, - .tsd-navigation.primary li.globals + li > a { - padding-top: 20px; } - -.tsd-navigation.secondary ul { - transition: opacity 0.2s; } - .tsd-navigation.secondary ul li a { - padding-left: 25px; } - .tsd-navigation.secondary ul li li a { - padding-left: 45px; } - .tsd-navigation.secondary ul li li li a { - padding-left: 65px; } - .tsd-navigation.secondary ul li li li li a { - padding-left: 85px; } - .tsd-navigation.secondary ul li li li li li a { - padding-left: 105px; } - .tsd-navigation.secondary ul li li li li li li a { - padding-left: 125px; } - .tsd-navigation.secondary ul.current a { - border-left-color: #eee; } - -.tsd-navigation.secondary li.focus > a, -.tsd-navigation.secondary ul.current li.focus > a { - border-left-color: #000; } - -.tsd-navigation.secondary li.current { - margin-top: 20px; - margin-bottom: 20px; - border-left-color: #eee; } - .tsd-navigation.secondary li.current > a { - font-weight: bold; } - -@media (min-width: 901px) { - .menu-sticky-wrap { - position: static; } - .no-csspositionsticky .menu-sticky-wrap.sticky { - position: fixed; } - .no-csspositionsticky .menu-sticky-wrap.sticky-current { - position: fixed; } - .no-csspositionsticky .menu-sticky-wrap.sticky-current ul.before-current, - .no-csspositionsticky .menu-sticky-wrap.sticky-current ul.after-current { - opacity: 0; } - .no-csspositionsticky .menu-sticky-wrap.sticky-bottom { - position: absolute; - top: auto !important; - left: auto !important; - bottom: 0; - right: 0; } - .csspositionsticky .menu-sticky-wrap.sticky { - position: -webkit-sticky; - position: sticky; } - .csspositionsticky .menu-sticky-wrap.sticky-current { - position: -webkit-sticky; - position: sticky; } } - -.tsd-panel { - margin: 20px 0; - padding: 20px; - background-color: #fff; - box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); } - .tsd-panel:empty { - display: none; } - .tsd-panel > h1, .tsd-panel > h2, .tsd-panel > h3 { - margin: 1.5em -20px 10px -20px; - padding: 0 20px 10px 20px; - border-bottom: 1px solid #eee; } - .tsd-panel > h1.tsd-before-signature, .tsd-panel > h2.tsd-before-signature, .tsd-panel > h3.tsd-before-signature { - margin-bottom: 0; - border-bottom: 0; } - .tsd-panel table { - display: block; - width: 100%; - overflow: auto; - margin-top: 10px; - word-break: normal; - word-break: keep-all; } - .tsd-panel table th { - font-weight: bold; } - .tsd-panel table th, .tsd-panel table td { - padding: 6px 13px; - border: 1px solid #ddd; } - .tsd-panel table tr { - background-color: #fff; - border-top: 1px solid #ccc; } - .tsd-panel table tr:nth-child(2n) { - background-color: #f8f8f8; } - -.tsd-panel-group { - margin: 60px 0; } - .tsd-panel-group > h1, .tsd-panel-group > h2, .tsd-panel-group > h3 { - padding-left: 20px; - padding-right: 20px; } - -#tsd-search { - transition: background-color 0.2s; } - #tsd-search .title { - position: relative; - z-index: 2; } - #tsd-search .field { - position: absolute; - left: 0; - top: 0; - right: 40px; - height: 40px; } - #tsd-search .field input { - box-sizing: border-box; - position: relative; - top: -50px; - z-index: 1; - width: 100%; - padding: 0 10px; - opacity: 0; - outline: 0; - border: 0; - background: transparent; - color: #222; } - #tsd-search .field label { - position: absolute; - overflow: hidden; - right: -40px; } - #tsd-search .field input, - #tsd-search .title { - transition: opacity 0.2s; } - #tsd-search .results { - position: absolute; - visibility: hidden; - top: 40px; - width: 100%; - margin: 0; - padding: 0; - list-style: none; - box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); } - #tsd-search .results li { - padding: 0 10px; - background-color: #fdfdfd; } - #tsd-search .results li:nth-child(even) { - background-color: #fff; } - #tsd-search .results li.state { - display: none; } - #tsd-search .results li.current, - #tsd-search .results li:hover { - background-color: #eee; } - #tsd-search .results a { - display: block; } - #tsd-search .results a:before { - top: 10px; } - #tsd-search .results span.parent { - color: #808080; - font-weight: normal; } - #tsd-search.has-focus { - background-color: #eee; } - #tsd-search.has-focus .field input { - top: 0; - opacity: 1; } - #tsd-search.has-focus .title { - z-index: 0; - opacity: 0; } - #tsd-search.has-focus .results { - visibility: visible; } - #tsd-search.loading .results li.state.loading { - display: block; } - #tsd-search.failure .results li.state.failure { - display: block; } - -.tsd-signature { - margin: 0 0 1em 0; - padding: 10px; - border: 1px solid #eee; - font-family: Menlo, Monaco, Consolas, "Courier New", monospace; - font-size: 14px; } - .tsd-signature.tsd-kind-icon { - padding-left: 30px; } - .tsd-signature.tsd-kind-icon:before { - top: 10px; - left: 10px; } - .tsd-panel > .tsd-signature { - margin-left: -20px; - margin-right: -20px; - border-width: 1px 0; } - .tsd-panel > .tsd-signature.tsd-kind-icon { - padding-left: 40px; } - .tsd-panel > .tsd-signature.tsd-kind-icon:before { - left: 20px; } - -.tsd-signature-symbol { - color: #808080; - font-weight: normal; } - -.tsd-signature-type { - font-style: italic; - font-weight: normal; } - -.tsd-signatures { - padding: 0; - margin: 0 0 1em 0; - border: 1px solid #eee; } - .tsd-signatures .tsd-signature { - margin: 0; - border-width: 1px 0 0 0; - transition: background-color 0.1s; } - .tsd-signatures .tsd-signature:first-child { - border-top-width: 0; } - .tsd-signatures .tsd-signature.current { - background-color: #eee; } - .tsd-signatures.active > .tsd-signature { - cursor: pointer; } - .tsd-panel > .tsd-signatures { - margin-left: -20px; - margin-right: -20px; - border-width: 1px 0; } - .tsd-panel > .tsd-signatures .tsd-signature.tsd-kind-icon { - padding-left: 40px; } - .tsd-panel > .tsd-signatures .tsd-signature.tsd-kind-icon:before { - left: 20px; } - .tsd-panel > a.anchor + .tsd-signatures { - border-top-width: 0; - margin-top: -20px; } - -ul.tsd-descriptions { - position: relative; - overflow: hidden; - transition: height 0.3s; - padding: 0; - list-style: none; } - ul.tsd-descriptions.active > .tsd-description { - display: none; } - ul.tsd-descriptions.active > .tsd-description.current { - display: block; } - ul.tsd-descriptions.active > .tsd-description.fade-in { - animation: fade-in-delayed 0.3s; } - ul.tsd-descriptions.active > .tsd-description.fade-out { - animation: fade-out-delayed 0.3s; - position: absolute; - display: block; - top: 0; - left: 0; - right: 0; - opacity: 0; - visibility: hidden; } - ul.tsd-descriptions h4, ul.tsd-descriptions .tsd-index-panel h3, .tsd-index-panel ul.tsd-descriptions h3 { - font-size: 16px; - margin: 1em 0 0.5em 0; } - -ul.tsd-parameters, -ul.tsd-type-parameters { - list-style: square; - margin: 0; - padding-left: 20px; } - ul.tsd-parameters > li.tsd-parameter-siganture, - ul.tsd-type-parameters > li.tsd-parameter-siganture { - list-style: none; - margin-left: -20px; } - ul.tsd-parameters h5, - ul.tsd-type-parameters h5 { - font-size: 16px; - margin: 1em 0 0.5em 0; } - ul.tsd-parameters .tsd-comment, - ul.tsd-type-parameters .tsd-comment { - margin-top: -0.5em; } - -.tsd-sources { - font-size: 14px; - color: #808080; - margin: 0 0 1em 0; } - .tsd-sources a { - color: #808080; - text-decoration: underline; } - .tsd-sources ul, .tsd-sources p { - margin: 0 !important; } - .tsd-sources ul { - list-style: none; - padding: 0; } - -.tsd-page-toolbar { - position: absolute; - z-index: 1; - top: 0; - left: 0; - width: 100%; - height: 40px; - color: #333; - background: #fff; - border-bottom: 1px solid #eee; } - .tsd-page-toolbar a { - color: #333; - text-decoration: none; } - .tsd-page-toolbar a.title { - font-weight: bold; } - .tsd-page-toolbar a.title:hover { - text-decoration: underline; } - .tsd-page-toolbar .table-wrap { - display: table; - width: 100%; - height: 40px; } - .tsd-page-toolbar .table-cell { - display: table-cell; - position: relative; - white-space: nowrap; - line-height: 40px; } - .tsd-page-toolbar .table-cell:first-child { - width: 100%; } - -.tsd-widget:before, .tsd-select .tsd-select-label:before, .tsd-select .tsd-select-list li:before { - content: ''; - display: inline-block; - width: 40px; - height: 40px; - margin: 0 -8px 0 0; - background-image: url(../images/widgets.png); - background-repeat: no-repeat; - text-indent: -1024px; - vertical-align: bottom; } - @media (-webkit-min-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { - .tsd-widget:before, .tsd-select .tsd-select-label:before, .tsd-select .tsd-select-list li:before { - background-image: url(../images/widgets@2x.png); - background-size: 320px 40px; } } - -.tsd-widget { - display: inline-block; - overflow: hidden; - opacity: 0.6; - height: 40px; - transition: opacity 0.1s, background-color 0.2s; - vertical-align: bottom; - cursor: pointer; } - .tsd-widget:hover { - opacity: 0.8; } - .tsd-widget.active { - opacity: 1; - background-color: #eee; } - .tsd-widget.no-caption { - width: 40px; } - .tsd-widget.no-caption:before { - margin: 0; } - .tsd-widget.search:before { - background-position: 0 0; } - .tsd-widget.menu:before { - background-position: -40px 0; } - .tsd-widget.options:before { - background-position: -80px 0; } - .tsd-widget.options, .tsd-widget.menu { - display: none; } - @media (max-width: 900px) { - .tsd-widget.options, .tsd-widget.menu { - display: inline-block; } } - input[type=checkbox] + .tsd-widget:before { - background-position: -120px 0; } - input[type=checkbox]:checked + .tsd-widget:before { - background-position: -160px 0; } - -.tsd-select { - position: relative; - display: inline-block; - height: 40px; - transition: opacity 0.1s, background-color 0.2s; - vertical-align: bottom; - cursor: pointer; } - .tsd-select .tsd-select-label { - opacity: 0.6; - transition: opacity 0.2s; } - .tsd-select .tsd-select-label:before { - background-position: -240px 0; } - .tsd-select.active .tsd-select-label { - opacity: 0.8; } - .tsd-select.active .tsd-select-list { - visibility: visible; - opacity: 1; - transition-delay: 0s; } - .tsd-select .tsd-select-list { - position: absolute; - visibility: hidden; - top: 40px; - left: 0; - margin: 0; - padding: 0; - opacity: 0; - list-style: none; - box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); - transition: visibility 0s 0.2s, opacity 0.2s; } - .tsd-select .tsd-select-list li { - padding: 0 20px 0 0; - background-color: #fdfdfd; } - .tsd-select .tsd-select-list li:before { - background-position: 40px 0; } - .tsd-select .tsd-select-list li:nth-child(even) { - background-color: #fff; } - .tsd-select .tsd-select-list li:hover { - background-color: #eee; } - .tsd-select .tsd-select-list li.selected:before { - background-position: -200px 0; } - @media (max-width: 900px) { - .tsd-select .tsd-select-list { - top: 0; - left: auto; - right: 100%; - margin-right: -5px; } - .tsd-select .tsd-select-label:before { - background-position: -280px 0; } } - -img { - max-width: 100%; } diff --git a/doc/assets/images/icons.png b/doc/assets/images/icons.png deleted file mode 100644 index 3836d5f..0000000 Binary files a/doc/assets/images/icons.png and /dev/null differ diff --git a/doc/assets/images/icons@2x.png b/doc/assets/images/icons@2x.png deleted file mode 100644 index 5a209e2..0000000 Binary files a/doc/assets/images/icons@2x.png and /dev/null differ diff --git a/doc/assets/images/widgets.png b/doc/assets/images/widgets.png deleted file mode 100644 index c738053..0000000 Binary files a/doc/assets/images/widgets.png and /dev/null differ diff --git a/doc/assets/images/widgets@2x.png b/doc/assets/images/widgets@2x.png deleted file mode 100644 index 4bbbd57..0000000 Binary files a/doc/assets/images/widgets@2x.png and /dev/null differ diff --git a/doc/assets/js/main.js b/doc/assets/js/main.js deleted file mode 100644 index 667b269..0000000 --- a/doc/assets/js/main.js +++ /dev/null @@ -1 +0,0 @@ -!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";function x(e){return null!=e&&e===e.window}var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0>10|55296,1023&r|56320)}function oe(){T()}var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,k="sizzle"+1*new Date,m=n.document,S=0,r=0,p=ue(),x=ue(),N=ue(),A=ue(),D=function(e,t){return e===t&&(l=!0),0},j={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(m.childNodes),m.childNodes),t[m.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:m)!==C&&T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&U.test(t)){for((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=k),o=(l=h(t)).length;o--;)l[o]="#"+s+" "+xe(l[o]);c=l.join(","),f=ee.test(t)&&ye(e.parentNode)||e}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){A(t,!0)}finally{s===k&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[k]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),r=n.length;r--;)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:m;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),m!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},b.find.CLASS=d.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===m&&y(m,e)?-1:t===C||t.ownerDocument===m&&y(m,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]===m?-1:s[r]===m?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),d.matchesSelector&&E&&!A[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this);if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),D.test(r[1])&&k.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}).prototype=k.fn,q=k(E);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;nx",y.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function De(e,i,o){o?(Q.set(e,i,!1),k.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(k.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&k.event.add(e,i,ke)}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(t);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ie,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return void 0!==k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(R)||[""]).length;l--;)d=g=(s=Ee.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=k.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=k.event.special[d]||{},c=k.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(R)||[""]).length;l--;)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=k.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)k.event.remove(e,d+t[l],n,r,!0);k.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=k.event.special[s.type]||{};for(u[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/\s*$/g;function Oe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),a=Q.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=oe(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Vt,Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||k.expando+"_"+kt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Yt,"$1"+r):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?k(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Vt=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Vt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=D.exec(e))?[t.createElement(i[1])]:(i=we([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=k.css(e,"position"),c=k(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=k.css(e,"top"),u=k.css(e,"left"),i=("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,r.left):(a=parseFloat(o)||0,parseFloat(u)||0),m(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||ie})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;k.fn[t]=function(e){return _(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=ze(y.pixelPosition,function(e,t){if(t)return t=_e(e,n),$e.test(t)?k(e).position()[n]+"px":t})}),k.each({Height:"height",Width:"width"},function(a,s){k.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){k.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return _(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?k.css(e,t,i):k.style(e,t,n,i)},s,n?e:void 0,n)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0":">",'"':""","'":"'","`":"`"},P=h.invert(L);h.escape=W(L),h.unescape=W(P),h.result=function(n,r,t){h.isArray(r)||(r=[r]);var e=r.length;if(!e)return h.isFunction(t)?t.call(n):t;for(var u=0;u/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};function $(n){return"\\"+U[n]}var J=/(.)^/,U={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},V=/\\|'|\r|\n|\u2028|\u2029/g;h.template=function(i,n,r){!n&&r&&(n=r),n=h.defaults({},n,h.templateSettings);var t,e=RegExp([(n.escape||J).source,(n.interpolate||J).source,(n.evaluate||J).source].join("|")+"|$","g"),o=0,a="__p+='";i.replace(e,function(n,r,t,e,u){return a+=i.slice(o,u).replace(V,$),o=u+n.length,r?a+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":t?a+="'+\n((__t=("+t+"))==null?'':__t)+\n'":e&&(a+="';\n"+e+"\n__p+='"),n}),a+="';\n",n.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{t=new Function(n.variable||"obj","_",a)}catch(n){throw n.source=a,n}function u(n){return t.call(this,n,h)}var c=n.variable||"obj";return u.source="function("+c+"){\n"+a+"}",u},h.chain=function(n){var r=h(n);return r._chain=!0,r};function G(n,r){return n._chain?h(r).chain():r}h.mixin=function(t){return h.each(h.functions(t),function(n){var r=h[n]=t[n];h.prototype[n]=function(){var n=[this._wrapped];return u.apply(n,arguments),G(this,r.apply(h,n))}}),h},h.mixin(h),h.each(["pop","push","reverse","shift","sort","splice","unshift"],function(r){var t=e[r];h.prototype[r]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==r&&"splice"!==r||0!==n.length||delete n[0],G(this,n)}}),h.each(["concat","join","slice"],function(n){var r=e[n];h.prototype[n]=function(){return G(this,r.apply(this._wrapped,arguments))}}),h.prototype.value=function(){return this._wrapped},h.prototype.valueOf=h.prototype.toJSON=h.prototype.value,h.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return h})}(),function(t){var e="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global;if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(i,n,r){e.Backbone=t(e,r,i,n)});else if("undefined"!=typeof exports){var n,i=require("underscore");try{n=require("jquery")}catch(r){}t(e,exports,i,n)}else e.Backbone=t(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}(function(t,e,i,n){var r=t.Backbone,s=Array.prototype.slice;e.VERSION="1.4.0",e.$=n,e.noConflict=function(){return t.Backbone=r,this},e.emulateHTTP=!1,e.emulateJSON=!1;var h,a=e.Events={},o=/\s+/,u=function(t,e,n,r,s){var h,a=0;if(n&&"object"==typeof n){void 0!==r&&"context"in s&&void 0===s.context&&(s.context=r);for(h=i.keys(n);athis.length&&(r=this.length),r<0&&(r+=this.length+1);var g,m,s=[],a=[],o=[],h=[],u={},l=e.add,c=e.merge,f=e.remove,d=!1,v=this.comparator&&null==r&&!1!==e.sort,p=i.isString(this.comparator)?this.comparator:null;for(m=0;m=this.length)return e.QueryLexer.EOS;var t=this.str.charAt(this.pos);return this.pos+=1,t},e.QueryLexer.prototype.width=function(){return this.pos-this.start},e.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},e.QueryLexer.prototype.backup=function(){this.pos-=1},e.QueryLexer.prototype.acceptDigitRun=function(){for(var t,r;47<(r=(t=this.next()).charCodeAt(0))&&r<58;);t!=e.QueryLexer.EOS&&this.backup()},e.QueryLexer.prototype.more=function(){return this.posscrollTop;)index-=1;for(;index ul.current"),_this.$navigation=_this.$el.parents(".menu-sticky-wrap"),_this.$container=_this.$el.parents(".row"),_this.listenTo(typedoc.viewport,"resize",_this.onResize),hasPositionSticky||_this.listenTo(typedoc.viewport,"scroll",_this.onScroll),_this.onResize(typedoc.viewport.width,typedoc.viewport.height),_this}return __extends(MenuSticky,_super),MenuSticky.prototype.setState=function(state){this.state!=state&&(""!=this.state&&this.$navigation.removeClass(this.state),this.state=state,""!=this.state&&this.$navigation.addClass(this.state))},MenuSticky.prototype.onResize=function(width,height){this.stickyMode=StickyMode.None,this.setState("");var containerTop=this.$container.offset().top,containerHeight=this.$container.height()||0,bottom=containerTop+containerHeight;if(this.$navigation.height()this.stickyBottom?this.setState("sticky-bottom"):this.setState(scrollTop+20>this.stickyTop?"sticky-current":""):this.stickyMode==StickyMode.Secondary&&(scrollTop>this.stickyBottom?this.setState("sticky-bottom"):this.setState(scrollTop+20>this.stickyTop?"sticky":""))},MenuSticky}(Backbone.View);typedoc.MenuSticky=MenuSticky,typedoc.registerComponent(MenuSticky,".menu-sticky")}(typedoc||(typedoc={})),function(typedoc){var search;!function(search){var SearchLoadingState;!function(SearchLoadingState){SearchLoadingState[SearchLoadingState.Idle=0]="Idle",SearchLoadingState[SearchLoadingState.Loading=1]="Loading",SearchLoadingState[SearchLoadingState.Ready=2]="Ready",SearchLoadingState[SearchLoadingState.Failure=3]="Failure"}(SearchLoadingState||(SearchLoadingState={}));var $el=$("#tsd-search"),$field=$("#tsd-search-field"),$results=$(".results"),base=$el.attr("data-base")+"/",query="",loadingState=SearchLoadingState.Idle,hasFocus=!1,preventPress=!1,index,resultClicked=!1;function createIndex(){var builder=new lunr.Builder;builder.pipeline.add(lunr.trimmer),builder.field("name",{boost:10}),builder.field("parent"),builder.ref("id");var rows=search.data.rows,pos=0,length=rows.length;!function batch(){for(var cycles=0;cycles++<100;)if(builder.add(rows[pos]),++pos==length)return index=builder.build(),setLoadingState(SearchLoadingState.Ready);setTimeout(batch,10)}()}function loadIndex(){loadingState==SearchLoadingState.Idle&&(setTimeout(function(){loadingState==SearchLoadingState.Idle&&setLoadingState(SearchLoadingState.Loading)},500),void 0!==search.data?createIndex():$.get($el.attr("data-index")).done(function(source){eval(source),createIndex()}).fail(function(){setLoadingState(SearchLoadingState.Failure)}))}function updateResults(){if($results.empty(),loadingState==SearchLoadingState.Ready&&query){var res=index.search("*"+query+"*");0===res.length&&(res=index.search("*"+query+"~1*"));for(var i=0,c=Math.min(10,res.length);i"+match+""}),parent=row.parent||"";(parent=parent.replace(new RegExp(query,"i"),function(match){return""+match+""}))&&(name=''+parent+"."+name),$results.append('
  • '+name+"
  • ")}}}function setLoadingState(value){loadingState!=value&&($el.removeClass(SearchLoadingState[loadingState].toLowerCase()),loadingState=value,$el.addClass(SearchLoadingState[loadingState].toLowerCase()),value==SearchLoadingState.Ready&&updateResults())}function setHasFocus(value){hasFocus!=value&&(hasFocus=value,$el.toggleClass("has-focus"),value?(setQuery(""),$field.val("")):$field.val(query))}function setQuery(value){query=$.trim(value),updateResults()}function setCurrentResult(dir){var $current=$results.find(".current");if(0==$current.length)$results.find(1==dir?"li:first-child":"li:last-child").addClass("current");else{var $rel=1==dir?$current.next("li"):$current.prev("li");0<$rel.length&&($current.removeClass("current"),$rel.addClass("current"))}}function gotoCurrentResult(){var $current=$results.find(".current");0==$current.length&&($current=$results.find("li:first-child")),0<$current.length&&(window.location.href=$current.find("a").prop("href"),$field.blur())}$results.on("mousedown",function(){resultClicked=!0}).on("mouseup",function(){setHasFocus(resultClicked=!1)}),$field.on("focusin",function(){setHasFocus(!0),loadIndex()}).on("focusout",function(){resultClicked?resultClicked=!1:setTimeout(function(){return setHasFocus(!1)},100)}).on("input",function(){setQuery($.trim(($field.val()||"").toString()))}).on("keydown",function(e){13==e.keyCode||27==e.keyCode||38==e.keyCode||40==e.keyCode?(preventPress=!0,e.preventDefault(),13==e.keyCode?gotoCurrentResult():27==e.keyCode?$field.blur():38==e.keyCode?setCurrentResult(-1):40==e.keyCode&&setCurrentResult(1)):preventPress=!1}).on("keypress",function(e){preventPress&&e.preventDefault()}),$("body").on("keydown",function(e){e.altKey||e.ctrlKey||e.metaKey||!hasFocus&&47this.groups.length-1&&(index=this.groups.length-1),this.index!=index){var to=this.groups[index];if(-1 .tsd-signature");if(!($signatures.length<2)){this.$container=this.$el.siblings(".tsd-descriptions");var $descriptions=this.$container.find("> .tsd-description");this.groups=[],$signatures.each(function(index,el){_this.groups.push(new SignatureGroup($(el),$descriptions.eq(index)))})}},Signature.prototype.onClick=function(e){var _this=this;e.preventDefault(),_(this.groups).forEach(function(group,index){group.$signature.is(e.currentTarget)&&_this.setIndex(index)})},Signature}(Backbone.View);typedoc.registerComponent(Signature,".tsd-signatures")}(typedoc||(typedoc={})),function(typedoc){var Toggle=function(_super){function Toggle(options){var _this=_super.call(this,options)||this;return _this.className=_this.$el.attr("data-toggle")||"",_this.$el.on(typedoc.pointerUp,function(e){return _this.onPointerUp(e)}),_this.$el.on("click",function(e){return e.preventDefault()}),typedoc.$document.on(typedoc.pointerDown,function(e){return _this.onDocumentPointerDown(e)}),typedoc.$document.on(typedoc.pointerUp,function(e){return _this.onDocumentPointerUp(e)}),_this}return __extends(Toggle,_super),Toggle.prototype.setActive=function(value){if(this.active!=value){this.active=value,typedoc.$html.toggleClass("has-"+this.className,value),this.$el.toggleClass("active",value);var transition=(this.active?"to-has-":"from-has-")+this.className;typedoc.$html.addClass(transition),setTimeout(function(){return typedoc.$html.removeClass(transition)},500)}},Toggle.prototype.onPointerUp=function(event){typedoc.hasPointerMoved||(this.setActive(!0),event.preventDefault())},Toggle.prototype.onDocumentPointerDown=function(e){if(this.active){var $path=$(e.target).parents().addBack();if($path.hasClass("col-menu"))return;if($path.hasClass("tsd-filter-group"))return;this.setActive(!1)}},Toggle.prototype.onDocumentPointerUp=function(e){var _this=this;if(!typedoc.hasPointerMoved&&this.active){var $path=$(e.target).parents().addBack();if($path.hasClass("col-menu")){var $link=$path.filter("a");if($link.length){var href=window.location.href;-1!=href.indexOf("#")&&(href=href.substr(0,href.indexOf("#"))),$link.prop("href").substr(0,href.length)==href&&setTimeout(function(){return _this.setActive(!1)},250)}}}},Toggle}(Backbone.View);typedoc.registerComponent(Toggle,"a[data-toggle]")}(typedoc||(typedoc={})),function(typedoc){typedoc.app=new typedoc.Application}(typedoc||(typedoc={})); \ No newline at end of file diff --git a/doc/assets/js/search.js b/doc/assets/js/search.js deleted file mode 100644 index c96d286..0000000 --- a/doc/assets/js/search.js +++ /dev/null @@ -1,3 +0,0 @@ -var typedoc = typedoc || {}; - typedoc.search = typedoc.search || {}; - typedoc.search.data = {"kinds":{"1":"External module","32":"Variable","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","2097152":"Object literal"},"rows":[{"id":0,"kind":1,"name":"\"interfaces\"","url":"modules/_interfaces_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":256,"name":"IAssets","url":"interfaces/_interfaces_.iassets.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"interfaces\""},{"id":2,"kind":256,"name":"IAsset","url":"interfaces/_interfaces_.iasset.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"interfaces\""},{"id":3,"kind":1024,"name":"name","url":"interfaces/_interfaces_.iasset.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"interfaces\".IAsset"},{"id":4,"kind":1024,"name":"params","url":"interfaces/_interfaces_.iasset.html#params","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"interfaces\".IAsset"},{"id":5,"kind":256,"name":"IValidExtensions","url":"interfaces/_interfaces_.ivalidextensions.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"interfaces\""},{"id":6,"kind":1024,"name":"file","url":"interfaces/_interfaces_.ivalidextensions.html#file","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"interfaces\".IValidExtensions"},{"id":7,"kind":1024,"name":"img","url":"interfaces/_interfaces_.ivalidextensions.html#img","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"interfaces\".IValidExtensions"},{"id":8,"kind":1024,"name":"sound","url":"interfaces/_interfaces_.ivalidextensions.html#sound","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"interfaces\".IValidExtensions"},{"id":9,"kind":256,"name":"IDefault","url":"interfaces/_interfaces_.idefault.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"interfaces\""},{"id":10,"kind":1024,"name":"maxPending","url":"interfaces/_interfaces_.idefault.html#maxpending","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"interfaces\".IDefault"},{"id":11,"kind":1024,"name":"tick","url":"interfaces/_interfaces_.idefault.html#tick","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"interfaces\".IDefault"},{"id":12,"kind":256,"name":"IAjax","url":"interfaces/_interfaces_.iajax.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"interfaces\""},{"id":13,"kind":1024,"name":"file","url":"interfaces/_interfaces_.iajax.html#file","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"interfaces\".IAjax"},{"id":14,"kind":1024,"name":"img","url":"interfaces/_interfaces_.iajax.html#img","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"interfaces\".IAjax"},{"id":15,"kind":1024,"name":"sound","url":"interfaces/_interfaces_.iajax.html#sound","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"interfaces\".IAjax"},{"id":16,"kind":256,"name":"IResponse","url":"interfaces/_interfaces_.iresponse.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"interfaces\""},{"id":17,"kind":1024,"name":"success","url":"interfaces/_interfaces_.iresponse.html#success","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"interfaces\".IResponse"},{"id":18,"kind":1024,"name":"message","url":"interfaces/_interfaces_.iresponse.html#message","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"interfaces\".IResponse"},{"id":19,"kind":256,"name":"IParams","url":"interfaces/_interfaces_.iparams.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"interfaces\""},{"id":20,"kind":1,"name":"\"request\"","url":"modules/_request_.html","classes":"tsd-kind-external-module"},{"id":21,"kind":128,"name":"Request","url":"classes/_request_.request.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"request\""},{"id":22,"kind":1024,"name":"fsm","url":"classes/_request_.request.html#fsm","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"request\".Request"},{"id":23,"kind":1024,"name":"ajax","url":"classes/_request_.request.html#ajax","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"request\".Request"},{"id":24,"kind":512,"name":"constructor","url":"classes/_request_.request.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"request\".Request"},{"id":25,"kind":2048,"name":"send","url":"classes/_request_.request.html#send","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"request\".Request"},{"id":26,"kind":1,"name":"\"xhr\"","url":"modules/_xhr_.html","classes":"tsd-kind-external-module"},{"id":27,"kind":128,"name":"XHR","url":"classes/_xhr_.xhr.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"xhr\""},{"id":28,"kind":1024,"name":"path","url":"classes/_xhr_.xhr.html#path","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"xhr\".XHR"},{"id":29,"kind":1024,"name":"extension","url":"classes/_xhr_.xhr.html#extension","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"xhr\".XHR"},{"id":30,"kind":1024,"name":"type","url":"classes/_xhr_.xhr.html#type","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"xhr\".XHR"},{"id":31,"kind":1024,"name":"response","url":"classes/_xhr_.xhr.html#response","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"xhr\".XHR"},{"id":32,"kind":1024,"name":"request","url":"classes/_xhr_.xhr.html#request","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"xhr\".XHR"},{"id":33,"kind":512,"name":"constructor","url":"classes/_xhr_.xhr.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"xhr\".XHR"},{"id":34,"kind":2048,"name":"sendRequest","url":"classes/_xhr_.xhr.html#sendrequest","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"xhr\".XHR"},{"id":35,"kind":2048,"name":"getRequestStatus","url":"classes/_xhr_.xhr.html#getrequeststatus","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"xhr\".XHR"},{"id":36,"kind":2048,"name":"isRequestSent","url":"classes/_xhr_.xhr.html#isrequestsent","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"xhr\".XHR"},{"id":37,"kind":1,"name":"\"extension\"","url":"modules/_extension_.html","classes":"tsd-kind-external-module"},{"id":38,"kind":128,"name":"Extension","url":"classes/_extension_.extension.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"extension\""},{"id":39,"kind":2097152,"name":"validExtensions","url":"classes/_extension_.extension.html#validextensions","classes":"tsd-kind-object-literal tsd-parent-kind-class tsd-is-static","parent":"\"extension\".Extension"},{"id":40,"kind":32,"name":"file","url":"classes/_extension_.extension.html#validextensions.file","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"\"extension\".Extension.validExtensions"},{"id":41,"kind":32,"name":"img","url":"classes/_extension_.extension.html#validextensions.img","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"\"extension\".Extension.validExtensions"},{"id":42,"kind":32,"name":"sound","url":"classes/_extension_.extension.html#validextensions.sound","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"\"extension\".Extension.validExtensions"},{"id":43,"kind":2048,"name":"get","url":"classes/_extension_.extension.html#get","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"\"extension\".Extension"},{"id":44,"kind":2048,"name":"getAssetType","url":"classes/_extension_.extension.html#getassettype","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"\"extension\".Extension"},{"id":45,"kind":2048,"name":"check","url":"classes/_extension_.extension.html#check","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static","parent":"\"extension\".Extension"},{"id":46,"kind":1,"name":"\"asset\"","url":"modules/_asset_.html","classes":"tsd-kind-external-module"},{"id":47,"kind":128,"name":"Asset","url":"classes/_asset_.asset.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"asset\""},{"id":48,"kind":1024,"name":"name","url":"classes/_asset_.asset.html#name","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"asset\".Asset"},{"id":49,"kind":1024,"name":"params","url":"classes/_asset_.asset.html#params","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"asset\".Asset"},{"id":50,"kind":1024,"name":"xhr","url":"classes/_asset_.asset.html#xhr","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"asset\".Asset"},{"id":51,"kind":1024,"name":"isValid","url":"classes/_asset_.asset.html#isvalid","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"asset\".Asset"},{"id":52,"kind":512,"name":"constructor","url":"classes/_asset_.asset.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"asset\".Asset"},{"id":53,"kind":2048,"name":"getContent","url":"classes/_asset_.asset.html#getcontent","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"asset\".Asset"},{"id":54,"kind":1,"name":"\"progress\"","url":"modules/_progress_.html","classes":"tsd-kind-external-module"},{"id":55,"kind":128,"name":"Progress","url":"classes/_progress_.progress.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"progress\""},{"id":56,"kind":1024,"name":"rate","url":"classes/_progress_.progress.html#rate","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"progress\".Progress"},{"id":57,"kind":1024,"name":"target","url":"classes/_progress_.progress.html#target","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"progress\".Progress"},{"id":58,"kind":1024,"name":"total","url":"classes/_progress_.progress.html#total","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"progress\".Progress"},{"id":59,"kind":1024,"name":"percentage","url":"classes/_progress_.progress.html#percentage","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"progress\".Progress"},{"id":60,"kind":1024,"name":"speed","url":"classes/_progress_.progress.html#speed","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"progress\".Progress"},{"id":61,"kind":1024,"name":"nbAssets","url":"classes/_progress_.progress.html#nbassets","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"progress\".Progress"},{"id":62,"kind":1024,"name":"bar","url":"classes/_progress_.progress.html#bar","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"progress\".Progress"},{"id":63,"kind":1024,"name":"barWidth","url":"classes/_progress_.progress.html#barwidth","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"progress\".Progress"},{"id":64,"kind":1024,"name":"number","url":"classes/_progress_.progress.html#number","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"progress\".Progress"},{"id":65,"kind":1024,"name":"text","url":"classes/_progress_.progress.html#text","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"progress\".Progress"},{"id":66,"kind":1024,"name":"animation","url":"classes/_progress_.progress.html#animation","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"progress\".Progress"},{"id":67,"kind":1024,"name":"running","url":"classes/_progress_.progress.html#running","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"progress\".Progress"},{"id":68,"kind":512,"name":"constructor","url":"classes/_progress_.progress.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"progress\".Progress"},{"id":69,"kind":2048,"name":"animateBar","url":"classes/_progress_.progress.html#animatebar","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"progress\".Progress"},{"id":70,"kind":2048,"name":"start","url":"classes/_progress_.progress.html#start","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"progress\".Progress"},{"id":71,"kind":2048,"name":"reset","url":"classes/_progress_.progress.html#reset","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"progress\".Progress"},{"id":72,"kind":2048,"name":"update","url":"classes/_progress_.progress.html#update","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"progress\".Progress"},{"id":73,"kind":2048,"name":"updateBar","url":"classes/_progress_.progress.html#updatebar","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"progress\".Progress"},{"id":74,"kind":1,"name":"\"orbis\"","url":"modules/_orbis_.html","classes":"tsd-kind-external-module"},{"id":75,"kind":128,"name":"Loader","url":"classes/_orbis_.loader.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"orbis\""},{"id":76,"kind":1024,"name":"assets","url":"classes/_orbis_.loader.html#assets","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"orbis\".Loader"},{"id":77,"kind":1024,"name":"path","url":"classes/_orbis_.loader.html#path","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"orbis\".Loader"},{"id":78,"kind":1024,"name":"progress","url":"classes/_orbis_.loader.html#progress","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"orbis\".Loader"},{"id":79,"kind":1024,"name":"pendingRequests","url":"classes/_orbis_.loader.html#pendingrequests","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"orbis\".Loader"},{"id":80,"kind":1024,"name":"tick","url":"classes/_orbis_.loader.html#tick","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"orbis\".Loader"},{"id":81,"kind":1024,"name":"maxPendingRequests","url":"classes/_orbis_.loader.html#maxpendingrequests","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"orbis\".Loader"},{"id":82,"kind":1024,"name":"default","url":"classes/_orbis_.loader.html#default","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"orbis\".Loader"},{"id":83,"kind":1024,"name":"log","url":"classes/_orbis_.loader.html#log","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"orbis\".Loader"},{"id":84,"kind":512,"name":"constructor","url":"classes/_orbis_.loader.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"orbis\".Loader"},{"id":85,"kind":2048,"name":"setLogLevel","url":"classes/_orbis_.loader.html#setloglevel","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"orbis\".Loader"},{"id":86,"kind":2048,"name":"getLogLevel","url":"classes/_orbis_.loader.html#getloglevel","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"orbis\".Loader"},{"id":87,"kind":2048,"name":"getAsset","url":"classes/_orbis_.loader.html#getasset","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"orbis\".Loader"},{"id":88,"kind":2048,"name":"getContent","url":"classes/_orbis_.loader.html#getcontent","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"orbis\".Loader"},{"id":89,"kind":2048,"name":"getList","url":"classes/_orbis_.loader.html#getlist","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"orbis\".Loader"},{"id":90,"kind":2048,"name":"start","url":"classes/_orbis_.loader.html#start","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"orbis\".Loader"},{"id":91,"kind":2048,"name":"resetProgress","url":"classes/_orbis_.loader.html#resetprogress","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"orbis\".Loader"},{"id":92,"kind":2048,"name":"createAssets","url":"classes/_orbis_.loader.html#createassets","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"orbis\".Loader"},{"id":93,"kind":2048,"name":"sendRequest","url":"classes/_orbis_.loader.html#sendrequest","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"orbis\".Loader"},{"id":94,"kind":2048,"name":"getNextAssetToLoad","url":"classes/_orbis_.loader.html#getnextassettoload","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"orbis\".Loader"},{"id":95,"kind":2048,"name":"removeTrailingSlash","url":"classes/_orbis_.loader.html#removetrailingslash","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"\"orbis\".Loader"}]}; \ No newline at end of file diff --git a/doc/classes/_asset_.asset.html b/doc/classes/_asset_.asset.html deleted file mode 100644 index 89a04d3..0000000 --- a/doc/classes/_asset_.asset.html +++ /dev/null @@ -1,365 +0,0 @@ - - - - - - Asset | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Class Asset

    -
    -
    -
    -
    -
    -
    -
    -

    Hierarchy

    -
      -
    • - Asset -
    • -
    -
    -
    -

    Implements

    - -
    -
    -

    Index

    -
    -
    -
    -

    Constructors

    - -
    -
    -

    Properties

    - -
    -
    -

    Methods

    - -
    -
    -
    -
    -
    -

    Constructors

    -
    - -

    constructor

    -
      -
    • new Asset(name: string, path: string, params?: IParams | null): Asset
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        name: string
        -
      • -
      • -
        path: string
        -
      • -
      • -
        Optional params: IParams | null
        -
      • -
      -

      Returns Asset

      -
    • -
    -
    -
    -
    -

    Properties

    -
    - -

    isValid

    -
    isValid: boolean = false
    - -
    -
    - -

    name

    -
    name: string
    - -
    -
    - -

    params

    -
    params: IParams | null
    - -
    -
    - -

    xhr

    -
    xhr: XHR | null = null
    - -
    -
    -
    -

    Methods

    -
    - -

    getContent

    -
      -
    • getContent(): Object | HTMLImageElement | AudioBuffer | string | null | false
    • -
    -
      -
    • - -

      Returns Object - | - HTMLImageElement - | - AudioBuffer - | - string - | - null - | - false -

      -
    • -
    -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/classes/_extension_.extension.html b/doc/classes/_extension_.extension.html deleted file mode 100644 index 7c7ea94..0000000 --- a/doc/classes/_extension_.extension.html +++ /dev/null @@ -1,362 +0,0 @@ - - - - - - Extension | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Class Extension

    -
    -
    -
    -
    -
    -
    -
    -

    Hierarchy

    -
      -
    • - Extension -
    • -
    -
    -
    -

    Index

    -
    -
    -
    -

    Methods

    - -
    -
    -

    Object literals

    - -
    -
    -
    -
    -
    -

    Methods

    -
    - -

    Static Private check

    -
      -
    • check(extension: string, validExtensions: string[]): boolean
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        extension: string
        -
      • -
      • -
        validExtensions: string[]
        -
      • -
      -

      Returns boolean

      -
    • -
    -
    -
    - -

    Static get

    -
      -
    • get(path: string): string | undefined
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        path: string
        -
      • -
      -

      Returns string - | - undefined -

      -
    • -
    -
    -
    - -

    Static getAssetType

    -
      -
    • getAssetType(extension: string): string | false
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        extension: string
        -
      • -
      -

      Returns string - | - false -

      -
    • -
    -
    -
    -
    -

    Object literals

    -
    - -

    Static validExtensions

    -
    validExtensions: object
    - -
    - -

    file

    -
    file: string[] = ["txt", "text", "json", "glsl", "babylon"]
    - -
    -
    - -

    img

    -
    img: string[] = ["png", "jpg", "jpeg", "gif"]
    - -
    -
    - -

    sound

    -
    sound: string[] = ["mp3", "ogg", "wav"]
    - -
    -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/classes/_orbis_.loader.html b/doc/classes/_orbis_.loader.html deleted file mode 100644 index 6252b4d..0000000 --- a/doc/classes/_orbis_.loader.html +++ /dev/null @@ -1,665 +0,0 @@ - - - - - - Loader | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Class Loader

    -
    -
    -
    -
    -
    -
    -
    -

    Hierarchy

    -
      -
    • - Loader -
    • -
    -
    -
    -

    Index

    -
    - -
    -
    -
    -

    Constructors

    -
    - -

    constructor

    -
      -
    • new Loader(assets: IAssets, assetsPath: string, progressBarId?: undefined | string, progressTextId?: undefined | string): Loader
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        assets: IAssets
        -
      • -
      • -
        assetsPath: string
        -
      • -
      • -
        Optional progressBarId: undefined | string
        -
      • -
      • -
        Optional progressTextId: undefined | string
        -
      • -
      -

      Returns Loader

      -
    • -
    -
    -
    -
    -

    Properties

    -
    - -

    assets

    -
    assets: IAssets
    - -
    -
    - -

    default

    -
    default: IDefault
    - -
    -
    - -

    log

    -
    log: Group
    - -
    -
    - -

    maxPendingRequests

    -
    maxPendingRequests: number
    - -
    -
    - -

    path

    -
    path: string
    - -
    -
    - -

    pendingRequests

    -
    pendingRequests: number
    - -
    -
    - -

    progress

    -
    progress: Progress
    - -
    -
    - -

    tick

    -
    tick: number
    - -
    -
    -
    -

    Methods

    -
    - -

    Private createAssets

    -
      -
    • createAssets(): void
    • -
    - -
    -
    - -

    getAsset

    -
      -
    • getAsset(name: string): Asset | false
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        name: string
        -
      • -
      -

      Returns Asset - | - false -

      -
    • -
    -
    -
    - -

    getContent

    -
      -
    • getContent(name: string): Object | HTMLImageElement | AudioBuffer | string | null | false
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        name: string
        -
      • -
      -

      Returns Object - | - HTMLImageElement - | - AudioBuffer - | - string - | - null - | - false -

      -
    • -
    -
    -
    - -

    getList

    -
      -
    • getList(type: string): Asset[] | false
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        type: string
        -
      • -
      -

      Returns Asset[] - | - false -

      -
    • -
    -
    -
    - -

    getLogLevel

    -
      -
    • getLogLevel(): LevelName
    • -
    -
      -
    • - -

      Returns LevelName

      -
    • -
    -
    -
    - -

    Private getNextAssetToLoad

    -
      -
    • getNextAssetToLoad(): Asset | false
    • -
    - -
    -
    - -

    Private removeTrailingSlash

    -
      -
    • removeTrailingSlash(path: string): string
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        path: string
        -
      • -
      -

      Returns string

      -
    • -
    -
    -
    - -

    resetProgress

    -
      -
    • resetProgress(): void
    • -
    - -
    -
    - -

    Private sendRequest

    -
      -
    • sendRequest(): boolean
    • -
    - -
    -
    - -

    setLogLevel

    -
      -
    • setLogLevel(name: LevelName): LevelName
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        name: LevelName
        -
      • -
      -

      Returns LevelName

      -
    • -
    -
    -
    - -

    start

    - - -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/classes/_progress_.progress.html b/doc/classes/_progress_.progress.html deleted file mode 100644 index eb118cc..0000000 --- a/doc/classes/_progress_.progress.html +++ /dev/null @@ -1,551 +0,0 @@ - - - - - - Progress | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Class Progress

    -
    -
    -
    -
    -
    -
    -
    -

    Hierarchy

    -
      -
    • - Progress -
    • -
    -
    -
    -

    Index

    -
    -
    -
    -

    Constructors

    - -
    -
    -

    Properties

    - -
    -
    -

    Methods

    - -
    -
    -
    -
    -
    -

    Constructors

    -
    - -

    constructor

    -
      -
    • new Progress(barId?: string | null, textId?: string | null): Progress
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        Optional barId: string | null
        -
      • -
      • -
        Optional textId: string | null
        -
      • -
      -

      Returns Progress

      -
    • -
    -
    -
    -
    -

    Properties

    -
    - -

    Private animation

    -
    animation: Player | null
    - -
    -
    - -

    Private bar

    -
    bar: Binding | null
    - -
    -
    - -

    Private barWidth

    -
    barWidth: number
    - -
    -
    - -

    nbAssets

    -
    nbAssets: number
    - -
    -
    - -

    Private number

    -
    number: Binding | null
    - -
    -
    - -

    Private percentage

    -
    percentage: number
    - -
    -
    - -

    Private rate

    -
    rate: number
    - -
    -
    - -

    running

    -
    running: boolean
    - -
    -
    - -

    Private speed

    -
    speed: number
    - -
    -
    - -

    Private target

    -
    target: number
    - -
    -
    - -

    Private text

    -
    text: Binding | null
    - -
    -
    - -

    total

    -
    total: number
    - -
    -
    -
    -

    Methods

    -
    - -

    Private animateBar

    -
      -
    • animateBar(): boolean
    • -
    - -
    -
    - -

    reset

    -
      -
    • reset(): void
    • -
    - -
    -
    - -

    start

    -
      -
    • start(): void
    • -
    - -
    -
    - -

    update

    -
      -
    • update(text: string): void
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        text: string
        -
      • -
      -

      Returns void

      -
    • -
    -
    -
    - -

    Private updateBar

    -
      -
    • updateBar(delta: number): boolean
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        delta: number
        -
      • -
      -

      Returns boolean

      -
    • -
    -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/classes/_request_.request.html b/doc/classes/_request_.request.html deleted file mode 100644 index 64d6463..0000000 --- a/doc/classes/_request_.request.html +++ /dev/null @@ -1,315 +0,0 @@ - - - - - - Request | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Class Request

    -
    -
    -
    -
    -
    -
    -
    -

    Hierarchy

    -
      -
    • - Request -
    • -
    -
    -
    -

    Index

    -
    -
    -
    -

    Constructors

    - -
    -
    -

    Properties

    - -
    -
    -

    Methods

    - -
    -
    -
    -
    -
    -

    Constructors

    -
    - -

    constructor

    - - -
    -
    -
    -

    Properties

    -
    - -

    ajax

    -
    ajax: IAjax
    - -
    -
    - -

    fsm

    -
    fsm: FSM
    - -
    -
    -
    -

    Methods

    -
    - -

    send

    -
      -
    • send(path: string, type: string): Promise<HTMLImageElement | AudioBuffer | string | Object | null>
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        path: string
        -
      • -
      • -
        type: string
        -
      • -
      -

      Returns Promise<HTMLImageElement | AudioBuffer | string | Object | null>

      -
    • -
    -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/classes/_xhr_.xhr.html b/doc/classes/_xhr_.xhr.html deleted file mode 100644 index 4451103..0000000 --- a/doc/classes/_xhr_.xhr.html +++ /dev/null @@ -1,413 +0,0 @@ - - - - - - XHR | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Class XHR

    -
    -
    -
    -
    -
    -
    -
    -

    Hierarchy

    -
      -
    • - XHR -
    • -
    -
    -
    -

    Index

    -
    -
    -
    -

    Constructors

    - -
    -
    -

    Properties

    - -
    -
    -

    Methods

    - -
    -
    -
    -
    -
    -

    Constructors

    -
    - -

    constructor

    -
      -
    • new XHR(path: string, extension: string, type: string): XHR
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        path: string
        -
      • -
      • -
        extension: string
        -
      • -
      • -
        type: string
        -
      • -
      -

      Returns XHR

      -
    • -
    -
    -
    -
    -

    Properties

    -
    - -

    extension

    -
    extension: string
    - -
    -
    - -

    path

    -
    path: string
    - -
    -
    - -

    request

    -
    request: Request
    - -
    -
    - -

    response

    -
    response: Object | HTMLImageElement | AudioBuffer | string | null
    - -
    -
    - -

    type

    -
    type: string
    - -
    -
    -
    -

    Methods

    -
    - -

    getRequestStatus

    -
      -
    • getRequestStatus(): string | number | boolean
    • -
    -
      -
    • - -

      Returns string - | - number - | - boolean -

      -
    • -
    -
    -
    - -

    isRequestSent

    -
      -
    • isRequestSent(): boolean
    • -
    -
      -
    • - -

      Returns boolean

      -
    • -
    -
    -
    - -

    sendRequest

    -
      -
    • sendRequest(fileName: string): Promise<string>
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        fileName: string
        -
      • -
      -

      Returns Promise<string>

      -
    • -
    -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/globals.html b/doc/globals.html deleted file mode 100644 index 72f9388..0000000 --- a/doc/globals.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - - Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Orbis.js - Documentation

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    - -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/index.html b/doc/index.html deleted file mode 100644 index 66ae139..0000000 --- a/doc/index.html +++ /dev/null @@ -1,492 +0,0 @@ - - - - - - Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Orbis.js - Documentation

    -
    -
    -
    -
    -
    -
    -
    - -

    Synopsis

    -
    -

    Orbis.js is a lazy loader written in TypeScript.

    - -

    Motivation

    -
    -

    The main purpose of this library is to provide a simple way to load assets only when needed instead of loading everything when the main page loads.

    - -

    Installation

    -
    - -

    npm

    -
    -
    $ npm i @lcluber/orbisjs
    - -

    Yarn

    -
    -
    $ yarn add @lcluber/orbisjs
    - -

    Usage

    -
    - -

    html

    -
    -
    <div id="progressPanel">
    -  <button
    -    id="launcher"
    -    type="button"
    -    class="btn btn-default"
    -    onclick="loadAssets()"
    -  >
    -    LOAD ASSETS
    -  </button>
    -  <div id="progressText">Loading</div>
    -  <div id="progressBar">
    -    <div id="progressBarNumber">0</div>
    -    <div id="progressBarPercentage"></div>
    -  </div>
    -</div>
    - -

    assets object

    -
    -
    //example of assets to load :
    -var list = {
    -  shaders: {
    -    folder: "shaders",
    -    files: [
    -      { name: "shader1.txt" },
    -      { name: "shader2.txt" },
    -      { name: "shader3.txt" }
    -    ]
    -  },
    -  materials: {
    -    folder: "materials",
    -    files: [
    -      { name: "material1.txt" },
    -      { name: "material2.txt" },
    -      { name: "material3.doc" }
    -    ]
    -  },
    -  textures: {
    -    folder: "textures",
    -    files: [
    -      { name: "texture1.png" },
    -      { name: "texture2.png" },
    -      { name: "texture3.png" }
    -    ]
    -  },
    -  meshes: {
    -    folder: "meshes",
    -    files: [{ name: "mesh1.json" }, { name: "mesh2.json" }]
    -  },
    -  sprites: {
    -    folder: "sprites",
    -    files: [
    -      {
    -        name: "sprite1.png",
    -        params: {
    -          texSize: [124, 70],
    -          frameSize: [62, 70]
    -        }
    -      },
    -      {
    -        name: "sprite2.png",
    -        params: {
    -          texSize: [540, 30],
    -          frameSize: [30, 30]
    -        }
    -      },
    -      {
    -        name: "sprite3.png",
    -        params: {
    -          texSize: [540, 30],
    -          frameSize: [30, 30]
    -        }
    -      }
    -    ]
    -  },
    -  sounds: {
    -    folder: "sounds",
    -    files: [
    -      {
    -        name: "sound1.mp3",
    -        params: {
    -          volume: 0.2,
    -          loop: 0,
    -          type: 0
    -        }
    -      },
    -      {
    -        name: "sound2.mp3",
    -        params: {
    -          volume: 0.3,
    -          loop: 0,
    -          type: 0
    -        }
    -      },
    -      {
    -        name: "sound3.mp3",
    -        params: {
    -          volume: 0.7,
    -          loop: 0,
    -          type: 0
    -        }
    -      }
    -    ]
    -  }
    -};
    - -

    ES6

    -
    -
    import { Loader, IResponse } from "@lcluber/orbisjs";
    -
    -let loader = new Loader(
    -  list,
    -  "../public/assets/",
    -  "progressBar",
    -  "progressText"
    -);
    -
    -function loadAssets() {
    -  loader.start().then((response: IResponse) => {
    -    console.log(response.message);
    -    if (response.success) {
    -      console.log(loader.getList("sounds"));
    -      console.log(loader.getAsset("sound3.mp3"));
    -      console.log(loader.getContent("sound3.mp3"));
    -    }
    -  });
    -}
    - -

    IIFE

    -
    -
    <script src="node-modules/@lcluber/orbisjs/dist/orbis.iife.min.js"></script>
    -
    var loader = new Orbis.Loader(
    -  list,
    -  "../public/assets/",
    -  "progressBar",
    -  "progressText"
    -);
    -
    -function loadAssets() {
    -  loader.start().then(function(response) {
    -    console.log(response.message);
    -    if (response.success) {
    -      console.log(loader.getList("sounds"));
    -      console.log(loader.getAsset("sound3.mp3"));
    -      console.log(loader.getContent("sound3.mp3"));
    -    }
    -  });
    -}
    - -

    ANGULAR

    -
    -

    Example of a service to load several assets when needed.

    -
    import { Injectable } from '@angular/core';
    -import { Loader, IAssets, IResponse } from "@lcluber/orbisjs";
    -
    -@Injectable({
    -  providedIn: 'root'
    -})
    -export class AssetsLoaderService {
    -
    -  list: IAssets = {
    -    shaders: {
    -      folder: "shader",
    -      files: [
    -        { name: "vertex.glsl" },
    -        { name: "fragment.glsl" }
    -      ]
    -    }
    -  };
    -
    -  loader: Loader = new Loader(
    -    this.list,
    -    '../assets/',
    -    null,
    -    null
    -  );
    -
    -  constructor() { }
    -
    -  public load(): Promise<boolean> {
    -    return this.loader.start().then((response: IResponse) => {
    -      console.log("complete");
    -      return response.success;
    -    });
    -  }
    -
    -  public get vertexShader(): Object | HTMLImageElement | AudioBuffer | string | null | false {
    -    return this.loader.getContent("vertex.glsl");
    -  }
    -
    -  public get fragmentShader(): Object | HTMLImageElement | AudioBuffer | string | null | false {
    -    return this.loader.getContent("fragment.glsl");
    -  }
    -}
    -
    - -

    API Reference

    -
    -
    
    -// the structure of loader.start() promise response.
    -interface IResponse {
    -  success: boolean,
    -  message: string
    -};
    -
    -interface IAssets {
    -  [key: string]: { // type
    -    folder: string;
    -    files: IAsset[];
    -  };
    -}
    -
    -interface IAsset {
    -  name: string;
    -  params?: IParams | null;
    -}
    -
    -interface IParams {
    -  [key: string]: string | number | boolean | Array<string | number | boolean>;
    -}
    -
    -class Asset implements IAsset {
    -    name: string;
    -    params: IParams | null;
    -    xhr: XHR | null;
    -    isValid: boolean;
    -}
    -
    -class XHR {
    -    path: string;
    -    extension: string;
    -    type: string;
    -    response: Object | HTMLImageElement | AudioBuffer | string | null;
    -    request: Request;
    -
    -class Loader(
    -  assets: IAssets,
    -  assetsPath: string,
    -  progressBarId?: string,
    -  progressTextId?: string
    -);
    -
    -// Starts loading the assets
    -loader.start(): Promise<IResponse> {}
    -// Returns the asset object
    -loader.getAsset(name: string): Asset | false {}
    -// Returns only the response of the xhr request.
    -loader.getContent(name: string): Object | HTMLImageElement | AudioBuffer | string | null | false {}
    -// Returns a list of assets by type
    -loader.getList(type: string): Asset[] | false {}
    -
    -// Reset the progress bar before starting a new loading process
    -loader.resetProgress(): void;
    -
    -// Log levels from @lcluber Mouette.js logger library
    -type LevelName = "info" | "trace" | "warn" | "error" | "off";
    -loader.setLogLevel(name: LevelName): LevelName {}
    -loader.getLogLevel(): LevelName {}
    -
    - -

    Contributors

    -
    -

    There is still a lot of work to do on this project and I would be glad to get all the help you can provide. - To contribute you can clone the project on GitHub and see NOTICE.md for detailed installation walkthrough of the project.

    - -

    License

    -
    -

    MIT License

    -

    Copyright (c) 2011 Ludovic CLUBER

    -

    Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions:

    -

    The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software.

    -

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE.

    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/interfaces/_interfaces_.iajax.html b/doc/interfaces/_interfaces_.iajax.html deleted file mode 100644 index 051eed8..0000000 --- a/doc/interfaces/_interfaces_.iajax.html +++ /dev/null @@ -1,280 +0,0 @@ - - - - - - IAjax | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Interface IAjax

    -
    -
    -
    -
    -
    -
    -
    -

    Hierarchy

    -
      -
    • - IAjax -
    • -
    -
    -
    -

    Index

    -
    -
    -
    -

    Properties

    - -
    -
    -
    -
    -
    -

    Properties

    -
    - -

    file

    -
    file: Function
    - -
    -
    - -

    img

    -
    img: Function
    - -
    -
    - -

    sound

    -
    sound: Function
    - -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/interfaces/_interfaces_.iasset.html b/doc/interfaces/_interfaces_.iasset.html deleted file mode 100644 index 85b2af2..0000000 --- a/doc/interfaces/_interfaces_.iasset.html +++ /dev/null @@ -1,276 +0,0 @@ - - - - - - IAsset | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Interface IAsset

    -
    -
    -
    -
    -
    -
    -
    -

    Hierarchy

    -
      -
    • - IAsset -
    • -
    -
    -
    -

    Implemented by

    - -
    -
    -

    Indexable

    -
    [key: string]: any
    -
    -
    -

    Index

    -
    -
    -
    -

    Properties

    - -
    -
    -
    -
    -
    -

    Properties

    -
    - -

    name

    -
    name: string
    - -
    -
    - -

    Optional params

    -
    params: IParams | null
    - -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/interfaces/_interfaces_.iassets.html b/doc/interfaces/_interfaces_.iassets.html deleted file mode 100644 index 483cb38..0000000 --- a/doc/interfaces/_interfaces_.iassets.html +++ /dev/null @@ -1,233 +0,0 @@ - - - - - - IAssets | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Interface IAssets

    -
    -
    -
    -
    -
    -
    -
    -

    Hierarchy

    -
      -
    • - IAssets -
    • -
    -
    -
    -

    Indexable

    -
    [key: string]: object
    -
      -
    • -
      files: IAsset[]
      -
    • -
    • -
      folder: string
      -
    • -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/interfaces/_interfaces_.idefault.html b/doc/interfaces/_interfaces_.idefault.html deleted file mode 100644 index 7e9f3cf..0000000 --- a/doc/interfaces/_interfaces_.idefault.html +++ /dev/null @@ -1,266 +0,0 @@ - - - - - - IDefault | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Interface IDefault

    -
    -
    -
    -
    -
    -
    -
    -

    Hierarchy

    -
      -
    • - IDefault -
    • -
    -
    -
    -

    Index

    -
    -
    -
    -

    Properties

    - -
    -
    -
    -
    -
    -

    Properties

    -
    - -

    maxPending

    -
    maxPending: number
    - -
    -
    - -

    tick

    -
    tick: number
    - -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/interfaces/_interfaces_.iparams.html b/doc/interfaces/_interfaces_.iparams.html deleted file mode 100644 index 38e1956..0000000 --- a/doc/interfaces/_interfaces_.iparams.html +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - IParams | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Interface IParams

    -
    -
    -
    -
    -
    -
    -
    -

    Hierarchy

    -
      -
    • - IParams -
    • -
    -
    -
    -

    Indexable

    -
    [key: string]: string | number | boolean | Array<string | number | boolean>
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/interfaces/_interfaces_.iresponse.html b/doc/interfaces/_interfaces_.iresponse.html deleted file mode 100644 index b82b9cc..0000000 --- a/doc/interfaces/_interfaces_.iresponse.html +++ /dev/null @@ -1,266 +0,0 @@ - - - - - - IResponse | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Interface IResponse

    -
    -
    -
    -
    -
    -
    -
    -

    Hierarchy

    -
      -
    • - IResponse -
    • -
    -
    -
    -

    Index

    -
    -
    -
    -

    Properties

    - -
    -
    -
    -
    -
    -

    Properties

    -
    - -

    message

    -
    message: string
    - -
    -
    - -

    success

    -
    success: boolean
    - -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/interfaces/_interfaces_.ivalidextensions.html b/doc/interfaces/_interfaces_.ivalidextensions.html deleted file mode 100644 index 18ae122..0000000 --- a/doc/interfaces/_interfaces_.ivalidextensions.html +++ /dev/null @@ -1,284 +0,0 @@ - - - - - - IValidExtensions | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Interface IValidExtensions

    -
    -
    -
    -
    -
    -
    -
    -

    Hierarchy

    -
      -
    • - IValidExtensions -
    • -
    -
    -
    -

    Indexable

    -
    [key: string]: string[]
    -
    -
    -

    Index

    -
    -
    -
    -

    Properties

    - -
    -
    -
    -
    -
    -

    Properties

    -
    - -

    file

    -
    file: string[]
    - -
    -
    - -

    img

    -
    img: string[]
    - -
    -
    - -

    sound

    -
    sound: string[]
    - -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/modules/_asset_.html b/doc/modules/_asset_.html deleted file mode 100644 index 009d88c..0000000 --- a/doc/modules/_asset_.html +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - "asset" | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    External module "asset"

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    -
    -
    -

    Classes

    - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/modules/_extension_.html b/doc/modules/_extension_.html deleted file mode 100644 index ce546aa..0000000 --- a/doc/modules/_extension_.html +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - "extension" | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    External module "extension"

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    -
    -
    -

    Classes

    - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/modules/_interfaces_.html b/doc/modules/_interfaces_.html deleted file mode 100644 index 049f7a9..0000000 --- a/doc/modules/_interfaces_.html +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - "interfaces" | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    External module "interfaces"

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    -
    -
    -

    Interfaces

    - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/modules/_loaders_file_.html b/doc/modules/_loaders_file_.html deleted file mode 100644 index b1f637b..0000000 --- a/doc/modules/_loaders_file_.html +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - "loaders/file" | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    External module "loaders/file"

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    -
    -
    -

    Functions

    - -
    -
    -
    -
    -
    -

    Functions

    -
    - -

    loadFile

    -
      -
    • loadFile(path: string): Promise<ResponseDataType>
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        path: string
        -
      • -
      -

      Returns Promise<ResponseDataType>

      -
    • -
    -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/modules/_loaders_image_.html b/doc/modules/_loaders_image_.html deleted file mode 100644 index e4dc615..0000000 --- a/doc/modules/_loaders_image_.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - - - "loaders/image" | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    External module "loaders/image"

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    -
    -
    -

    Functions

    - -
    -
    -
    -
    -
    -

    Functions

    -
    - -

    getName

    -
      -
    • getName(path: string): string
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        path: string
        -
      • -
      -

      Returns string

      -
    • -
    -
    -
    - -

    loadImage

    -
      -
    • loadImage(path: string): Promise<string>
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        path: string
        -
      • -
      -

      Returns Promise<string>

      -
    • -
    -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/modules/_loaders_sound_.html b/doc/modules/_loaders_sound_.html deleted file mode 100644 index 8f43571..0000000 --- a/doc/modules/_loaders_sound_.html +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - "loaders/sound" | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    External module "loaders/sound"

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    -
    -
    -

    Functions

    - -
    -
    -
    -
    -
    -

    Functions

    -
    - -

    loadSound

    -
      -
    • loadSound(path: string): Promise<ResponseDataType>
    • -
    -
      -
    • - -

      Parameters

      -
        -
      • -
        path: string
        -
      • -
      -

      Returns Promise<ResponseDataType>

      -
    • -
    -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/modules/_orbis_.html b/doc/modules/_orbis_.html deleted file mode 100644 index 40adfe3..0000000 --- a/doc/modules/_orbis_.html +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - "orbis" | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    External module "orbis"

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    -
    -
    -

    Classes

    - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/modules/_progress_.html b/doc/modules/_progress_.html deleted file mode 100644 index a8b5c04..0000000 --- a/doc/modules/_progress_.html +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - "progress" | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    External module "progress"

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    -
    -
    -

    Classes

    - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/modules/_request_.html b/doc/modules/_request_.html deleted file mode 100644 index d90ddc2..0000000 --- a/doc/modules/_request_.html +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - "request" | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    External module "request"

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    -
    -
    -

    Classes

    - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/doc/modules/_xhr_.html b/doc/modules/_xhr_.html deleted file mode 100644 index 8396463..0000000 --- a/doc/modules/_xhr_.html +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - "xhr" | Orbis.js - Documentation - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - - - - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    External module "xhr"

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    -
    -
    -

    Classes

    - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Module
    • -
    • Object literal
    • -
    • Variable
    • -
    • Function
    • -
    • Function with type parameter
    • -
    • Index signature
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Enumeration
    • -
    • Enumeration member
    • -
    • Property
    • -
    • Method
    • -
    -
      -
    • Interface
    • -
    • Interface with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Index signature
    • -
    -
      -
    • Class
    • -
    • Class with type parameter
    • -
    • Constructor
    • -
    • Property
    • -
    • Method
    • -
    • Accessor
    • -
    • Index signature
    • -
    -
      -
    • Inherited constructor
    • -
    • Inherited property
    • -
    • Inherited method
    • -
    • Inherited accessor
    • -
    -
      -
    • Protected property
    • -
    • Protected method
    • -
    • Protected accessor
    • -
    -
      -
    • Private property
    • -
    • Private method
    • -
    • Private accessor
    • -
    -
      -
    • Static property
    • -
    • Static method
    • -
    -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 7a678bd..05f7546 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@lcluber/orbisjs", - "version": "1.0.5", + "version": "1.0.6", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -460,19 +460,22 @@ "dev": true }, "@lcluber/aiasjs": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/@lcluber/aiasjs/-/aiasjs-2.6.1.tgz", - "integrity": "sha512-6jaJ/zlNFEz7WNn1wK7TmSrxsI5Ey0SUMCSiIrkas3oS12u4zufVQAbGvgWk06xf3CYRlHB/RJWeStpdRD2H3g==", + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/@lcluber/aiasjs/-/aiasjs-2.7.1.tgz", + "integrity": "sha512-RxIOQ9QK33rne8AGx37LPhuSs1sIfrrbXf9Pd2JYEh36EEo3MNrHDNxImJHfa8yZBkSX2ttzkIRBncbFKUnugg==", "requires": { - "@lcluber/chjs": "2.9.0", + "@lcluber/chjs": "2.10.1", "@lcluber/mouettejs": "2.2.1", + "@types/promise-polyfill": "6.0.3", + "polyfill-array-includes": "2.0.0", + "promise-polyfill": "8.1.3", "rxjs": "6.5.3" }, "dependencies": { "@lcluber/chjs": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/@lcluber/chjs/-/chjs-2.9.0.tgz", - "integrity": "sha512-vcUa1CzEPiauX81nAoHLC0ZGitx8Lod9odLSegfajipiRJc1Le6YLEXqca0DoHzdCvw3zugyi9qALtFy9ptB7w==" + "version": "2.10.1", + "resolved": "https://registry.npmjs.org/@lcluber/chjs/-/chjs-2.10.1.tgz", + "integrity": "sha512-2cXvDohCe1xbijps0vFRHGupIlXEa6lh1BQwt22iHlxnlvafIcWajlnYMPo5X4XC06wr0T1AHqxX6XM7HFBynA==" }, "rxjs": { "version": "6.5.3", @@ -539,6 +542,20 @@ } } }, + "@lcluber/type6js": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@lcluber/type6js/-/type6js-1.1.0.tgz", + "integrity": "sha512-7bCRh2oEluD4NWiW7t4CSYk1IspCFXMozRoWVVgEcoeakmhPzBTwpqw/nkkEGtw5SNJBT3r4grU/Z9hv7DlXgA==", + "requires": { + "body-parser": "1.16.1", + "cookie-parser": "1.4.3", + "debug": "2.6.1", + "express": "4.14.1", + "morgan": "1.8.1", + "pug": "2.0.0-beta11", + "serve-favicon": "2.4.0" + } + }, "basic-auth": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-1.1.0.tgz", @@ -967,7 +984,7 @@ "dependencies": { "basic-auth": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-1.1.0.tgz", + "resolved": "http://registry.npmjs.org/basic-auth/-/basic-auth-1.1.0.tgz", "integrity": "sha1-RSIe5Cn37h5QNb4/UVM/HN/SmIQ=" }, "body-parser": { @@ -1003,7 +1020,7 @@ }, "cookies": { "version": "0.6.1", - "resolved": "https://registry.npmjs.org/cookies/-/cookies-0.6.1.tgz", + "resolved": "http://registry.npmjs.org/cookies/-/cookies-0.6.1.tgz", "integrity": "sha1-72k7G8bwH1Z9RuL1BOnBX7cMupA=", "requires": { "depd": "~1.1.0", @@ -1058,7 +1075,7 @@ "dependencies": { "debug": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "resolved": "http://registry.npmjs.org/debug/-/debug-2.2.0.tgz", "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", "requires": { "ms": "0.7.1" @@ -1066,19 +1083,19 @@ }, "ms": { "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "resolved": "http://registry.npmjs.org/ms/-/ms-0.7.1.tgz", "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=" }, "qs": { "version": "6.2.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.2.0.tgz", + "resolved": "http://registry.npmjs.org/qs/-/qs-6.2.0.tgz", "integrity": "sha1-O3hIwDwt7OaalSKw+ujEEm10Xzs=" } } }, "finalhandler": { "version": "0.5.1", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-0.5.1.tgz", + "resolved": "http://registry.npmjs.org/finalhandler/-/finalhandler-0.5.1.tgz", "integrity": "sha1-LEANjUUwk1vCMlScX6OF7Afeb80=", "requires": { "debug": "~2.2.0", @@ -1090,7 +1107,7 @@ "dependencies": { "debug": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "resolved": "http://registry.npmjs.org/debug/-/debug-2.2.0.tgz", "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", "requires": { "ms": "0.7.1" @@ -1098,7 +1115,7 @@ }, "ms": { "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "resolved": "http://registry.npmjs.org/ms/-/ms-0.7.1.tgz", "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=" }, "statuses": { @@ -1115,7 +1132,7 @@ }, "http-errors": { "version": "1.5.1", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.5.1.tgz", + "resolved": "http://registry.npmjs.org/http-errors/-/http-errors-1.5.1.tgz", "integrity": "sha1-eIwNLB3iyBuebowBhDtrl+uSB1A=", "requires": { "inherits": "2.0.3", @@ -1133,7 +1150,7 @@ }, "i18next-express-middleware": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/i18next-express-middleware/-/i18next-express-middleware-1.0.2.tgz", + "resolved": "http://registry.npmjs.org/i18next-express-middleware/-/i18next-express-middleware-1.0.2.tgz", "integrity": "sha1-C4V3kKi6QPaqVRCZ/Oy8++bvmpI=", "requires": { "cookies": "0.6.1" @@ -1141,7 +1158,7 @@ }, "i18next-node-fs-backend": { "version": "0.1.3", - "resolved": "https://registry.npmjs.org/i18next-node-fs-backend/-/i18next-node-fs-backend-0.1.3.tgz", + "resolved": "http://registry.npmjs.org/i18next-node-fs-backend/-/i18next-node-fs-backend-0.1.3.tgz", "integrity": "sha1-lhWWOWyt0hEuFnziDxPwIAxE7vg=", "requires": { "js-yaml": "3.5.4", @@ -1150,394 +1167,7 @@ }, "iconv-lite": { "version": "0.4.15", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.15.tgz", - "integrity": "sha1-/iZaIYrGpXz+hUkn6dBMGYJe3es=" - }, - "ipaddr.js": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.4.0.tgz", - "integrity": "sha1-KWrKh4qCGBbluF0KKFqZvP9FgvA=" - }, - "mime": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz", - "integrity": "sha1-EV+eO2s9rylZmDyzjxSaLUDrXVM=" - }, - "morgan": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.8.1.tgz", - "integrity": "sha1-+TAj04h70nt439YCPOp4ku4npLE=", - "requires": { - "basic-auth": "~1.1.0", - "debug": "2.6.1", - "depd": "~1.1.0", - "on-finished": "~2.3.0", - "on-headers": "~1.0.1" - } - }, - "ms": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", - "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=" - }, - "proxy-addr": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-1.1.5.tgz", - "integrity": "sha1-ccDuOxAt4/IC87ZPYI0XP8uhqRg=", - "requires": { - "forwarded": "~0.1.0", - "ipaddr.js": "1.4.0" - } - }, - "pug": { - "version": "2.0.0-beta11", - "resolved": "https://registry.npmjs.org/pug/-/pug-2.0.0-beta11.tgz", - "integrity": "sha1-Favmr1AEx+LPRhPksnRlyVRrXwE=", - "requires": { - "pug-code-gen": "^1.1.1", - "pug-filters": "^2.1.1", - "pug-lexer": "^3.0.0", - "pug-linker": "^2.0.2", - "pug-load": "^2.0.5", - "pug-parser": "^2.0.2", - "pug-runtime": "^2.0.3", - "pug-strip-comments": "^1.0.2" - } - }, - "pug-code-gen": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pug-code-gen/-/pug-code-gen-1.1.1.tgz", - "integrity": "sha1-HPcnRO8qA56uajNAyqoRBYcSWOg=", - "requires": { - "constantinople": "^3.0.1", - "doctypes": "^1.1.0", - "js-stringify": "^1.0.1", - "pug-attrs": "^2.0.2", - "pug-error": "^1.3.2", - "pug-runtime": "^2.0.3", - "void-elements": "^2.0.1", - "with": "^5.0.0" - } - }, - "pug-filters": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/pug-filters/-/pug-filters-2.1.5.tgz", - "integrity": "sha512-xkw71KtrC4sxleKiq+cUlQzsiLn8pM5+vCgkChW2E6oNOzaqTSIBKIQ5cl4oheuDzvJYCTSYzRaVinMUrV4YLQ==", - "requires": { - "clean-css": "^3.3.0", - "constantinople": "^3.0.1", - "jstransformer": "1.0.0", - "pug-error": "^1.3.2", - "pug-walk": "^1.1.5", - "resolve": "^1.1.6", - "uglify-js": "^2.6.1" - } - }, - "pug-lexer": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/pug-lexer/-/pug-lexer-3.1.0.tgz", - "integrity": "sha1-/QhzdtSmdbT1n4/vQiiDQ06VgaI=", - "requires": { - "character-parser": "^2.1.1", - "is-expression": "^3.0.0", - "pug-error": "^1.3.2" - } - }, - "pug-linker": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/pug-linker/-/pug-linker-2.0.3.tgz", - "integrity": "sha1-szH/olc33eacEntWwQ/xf652bco=", - "requires": { - "pug-error": "^1.3.2", - "pug-walk": "^1.1.2" - } - }, - "pug-parser": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/pug-parser/-/pug-parser-2.0.2.tgz", - "integrity": "sha1-U6aAz9BQOdywwn0CkJS8SnkmibA=", - "requires": { - "pug-error": "^1.3.2", - "token-stream": "0.0.1" - } - }, - "qs": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.2.1.tgz", - "integrity": "sha1-zgPF/wk1vB2daanxTL0Y5WjWdiU=" - }, - "raw-body": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.2.0.tgz", - "integrity": "sha1-mUl2z2pQlqQRYoQEkvC9xdbn+5Y=", - "requires": { - "bytes": "2.4.0", - "iconv-lite": "0.4.15", - "unpipe": "1.0.0" - } - }, - "send": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/send/-/send-0.14.2.tgz", - "integrity": "sha1-ObBDiz9RC+Xcb2Z6EfcWiTaM3u8=", - "requires": { - "debug": "~2.2.0", - "depd": "~1.1.0", - "destroy": "~1.0.4", - "encodeurl": "~1.0.1", - "escape-html": "~1.0.3", - "etag": "~1.7.0", - "fresh": "0.3.0", - "http-errors": "~1.5.1", - "mime": "1.3.4", - "ms": "0.7.2", - "on-finished": "~2.3.0", - "range-parser": "~1.2.0", - "statuses": "~1.3.1" - }, - "dependencies": { - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "requires": { - "ms": "0.7.1" - }, - "dependencies": { - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=" - } - } - }, - "statuses": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz", - "integrity": "sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4=" - } - } - }, - "serve-favicon": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/serve-favicon/-/serve-favicon-2.4.0.tgz", - "integrity": "sha1-Bk3N/bDyUK47FI6xjIu/PRhePdA=", - "requires": { - "etag": "~1.8.0", - "fresh": "0.4.0", - "ms": "0.7.2", - "parseurl": "~1.3.1" - }, - "dependencies": { - "etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" - }, - "fresh": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.4.0.tgz", - "integrity": "sha1-R1YmqTSo00gLIQGh1uzvfa/XxVM=" - } - } - }, - "serve-static": { - "version": "1.11.2", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.11.2.tgz", - "integrity": "sha1-LPmIm9RDWjIMw2iVyapXvWYuasc=", - "requires": { - "encodeurl": "~1.0.1", - "escape-html": "~1.0.3", - "parseurl": "~1.3.1", - "send": "0.14.2" - } - }, - "setprototypeof": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.2.tgz", - "integrity": "sha1-gaVSFB7BBLiOic44MQOtXGZWTQg=" - }, - "source-map": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", - "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", - "requires": { - "amdefine": ">=0.0.4" - } - }, - "utils-merge": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.0.tgz", - "integrity": "sha1-ApT7kiu5N1FTVBxPcJYjHyh8ivg=" - } - } - }, - "@lcluber/type6js": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@lcluber/type6js/-/type6js-1.1.0.tgz", - "integrity": "sha512-7bCRh2oEluD4NWiW7t4CSYk1IspCFXMozRoWVVgEcoeakmhPzBTwpqw/nkkEGtw5SNJBT3r4grU/Z9hv7DlXgA==", - "requires": { - "body-parser": "1.16.1", - "cookie-parser": "1.4.3", - "debug": "2.6.1", - "express": "4.14.1", - "morgan": "1.8.1", - "pug": "2.0.0-beta11", - "serve-favicon": "2.4.0" - }, - "dependencies": { - "basic-auth": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-1.1.0.tgz", - "integrity": "sha1-RSIe5Cn37h5QNb4/UVM/HN/SmIQ=" - }, - "body-parser": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.16.1.tgz", - "integrity": "sha1-UVQNBFrfp6DGmVoBS7ax7ZuAIyk=", - "requires": { - "bytes": "2.4.0", - "content-type": "~1.0.2", - "debug": "2.6.1", - "depd": "~1.1.0", - "http-errors": "~1.5.1", - "iconv-lite": "0.4.15", - "on-finished": "~2.3.0", - "qs": "6.2.1", - "raw-body": "~2.2.0", - "type-is": "~1.6.14" - } - }, - "bytes": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.4.0.tgz", - "integrity": "sha1-fZcZb51br39pNeJZhVSe3SpsIzk=" - }, - "clean-css": { - "version": "3.4.28", - "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-3.4.28.tgz", - "integrity": "sha1-vxlF6C/ICPVWlebd6uwBQA79A/8=", - "requires": { - "commander": "2.8.x", - "source-map": "0.4.x" - } - }, - "debug": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.1.tgz", - "integrity": "sha1-eYVQkLosTjEVzH2HaUkdWPBJE1E=", - "requires": { - "ms": "0.7.2" - } - }, - "etag": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.7.0.tgz", - "integrity": "sha1-A9MLX2fdbmMtKUXTDWZScxo01dg=" - }, - "express": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/express/-/express-4.14.1.tgz", - "integrity": "sha1-ZGwjf3ZvFIwhIK/wc4F7nk1+DTM=", - "requires": { - "accepts": "~1.3.3", - "array-flatten": "1.1.1", - "content-disposition": "0.5.2", - "content-type": "~1.0.2", - "cookie": "0.3.1", - "cookie-signature": "1.0.6", - "debug": "~2.2.0", - "depd": "~1.1.0", - "encodeurl": "~1.0.1", - "escape-html": "~1.0.3", - "etag": "~1.7.0", - "finalhandler": "0.5.1", - "fresh": "0.3.0", - "merge-descriptors": "1.0.1", - "methods": "~1.1.2", - "on-finished": "~2.3.0", - "parseurl": "~1.3.1", - "path-to-regexp": "0.1.7", - "proxy-addr": "~1.1.3", - "qs": "6.2.0", - "range-parser": "~1.2.0", - "send": "0.14.2", - "serve-static": "~1.11.2", - "type-is": "~1.6.14", - "utils-merge": "1.0.0", - "vary": "~1.1.0" - }, - "dependencies": { - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "requires": { - "ms": "0.7.1" - } - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=" - }, - "qs": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.2.0.tgz", - "integrity": "sha1-O3hIwDwt7OaalSKw+ujEEm10Xzs=" - } - } - }, - "finalhandler": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-0.5.1.tgz", - "integrity": "sha1-LEANjUUwk1vCMlScX6OF7Afeb80=", - "requires": { - "debug": "~2.2.0", - "escape-html": "~1.0.3", - "on-finished": "~2.3.0", - "statuses": "~1.3.1", - "unpipe": "~1.0.0" - }, - "dependencies": { - "debug": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", - "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", - "requires": { - "ms": "0.7.1" - } - }, - "ms": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", - "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=" - }, - "statuses": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz", - "integrity": "sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4=" - } - } - }, - "fresh": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.3.0.tgz", - "integrity": "sha1-ZR+DjiJCTnVm3hYdg1jKoZn4PU8=" - }, - "http-errors": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.5.1.tgz", - "integrity": "sha1-eIwNLB3iyBuebowBhDtrl+uSB1A=", - "requires": { - "inherits": "2.0.3", - "setprototypeof": "1.0.2", - "statuses": ">= 1.3.1 < 2" - } - }, - "iconv-lite": { - "version": "0.4.15", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.15.tgz", + "resolved": "http://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.15.tgz", "integrity": "sha1-/iZaIYrGpXz+hUkn6dBMGYJe3es=" }, "ipaddr.js": { @@ -1547,7 +1177,7 @@ }, "mime": { "version": "1.3.4", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz", + "resolved": "http://registry.npmjs.org/mime/-/mime-1.3.4.tgz", "integrity": "sha1-EV+eO2s9rylZmDyzjxSaLUDrXVM=" }, "morgan": { @@ -1564,7 +1194,7 @@ }, "ms": { "version": "0.7.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", + "resolved": "http://registry.npmjs.org/ms/-/ms-0.7.2.tgz", "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=" }, "proxy-addr": { @@ -1650,7 +1280,7 @@ }, "qs": { "version": "6.2.1", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.2.1.tgz", + "resolved": "http://registry.npmjs.org/qs/-/qs-6.2.1.tgz", "integrity": "sha1-zgPF/wk1vB2daanxTL0Y5WjWdiU=" }, "raw-body": { @@ -1685,7 +1315,7 @@ "dependencies": { "debug": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", + "resolved": "http://registry.npmjs.org/debug/-/debug-2.2.0.tgz", "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", "requires": { "ms": "0.7.1" @@ -1693,7 +1323,7 @@ "dependencies": { "ms": { "version": "0.7.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", + "resolved": "http://registry.npmjs.org/ms/-/ms-0.7.1.tgz", "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=" } } @@ -1746,7 +1376,7 @@ }, "source-map": { "version": "0.4.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", + "resolved": "http://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", "requires": { "amdefine": ">=0.0.4" @@ -1759,6 +1389,11 @@ } } }, + "@lcluber/type6js": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@lcluber/type6js/-/type6js-2.0.1.tgz", + "integrity": "sha512-xo96XpJRcPOEe2nNxgdeOctSD+58a4ZzVFsGrJeryo4hxM+GwIyu2W3fig7RxV0XgukpuUNXwKcYtr+LimxVFg==" + }, "@lcluber/weejs": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@lcluber/weejs/-/weejs-1.0.1.tgz", @@ -2685,6 +2320,11 @@ "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", "dev": true }, + "@types/promise-polyfill": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@types/promise-polyfill/-/promise-polyfill-6.0.3.tgz", + "integrity": "sha512-f/BFgF9a+cgsMseC7rpv9+9TAE3YNjhfYrtwCo/pIeCDDfQtE6PY0b5bao2eIIEpZCBUy8Y5ToXd4ObjPSJuFw==" + }, "@types/retry": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", @@ -2770,12 +2410,12 @@ } }, "ajv": { - "version": "6.10.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", - "integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==", + "version": "6.12.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.2.tgz", + "integrity": "sha512-k+V+hzjm5q/Mr8ef/1Y9goCmlsK4I6Sm74teeyGvFk1XrOsbsKLjEdrvny42CZ+a8sXbk8KWpY/bDwS+FLL2UQ==", "dev": true, "requires": { - "fast-deep-equal": "^2.0.1", + "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" @@ -3031,9 +2671,9 @@ "dev": true }, "aws4": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.9.0.tgz", - "integrity": "sha512-Uvq6hVe90D0B2WEnUqtdgY1bATGz3mw33nH9Y+dmA+w5DHvUmBgkr5rM/KCHpCsiFNRUfokW/szpPPgMK2hm4A==", + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.0.tgz", + "integrity": "sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA==", "dev": true }, "babel-code-frame": { @@ -5978,9 +5618,9 @@ "dev": true }, "fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "dev": true }, "fast-glob": { @@ -6330,7 +5970,8 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -6351,12 +5992,14 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -6371,17 +6014,20 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -6498,7 +6144,8 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -6510,6 +6157,7 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -6524,6 +6172,7 @@ "version": "3.0.4", "bundled": true, "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -6531,12 +6180,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.2.4", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.1", "yallist": "^3.0.0" @@ -6555,6 +6206,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -6635,7 +6287,8 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -6647,6 +6300,7 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -6732,7 +6386,8 @@ "safe-buffer": { "version": "5.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -6768,6 +6423,7 @@ "version": "1.0.2", "bundled": true, "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -6787,6 +6443,7 @@ "version": "3.0.1", "bundled": true, "dev": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -6830,12 +6487,14 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "yallist": { "version": "3.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true } } }, @@ -6904,9 +6563,9 @@ } }, "get-caller-file": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", - "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true }, "get-stdin": { @@ -8614,12 +8273,6 @@ "loose-envify": "^1.0.0" } }, - "invert-kv": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", - "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", - "dev": true - }, "ipaddr.js": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.0.tgz", @@ -8963,9 +8616,9 @@ } }, "js-base64": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.5.1.tgz", - "integrity": "sha512-M7kLczedRMYX4L8Mdh4MzyAMM9O5osx+4FcOQuTvr3A9F2D9S5JXheN0ewNbrvK2UatkTRhL5ejGmGSjNMiZuw==", + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.5.2.tgz", + "integrity": "sha512-Vg8czh0Q7sFBSUMWWArX/miJeBWYBPpdU/3M/DKSaekLMqrqVPaedp+5mZhie/r0lgrcaYBfwXatEew6gwgiQQ==", "dev": true }, "js-stringify": { @@ -9131,15 +8784,6 @@ "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=" }, - "lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", - "dev": true, - "requires": { - "invert-kv": "^1.0.0" - } - }, "lines-and-columns": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", @@ -9802,9 +9446,9 @@ "dev": true }, "node-sass": { - "version": "4.13.0", - "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.13.0.tgz", - "integrity": "sha512-W1XBrvoJ1dy7VsvTAS5q1V45lREbTlZQqFbiHb3R3OTTCma0XBtuG6xZ6Z4506nR4lmHPTqVRwxT6KgtWC97CA==", + "version": "4.14.1", + "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.14.1.tgz", + "integrity": "sha512-sjCuOlvGyCJS40R8BscF5vhVlQjNN069NtQ1gSxyK1u9iqvn6tf7O1R4GNowVZfiZUCRt5MmMs1xd+4V/7Yr0g==", "dev": true, "requires": { "async-foreach": "^0.1.3", @@ -9821,7 +9465,7 @@ "node-gyp": "^3.8.0", "npmlog": "^4.0.0", "request": "^2.88.0", - "sass-graph": "^2.2.4", + "sass-graph": "2.2.5", "stdout-stream": "^1.4.0", "true-case-path": "^1.0.2" }, @@ -9915,15 +9559,15 @@ } }, "minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", "dev": true }, "nan": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz", - "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==", + "version": "2.14.1", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.1.tgz", + "integrity": "sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw==", "dev": true }, "parse-json": { @@ -13717,15 +13361,6 @@ "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", "dev": true }, - "os-locale": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", - "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", - "dev": true, - "requires": { - "lcid": "^1.0.0" - } - }, "os-name": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/os-name/-/os-name-3.1.0.tgz", @@ -14276,6 +13911,11 @@ "integrity": "sha1-24XGgU9eXlo7Se/CjWBP7GKXUVY=", "dev": true }, + "polyfill-array-includes": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/polyfill-array-includes/-/polyfill-array-includes-2.0.0.tgz", + "integrity": "sha512-HTrB0xYCN3TgOQvk5Tc7ehhl0vC73DARlhNMIDF8xCdPwPOELAYEZkgqJp0vbUGnM3FvcaXgxrwLw+bzKepI2A==" + }, "posix-character-classes": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", @@ -14415,6 +14055,11 @@ "asap": "~2.0.3" } }, + "promise-polyfill": { + "version": "8.1.3", + "resolved": "https://registry.npmjs.org/promise-polyfill/-/promise-polyfill-8.1.3.tgz", + "integrity": "sha512-MG5r82wBzh7pSKDRa9y+vllNHz3e3d4CNj1PQE4BQYxLme0gKYYBm9YENq+UkEikyZ0XbiGWxYlVw3Rl9O/U8g==" + }, "proxy-addr": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.5.tgz", @@ -14431,9 +14076,9 @@ "dev": true }, "psl": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.7.0.tgz", - "integrity": "sha512-5NsSEDv8zY70ScRnOTn7bK7eanl2MvFrOrS/R6x+dBt5g1ghnj9Zv90kO8GwT8gxcu2ANyFprnFYB85IogIJOQ==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", + "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", "dev": true }, "pstree.remy": { @@ -14976,9 +14621,9 @@ } }, "request": { - "version": "2.88.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", - "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", + "version": "2.88.2", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", + "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", "dev": true, "requires": { "aws-sign2": "~0.7.0", @@ -14988,7 +14633,7 @@ "extend": "~3.0.2", "forever-agent": "~0.6.1", "form-data": "~2.3.2", - "har-validator": "~5.1.0", + "har-validator": "~5.1.3", "http-signature": "~1.2.0", "is-typedarray": "~1.0.0", "isstream": "~0.1.2", @@ -14998,7 +14643,7 @@ "performance-now": "^2.1.0", "qs": "~6.5.2", "safe-buffer": "^5.1.2", - "tough-cookie": "~2.4.3", + "tough-cookie": "~2.5.0", "tunnel-agent": "^0.6.0", "uuid": "^3.3.2" }, @@ -15010,9 +14655,9 @@ "dev": true }, "safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", "dev": true } } @@ -15024,9 +14669,9 @@ "dev": true }, "require-main-filename": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", "dev": true }, "resolve": { @@ -15217,170 +14862,155 @@ "dev": true }, "sass-graph": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.4.tgz", - "integrity": "sha1-E/vWPNHK8JCLn9k0dq1DpR0eC0k=", + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.5.tgz", + "integrity": "sha512-VFWDAHOe6mRuT4mZRd4eKE+d8Uedrk6Xnh7Sh9b4NGufQLQjOrvf/MQoOdx+0s92L89FeyUUNfU597j/3uNpag==", "dev": true, "requires": { "glob": "^7.0.0", "lodash": "^4.0.0", "scss-tokenizer": "^0.2.3", - "yargs": "^7.0.0" + "yargs": "^13.3.2" }, "dependencies": { - "camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", "dev": true }, - "cliui": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", - "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wrap-ansi": "^2.0.0" + "color-convert": "^1.9.0" } }, - "find-up": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", - "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", - "dev": true, - "requires": { - "path-exists": "^2.0.0", - "pinkie-promise": "^2.0.0" - } + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "cliui": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", + "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", "dev": true, "requires": { - "number-is-nan": "^1.0.0" + "string-width": "^3.1.0", + "strip-ansi": "^5.2.0", + "wrap-ansi": "^5.1.0" } }, - "load-json-file": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", - "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", "dev": true, "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "strip-bom": "^2.0.0" + "locate-path": "^3.0.0" } }, - "parse-json": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", - "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", "dev": true, "requires": { - "error-ex": "^1.2.0" + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" } }, - "path-exists": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", - "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "requires": { - "pinkie-promise": "^2.0.0" + "p-try": "^2.0.0" } }, - "path-type": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", - "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", "dev": true, "requires": { - "graceful-fs": "^4.1.2", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" + "p-limit": "^2.0.0" } }, - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true }, - "read-pkg": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", - "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", - "dev": true, - "requires": { - "load-json-file": "^1.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^1.0.0" - } + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true }, - "read-pkg-up": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", - "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", + "string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", "dev": true, "requires": { - "find-up": "^1.0.0", - "read-pkg": "^1.0.0" + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" } }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "dev": true, "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "ansi-regex": "^4.1.0" } }, - "strip-bom": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "wrap-ansi": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", + "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", "dev": true, "requires": { - "is-utf8": "^0.2.0" + "ansi-styles": "^3.2.0", + "string-width": "^3.0.0", + "strip-ansi": "^5.0.0" } }, "yargs": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-7.1.0.tgz", - "integrity": "sha1-a6MY6xaWFyf10oT46gA+jWFU0Mg=", + "version": "13.3.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", + "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", "dev": true, "requires": { - "camelcase": "^3.0.0", - "cliui": "^3.2.0", - "decamelize": "^1.1.1", - "get-caller-file": "^1.0.1", - "os-locale": "^1.4.0", - "read-pkg-up": "^1.0.1", + "cliui": "^5.0.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", + "require-main-filename": "^2.0.0", "set-blocking": "^2.0.0", - "string-width": "^1.0.2", - "which-module": "^1.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^5.0.0" + "string-width": "^3.0.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^13.1.2" } }, "yargs-parser": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.0.tgz", - "integrity": "sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo=", + "version": "13.1.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", + "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", "dev": true, "requires": { - "camelcase": "^3.0.0" + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" } } } @@ -16737,21 +16367,13 @@ } }, "tough-cookie": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", - "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", "dev": true, "requires": { - "psl": "^1.1.24", - "punycode": "^1.4.1" - }, - "dependencies": { - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true - } + "psl": "^1.1.28", + "punycode": "^2.1.1" } }, "traverse": { @@ -17369,9 +16991,9 @@ "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" }, "uuid": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz", - "integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", "dev": true }, "validate-npm-package-license": { @@ -17458,9 +17080,9 @@ } }, "which-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", - "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", "dev": true }, "wide-align": { @@ -17642,9 +17264,9 @@ "dev": true }, "y18n": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", - "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", + "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", "dev": true }, "yallist": { diff --git a/package.json b/package.json index ef3105c..0348a77 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lcluber/orbisjs", - "version": "1.0.6", + "version": "1.0.7", "description": "Lazy loader written in TypeScript", "keywords": [ "lazy loader", @@ -28,8 +28,7 @@ "start": "node ./bin/www", "test": "", "pretty": "prettier --check 'src/ts/*.ts' --write", - "commit": "git-cz", - "semantic-release": "semantic-release" + "commit": "git-cz" }, "husky": { "hooks": { @@ -49,9 +48,9 @@ "dependencies": { "@lcluber/mouettejs": "2.2.1", "@lcluber/taipanjs": "0.3.12", - "@lcluber/type6js": "1.1.0", + "@lcluber/type6js": "2.0.1", "@lcluber/weejs": "1.0.1", - "@lcluber/aiasjs": "2.6.1", + "@lcluber/aiasjs": "2.7.1", "@lcluber/frameratjs": "0.4.1", "body-parser": "1.18.2", "cookie-parser": "1.4.3", @@ -68,9 +67,6 @@ "@commitlint/cli": "8.0.0", "@commitlint/config-conventional": "8.0.0", "@commitlint/prompt": "8.0.0", - "@semantic-release/changelog": "3.0.4", - "@semantic-release/git": "7.0.16", - "@semantic-release/npm": "5.1.13", "@fortawesome/fontawesome-free": "5.3.1", "babel-core": "6.26.3", "babel-preset-es2015": "6.24.1", @@ -101,14 +97,11 @@ "husky": "2.7.0", "prettier": "1.18.2", "pretty-quick": "1.11.1", - "grunt-typedoc": "0.2.4", "jquery": "3.2.1", "jquery-easing": "0.0.1", - "node-sass": "4.13.0", - "semantic-release": "15.13.24", + "node-sass": "4.14.1", "time-grunt": "1.4.0", "tslint": "5.20.1", - "typedoc": "0.15.0", "typescript": "3.7.4" } } diff --git a/src/ts/loaders/file.ts b/src/ts/loaders/file.ts index ba8f60c..a68ca3d 100644 --- a/src/ts/loaders/file.ts +++ b/src/ts/loaders/file.ts @@ -2,5 +2,5 @@ import { HTTP, ResponseDataType } from "@lcluber/aiasjs"; export function loadFile(path: string): Promise { // HTTP.setLogLevel("info"); - return HTTP.GET(path, "text") as Promise; + return HTTP.get(path, "text") as Promise; } diff --git a/src/ts/loaders/sound.ts b/src/ts/loaders/sound.ts index 59ef717..5364850 100644 --- a/src/ts/loaders/sound.ts +++ b/src/ts/loaders/sound.ts @@ -3,5 +3,5 @@ import { HTTP, ResponseDataType } from "@lcluber/aiasjs"; export function loadSound(path: string): Promise { // HTTP.setLogLevel("info"); - return HTTP.GET(path, "audiobuffer") as Promise; + return HTTP.get(path, "audiobuffer") as Promise; } diff --git a/src/ts/request.ts b/src/ts/request.ts index 173b7a4..0093f63 100644 --- a/src/ts/request.ts +++ b/src/ts/request.ts @@ -25,7 +25,6 @@ export class Request { path: string, type: string ): Promise { - // console.log(this.fsm); if (this.fsm["send"]()) { return this.ajax[type](path) .then((response: HTMLImageElement | AudioBuffer | string | Object) => { diff --git a/web/public/js/main.min.js b/web/public/js/main.min.js index 6db4609..7558c6b 100644 --- a/web/public/js/main.min.js +++ b/web/public/js/main.min.js @@ -18779,7 +18779,7 @@ var Orbis = (function(t) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function"); } - function a(t) { + function u(t) { return t < 10 ? "0" + t : t; } function c(t) { @@ -18789,23 +18789,23 @@ var Orbis = (function(t) { return ( !!t && ("object" === - ("undefined" == typeof HTMLElement ? "undefined" : M(HTMLElement)) + ("undefined" == typeof HTMLElement ? "undefined" : j(HTMLElement)) ? t instanceof HTMLElement : t && - "object" === (void 0 === t ? "undefined" : M(t)) && + "object" === (void 0 === t ? "undefined" : j(t)) && null !== t && 1 === t.nodeType && "string" == typeof t.nodeName) ); } - function r(t, e) { + function s(t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function"); } function e(t) { if (Array.isArray(t)) { - for (var e = 0, n = Array(t.length); e < t.length; e++) n[e] = t[e]; - return n; + for (var e = 0, i = Array(t.length); e < t.length; e++) i[e] = t[e]; + return i; } return Array.from(t); } @@ -18813,140 +18813,243 @@ var Orbis = (function(t) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function"); } - function u(t, e) { + function n(t) { + if (Array.isArray(t)) { + for (var e = 0, i = Array(t.length); e < t.length; e++) i[e] = t[e]; + return i; + } + return Array.from(t); + } + function k(t, e) { + if (!(t instanceof e)) + throw new TypeError("Cannot call a class as a function"); + } + function a(t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function"); } function h(t) { return t < 10 ? "0" + t : t; } - function n(t) { + function i(t) { return ( (function(t, e) { - var n = !(1 < arguments.length && void 0 !== e) || e, - i = parseInt(t, 10); - return n ? t === i : t == i; + var i = !(1 < arguments.length && void 0 !== e) || e, + n = parseInt(t, 10); + return i ? t === n : t == n; })(t) || (function(t, e) { - var n = t % 1 != 0; + var i = t % 1 != 0; return 1 < arguments.length && void 0 !== e && !e - ? Number(t) == t && n - : Number(t) === t && n; + ? Number(t) == t && i + : Number(t) === t && i; })(t) ); } - function i(t, e) { + function r(t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function"); } - function s(i) { - var r = P.addGroup("Orbis"); + function y(n) { + var s = F.addGroup("Orbis"); return new Promise(function(t, e) { - var n = new Image(); - (n.src = i), - (n.name = i.replace(/^.*[\\\/]/, "")), - r.info("xhr processing starting (" + i + ")"), - n.addEventListener("load", function() { - r.info("xhr (" + i + ") done"), t(n); + var i = new Image(); + (i.src = n), + (i.name = n.replace(/^.*[\\\/]/, "")), + s.info("xhr processing starting (" + n + ")"), + i.addEventListener("load", function() { + s.info("xhr (" + n + ") done"), t(i); }), - n.addEventListener("error", function() { - r.error("xhr (" + i + ") failed"), - e(new Error("xhr (" + i + ") failed")); + i.addEventListener("error", function() { + s.error("xhr (" + n + ") failed"), + e(new Error("xhr (" + n + ") failed")); }); }); } function f(t) { return ( null !== t && - "object" === (void 0 === t ? "undefined" : Q(t)) && + "object" === (void 0 === t ? "undefined" : dt(t)) && !(null !== (e = t) && e.constructor === Array) ); var e; } - function y(t, e) { - function n() { + function p(t, e) { + function i() { this.constructor = t; } - tt(t, e), + mt(t, e), (t.prototype = - null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); + null === e ? Object.create(e) : ((i.prototype = e.prototype), new i())); } - function p(t) { + function v(t) { return "function" == typeof t; } - function v(t) { + function d(t) { setTimeout(function() { throw t; }, 0); } - function d(t) { - return null !== t && "object" === (void 0 === t ? "undefined" : st(t)); + function x(t) { + return null !== t && "object" === (void 0 === t ? "undefined" : wt(t)); } - function k(t) { + function g(t) { return t.reduce(function(t, e) { - return t.concat(e instanceof ot ? e.errors : e); + return t.concat(e instanceof St ? e.errors : e); }, []); } - function g() {} - function x(t) { - if ((t || (t = nt.Promise || Promise), !t)) + function b() {} + function w(t) { + if ((t || (t = xt.Promise || Promise), !t)) throw new Error("no Promise impl found"); return t; } - function b(t, e) { + function S(t) { + return Boolean(t && void 0 !== t.length); + } + function z() {} + function T(t) { + if (!(this instanceof T)) + throw new TypeError("Promises must be constructed via new"); + if ("function" != typeof t) throw new TypeError("not a function"); + (this._state = 0), + (this._handled = !1), + (this._value = void 0), + (this._deferreds = []), + C(t, this); + } + function A(i, n) { + for (; 3 === i._state; ) i = i._value; + 0 !== i._state + ? ((i._handled = !0), + T._immediateFn(function() { + var t = 1 === i._state ? n.onFulfilled : n.onRejected; + if (null !== t) { + var e; + try { + e = t(i._value); + } catch (t) { + return void P(n.promise, t); + } + M(n.promise, e); + } else (1 === i._state ? M : P)(n.promise, i._value); + })) + : i._deferreds.push(n); + } + function M(e, t) { + try { + if (t === e) + throw new TypeError("A promise cannot be resolved with itself."); + if ( + t && + ("object" === (void 0 === t ? "undefined" : Ot(t)) || + "function" == typeof t) + ) { + var i = t.then; + if (t instanceof T) return (e._state = 3), (e._value = t), void E(e); + if ("function" == typeof i) + return void C( + ((n = i), + (s = t), + function() { + n.apply(s, arguments); + }), + e + ); + } + (e._state = 1), (e._value = t), E(e); + } catch (t) { + P(e, t); + } + var n, s; + } + function P(t, e) { + (t._state = 2), (t._value = e), E(t); + } + function E(t) { + 2 === t._state && + 0 === t._deferreds.length && + T._immediateFn(function() { + t._handled || T._unhandledRejectionFn(t._value); + }); + for (var e = 0, i = t._deferreds.length; e < i; e++) A(t, t._deferreds[e]); + t._deferreds = null; + } + function _(t, e, i) { + (this.onFulfilled = "function" == typeof t ? t : null), + (this.onRejected = "function" == typeof e ? e : null), + (this.promise = i); + } + function C(t, e) { + var i = !1; + try { + t( + function(t) { + i || ((i = !0), M(e, t)); + }, + function(t) { + i || ((i = !0), P(e, t)); + } + ); + } catch (t) { + if (i) return; + (i = !0), P(e, t); + } + } + function O(t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function"); } - function w(t) { - return kt.GET(t, "audiobuffer"); + function L(t) { + return Ft.get(t, "audiobuffer"); } - function S(t) { - return kt.GET(t, "text"); + function D(t) { + return Ft.get(t, "text"); } - var T = (function() { - function i(t, e) { - for (var n = 0; n < e.length; n++) { - var i = e[n]; - (i.enumerable = i.enumerable || !1), - (i.configurable = !0), - "value" in i && (i.writable = !0), - Object.defineProperty(t, i.key, i); + var q = (function() { + function n(t, e) { + for (var i = 0; i < e.length; i++) { + var n = e[i]; + (n.enumerable = n.enumerable || !1), + (n.configurable = !0), + "value" in n && (n.writable = !0), + Object.defineProperty(t, n.key, n); } } - return function(t, e, n) { - return e && i(t.prototype, e), n && i(t, n), t; + return function(t, e, i) { + return e && n(t.prototype, e), i && n(t, i), t; }; })(), - z = { + H = { info: { id: 1, name: "info", color: "#28a745" }, trace: { id: 2, name: "trace", color: "#17a2b8" }, warn: { id: 3, name: "warn", color: "#ffc107" }, error: { id: 4, name: "error", color: "#dc3545" }, off: { id: 99, name: "off", color: null } }, - E = (function() { - function s(t, e) { - var n, i, r; - o(this, s), + R = (function() { + function r(t, e) { + var i, n, s; + o(this, r), (this.id = t.id), (this.name = t.name), (this.color = t.color), (this.content = e), (this.date = - ((n = new Date()), - (i = [ - a(n.getMonth() + 1), - a(n.getDate()), - n + ((i = new Date()), + (n = [ + u(i.getMonth() + 1), + u(i.getDate()), + i .getFullYear() .toString() .substr(-2) ]), - (r = [a(n.getHours()), a(n.getMinutes()), a(n.getSeconds())]), - i.join("/") + " " + r.join(":"))); + (s = [u(i.getHours()), u(i.getMinutes()), u(i.getSeconds())]), + n.join("/") + " " + s.join(":"))); } return ( - T(s, [ + q(r, [ { key: "display", value: function(t) { @@ -18958,24 +19061,24 @@ var Orbis = (function(t) { } } ]), - s + r ); })(), - A = (function() { - function n(t, e) { - o(this, n), + V = (function() { + function i(t, e) { + o(this, i), (this.messages = []), (this.name = t), (this.messages = []), (this.level = e); } return ( - T(n, [ + q(i, [ { key: "setLevel", value: function(t) { return ( - (this.level = z.hasOwnProperty(t) ? z[t] : this.level), + (this.level = H.hasOwnProperty(t) ? H[t] : this.level), this.getLevel() ); } @@ -18989,100 +19092,100 @@ var Orbis = (function(t) { { key: "info", value: function(t) { - this.log(z.info, t); + this.log(H.info, t); } }, { key: "trace", value: function(t) { - this.log(z.trace, t); + this.log(H.trace, t); } }, { key: "warn", value: function(t) { - this.log(z.warn, t); + this.log(H.warn, t); } }, { key: "error", value: function(t) { - this.log(z.error, t); + this.log(H.error, t); } }, { key: "log", value: function(t, e) { - var n = new E(t, e); - this.messages.push(n), - this.level.id <= n.id && n.display(this.name); + var i = new R(t, e); + this.messages.push(i), + this.level.id <= i.id && i.display(this.name); } } ]), - n + i ); })(), - P = (function() { - function a() { - o(this, a); + F = (function() { + function u() { + o(this, u); } return ( - T(a, null, [ + q(u, null, [ { key: "setLevel", value: function(t) { - a.level = z.hasOwnProperty(t) ? z[t] : a.level; + u.level = H.hasOwnProperty(t) ? H[t] : u.level; var e = !0, - n = !1, - i = void 0; + i = !1, + n = void 0; try { for ( - var r, s = a.groups[Symbol.iterator](); - !(e = (r = s.next()).done); + var s, r = u.groups[Symbol.iterator](); + !(e = (s = r.next()).done); e = !0 ) { - r.value.setLevel(a.level.name); + s.value.setLevel(u.level.name); } } catch (t) { - (n = !0), (i = t); + (i = !0), (n = t); } finally { try { - !e && s.return && s.return(); + !e && r.return && r.return(); } finally { - if (n) throw i; + if (i) throw n; } } - return a.getLevel(); + return u.getLevel(); } }, { key: "getLevel", value: function() { - return a.level.name; + return u.level.name; } }, { key: "getGroup", value: function(t) { var e = !0, - n = !1, - i = void 0; + i = !1, + n = void 0; try { for ( - var r, s = a.groups[Symbol.iterator](); - !(e = (r = s.next()).done); + var s, r = u.groups[Symbol.iterator](); + !(e = (s = r.next()).done); e = !0 ) { - var o = r.value; + var o = s.value; if (o.name === t) return o; } } catch (t) { - (n = !0), (i = t); + (i = !0), (n = t); } finally { try { - !e && s.return && s.return(); + !e && r.return && r.return(); } finally { - if (n) throw i; + if (i) throw n; } } return null; @@ -19097,16 +19200,16 @@ var Orbis = (function(t) { { key: "pushGroup", value: function(t) { - var e = new A(t, a.level); - return a.groups.push(e), e; + var e = new V(t, u.level); + return u.groups.push(e), e; } } ]), - a + u ); })(); - (P.level = z.error), (P.groups = []); - var M = + (F.level = H.error), (F.groups = []); + var j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { return typeof t; @@ -19119,26 +19222,26 @@ var Orbis = (function(t) { ? "symbol" : typeof t; }, - _ = (function() { - function i(t, e) { - for (var n = 0; n < e.length; n++) { - var i = e[n]; - (i.enumerable = i.enumerable || !1), - (i.configurable = !0), - "value" in i && (i.writable = !0), - Object.defineProperty(t, i.key, i); + I = (function() { + function n(t, e) { + for (var i = 0; i < e.length; i++) { + var n = e[i]; + (n.enumerable = n.enumerable || !1), + (n.configurable = !0), + "value" in n && (n.writable = !0), + Object.defineProperty(t, n.key, n); } } - return function(t, e, n) { - return e && i(t.prototype, e), n && i(t, n), t; + return function(t, e, i) { + return e && n(t.prototype, e), i && n(t, i), t; }; })(), - O = (function() { + N = (function() { function t() { - r(this, t); + s(this, t); } return ( - _(t, null, [ + I(t, null, [ { key: "scrollToBottom", value: function(t) { @@ -19183,9 +19286,9 @@ var Orbis = (function(t) { }, { key: "styleElement", - value: function(t, e, n) { - var i = this.checkElement(t); - return i && (i.style[e] = n), i; + value: function(t, e, i) { + var n = this.checkElement(t); + return n && (n.style[e] = i), n; } }, { @@ -19223,13 +19326,13 @@ var Orbis = (function(t) { }, { key: "addHTMLElement", - value: function(t, e, n) { - var i = this.checkElement(t); - if (i) { - var r = document.createElement(e); + value: function(t, e, i) { + var n = this.checkElement(t); + if (n) { + var s = document.createElement(e); return ( - n && - Object.keys(n).forEach(function(t) { + i && + Object.keys(i).forEach(function(t) { "textContent" === t || "innerHTML" === t || (function(t) { @@ -19311,11 +19414,11 @@ var Orbis = (function(t) { return !1; } })(t) - ? (r[t] = n[t]) - : r.setAttribute(t, n[t]); + ? (s[t] = i[t]) + : s.setAttribute(t, i[t]); }), - i.appendChild(r), - r + n.appendChild(s), + s ); } return null; @@ -19331,7 +19434,7 @@ var Orbis = (function(t) { { key: "arrayFrom", value: function(t) { - for (var e = [], n = 0; n < t.length; n++) e.push(t[n]); + for (var e = [], i = 0; i < t.length; i++) e.push(t[i]); return e; } }, @@ -19345,9 +19448,9 @@ var Orbis = (function(t) { t ); })(), - L = (function() { - function i(t, e, n) { - r(this, i), + Y = (function() { + function n(t, e, i) { + s(this, n), (this._value = ""), (this.elements = this.getElements(t)), (this.property = []), @@ -19356,10 +19459,10 @@ var Orbis = (function(t) { ((this.property = e.split(".")), (this.lastProperty = this.property[this.property.length - 1]), this.addPropertyToElement()), - (this.value = n); + (this.value = i); } return ( - _(i, [ + I(n, [ { key: "addPropertyToElement", value: function() { @@ -19381,15 +19484,15 @@ var Orbis = (function(t) { if (this.elements) { var t = this._value, e = !0, - n = !1, - i = void 0; + i = !1, + n = void 0; try { for ( - var r, s = this.elements[Symbol.iterator](); - !(e = (r = s.next()).done); + var s, r = this.elements[Symbol.iterator](); + !(e = (s = r.next()).done); e = !0 ) { - var o = r.value; + var o = s.value; if (this.property.length) 1 < this.property.length ? (o[this.lastProperty] = t) @@ -19402,12 +19505,12 @@ var Orbis = (function(t) { } } } catch (t) { - (n = !0), (i = t); + (i = !0), (n = t); } finally { try { - !e && s.return && s.return(); + !e && r.return && r.return(); } finally { - if (n) throw i; + if (i) throw n; } } } @@ -19417,34 +19520,34 @@ var Orbis = (function(t) { key: "getElements", value: function(t) { var e, - n = []; + i = []; if (null !== (e = t) && e.constructor === Array) { - var i = !0, - r = !1, - s = void 0; + var n = !0, + s = !1, + r = void 0; try { for ( - var o, a = t[Symbol.iterator](); - !(i = (o = a.next()).done); - i = !0 + var o, u = t[Symbol.iterator](); + !(n = (o = u.next()).done); + n = !0 ) { - var u = o.value; - l(u) && n.push(u); + var a = o.value; + l(a) && i.push(a); } } catch (t) { - (r = !0), (s = t); + (s = !0), (r = t); } finally { try { - !i && a.return && a.return(); + !n && u.return && u.return(); } finally { - if (r) throw s; + if (s) throw r; } } } else if (c(t)) { - var h = O.findById(t); - h ? n.push(h) : (n = O.findByClass(t)); - } else l(t) && n.push(t); - return n; + var h = N.findById(t); + h ? i.push(h) : (i = N.findByClass(t)); + } else l(t) && i.push(t); + return i; } }, { @@ -19456,30 +19559,1863 @@ var Orbis = (function(t) { return this._value; } } - ]), - i - ); - })(), - D = (function() { - function i(t, e) { - for (var n = 0; n < e.length; n++) { - var i = e[n]; - (i.enumerable = i.enumerable || !1), - (i.configurable = !0), - "value" in i && (i.writable = !0), - Object.defineProperty(t, i.key, i); + ]), + n + ); + })(), + G = (function() { + function n(t, e) { + for (var i = 0; i < e.length; i++) { + var n = e[i]; + (n.enumerable = n.enumerable || !1), + (n.configurable = !0), + "value" in n && (n.writable = !0), + Object.defineProperty(t, n.key, n); + } + } + return function(t, e, i) { + return e && n(t.prototype, e), i && n(t, i), t; + }; + })(), + B = (function() { + function t() { + m(this, t); + } + return ( + G(t, null, [ + { + key: "round", + value: function(t, e) { + return (e = Math.pow(10, e)), Math.round(t * e) / e; + } + }, + { + key: "floor", + value: function(t, e) { + return (e = Math.pow(10, e)), Math.floor(t * e) / e; + } + }, + { + key: "ceil", + value: function(t, e) { + return (e = Math.pow(10, e)), Math.ceil(t * e) / e; + } + }, + { + key: "trunc", + value: function(t, e) { + var i = +t * (e = Math.pow(10, e)); + return isFinite(i) + ? (i - (i % 1)) / e || (i < 0 ? -0 : 0 === i ? i : 0) + : i; + } + }, + { + key: "roundToNearest", + value: function(t, e) { + return Math.round(t / e) * e; + } + }, + { + key: "mix", + value: function(t, e, i) { + return (1 - i) * t + i * e; + } + }, + { + key: "getSign", + value: function(t) { + return t ? (t < 0 ? -1 : 1) : 0; + } + }, + { + key: "opposite", + value: function(t) { + return -t; + } + }, + { + key: "clamp", + value: function(t, e, i) { + return Math.min(Math.max(t, e), i); + } + }, + { + key: "normalize", + value: function(t, e, i) { + return (t - e) / (i - e); + } + }, + { + key: "lerp", + value: function(t, e, i) { + return (e - t) * i + t; + } + }, + { + key: "map", + value: function(t, e, i, n, s) { + return this.lerp(n, s, this.normalize(t, e, i)); + } + }, + { + key: "isIn", + value: function(t, e, i) { + return e <= t && t <= i; + } + }, + { + key: "isOut", + value: function(t, e, i) { + return t < e || i < t; + } + } + ]), + t + ); + })(), + X = (function() { + function i() { + m(this, i); + } + return ( + G(i, null, [ + { + key: "init", + value: function() { + i.createRoundedPis(), i.createFactorialArray(); + } + }, + { + key: "createRoundedPis", + value: function() { + (this.pi = B.round(Math.PI, 2)), + (this.twopi = B.round(2 * Math.PI, 2)), + (this.halfpi = B.round(0.5 * Math.PI, 2)); + } + }, + { + key: "createFactorialArray", + value: function() { + for ( + var t = 3 * this.sineLoops[this.sineLoops.length - 1], + e = 2 * this.cosineLoops[this.cosineLoops.length - 1], + i = 1, + n = 1; + i <= Math.max(t, e); + i++ + ) + (n *= this.factorial(i)), this.factorialArray.push(n); + } + }, + { + key: "factorial", + value: function(t) { + return 1 < t ? t - 1 : 1; + } + }, + { + key: "setSinePrecision", + value: function(t) { + return 0 <= t && t <= this.maxDecimals + ? (this.sineDecimals = t) + : (this.sineDecimals = this.maxDecimals); + } + }, + { + key: "setCosinePrecision", + value: function(t) { + return 0 <= t && t <= this.maxDecimals + ? (this.cosineDecimals = t) + : (this.cosineDecimals = this.maxDecimals); + } + }, + { + key: "setArctanPrecision", + value: function(t) { + return 0 <= t && t <= this.maxDecimals + ? (this.arctanDecimals = t) + : (this.arctanDecimals = this.maxDecimals); + } + }, + { + key: "degreeToRadian", + value: function(t) { + return (t * this.pi) / 180; + } + }, + { + key: "radianToDegree", + value: function(t) { + return (180 * t) / this.pi; + } + }, + { + key: "normalizeRadian", + value: function(t) { + return t > this.pi || t < -this.pi + ? t - this.twopi * Math.floor((t + this.pi) / this.twopi) + : t; + } + }, + { + key: "sine", + value: function(t) { + return ( + (t = this.normalizeRadian(t)), + i.sineDecimals <= 2 && t < 0.28 && -0.28 < t + ? t + : this.taylorSerie( + 3, + i.sineLoops[this.sineDecimals], + t, + t, + !0 + ) + ); + } + }, + { + key: "cosine", + value: function(t) { + var e = (t = this.normalizeRadian(t)) * t; + return this.cosineDecimals <= 2 && t <= 0.5 && -0.5 <= t + ? 1 - 0.5 * e + : this.taylorSerie( + 2, + i.cosineLoops[this.cosineDecimals], + 1, + t, + !0 + ); + } + }, + { + key: "arctan2", + value: function(t, e) { + var i = e / t; + return 0 < t + ? this.arctan(i) + : t < 0 + ? e < 0 + ? this.arctan(i) - this.pi + : this.arctan(i) + this.pi + : e < 0 + ? -this.halfpi + : 0 < e && this.halfpi; + } + }, + { + key: "arctan", + value: function(t) { + var e = i.arctanLoops[this.arctanDecimals]; + return t < 1 && -1 < t + ? this.taylorSerie(3, e, t, t, !1) + : 1 <= t + ? ((t = 1 / t), + -(this.taylorSerie(3, e, t, t, !1) - this.halfpi)) + : ((t = -1 / t), + this.taylorSerie(3, e, t, t, !1) - this.halfpi); + } + }, + { + key: "sineEquation", + value: function(t, e, i, n) { + return t * this.sine(e + i) + n; + } + }, + { + key: "cosineEquation", + value: function(t, e, i, n) { + return t * this.cosine(e + i) + n; + } + }, + { + key: "arctanEquation", + value: function(t, e, i, n) { + return t * this.arctan(e + i) + n; + } + }, + { + key: "taylorSerie", + value: function(t, e, i, n, s) { + for (var r = n * n, o = i, u = -1, a = 0; t <= e; t += 2, a++) + (o += ((i *= r) / (s ? this.factorialArray[t] : t)) * u), + (u = B.opposite(u)); + return o; + } + } + ]), + i + ); + })(); + (X.sineLoops = [9, 11, 13, 15, 17, 18, 19, 21, 23]), + (X.cosineLoops = [6, 8, 10, 12, 14, 16, 18, 20, 22]), + (X.arctanLoops = [17, 19, 21, 23, 25, 27, 29, 31, 33]), + (X.sineDecimals = 2), + (X.cosineDecimals = 2), + (X.arctanDecimals = 2), + (X.maxDecimals = 8), + (X.factorialArray = []), + X.init(); + (function() { + function t() { + m(this, t); + } + G(t, null, [ + { + key: "millisecToSec", + value: function(t) { + return 0.001 * t; + } + }, + { + key: "secToMillisec", + value: function(t) { + return 1e3 * t; + } + }, + { + key: "millisecToFps", + value: function(t) { + return 1e3 / t; + } + }, + { + key: "fpsToMillisec", + value: function(t) { + return 1e3 / t; + } + } + ]); + })(), + (function() { + function t() { + m(this, t); + } + G(t, null, [ + { + key: "float", + value: function(t, e) { + return t + Math.random() * (e - t); + } + }, + { + key: "integer", + value: function(t, e) { + return Math.floor(t + Math.random() * (e - t + 1)); + } + }, + { + key: "distribution", + value: function(t, e, i) { + for (var n = 0, s = 0; s < i; s++) n += this.float(t, e); + return n / i; + } + }, + { + key: "pick", + value: function(t, e) { + return Math.random() < 0.5 ? t : e; + } + } + ]); + })(), + (function() { + function i() { + m(this, i); + } + G(i, null, [ + { + key: "min", + value: function(t) { + return Math.min.apply(Math, e(t)); + } + }, + { + key: "max", + value: function(t) { + return Math.max.apply(Math, e(t)); + } + }, + { + key: "sum", + value: function(t) { + return t.reduce(function(t, e) { + return t + e; + }, 0); + } + }, + { + key: "multiply", + value: function(t) { + return t.reduce(function(t, e) { + return t * e; + }, 0); + } + }, + { + key: "average", + value: function(t, e) { + return i.sum(t) / e; + } + } + ]); + })(); + var W = (function() { + function t() { + m(this, t); + } + return ( + G(t, null, [ + { + key: "quadratic", + value: function(t, e, i, n) { + var s = 1 - n; + return Math.pow(s, 2) * t + 2 * s * n * e + n * n * i; + } + }, + { + key: "cubic", + value: function(t, e, i, n, s) { + var r = 1 - s, + o = s * s; + return ( + Math.pow(r, 3) * t + + 3 * Math.pow(r, 2) * s * e + + 3 * r * o * i + + o * s * n + ); + } + } + ]), + t + ); + })(), + U = (function() { + function i(t, e) { + m(this, i), (this.x = t || 0), (this.y = e || 0); + } + return ( + G(i, [ + { + key: "isOrigin", + value: function() { + return 0 === this.x && 0 === this.y; + } + }, + { + key: "isPositive", + value: function() { + return 0 <= this.x && 0 <= this.y; + } + }, + { + key: "setFromArray", + value: function(t, e) { + return ( + void 0 === e && (e = 0), + (this.x = t[e]), + (this.y = t[e + 1]), + this + ); + } + }, + { + key: "toArray", + value: function() { + return [this.x, this.y]; + } + }, + { + key: "toString", + value: function() { + return "(x = " + this.x + "; y = " + this.y + ")"; + } + }, + { + key: "set", + value: function(t, e) { + return (this.x = t), (this.y = e), this; + } + }, + { + key: "clone", + value: function() { + return new i(this.x, this.y); + } + }, + { + key: "copy", + value: function(t) { + return (this.x = t.x), (this.y = t.y), this; + } + }, + { + key: "origin", + value: function() { + return (this.x = 0), (this.y = 0), this; + } + }, + { + key: "setFromAngle", + value: function(t) { + if (t) { + var e = this.getMagnitude(); + (this.x = X.cosine(t) * e), (this.y = X.sine(t) * e); + } + return this; + } + }, + { + key: "getAngle", + value: function() { + return Math.atan2(this.y, this.x); + } + }, + { + key: "getMagnitude", + value: function(t) { + return 0 < arguments.length && void 0 !== t && t + ? this.getSquaredMagnitude() + : Math.sqrt(this.getSquaredMagnitude()); + } + }, + { + key: "getSquaredMagnitude", + value: function() { + return this.x * this.x + this.y * this.y; + } + }, + { + key: "getDistance", + value: function(t, e) { + var i = 1 < arguments.length && void 0 !== e && e; + this.subtract(t); + var n = this.getMagnitude(i); + return this.add(t), n; + } + }, + { + key: "quadraticBezier", + value: function(t, e, i, n) { + return ( + (this.x = W.quadratic(t.x, e.x, i.x, n)), + (this.y = W.quadratic(t.y, e.y, i.y, n)), + this + ); + } + }, + { + key: "cubicBezier", + value: function(t, e, i, n, s) { + return ( + (this.x = W.cubic(t.x, e.x, i.x, n.x, s)), + (this.y = W.cubic(t.y, e.y, i.y, n.y, s)), + this + ); + } + }, + { + key: "add", + value: function(t) { + return (this.x += t.x), (this.y += t.y), this; + } + }, + { + key: "addScalar", + value: function(t) { + return (this.x += t), (this.y += t), this; + } + }, + { + key: "addScaledVector", + value: function(t, e) { + return (this.x += t.x * e), (this.y += t.y * e), this; + } + }, + { + key: "subtract", + value: function(t) { + return (this.x -= t.x), (this.y -= t.y), this; + } + }, + { + key: "subtractScalar", + value: function(t) { + return (this.x -= t), (this.y -= t), this; + } + }, + { + key: "subtractScaledVector", + value: function(t, e) { + return (this.x -= t.x * e), (this.y -= t.y * e), this; + } + }, + { + key: "scale", + value: function(t) { + return (this.x *= t), (this.y *= t), this; + } + }, + { + key: "multiply", + value: function(t) { + return (this.x *= t.x), (this.y *= t.y), this; + } + }, + { + key: "multiplyScaledVector", + value: function(t, e) { + return (this.x *= t.x * e), (this.y *= t.y * e), this; + } + }, + { + key: "divide", + value: function(t) { + return (this.x /= t.x), (this.y /= t.y), this; + } + }, + { + key: "divideScaledVector", + value: function(t, e) { + return (this.x /= t.x * e), (this.y /= t.y * e), this; + } + }, + { + key: "halve", + value: function() { + return (this.x *= 0.5), (this.y *= 0.5), this; + } + }, + { + key: "max", + value: function(t) { + return ( + (this.x = Math.max(this.x, t.x)), + (this.y = Math.max(this.y, t.y)), + this + ); + } + }, + { + key: "min", + value: function(t) { + return ( + (this.x = Math.min(this.x, t.x)), + (this.y = Math.min(this.y, t.y)), + this + ); + } + }, + { + key: "maxScalar", + value: function(t) { + return ( + (this.x = Math.max(this.x, t)), + (this.y = Math.max(this.y, t)), + this + ); + } + }, + { + key: "minScalar", + value: function(t) { + return ( + (this.x = Math.min(this.x, t)), + (this.y = Math.min(this.y, t)), + this + ); + } + }, + { + key: "getMaxAxis", + value: function() { + return this.y > this.x ? "y" : "x"; + } + }, + { + key: "getMinAxis", + value: function() { + return this.y < this.x ? "y" : "x"; + } + }, + { + key: "setOppositeAxis", + value: function(t, e) { + return "y" === t ? (this.x = e) : (this.y = e), this; + } + }, + { + key: "normalize", + value: function() { + var t = this.getMagnitude(); + return t && 1 != t && this.scale(1 / t), this; + } + }, + { + key: "absolute", + value: function() { + return ( + (this.x = Math.abs(this.x)), (this.y = Math.abs(this.y)), this + ); + } + }, + { + key: "opposite", + value: function() { + return (this.x = -this.x), (this.y = -this.y), this; + } + }, + { + key: "clamp", + value: function(t) { + return ( + (this.x = B.clamp( + this.x, + t.topLeftCorner.x, + t.bottomRightCorner.x + )), + (this.y = B.clamp( + this.y, + t.topLeftCorner.y, + t.bottomRightCorner.y + )), + this + ); + } + }, + { + key: "lerp", + value: function(t, e, i) { + return ( + (this.x = B.lerp(t.x, e.x, i)), + (this.y = B.lerp(t.y, e.y, i)), + this + ); + } + }, + { + key: "dotProduct", + value: function(t) { + return this.x * t.x + this.y * t.y; + } + } + ]), + i + ); + })(), + Z = + ((function() { + function n(t, e, i) { + m(this, n), + (this.shape = "circle"), + (this._radius = 0), + (this._diameter = 0), + (this.position = new U(t, e)), + (this.radius = i); + } + G(n, [ + { + key: "clone", + value: function() { + return new n(this.position.x, this.position.y, this.radius); + } + }, + { + key: "copy", + value: function(t) { + return ( + this.position.copy(t.position), (this.radius = t.radius), this + ); + } + }, + { + key: "set", + value: function(t, e, i) { + return this.position.set(t, e), (this.radius = i), this; + } + }, + { + key: "setPositionXY", + value: function(t, e) { + return this.position.set(t, e), this; + } + }, + { + key: "setPositionFromVector", + value: function(t) { + return this.position.copy(t), this; + } + }, + { + key: "scale", + value: function(t) { + return (this.radius *= t), this; + } + }, + { + key: "isIn", + value: function(t) { + return ( + t.getDistance(this.position, !0) <= this.radius * this.radius + ); + } + }, + { + key: "draw", + value: function(t, e, i, n) { + t.beginPath(), + t.arc( + this.position.x, + this.position.y, + this.radius, + 0, + X.twopi, + !1 + ), + e && ((t.fillStyle = e), t.fill()), + i && ((t.strokeStyle = i), (t.lineWidth = n), t.stroke()); + } + }, + { + key: "radius", + set: function(t) { + (this._radius = t), (this._diameter = 2 * this._radius); + }, + get: function() { + return this._radius; + } + }, + { + key: "diameter", + set: function(t) { + (this._diameter = t), (this._radius = 0.5 * this._diameter); + }, + get: function() { + return this._diameter; + } + } + ]); + })(), + (function() { + function s(t, e, i, n) { + m(this, s), + (this.shape = "aabb"), + (this.size = new U(i, n)), + (this.halfSize = new U()), + this.setHalfSize(), + (this.position = new U(t, e)), + (this.topLeftCorner = new U( + t - this.halfSize.x, + e - this.halfSize.y + )), + (this.bottomRightCorner = new U( + t + this.halfSize.x, + e + this.halfSize.y + )); + } + G(s, [ + { + key: "clone", + value: function() { + return new s( + this.position.x, + this.position.y, + this.size.x, + this.size.y + ); + } + }, + { + key: "copy", + value: function(t) { + return ( + this.setSizeFromVector(t.size), + this.setPositionFromVector(t.position), + this + ); + } + }, + { + key: "set", + value: function(t, e, i, n) { + return this.setSizeXY(i, n), this.setPositionXY(t, e), this; + } + }, + { + key: "setPositionX", + value: function(t) { + return this.setPosition("x", t), this; + } + }, + { + key: "setPositionY", + value: function(t) { + return this.setPosition("y", t), this; + } + }, + { + key: "setPosition", + value: function(t, e) { + (this.position[t] = e), + (this.topLeftCorner[t] = e - this.halfSize[t]), + (this.bottomRightCorner[t] = e + this.halfSize[t]); + } + }, + { + key: "setPositionXY", + value: function(t, e) { + return this.position.set(t, e), this.setCorners(), this; + } + }, + { + key: "setPositionFromVector", + value: function(t) { + return this.position.copy(t), this.setCorners(), this; + } + }, + { + key: "setSizeX", + value: function(t) { + return this.setSize("x", t), this; + } + }, + { + key: "setSizeY", + value: function(t) { + return this.setSize("y", t), this; + } + }, + { + key: "setSize", + value: function(t, e) { + (this.size[t] = e), + this.setHalfSize(), + (this.topLeftCorner[t] = this.position[t] - this.halfSize[t]), + (this.bottomRightCorner[t] = + this.position[t] + this.halfSize[t]); + } + }, + { + key: "setSizeXY", + value: function(t, e) { + return ( + this.size.set(t, e), this.setHalfSize(), this.setCorners(), this + ); + } + }, + { + key: "setSizeFromVector", + value: function(t) { + return ( + this.size.copy(t), this.setHalfSize(), this.setCorners(), this + ); + } + }, + { + key: "setCorners", + value: function() { + this.topLeftCorner.set( + this.position.x - this.halfSize.x, + this.position.y - this.halfSize.y + ), + this.bottomRightCorner.set( + this.position.x + this.halfSize.x, + this.position.y + this.halfSize.y + ); + } + }, + { + key: "setHalfSize", + value: function() { + this.halfSize.copy(this.size), this.halfSize.halve(); + } + }, + { + key: "isIn", + value: function(t) { + return ( + B.isIn(t.x, this.topLeftCorner.x, this.bottomRightCorner.x) && + B.isIn(t.y, this.topLeftCorner.y, this.bottomRightCorner.y) + ); + } + }, + { + key: "draw", + value: function(t, e, i, n) { + t.beginPath(), + t.rect( + this.topLeftCorner.x, + this.topLeftCorner.y, + this.size.x, + this.size.y + ), + e && ((t.fillStyle = e), t.fill()), + i && ((t.strokeStyle = i), (t.lineWidth = n), t.stroke()); + } + } + ]); + })(), + (function() { + function n(t, e, i) { + m(this, n), (this.x = t || 0), (this.y = e || 0), (this.z = i || 0); + } + return ( + G(n, [ + { + key: "isOrigin", + value: function() { + return 0 === this.x && 0 === this.y && 0 === this.z; + } + }, + { + key: "isPositive", + value: function() { + return 0 <= this.x && 0 <= this.y && 0 <= this.z; + } + }, + { + key: "setFromArray", + value: function(t, e) { + return ( + void 0 === e && (e = 0), + (this.x = t[e]), + (this.y = t[e + 1]), + (this.z = t[e + 2]), + this + ); + } + }, + { + key: "toArray", + value: function() { + return [this.x, this.y, this.z]; + } + }, + { + key: "toString", + value: function() { + return ( + "(x = " + this.x + "; y = " + this.y + "; z = " + this.z + ")" + ); + } + }, + { + key: "set", + value: function(t, e, i) { + return (this.x = t), (this.y = e), (this.z = i), this; + } + }, + { + key: "clone", + value: function() { + return new n(this.x, this.y, this.z); + } + }, + { + key: "copy", + value: function(t) { + return (this.x = t.x), (this.y = t.y), (this.z = t.z), this; + } + }, + { + key: "origin", + value: function() { + return (this.x = 0), (this.y = 0), (this.z = 0), this; + } + }, + { + key: "getMagnitude", + value: function(t) { + return 0 < arguments.length && void 0 !== t && t + ? this.getSquaredMagnitude() + : Math.sqrt(this.getSquaredMagnitude()); + } + }, + { + key: "getSquaredMagnitude", + value: function() { + return this.x * this.x + this.y * this.y + this.z * this.z; + } + }, + { + key: "getDistance", + value: function(t, e) { + var i = 1 < arguments.length && void 0 !== e && e; + this.subtract(t); + var n = this.getMagnitude(i); + return this.add(t), n; + } + }, + { + key: "add", + value: function(t) { + return (this.x += t.x), (this.y += t.y), (this.z += t.z), this; + } + }, + { + key: "addScalar", + value: function(t) { + return (this.x += t), (this.y += t), (this.z += t), this; + } + }, + { + key: "addScaledVector", + value: function(t, e) { + return ( + (this.x += t.x * e), + (this.y += t.y * e), + (this.z += t.z * e), + this + ); + } + }, + { + key: "subtract", + value: function(t) { + return (this.x -= t.x), (this.y -= t.y), (this.z -= t.z), this; + } + }, + { + key: "subtractScalar", + value: function(t) { + return (this.x -= t), (this.y -= t), (this.z -= t), this; + } + }, + { + key: "subtractScaledVector", + value: function(t, e) { + return ( + (this.x -= t.x * e), + (this.y -= t.y * e), + (this.z -= t.z * e), + this + ); + } + }, + { + key: "scale", + value: function(t) { + return (this.x *= t), (this.y *= t), (this.z *= t), this; + } + }, + { + key: "multiply", + value: function(t) { + return (this.x *= t.x), (this.y *= t.y), (this.z *= t.z), this; + } + }, + { + key: "multiplyScaledVector", + value: function(t, e) { + return ( + (this.x *= t.x * e), + (this.y *= t.y * e), + (this.z *= t.z * e), + this + ); + } + }, + { + key: "divide", + value: function(t) { + return (this.x /= t.x), (this.y /= t.y), (this.z /= t.z), this; + } + }, + { + key: "divideScaledVector", + value: function(t, e) { + return ( + (this.x /= t.x * e), + (this.y /= t.y * e), + (this.z /= t.z * e), + this + ); + } + }, + { + key: "halve", + value: function() { + return (this.x *= 0.5), (this.y *= 0.5), (this.z *= 0.5), this; + } + }, + { + key: "max", + value: function(t) { + return ( + (this.x = Math.max(this.x, t.x)), + (this.y = Math.max(this.y, t.y)), + (this.z = Math.max(this.z, t.z)), + this + ); + } + }, + { + key: "min", + value: function(t) { + return ( + (this.x = Math.min(this.x, t.x)), + (this.y = Math.min(this.y, t.y)), + (this.z = Math.min(this.z, t.z)), + this + ); + } + }, + { + key: "maxScalar", + value: function(t) { + return ( + (this.x = Math.max(this.x, t)), + (this.y = Math.max(this.y, t)), + (this.z = Math.max(this.z, t)), + this + ); + } + }, + { + key: "minScalar", + value: function(t) { + return ( + (this.x = Math.min(this.x, t)), + (this.y = Math.min(this.y, t)), + (this.z = Math.min(this.z, t)), + this + ); + } + }, + { + key: "normalize", + value: function() { + var t = this.getMagnitude(); + return t && 1 != t && this.scale(1 / t), this; + } + }, + { + key: "absolute", + value: function() { + return ( + (this.x = Math.abs(this.x)), + (this.y = Math.abs(this.y)), + (this.z = Math.abs(this.z)), + this + ); + } + }, + { + key: "opposite", + value: function() { + return ( + (this.x = -this.x), + (this.y = -this.y), + (this.z = -this.z), + this + ); + } + }, + { + key: "dotProduct", + value: function(t) { + return this.x * t.x + this.y * t.y + this.z * t.z; + } + }, + { + key: "cross", + value: function(t) { + var e = this.x, + i = this.y, + n = this.z; + return ( + (this.x = i * t.z - n * t.y), + (this.y = n * t.x - e * t.z), + (this.z = e * t.y - i * t.x), + this + ); + } + } + ]), + n + ); + })()), + J = + ((function() { + function h(t, e, i, n, s, r, o, u, a) { + m(this, h), + (this.m = new Float32Array(9)), + this.make(t, e, i, n, s, r, o, u, a); + } + G(h, [ + { + key: "make", + value: function(t, e, i, n, s, r, o, u, a) { + (this.m[0] = t || 0), + (this.m[1] = e || 0), + (this.m[2] = i || 0), + (this.m[3] = n || 0), + (this.m[4] = s || 0), + (this.m[5] = r || 0), + (this.m[6] = o || 0), + (this.m[7] = u || 0), + (this.m[8] = a || 0); + } + }, + { + key: "copy", + value: function(t) { + var e = t.m; + return ( + this.make(e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], e[8]), + this + ); + } + }, + { + key: "toArray", + value: function() { + return this.m; + } + }, + { + key: "toString", + value: function() { + return ( + "(" + + this.m[0] + + "," + + this.m[1] + + "," + + this.m[2] + + ";" + + this.m[3] + + "," + + this.m[4] + + "," + + this.m[5] + + ";" + + this.m[6] + + "," + + this.m[7] + + "," + + this.m[8] + + ")" + ); + } + }, + { + key: "identity", + value: function() { + return this.make(1, 0, 0, 0, 1, 0, 0, 0, 1), this; + } + }, + { + key: "scale", + value: function(t) { + return this.make(t.x, 0, 0, 0, t.y, 0, 0, 0, 1), this; + } + }, + { + key: "rotate", + value: function(t) { + var e = X.cosine(t), + i = X.sine(t); + return this.make(e, i, 0, -i, e, 0, 0, 0, 1), this; + } + }, + { + key: "translate", + value: function(t) { + return this.make(1, 0, 0, 0, 1, 0, t.x, t.y, 1), this; + } + }, + { + key: "multiply", + value: function(t) { + var e = this.m, + i = t.m; + return ( + this.make( + e[0] * i[0] + e[3] * i[1] + e[6] * i[2], + e[1] * i[0] + e[4] * i[1] + e[7] * i[2], + e[2] * i[0] + e[5] * i[1] + e[8] * i[2], + e[0] * i[3] + e[3] * i[4] + e[6] * i[5], + e[1] * i[3] + e[4] * i[4] + e[7] * i[5], + e[2] * i[3] + e[5] * i[4] + e[8] * i[5], + e[0] * i[6] + e[3] * i[7] + e[6] * i[8], + e[1] * i[6] + e[4] * i[7] + e[7] * i[8], + e[2] * i[6] + e[5] * i[7] + e[8] * i[8] + ), + this + ); + } + } + ]); + })(), + (function() { + function y(t, e, i, n, s, r, o, u, a, h, c, l) { + m(this, y), + (this.m = new Float32Array(16)), + (this.xAxis = new Z()), + (this.yAxis = new Z()), + (this.zAxis = new Z()), + this.make(t, e, i, n, s, r, o, u, a, h, c, l); + } + G(y, [ + { + key: "make", + value: function(t, e, i, n, s, r, o, u, a, h, c, l) { + (this.m[0] = t || 0), + (this.m[1] = e || 0), + (this.m[2] = i || 0), + (this.m[3] = 0), + (this.m[4] = n || 0), + (this.m[5] = s || 0), + (this.m[6] = r || 0), + (this.m[7] = 0), + (this.m[8] = o || 0), + (this.m[9] = u || 0), + (this.m[10] = a || 0), + (this.m[11] = 0), + (this.m[12] = h || 0), + (this.m[13] = c || 0), + (this.m[14] = l || 0), + (this.m[15] = 1); + } + }, + { + key: "copy", + value: function(t) { + var e = t.m; + return ( + this.make( + e[0], + e[1], + e[2], + e[4], + e[5], + e[6], + e[8], + e[9], + e[10], + e[12], + e[13], + e[14] + ), + this + ); + } + }, + { + key: "toArray", + value: function() { + return this.m; + } + }, + { + key: "toString", + value: function() { + return ( + "(" + + this.m[0] + + "," + + this.m[1] + + "," + + this.m[2] + + "," + + this.m[3] + + ";" + + this.m[4] + + "," + + this.m[5] + + "," + + this.m[6] + + "," + + this.m[7] + + ";" + + this.m[8] + + "," + + this.m[9] + + "," + + this.m[10] + + "," + + this.m[11] + + ";" + + this.m[12] + + "," + + this.m[13] + + "," + + this.m[14] + + "," + + this.m[15] + + ")" + ); + } + }, + { + key: "identity", + value: function() { + return this.make(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0), this; + } + }, + { + key: "scale", + value: function(t) { + return this.make(t.x, 0, 0, 0, t.y, 0, 0, 0, t.z, 0, 0, 0), this; + } + }, + { + key: "rotateX", + value: function(t) { + var e = X.cosine(t), + i = X.sine(t); + return this.make(1, 0, 0, 0, e, i, 0, -i, e, 0, 0, 0), this; + } + }, + { + key: "rotateY", + value: function(t) { + var e = X.cosine(t), + i = X.sine(t); + return this.make(e, 0, -i, 0, 1, 0, i, 0, e, 0, 0, 0), this; + } + }, + { + key: "rotateZ", + value: function(t) { + var e = X.cosine(t), + i = X.sine(t); + return this.make(e, i, 0, -i, e, 0, 0, 0, 1, 0, 0, 0), this; + } + }, + { + key: "translate", + value: function(t) { + return this.make(1, 0, 0, 0, 1, 0, 0, 0, 1, t.x, t.y, t.z), this; + } + }, + { + key: "multiply", + value: function(t) { + var e = this.m, + i = t.m; + return ( + this.make( + e[0] * i[0] + e[4] * i[1] + e[8] * i[2], + e[1] * i[0] + e[5] * i[1] + e[9] * i[2], + e[2] * i[0] + e[6] * i[1] + e[10] * i[2], + e[0] * i[4] + e[4] * i[5] + e[8] * i[6], + e[1] * i[4] + e[5] * i[5] + e[9] * i[6], + e[2] * i[4] + e[6] * i[5] + e[10] * i[6], + e[0] * i[8] + e[4] * i[9] + e[8] * i[10], + e[1] * i[8] + e[5] * i[9] + e[9] * i[10], + e[2] * i[8] + e[6] * i[9] + e[10] * i[10], + e[0] * i[12] + e[4] * i[13] + e[8] * i[14] + e[12], + e[1] * i[12] + e[5] * i[13] + e[9] * i[14] + e[13], + e[2] * i[12] + e[6] * i[13] + e[10] * i[14] + e[14] + ), + this + ); + } + }, + { + key: "lookAtRH", + value: function(t, e, i) { + return ( + this.zAxis + .copy(t) + .subtract(e) + .normalize(), + this.xAxis + .copy(i) + .cross(this.zAxis) + .normalize(), + this.yAxis.copy(this.zAxis).cross(this.xAxis), + this.make( + this.xAxis.x, + this.yAxis.x, + this.zAxis.x, + this.xAxis.y, + this.yAxis.y, + this.zAxis.y, + this.xAxis.z, + this.yAxis.z, + this.zAxis.z, + -this.xAxis.dotProduct(t), + -this.yAxis.dotProduct(t), + -this.zAxis.dotProduct(t) + ), + this + ); + } + } + ]); + })(), + (function() { + function d(t, e, i, n, s, r, o, u, a, h, c, l, y, f, p, v) { + m(this, d), + (this.m = new Float32Array(16)), + this.make(t, e, i, n, s, r, o, u, a, h, c, l, y, f, p, v); + } + G(d, [ + { + key: "make", + value: function(t, e, i, n, s, r, o, u, a, h, c, l, y, f, p, v) { + (this.m[0] = t || 0), + (this.m[1] = e || 0), + (this.m[2] = i || 0), + (this.m[3] = n || 0), + (this.m[4] = s || 0), + (this.m[5] = r || 0), + (this.m[6] = o || 0), + (this.m[7] = u || 0), + (this.m[8] = a || 0), + (this.m[9] = h || 0), + (this.m[10] = c || 0), + (this.m[11] = l || 0), + (this.m[12] = y || 0), + (this.m[13] = f || 0), + (this.m[14] = p || 0), + (this.m[15] = v || 0); + } + }, + { + key: "copy", + value: function(t) { + var e = t.m; + return ( + this.make( + e[0], + e[1], + e[2], + e[3], + e[4], + e[5], + e[6], + e[7], + e[8], + e[9], + e[10], + e[11], + e[12], + e[13], + e[14], + e[15] + ), + this + ); + } + }, + { + key: "toArray", + value: function() { + return this.m; + } + }, + { + key: "toString", + value: function() { + return ( + "(" + + this.m[0] + + "," + + this.m[1] + + "," + + this.m[2] + + "," + + this.m[3] + + ";" + + this.m[4] + + "," + + this.m[5] + + "," + + this.m[6] + + "," + + this.m[7] + + ";" + + this.m[8] + + "," + + this.m[9] + + "," + + this.m[10] + + "," + + this.m[11] + + ";" + + this.m[12] + + "," + + this.m[13] + + "," + + this.m[14] + + "," + + this.m[15] + + ")" + ); + } + }, + { + key: "identity", + value: function() { + return ( + this.make(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1), this + ); + } + }, + { + key: "scale", + value: function(t) { + return ( + this.make(t.x, 0, 0, 0, 0, t.y, 0, 0, 0, 0, t.z, 0, 0, 0, 0, 1), + this + ); + } + }, + { + key: "rotateX", + value: function(t) { + var e = X.cosine(t), + i = X.sine(t); + return ( + this.make(1, 0, 0, 0, 0, e, i, 0, 0, -i, e, 0, 0, 0, 0, 1), this + ); + } + }, + { + key: "rotateY", + value: function(t) { + var e = X.cosine(t), + i = X.sine(t); + return ( + this.make(e, 0, -i, 0, 0, 1, 0, 0, i, 0, e, 0, 0, 0, 0, 1), this + ); + } + }, + { + key: "rotateZ", + value: function(t) { + var e = X.cosine(t), + i = X.sine(t); + return ( + this.make(e, i, 0, 0, -i, e, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1), this + ); + } + }, + { + key: "translate", + value: function(t) { + return ( + this.make(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, t.x, t.y, t.z, 1), + this + ); + } + }, + { + key: "multiply", + value: function(t) { + var e = this.m, + i = t.m; + return ( + this.make( + e[0] * i[0] + e[4] * i[1] + e[8] * i[2], + e[1] * i[0] + e[5] * i[1] + e[9] * i[2], + e[2] * i[0] + e[6] * i[1] + e[10] * i[2], + 0, + e[0] * i[4] + e[4] * i[5] + e[8] * i[6], + e[1] * i[4] + e[5] * i[5] + e[9] * i[6], + e[2] * i[4] + e[6] * i[5] + e[10] * i[6], + 0, + e[0] * i[8] + e[4] * i[9] + e[8] * i[10], + e[1] * i[8] + e[5] * i[9] + e[9] * i[10], + e[2] * i[8] + e[6] * i[9] + e[10] * i[10], + 0, + e[0] * i[12] + e[4] * i[13] + e[8] * i[14] + e[12], + e[1] * i[12] + e[5] * i[13] + e[9] * i[14] + e[13], + e[2] * i[12] + e[6] * i[13] + e[10] * i[14] + e[14], + 1 + ), + this + ); + } + }, + { + key: "perspective", + value: function(t, e, i, n) { + var s = Math.tan(X.halfpi - (0.5 * t * X.pi) / 180), + r = 1 / (i - n); + return ( + this.make( + s / e, + 0, + 0, + 0, + 0, + s, + 0, + 0, + 0, + 0, + (i + n) * r, + -1, + 0, + 0, + i * n * r * 2, + 0 + ), + this + ); + } + }, + { + key: "orthographic", + value: function(t, e, i, n, s, r) { + var o = e - t, + u = i - n, + a = r - s, + h = (e + t) / o, + c = (i + n) / u, + l = (r + s) / a; + return ( + this.make( + 2 / o, + 0, + 0, + 0, + 0, + 2 / u, + 0, + 0, + 0, + 0, + -2 / a, + 0, + -h, + -c, + -l, + 1 + ), + this + ); + } + } + ]); + })(), + (function() { + function n(t, e) { + for (var i = 0; i < e.length; i++) { + var n = e[i]; + (n.enumerable = n.enumerable || !1), + (n.configurable = !0), + "value" in n && (n.writable = !0), + Object.defineProperty(t, n.key, n); + } } - } - return function(t, e, n) { - return e && i(t.prototype, e), n && i(t, n), t; - }; - })(), - C = (function() { + return function(t, e, i) { + return e && n(t.prototype, e), i && n(t, i), t; + }; + })()), + $ = (function() { function t() { - m(this, t); + k(this, t); } return ( - D(t, null, [ + J(t, null, [ { key: "round", value: function(t, e) { @@ -19501,10 +21437,10 @@ var Orbis = (function(t) { { key: "trunc", value: function(t, e) { - var n = +t * (e = Math.pow(10, e)); - return isFinite(n) - ? (n - (n % 1)) / e || (n < 0 ? -0 : 0 === n ? n : 0) - : n; + var i = +t * (e = Math.pow(10, e)); + return isFinite(i) + ? (i - (i % 1)) / e || (i < 0 ? -0 : 0 === i ? i : 0) + : i; } }, { @@ -19515,8 +21451,8 @@ var Orbis = (function(t) { }, { key: "mix", - value: function(t, e, n) { - return (1 - n) * t + n * e; + value: function(t, e, i) { + return (1 - i) * t + i * e; } }, { @@ -19533,26 +21469,26 @@ var Orbis = (function(t) { }, { key: "clamp", - value: function(t, e, n) { - return Math.min(Math.max(t, e), n); + value: function(t, e, i) { + return Math.min(Math.max(t, e), i); } }, { key: "normalize", - value: function(t, e, n) { - return (t - e) / (n - e); + value: function(t, e, i) { + return (t - e) / (i - e); } }, { key: "lerp", - value: function(t, e, n) { - return (n - e) * t + e; + value: function(t, e, i) { + return (i - e) * t + e; } }, { key: "map", - value: function(t, e, n, i, r) { - return this.lerp(this.normalize(t, e, n), i, r); + value: function(t, e, i, n, s) { + return this.lerp(this.normalize(t, e, i), n, s); } }, { @@ -19587,32 +21523,32 @@ var Orbis = (function(t) { }, { key: "contains", - value: function(t, e, n) { - return e <= t && t <= n; + value: function(t, e, i) { + return e <= t && t <= i; } } ]), t ); })(), - q = (function() { - function n() { - m(this, n); + K = (function() { + function i() { + k(this, i); } return ( - D(n, null, [ + J(i, null, [ { key: "init", value: function() { - n.createRoundedPis(), n.createFactorialArray(); + i.createRoundedPis(), i.createFactorialArray(); } }, { key: "createRoundedPis", value: function() { - (this.pi = C.round(Math.PI, 2)), - (this.twopi = C.round(2 * Math.PI, 2)), - (this.halfpi = C.round(0.5 * Math.PI, 2)); + (this.pi = $.round(Math.PI, 2)), + (this.twopi = $.round(2 * Math.PI, 2)), + (this.halfpi = $.round(0.5 * Math.PI, 2)); } }, { @@ -19621,12 +21557,12 @@ var Orbis = (function(t) { for ( var t = 3 * this.sineLoops[this.sineLoops.length - 1], e = 2 * this.cosineLoops[this.cosineLoops.length - 1], - n = 1, - i = 1; - n <= Math.max(t, e); - n++ + i = 1, + n = 1; + i <= Math.max(t, e); + i++ ) - (i *= this.factorial(n)), this.factorialArray.push(i); + (n *= this.factorial(i)), this.factorialArray.push(n); } }, { @@ -19646,7 +21582,7 @@ var Orbis = (function(t) { { key: "setCosinePrecision", value: function(t) { - return t < n.cosineLoops.length + return t < i.cosineLoops.length ? (this.cosineDecimals = t) : (this.cosineDecimals = 2); } @@ -19654,7 +21590,7 @@ var Orbis = (function(t) { { key: "setArctanPrecision", value: function(t) { - return t < n.arctanLoops.length + return t < i.arctanLoops.length ? (this.cosineDecimals = t) : (this.arctanDecimals = 2); } @@ -19684,11 +21620,11 @@ var Orbis = (function(t) { value: function(t) { return ( (t = this.normalizeRadian(t)), - n.sineDecimals <= 2 && t < 0.28 && -0.28 < t + i.sineDecimals <= 2 && t < 0.28 && -0.28 < t ? t : this.taylorSerie( 3, - n.sineLoops[this.sineDecimals], + i.sineLoops[this.sineDecimals], t, t, !0 @@ -19704,7 +21640,7 @@ var Orbis = (function(t) { ? 1 - 0.5 * e : this.taylorSerie( 2, - n.cosineLoops[this.cosineDecimals], + i.cosineLoops[this.cosineDecimals], 1, t, !0 @@ -19714,13 +21650,13 @@ var Orbis = (function(t) { { key: "arctan2", value: function(t, e) { - var n = e / t; + var i = e / t; return 0 < t - ? this.arctan(n) + ? this.arctan(i) : t < 0 ? e < 0 - ? this.arctan(n) - this.pi - : this.arctan(n) + this.pi + ? this.arctan(i) - this.pi + : this.arctan(i) + this.pi : e < 0 ? -this.halfpi : 0 < e && this.halfpi; @@ -19735,7 +21671,7 @@ var Orbis = (function(t) { { key: "arctan", value: function(t) { - var e = n.arctanLoops[this.arctanDecimals]; + var e = i.arctanLoops[this.arctanDecimals]; return t < 1 && -1 < t ? this.taylorSerie(3, e, t, t, !1) : 1 <= t @@ -19747,49 +21683,49 @@ var Orbis = (function(t) { }, { key: "sineEquation", - value: function(t, e, n, i) { - return t * this.sine(e + n) + i; + value: function(t, e, i, n) { + return t * this.sine(e + i) + n; } }, { key: "cosineEquation", - value: function(t, e, n, i) { - return t * this.cosine(e + n) + i; + value: function(t, e, i, n) { + return t * this.cosine(e + i) + n; } }, { key: "arctanEquation", - value: function(t, e, n, i) { - return t * this.arctan(e + n) + i; + value: function(t, e, i, n) { + return t * this.arctan(e + i) + n; } }, { key: "taylorSerie", - value: function(t, e, n, i, r) { - for (var s = i * i, o = n, a = -1, u = 0; t <= e; t += 2, u++) - (o += ((n *= s) / (r ? this.factorialArray[t] : t)) * a), - (a = C.opposite(a)); + value: function(t, e, i, n, s) { + for (var r = n * n, o = i, u = -1, a = 0; t <= e; t += 2, a++) + (o += ((i *= r) / (s ? this.factorialArray[t] : t)) * u), + (u = $.opposite(u)); return o; } } ]), - n + i ); })(); - (q.sineLoops = [9, 11, 13, 15, 17, 18, 19, 21, 23]), - (q.cosineLoops = [6, 8, 10, 12, 14, 16, 18, 20, 22]), - (q.arctanLoops = [17, 19, 21, 23, 25, 27, 29, 31, 33]), - (q.sineDecimals = 2), - (q.cosineDecimals = 2), - (q.arctanDecimals = 2), - (q.factorialArray = []), - q.init(); - var H = (function() { + (K.sineLoops = [9, 11, 13, 15, 17, 18, 19, 21, 23]), + (K.cosineLoops = [6, 8, 10, 12, 14, 16, 18, 20, 22]), + (K.arctanLoops = [17, 19, 21, 23, 25, 27, 29, 31, 33]), + (K.sineDecimals = 2), + (K.cosineDecimals = 2), + (K.arctanDecimals = 2), + (K.factorialArray = []), + K.init(); + var Q = (function() { function t() { - m(this, t); + k(this, t); } return ( - D(t, null, [ + J(t, null, [ { key: "millisecondToSecond", value: function(t) { @@ -19818,12 +21754,12 @@ var Orbis = (function(t) { t ); })(), - V = + tt = ((function() { function t() { - m(this, t); + k(this, t); } - D(t, null, [ + J(t, null, [ { key: "float", value: function(t, e) { @@ -19838,9 +21774,9 @@ var Orbis = (function(t) { }, { key: "distribution", - value: function(t, e, n) { - for (var i = 0, r = 0; r < n; r++) i += this.float(t, e); - return i / n; + value: function(t, e, i) { + for (var n = 0, s = 0; s < i; s++) n += this.float(t, e); + return n / i; } }, { @@ -19852,21 +21788,21 @@ var Orbis = (function(t) { ]); })(), (function() { - function n() { - m(this, n); + function i() { + k(this, i); } return ( - D(n, null, [ + J(i, null, [ { key: "min", value: function(t) { - return Math.min.apply(Math, e(t)); + return Math.min.apply(Math, n(t)); } }, { key: "max", value: function(t) { - return Math.max.apply(Math, e(t)); + return Math.max.apply(Math, n(t)); } }, { @@ -19888,36 +21824,36 @@ var Orbis = (function(t) { { key: "average", value: function(t, e) { - return n.sum(t) / e; + return i.sum(t) / e; } } ]), - n + i ); })()), - R = (function() { + et = (function() { function t() { - m(this, t); + k(this, t); } return ( - D(t, null, [ + J(t, null, [ { key: "quadratic", - value: function(t, e, n, i) { - var r = 1 - i; - return Math.pow(r, 2) * t + 2 * r * i * e + i * i * n; + value: function(t, e, i, n) { + var s = 1 - n; + return Math.pow(s, 2) * t + 2 * s * n * e + n * n * i; } }, { key: "cubic", - value: function(t, e, n, i, r) { - var s = 1 - r, - o = r * r; + value: function(t, e, i, n, s) { + var r = 1 - s, + o = s * s; return ( - Math.pow(s, 3) * t + - 3 * Math.pow(s, 2) * r * e + - 3 * s * o * n + - o * r * i + Math.pow(r, 3) * t + + 3 * Math.pow(r, 2) * s * e + + 3 * r * o * i + + o * s * n ); } } @@ -19925,34 +21861,34 @@ var Orbis = (function(t) { t ); })(), - j = (function() { - function n(t, e) { - m(this, n), (this.x = t || 0), (this.y = e || 0); + it = (function() { + function i(t, e) { + k(this, i), (this.x = t || 0), (this.y = e || 0); } return ( - D(n, [ + J(i, [ { key: "isOrigin", value: function() { - return !(!C.isOrigin(this.x) || !C.isOrigin(this.y)); + return !(!$.isOrigin(this.x) || !$.isOrigin(this.y)); } }, { key: "isNotOrigin", value: function() { - return !C.isOrigin(this.x) || !C.isOrigin(this.y); + return !$.isOrigin(this.x) || !$.isOrigin(this.y); } }, { key: "isPositive", value: function() { - return !(!C.isPositive(this.x) || !C.isPositive(this.y)); + return !(!$.isPositive(this.x) || !$.isPositive(this.y)); } }, { key: "isNegative", value: function() { - return !(!C.isNegative(this.x) || !C.isNegative(this.y)); + return !(!$.isNegative(this.x) || !$.isNegative(this.y)); } }, { @@ -19987,7 +21923,7 @@ var Orbis = (function(t) { { key: "clone", value: function() { - return new n(this.x, this.y); + return new i(this.x, this.y); } }, { @@ -20007,7 +21943,7 @@ var Orbis = (function(t) { value: function(t) { if (t) { var e = this.getMagnitude(); - (this.x = q.cosine(t) * e), (this.y = q.sine(t) * e); + (this.x = K.cosine(t) * e), (this.y = K.sine(t) * e); } return this; } @@ -20048,20 +21984,20 @@ var Orbis = (function(t) { }, { key: "quadraticBezier", - value: function(t, e, n, i) { + value: function(t, e, i, n) { return ( - (this.x = R.quadratic(t.x, e.x, n.x, i)), - (this.y = R.quadratic(t.y, e.y, n.y, i)), + (this.x = et.quadratic(t.x, e.x, i.x, n)), + (this.y = et.quadratic(t.y, e.y, i.y, n)), this ); } }, { key: "cubicBezier", - value: function(t, e, n, i, r) { + value: function(t, e, i, n, s) { return ( - (this.x = R.cubic(t.x, e.x, n.x, i.x, r)), - (this.y = R.cubic(t.y, e.y, n.y, i.y, r)), + (this.x = et.cubic(t.x, e.x, i.x, n.x, s)), + (this.y = et.cubic(t.y, e.y, i.y, n.y, s)), this ); } @@ -20269,12 +22205,12 @@ var Orbis = (function(t) { key: "clamp", value: function(t) { return ( - (this.x = C.clamp( + (this.x = $.clamp( this.x, t.topLeftCorner.x, t.bottomRightCorner.x )), - (this.y = C.clamp( + (this.y = $.clamp( this.y, t.topLeftCorner.y, t.bottomRightCorner.y @@ -20285,10 +22221,10 @@ var Orbis = (function(t) { }, { key: "lerp", - value: function(t, e, n) { + value: function(t, e, i) { return ( - (this.x = C.lerp(t, e.x, n.x)), - (this.y = C.lerp(t, e.y, n.y)), + (this.x = $.lerp(t, e.x, i.x)), + (this.y = $.lerp(t, e.y, i.y)), this ); } @@ -20300,24 +22236,24 @@ var Orbis = (function(t) { } } ]), - n + i ); })(), - I = + nt = ((function() { - function i(t, e, n) { - m(this, i), + function n(t, e, i) { + k(this, n), (this.shape = "circle"), (this._radius = 0), (this._diameter = 0), - (this.position = new j(t, e)), - (this.radius = n); + (this.position = new it(t, e)), + (this.radius = i); } - D(i, [ + J(n, [ { key: "clone", value: function() { - return new i(this.position.x, this.position.y, this.radius); + return new n(this.position.x, this.position.y, this.radius); } }, { @@ -20328,8 +22264,8 @@ var Orbis = (function(t) { }, { key: "set", - value: function(t, e, n) { - this.position.set(t, e), (this.radius = n); + value: function(t, e, i) { + this.position.set(t, e), (this.radius = i); } }, { @@ -20360,18 +22296,18 @@ var Orbis = (function(t) { }, { key: "draw", - value: function(t, e, n, i) { + value: function(t, e, i, n) { t.beginPath(), t.arc( this.position.x, this.position.y, this.radius, 0, - q.twopi, + K.twopi, !1 ), e && ((t.fillStyle = e), t.fill()), - n && ((t.strokeStyle = n), (t.lineWidth = i), t.stroke()); + i && ((t.strokeStyle = i), (t.lineWidth = n), t.stroke()); } }, { @@ -20395,27 +22331,27 @@ var Orbis = (function(t) { ]); })(), (function() { - function r(t, e, n, i) { - m(this, r), + function s(t, e, i, n) { + k(this, s), (this.shape = "aabb"), - (this.size = new j(n, i)), - (this.halfSize = new j()), + (this.size = new it(i, n)), + (this.halfSize = new it()), this.setHalfSize(), - (this.position = new j(t, e)), - (this.topLeftCorner = new j( + (this.position = new it(t, e)), + (this.topLeftCorner = new it( t - this.halfSize.x, e - this.halfSize.y )), - (this.bottomRightCorner = new j( + (this.bottomRightCorner = new it( t + this.halfSize.x, e + this.halfSize.y )); } - D(r, [ + J(s, [ { key: "clone", value: function() { - return new r( + return new s( this.position.x, this.position.y, this.size.x, @@ -20432,8 +22368,8 @@ var Orbis = (function(t) { }, { key: "set", - value: function(t, e, n, i) { - this.setSizeXY(n, i), this.setPositionXY(t, e); + value: function(t, e, i, n) { + this.setSizeXY(i, n), this.setPositionXY(t, e); } }, { @@ -20525,18 +22461,18 @@ var Orbis = (function(t) { key: "contains", value: function(t) { return ( - C.contains( + $.contains( t.x, this.topLeftCorner.x, this.bottomRightCorner.x ) && - C.contains(t.y, this.topLeftCorner.y, this.bottomRightCorner.y) + $.contains(t.y, this.topLeftCorner.y, this.bottomRightCorner.y) ); } }, { key: "draw", - value: function(t, e, n, i) { + value: function(t, e, i, n) { t.beginPath(), t.rect( this.topLeftCorner.x, @@ -20545,17 +22481,17 @@ var Orbis = (function(t) { this.size.y ), e && ((t.fillStyle = e), t.fill()), - n && ((t.strokeStyle = n), (t.lineWidth = i), t.stroke()); + i && ((t.strokeStyle = i), (t.lineWidth = n), t.stroke()); } } ]); })(), (function() { - function i(t, e, n) { - m(this, i), (this.x = t || 0), (this.y = e || 0), (this.z = n || 0); + function n(t, e, i) { + k(this, n), (this.x = t || 0), (this.y = e || 0), (this.z = i || 0); } return ( - D(i, [ + J(n, [ { key: "fromArray", value: function(t, e) { @@ -20584,14 +22520,14 @@ var Orbis = (function(t) { }, { key: "set", - value: function(t, e, n) { - return (this.x = t), (this.y = e), (this.z = n), this; + value: function(t, e, i) { + return (this.x = t), (this.y = e), (this.z = i), this; } }, { key: "clone", value: function() { - return new i(this.x, this.y, this.z); + return new n(this.x, this.y, this.z); } }, { @@ -20831,12 +22767,12 @@ var Orbis = (function(t) { key: "cross", value: function(t) { var e = this.x, - n = this.y, - i = this.z; + i = this.y, + n = this.z; return ( - (this.x = n * t.z - i * t.y), - (this.y = i * t.x - e * t.z), - (this.z = e * t.y - n * t.x), + (this.x = i * t.z - n * t.y), + (this.y = n * t.x - e * t.z), + (this.z = e * t.y - i * t.x), this ); } @@ -20844,49 +22780,49 @@ var Orbis = (function(t) { { key: "crossVectors", value: function(t, e) { - var n = t.x, - i = t.y, - r = t.z, - s = e.x, + var i = t.x, + n = t.y, + s = t.z, + r = e.x, o = e.y, - a = e.z; + u = e.z; return ( - (this.x = i * a - r * o), - (this.y = r * s - n * a), - (this.z = n * o - i * s), + (this.x = n * u - s * o), + (this.y = s * r - i * u), + (this.z = i * o - n * r), this ); } } ]), - i + n ); })()), - F = + st = ((function() { - function f(t, e, n, i, r, s, o, a, u, h, c, l) { - m(this, f), + function y(t, e, i, n, s, r, o, u, a, h, c, l) { + k(this, y), (this.m = new Float32Array(16)), - (this.xAxis = new I()), - (this.yAxis = new I()), - (this.zAxis = new I()), - this.make(t, e, n, i, r, s, o, a, u, h, c, l); + (this.xAxis = new nt()), + (this.yAxis = new nt()), + (this.zAxis = new nt()), + this.make(t, e, i, n, s, r, o, u, a, h, c, l); } - D(f, [ + J(y, [ { key: "make", - value: function(t, e, n, i, r, s, o, a, u, h, c, l) { + value: function(t, e, i, n, s, r, o, u, a, h, c, l) { (this.m[0] = t || 0), (this.m[1] = e || 0), - (this.m[2] = n || 0), + (this.m[2] = i || 0), (this.m[3] = 0), - (this.m[4] = i || 0), - (this.m[5] = r || 0), - (this.m[6] = s || 0), + (this.m[4] = n || 0), + (this.m[5] = s || 0), + (this.m[6] = r || 0), (this.m[7] = 0), (this.m[8] = o || 0), - (this.m[9] = a || 0), - (this.m[10] = u || 0), + (this.m[9] = u || 0), + (this.m[10] = a || 0), (this.m[11] = 0), (this.m[12] = h || 0), (this.m[13] = c || 0), @@ -20978,25 +22914,25 @@ var Orbis = (function(t) { { key: "rotateX", value: function(t) { - var e = q.cosine(t), - n = q.sine(t); - return this.make(1, 0, 0, 0, e, n, 0, -n, e, 0, 0, 0), this; + var e = K.cosine(t), + i = K.sine(t); + return this.make(1, 0, 0, 0, e, i, 0, -i, e, 0, 0, 0), this; } }, { key: "rotateY", value: function(t) { - var e = q.cosine(t), - n = q.sine(t); - return this.make(e, 0, -n, 0, 1, 0, n, 0, e, 0, 0, 0), this; + var e = K.cosine(t), + i = K.sine(t); + return this.make(e, 0, -i, 0, 1, 0, i, 0, e, 0, 0, 0), this; } }, { key: "rotateZ", value: function(t) { - var e = q.cosine(t), - n = q.sine(t); - return this.make(e, n, 0, -n, e, 0, 0, 0, 1, 0, 0, 0), this; + var e = K.cosine(t), + i = K.sine(t); + return this.make(e, i, 0, -i, e, 0, 0, 0, 1, 0, 0, 0), this; } }, { @@ -21009,21 +22945,21 @@ var Orbis = (function(t) { key: "multiply", value: function(t) { var e = this.m, - n = t.m; + i = t.m; return ( this.make( - e[0] * n[0] + e[4] * n[1] + e[8] * n[2], - e[1] * n[0] + e[5] * n[1] + e[9] * n[2], - e[2] * n[0] + e[6] * n[1] + e[10] * n[2], - e[0] * n[4] + e[4] * n[5] + e[8] * n[6], - e[1] * n[4] + e[5] * n[5] + e[9] * n[6], - e[2] * n[4] + e[6] * n[5] + e[10] * n[6], - e[0] * n[8] + e[4] * n[9] + e[8] * n[10], - e[1] * n[8] + e[5] * n[9] + e[9] * n[10], - e[2] * n[8] + e[6] * n[9] + e[10] * n[10], - e[0] * n[12] + e[4] * n[13] + e[8] * n[14] + e[12], - e[1] * n[12] + e[5] * n[13] + e[9] * n[14] + e[13], - e[2] * n[12] + e[6] * n[13] + e[10] * n[14] + e[14] + e[0] * i[0] + e[4] * i[1] + e[8] * i[2], + e[1] * i[0] + e[5] * i[1] + e[9] * i[2], + e[2] * i[0] + e[6] * i[1] + e[10] * i[2], + e[0] * i[4] + e[4] * i[5] + e[8] * i[6], + e[1] * i[4] + e[5] * i[5] + e[9] * i[6], + e[2] * i[4] + e[6] * i[5] + e[10] * i[6], + e[0] * i[8] + e[4] * i[9] + e[8] * i[10], + e[1] * i[8] + e[5] * i[9] + e[9] * i[10], + e[2] * i[8] + e[6] * i[9] + e[10] * i[10], + e[0] * i[12] + e[4] * i[13] + e[8] * i[14] + e[12], + e[1] * i[12] + e[5] * i[13] + e[9] * i[14] + e[13], + e[2] * i[12] + e[6] * i[13] + e[10] * i[14] + e[14] ), this ); @@ -21031,10 +22967,10 @@ var Orbis = (function(t) { }, { key: "lookAtRH", - value: function(t, e, n) { + value: function(t, e, i) { return ( this.zAxis.subtractVectors(t, e).normalize(), - this.xAxis.crossVectors(n, this.zAxis).normalize(), + this.xAxis.crossVectors(i, this.zAxis).normalize(), this.yAxis.crossVectors(this.zAxis, this.xAxis), this.make( this.xAxis.x, @@ -21057,29 +22993,29 @@ var Orbis = (function(t) { ]); })(), (function() { - function d(t, e, n, i, r, s, o, a, u, h, c, l, f, y, p, v) { - m(this, d), + function d(t, e, i, n, s, r, o, u, a, h, c, l, y, f, p, v) { + k(this, d), (this.m = new Float32Array(16)), - this.make(t, e, n, i, r, s, o, a, u, h, c, l, f, y, p, v); + this.make(t, e, i, n, s, r, o, u, a, h, c, l, y, f, p, v); } - D(d, [ + J(d, [ { key: "make", - value: function(t, e, n, i, r, s, o, a, u, h, c, l, f, y, p, v) { + value: function(t, e, i, n, s, r, o, u, a, h, c, l, y, f, p, v) { (this.m[0] = t || 0), (this.m[1] = e || 0), - (this.m[2] = n || 0), - (this.m[3] = i || 0), - (this.m[4] = r || 0), - (this.m[5] = s || 0), + (this.m[2] = i || 0), + (this.m[3] = n || 0), + (this.m[4] = s || 0), + (this.m[5] = r || 0), (this.m[6] = o || 0), - (this.m[7] = a || 0), - (this.m[8] = u || 0), + (this.m[7] = u || 0), + (this.m[8] = a || 0), (this.m[9] = h || 0), (this.m[10] = c || 0), (this.m[11] = l || 0), - (this.m[12] = f || 0), - (this.m[13] = y || 0), + (this.m[12] = y || 0), + (this.m[13] = f || 0), (this.m[14] = p || 0), (this.m[15] = v || 0); } @@ -21177,30 +23113,30 @@ var Orbis = (function(t) { { key: "rotateX", value: function(t) { - var e = q.cosine(t), - n = q.sine(t); + var e = K.cosine(t), + i = K.sine(t); return ( - this.make(1, 0, 0, 0, 0, e, n, 0, 0, -n, e, 0, 0, 0, 0, 1), this + this.make(1, 0, 0, 0, 0, e, i, 0, 0, -i, e, 0, 0, 0, 0, 1), this ); } }, { key: "rotateY", value: function(t) { - var e = q.cosine(t), - n = q.sine(t); + var e = K.cosine(t), + i = K.sine(t); return ( - this.make(e, 0, -n, 0, 0, 1, 0, 0, n, 0, e, 0, 0, 0, 0, 1), this + this.make(e, 0, -i, 0, 0, 1, 0, 0, i, 0, e, 0, 0, 0, 0, 1), this ); } }, { key: "rotateZ", value: function(t) { - var e = q.cosine(t), - n = q.sine(t); + var e = K.cosine(t), + i = K.sine(t); return ( - this.make(e, n, 0, 0, -n, e, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1), this + this.make(e, i, 0, 0, -i, e, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1), this ); } }, @@ -21217,24 +23153,24 @@ var Orbis = (function(t) { key: "multiply", value: function(t) { var e = this.m, - n = t.m; + i = t.m; return ( this.make( - e[0] * n[0] + e[4] * n[1] + e[8] * n[2], - e[1] * n[0] + e[5] * n[1] + e[9] * n[2], - e[2] * n[0] + e[6] * n[1] + e[10] * n[2], + e[0] * i[0] + e[4] * i[1] + e[8] * i[2], + e[1] * i[0] + e[5] * i[1] + e[9] * i[2], + e[2] * i[0] + e[6] * i[1] + e[10] * i[2], 0, - e[0] * n[4] + e[4] * n[5] + e[8] * n[6], - e[1] * n[4] + e[5] * n[5] + e[9] * n[6], - e[2] * n[4] + e[6] * n[5] + e[10] * n[6], + e[0] * i[4] + e[4] * i[5] + e[8] * i[6], + e[1] * i[4] + e[5] * i[5] + e[9] * i[6], + e[2] * i[4] + e[6] * i[5] + e[10] * i[6], 0, - e[0] * n[8] + e[4] * n[9] + e[8] * n[10], - e[1] * n[8] + e[5] * n[9] + e[9] * n[10], - e[2] * n[8] + e[6] * n[9] + e[10] * n[10], + e[0] * i[8] + e[4] * i[9] + e[8] * i[10], + e[1] * i[8] + e[5] * i[9] + e[9] * i[10], + e[2] * i[8] + e[6] * i[9] + e[10] * i[10], 0, - e[0] * n[12] + e[4] * n[13] + e[8] * n[14] + e[12], - e[1] * n[12] + e[5] * n[13] + e[9] * n[14] + e[13], - e[2] * n[12] + e[6] * n[13] + e[10] * n[14] + e[14], + e[0] * i[12] + e[4] * i[13] + e[8] * i[14] + e[12], + e[1] * i[12] + e[5] * i[13] + e[9] * i[14] + e[13], + e[2] * i[12] + e[6] * i[13] + e[10] * i[14] + e[14], 1 ), this @@ -21243,26 +23179,26 @@ var Orbis = (function(t) { }, { key: "perspective", - value: function(t, e, n, i) { - var r = Math.tan(q.halfpi - (0.5 * t * q.pi) / 180), - s = 1 / (n - i); + value: function(t, e, i, n) { + var s = Math.tan(K.halfpi - (0.5 * t * K.pi) / 180), + r = 1 / (i - n); return ( this.make( - r / e, + s / e, 0, 0, 0, 0, - r, + s, 0, 0, 0, 0, - (n + i) * s, + (i + n) * r, -1, 0, 0, - n * i * s * 2, + i * n * r * 2, 0 ), this @@ -21271,13 +23207,13 @@ var Orbis = (function(t) { }, { key: "orthographic", - value: function(t, e, n, i, r, s) { + value: function(t, e, i, n, s, r) { var o = e - t, - a = n - i, - u = s - r, + u = i - n, + a = r - s, h = (e + t) / o, - c = (n + i) / a, - l = (s + r) / u; + c = (i + n) / u, + l = (r + s) / a; return ( this.make( 2 / o, @@ -21285,12 +23221,12 @@ var Orbis = (function(t) { 0, 0, 0, - 2 / a, + 2 / u, 0, 0, 0, 0, - -2 / u, + -2 / a, 0, -h, -c, @@ -21304,49 +23240,49 @@ var Orbis = (function(t) { ]); })(), (function() { - function i(t, e) { - for (var n = 0; n < e.length; n++) { - var i = e[n]; - (i.enumerable = i.enumerable || !1), - (i.configurable = !0), - "value" in i && (i.writable = !0), - Object.defineProperty(t, i.key, i); + function n(t, e) { + for (var i = 0; i < e.length; i++) { + var n = e[i]; + (n.enumerable = n.enumerable || !1), + (n.configurable = !0), + "value" in n && (n.writable = !0), + Object.defineProperty(t, n.key, n); } } - return function(t, e, n) { - return e && i(t.prototype, e), n && i(t, n), t; + return function(t, e, i) { + return e && n(t.prototype, e), i && n(t, i), t; }; })()), - N = { + rt = { info: { id: 1, name: "info", color: "#28a745" }, trace: { id: 2, name: "trace", color: "#17a2b8" }, warn: { id: 3, name: "warn", color: "#ffc107" }, error: { id: 4, name: "error", color: "#dc3545" }, off: { id: 99, name: "off", color: null } }, - G = (function() { - function s(t, e) { - var n, i, r; - u(this, s), + ot = (function() { + function r(t, e) { + var i, n, s; + a(this, r), (this.id = t.id), (this.name = t.name), (this.color = t.color), (this.content = e), (this.date = - ((n = new Date()), - (i = [ - h(n.getMonth() + 1), - h(n.getDate()), - n + ((i = new Date()), + (n = [ + h(i.getMonth() + 1), + h(i.getDate()), + i .getFullYear() .toString() .substr(-2) ]), - (r = [h(n.getHours()), h(n.getMinutes()), h(n.getSeconds())]), - i.join("/") + " " + r.join(":"))); + (s = [h(i.getHours()), h(i.getMinutes()), h(i.getSeconds())]), + n.join("/") + " " + s.join(":"))); } return ( - F(s, [ + st(r, [ { key: "display", value: function(t) { @@ -21358,92 +23294,92 @@ var Orbis = (function(t) { } } ]), - s + r ); })(), - B = (function() { - function n(t, e) { - u(this, n), + ut = (function() { + function i(t, e) { + a(this, i), (this.messages = []), (this.name = t), (this.messages = []), (this._level = e); } return ( - F(n, [ + st(i, [ { key: "info", value: function(t) { - this.log(N.info, t); + this.log(rt.info, t); } }, { key: "trace", value: function(t) { - this.log(N.trace, t); + this.log(rt.trace, t); } }, { key: "warn", value: function(t) { - this.log(N.warn, t); + this.log(rt.warn, t); } }, { key: "error", value: function(t) { - this.log(N.error, t); + this.log(rt.error, t); } }, { key: "log", value: function(t, e) { - var n = new G(t, e); - this.messages.push(n), - this._level.id <= n.id && n.display(this.name); + var i = new ot(t, e); + this.messages.push(i), + this._level.id <= i.id && i.display(this.name); } }, { key: "level", set: function(t) { - this._level = N.hasOwnProperty(t) ? N[t] : this._level; + this._level = rt.hasOwnProperty(t) ? rt[t] : this._level; }, get: function() { return this._level.name; } } ]), - n + i ); })(), - Y = (function() { - function a() { - u(this, a); + at = (function() { + function u() { + a(this, u); } return ( - F(a, null, [ + st(u, null, [ { key: "setLevel", value: function(t) { - a.level = N.hasOwnProperty(t) ? N[t] : a.level; + u.level = rt.hasOwnProperty(t) ? rt[t] : u.level; var e = !0, - n = !1, - i = void 0; + i = !1, + n = void 0; try { for ( - var r, s = a.groups[Symbol.iterator](); - !(e = (r = s.next()).done); + var s, r = u.groups[Symbol.iterator](); + !(e = (s = r.next()).done); e = !0 ) { - r.value.level = a.level.name; + s.value.level = u.level.name; } } catch (t) { - (n = !0), (i = t); + (i = !0), (n = t); } finally { try { - !e && s.return && s.return(); + !e && r.return && r.return(); } finally { - if (n) throw i; + if (i) throw n; } } } @@ -21451,31 +23387,31 @@ var Orbis = (function(t) { { key: "getLevel", value: function() { - return a.level.name; + return u.level.name; } }, { key: "getGroup", value: function(t) { var e = !0, - n = !1, - i = void 0; + i = !1, + n = void 0; try { for ( - var r, s = a.groups[Symbol.iterator](); - !(e = (r = s.next()).done); + var s, r = u.groups[Symbol.iterator](); + !(e = (s = r.next()).done); e = !0 ) { - var o = r.value; + var o = s.value; if (o.name === t) return o; } } catch (t) { - (n = !0), (i = t); + (i = !0), (n = t); } finally { try { - !e && s.return && s.return(); + !e && r.return && r.return(); } finally { - if (n) throw i; + if (i) throw n; } } return null; @@ -21490,85 +23426,85 @@ var Orbis = (function(t) { { key: "pushGroup", value: function(t) { - var e = new B(t, a.level); - return a.groups.push(e), e; + var e = new ut(t, u.level); + return u.groups.push(e), e; } } ]), - a + u ); })(); - (Y.level = N.error), (Y.groups = []); - var W, - X = function t(e) { - var n = this; + (at.level = rt.error), (at.groups = []); + var ht, + ct = function t(e) { + var i = this; !(function(t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function"); })(this, t), (this.state = e[0].from), - (this.log = Y.addGroup("Taipan")); - var i = !0, - r = !1, - s = void 0; + (this.log = at.addGroup("Taipan")); + var n = !0, + s = !1, + r = void 0; try { for ( var o, - a = function() { + u = function() { var t = o.value; - n.hasOwnProperty(t.name) || - (n[t.name] = function() { + i.hasOwnProperty(t.name) || + (i[t.name] = function() { return ( - n.log.info("- Event " + t.name + " triggered"), - n.state === t.from - ? ((n.state = t.to), - n.log.info("from " + t.from + " to " + n.state), + i.log.info("- Event " + t.name + " triggered"), + i.state === t.from + ? ((i.state = t.to), + i.log.info("from " + t.from + " to " + i.state), !0) - : (n.log.warn( - "Cannot transition from " + n.state + " to " + t.to + : (i.log.warn( + "Cannot transition from " + i.state + " to " + t.to ), !1) ); }); }, - u = e[Symbol.iterator](); - !(i = (o = u.next()).done); - i = !0 + a = e[Symbol.iterator](); + !(n = (o = a.next()).done); + n = !0 ) - a(); + u(); } catch (t) { - (r = !0), (s = t); + (s = !0), (r = t); } finally { try { - !i && u.return && u.return(); + !n && a.return && a.return(); } finally { - if (r) throw s; + if (s) throw r; } } }, - U = (function() { - function i(t, e) { - for (var n = 0; n < e.length; n++) { - var i = e[n]; - (i.enumerable = i.enumerable || !1), - (i.configurable = !0), - "value" in i && (i.writable = !0), - Object.defineProperty(t, i.key, i); + lt = (function() { + function n(t, e) { + for (var i = 0; i < e.length; i++) { + var n = e[i]; + (n.enumerable = n.enumerable || !1), + (n.configurable = !0), + "value" in n && (n.writable = !0), + Object.defineProperty(t, n.key, n); } } - return function(t, e, n) { - return e && i(t.prototype, e), n && i(t, n), t; + return function(t, e, i) { + return e && n(t.prototype, e), i && n(t, i), t; }; })(), - J = (function() { + yt = (function() { function t() { - i(this, t), + r(this, t), (this.fpsArrayLength = 60), (this.fpsArray = Array(this.fpsArrayLength)), this.reset(); } return ( - U(t, [ + lt(t, [ { key: "reset", value: function() { @@ -21590,7 +23526,7 @@ var Orbis = (function(t) { value: function(t) { (this.now = t), (this.total += this.delta), - (this.fpsArray[this.ticks % 60] = H.millisecondToFramePerSecond( + (this.fpsArray[this.ticks % 60] = Q.millisecondToFramePerSecond( this.delta )), this.ticks++; @@ -21605,45 +23541,45 @@ var Orbis = (function(t) { { key: "computeAverageFPS", value: function() { - return V.average(this.fpsArray, this.fpsArrayLength); + return tt.average(this.fpsArray, this.fpsArrayLength); } } ]), t ); })(), - Z = (function() { + ft = (function() { function e(t) { - i(this, e), + r(this, e), (this.frameId = 0), (this.minDelta = 0), - (this.clock = new J()), + (this.clock = new yt()), (this.callback = t), - (this.fsm = new X([ + (this.fsm = new ct([ { name: "play", from: !1, to: !0 }, { name: "stop", from: !0, to: !1 } ])); } return ( - U(e, [ + lt(e, [ { key: "setMaxRefreshRate", value: function(t) { - this.minDelta = n(t) - ? H.framePerSecondToMillisecond(t) + this.minDelta = i(t) + ? Q.framePerSecondToMillisecond(t) : this.minDelta; } }, { key: "getDelta", value: function() { - return H.millisecondToSecond(this.clock.delta); + return Q.millisecondToSecond(this.clock.delta); } }, { key: "getTotal", value: function() { - return H.millisecondToSecond(this.clock.total); + return Q.millisecondToSecond(this.clock.total); } }, { @@ -21699,8 +23635,8 @@ var Orbis = (function(t) { key: "tick", value: function(t) { var e = !0, - n = this.clock.computeDelta(t); - (!this.minDelta || n >= this.minDelta) && + i = this.clock.computeDelta(t); + (!this.minDelta || i >= this.minDelta) && (this.clock.tick(t), !1 === this.callback() && (e = !1)), e ? this.requestNewFrame() : this.stop(); } @@ -21727,7 +23663,7 @@ var Orbis = (function(t) { e ); })(), - $ = (function() { + pt = (function() { function t(t, e) { if ( ((this.rate = 0), @@ -21743,18 +23679,18 @@ var Orbis = (function(t) { (this.animation = null), t) ) { - var n = O.findById(t); - if (n) { - this.barWidth = n.clientWidth; - var i = n.children[1]; - this.bar = i ? new L(i, "style.width", "0px") : null; - var r = n.children[0]; - (this.number = r ? new L(r, "", 0) : null), - (this.animation = new Z(this.animateBar)), + var i = N.findById(t); + if (i) { + this.barWidth = i.clientWidth; + var n = i.children[1]; + this.bar = n ? new Y(n, "style.width", "0px") : null; + var s = i.children[0]; + (this.number = s ? new Y(s, "", 0) : null), + (this.animation = new ft(this.animateBar)), this.animation.setScope(this); } } - this.text = e ? new L(e, "", "Loading") : null; + this.text = e ? new Y(e, "", "Loading") : null; } return ( (t.prototype.animateBar = function() { @@ -21778,11 +23714,11 @@ var Orbis = (function(t) { (t.prototype.updateBar = function(t) { (this.percentage += this.speed * t), this.percentage >= this.target && (this.percentage = this.target); - var e = C.floor(this.percentage, 0); + var e = B.floor(this.percentage, 0); return ( this.bar && this.bar.update( - C.map(this.percentage, 0, 100, 0, this.barWidth) + "px" + B.map(this.percentage, 0, 100, 0, this.barWidth) + "px" ), this.number && this.number.update(e + "%"), 100 !== e || @@ -21794,53 +23730,53 @@ var Orbis = (function(t) { t ); })(), - K = function t(e) { - var n = this; + vt = function t(e) { + var i = this; !(function(t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function"); })(this, t), (this.state = e[0].from), - (this.log = P.addGroup("Taipan")); - var i = !0, - r = !1, - s = void 0; + (this.log = F.addGroup("Taipan")); + var n = !0, + s = !1, + r = void 0; try { for ( var o, - a = function() { + u = function() { var t = o.value; - n.hasOwnProperty(t.name) || - (n[t.name] = function() { + i.hasOwnProperty(t.name) || + (i[t.name] = function() { return ( - n.log.info("- Event " + t.name + " triggered"), - n.state === t.from - ? ((n.state = t.to), - n.log.info("from " + t.from + " to " + n.state), + i.log.info("- Event " + t.name + " triggered"), + i.state === t.from + ? ((i.state = t.to), + i.log.info("from " + t.from + " to " + i.state), !0) - : (n.log.warn( - "Cannot transition from " + n.state + " to " + t.to + : (i.log.warn( + "Cannot transition from " + i.state + " to " + t.to ), !1) ); }); }, - u = e[Symbol.iterator](); - !(i = (o = u.next()).done); - i = !0 + a = e[Symbol.iterator](); + !(n = (o = a.next()).done); + n = !0 ) - a(); + u(); } catch (t) { - (r = !0), (s = t); + (s = !0), (r = t); } finally { try { - !i && u.return && u.return(); + !n && a.return && a.return(); } finally { - if (r) throw s; + if (s) throw r; } } }, - Q = + dt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { return typeof t; @@ -21853,38 +23789,38 @@ var Orbis = (function(t) { ? "symbol" : typeof t; }, - tt = function(t, e) { - return (tt = + mt = function(t, e) { + return (mt = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; }) || function(t, e) { - for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]); + for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]); })(t, e); }, - et = !1, - nt = { + kt = !1, + xt = { Promise: void 0, set useDeprecatedSynchronousErrorHandling(t) { t && new Error().stack; - et = t; + kt = t; }, get useDeprecatedSynchronousErrorHandling() { - return et; + return kt; } }, - it = { + gt = { closed: !0, next: function() {}, error: function(t) { - if (nt.useDeprecatedSynchronousErrorHandling) throw t; - v(t); + if (xt.useDeprecatedSynchronousErrorHandling) throw t; + d(t); }, complete: function() {} }, - rt = (function() { + bt = (function() { return ( Array.isArray || function(t) { @@ -21892,7 +23828,7 @@ var Orbis = (function(t) { } ); })(), - st = + wt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { return typeof t; @@ -21905,7 +23841,7 @@ var Orbis = (function(t) { ? "symbol" : typeof t; }, - ot = (function() { + St = (function() { function t(t) { return ( Error.call(this), @@ -21925,7 +23861,7 @@ var Orbis = (function(t) { } return (t.prototype = Object.create(Error.prototype)), t; })(), - at = + zt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { return typeof t; @@ -21938,8 +23874,8 @@ var Orbis = (function(t) { ? "symbol" : typeof t; }, - ut = (function() { - function a(t) { + Tt = (function() { + function u(t) { (this.closed = !1), (this._parentOrParents = null), (this._subscriptions = null), @@ -21947,58 +23883,58 @@ var Orbis = (function(t) { } var t; return ( - (a.prototype.unsubscribe = function() { + (u.prototype.unsubscribe = function() { var e; if (!this.closed) { var t = this._parentOrParents, - n = this._unsubscribe, - i = this._subscriptions; + i = this._unsubscribe, + n = this._subscriptions; if ( ((this.closed = !0), (this._parentOrParents = null), (this._subscriptions = null), - t instanceof a) + t instanceof u) ) t.remove(this); else if (null !== t) - for (var r = 0; r < t.length; ++r) { - t[r].remove(this); + for (var s = 0; s < t.length; ++s) { + t[s].remove(this); } - if (p(n)) + if (v(i)) try { - n.call(this); + i.call(this); } catch (t) { - e = t instanceof ot ? k(t.errors) : [t]; + e = t instanceof St ? g(t.errors) : [t]; } - if (rt(i)) { - r = -1; - for (var s = i.length; ++r < s; ) { - var o = i[r]; - if (d(o)) + if (bt(n)) { + s = -1; + for (var r = n.length; ++s < r; ) { + var o = n[s]; + if (x(o)) try { o.unsubscribe(); } catch (t) { (e = e || []), - t instanceof ot ? (e = e.concat(k(t.errors))) : e.push(t); + t instanceof St ? (e = e.concat(g(t.errors))) : e.push(t); } } } - if (e) throw new ot(e); + if (e) throw new St(e); } }), - (a.prototype.add = function(t) { + (u.prototype.add = function(t) { var e = t; - if (!t) return a.EMPTY; - switch (void 0 === t ? "undefined" : at(t)) { + if (!t) return u.EMPTY; + switch (void 0 === t ? "undefined" : zt(t)) { case "function": - e = new a(t); + e = new u(t); case "object": if (e === this || e.closed || "function" != typeof e.unsubscribe) return e; if (this.closed) return e.unsubscribe(), e; - if (!(e instanceof a)) { - var n = e; - (e = new a())._subscriptions = [n]; + if (!(e instanceof u)) { + var i = e; + (e = new u())._subscriptions = [i]; } break; default: @@ -22006,35 +23942,35 @@ var Orbis = (function(t) { "unrecognized teardown " + t + " added to Subscription." ); } - var i = e._parentOrParents; - if (null === i) e._parentOrParents = this; - else if (i instanceof a) { - if (i === this) return e; - e._parentOrParents = [i, this]; + var n = e._parentOrParents; + if (null === n) e._parentOrParents = this; + else if (n instanceof u) { + if (n === this) return e; + e._parentOrParents = [n, this]; } else { - if (-1 !== i.indexOf(this)) return e; - i.push(this); + if (-1 !== n.indexOf(this)) return e; + n.push(this); } - var r = this._subscriptions; - return null === r ? (this._subscriptions = [e]) : r.push(e), e; + var s = this._subscriptions; + return null === s ? (this._subscriptions = [e]) : s.push(e), e; }), - (a.prototype.remove = function(t) { + (u.prototype.remove = function(t) { var e = this._subscriptions; if (e) { - var n = e.indexOf(t); - -1 !== n && e.splice(n, 1); + var i = e.indexOf(t); + -1 !== i && e.splice(i, 1); } }), - (a.EMPTY = (((t = new a()).closed = !0), t)), - a + (u.EMPTY = (((t = new u()).closed = !0), t)), + u ); })(), - ht = (function() { + At = (function() { return "function" == typeof Symbol ? Symbol("rxSubscriber") : "@@rxSubscriber_" + Math.random(); })(), - ct = + Mt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { return typeof t; @@ -22047,68 +23983,68 @@ var Orbis = (function(t) { ? "symbol" : typeof t; }, - lt = (function(r) { - function s(t, e, n) { - var i = r.call(this) || this; + Pt = (function(s) { + function r(t, e, i) { + var n = s.call(this) || this; switch ( - ((i.syncErrorValue = null), - (i.syncErrorThrown = !1), - (i.syncErrorThrowable = !1), - (i.isStopped = !1), + ((n.syncErrorValue = null), + (n.syncErrorThrown = !1), + (n.syncErrorThrowable = !1), + (n.isStopped = !1), arguments.length) ) { case 0: - i.destination = it; + n.destination = gt; break; case 1: if (!t) { - i.destination = it; + n.destination = gt; break; } - if ("object" === (void 0 === t ? "undefined" : ct(t))) { - t instanceof s - ? ((i.syncErrorThrowable = t.syncErrorThrowable), - (i.destination = t).add(i)) - : ((i.syncErrorThrowable = !0), (i.destination = new ft(i, t))); + if ("object" === (void 0 === t ? "undefined" : Mt(t))) { + t instanceof r + ? ((n.syncErrorThrowable = t.syncErrorThrowable), + (n.destination = t).add(n)) + : ((n.syncErrorThrowable = !0), (n.destination = new Et(n, t))); break; } default: - (i.syncErrorThrowable = !0), (i.destination = new ft(i, t, e, n)); + (n.syncErrorThrowable = !0), (n.destination = new Et(n, t, e, i)); } - return i; + return n; } return ( - y(s, r), - (s.prototype[ht] = function() { + p(r, s), + (r.prototype[At] = function() { return this; }), - (s.create = function(t, e, n) { - var i = new s(t, e, n); - return (i.syncErrorThrowable = !1), i; + (r.create = function(t, e, i) { + var n = new r(t, e, i); + return (n.syncErrorThrowable = !1), n; }), - (s.prototype.next = function(t) { + (r.prototype.next = function(t) { this.isStopped || this._next(t); }), - (s.prototype.error = function(t) { + (r.prototype.error = function(t) { this.isStopped || ((this.isStopped = !0), this._error(t)); }), - (s.prototype.complete = function() { + (r.prototype.complete = function() { this.isStopped || ((this.isStopped = !0), this._complete()); }), - (s.prototype.unsubscribe = function() { + (r.prototype.unsubscribe = function() { this.closed || - ((this.isStopped = !0), r.prototype.unsubscribe.call(this)); + ((this.isStopped = !0), s.prototype.unsubscribe.call(this)); }), - (s.prototype._next = function(t) { + (r.prototype._next = function(t) { this.destination.next(t); }), - (s.prototype._error = function(t) { + (r.prototype._error = function(t) { this.destination.error(t), this.unsubscribe(); }), - (s.prototype._complete = function() { + (r.prototype._complete = function() { this.destination.complete(), this.unsubscribe(); }), - (s.prototype._unsubscribeAndRecycle = function() { + (r.prototype._unsubscribeAndRecycle = function() { var t = this._parentOrParents; return ( (this._parentOrParents = null), @@ -22119,39 +24055,39 @@ var Orbis = (function(t) { this ); }), - s + r ); - })(ut), - ft = (function(a) { - function t(t, e, n, i) { - var r, - s = a.call(this) || this; - s._parentSubscriber = t; - var o = s; + })(Tt), + Et = (function(u) { + function t(t, e, i, n) { + var s, + r = u.call(this) || this; + r._parentSubscriber = t; + var o = r; return ( - p(e) - ? (r = e) + v(e) + ? (s = e) : e && - ((r = e.next), - (n = e.error), - (i = e.complete), - e !== it && - (p((o = Object.create(e)).unsubscribe) && - s.add(o.unsubscribe.bind(o)), - (o.unsubscribe = s.unsubscribe.bind(s)))), - (s._context = o), - (s._next = r), - (s._error = n), - (s._complete = i), - s + ((s = e.next), + (i = e.error), + (n = e.complete), + e !== gt && + (v((o = Object.create(e)).unsubscribe) && + r.add(o.unsubscribe.bind(o)), + (o.unsubscribe = r.unsubscribe.bind(r)))), + (r._context = o), + (r._next = s), + (r._error = i), + (r._complete = n), + r ); } return ( - y(t, a), + p(t, u), (t.prototype.next = function(t) { if (!this.isStopped && this._next) { var e = this._parentSubscriber; - nt.useDeprecatedSynchronousErrorHandling && e.syncErrorThrowable + xt.useDeprecatedSynchronousErrorHandling && e.syncErrorThrowable ? this.__tryOrSetError(e, this._next, t) && this.unsubscribe() : this.__tryOrUnsub(this._next, t); } @@ -22159,18 +24095,18 @@ var Orbis = (function(t) { (t.prototype.error = function(t) { if (!this.isStopped) { var e = this._parentSubscriber, - n = nt.useDeprecatedSynchronousErrorHandling; + i = xt.useDeprecatedSynchronousErrorHandling; if (this._error) - n && e.syncErrorThrowable + i && e.syncErrorThrowable ? this.__tryOrSetError(e, this._error, t) : this.__tryOrUnsub(this._error, t), this.unsubscribe(); else if (e.syncErrorThrowable) - n ? ((e.syncErrorValue = t), (e.syncErrorThrown = !0)) : v(t), + i ? ((e.syncErrorValue = t), (e.syncErrorThrown = !0)) : d(t), this.unsubscribe(); else { - if ((this.unsubscribe(), n)) throw t; - v(t); + if ((this.unsubscribe(), i)) throw t; + d(t); } } }), @@ -22179,12 +24115,12 @@ var Orbis = (function(t) { if (!this.isStopped) { var e = this._parentSubscriber; if (this._complete) { - var n = function() { + var i = function() { return t._complete.call(t._context); }; - nt.useDeprecatedSynchronousErrorHandling && e.syncErrorThrowable - ? this.__tryOrSetError(e, n) - : this.__tryOrUnsub(n), + xt.useDeprecatedSynchronousErrorHandling && e.syncErrorThrowable + ? this.__tryOrSetError(e, i) + : this.__tryOrUnsub(i), this.unsubscribe(); } else this.unsubscribe(); } @@ -22193,20 +24129,20 @@ var Orbis = (function(t) { try { t.call(this._context, e); } catch (t) { - if ((this.unsubscribe(), nt.useDeprecatedSynchronousErrorHandling)) + if ((this.unsubscribe(), xt.useDeprecatedSynchronousErrorHandling)) throw t; - v(t); + d(t); } }), - (t.prototype.__tryOrSetError = function(e, t, n) { - if (!nt.useDeprecatedSynchronousErrorHandling) + (t.prototype.__tryOrSetError = function(e, t, i) { + if (!xt.useDeprecatedSynchronousErrorHandling) throw new Error("bad call"); try { - t.call(this._context, n); + t.call(this._context, i); } catch (t) { - return nt.useDeprecatedSynchronousErrorHandling + return xt.useDeprecatedSynchronousErrorHandling ? ((e.syncErrorValue = t), (e.syncErrorThrown = !0)) - : (v(t), !0); + : (d(t), !0); } return !1; }), @@ -22218,61 +24154,61 @@ var Orbis = (function(t) { }), t ); - })(lt), - yt = (function() { + })(Pt), + _t = (function() { return ( ("function" == typeof Symbol && Symbol.observable) || "@@observable" ); })(), - pt = (function() { - function n(t) { + Ct = (function() { + function i(t) { (this._isScalar = !1), t && (this._subscribe = t); } return ( - (n.prototype.lift = function(t) { - var e = new n(); + (i.prototype.lift = function(t) { + var e = new i(); return (e.source = this), (e.operator = t), e; }), - (n.prototype.subscribe = function(t, e, n) { - var i = this.operator, - r = (function(t, e, n) { + (i.prototype.subscribe = function(t, e, i) { + var n = this.operator, + s = (function(t, e, i) { if (t) { - if (t instanceof lt) return t; - if (t[ht]) return t[ht](); + if (t instanceof Pt) return t; + if (t[At]) return t[At](); } - return t || e || n ? new lt(t, e, n) : new lt(it); - })(t, e, n); + return t || e || i ? new Pt(t, e, i) : new Pt(gt); + })(t, e, i); if ( - (i - ? r.add(i.call(r, this.source)) - : r.add( + (n + ? s.add(n.call(s, this.source)) + : s.add( this.source || - (nt.useDeprecatedSynchronousErrorHandling && - !r.syncErrorThrowable) - ? this._subscribe(r) - : this._trySubscribe(r) + (xt.useDeprecatedSynchronousErrorHandling && + !s.syncErrorThrowable) + ? this._subscribe(s) + : this._trySubscribe(s) ), - nt.useDeprecatedSynchronousErrorHandling && - r.syncErrorThrowable && - ((r.syncErrorThrowable = !1), r.syncErrorThrown)) + xt.useDeprecatedSynchronousErrorHandling && + s.syncErrorThrowable && + ((s.syncErrorThrowable = !1), s.syncErrorThrown)) ) - throw r.syncErrorValue; - return r; + throw s.syncErrorValue; + return s; }), - (n.prototype._trySubscribe = function(e) { + (i.prototype._trySubscribe = function(e) { try { return this._subscribe(e); } catch (t) { - nt.useDeprecatedSynchronousErrorHandling && + xt.useDeprecatedSynchronousErrorHandling && ((e.syncErrorThrown = !0), (e.syncErrorValue = t)), !(function(t) { for (; t; ) { var e = t, - n = e.closed, - i = e.destination, - r = e.isStopped; - if (n || r) return !1; - t = i && i instanceof lt ? i : null; + i = e.closed, + n = e.destination, + s = e.isStopped; + if (i || s) return !1; + t = n && n instanceof Pt ? n : null; } return !0; })(e) @@ -22280,16 +24216,16 @@ var Orbis = (function(t) { : e.error(t); } }), - (n.prototype.forEach = function(i, t) { - var r = this; - return new (t = x(t))(function(t, e) { - var n; - n = r.subscribe( + (i.prototype.forEach = function(n, t) { + var s = this; + return new (t = w(t))(function(t, e) { + var i; + i = s.subscribe( function(t) { try { - i(t); + n(t); } catch (t) { - e(t), n && n.unsubscribe(); + e(t), i && i.unsubscribe(); } }, e, @@ -22297,16 +24233,16 @@ var Orbis = (function(t) { ); }); }), - (n.prototype._subscribe = function(t) { + (i.prototype._subscribe = function(t) { var e = this.source; return e && e.subscribe(t); }), - (n.prototype[yt] = function() { + (i.prototype[_t] = function() { return this; }), - (n.prototype.pipe = function() { - for (var e, t = [], n = 0; n < arguments.length; n++) - t[n] = arguments[n]; + (i.prototype.pipe = function() { + for (var e, t = [], i = 0; i < arguments.length; i++) + t[i] = arguments[i]; return 0 === t.length ? this : ((e = t) @@ -22317,206 +24253,345 @@ var Orbis = (function(t) { return e(t); }, t); } - : g)(this); + : b)(this); }), - (n.prototype.toPromise = function(t) { - var i = this; - return new (t = x(t))(function(t, e) { - var n; - i.subscribe( + (i.prototype.toPromise = function(t) { + var n = this; + return new (t = w(t))(function(t, e) { + var i; + n.subscribe( function(t) { - return (n = t); + return (i = t); }, function(t) { return e(t); }, function() { - return t(n); + return t(i); } ); }); }), - (n.create = function(t) { - return new n(t); + (i.create = function(t) { + return new i(t); }), - n + i ); })(); - W || (W = {}); - var vt = (function() { - function i(t, e) { - for (var n = 0; n < e.length; n++) { - var i = e[n]; - (i.enumerable = i.enumerable || !1), - (i.configurable = !0), - "value" in i && (i.writable = !0), - Object.defineProperty(t, i.key, i); + ht || (ht = {}); + var Ot = + "function" == typeof Symbol && "symbol" == typeof Symbol.iterator + ? function(t) { + return typeof t; + } + : function(t) { + return t && + "function" == typeof Symbol && + t.constructor === Symbol && + t !== Symbol.prototype + ? "symbol" + : typeof t; + }, + Lt = setTimeout; + (T.prototype.catch = function(t) { + return this.then(null, t); + }), + (T.prototype.then = function(t, e) { + var i = new this.constructor(z); + return A(this, new _(t, e, i)), i; + }), + (T.prototype.finally = function(e) { + var i = this.constructor; + return this.then( + function(t) { + return i.resolve(e()).then(function() { + return t; + }); + }, + function(t) { + return i.resolve(e()).then(function() { + return i.reject(t); + }); + } + ); + }), + (T.all = function(e) { + return new T(function(n, s) { + function r(e, t) { + try { + if ( + t && + ("object" === (void 0 === t ? "undefined" : Ot(t)) || + "function" == typeof t) + ) { + var i = t.then; + if ("function" == typeof i) + return void i.call( + t, + function(t) { + r(e, t); + }, + s + ); + } + (o[e] = t), 0 == --u && n(o); + } catch (t) { + s(t); + } + } + if (!S(e)) return s(new TypeError("Promise.all accepts an array")); + var o = Array.prototype.slice.call(e); + if (0 === o.length) return n([]); + for (var u = o.length, t = 0; t < o.length; t++) r(t, o[t]); + }); + }), + (T.resolve = function(e) { + return e && + "object" === (void 0 === e ? "undefined" : Ot(e)) && + e.constructor === T + ? e + : new T(function(t) { + t(e); + }); + }), + (T.reject = function(i) { + return new T(function(t, e) { + e(i); + }); + }), + (T.race = function(s) { + return new T(function(t, e) { + if (!S(s)) return e(new TypeError("Promise.race accepts an array")); + for (var i = 0, n = s.length; i < n; i++) T.resolve(s[i]).then(t, e); + }); + }), + (T._immediateFn = + ("function" == typeof setImmediate && + function(t) { + setImmediate(t); + }) || + function(t) { + Lt(t, 0); + }), + (T._unhandledRejectionFn = function(t) { + "undefined" != typeof console && + console && + console.warn("Possible Unhandled Promise Rejection:", t); + }), + Array.prototype.includes || + Object.defineProperty(Array.prototype, "includes", { + value: function(t, e) { + if (null == this) + throw new TypeError('"this" is null or not defined'); + var i, + n, + s = Object(this), + r = s.length >>> 0; + if (0 === r) return !1; + for ( + var o = 0 | e, u = Math.max(0 <= o ? o : r - Math.abs(o), 0); + u < r; + + ) { + if ( + (i = s[u]) === (n = t) || + ("number" == typeof i && + "number" == typeof n && + isNaN(i) && + isNaN(n)) + ) + return !0; + u++; + } + return !1; + } + }); + var Dt = (function() { + function n(t, e) { + for (var i = 0; i < e.length; i++) { + var n = e[i]; + (n.enumerable = n.enumerable || !1), + (n.configurable = !0), + "value" in n && (n.writable = !0), + Object.defineProperty(t, n.key, n); } } - return function(t, e, n) { - return e && i(t.prototype, e), n && i(t, n), t; + return function(t, e, i) { + return e && n(t.prototype, e), i && n(t, i), t; }; })(), - dt = window.AudioContext || window.webkitAudioContext || !1, - mt = (function() { - function n(t, e) { - b(this, n), - (this.log = P.addGroup("Aias")), + qt = window.AudioContext || window.webkitAudioContext || !1, + Ht = (function() { + function o(t, e, i, n, s, r) { + O(this, o), + (this.eventType = "promise"), + (this.log = F.addGroup("Aias")), (this.method = t), + (this.url = e), + (this.responseType = i), (this.async = !0), (this.noCache = !1), - (this.headers = e); + (this.headers = n), + (this.eventType = s || this.eventType), + (this.data = r || null); } return ( - vt(n, [ - { - key: "setHeaders", - value: function(t) { - for (var e in t) t.hasOwnProperty(e) && (this.headers[e] = t[e]); - } - }, + Dt(o, [ { - key: "getHeaders", + key: "call", value: function() { - return this.headers; + switch (this.eventType) { + case "observable": + return this.useObservable( + this.url, + this.responseType, + this.data + ); + default: + return this.usePromise( + this.url, + this.responseType, + this.data + ); + } } }, { key: "usePromise", - value: function(s, o, t) { - var a = this; - return new Promise(function(n, i) { - var r = new XMLHttpRequest(); + value: function(r, o, t) { + var u = this; + return new T(function(i, n) { + var s = new XMLHttpRequest(); switch ( - ((s += a.noCache ? "?cache=" + new Date().getTime() : ""), - r.open(a.method, s, a.async), - (r.responseType = "audiobuffer" === o ? "arraybuffer" : o), - a.setRequestHeaders(r), + ((r += u.noCache ? "?cache=" + new Date().getTime() : ""), + s.open(u.method, r, u.async), + (s.responseType = "audiobuffer" === o ? "arraybuffer" : o), + u.setRequestHeaders(s), o) ) { case "json": case "arraybuffer": case "audiobuffer": case "blob": - r.onload = function() { - if (4 == r.readyState) - if (200 == r.status) { - var t = r.response; + s.onload = function() { + if (4 == s.readyState) + if (200 == s.status) { + var t = s.response; if (t) if ( - (a.logInfo(s, r.status, r.statusText), + (u.logInfo(r, s.status, s.statusText), "audiobuffer" === o) ) - if (dt) { - var e = new dt(); + if (qt) { + var e = new qt(); e.decodeAudioData( t, function(t) { - e.close(), n(t); + e.close(), i(t); }, function(t) { - a.log.error( + u.log.error( "xhr (" + - a.method + + u.method + ":" + - s + + r + ") failed with decodeAudioData error : " + t.message ), e.close(), - i({ + n({ status: t.name, statusText: t.message }); } ); } else - a.log.error( + u.log.error( "xhr (" + - a.method + + u.method + ":" + - s + + r + ") failed with error : Web Audio API is not supported by your browser." ), - i({ + n({ status: "Web Audio API not supported by your browser", statusText: "Web Audio API is not supported by your browser" }); - else n(t); + else i(t); else - a.logError(s, r.status, r.statusText), - i({ status: r.status, statusText: r.statusText }); + u.logError(r, s.status, s.statusText), + n({ status: s.status, statusText: s.statusText }); } else - a.logError(s, r.status, r.statusText), - i({ status: r.status, statusText: r.statusText }); + u.logError(r, s.status, s.statusText), + n({ status: s.status, statusText: s.statusText }); }; break; default: - r.onreadystatechange = function() { - 4 == r.readyState && - (200 == r.status - ? (a.logInfo(s, r.status, r.statusText), - n(r.responseText)) - : (a.logError(s, r.status, r.statusText), - i({ status: r.status, statusText: r.statusText }))); + s.onreadystatechange = function() { + 4 == s.readyState && + (200 == s.status + ? (u.logInfo(r, s.status, s.statusText), + i(s.responseText)) + : (u.logError(r, s.status, s.statusText), + n({ status: s.status, statusText: s.statusText }))); }; } f(t) && (t = JSON.stringify(t)), - r.send(t || null), - a.log.info("xhr (" + a.method + ":" + s + ")sent"); + s.send(t || null), + u.log.info("xhr (" + u.method + ":" + r + ")sent"); }); } }, { key: "useObservable", - value: function(r, s, t) { + value: function(s, r, t) { var o = this; - return new pt(function(n) { - var i = new XMLHttpRequest(); + return new Ct(function(i) { + var n = new XMLHttpRequest(); switch ( - ((r += o.noCache ? "?cache=" + new Date().getTime() : ""), - i.open(o.method, r, o.async), - (i.responseType = "audiobuffer" === s ? "arraybuffer" : s), - o.setRequestHeaders(i), - s) + ((s += o.noCache ? "?cache=" + new Date().getTime() : ""), + n.open(o.method, s, o.async), + (n.responseType = "audiobuffer" === r ? "arraybuffer" : r), + o.setRequestHeaders(n), + r) ) { case "json": case "arraybuffer": case "audiobuffer": case "blob": - i.onload = function() { - if (4 == i.readyState) - if (200 == i.status) { - var t = i.response; + n.onload = function() { + if (4 == n.readyState) + if (200 == n.status) { + var t = n.response; if (t) if ( - (o.logInfo(r, i.status, i.statusText), - "audiobuffer" === s) + (o.logInfo(s, n.status, n.statusText), + "audiobuffer" === r) ) - if (dt) { - var e = new dt(); + if (qt) { + var e = new qt(); e.decodeAudioData( t, function(t) { - e.close(), n.next(t), n.complete(); + e.close(), i.next(t), i.complete(); }, function(t) { o.log.error( "xhr (" + o.method + ":" + - r + + s + ") failed with decodeAudioData error : " + t.message ), e.close(), - n.error({ + i.error({ status: t.name, statusText: t.message }), - n.complete(); + i.complete(); } ); } else @@ -22524,64 +24599,53 @@ var Orbis = (function(t) { "xhr (" + o.method + ":" + - r + + s + ") failed with error : Web Audio API is not supported by your browser." ), - n.error({ + i.error({ status: "Web Audio API not supported by your browser", statusText: "Web Audio API is not supported by your browser" }), - n.complete(); - else n.next(t), n.complete(); + i.complete(); + else i.next(t), i.complete(); else - o.logError(r, i.status, i.statusText), - n.error({ - status: i.status, - statusText: i.statusText + o.logError(s, n.status, n.statusText), + i.error({ + status: n.status, + statusText: n.statusText }), - n.complete(); + i.complete(); } else - o.logError(r, i.status, i.statusText), - n.error({ - status: i.status, - statusText: i.statusText + o.logError(s, n.status, n.statusText), + i.error({ + status: n.status, + statusText: n.statusText }), - n.complete(); + i.complete(); }; break; default: - i.onreadystatechange = function() { - 4 == i.readyState && - (200 == i.status - ? (o.logInfo(r, i.status, i.statusText), - n.next(i.responseText)) - : (o.logError(r, i.status, i.statusText), - n.error({ - status: i.status, - statusText: i.statusText + n.onreadystatechange = function() { + 4 == n.readyState && + (200 == n.status + ? (o.logInfo(s, n.status, n.statusText), + i.next(n.responseText)) + : (o.logError(s, n.status, n.statusText), + i.error({ + status: n.status, + statusText: n.statusText })), - n.complete()); + i.complete()); }; } f(t) && (t = JSON.stringify(t)), - i.send(t || null), - o.log.info("xhr (" + o.method + ":" + r + ")sent"); + n.send(t || null), + o.log.info("xhr (" + o.method + ":" + s + ")sent"); }); } }, - { - key: "call", - value: function(t, e, n, i) { - switch (n) { - case "observable": - return this.useObservable(t, e, i); - default: - return this.usePromise(t, e, i); - } - } - }, { key: "setRequestHeaders", value: function(t) { @@ -22592,7 +24656,7 @@ var Orbis = (function(t) { }, { key: "logInfo", - value: function(t, e, n) { + value: function(t, e, i) { this.log.info( "xhr (" + this.method + @@ -22601,13 +24665,13 @@ var Orbis = (function(t) { ") done with status " + e + " " + - n + i ); } }, { key: "logError", - value: function(t, e, n) { + value: function(t, e, i) { this.log.error( "xhr (" + this.method + @@ -22616,32 +24680,85 @@ var Orbis = (function(t) { ") failed with status " + e + " " + - n + i ); } } ]), - n + o ); })(), - kt = (function() { + Rt = function t() { + O(this, t); + }, + Vt = { + GET: { + type: "GET", + defaultHeaders: { "Content-Type": "application/x-www-form-urlencoded" }, + headers: {}, + data: !1 + }, + HEAD: { + type: "HEAD", + defaultHeaders: { "Content-Type": "application/x-www-form-urlencoded" }, + headers: {}, + data: !1 + }, + POST: { + type: "POST", + defaultHeaders: { "Content-Type": "application/json" }, + headers: {}, + data: !0 + }, + PUT: { + type: "PUT", + defaultHeaders: { "Content-Type": "application/json" }, + headers: {}, + data: !0 + }, + DELETE: { + type: "DELETE", + defaultHeaders: { "Content-Type": "application/x-www-form-urlencoded" }, + headers: {}, + data: !1 + }, + CONNECT: { + type: "CONNECT", + defaultHeaders: { "Content-Type": "application/x-www-form-urlencoded" }, + headers: {}, + data: !1 + }, + OPTIONS: { + type: "OPTIONS", + defaultHeaders: { "Content-Type": "application/x-www-form-urlencoded" }, + headers: {}, + data: !1 + }, + TRACE: { + type: "TRACE", + defaultHeaders: { "Content-Type": "application/x-www-form-urlencoded" }, + headers: {}, + data: !1 + }, + PATCH: { + type: "PATCH", + defaultHeaders: { "Content-Type": "application/json" }, + headers: {}, + data: !1 + } + }, + Ft = (function() { function t() { - b(this, t); + O(this, t); } return ( - vt(t, null, [ + Dt(t, null, [ { key: "setEventType", value: function(t) { this.eventType = this.isOfTypeEventType(t) ? t : "promise"; } }, - { - key: "isOfTypeEventType", - value: function(t) { - return ["promise", "observable"].includes(t); - } - }, { key: "setLogLevel", value: function(t) { @@ -22654,15 +24771,25 @@ var Orbis = (function(t) { return this.log.getLevel(); } }, + { + key: "setHeaders", + value: function(t, e) { + if (Vt.hasOwnProperty(t)) + for (var i in e) + e.hasOwnProperty(i) && + Rt.hasOwnProperty(i) && + (Vt[t].headers[i] = e[i]); + } + }, { key: "setMockup", value: function(t) { - var e, n; + var e, i; return ( (this.mockup.data = null != (e = t.data) ? e : this.mockup.data), (this.mockup.delay = - null != (n = t.delay) ? n : this.mockup.delay), + null != (i = t.delay) ? i : this.mockup.delay), this.mockup ); } @@ -22670,153 +24797,182 @@ var Orbis = (function(t) { { key: "getMockupData", value: function() { - var n = this; + var i = this; switch (this.eventType) { case "observable": - return new pt(function(t) { + return new Ct(function(t) { setTimeout(function() { - n.mockup.data - ? (t.next(n.mockup.data), t.complete()) + i.mockup.data + ? (t.next(i.mockup.data), t.complete()) : t.error(null); - }, n.mockup.delay); + }, i.mockup.delay); }); default: return this.promiseTimeout().then(function() { - return new Promise(function(t, e) { - n.mockup.data ? t(n.mockup.data) : e(null); + return new T(function(t, e) { + i.mockup.data ? t(i.mockup.data) : e(null); }); }); } } }, { - key: "promiseTimeout", - value: function() { - var e = this; - return new Promise(function(t) { - return setTimeout(t, e.mockup.delay); - }); + key: "get", + value: function(t, e) { + return this.request( + Vt.GET.type, + t, + e, + Vt.GET.headers || Vt.GET.defaultHeaders, + null + ); } }, { - key: "GET", + key: "head", value: function(t, e) { - return this.mockup.data - ? this.getMockupData() - : this.get.call(t, e, this.eventType); + return this.request( + Vt.HEAD.type, + t, + e, + Vt.HEAD.headers || Vt.HEAD.defaultHeaders, + null + ); } }, { - key: "HEAD", - value: function(t, e) { - return this.mockup.data - ? this.getMockupData() - : this.head.call(t, e, this.eventType); + key: "post", + value: function(t, e, i) { + return this.request( + Vt.POST.type, + t, + e, + Vt.POST.headers || Vt.POST.defaultHeaders, + i + ); } }, { - key: "POST", - value: function(t, e, n) { - return this.mockup.data - ? this.getMockupData() - : this.post.call(t, e, this.eventType, n); + key: "put", + value: function(t, e, i) { + return this.request( + Vt.PUT.type, + t, + e, + Vt.PUT.headers || Vt.PUT.defaultHeaders, + i + ); } }, { - key: "PUT", - value: function(t, e, n) { - return this.mockup.data - ? this.getMockupData() - : this.put.call(t, e, this.eventType, n); + key: "delete", + value: function(t, e) { + return this.request( + Vt.DELETE.type, + t, + e, + Vt.DELETE.headers || Vt.DELETE.defaultHeaders, + null + ); } }, { - key: "DELETE", + key: "connect", value: function(t, e) { - return this.mockup.data - ? this.getMockupData() - : this.delete.call(t, e, this.eventType); + return this.request( + Vt.CONNECT.type, + t, + e, + Vt.CONNECT.headers || Vt.CONNECT.defaultHeaders, + null + ); } }, { - key: "CONNECT", + key: "options", value: function(t, e) { - return this.mockup.data - ? this.getMockupData() - : this.connect.call(t, e, this.eventType); + return this.request( + Vt.OPTIONS.type, + t, + e, + Vt.OPTIONS.headers || Vt.OPTIONS.defaultHeaders, + null + ); } }, { - key: "OPTIONS", + key: "trace", value: function(t, e) { - return this.mockup.data - ? this.getMockupData() - : this.options.call(t, e, this.eventType); + return this.request( + Vt.TRACE.type, + t, + e, + Vt.TRACE.headers || Vt.TRACE.defaultHeaders, + null + ); } }, { - key: "TRACE", - value: function(t, e) { - return this.mockup.data - ? this.getMockupData() - : this.trace.call(t, e, this.eventType); + key: "patch", + value: function(t, e, i) { + return this.request( + Vt.PATCH.type, + t, + e, + Vt.PATCH.headers || Vt.PATCH.defaultHeaders, + i + ); + } + }, + { + key: "request", + value: function(t, e, i, n, s) { + if (this.mockup.data) return this.getMockupData(); + var r = new Ht(t, e, i, n, this.eventType, s || null); + return r.call(); + } + }, + { + key: "promiseTimeout", + value: function() { + var e = this; + return new T(function(t) { + return setTimeout(t, e.mockup.delay); + }); } }, { - key: "PATCH", - value: function(t, e, n) { - return this.mockup.data - ? this.getMockupData() - : this.patch.call(t, e, this.eventType, n); + key: "isOfTypeEventType", + value: function(t) { + return ["promise", "observable"].includes(t); } } ]), t ); })(); - (kt.log = P.addGroup("Aias")), - (kt.eventType = "promise"), - (kt.mockup = { data: null, delay: 200 }), - (kt.get = new mt("GET", { - "Content-Type": "application/x-www-form-urlencoded" - })), - (kt.head = new mt("HEAD", { - "Content-Type": "application/x-www-form-urlencoded" - })), - (kt.post = new mt("POST", { "Content-Type": "application/json" })), - (kt.put = new mt("PUT", { "Content-Type": "application/json" })), - (kt.delete = new mt("DELETE", { - "Content-Type": "application/x-www-form-urlencoded" - })), - (kt.connect = new mt("CONNECT", { - "Content-Type": "application/x-www-form-urlencoded" - })), - (kt.options = new mt("OPTIONS", { - "Content-Type": "application/x-www-form-urlencoded" - })), - (kt.trace = new mt("TRACE", { - "Content-Type": "application/x-www-form-urlencoded" - })), - (kt.patch = new mt("PATCH", { "Content-Type": "application/json" })); - var gt = (function() { + (Ft.log = F.addGroup("Aias")), + (Ft.eventType = "promise"), + (Ft.mockup = { data: null, delay: 200 }); + var jt = (function() { function t() { - (this.fsm = new K([ + (this.fsm = new vt([ { name: "send", from: "idle", to: "pending" }, { name: "success", from: "pending", to: "success" }, { name: "error", from: "pending", to: "error" } ])), - (this.ajax = { file: S, img: s, sound: w }); + (this.ajax = { file: D, img: y, sound: L }); } return ( (t.prototype.send = function(t, e) { - var n = this; + var i = this; return this.fsm.send() ? this.ajax[e](t) .then(function(t) { - return n.fsm.success(), t; + return i.fsm.success(), t; }) .catch(function() { - return n.fsm.error(), null; + return i.fsm.error(), null; }) : new Promise(function() { return null; @@ -22825,23 +24981,23 @@ var Orbis = (function(t) { t ); })(), - xt = (function() { - function t(t, e, n) { + It = (function() { + function t(t, e, i) { (this.path = t), (this.extension = e), - (this.type = n), - (this.request = new gt()), + (this.type = i), + (this.request = new jt()), (this.response = null); } return ( (t.prototype.sendRequest = function(e) { - var n = this; + var i = this; return this.response ? new Promise(function(t) { t(e); }) : this.request.send(this.path + e, this.type).then(function(t) { - return t && (n.response = t), e; + return t && (i.response = t), e; }); }), (t.prototype.getRequestStatus = function() { @@ -22853,7 +25009,7 @@ var Orbis = (function(t) { t ); })(), - bt = (function() { + Nt = (function() { function t() {} return ( (t.get = function(t) { @@ -22881,16 +25037,16 @@ var Orbis = (function(t) { t ); })(), - wt = (function() { - function t(t, e, n) { + Yt = (function() { + function t(t, e, i) { (this.xhr = null), (this.isValid = !1), (this.name = t), - (this.params = n || null); - var i = bt.get(t); - if (i) { - var r = bt.getAssetType(i); - r && ((this.xhr = new xt(e, i, r)), (this.isValid = !0)); + (this.params = i || null); + var n = Nt.get(t); + if (n) { + var s = Nt.getAssetType(n); + s && ((this.xhr = new It(e, n, s)), (this.isValid = !0)); } } return ( @@ -22900,16 +25056,16 @@ var Orbis = (function(t) { t ); })(), - St = (function() { - function t(t, e, n, i) { + Gt = (function() { + function t(t, e, i, n) { (this.default = { maxPending: 6, tick: 100 }), (this.assets = t), (this.path = this.removeTrailingSlash(e)), (this.pendingRequests = 0), (this.tick = this.default.tick), (this.maxPendingRequests = this.default.maxPending), - (this.progress = new $(n, i)), - (this.log = P.addGroup("Orbis")), + (this.progress = new pt(i, n)), + (this.log = F.addGroup("Orbis")), this.createAssets(); } return ( @@ -22922,9 +25078,9 @@ var Orbis = (function(t) { (t.prototype.getAsset = function(t) { for (var e in this.assets) if (this.assets.hasOwnProperty(e)) - for (var n = 0, i = this.assets[e].files; n < i.length; n++) { - var r = i[n]; - if (r.name === t) return r; + for (var i = 0, n = this.assets[e].files; i < n.length; i++) { + var s = n[i]; + if (s.name === t) return s; } return !1; }), @@ -22936,19 +25092,19 @@ var Orbis = (function(t) { return !!this.assets.hasOwnProperty(t) && this.assets[t].files; }), (t.prototype.start = function() { - var i = this; + var n = this; return new Promise(function(t, e) { - if (i.progress.nbAssets) { - i.progress.start(); - var n = setInterval(function() { - i.sendRequest(), - i.progress.running || - (clearInterval(n), + if (n.progress.nbAssets) { + n.progress.start(); + var i = setInterval(function() { + n.sendRequest(), + n.progress.running || + (clearInterval(i), t({ success: !0, - message: i.progress.total + " assets loaded" + message: n.progress.total + " assets loaded" })); - }, i.tick); + }, n.tick); } else e({ success: !1, message: "!! nothing to load here" }); }); }), @@ -22960,20 +25116,20 @@ var Orbis = (function(t) { if (this.assets.hasOwnProperty(t)) for ( var e = this.assets[t], - n = e.folder ? e.folder + "/" : "", - i = 0; - i < e.files.length; - i++ + i = e.folder ? e.folder + "/" : "", + n = 0; + n < e.files.length; + n++ ) { - var r = e.files[i]; - !r.xhr && - r.hasOwnProperty("name") && - ((e.files[i] = new wt( - r.name, - this.path + "/" + n, - r.params || null + var s = e.files[n]; + !s.xhr && + s.hasOwnProperty("name") && + ((e.files[n] = new Yt( + s.name, + this.path + "/" + i, + s.params || null )), - e.files[i].isValid && this.progress.nbAssets++); + e.files[n].isValid && this.progress.nbAssets++); } }), (t.prototype.sendRequest = function() { @@ -22993,9 +25149,9 @@ var Orbis = (function(t) { (t.prototype.getNextAssetToLoad = function() { for (var t in this.assets) if (this.assets.hasOwnProperty(t)) - for (var e = 0, n = this.assets[t].files; e < n.length; e++) { - var i = n[e]; - if (i.xhr && !i.xhr.isRequestSent()) return i; + for (var e = 0, i = this.assets[t].files; e < i.length; e++) { + var n = i[e]; + if (n.xhr && !n.xhr.isRequestSent()) return n; } return !1; }), @@ -23005,7 +25161,7 @@ var Orbis = (function(t) { t ); })(); - return (t.Loader = St), t; + return (t.Loader = Gt), t; })({}); function loadAssets() { (button.disabled = !0),