Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@systemic-games/pixels-core-utils

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@systemic-games/pixels-core-utils - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

dist/cjs/assertNever.js

8

dist/cjs/index.js

@@ -29,10 +29,12 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.safeAssign = exports.delay = exports.bernsteinHash = exports.align32bits = exports.deserialize = exports.serialize = exports.SerializationError = exports.byteSizeOf = exports.byteSizeOfPropWithPadding = exports.byteSizeOfProp = exports.getSerializableProperties = exports.serializable = exports.decodeUtf8 = exports.assertUnreachable = exports.AssertionError = exports.assert = exports.enumFlag = exports.enumValue = void 0;
exports.createTypedEventEmitter = exports.safeAssign = exports.delay = exports.bernsteinHash = exports.align32bits = exports.deserialize = exports.serialize = exports.SerializationError = exports.byteSizeOf = exports.byteSizeOfPropWithPadding = exports.byteSizeOfProp = exports.getSerializableProperties = exports.serializable = exports.decodeUtf8 = exports.assertNever = exports.AssertionError = exports.assert = exports.enumFlag = exports.enumValue = void 0;
const assert_1 = __importStar(require("./assert"));
exports.assert = assert_1.default;
Object.defineProperty(exports, "AssertionError", { enumerable: true, get: function () { return assert_1.AssertionError; } });
const assertUnreachable_1 = __importDefault(require("./assertUnreachable"));
exports.assertUnreachable = assertUnreachable_1.default;
const assertNever_1 = __importDefault(require("./assertNever"));
exports.assertNever = assertNever_1.default;
const bernsteinHash_1 = __importDefault(require("./bernsteinHash"));
exports.bernsteinHash = bernsteinHash_1.default;
const createTypedEventEmitter_1 = __importDefault(require("./createTypedEventEmitter"));
exports.createTypedEventEmitter = createTypedEventEmitter_1.default;
const decodeUtf8_1 = __importDefault(require("./decodeUtf8"));

@@ -39,0 +41,0 @@ exports.decodeUtf8 = decodeUtf8_1.default;

import assert, { AssertionError } from "./assert";
import assertUnreachable from "./assertUnreachable";
import assertNever from "./assertNever";
import bernsteinHash from "./bernsteinHash";
import createTypedEventEmitter from "./createTypedEventEmitter";
import decodeUtf8 from "./decodeUtf8";

@@ -9,2 +10,2 @@ import delay from "./delay";

import { serializable, getSerializableProperties, byteSizeOfProp, byteSizeOfPropWithPadding, byteSizeOf, SerializationError, serialize, deserialize, align32bits, } from "./serializable";
export { enumValue, enumFlag, assert, AssertionError, assertUnreachable, decodeUtf8, serializable, getSerializableProperties, byteSizeOfProp, byteSizeOfPropWithPadding, byteSizeOf, SerializationError, serialize, deserialize, align32bits, bernsteinHash, delay, safeAssign, };
export { enumValue, enumFlag, assert, AssertionError, assertNever, decodeUtf8, serializable, getSerializableProperties, byteSizeOfProp, byteSizeOfPropWithPadding, byteSizeOf, SerializationError, serialize, deserialize, align32bits, bernsteinHash, delay, safeAssign, createTypedEventEmitter, };
import assert, { AssertionError } from "./assert";
import assertUnreachable from "./assertUnreachable";
import assertNever from "./assertNever";
import bernsteinHash from "./bernsteinHash";
import createTypedEventEmitter, { type EventKey, type EventMap, type EventReceiver, TypedEventEmitter } from "./createTypedEventEmitter";
import decodeUtf8 from "./decodeUtf8";

@@ -9,3 +10,3 @@ import delay from "./delay";

import { SerializableProperty, type SerializedNumberFormat, SerializableOptions, serializable, getSerializableProperties, byteSizeOfProp, byteSizeOfPropWithPadding, byteSizeOf, SerializationError, SerializeOptions, serialize, deserialize, align32bits } from "./serializable";
export { enumValue, enumFlag, assert, AssertionError, assertUnreachable, decodeUtf8, SerializableProperty, type SerializedNumberFormat, SerializableOptions, serializable, getSerializableProperties, byteSizeOfProp, byteSizeOfPropWithPadding, byteSizeOf, SerializationError, SerializeOptions, serialize, deserialize, align32bits, bernsteinHash, delay, safeAssign, };
export { enumValue, enumFlag, assert, AssertionError, assertNever, decodeUtf8, SerializableProperty, type SerializedNumberFormat, SerializableOptions, serializable, getSerializableProperties, byteSizeOfProp, byteSizeOfPropWithPadding, byteSizeOf, SerializationError, SerializeOptions, serialize, deserialize, align32bits, bernsteinHash, delay, safeAssign, createTypedEventEmitter, type EventKey, type EventMap, type EventReceiver, TypedEventEmitter, };
//# sourceMappingURL=index.d.ts.map
import assert, { AssertionError } from "./assert";
import assertUnreachable from "./assertUnreachable";
import assertNever from "./assertNever";
import bernsteinHash from "./bernsteinHash";
import createTypedEventEmitter, { type EventKey, type EventMap, type EventReceiver, TypedEventEmitter } from "./createTypedEventEmitter";
import decodeUtf8 from "./decodeUtf8";

@@ -9,3 +10,3 @@ import delay from "./delay";

import { SerializableProperty, type SerializedNumberFormat, SerializableOptions, serializable, getSerializableProperties, byteSizeOfProp, byteSizeOfPropWithPadding, byteSizeOf, SerializationError, SerializeOptions, serialize, deserialize, align32bits } from "./serializable";
export { enumValue, enumFlag, assert, AssertionError, assertUnreachable, decodeUtf8, SerializableProperty, type SerializedNumberFormat, SerializableOptions, serializable, getSerializableProperties, byteSizeOfProp, byteSizeOfPropWithPadding, byteSizeOf, SerializationError, SerializeOptions, serialize, deserialize, align32bits, bernsteinHash, delay, safeAssign, };
export { enumValue, enumFlag, assert, AssertionError, assertNever, decodeUtf8, SerializableProperty, type SerializedNumberFormat, SerializableOptions, serializable, getSerializableProperties, byteSizeOfProp, byteSizeOfPropWithPadding, byteSizeOf, SerializationError, SerializeOptions, serialize, deserialize, align32bits, bernsteinHash, delay, safeAssign, createTypedEventEmitter, type EventKey, type EventMap, type EventReceiver, TypedEventEmitter, };
//# sourceMappingURL=index.d.ts.map
/*! For license information please see index.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.pixelsCoreUtils=t():e.pixelsCoreUtils=t()}(this,(()=>(()=>{var e={738:(e,t,r)=>{var n;!function(e){!function(t){var n="object"==typeof r.g?r.g:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),i=o(e);function o(e,t){return function(r,n){"function"!=typeof e[r]&&Object.defineProperty(e,r,{configurable:!0,writable:!0,value:n}),t&&t(r,n)}}void 0===n.Reflect?n.Reflect=e:i=o(n.Reflect,i),function(e){var t=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,n=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,u={__proto__:[]}instanceof Array,a=!o&&!u,f={create:o?function(){return I(Object.create(null))}:u?function(){return I({__proto__:null})}:function(){return I({})},has:a?function(e,r){return t.call(e,r)}:function(e,t){return t in e},get:a?function(e,r){return t.call(e,r)?e[r]:void 0}:function(e,t){return e[t]}},s=Object.getPrototypeOf(Function),c="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,l=c||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],r=function(){function e(e,t,r){this._index=0,this._keys=e,this._values=t,this._selector=r}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var r=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var r=this._find(e,!0);return this._values[r]=t,this},t.prototype.delete=function(t){var r=this._find(t,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new r(this._keys,this._values,n)},t.prototype.values=function(){return new r(this._keys,this._values,o)},t.prototype.entries=function(){return new r(this._keys,this._values,u)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[i]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function n(e,t){return e}function o(e,t){return t}function u(e,t){return[e,t]}}():Map,p=c||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function e(){this._map=new l}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[i]=function(){return this.keys()},e}():Set,d=new(c||"function"!=typeof WeakMap?function(){var e=f.create(),r=n();return function(){function e(){this._key=n()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&f.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?f.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=n()},e}();function n(){var t;do{t="@@WeakMap@@"+u()}while(f.has(e,t));return e[t]=!0,t}function i(e,n){if(!t.call(e,r)){if(!n)return;Object.defineProperty(e,r,{value:f.create()})}return e[r]}function o(e,t){for(var r=0;r<t;++r)e[r]=255*Math.random()|0;return e}function u(){var e,t=(e=16,"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(e)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(e)):o(new Uint8Array(e),e):o(new Array(e),e));t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var r="",n=0;n<16;++n){var i=t[n];4!==n&&6!==n&&8!==n||(r+="-"),i<16&&(r+="0"),r+=i.toString(16).toLowerCase()}return r}}():WeakMap);function y(e,t,r){var n=d.get(e);if(z(n)){if(!r)return;n=new l,d.set(e,n)}var i=n.get(t);if(z(i)){if(!r)return;i=new l,n.set(t,i)}return i}function h(e,t,r){if(b(e,t,r))return!0;var n=F(t);return!P(n)&&h(e,n,r)}function b(e,t,r){var n=y(t,r,!1);return!z(n)&&!!n.has(e)}function v(e,t,r){if(b(e,t,r))return _(e,t,r);var n=F(t);return P(n)?void 0:v(e,n,r)}function _(e,t,r){var n=y(t,r,!1);if(!z(n))return n.get(e)}function g(e,t,r,n){y(r,n,!0).set(e,t)}function w(e,t){var r=m(e,t),n=F(e);if(null===n)return r;var i=w(n,t);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new p,u=[],a=0,f=r;a<f.length;a++){var s=f[a];o.has(s)||(o.add(s),u.push(s))}for(var c=0,l=i;c<l.length;c++)s=l[c],o.has(s)||(o.add(s),u.push(s));return u}function m(e,t){var r=[],n=y(e,t,!1);if(z(n))return r;for(var o=function(e){var t=M(e,i);if(!x(t))throw new TypeError;var r=t.call(e);if(!j(r))throw new TypeError;return r}(n.keys()),u=0;;){var a=T(o);if(!a)return r.length=u,r;var f=a.value;try{r[u]=f}catch(e){try{U(o)}finally{throw e}}u++}}function O(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function z(e){return void 0===e}function P(e){return null===e}function j(e){return"object"==typeof e?null!==e:"function"==typeof e}function E(e,t){switch(O(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var r=3===t?"string":5===t?"number":"default",i=M(e,n);if(void 0!==i){var o=i.call(e,r);if(j(o))throw new TypeError;return o}return function(e,t){if("string"===t){var r=e.toString;if(x(r)&&!j(i=r.call(e)))return i;if(x(n=e.valueOf)&&!j(i=n.call(e)))return i}else{var n;if(x(n=e.valueOf)&&!j(i=n.call(e)))return i;var i,o=e.toString;if(x(o)&&!j(i=o.call(e)))return i}throw new TypeError}(e,"default"===r?"number":r)}function S(e){var t=E(e,3);return"symbol"==typeof t?t:function(e){return""+e}(t)}function k(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function x(e){return"function"==typeof e}function A(e){return"function"==typeof e}function M(e,t){var r=e[t];if(null!=r){if(!x(r))throw new TypeError;return r}}function T(e){var t=e.next();return!t.done&&t}function U(e){var t=e.return;t&&t.call(e)}function F(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===s)return t;if(t!==s)return t;var r=e.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return t;var i=n.constructor;return"function"!=typeof i||i===e?t:i}function I(e){return e.__=void 0,delete e.__,e}e("decorate",(function(e,t,r,n){if(z(r)){if(!k(e))throw new TypeError;if(!A(t))throw new TypeError;return function(e,t){for(var r=e.length-1;r>=0;--r){var n=(0,e[r])(t);if(!z(n)&&!P(n)){if(!A(n))throw new TypeError;t=n}}return t}(e,t)}if(!k(e))throw new TypeError;if(!j(t))throw new TypeError;if(!j(n)&&!z(n)&&!P(n))throw new TypeError;return P(n)&&(n=void 0),function(e,t,r,n){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,r,n);if(!z(o)&&!P(o)){if(!j(o))throw new TypeError;n=o}}return n}(e,t,r=S(r),n)})),e("metadata",(function(e,t){return function(r,n){if(!j(r))throw new TypeError;if(!z(n)&&!function(e){switch(O(e)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;g(e,t,r,n)}})),e("defineMetadata",(function(e,t,r,n){if(!j(r))throw new TypeError;return z(n)||(n=S(n)),g(e,t,r,n)})),e("hasMetadata",(function(e,t,r){if(!j(t))throw new TypeError;return z(r)||(r=S(r)),h(e,t,r)})),e("hasOwnMetadata",(function(e,t,r){if(!j(t))throw new TypeError;return z(r)||(r=S(r)),b(e,t,r)})),e("getMetadata",(function(e,t,r){if(!j(t))throw new TypeError;return z(r)||(r=S(r)),v(e,t,r)})),e("getOwnMetadata",(function(e,t,r){if(!j(t))throw new TypeError;return z(r)||(r=S(r)),_(e,t,r)})),e("getMetadataKeys",(function(e,t){if(!j(e))throw new TypeError;return z(t)||(t=S(t)),w(e,t)})),e("getOwnMetadataKeys",(function(e,t){if(!j(e))throw new TypeError;return z(t)||(t=S(t)),m(e,t)})),e("deleteMetadata",(function(e,t,r){if(!j(t))throw new TypeError;z(r)||(r=S(r));var n=y(t,r,!1);if(z(n))return!1;if(!n.delete(e))return!1;if(n.size>0)return!0;var i=d.get(t);return i.delete(r),i.size>0||d.delete(t),!0}))}(i)}()}(n||(n={}))},980:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AssertionError=void 0;class r extends Error{}t.AssertionError=r,t.default=function(e,t){if(!e)throw new r(null!=t?t:"Assert failed")}},802:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(980));t.default=function(e){(0,i.default)(!1,"assertUnreachable failed")}},912:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=5381;for(let r=0;r<e.length;++r)t=33*t^e[r];return t}},431:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=0,r="";for(;t<e.length;){let n=e[t++];if(n>127)if(n>191&&n<224){if(t>=e.length)throw new Error("UTF-8 decode: incomplete 2-byte sequence");n=(31&n)<<6|63&e[t++]}else if(n>223&&n<240){if(t+1>=e.length)throw new Error("UTF-8 decode: incomplete 3-byte sequence");n=(15&n)<<12|(63&e[t++])<<6|63&e[t++]}else{if(!(n>239&&n<248))throw new Error("UTF-8 decode: unknown multibyte start 0x"+n.toString(16)+" at index "+(t-1));if(t+2>=e.length)throw new Error("UTF-8 decode: incomplete 4-byte sequence");n=(7&n)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++]}if(n<=65535)r+=String.fromCharCode(n);else{if(!(n<=1114111))throw new Error("UTF-8 decode: code point 0x"+n.toString(16)+" exceeds UTF-16 reach");n-=65536,r+=String.fromCharCode(n>>10|55296),r+=String.fromCharCode(1023&n|56320)}}return r}},233:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function u(e){try{f(n.next(e))}catch(e){o(e)}}function a(e){try{f(n.throw(e))}catch(e){o(e)}}function f(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,a)}f((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise(((r,n)=>{if(null==t?void 0:t.aborted)n(new Error(`Call to delay(${e}) aborted on start`));else{const i=()=>{clearTimeout(o),n(new Error(`Call to delay(${e}) aborted before timeout`))};null==t||t.addEventListener("abort",i);const o=setTimeout((()=>{null==t||t.removeEventListener("abort",i),r()}),e)}}))}))}},860:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.enumFlag=t.enumValue=void 0;let r=0;t.enumValue=function(e){return void 0!==e&&(r=e),r++};let n=0;t.enumFlag=function(e){void 0!==e&&(n=e);const t=1<<n;return n+=1,t}},368:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.safeAssign=t.delay=t.bernsteinHash=t.align32bits=t.deserialize=t.serialize=t.SerializationError=t.byteSizeOf=t.byteSizeOfPropWithPadding=t.byteSizeOfProp=t.getSerializableProperties=t.serializable=t.decodeUtf8=t.assertUnreachable=t.AssertionError=t.assert=t.enumFlag=t.enumValue=void 0;const a=o(r(980));t.assert=a.default,Object.defineProperty(t,"AssertionError",{enumerable:!0,get:function(){return a.AssertionError}});const f=u(r(802));t.assertUnreachable=f.default;const s=u(r(912));t.bernsteinHash=s.default;const c=u(r(431));t.decodeUtf8=c.default;const l=u(r(233));t.delay=l.default;const p=r(860);Object.defineProperty(t,"enumValue",{enumerable:!0,get:function(){return p.enumValue}}),Object.defineProperty(t,"enumFlag",{enumerable:!0,get:function(){return p.enumFlag}});const d=u(r(48));t.safeAssign=d.default;const y=r(208);Object.defineProperty(t,"serializable",{enumerable:!0,get:function(){return y.serializable}}),Object.defineProperty(t,"getSerializableProperties",{enumerable:!0,get:function(){return y.getSerializableProperties}}),Object.defineProperty(t,"byteSizeOfProp",{enumerable:!0,get:function(){return y.byteSizeOfProp}}),Object.defineProperty(t,"byteSizeOfPropWithPadding",{enumerable:!0,get:function(){return y.byteSizeOfPropWithPadding}}),Object.defineProperty(t,"byteSizeOf",{enumerable:!0,get:function(){return y.byteSizeOf}}),Object.defineProperty(t,"SerializationError",{enumerable:!0,get:function(){return y.SerializationError}}),Object.defineProperty(t,"serialize",{enumerable:!0,get:function(){return y.serialize}}),Object.defineProperty(t,"deserialize",{enumerable:!0,get:function(){return y.deserialize}}),Object.defineProperty(t,"align32bits",{enumerable:!0,get:function(){return y.align32bits}})},48:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return Object.assign(e,function(e){return Object.keys(e).forEach((t=>void 0===e[t]&&delete e[t])),e}(t))}},208:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.align32bits=t.deserialize=t.serialize=t.SerializationError=t.byteSizeOf=t.byteSizeOfPropWithPadding=t.byteSizeOfProp=t.getSerializableProperties=t.serializable=void 0,r(738);const i=n(r(980)),o=n(r(431)),u=Symbol("pixelAnimationSerializable");function a(e){return Reflect.getMetadata(u,e)}function f(e){var t;if(Array.isArray(e))return e.reduce(((e,t)=>e+f(t)),0);{const r=a(e);return null!==(t=null==r?void 0:r.reduce(((e,t)=>{var r,n;return e+t.size+(null!==(n=null===(r=t.options)||void 0===r?void 0:r.padding)&&void 0!==n?n:0)}),0))&&void 0!==t?t:0}}t.serializable=function(e,t){return function(r,n){const i=Reflect.getMetadata(u,r),o={propertyKey:n,size:e,options:t};i?i.push(o):Reflect.defineMetadata(u,[o],r)}},t.getSerializableProperties=a,t.byteSizeOfProp=function(e,t){var r,n;const i=a(e);return null!==(n=null===(r=null==i?void 0:i.find((e=>e.propertyKey===t)))||void 0===r?void 0:r.size)&&void 0!==n?n:0},t.byteSizeOfPropWithPadding=function(e,t){var r,n;const i=a(e),o=null==i?void 0:i.find((e=>e.propertyKey===t));return o?o.size+(null!==(n=null===(r=o.options)||void 0===r?void 0:r.padding)&&void 0!==n?n:0):0},t.byteSizeOf=f;class s extends Error{}function c(e,t){const r=a(e);if(!(null==r?void 0:r.length))throw new s("Object has no serializable property");r.forEach((r=>{const n=e[r.propertyKey],i=n instanceof ArrayBuffer||n.buffer&&n.buffer instanceof ArrayBuffer;if("number"!=typeof n&&"bigint"!=typeof n&&"boolean"!=typeof n&&"string"!=typeof n&&!i)throw new s(`Invalid property type, got ${typeof n} for ${r.propertyKey} but expects number or bigint`);t(r,n)}))}function l(e,t,r=0){if(Array.isArray(e)){const n={dataView:t,byteOffset:r};return e.forEach((e=>{const[t,r]=p(e,n);n.dataView=t,n.byteOffset=r})),[n.dataView,n.byteOffset]}return c(e,((e,n)=>{var i,o,u,a;let f;if(n instanceof ArrayBuffer?f=n:n.buffer&&n.buffer instanceof ArrayBuffer&&(f=n.buffer),f){const n=new Uint8Array(f),i=Math.min(n.byteLength,e.size);for(let e=0;e<i;++e)t.setUint8(r,n[e]),++r;for(let n=i;n<e.size;++n)t.setUint8(r,0),++r}else{const f="float"===(null===(i=e.options)||void 0===i?void 0:i.numberFormat),c="signed"===(null===(o=e.options)||void 0===o?void 0:o.numberFormat);switch(e.size){case 1:c?t.setInt8(r,Number(n)):t.setUint8(r,Number(n));break;case 2:c?t.setInt16(r,Number(n),!0):t.setUint16(r,Number(n),!0);break;case 4:f?t.setFloat32(r,Number(n),!0):t.setInt32(r,Number(n),!0);break;case 8:if(!f)throw new s("BigInt not supported");t.setFloat64(r,Number(n),!0);break;default:throw new s(`Invalid property size, got ${e.size} but expects 1, 2, 4, or 8`)}r+=e.size+(null!==(a=null===(u=e.options)||void 0===u?void 0:u.padding)&&void 0!==a?a:0)}})),[t,r]}function p(e,t){var r;if(null==t?void 0:t.dataView)return l(e,t.dataView,null!==(r=t.byteOffset)&&void 0!==r?r:0);{const[t,r]=l(e,new DataView(new ArrayBuffer(f(e))));return(0,i.default)(r===t.buffer.byteLength,`Incorrect offset after serialization, got ${r} but was expecting ${t.buffer.byteLength}`),[t,r]}}t.SerializationError=s,t.serialize=p,t.deserialize=function(e,t,r=0){return function(e,t,r=0){function n(e,t,r,n){"boolean"!=typeof n||"number"!=typeof r&&"bigint"!=typeof r?(0,i.default)(typeof r==typeof n,`Incorrect value type, got ${typeof r} but was expecting ${typeof n}`):r=Boolean(r),e[t.propertyKey]=r}return c(e,((i,u)=>{var a,f,c,l;if("string"==typeof u){const a=t.buffer.slice(t.byteOffset+r);n(e,i,(0,o.default)(new Uint8Array(a)),u)}else{const o="float"===(null===(a=i.options)||void 0===a?void 0:a.numberFormat),c="signed"===(null===(f=i.options)||void 0===f?void 0:f.numberFormat);let l;switch(i.size){case 1:l=c?t.getInt8(r):t.getUint8(r);break;case 2:l=c?t.getInt16(r,!0):t.getUint16(r,!0);break;case 4:l=o?t.getFloat32(r,!0):c?t.getInt32(r,!0):t.getUint32(r,!0);break;case 8:if(!o)throw new s("BigInt not supported");l=t.getFloat64(r,!0);break;default:throw new s(`Invalid property size, got ${i.size} but expects 1, 2, 4, or 8`)}n(e,i,l,u)}r+=i.size+(null!==(l=null===(c=i.options)||void 0===c?void 0:c.padding)&&void 0!==l?l:0)})),[t,r]}(e,t,r)},t.align32bits=function(e){const t=e%4;return e+(t?4-t:0)}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r(368)})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.pixelsCoreUtils=t():e.pixelsCoreUtils=t()}(this,(()=>(()=>{var e={699:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}h(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&h(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var u=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function a(e,t,r,n){var i,o,u,a;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),u=o[t]),void 0===u)u=o[t]=r,++e._eventsCount;else if("function"==typeof u?u=o[t]=n?[r,u]:[u,r]:n?u.unshift(r):u.push(r),(i=f(e))>0&&u.length>i&&!u.warned){u.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+u.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=u.length,a=c,console&&console.warn&&console.warn(a)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=c.bind(n);return i.listener=r,n.wrapFn=i,i}function p(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):y(i,i.length)}function d(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function y(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function h(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return f(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var u;if(t.length>0&&(u=t[0]),u instanceof Error)throw u;var s=new Error("Unhandled error."+(u?" ("+u.message+")":""));throw s.context=u,s}var f=o[e];if(void 0===f)return!1;if("function"==typeof f)n(f,this,t);else{var a=f.length,c=y(f,a);for(r=0;r<a;++r)n(c[r],this,t)}return!0},o.prototype.addListener=function(e,t){return a(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return a(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,l(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,l(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,u;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){u=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,u||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},738:(e,t,r)=>{var n;!function(e){!function(t){var n="object"==typeof r.g?r.g:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),i=o(e);function o(e,t){return function(r,n){"function"!=typeof e[r]&&Object.defineProperty(e,r,{configurable:!0,writable:!0,value:n}),t&&t(r,n)}}void 0===n.Reflect?n.Reflect=e:i=o(n.Reflect,i),function(e){var t=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,n=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,u={__proto__:[]}instanceof Array,s=!o&&!u,f={create:o?function(){return C(Object.create(null))}:u?function(){return C({__proto__:null})}:function(){return C({})},has:s?function(e,r){return t.call(e,r)}:function(e,t){return t in e},get:s?function(e,r){return t.call(e,r)?e[r]:void 0}:function(e,t){return e[t]}},a=Object.getPrototypeOf(Function),c="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,l=c||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],r=function(){function e(e,t,r){this._index=0,this._keys=e,this._values=t,this._selector=r}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var r=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var r=this._find(e,!0);return this._values[r]=t,this},t.prototype.delete=function(t){var r=this._find(t,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new r(this._keys,this._values,n)},t.prototype.values=function(){return new r(this._keys,this._values,o)},t.prototype.entries=function(){return new r(this._keys,this._values,u)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[i]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function n(e,t){return e}function o(e,t){return t}function u(e,t){return[e,t]}}():Map,p=c||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function e(){this._map=new l}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[i]=function(){return this.keys()},e}():Set,d=new(c||"function"!=typeof WeakMap?function(){var e=f.create(),r=n();return function(){function e(){this._key=n()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&f.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?f.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=n()},e}();function n(){var t;do{t="@@WeakMap@@"+u()}while(f.has(e,t));return e[t]=!0,t}function i(e,n){if(!t.call(e,r)){if(!n)return;Object.defineProperty(e,r,{value:f.create()})}return e[r]}function o(e,t){for(var r=0;r<t;++r)e[r]=255*Math.random()|0;return e}function u(){var e,t=(e=16,"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(e)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(e)):o(new Uint8Array(e),e):o(new Array(e),e));t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var r="",n=0;n<16;++n){var i=t[n];4!==n&&6!==n&&8!==n||(r+="-"),i<16&&(r+="0"),r+=i.toString(16).toLowerCase()}return r}}():WeakMap);function y(e,t,r){var n=d.get(e);if(E(n)){if(!r)return;n=new l,d.set(e,n)}var i=n.get(t);if(E(i)){if(!r)return;i=new l,n.set(t,i)}return i}function h(e,t,r){if(v(e,t,r))return!0;var n=F(t);return!j(n)&&h(e,n,r)}function v(e,t,r){var n=y(t,r,!1);return!E(n)&&!!n.has(e)}function b(e,t,r){if(v(e,t,r))return g(e,t,r);var n=F(t);return j(n)?void 0:b(e,n,r)}function g(e,t,r){var n=y(t,r,!1);if(!E(n))return n.get(e)}function _(e,t,r,n){y(r,n,!0).set(e,t)}function m(e,t){var r=w(e,t),n=F(e);if(null===n)return r;var i=m(n,t);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new p,u=[],s=0,f=r;s<f.length;s++){var a=f[s];o.has(a)||(o.add(a),u.push(a))}for(var c=0,l=i;c<l.length;c++)a=l[c],o.has(a)||(o.add(a),u.push(a));return u}function w(e,t){var r=[],n=y(e,t,!1);if(E(n))return r;for(var o=function(e){var t=M(e,i);if(!S(t))throw new TypeError;var r=t.call(e);if(!P(r))throw new TypeError;return r}(n.keys()),u=0;;){var s=T(o);if(!s)return r.length=u,r;var f=s.value;try{r[u]=f}catch(e){try{A(o)}finally{throw e}}u++}}function O(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function E(e){return void 0===e}function j(e){return null===e}function P(e){return"object"==typeof e?null!==e:"function"==typeof e}function z(e,t){switch(O(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var r=3===t?"string":5===t?"number":"default",i=M(e,n);if(void 0!==i){var o=i.call(e,r);if(P(o))throw new TypeError;return o}return function(e,t){if("string"===t){var r=e.toString;if(S(r)&&!P(i=r.call(e)))return i;if(S(n=e.valueOf)&&!P(i=n.call(e)))return i}else{var n;if(S(n=e.valueOf)&&!P(i=n.call(e)))return i;var i,o=e.toString;if(S(o)&&!P(i=o.call(e)))return i}throw new TypeError}(e,"default"===r?"number":r)}function x(e){var t=z(e,3);return"symbol"==typeof t?t:function(e){return""+e}(t)}function L(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function S(e){return"function"==typeof e}function k(e){return"function"==typeof e}function M(e,t){var r=e[t];if(null!=r){if(!S(r))throw new TypeError;return r}}function T(e){var t=e.next();return!t.done&&t}function A(e){var t=e.return;t&&t.call(e)}function F(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===a)return t;if(t!==a)return t;var r=e.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return t;var i=n.constructor;return"function"!=typeof i||i===e?t:i}function C(e){return e.__=void 0,delete e.__,e}e("decorate",(function(e,t,r,n){if(E(r)){if(!L(e))throw new TypeError;if(!k(t))throw new TypeError;return function(e,t){for(var r=e.length-1;r>=0;--r){var n=(0,e[r])(t);if(!E(n)&&!j(n)){if(!k(n))throw new TypeError;t=n}}return t}(e,t)}if(!L(e))throw new TypeError;if(!P(t))throw new TypeError;if(!P(n)&&!E(n)&&!j(n))throw new TypeError;return j(n)&&(n=void 0),function(e,t,r,n){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,r,n);if(!E(o)&&!j(o)){if(!P(o))throw new TypeError;n=o}}return n}(e,t,r=x(r),n)})),e("metadata",(function(e,t){return function(r,n){if(!P(r))throw new TypeError;if(!E(n)&&!function(e){switch(O(e)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;_(e,t,r,n)}})),e("defineMetadata",(function(e,t,r,n){if(!P(r))throw new TypeError;return E(n)||(n=x(n)),_(e,t,r,n)})),e("hasMetadata",(function(e,t,r){if(!P(t))throw new TypeError;return E(r)||(r=x(r)),h(e,t,r)})),e("hasOwnMetadata",(function(e,t,r){if(!P(t))throw new TypeError;return E(r)||(r=x(r)),v(e,t,r)})),e("getMetadata",(function(e,t,r){if(!P(t))throw new TypeError;return E(r)||(r=x(r)),b(e,t,r)})),e("getOwnMetadata",(function(e,t,r){if(!P(t))throw new TypeError;return E(r)||(r=x(r)),g(e,t,r)})),e("getMetadataKeys",(function(e,t){if(!P(e))throw new TypeError;return E(t)||(t=x(t)),m(e,t)})),e("getOwnMetadataKeys",(function(e,t){if(!P(e))throw new TypeError;return E(t)||(t=x(t)),w(e,t)})),e("deleteMetadata",(function(e,t,r){if(!P(t))throw new TypeError;E(r)||(r=x(r));var n=y(t,r,!1);if(E(n))return!1;if(!n.delete(e))return!1;if(n.size>0)return!0;var i=d.get(t);return i.delete(r),i.size>0||d.delete(t),!0}))}(i)}()}(n||(n={}))},980:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AssertionError=void 0;class r extends Error{}t.AssertionError=r,t.default=function(e,t){if(!e)throw new r(null!=t?t:"Assert failed")}},581:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(980));t.default=function(e,t){(0,i.default)(!1,null!=t?t:"assertNever error")}},912:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=5381;for(let r=0;r<e.length;++r)t=33*t^e[r];return t}},188:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(699);t.default=function(){return new n.EventEmitter}},431:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=0,r="";for(;t<e.length;){let n=e[t++];if(n>127)if(n>191&&n<224){if(t>=e.length)throw new Error("UTF-8 decode: incomplete 2-byte sequence");n=(31&n)<<6|63&e[t++]}else if(n>223&&n<240){if(t+1>=e.length)throw new Error("UTF-8 decode: incomplete 3-byte sequence");n=(15&n)<<12|(63&e[t++])<<6|63&e[t++]}else{if(!(n>239&&n<248))throw new Error("UTF-8 decode: unknown multibyte start 0x"+n.toString(16)+" at index "+(t-1));if(t+2>=e.length)throw new Error("UTF-8 decode: incomplete 4-byte sequence");n=(7&n)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++]}if(n<=65535)r+=String.fromCharCode(n);else{if(!(n<=1114111))throw new Error("UTF-8 decode: code point 0x"+n.toString(16)+" exceeds UTF-16 reach");n-=65536,r+=String.fromCharCode(n>>10|55296),r+=String.fromCharCode(1023&n|56320)}}return r}},233:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function u(e){try{f(n.next(e))}catch(e){o(e)}}function s(e){try{f(n.throw(e))}catch(e){o(e)}}function f(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,s)}f((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise(((r,n)=>{if(null==t?void 0:t.aborted)n(new Error(`Call to delay(${e}) aborted on start`));else{const i=()=>{clearTimeout(o),n(new Error(`Call to delay(${e}) aborted before timeout`))};null==t||t.addEventListener("abort",i);const o=setTimeout((()=>{null==t||t.removeEventListener("abort",i),r()}),e)}}))}))}},860:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.enumFlag=t.enumValue=void 0;let r=0;t.enumValue=function(e){return void 0!==e&&(r=e),r++};let n=0;t.enumFlag=function(e){void 0!==e&&(n=e);const t=1<<n;return n+=1,t}},368:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createTypedEventEmitter=t.safeAssign=t.delay=t.bernsteinHash=t.align32bits=t.deserialize=t.serialize=t.SerializationError=t.byteSizeOf=t.byteSizeOfPropWithPadding=t.byteSizeOfProp=t.getSerializableProperties=t.serializable=t.decodeUtf8=t.assertNever=t.AssertionError=t.assert=t.enumFlag=t.enumValue=void 0;const s=o(r(980));t.assert=s.default,Object.defineProperty(t,"AssertionError",{enumerable:!0,get:function(){return s.AssertionError}});const f=u(r(581));t.assertNever=f.default;const a=u(r(912));t.bernsteinHash=a.default;const c=u(r(188));t.createTypedEventEmitter=c.default;const l=u(r(431));t.decodeUtf8=l.default;const p=u(r(233));t.delay=p.default;const d=r(860);Object.defineProperty(t,"enumValue",{enumerable:!0,get:function(){return d.enumValue}}),Object.defineProperty(t,"enumFlag",{enumerable:!0,get:function(){return d.enumFlag}});const y=u(r(48));t.safeAssign=y.default;const h=r(208);Object.defineProperty(t,"serializable",{enumerable:!0,get:function(){return h.serializable}}),Object.defineProperty(t,"getSerializableProperties",{enumerable:!0,get:function(){return h.getSerializableProperties}}),Object.defineProperty(t,"byteSizeOfProp",{enumerable:!0,get:function(){return h.byteSizeOfProp}}),Object.defineProperty(t,"byteSizeOfPropWithPadding",{enumerable:!0,get:function(){return h.byteSizeOfPropWithPadding}}),Object.defineProperty(t,"byteSizeOf",{enumerable:!0,get:function(){return h.byteSizeOf}}),Object.defineProperty(t,"SerializationError",{enumerable:!0,get:function(){return h.SerializationError}}),Object.defineProperty(t,"serialize",{enumerable:!0,get:function(){return h.serialize}}),Object.defineProperty(t,"deserialize",{enumerable:!0,get:function(){return h.deserialize}}),Object.defineProperty(t,"align32bits",{enumerable:!0,get:function(){return h.align32bits}})},48:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return Object.assign(e,function(e){return Object.keys(e).forEach((t=>void 0===e[t]&&delete e[t])),e}(t))}},208:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.align32bits=t.deserialize=t.serialize=t.SerializationError=t.byteSizeOf=t.byteSizeOfPropWithPadding=t.byteSizeOfProp=t.getSerializableProperties=t.serializable=void 0,r(738);const i=n(r(980)),o=n(r(431)),u=Symbol("pixelAnimationSerializable");function s(e){return Reflect.getMetadata(u,e)}function f(e){var t;if(Array.isArray(e))return e.reduce(((e,t)=>e+f(t)),0);{const r=s(e);return null!==(t=null==r?void 0:r.reduce(((e,t)=>{var r,n;return e+t.size+(null!==(n=null===(r=t.options)||void 0===r?void 0:r.padding)&&void 0!==n?n:0)}),0))&&void 0!==t?t:0}}t.serializable=function(e,t){return function(r,n){const i=Reflect.getMetadata(u,r),o={propertyKey:n,size:e,options:t};i?i.push(o):Reflect.defineMetadata(u,[o],r)}},t.getSerializableProperties=s,t.byteSizeOfProp=function(e,t){var r,n;const i=s(e);return null!==(n=null===(r=null==i?void 0:i.find((e=>e.propertyKey===t)))||void 0===r?void 0:r.size)&&void 0!==n?n:0},t.byteSizeOfPropWithPadding=function(e,t){var r,n;const i=s(e),o=null==i?void 0:i.find((e=>e.propertyKey===t));return o?o.size+(null!==(n=null===(r=o.options)||void 0===r?void 0:r.padding)&&void 0!==n?n:0):0},t.byteSizeOf=f;class a extends Error{}function c(e,t){const r=s(e);if(!(null==r?void 0:r.length))throw new a("Object has no serializable property");r.forEach((r=>{const n=e[r.propertyKey],i=n instanceof ArrayBuffer||n.buffer&&n.buffer instanceof ArrayBuffer;if("number"!=typeof n&&"bigint"!=typeof n&&"boolean"!=typeof n&&"string"!=typeof n&&!i)throw new a(`Invalid property type, got ${typeof n} for ${r.propertyKey} but expects number or bigint`);t(r,n)}))}function l(e,t,r=0){if(Array.isArray(e)){const n={dataView:t,byteOffset:r};return e.forEach((e=>{const[t,r]=p(e,n);n.dataView=t,n.byteOffset=r})),[n.dataView,n.byteOffset]}return c(e,((e,n)=>{var i,o,u,s;let f;if(n instanceof ArrayBuffer?f=n:n.buffer&&n.buffer instanceof ArrayBuffer&&(f=n.buffer),f){const n=new Uint8Array(f),i=Math.min(n.byteLength,e.size);for(let e=0;e<i;++e)t.setUint8(r,n[e]),++r;for(let n=i;n<e.size;++n)t.setUint8(r,0),++r}else{const f="float"===(null===(i=e.options)||void 0===i?void 0:i.numberFormat),c="signed"===(null===(o=e.options)||void 0===o?void 0:o.numberFormat);switch(e.size){case 1:c?t.setInt8(r,Number(n)):t.setUint8(r,Number(n));break;case 2:c?t.setInt16(r,Number(n),!0):t.setUint16(r,Number(n),!0);break;case 4:f?t.setFloat32(r,Number(n),!0):t.setInt32(r,Number(n),!0);break;case 8:if(!f)throw new a("BigInt not supported");t.setFloat64(r,Number(n),!0);break;default:throw new a(`Invalid property size, got ${e.size} but expects 1, 2, 4, or 8`)}r+=e.size+(null!==(s=null===(u=e.options)||void 0===u?void 0:u.padding)&&void 0!==s?s:0)}})),[t,r]}function p(e,t){var r;if(null==t?void 0:t.dataView)return l(e,t.dataView,null!==(r=t.byteOffset)&&void 0!==r?r:0);{const[t,r]=l(e,new DataView(new ArrayBuffer(f(e))));return(0,i.default)(r===t.buffer.byteLength,`Incorrect offset after serialization, got ${r} but was expecting ${t.buffer.byteLength}`),[t,r]}}t.SerializationError=a,t.serialize=p,t.deserialize=function(e,t,r=0){return function(e,t,r=0){function n(e,t,r,n){"boolean"!=typeof n||"number"!=typeof r&&"bigint"!=typeof r?(0,i.default)(typeof r==typeof n,`Incorrect value type, got ${typeof r} but was expecting ${typeof n}`):r=Boolean(r),e[t.propertyKey]=r}return c(e,((i,u)=>{var s,f,c,l;if("string"==typeof u){const s=t.buffer.slice(t.byteOffset+r);n(e,i,(0,o.default)(new Uint8Array(s)),u)}else{const o="float"===(null===(s=i.options)||void 0===s?void 0:s.numberFormat),c="signed"===(null===(f=i.options)||void 0===f?void 0:f.numberFormat);let l;switch(i.size){case 1:l=c?t.getInt8(r):t.getUint8(r);break;case 2:l=c?t.getInt16(r,!0):t.getUint16(r,!0);break;case 4:l=o?t.getFloat32(r,!0):c?t.getInt32(r,!0):t.getUint32(r,!0);break;case 8:if(!o)throw new a("BigInt not supported");l=t.getFloat64(r,!0);break;default:throw new a(`Invalid property size, got ${i.size} but expects 1, 2, 4, or 8`)}n(e,i,l,u)}r+=i.size+(null!==(l=null===(c=i.options)||void 0===c?void 0:c.padding)&&void 0!==l?l:0)})),[t,r]}(e,t,r)},t.align32bits=function(e){const t=e%4;return e+(t?4-t:0)}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r(368)})()));
{
"name": "@systemic-games/pixels-core-utils",
"version": "1.0.3",
"version": "1.0.4",
"description": "",

@@ -49,2 +49,3 @@ "main": "dist/cjs/index.js",

"dependencies": {
"events": "^3.3.0",
"reflect-metadata": "^0.1.13"

@@ -51,0 +52,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc