chore: update source for alpha 350.3
This commit is contained in:
parent
44b9d689a5
commit
e269d19859
19152 changed files with 1005212 additions and 1000834 deletions
11888
alpha/source.jsonl
11888
alpha/source.jsonl
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
|
@ -14,7 +14,7 @@ import _inherits from "_inherits" /* 98 */;
|
||||||
|
|
||||||
const require = globalThis.__r;
|
const require = globalThis.__r;
|
||||||
|
|
||||||
const f81129 = (nodeType) => nodeType.nodeType === require("module_131").ELEMENT_NODE;
|
const f81341 = (nodeType) => nodeType.nodeType === require("module_131").ELEMENT_NODE;
|
||||||
function _isNativeReflectConstruct() {
|
function _isNativeReflectConstruct() {
|
||||||
try {
|
try {
|
||||||
const _Boolean = Boolean;
|
const _Boolean = Boolean;
|
||||||
|
|
@ -52,7 +52,7 @@ let obj = {
|
||||||
key: "childElementCount",
|
key: "childElementCount",
|
||||||
get() {
|
get() {
|
||||||
const obj = require("module_131");
|
const obj = require("module_131");
|
||||||
return obj.getChildNodes(this, f81129).length;
|
return obj.getChildNodes(this, f81341).length;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const items = [
|
const items = [
|
||||||
|
|
@ -63,7 +63,7 @@ const items = [
|
||||||
const createHTMLCollection = require("module_129").createHTMLCollection;
|
const createHTMLCollection = require("module_129").createHTMLCollection;
|
||||||
require("module_129");
|
require("module_129");
|
||||||
const obj = require("module_131");
|
const obj = require("module_131");
|
||||||
return createHTMLCollection(obj.getChildNodes(this, f81129));
|
return createHTMLCollection(obj.getChildNodes(this, f81341));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -122,7 +122,7 @@ const items = [
|
||||||
key: "firstElementChild",
|
key: "firstElementChild",
|
||||||
get() {
|
get() {
|
||||||
const obj = require("module_131");
|
const obj = require("module_131");
|
||||||
const childNodes = obj.getChildNodes(this, f81129);
|
const childNodes = obj.getChildNodes(this, f81341);
|
||||||
let first = null;
|
let first = null;
|
||||||
if (0 !== childNodes.length) {
|
if (0 !== childNodes.length) {
|
||||||
first = childNodes[0];
|
first = childNodes[0];
|
||||||
|
|
@ -150,7 +150,7 @@ const items = [
|
||||||
key: "lastElementChild",
|
key: "lastElementChild",
|
||||||
get() {
|
get() {
|
||||||
const obj = require("module_131");
|
const obj = require("module_131");
|
||||||
const childNodes = obj.getChildNodes(this, f81129);
|
const childNodes = obj.getChildNodes(this, f81341);
|
||||||
let tmp = null;
|
let tmp = null;
|
||||||
if (0 !== childNodes.length) {
|
if (0 !== childNodes.length) {
|
||||||
tmp = childNodes[childNodes.length - 1];
|
tmp = childNodes[childNodes.length - 1];
|
||||||
|
|
|
||||||
|
|
@ -18,15 +18,15 @@ import _slicedToArray2 from "_slicedToArray" /* 759 */;
|
||||||
import _mod760 from "module_760" /* 760 */;
|
import _mod760 from "module_760" /* 760 */;
|
||||||
import _slicedToArray from "_slicedToArray" /* 32 */;
|
import _slicedToArray from "_slicedToArray" /* 32 */;
|
||||||
|
|
||||||
const f82880 = () => {
|
const f83092 = () => {
|
||||||
const weakMap = new WeakMap();
|
const weakMap = new WeakMap();
|
||||||
return weakMap;
|
return weakMap;
|
||||||
};
|
};
|
||||||
function _INTERNAL_captureSerializedLog(getOptions, arg1) {
|
function _INTERNAL_captureSerializedLog(getOptions, arg1) {
|
||||||
const obj = _mod701;
|
const obj = _mod701;
|
||||||
const globalSingleton = obj.getGlobalSingleton("clientToLogBufferMap", f82880);
|
const globalSingleton = obj.getGlobalSingleton("clientToLogBufferMap", f83092);
|
||||||
const obj3 = _mod701;
|
const obj3 = _mod701;
|
||||||
const globalSingleton1 = obj3.getGlobalSingleton("clientToLogBufferMap", f82880);
|
const globalSingleton1 = obj3.getGlobalSingleton("clientToLogBufferMap", f83092);
|
||||||
const value = globalSingleton1.get(getOptions);
|
const value = globalSingleton1.get(getOptions);
|
||||||
if (undefined === value) {
|
if (undefined === value) {
|
||||||
const items = [arg1];
|
const items = [arg1];
|
||||||
|
|
@ -47,7 +47,7 @@ function _INTERNAL_flushLogsBuffer(getOptions, value) {
|
||||||
let items = value;
|
let items = value;
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
const obj = _mod701;
|
const obj = _mod701;
|
||||||
const globalSingleton = obj.getGlobalSingleton("clientToLogBufferMap", f82880);
|
const globalSingleton = obj.getGlobalSingleton("clientToLogBufferMap", f83092);
|
||||||
items = globalSingleton.get(getOptions);
|
items = globalSingleton.get(getOptions);
|
||||||
}
|
}
|
||||||
if (items == null) {
|
if (items == null) {
|
||||||
|
|
@ -59,7 +59,7 @@ function _INTERNAL_flushLogsBuffer(getOptions, value) {
|
||||||
const obj3 = _mod760;
|
const obj3 = _mod760;
|
||||||
const logEnvelope = obj3.createLogEnvelope(items, _metadata, tunnel, getOptions.getDsn());
|
const logEnvelope = obj3.createLogEnvelope(items, _metadata, tunnel, getOptions.getDsn());
|
||||||
const obj4 = _mod701;
|
const obj4 = _mod701;
|
||||||
const globalSingleton1 = obj4.getGlobalSingleton("clientToLogBufferMap", f82880);
|
const globalSingleton1 = obj4.getGlobalSingleton("clientToLogBufferMap", f83092);
|
||||||
const result = globalSingleton1.set(getOptions, []);
|
const result = globalSingleton1.set(getOptions, []);
|
||||||
getOptions.emit("flushLogs");
|
getOptions.emit("flushLogs");
|
||||||
getOptions.sendEnvelope(logEnvelope);
|
getOptions.sendEnvelope(logEnvelope);
|
||||||
|
|
@ -82,6 +82,7 @@ export const _INTERNAL_captureLog = function _INTERNAL_captureLog(attributes, sc
|
||||||
let tmp12Result14;
|
let tmp12Result14;
|
||||||
let trace_id;
|
let trace_id;
|
||||||
let username;
|
let username;
|
||||||
|
let version;
|
||||||
let currentScope = scope;
|
let currentScope = scope;
|
||||||
if (scope === undefined) {
|
if (scope === undefined) {
|
||||||
const obj2 = _mod724;
|
const obj2 = _mod724;
|
||||||
|
|
@ -287,6 +288,6 @@ export { _INTERNAL_captureSerializedLog };
|
||||||
export { _INTERNAL_flushLogsBuffer };
|
export { _INTERNAL_flushLogsBuffer };
|
||||||
export const _INTERNAL_getLogBuffer = function _INTERNAL_getLogBuffer(arg0) {
|
export const _INTERNAL_getLogBuffer = function _INTERNAL_getLogBuffer(arg0) {
|
||||||
const obj = _mod701;
|
const obj = _mod701;
|
||||||
const globalSingleton = obj.getGlobalSingleton("clientToLogBufferMap", f82880);
|
const globalSingleton = obj.getGlobalSingleton("clientToLogBufferMap", f83092);
|
||||||
return globalSingleton.get(arg0);
|
return globalSingleton.get(arg0);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ function attributeValueToTypedAttributeValue(value, flag) {
|
||||||
}
|
}
|
||||||
let tmp = value;
|
let tmp = value;
|
||||||
if (!isAttributeObject(value)) {
|
if (!isAttributeObject(value)) {
|
||||||
const obj = { value, unit: "Array" };
|
const obj = { value, unit: "r" };
|
||||||
tmp = obj;
|
tmp = obj;
|
||||||
}
|
}
|
||||||
({ value, unit } = tmp);
|
({ value, unit } = tmp);
|
||||||
|
|
|
||||||
|
|
@ -16,15 +16,15 @@ import _slicedToArray2 from "_slicedToArray" /* 759 */;
|
||||||
import _mod762 from "module_762" /* 762 */;
|
import _mod762 from "module_762" /* 762 */;
|
||||||
import _slicedToArray from "_slicedToArray" /* 32 */;
|
import _slicedToArray from "_slicedToArray" /* 32 */;
|
||||||
|
|
||||||
const f82885 = () => {
|
const f83097 = () => {
|
||||||
const weakMap = new WeakMap();
|
const weakMap = new WeakMap();
|
||||||
return weakMap;
|
return weakMap;
|
||||||
};
|
};
|
||||||
function _INTERNAL_captureSerializedMetric(getOptions, arg1) {
|
function _INTERNAL_captureSerializedMetric(getOptions, arg1) {
|
||||||
const obj = _mod701;
|
const obj = _mod701;
|
||||||
const globalSingleton = obj.getGlobalSingleton("clientToMetricBufferMap", f82885);
|
const globalSingleton = obj.getGlobalSingleton("clientToMetricBufferMap", f83097);
|
||||||
const obj3 = _mod701;
|
const obj3 = _mod701;
|
||||||
const globalSingleton1 = obj3.getGlobalSingleton("clientToMetricBufferMap", f82885);
|
const globalSingleton1 = obj3.getGlobalSingleton("clientToMetricBufferMap", f83097);
|
||||||
const value = globalSingleton1.get(getOptions);
|
const value = globalSingleton1.get(getOptions);
|
||||||
if (undefined === value) {
|
if (undefined === value) {
|
||||||
const items = [arg1];
|
const items = [arg1];
|
||||||
|
|
@ -45,7 +45,7 @@ function _INTERNAL_flushMetricsBuffer(getOptions, value) {
|
||||||
let items = value;
|
let items = value;
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
const obj = _mod701;
|
const obj = _mod701;
|
||||||
const globalSingleton = obj.getGlobalSingleton("clientToMetricBufferMap", f82885);
|
const globalSingleton = obj.getGlobalSingleton("clientToMetricBufferMap", f83097);
|
||||||
items = globalSingleton.get(getOptions);
|
items = globalSingleton.get(getOptions);
|
||||||
}
|
}
|
||||||
if (items == null) {
|
if (items == null) {
|
||||||
|
|
@ -57,7 +57,7 @@ function _INTERNAL_flushMetricsBuffer(getOptions, value) {
|
||||||
const obj3 = _mod762;
|
const obj3 = _mod762;
|
||||||
const metricEnvelope = obj3.createMetricEnvelope(items, _metadata, tunnel, getOptions.getDsn());
|
const metricEnvelope = obj3.createMetricEnvelope(items, _metadata, tunnel, getOptions.getDsn());
|
||||||
const obj4 = _mod701;
|
const obj4 = _mod701;
|
||||||
const globalSingleton1 = obj4.getGlobalSingleton("clientToMetricBufferMap", f82885);
|
const globalSingleton1 = obj4.getGlobalSingleton("clientToMetricBufferMap", f83097);
|
||||||
const result = globalSingleton1.set(getOptions, []);
|
const result = globalSingleton1.set(getOptions, []);
|
||||||
getOptions.emit("flushMetrics");
|
getOptions.emit("flushMetrics");
|
||||||
getOptions.sendEnvelope(metricEnvelope);
|
getOptions.sendEnvelope(metricEnvelope);
|
||||||
|
|
@ -75,6 +75,7 @@ export const _INTERNAL_captureMetric = function _INTERNAL_captureMetric(attribut
|
||||||
let release;
|
let release;
|
||||||
let tmp17Result6;
|
let tmp17Result6;
|
||||||
let user;
|
let user;
|
||||||
|
let version;
|
||||||
scope = undefined;
|
scope = undefined;
|
||||||
if (scope != null) {
|
if (scope != null) {
|
||||||
scope = scope.scope;
|
scope = scope.scope;
|
||||||
|
|
@ -272,6 +273,6 @@ export { _INTERNAL_captureSerializedMetric };
|
||||||
export { _INTERNAL_flushMetricsBuffer };
|
export { _INTERNAL_flushMetricsBuffer };
|
||||||
export const _INTERNAL_getMetricBuffer = function _INTERNAL_getMetricBuffer(arg0) {
|
export const _INTERNAL_getMetricBuffer = function _INTERNAL_getMetricBuffer(arg0) {
|
||||||
const obj = _mod701;
|
const obj = _mod701;
|
||||||
const globalSingleton = obj.getGlobalSingleton("clientToMetricBufferMap", f82885);
|
const globalSingleton = obj.getGlobalSingleton("clientToMetricBufferMap", f83097);
|
||||||
return globalSingleton.get(arg0);
|
return globalSingleton.get(arg0);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ function _addTracingHeadersToFetchRequest(headers, headers2, span, propagateTrac
|
||||||
let joined;
|
let joined;
|
||||||
let tmp6;
|
let tmp6;
|
||||||
let traceparent;
|
let traceparent;
|
||||||
const f82964 = (item) => {
|
const f83176 = (item) => {
|
||||||
const trimmed = item.trim();
|
const trimmed = item.trim();
|
||||||
return trimmed.startsWith(closure_1_0(closure_1_1[8]).SENTRY_BAGGAGE_KEY_PREFIX);
|
return trimmed.startsWith(closure_1_0(closure_1_1[8]).SENTRY_BAGGAGE_KEY_PREFIX);
|
||||||
};
|
};
|
||||||
|
|
@ -68,7 +68,7 @@ function _addTracingHeadersToFetchRequest(headers, headers2, span, propagateTrac
|
||||||
const str10 = headers2.get("baggage");
|
const str10 = headers2.get("baggage");
|
||||||
if (str10) {
|
if (str10) {
|
||||||
let parts = str10.split(",");
|
let parts = str10.split(",");
|
||||||
if (!parts.some(f82964)) {
|
if (!parts.some(f83176)) {
|
||||||
const _HermesInternal = HermesInternal;
|
const _HermesInternal = HermesInternal;
|
||||||
const result2 = headers2.set("baggage", "" + str10 + "," + baggage);
|
const result2 = headers2.set("baggage", "" + str10 + "," + baggage);
|
||||||
}
|
}
|
||||||
|
|
@ -96,7 +96,7 @@ function _addTracingHeadersToFetchRequest(headers, headers2, span, propagateTrac
|
||||||
if (someResult) {
|
if (someResult) {
|
||||||
const str = item[1];
|
const str = item[1];
|
||||||
const parts = str.split(",");
|
const parts = str.split(",");
|
||||||
someResult = parts.some(f82964);
|
someResult = parts.some(f83176);
|
||||||
}
|
}
|
||||||
return someResult;
|
return someResult;
|
||||||
});
|
});
|
||||||
|
|
@ -141,11 +141,11 @@ function _addTracingHeadersToFetchRequest(headers, headers2, span, propagateTrac
|
||||||
if (Array.isArray(baggage1)) {
|
if (Array.isArray(baggage1)) {
|
||||||
found = baggage1.find((item) => {
|
found = baggage1.find((item) => {
|
||||||
const parts = item.split(",");
|
const parts = item.split(",");
|
||||||
return parts.some(f82964);
|
return parts.some(f83176);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
const parts1 = baggage1.split(",");
|
const parts1 = baggage1.split(",");
|
||||||
found = parts1.some(f82964);
|
found = parts1.some(f83176);
|
||||||
}
|
}
|
||||||
tmp21 = found;
|
tmp21 = found;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -63,10 +63,10 @@ function _getGraphQLOperation(operationName) {
|
||||||
} else {
|
} else {
|
||||||
const match1 = query.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);
|
const match1 = query.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);
|
||||||
if (match1) {
|
if (match1) {
|
||||||
obj = { operationType: match1[1], operationName: "Array" };
|
obj = { operationType: match1[1], operationName: "r" };
|
||||||
const obj3 = { operationType: match1[1], operationName: "Array" };
|
const obj3 = { operationType: match1[1], operationName: "r" };
|
||||||
} else {
|
} else {
|
||||||
obj = { operationType: "Array", operationName: "Reflect" };
|
obj = { operationType: "Array", operationName: "Set" };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let operationName2 = obj.operationName;
|
let operationName2 = obj.operationName;
|
||||||
|
|
@ -350,10 +350,10 @@ export const parseGraphQLQuery = function parseGraphQLQuery(str) {
|
||||||
let obj;
|
let obj;
|
||||||
const match1 = str.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);
|
const match1 = str.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);
|
||||||
if (match1) {
|
if (match1) {
|
||||||
obj = { operationType: match1[1], operationName: "Array" };
|
obj = { operationType: match1[1], operationName: "r" };
|
||||||
const obj3 = { operationType: match1[1], operationName: "Array" };
|
const obj3 = { operationType: match1[1], operationName: "r" };
|
||||||
} else {
|
} else {
|
||||||
obj = { operationType: "Array", operationName: "Reflect" };
|
obj = { operationType: "Array", operationName: "Set" };
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,14 +16,14 @@ const ErrorKind = tmp(1192);
|
||||||
module_1172.__exportStar(TYPE, exports);
|
module_1172.__exportStar(TYPE, exports);
|
||||||
|
|
||||||
export const parse = function parse(arg0, arg1) {
|
export const parse = function parse(arg0, arg1) {
|
||||||
const f84260 = (style) => {
|
const f84472 = (style) => {
|
||||||
delete style[`location`];
|
delete style[`location`];
|
||||||
if (!TYPE.isSelectElement(style)) {
|
if (!TYPE.isSelectElement(style)) {
|
||||||
if (!TYPE.isPluralElement(style)) {
|
if (!TYPE.isPluralElement(style)) {
|
||||||
if (!TYPE.isNumberElement(style)) {
|
if (!TYPE.isNumberElement(style)) {
|
||||||
if (TYPE.isTagElement(style)) {
|
if (TYPE.isTagElement(style)) {
|
||||||
const children = style.children;
|
const children = style.children;
|
||||||
const item = children.forEach(f84260);
|
const item = children.forEach(f84472);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
delete style.style["location"];
|
delete style.style["location"];
|
||||||
|
|
@ -32,7 +32,7 @@ export const parse = function parse(arg0, arg1) {
|
||||||
for (const key10046 in style.options) {
|
for (const key10046 in style.options) {
|
||||||
delete style.options[key10046][str];
|
delete style.options[key10046][str];
|
||||||
let value = style.options[key10046].value;
|
let value = style.options[key10046].value;
|
||||||
let item1 = value.forEach(f84260);
|
let item1 = value.forEach(f84472);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -57,7 +57,7 @@ export const parse = function parse(arg0, arg1) {
|
||||||
}
|
}
|
||||||
if (!captureLocation) {
|
if (!captureLocation) {
|
||||||
const val = parsed.val;
|
const val = parsed.val;
|
||||||
let item = val.forEach(f84260);
|
let item = val.forEach(f84472);
|
||||||
}
|
}
|
||||||
return parsed.val;
|
return parsed.val;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,127 +0,0 @@
|
||||||
// Module ID: 1487
|
|
||||||
// Function ID: 1488
|
|
||||||
// Name: _createClass
|
|
||||||
// Dependencies: [42, 41]
|
|
||||||
|
|
||||||
// Module 1487 (_createClass)
|
|
||||||
import _createClass from "_createClass" /* 42 */;
|
|
||||||
import _classCallCheck from "_classCallCheck" /* 41 */;
|
|
||||||
|
|
||||||
let closure_0;
|
|
||||||
|
|
||||||
class InternetReachability {
|
|
||||||
constructor(_configuration, _listener) {
|
|
||||||
const self = this;
|
|
||||||
_classCallCheck(this, InternetReachability);
|
|
||||||
this._isInternetReachable = undefined;
|
|
||||||
this._currentInternetReachabilityCheckHandler = null;
|
|
||||||
this._currentTimeoutHandle = null;
|
|
||||||
this._setIsInternetReachable = (_isInternetReachable) => {
|
|
||||||
if (self._isInternetReachable !== _isInternetReachable) {
|
|
||||||
self._isInternetReachable = _isInternetReachable;
|
|
||||||
self._listener(self._isInternetReachable);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
this._setExpectsConnection = (arg0) => {
|
|
||||||
if (null !== self._currentInternetReachabilityCheckHandler) {
|
|
||||||
const _currentInternetReachabilityCheckHandler = self._currentInternetReachabilityCheckHandler;
|
|
||||||
_currentInternetReachabilityCheckHandler.cancel();
|
|
||||||
self._currentInternetReachabilityCheckHandler = null;
|
|
||||||
}
|
|
||||||
if (null !== self._currentTimeoutHandle) {
|
|
||||||
const _clearTimeout = clearTimeout;
|
|
||||||
clearTimeout(self._currentTimeoutHandle);
|
|
||||||
self._currentTimeoutHandle = null;
|
|
||||||
}
|
|
||||||
const tmp4 = arg0;
|
|
||||||
if (tmp4) {
|
|
||||||
const _configuration = obj._configuration;
|
|
||||||
if (_configuration.reachabilityShouldRun()) {
|
|
||||||
if (!self._isInternetReachable) {
|
|
||||||
const result = obj._setIsInternetReachable(null);
|
|
||||||
}
|
|
||||||
self._currentInternetReachabilityCheckHandler = self._checkInternetReachability();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const result1 = obj._setIsInternetReachable(false);
|
|
||||||
};
|
|
||||||
this._checkInternetReachability = () => {
|
|
||||||
let catchPromise;
|
|
||||||
const f136532 = (arg0, arg1) => {
|
|
||||||
closure_0 = arg1;
|
|
||||||
cancel = function cancel() {
|
|
||||||
return closure_0("canceled");
|
|
||||||
};
|
|
||||||
};
|
|
||||||
const abortController = new AbortController();
|
|
||||||
const obj = { headers: _self._configuration.reachabilityHeaders, method: _self._configuration.reachabilityMethod, cache: "no-cache", signal: abortController.signal };
|
|
||||||
const response = fetch(_self._configuration.reachabilityUrl, obj);
|
|
||||||
function cancel() {
|
|
||||||
|
|
||||||
}
|
|
||||||
const promise = new Promise((arg0, arg1) => {
|
|
||||||
const timeout = setTimeout(() => closure_0("timedout"), self._configuration.reachabilityRequestTimeout);
|
|
||||||
});
|
|
||||||
const obj2 = {
|
|
||||||
promise: catchPromise.then(() => {
|
|
||||||
clearTimeout(closure_0);
|
|
||||||
}, (arg0) => {
|
|
||||||
clearTimeout(closure_0);
|
|
||||||
throw arg0;
|
|
||||||
}),
|
|
||||||
cancel
|
|
||||||
};
|
|
||||||
const items = [response, promise, new Promise(f136532)];
|
|
||||||
new Promise(f136532);
|
|
||||||
const racePromise = Promise.race(items);
|
|
||||||
const nextPromise = racePromise.then((result) => {
|
|
||||||
const _configuration = closure_0._configuration;
|
|
||||||
return _configuration.reachabilityTest(result);
|
|
||||||
});
|
|
||||||
const nextPromise1 = nextPromise.then((result) => {
|
|
||||||
result = closure_0._setIsInternetReachable(result);
|
|
||||||
const _configuration = closure_0._configuration;
|
|
||||||
closure_0._currentTimeoutHandle = setTimeout(closure_0._checkInternetReachability, closure_0._isInternetReachable ? _configuration.reachabilityLongTimeout : _configuration.reachabilityShortTimeout);
|
|
||||||
});
|
|
||||||
catchPromise = nextPromise1.catch((error) => {
|
|
||||||
if ("canceled" === error) {
|
|
||||||
abortController.abort();
|
|
||||||
} else {
|
|
||||||
if ("timedout" === error) {
|
|
||||||
abortController.abort();
|
|
||||||
}
|
|
||||||
const result = self._setIsInternetReachable(false);
|
|
||||||
const _setTimeout = setTimeout;
|
|
||||||
self._currentTimeoutHandle = setTimeout(self._checkInternetReachability, self._configuration.reachabilityShortTimeout);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return obj2;
|
|
||||||
};
|
|
||||||
this.update = (isInternetReachable) => {
|
|
||||||
if (typeof isInternetReachable.isInternetReachable === "boolean") {
|
|
||||||
const obj = self;
|
|
||||||
if (self._configuration.useNativeReachability) {
|
|
||||||
const result = obj._setIsInternetReachable(isInternetReachable.isInternetReachable);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const result1 = self._setExpectsConnection(isInternetReachable.isConnected);
|
|
||||||
};
|
|
||||||
this.currentState = () => self._isInternetReachable;
|
|
||||||
this.tearDown = () => {
|
|
||||||
if (null !== self._currentInternetReachabilityCheckHandler) {
|
|
||||||
const _currentInternetReachabilityCheckHandler = self._currentInternetReachabilityCheckHandler;
|
|
||||||
_currentInternetReachabilityCheckHandler.cancel();
|
|
||||||
self._currentInternetReachabilityCheckHandler = null;
|
|
||||||
}
|
|
||||||
if (null !== self._currentTimeoutHandle) {
|
|
||||||
const _clearTimeout = clearTimeout;
|
|
||||||
clearTimeout(self._currentTimeoutHandle);
|
|
||||||
self._currentTimeoutHandle = null;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
this._configuration = _configuration;
|
|
||||||
this._listener = _listener;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export default _createClass(InternetReachability);
|
|
||||||
127
alpha/source/__helpers/01xxx/1488__createClass.js
Normal file
127
alpha/source/__helpers/01xxx/1488__createClass.js
Normal file
|
|
@ -0,0 +1,127 @@
|
||||||
|
// Module ID: 1488
|
||||||
|
// Function ID: 1489
|
||||||
|
// Name: _createClass
|
||||||
|
// Dependencies: [42, 41]
|
||||||
|
|
||||||
|
// Module 1488 (_createClass)
|
||||||
|
import _createClass from "_createClass" /* 42 */;
|
||||||
|
import _classCallCheck from "_classCallCheck" /* 41 */;
|
||||||
|
|
||||||
|
let closure_0;
|
||||||
|
|
||||||
|
class InternetReachability {
|
||||||
|
constructor(_configuration, _listener) {
|
||||||
|
const self = this;
|
||||||
|
_classCallCheck(this, InternetReachability);
|
||||||
|
this._isInternetReachable = undefined;
|
||||||
|
this._currentInternetReachabilityCheckHandler = null;
|
||||||
|
this._currentTimeoutHandle = null;
|
||||||
|
this._setIsInternetReachable = (_isInternetReachable) => {
|
||||||
|
if (self._isInternetReachable !== _isInternetReachable) {
|
||||||
|
self._isInternetReachable = _isInternetReachable;
|
||||||
|
self._listener(self._isInternetReachable);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
this._setExpectsConnection = (arg0) => {
|
||||||
|
if (null !== self._currentInternetReachabilityCheckHandler) {
|
||||||
|
const _currentInternetReachabilityCheckHandler = self._currentInternetReachabilityCheckHandler;
|
||||||
|
_currentInternetReachabilityCheckHandler.cancel();
|
||||||
|
self._currentInternetReachabilityCheckHandler = null;
|
||||||
|
}
|
||||||
|
if (null !== self._currentTimeoutHandle) {
|
||||||
|
const _clearTimeout = clearTimeout;
|
||||||
|
clearTimeout(self._currentTimeoutHandle);
|
||||||
|
self._currentTimeoutHandle = null;
|
||||||
|
}
|
||||||
|
const tmp4 = arg0;
|
||||||
|
if (tmp4) {
|
||||||
|
const _configuration = obj._configuration;
|
||||||
|
if (_configuration.reachabilityShouldRun()) {
|
||||||
|
if (!self._isInternetReachable) {
|
||||||
|
const result = obj._setIsInternetReachable(null);
|
||||||
|
}
|
||||||
|
self._currentInternetReachabilityCheckHandler = self._checkInternetReachability();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const result1 = obj._setIsInternetReachable(false);
|
||||||
|
};
|
||||||
|
this._checkInternetReachability = () => {
|
||||||
|
let catchPromise;
|
||||||
|
const f136867 = (arg0, arg1) => {
|
||||||
|
closure_0 = arg1;
|
||||||
|
cancel = function cancel() {
|
||||||
|
return closure_0("canceled");
|
||||||
|
};
|
||||||
|
};
|
||||||
|
const abortController = new AbortController();
|
||||||
|
const obj = { headers: _self._configuration.reachabilityHeaders, method: _self._configuration.reachabilityMethod, cache: "no-cache", signal: abortController.signal };
|
||||||
|
const response = fetch(_self._configuration.reachabilityUrl, obj);
|
||||||
|
function cancel() {
|
||||||
|
|
||||||
|
}
|
||||||
|
const promise = new Promise((arg0, arg1) => {
|
||||||
|
const timeout = setTimeout(() => closure_0("timedout"), self._configuration.reachabilityRequestTimeout);
|
||||||
|
});
|
||||||
|
const obj2 = {
|
||||||
|
promise: catchPromise.then(() => {
|
||||||
|
clearTimeout(closure_0);
|
||||||
|
}, (arg0) => {
|
||||||
|
clearTimeout(closure_0);
|
||||||
|
throw arg0;
|
||||||
|
}),
|
||||||
|
cancel
|
||||||
|
};
|
||||||
|
const items = [response, promise, new Promise(f136867)];
|
||||||
|
new Promise(f136867);
|
||||||
|
const racePromise = Promise.race(items);
|
||||||
|
const nextPromise = racePromise.then((result) => {
|
||||||
|
const _configuration = closure_0._configuration;
|
||||||
|
return _configuration.reachabilityTest(result);
|
||||||
|
});
|
||||||
|
const nextPromise1 = nextPromise.then((result) => {
|
||||||
|
result = closure_0._setIsInternetReachable(result);
|
||||||
|
const _configuration = closure_0._configuration;
|
||||||
|
closure_0._currentTimeoutHandle = setTimeout(closure_0._checkInternetReachability, closure_0._isInternetReachable ? _configuration.reachabilityLongTimeout : _configuration.reachabilityShortTimeout);
|
||||||
|
});
|
||||||
|
catchPromise = nextPromise1.catch((error) => {
|
||||||
|
if ("canceled" === error) {
|
||||||
|
abortController.abort();
|
||||||
|
} else {
|
||||||
|
if ("timedout" === error) {
|
||||||
|
abortController.abort();
|
||||||
|
}
|
||||||
|
const result = self._setIsInternetReachable(false);
|
||||||
|
const _setTimeout = setTimeout;
|
||||||
|
self._currentTimeoutHandle = setTimeout(self._checkInternetReachability, self._configuration.reachabilityShortTimeout);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return obj2;
|
||||||
|
};
|
||||||
|
this.update = (isInternetReachable) => {
|
||||||
|
if (typeof isInternetReachable.isInternetReachable === "boolean") {
|
||||||
|
const obj = self;
|
||||||
|
if (self._configuration.useNativeReachability) {
|
||||||
|
const result = obj._setIsInternetReachable(isInternetReachable.isInternetReachable);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const result1 = self._setExpectsConnection(isInternetReachable.isConnected);
|
||||||
|
};
|
||||||
|
this.currentState = () => self._isInternetReachable;
|
||||||
|
this.tearDown = () => {
|
||||||
|
if (null !== self._currentInternetReachabilityCheckHandler) {
|
||||||
|
const _currentInternetReachabilityCheckHandler = self._currentInternetReachabilityCheckHandler;
|
||||||
|
_currentInternetReachabilityCheckHandler.cancel();
|
||||||
|
self._currentInternetReachabilityCheckHandler = null;
|
||||||
|
}
|
||||||
|
if (null !== self._currentTimeoutHandle) {
|
||||||
|
const _clearTimeout = clearTimeout;
|
||||||
|
clearTimeout(self._currentTimeoutHandle);
|
||||||
|
self._currentTimeoutHandle = null;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
this._configuration = _configuration;
|
||||||
|
this._listener = _listener;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default _createClass(InternetReachability);
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
// Module ID: 1506
|
|
||||||
// Function ID: 1507
|
|
||||||
// Name: _createClass
|
|
||||||
// Dependencies: [42, 41]
|
|
||||||
|
|
||||||
// Module 1506 (_createClass)
|
|
||||||
import _createClass from "_createClass" /* 42 */;
|
|
||||||
import _classCallCheck from "_classCallCheck" /* 41 */;
|
|
||||||
|
|
||||||
class PrivateValueStore {
|
|
||||||
constructor() {
|
|
||||||
_classCallCheck(this, PrivateValueStore);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const PrivateValueStore_export = _createClass(PrivateValueStore);
|
|
||||||
|
|
||||||
export { PrivateValueStore_export as PrivateValueStore };
|
|
||||||
17
alpha/source/__helpers/01xxx/1507__createClass.js
Normal file
17
alpha/source/__helpers/01xxx/1507__createClass.js
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
// Module ID: 1507
|
||||||
|
// Function ID: 1508
|
||||||
|
// Name: _createClass
|
||||||
|
// Dependencies: [42, 41]
|
||||||
|
|
||||||
|
// Module 1507 (_createClass)
|
||||||
|
import _createClass from "_createClass" /* 42 */;
|
||||||
|
import _classCallCheck from "_classCallCheck" /* 41 */;
|
||||||
|
|
||||||
|
class PrivateValueStore {
|
||||||
|
constructor() {
|
||||||
|
_classCallCheck(this, PrivateValueStore);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const PrivateValueStore_export = _createClass(PrivateValueStore);
|
||||||
|
|
||||||
|
export { PrivateValueStore_export as PrivateValueStore };
|
||||||
|
|
@ -1,263 +0,0 @@
|
||||||
// Module ID: 1563
|
|
||||||
// Function ID: 1564
|
|
||||||
// Name: _slicedToArray
|
|
||||||
// Dependencies: [32]
|
|
||||||
// Exports: getPatternParts
|
|
||||||
|
|
||||||
// Module 1563 (_slicedToArray)
|
|
||||||
import _slicedToArray from "_slicedToArray" /* 32 */;
|
|
||||||
|
|
||||||
|
|
||||||
export const getPatternParts = function getPatternParts(path) {
|
|
||||||
let tmp41;
|
|
||||||
let tmp42;
|
|
||||||
const items = [];
|
|
||||||
let obj = { segment: "" };
|
|
||||||
let num = 0;
|
|
||||||
let num2 = 0;
|
|
||||||
let flag = false;
|
|
||||||
let flag2 = false;
|
|
||||||
let flag3 = false;
|
|
||||||
let flag4 = false;
|
|
||||||
let flag5 = false;
|
|
||||||
if (0 <= path.length) {
|
|
||||||
while (true) {
|
|
||||||
let tmp18;
|
|
||||||
let tmp19;
|
|
||||||
let tmp20;
|
|
||||||
let flag9;
|
|
||||||
let tmp21;
|
|
||||||
let tmp22;
|
|
||||||
let sum;
|
|
||||||
let flag7;
|
|
||||||
let flag8;
|
|
||||||
let obj2;
|
|
||||||
let tmp = path[num];
|
|
||||||
let flag6 = flag;
|
|
||||||
if (null != tmp) {
|
|
||||||
obj.segment = obj.segment + tmp;
|
|
||||||
}
|
|
||||||
if (":" === tmp) {
|
|
||||||
sum = num2;
|
|
||||||
flag7 = true;
|
|
||||||
flag8 = flag4;
|
|
||||||
obj2 = obj;
|
|
||||||
if (":" !== obj.segment) {
|
|
||||||
sum = num2;
|
|
||||||
flag7 = flag3;
|
|
||||||
flag8 = flag4;
|
|
||||||
obj2 = obj;
|
|
||||||
if (!flag4) {
|
|
||||||
let tmp24 = globalThis;
|
|
||||||
let _Error4 = Error;
|
|
||||||
let _HermesInternal4 = HermesInternal;
|
|
||||||
let str8 = "Encountered ':' in the middle of a segment in path: ";
|
|
||||||
let self7 = this;
|
|
||||||
let self8 = this;
|
|
||||||
let error = new Error("Encountered ':' in the middle of a segment in path: " + path);
|
|
||||||
throw error;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let tmp27 = flag6;
|
|
||||||
let tmp28 = flag2;
|
|
||||||
if (flag8) {
|
|
||||||
obj2.regex = obj2.regex || "";
|
|
||||||
obj2.regex = obj2.regex + tmp;
|
|
||||||
let tmp29 = flag6;
|
|
||||||
let flag10 = false;
|
|
||||||
if (!flag2) {
|
|
||||||
let tmp30 = flag6;
|
|
||||||
let flag11 = true;
|
|
||||||
if ("\\" !== tmp) {
|
|
||||||
let flag12 = true;
|
|
||||||
if ("[" !== tmp) {
|
|
||||||
if ("]" === tmp) {
|
|
||||||
flag6 = false;
|
|
||||||
}
|
|
||||||
flag12 = flag6;
|
|
||||||
}
|
|
||||||
tmp30 = flag12;
|
|
||||||
flag11 = flag2;
|
|
||||||
}
|
|
||||||
tmp29 = tmp30;
|
|
||||||
flag10 = flag11;
|
|
||||||
}
|
|
||||||
tmp27 = tmp29;
|
|
||||||
tmp28 = flag10;
|
|
||||||
}
|
|
||||||
let tmp31 = flag7 && !flag8;
|
|
||||||
tmp18 = sum;
|
|
||||||
tmp19 = tmp27;
|
|
||||||
tmp20 = tmp28;
|
|
||||||
flag9 = flag7;
|
|
||||||
tmp21 = flag8;
|
|
||||||
tmp22 = obj2;
|
|
||||||
if (tmp31) {
|
|
||||||
obj2.param = obj2.param || "";
|
|
||||||
obj2.param = obj2.param + tmp;
|
|
||||||
tmp18 = sum;
|
|
||||||
tmp19 = tmp27;
|
|
||||||
tmp20 = tmp28;
|
|
||||||
flag9 = flag7;
|
|
||||||
tmp21 = flag8;
|
|
||||||
tmp22 = obj2;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if ("(" === tmp) {
|
|
||||||
if (!flag2) {
|
|
||||||
if (!flag6) {
|
|
||||||
if (!flag3) {
|
|
||||||
break;
|
|
||||||
} else {
|
|
||||||
sum = num2;
|
|
||||||
flag7 = flag3;
|
|
||||||
flag8 = true;
|
|
||||||
obj2 = obj;
|
|
||||||
if (flag4) {
|
|
||||||
sum = num2 + 1;
|
|
||||||
flag7 = flag3;
|
|
||||||
flag8 = flag4;
|
|
||||||
obj2 = obj;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (")" === tmp) {
|
|
||||||
if (!flag2) {
|
|
||||||
if (!flag6) {
|
|
||||||
if (flag3) {
|
|
||||||
if (flag4) {
|
|
||||||
if (num2) {
|
|
||||||
sum = num2 - 1;
|
|
||||||
flag7 = flag3;
|
|
||||||
flag8 = flag4;
|
|
||||||
obj2 = obj;
|
|
||||||
} else {
|
|
||||||
obj.regex = obj.regex + tmp;
|
|
||||||
sum = num2;
|
|
||||||
flag7 = false;
|
|
||||||
flag8 = false;
|
|
||||||
obj2 = obj;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let tmp12 = globalThis;
|
|
||||||
let _Error2 = Error;
|
|
||||||
let _HermesInternal2 = HermesInternal;
|
|
||||||
let str2 = "Encountered ')' without preceding '(' in path: ";
|
|
||||||
let self3 = this;
|
|
||||||
let self4 = this;
|
|
||||||
let error1 = new Error("Encountered ')' without preceding '(' in path: " + path);
|
|
||||||
throw error1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ("?" === tmp) {
|
|
||||||
if (!flag4) {
|
|
||||||
if (obj.param) {
|
|
||||||
obj.optional = true;
|
|
||||||
sum = num2;
|
|
||||||
flag7 = false;
|
|
||||||
flag8 = flag4;
|
|
||||||
obj2 = obj;
|
|
||||||
} else {
|
|
||||||
let tmp15 = globalThis;
|
|
||||||
let _Error3 = Error;
|
|
||||||
let _HermesInternal3 = HermesInternal;
|
|
||||||
let str3 = "Encountered '?' without preceding ':' in path: ";
|
|
||||||
let self5 = this;
|
|
||||||
let self6 = this;
|
|
||||||
let error2 = new Error("Encountered '?' without preceding ':' in path: " + path);
|
|
||||||
throw error2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (null == tmp) {
|
|
||||||
let str4 = obj.segment;
|
|
||||||
obj.segment = str4.replace(/\/$/, "");
|
|
||||||
tmp18 = num2;
|
|
||||||
tmp19 = flag6;
|
|
||||||
tmp20 = flag2;
|
|
||||||
flag9 = false;
|
|
||||||
tmp21 = flag4;
|
|
||||||
tmp22 = obj;
|
|
||||||
if ("" !== obj.segment) {
|
|
||||||
if (obj.param) {
|
|
||||||
let str5 = obj.param;
|
|
||||||
obj.param = str5.replace(/^:/, "");
|
|
||||||
}
|
|
||||||
if (obj.regex) {
|
|
||||||
let str6 = obj.regex;
|
|
||||||
let str7 = str6.replace(/^\(/, "");
|
|
||||||
obj.regex = str7.replace(/\)$/, "");
|
|
||||||
}
|
|
||||||
let arr = items.push(obj);
|
|
||||||
flag5 = flag4;
|
|
||||||
if (null != tmp) {
|
|
||||||
obj2 = { segment: "" };
|
|
||||||
sum = num2;
|
|
||||||
flag7 = false;
|
|
||||||
flag8 = flag4;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
sum = num2;
|
|
||||||
flag7 = flag3;
|
|
||||||
flag8 = flag4;
|
|
||||||
obj2 = obj;
|
|
||||||
if ("/" === tmp) {
|
|
||||||
sum = num2;
|
|
||||||
flag7 = flag3;
|
|
||||||
flag8 = flag4;
|
|
||||||
obj2 = obj;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
num = num + 1;
|
|
||||||
num2 = tmp18;
|
|
||||||
flag = tmp19;
|
|
||||||
flag2 = tmp20;
|
|
||||||
flag3 = flag9;
|
|
||||||
flag4 = tmp21;
|
|
||||||
obj = tmp22;
|
|
||||||
flag5 = tmp21;
|
|
||||||
}
|
|
||||||
const _Error = Error;
|
|
||||||
const _HermesInternal = HermesInternal;
|
|
||||||
const self = this;
|
|
||||||
const self2 = this;
|
|
||||||
const error3 = new Error("Encountered '(' without preceding ':' in path: " + path);
|
|
||||||
throw error3;
|
|
||||||
}
|
|
||||||
if (flag5) {
|
|
||||||
const _Error6 = Error;
|
|
||||||
const _HermesInternal6 = HermesInternal;
|
|
||||||
const self11 = this;
|
|
||||||
const self12 = this;
|
|
||||||
const error4 = new Error("Could not find closing ')' in path: " + path);
|
|
||||||
throw error4;
|
|
||||||
} else {
|
|
||||||
const mapped = items.map((param) => param.param);
|
|
||||||
const _Boolean = Boolean;
|
|
||||||
const found = mapped.filter(Boolean);
|
|
||||||
const entries = found.entries();
|
|
||||||
const tmp35 = entries[Symbol.iterator]();
|
|
||||||
while (tmp35 !== undefined) {
|
|
||||||
let tmp40 = _slicedToArray(tmp37, 2);
|
|
||||||
[tmp41, tmp42] = tmp40;
|
|
||||||
let tmp43 = tmp42;
|
|
||||||
if (found.indexOf(tmp42) !== tmp41) {
|
|
||||||
let _Error5 = Error;
|
|
||||||
let _HermesInternal5 = HermesInternal;
|
|
||||||
let str9 = "' found in path: ";
|
|
||||||
let str10 = "Duplicate param name '";
|
|
||||||
let self9 = this;
|
|
||||||
let self10 = this;
|
|
||||||
let error5 = new Error("Duplicate param name '" + tmp43 + "' found in path: " + path);
|
|
||||||
throw error5;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return items;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
263
alpha/source/__helpers/01xxx/1564__slicedToArray.js
Normal file
263
alpha/source/__helpers/01xxx/1564__slicedToArray.js
Normal file
|
|
@ -0,0 +1,263 @@
|
||||||
|
// Module ID: 1564
|
||||||
|
// Function ID: 1565
|
||||||
|
// Name: _slicedToArray
|
||||||
|
// Dependencies: [32]
|
||||||
|
// Exports: getPatternParts
|
||||||
|
|
||||||
|
// Module 1564 (_slicedToArray)
|
||||||
|
import _slicedToArray from "_slicedToArray" /* 32 */;
|
||||||
|
|
||||||
|
|
||||||
|
export const getPatternParts = function getPatternParts(path) {
|
||||||
|
let tmp41;
|
||||||
|
let tmp42;
|
||||||
|
const items = [];
|
||||||
|
let obj = { segment: "" };
|
||||||
|
let num = 0;
|
||||||
|
let num2 = 0;
|
||||||
|
let flag = false;
|
||||||
|
let flag2 = false;
|
||||||
|
let flag3 = false;
|
||||||
|
let flag4 = false;
|
||||||
|
let flag5 = false;
|
||||||
|
if (0 <= path.length) {
|
||||||
|
while (true) {
|
||||||
|
let tmp18;
|
||||||
|
let tmp19;
|
||||||
|
let tmp20;
|
||||||
|
let flag9;
|
||||||
|
let tmp21;
|
||||||
|
let tmp22;
|
||||||
|
let sum;
|
||||||
|
let flag7;
|
||||||
|
let flag8;
|
||||||
|
let obj2;
|
||||||
|
let tmp = path[num];
|
||||||
|
let flag6 = flag;
|
||||||
|
if (null != tmp) {
|
||||||
|
obj.segment = obj.segment + tmp;
|
||||||
|
}
|
||||||
|
if (":" === tmp) {
|
||||||
|
sum = num2;
|
||||||
|
flag7 = true;
|
||||||
|
flag8 = flag4;
|
||||||
|
obj2 = obj;
|
||||||
|
if (":" !== obj.segment) {
|
||||||
|
sum = num2;
|
||||||
|
flag7 = flag3;
|
||||||
|
flag8 = flag4;
|
||||||
|
obj2 = obj;
|
||||||
|
if (!flag4) {
|
||||||
|
let tmp24 = globalThis;
|
||||||
|
let _Error4 = Error;
|
||||||
|
let _HermesInternal4 = HermesInternal;
|
||||||
|
let str8 = "Encountered ':' in the middle of a segment in path: ";
|
||||||
|
let self7 = this;
|
||||||
|
let self8 = this;
|
||||||
|
let error = new Error("Encountered ':' in the middle of a segment in path: " + path);
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let tmp27 = flag6;
|
||||||
|
let tmp28 = flag2;
|
||||||
|
if (flag8) {
|
||||||
|
obj2.regex = obj2.regex || "";
|
||||||
|
obj2.regex = obj2.regex + tmp;
|
||||||
|
let tmp29 = flag6;
|
||||||
|
let flag10 = false;
|
||||||
|
if (!flag2) {
|
||||||
|
let tmp30 = flag6;
|
||||||
|
let flag11 = true;
|
||||||
|
if ("\\" !== tmp) {
|
||||||
|
let flag12 = true;
|
||||||
|
if ("[" !== tmp) {
|
||||||
|
if ("]" === tmp) {
|
||||||
|
flag6 = false;
|
||||||
|
}
|
||||||
|
flag12 = flag6;
|
||||||
|
}
|
||||||
|
tmp30 = flag12;
|
||||||
|
flag11 = flag2;
|
||||||
|
}
|
||||||
|
tmp29 = tmp30;
|
||||||
|
flag10 = flag11;
|
||||||
|
}
|
||||||
|
tmp27 = tmp29;
|
||||||
|
tmp28 = flag10;
|
||||||
|
}
|
||||||
|
let tmp31 = flag7 && !flag8;
|
||||||
|
tmp18 = sum;
|
||||||
|
tmp19 = tmp27;
|
||||||
|
tmp20 = tmp28;
|
||||||
|
flag9 = flag7;
|
||||||
|
tmp21 = flag8;
|
||||||
|
tmp22 = obj2;
|
||||||
|
if (tmp31) {
|
||||||
|
obj2.param = obj2.param || "";
|
||||||
|
obj2.param = obj2.param + tmp;
|
||||||
|
tmp18 = sum;
|
||||||
|
tmp19 = tmp27;
|
||||||
|
tmp20 = tmp28;
|
||||||
|
flag9 = flag7;
|
||||||
|
tmp21 = flag8;
|
||||||
|
tmp22 = obj2;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if ("(" === tmp) {
|
||||||
|
if (!flag2) {
|
||||||
|
if (!flag6) {
|
||||||
|
if (!flag3) {
|
||||||
|
break;
|
||||||
|
} else {
|
||||||
|
sum = num2;
|
||||||
|
flag7 = flag3;
|
||||||
|
flag8 = true;
|
||||||
|
obj2 = obj;
|
||||||
|
if (flag4) {
|
||||||
|
sum = num2 + 1;
|
||||||
|
flag7 = flag3;
|
||||||
|
flag8 = flag4;
|
||||||
|
obj2 = obj;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (")" === tmp) {
|
||||||
|
if (!flag2) {
|
||||||
|
if (!flag6) {
|
||||||
|
if (flag3) {
|
||||||
|
if (flag4) {
|
||||||
|
if (num2) {
|
||||||
|
sum = num2 - 1;
|
||||||
|
flag7 = flag3;
|
||||||
|
flag8 = flag4;
|
||||||
|
obj2 = obj;
|
||||||
|
} else {
|
||||||
|
obj.regex = obj.regex + tmp;
|
||||||
|
sum = num2;
|
||||||
|
flag7 = false;
|
||||||
|
flag8 = false;
|
||||||
|
obj2 = obj;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let tmp12 = globalThis;
|
||||||
|
let _Error2 = Error;
|
||||||
|
let _HermesInternal2 = HermesInternal;
|
||||||
|
let str2 = "Encountered ')' without preceding '(' in path: ";
|
||||||
|
let self3 = this;
|
||||||
|
let self4 = this;
|
||||||
|
let error1 = new Error("Encountered ')' without preceding '(' in path: " + path);
|
||||||
|
throw error1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ("?" === tmp) {
|
||||||
|
if (!flag4) {
|
||||||
|
if (obj.param) {
|
||||||
|
obj.optional = true;
|
||||||
|
sum = num2;
|
||||||
|
flag7 = false;
|
||||||
|
flag8 = flag4;
|
||||||
|
obj2 = obj;
|
||||||
|
} else {
|
||||||
|
let tmp15 = globalThis;
|
||||||
|
let _Error3 = Error;
|
||||||
|
let _HermesInternal3 = HermesInternal;
|
||||||
|
let str3 = "Encountered '?' without preceding ':' in path: ";
|
||||||
|
let self5 = this;
|
||||||
|
let self6 = this;
|
||||||
|
let error2 = new Error("Encountered '?' without preceding ':' in path: " + path);
|
||||||
|
throw error2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (null == tmp) {
|
||||||
|
let str4 = obj.segment;
|
||||||
|
obj.segment = str4.replace(/\/$/, "");
|
||||||
|
tmp18 = num2;
|
||||||
|
tmp19 = flag6;
|
||||||
|
tmp20 = flag2;
|
||||||
|
flag9 = false;
|
||||||
|
tmp21 = flag4;
|
||||||
|
tmp22 = obj;
|
||||||
|
if ("" !== obj.segment) {
|
||||||
|
if (obj.param) {
|
||||||
|
let str5 = obj.param;
|
||||||
|
obj.param = str5.replace(/^:/, "");
|
||||||
|
}
|
||||||
|
if (obj.regex) {
|
||||||
|
let str6 = obj.regex;
|
||||||
|
let str7 = str6.replace(/^\(/, "");
|
||||||
|
obj.regex = str7.replace(/\)$/, "");
|
||||||
|
}
|
||||||
|
let arr = items.push(obj);
|
||||||
|
flag5 = flag4;
|
||||||
|
if (null != tmp) {
|
||||||
|
obj2 = { segment: "" };
|
||||||
|
sum = num2;
|
||||||
|
flag7 = false;
|
||||||
|
flag8 = flag4;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
sum = num2;
|
||||||
|
flag7 = flag3;
|
||||||
|
flag8 = flag4;
|
||||||
|
obj2 = obj;
|
||||||
|
if ("/" === tmp) {
|
||||||
|
sum = num2;
|
||||||
|
flag7 = flag3;
|
||||||
|
flag8 = flag4;
|
||||||
|
obj2 = obj;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
num = num + 1;
|
||||||
|
num2 = tmp18;
|
||||||
|
flag = tmp19;
|
||||||
|
flag2 = tmp20;
|
||||||
|
flag3 = flag9;
|
||||||
|
flag4 = tmp21;
|
||||||
|
obj = tmp22;
|
||||||
|
flag5 = tmp21;
|
||||||
|
}
|
||||||
|
const _Error = Error;
|
||||||
|
const _HermesInternal = HermesInternal;
|
||||||
|
const self = this;
|
||||||
|
const self2 = this;
|
||||||
|
const error3 = new Error("Encountered '(' without preceding ':' in path: " + path);
|
||||||
|
throw error3;
|
||||||
|
}
|
||||||
|
if (flag5) {
|
||||||
|
const _Error6 = Error;
|
||||||
|
const _HermesInternal6 = HermesInternal;
|
||||||
|
const self11 = this;
|
||||||
|
const self12 = this;
|
||||||
|
const error4 = new Error("Could not find closing ')' in path: " + path);
|
||||||
|
throw error4;
|
||||||
|
} else {
|
||||||
|
const mapped = items.map((param) => param.param);
|
||||||
|
const _Boolean = Boolean;
|
||||||
|
const found = mapped.filter(Boolean);
|
||||||
|
const entries = found.entries();
|
||||||
|
const tmp35 = entries[Symbol.iterator]();
|
||||||
|
while (tmp35 !== undefined) {
|
||||||
|
let tmp40 = _slicedToArray(tmp37, 2);
|
||||||
|
[tmp41, tmp42] = tmp40;
|
||||||
|
let tmp43 = tmp42;
|
||||||
|
if (found.indexOf(tmp42) !== tmp41) {
|
||||||
|
let _Error5 = Error;
|
||||||
|
let _HermesInternal5 = HermesInternal;
|
||||||
|
let str9 = "' found in path: ";
|
||||||
|
let str10 = "Duplicate param name '";
|
||||||
|
let self9 = this;
|
||||||
|
let self10 = this;
|
||||||
|
let error5 = new Error("Duplicate param name '" + tmp43 + "' found in path: " + path);
|
||||||
|
throw error5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return items;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
@ -1,87 +0,0 @@
|
||||||
// Module ID: 1611
|
|
||||||
// Function ID: 1612
|
|
||||||
// Name: _toArray
|
|
||||||
// Dependencies: [729, 1565]
|
|
||||||
// Exports: extractPathFromURL
|
|
||||||
|
|
||||||
// Module 1611 (_toArray)
|
|
||||||
import _modDef1565 from "module_1565" /* 1565 */;
|
|
||||||
import _toArray from "_toArray" /* 729 */;
|
|
||||||
|
|
||||||
|
|
||||||
export const extractPathFromURL = function extractPathFromURL(current, AUTO_DISMISS) {
|
|
||||||
const iter = current[Symbol.iterator]();
|
|
||||||
let str = iter.next();
|
|
||||||
while (iter !== undefined) {
|
|
||||||
let str7;
|
|
||||||
let str2 = str;
|
|
||||||
let match = str.match(/^[^:]+:/);
|
|
||||||
let str3;
|
|
||||||
if (match != null) {
|
|
||||||
str3 = match[0];
|
|
||||||
}
|
|
||||||
if (str3 == null) {
|
|
||||||
str3 = "";
|
|
||||||
}
|
|
||||||
let _RegExp = RegExp;
|
|
||||||
let replace = str2.replace;
|
|
||||||
let _HermesInternal = HermesInternal;
|
|
||||||
let self = this;
|
|
||||||
let self2 = this;
|
|
||||||
let regExp = new RegExp("^" + _modDef1565(str3));
|
|
||||||
let str4 = replace(regExp, "");
|
|
||||||
let str5 = str4.replace(/\/+/g, "/");
|
|
||||||
let str6 = str5.replace(/^\//, "");
|
|
||||||
let _RegExp2 = RegExp;
|
|
||||||
let tmp7 = _modDef1565(str3);
|
|
||||||
let parts = str6.split(".");
|
|
||||||
let mapped = parts.map((item) => {
|
|
||||||
let str = "[^/?#]+";
|
|
||||||
if ("*" !== item) {
|
|
||||||
str = _modDef1565(item);
|
|
||||||
}
|
|
||||||
return str;
|
|
||||||
});
|
|
||||||
let joined = mapped.join("\\.");
|
|
||||||
if ("" === str6) {
|
|
||||||
str7 = "";
|
|
||||||
} else {
|
|
||||||
str7 = "(?=$|[/?#])";
|
|
||||||
}
|
|
||||||
let _HermesInternal2 = HermesInternal;
|
|
||||||
let str8 = "^";
|
|
||||||
let str9 = "(/)*";
|
|
||||||
let self3 = this;
|
|
||||||
let self4 = this;
|
|
||||||
let _RegExp21 = new _RegExp2("^" + tmp7 + "(/)*" + joined + str7);
|
|
||||||
let obj3 = _RegExp21;
|
|
||||||
let arr2 = _toArray(AUTO_DISMISS.split("?"));
|
|
||||||
let str10 = arr2[0];
|
|
||||||
let substr = arr2.slice(1);
|
|
||||||
let obj4 = substr;
|
|
||||||
let replaced = str10.replace(/\/+/g, "/");
|
|
||||||
let str11 = "";
|
|
||||||
let concat = replaced.concat;
|
|
||||||
if (substr.length) {
|
|
||||||
let _HermesInternal3 = HermesInternal;
|
|
||||||
str11 = "?" + obj4.join("?");
|
|
||||||
}
|
|
||||||
let combined = concat(str11);
|
|
||||||
let str12 = combined;
|
|
||||||
if (obj3.test(combined)) {
|
|
||||||
let replaced1 = str12.replace(_RegExp21, "");
|
|
||||||
let obj6 = replaced1;
|
|
||||||
if (!replaced1.startsWith("?")) {
|
|
||||||
let combined1;
|
|
||||||
let str13 = "#";
|
|
||||||
if (!obj6.startsWith("#")) {
|
|
||||||
combined1 = replaced1;
|
|
||||||
}
|
|
||||||
iter.return();
|
|
||||||
return combined1;
|
|
||||||
}
|
|
||||||
let _HermesInternal4 = HermesInternal;
|
|
||||||
combined1 = "/" + replaced1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
87
alpha/source/__helpers/01xxx/1612__toArray.js
Normal file
87
alpha/source/__helpers/01xxx/1612__toArray.js
Normal file
|
|
@ -0,0 +1,87 @@
|
||||||
|
// Module ID: 1612
|
||||||
|
// Function ID: 1613
|
||||||
|
// Name: _toArray
|
||||||
|
// Dependencies: [729, 1566]
|
||||||
|
// Exports: extractPathFromURL
|
||||||
|
|
||||||
|
// Module 1612 (_toArray)
|
||||||
|
import _modDef1566 from "module_1566" /* 1566 */;
|
||||||
|
import _toArray from "_toArray" /* 729 */;
|
||||||
|
|
||||||
|
|
||||||
|
export const extractPathFromURL = function extractPathFromURL(current, AUTO_DISMISS) {
|
||||||
|
const iter = current[Symbol.iterator]();
|
||||||
|
let str = iter.next();
|
||||||
|
while (iter !== undefined) {
|
||||||
|
let str7;
|
||||||
|
let str2 = str;
|
||||||
|
let match = str.match(/^[^:]+:/);
|
||||||
|
let str3;
|
||||||
|
if (match != null) {
|
||||||
|
str3 = match[0];
|
||||||
|
}
|
||||||
|
if (str3 == null) {
|
||||||
|
str3 = "";
|
||||||
|
}
|
||||||
|
let _RegExp = RegExp;
|
||||||
|
let replace = str2.replace;
|
||||||
|
let _HermesInternal = HermesInternal;
|
||||||
|
let self = this;
|
||||||
|
let self2 = this;
|
||||||
|
let regExp = new RegExp("^" + _modDef1566(str3));
|
||||||
|
let str4 = replace(regExp, "");
|
||||||
|
let str5 = str4.replace(/\/+/g, "/");
|
||||||
|
let str6 = str5.replace(/^\//, "");
|
||||||
|
let _RegExp2 = RegExp;
|
||||||
|
let tmp7 = _modDef1566(str3);
|
||||||
|
let parts = str6.split(".");
|
||||||
|
let mapped = parts.map((item) => {
|
||||||
|
let str = "[^/?#]+";
|
||||||
|
if ("*" !== item) {
|
||||||
|
str = _modDef1566(item);
|
||||||
|
}
|
||||||
|
return str;
|
||||||
|
});
|
||||||
|
let joined = mapped.join("\\.");
|
||||||
|
if ("" === str6) {
|
||||||
|
str7 = "";
|
||||||
|
} else {
|
||||||
|
str7 = "(?=$|[/?#])";
|
||||||
|
}
|
||||||
|
let _HermesInternal2 = HermesInternal;
|
||||||
|
let str8 = "^";
|
||||||
|
let str9 = "(/)*";
|
||||||
|
let self3 = this;
|
||||||
|
let self4 = this;
|
||||||
|
let _RegExp21 = new _RegExp2("^" + tmp7 + "(/)*" + joined + str7);
|
||||||
|
let obj3 = _RegExp21;
|
||||||
|
let arr2 = _toArray(AUTO_DISMISS.split("?"));
|
||||||
|
let str10 = arr2[0];
|
||||||
|
let substr = arr2.slice(1);
|
||||||
|
let obj4 = substr;
|
||||||
|
let replaced = str10.replace(/\/+/g, "/");
|
||||||
|
let str11 = "";
|
||||||
|
let concat = replaced.concat;
|
||||||
|
if (substr.length) {
|
||||||
|
let _HermesInternal3 = HermesInternal;
|
||||||
|
str11 = "?" + obj4.join("?");
|
||||||
|
}
|
||||||
|
let combined = concat(str11);
|
||||||
|
let str12 = combined;
|
||||||
|
if (obj3.test(combined)) {
|
||||||
|
let replaced1 = str12.replace(_RegExp21, "");
|
||||||
|
let obj6 = replaced1;
|
||||||
|
if (!replaced1.startsWith("?")) {
|
||||||
|
let combined1;
|
||||||
|
let str13 = "#";
|
||||||
|
if (!obj6.startsWith("#")) {
|
||||||
|
combined1 = replaced1;
|
||||||
|
}
|
||||||
|
iter.return();
|
||||||
|
return combined1;
|
||||||
|
}
|
||||||
|
let _HermesInternal4 = HermesInternal;
|
||||||
|
combined1 = "/" + replaced1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
@ -1,158 +0,0 @@
|
||||||
// Module ID: 1665
|
|
||||||
// Function ID: 1666
|
|
||||||
// Name: _updatePropsJS
|
|
||||||
// Dependencies: [32, 1666, 1667, 1659, 1668, 1669]
|
|
||||||
// Exports: _updatePropsJS
|
|
||||||
|
|
||||||
// Module 1665 (_updatePropsJS)
|
|
||||||
import ReanimatedError from "ReanimatedError" /* 1666 */;
|
|
||||||
import _mod1667 from "module_1667" /* 1667 */;
|
|
||||||
import PropsAllowlists from "PropsAllowlists" /* 1668 */;
|
|
||||||
import _mod1669 from "module_1669" /* 1669 */;
|
|
||||||
import _slicedToArray from "_slicedToArray" /* 32 */;
|
|
||||||
|
|
||||||
global._makeShareableClone = () => {
|
|
||||||
const reanimatedError = new ReanimatedError.ReanimatedError("`_makeShareableClone` should never be called from React runtime.");
|
|
||||||
throw reanimatedError;
|
|
||||||
};
|
|
||||||
global._scheduleHostFunctionOnJS = () => {
|
|
||||||
const reanimatedError = new ReanimatedError.ReanimatedError("`_scheduleOnJS` should never be called from React runtime.");
|
|
||||||
throw reanimatedError;
|
|
||||||
};
|
|
||||||
global._scheduleOnRuntime = () => {
|
|
||||||
const reanimatedError = new ReanimatedError.ReanimatedError("`_scheduleOnRuntime` should never be called from React runtime.");
|
|
||||||
throw reanimatedError;
|
|
||||||
};
|
|
||||||
function setNativeProps(arg0, arg1, arg2) {
|
|
||||||
|
|
||||||
}
|
|
||||||
function updatePropsDOM(arg0, arg1, arg2) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
export const createJSReanimatedModule = _mod1669.createJSReanimatedModule;
|
|
||||||
export const _updatePropsJS = (arg0, getAnimatableRef, arg2) => {
|
|
||||||
let closure_0 = arg0;
|
|
||||||
const tmp = getAnimatableRef;
|
|
||||||
if (tmp) {
|
|
||||||
let animatableRef = getAnimatableRef;
|
|
||||||
if (getAnimatableRef.getAnimatableRef) {
|
|
||||||
animatableRef = getAnimatableRef.getAnimatableRef();
|
|
||||||
}
|
|
||||||
const _Object = Object;
|
|
||||||
const keys = Object.keys(arg0);
|
|
||||||
const items = [{}, {}];
|
|
||||||
let num = 1;
|
|
||||||
const first = _slicedToArray(keys.reduce((acc, item) => {
|
|
||||||
let num = 0;
|
|
||||||
if (typeof closure_0[item] === "function") {
|
|
||||||
num = 1;
|
|
||||||
}
|
|
||||||
acc[num][item] = closure_0[item];
|
|
||||||
return acc;
|
|
||||||
}, items), 1)[0];
|
|
||||||
if (typeof animatableRef.setNativeProps === "function") {
|
|
||||||
if (typeof setNativeProps === "function") {
|
|
||||||
if (arg2) {
|
|
||||||
const obj = {};
|
|
||||||
for (const key10106 in first) {
|
|
||||||
if (!PropsAllowlists.PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST[key10106]) {
|
|
||||||
continue;
|
|
||||||
} else {
|
|
||||||
obj[key10106] = first[key10106];
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
setNativeProps = animatableRef.setNativeProps;
|
|
||||||
if (setNativeProps != null) {
|
|
||||||
setNativeProps(obj);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const obj2 = {};
|
|
||||||
const tmp28 = animatableRef.previousStyle || {};
|
|
||||||
const merged = Object.assign(tmp28);
|
|
||||||
const merged1 = Object.assign(first);
|
|
||||||
animatableRef.previousStyle = obj2;
|
|
||||||
const setNativeProps2 = animatableRef.setNativeProps;
|
|
||||||
if (setNativeProps2 != null) {
|
|
||||||
const obj3 = { style: obj2 };
|
|
||||||
setNativeProps2(obj3);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
throw new TypeError("Trying to call a non-function");
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (undefined !== _mod1667.createReactDOMStyle) {
|
|
||||||
if (undefined !== animatableRef.style) {
|
|
||||||
if (typeof updatePropsDOM === "function") {
|
|
||||||
const obj4 = {};
|
|
||||||
const tmp11 = animatableRef.previousStyle || {};
|
|
||||||
const merged2 = Object.assign(tmp11);
|
|
||||||
const merged3 = Object.assign(first);
|
|
||||||
animatableRef.previousStyle = obj4;
|
|
||||||
const tmp37Result = _mod1667;
|
|
||||||
const reactDOMStyle = tmp37Result.createReactDOMStyle(obj4);
|
|
||||||
const _Array = Array;
|
|
||||||
const tmp19 = Array.isArray(reactDOMStyle.transform) && undefined !== _mod1667.createTransformValue;
|
|
||||||
if (tmp19) {
|
|
||||||
const tmp37Result3 = _mod1667;
|
|
||||||
reactDOMStyle.transform = tmp37Result3.createTransformValue(reactDOMStyle.transform);
|
|
||||||
}
|
|
||||||
let tmp20 = undefined !== tmp37(1667).createTextShadowValue;
|
|
||||||
if (tmp20) {
|
|
||||||
tmp20 = reactDOMStyle.textShadowColor || reactDOMStyle.textShadowRadius || reactDOMStyle.textShadowOffset;
|
|
||||||
}
|
|
||||||
if (tmp20) {
|
|
||||||
const obj5 = { textShadowColor: null, textShadowOffset: null, textShadowRadius: null };
|
|
||||||
({ textShadowColor: obj6.textShadowColor, textShadowOffset: obj6.textShadowOffset, textShadowRadius: obj6.textShadowRadius } = reactDOMStyle);
|
|
||||||
const tmp37Result4 = _mod1667;
|
|
||||||
reactDOMStyle.textShadow = tmp37Result4.createTextShadowValue(obj5);
|
|
||||||
}
|
|
||||||
for (const key10094 in reactDOMStyle) {
|
|
||||||
if (arg2) {
|
|
||||||
if ("INPUT" === animatableRef.nodeName) {
|
|
||||||
if ("text" === key10094) {
|
|
||||||
animatableRef.value = reactDOMStyle[key10094];
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let attr = animatableRef.setAttribute(key10094, reactDOMStyle[key10094]);
|
|
||||||
continue;
|
|
||||||
} else {
|
|
||||||
animatableRef.style[key10094] = reactDOMStyle[key10094];
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
throw new TypeError("Trying to call a non-function");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const _Object2 = Object;
|
|
||||||
if (Object.keys(animatableRef.props).length > 0) {
|
|
||||||
const _Object3 = Object;
|
|
||||||
const keys1 = Object.keys(animatableRef.props);
|
|
||||||
const item = keys1.forEach((item) => {
|
|
||||||
if (first[item]) {
|
|
||||||
const _touchableNode = animatableRef._touchableNode;
|
|
||||||
const attr = _touchableNode.setAttribute(item.replace(/[A-Z]/g, (str) => "-" + str.toLowerCase()), tmp[item]);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
let str2 = "";
|
|
||||||
if ("className" in animatableRef) {
|
|
||||||
let className;
|
|
||||||
if (animatableRef != null) {
|
|
||||||
className = animatableRef.className;
|
|
||||||
}
|
|
||||||
str2 = className;
|
|
||||||
}
|
|
||||||
const logger = tmp37(1659).logger;
|
|
||||||
const _HermesInternal = HermesInternal;
|
|
||||||
logger.warn("It's not possible to manipulate the component " + str2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
158
alpha/source/__helpers/01xxx/1666__updatePropsJS.js
Normal file
158
alpha/source/__helpers/01xxx/1666__updatePropsJS.js
Normal file
|
|
@ -0,0 +1,158 @@
|
||||||
|
// Module ID: 1666
|
||||||
|
// Function ID: 1667
|
||||||
|
// Name: _updatePropsJS
|
||||||
|
// Dependencies: [32, 1667, 1668, 1660, 1669, 1670]
|
||||||
|
// Exports: _updatePropsJS
|
||||||
|
|
||||||
|
// Module 1666 (_updatePropsJS)
|
||||||
|
import ReanimatedError from "ReanimatedError" /* 1667 */;
|
||||||
|
import _mod1668 from "module_1668" /* 1668 */;
|
||||||
|
import PropsAllowlists from "PropsAllowlists" /* 1669 */;
|
||||||
|
import _mod1670 from "module_1670" /* 1670 */;
|
||||||
|
import _slicedToArray from "_slicedToArray" /* 32 */;
|
||||||
|
|
||||||
|
global._makeShareableClone = () => {
|
||||||
|
const reanimatedError = new ReanimatedError.ReanimatedError("`_makeShareableClone` should never be called from React runtime.");
|
||||||
|
throw reanimatedError;
|
||||||
|
};
|
||||||
|
global._scheduleHostFunctionOnJS = () => {
|
||||||
|
const reanimatedError = new ReanimatedError.ReanimatedError("`_scheduleOnJS` should never be called from React runtime.");
|
||||||
|
throw reanimatedError;
|
||||||
|
};
|
||||||
|
global._scheduleOnRuntime = () => {
|
||||||
|
const reanimatedError = new ReanimatedError.ReanimatedError("`_scheduleOnRuntime` should never be called from React runtime.");
|
||||||
|
throw reanimatedError;
|
||||||
|
};
|
||||||
|
function setNativeProps(arg0, arg1, arg2) {
|
||||||
|
|
||||||
|
}
|
||||||
|
function updatePropsDOM(arg0, arg1, arg2) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
export const createJSReanimatedModule = _mod1670.createJSReanimatedModule;
|
||||||
|
export const _updatePropsJS = (arg0, getAnimatableRef, arg2) => {
|
||||||
|
let closure_0 = arg0;
|
||||||
|
const tmp = getAnimatableRef;
|
||||||
|
if (tmp) {
|
||||||
|
let animatableRef = getAnimatableRef;
|
||||||
|
if (getAnimatableRef.getAnimatableRef) {
|
||||||
|
animatableRef = getAnimatableRef.getAnimatableRef();
|
||||||
|
}
|
||||||
|
const _Object = Object;
|
||||||
|
const keys = Object.keys(arg0);
|
||||||
|
const items = [{}, {}];
|
||||||
|
let num = 1;
|
||||||
|
const first = _slicedToArray(keys.reduce((acc, item) => {
|
||||||
|
let num = 0;
|
||||||
|
if (typeof closure_0[item] === "function") {
|
||||||
|
num = 1;
|
||||||
|
}
|
||||||
|
acc[num][item] = closure_0[item];
|
||||||
|
return acc;
|
||||||
|
}, items), 1)[0];
|
||||||
|
if (typeof animatableRef.setNativeProps === "function") {
|
||||||
|
if (typeof setNativeProps === "function") {
|
||||||
|
if (arg2) {
|
||||||
|
const obj = {};
|
||||||
|
for (const key10106 in first) {
|
||||||
|
if (!PropsAllowlists.PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST[key10106]) {
|
||||||
|
continue;
|
||||||
|
} else {
|
||||||
|
obj[key10106] = first[key10106];
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
setNativeProps = animatableRef.setNativeProps;
|
||||||
|
if (setNativeProps != null) {
|
||||||
|
setNativeProps(obj);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const obj2 = {};
|
||||||
|
const tmp28 = animatableRef.previousStyle || {};
|
||||||
|
const merged = Object.assign(tmp28);
|
||||||
|
const merged1 = Object.assign(first);
|
||||||
|
animatableRef.previousStyle = obj2;
|
||||||
|
const setNativeProps2 = animatableRef.setNativeProps;
|
||||||
|
if (setNativeProps2 != null) {
|
||||||
|
const obj3 = { style: obj2 };
|
||||||
|
setNativeProps2(obj3);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
throw new TypeError("Trying to call a non-function");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (undefined !== _mod1668.createReactDOMStyle) {
|
||||||
|
if (undefined !== animatableRef.style) {
|
||||||
|
if (typeof updatePropsDOM === "function") {
|
||||||
|
const obj4 = {};
|
||||||
|
const tmp11 = animatableRef.previousStyle || {};
|
||||||
|
const merged2 = Object.assign(tmp11);
|
||||||
|
const merged3 = Object.assign(first);
|
||||||
|
animatableRef.previousStyle = obj4;
|
||||||
|
const tmp37Result = _mod1668;
|
||||||
|
const reactDOMStyle = tmp37Result.createReactDOMStyle(obj4);
|
||||||
|
const _Array = Array;
|
||||||
|
const tmp19 = Array.isArray(reactDOMStyle.transform) && undefined !== _mod1668.createTransformValue;
|
||||||
|
if (tmp19) {
|
||||||
|
const tmp37Result3 = _mod1668;
|
||||||
|
reactDOMStyle.transform = tmp37Result3.createTransformValue(reactDOMStyle.transform);
|
||||||
|
}
|
||||||
|
let tmp20 = undefined !== tmp37(1668).createTextShadowValue;
|
||||||
|
if (tmp20) {
|
||||||
|
tmp20 = reactDOMStyle.textShadowColor || reactDOMStyle.textShadowRadius || reactDOMStyle.textShadowOffset;
|
||||||
|
}
|
||||||
|
if (tmp20) {
|
||||||
|
const obj5 = { textShadowColor: null, textShadowOffset: null, textShadowRadius: null };
|
||||||
|
({ textShadowColor: obj6.textShadowColor, textShadowOffset: obj6.textShadowOffset, textShadowRadius: obj6.textShadowRadius } = reactDOMStyle);
|
||||||
|
const tmp37Result4 = _mod1668;
|
||||||
|
reactDOMStyle.textShadow = tmp37Result4.createTextShadowValue(obj5);
|
||||||
|
}
|
||||||
|
for (const key10094 in reactDOMStyle) {
|
||||||
|
if (arg2) {
|
||||||
|
if ("INPUT" === animatableRef.nodeName) {
|
||||||
|
if ("text" === key10094) {
|
||||||
|
animatableRef.value = reactDOMStyle[key10094];
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let attr = animatableRef.setAttribute(key10094, reactDOMStyle[key10094]);
|
||||||
|
continue;
|
||||||
|
} else {
|
||||||
|
animatableRef.style[key10094] = reactDOMStyle[key10094];
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
throw new TypeError("Trying to call a non-function");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const _Object2 = Object;
|
||||||
|
if (Object.keys(animatableRef.props).length > 0) {
|
||||||
|
const _Object3 = Object;
|
||||||
|
const keys1 = Object.keys(animatableRef.props);
|
||||||
|
const item = keys1.forEach((item) => {
|
||||||
|
if (first[item]) {
|
||||||
|
const _touchableNode = animatableRef._touchableNode;
|
||||||
|
const attr = _touchableNode.setAttribute(item.replace(/[A-Z]/g, (str) => "-" + str.toLowerCase()), tmp[item]);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
let str2 = "";
|
||||||
|
if ("className" in animatableRef) {
|
||||||
|
let className;
|
||||||
|
if (animatableRef != null) {
|
||||||
|
className = animatableRef.className;
|
||||||
|
}
|
||||||
|
str2 = className;
|
||||||
|
}
|
||||||
|
const logger = tmp37(1660).logger;
|
||||||
|
const _HermesInternal = HermesInternal;
|
||||||
|
logger.warn("It's not possible to manipulate the component " + str2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
@ -1,94 +0,0 @@
|
||||||
// Module ID: 1713
|
|
||||||
// Function ID: 1714
|
|
||||||
// Name: _slicedToArray
|
|
||||||
// Dependencies: [32, 1714]
|
|
||||||
// Exports: convertAnimationObjectToKeyframes
|
|
||||||
|
|
||||||
// Module 1713 (_slicedToArray)
|
|
||||||
import _slicedToArray from "_slicedToArray" /* 32 */;
|
|
||||||
|
|
||||||
const require = globalThis.__r;
|
|
||||||
let _require, closure_0;
|
|
||||||
|
|
||||||
|
|
||||||
export const convertAnimationObjectToKeyframes = function convertAnimationObjectToKeyframes(BounceIn) {
|
|
||||||
let arr;
|
|
||||||
let first;
|
|
||||||
let tmp6;
|
|
||||||
let tmp8;
|
|
||||||
_require = "@keyframes " + BounceIn.name + " { ";
|
|
||||||
let entries = Object.entries(BounceIn.style);
|
|
||||||
let tmp2 = entries[Symbol.iterator]();
|
|
||||||
while (tmp2 !== undefined) {
|
|
||||||
let tmp4 = _slicedToArray;
|
|
||||||
let tmp5 = _slicedToArray(tmp3, 2);
|
|
||||||
[tmp6, tmp8] = tmp5;
|
|
||||||
let num = 0;
|
|
||||||
if ("from" !== tmp6) {
|
|
||||||
let num2 = 100;
|
|
||||||
if ("to" !== tmp7) {
|
|
||||||
num2 = tmp6;
|
|
||||||
}
|
|
||||||
num = num2;
|
|
||||||
}
|
|
||||||
let _HermesInternal = HermesInternal;
|
|
||||||
_require = _require + "" + num + "% { ";
|
|
||||||
let _Object = Object;
|
|
||||||
let entries1 = Object.entries(tmp8);
|
|
||||||
for (const item10063 of entries1) {
|
|
||||||
[first, arr] = item10063;
|
|
||||||
let tmp18 = first;
|
|
||||||
if ("easing" !== first) {
|
|
||||||
if ("originX" !== tmp18) {
|
|
||||||
if ("originY" !== tmp18) {
|
|
||||||
if ("transform" === tmp18) {
|
|
||||||
_require = _require + "transform:";
|
|
||||||
let item = arr.forEach((item) => {
|
|
||||||
const entries = Object.entries(item);
|
|
||||||
const tmp2 = entries[Symbol.iterator]();
|
|
||||||
while (tmp2 !== undefined) {
|
|
||||||
let tmp5 = _slicedToArray(tmp3, 2);
|
|
||||||
let _HermesInternal = HermesInternal;
|
|
||||||
let str = " ";
|
|
||||||
let str2 = "(";
|
|
||||||
let str3 = ")";
|
|
||||||
closure_0 = closure_0 + " " + tmp5[0] + "(" + tmp5[1] + ")";
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
_require = _require + "; ";
|
|
||||||
} else {
|
|
||||||
let _HermesInternal5 = HermesInternal;
|
|
||||||
let str3 = "";
|
|
||||||
let str4 = ": ";
|
|
||||||
let str5 = "; ";
|
|
||||||
_require = _require + "" + tmp18 + ": " + arr + "; ";
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
let _HermesInternal4 = HermesInternal;
|
|
||||||
_require = _require + "top: " + arr + "px; ";
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
let _HermesInternal3 = HermesInternal;
|
|
||||||
_require = _require + "left: " + arr + "px; ";
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
let str = "linear";
|
|
||||||
let tmp38 = _require;
|
|
||||||
if (arr in require("WebEasings").WebEasings) {
|
|
||||||
str = arr;
|
|
||||||
} else if (arr.name in tmp38(1714).WebEasings) {
|
|
||||||
str = arr.name;
|
|
||||||
}
|
|
||||||
let str2 = tmp38(1714).WebEasings[str];
|
|
||||||
let _HermesInternal2 = HermesInternal;
|
|
||||||
_require = _require + "animation-timing-function: cubic-bezier(" + str2.toString() + ");";
|
|
||||||
}
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
_require = `${closure_0}} `;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
_require = `${closure_0}} `;
|
|
||||||
return `${closure_0}} `;
|
|
||||||
};
|
|
||||||
94
alpha/source/__helpers/01xxx/1714__slicedToArray.js
Normal file
94
alpha/source/__helpers/01xxx/1714__slicedToArray.js
Normal file
|
|
@ -0,0 +1,94 @@
|
||||||
|
// Module ID: 1714
|
||||||
|
// Function ID: 1715
|
||||||
|
// Name: _slicedToArray
|
||||||
|
// Dependencies: [32, 1715]
|
||||||
|
// Exports: convertAnimationObjectToKeyframes
|
||||||
|
|
||||||
|
// Module 1714 (_slicedToArray)
|
||||||
|
import _slicedToArray from "_slicedToArray" /* 32 */;
|
||||||
|
|
||||||
|
const require = globalThis.__r;
|
||||||
|
let _require, closure_0;
|
||||||
|
|
||||||
|
|
||||||
|
export const convertAnimationObjectToKeyframes = function convertAnimationObjectToKeyframes(BounceIn) {
|
||||||
|
let arr;
|
||||||
|
let first;
|
||||||
|
let tmp6;
|
||||||
|
let tmp8;
|
||||||
|
_require = "@keyframes " + BounceIn.name + " { ";
|
||||||
|
let entries = Object.entries(BounceIn.style);
|
||||||
|
let tmp2 = entries[Symbol.iterator]();
|
||||||
|
while (tmp2 !== undefined) {
|
||||||
|
let tmp4 = _slicedToArray;
|
||||||
|
let tmp5 = _slicedToArray(tmp3, 2);
|
||||||
|
[tmp6, tmp8] = tmp5;
|
||||||
|
let num = 0;
|
||||||
|
if ("from" !== tmp6) {
|
||||||
|
let num2 = 100;
|
||||||
|
if ("to" !== tmp7) {
|
||||||
|
num2 = tmp6;
|
||||||
|
}
|
||||||
|
num = num2;
|
||||||
|
}
|
||||||
|
let _HermesInternal = HermesInternal;
|
||||||
|
_require = _require + "" + num + "% { ";
|
||||||
|
let _Object = Object;
|
||||||
|
let entries1 = Object.entries(tmp8);
|
||||||
|
for (const item10063 of entries1) {
|
||||||
|
[first, arr] = item10063;
|
||||||
|
let tmp18 = first;
|
||||||
|
if ("easing" !== first) {
|
||||||
|
if ("originX" !== tmp18) {
|
||||||
|
if ("originY" !== tmp18) {
|
||||||
|
if ("transform" === tmp18) {
|
||||||
|
_require = _require + "transform:";
|
||||||
|
let item = arr.forEach((item) => {
|
||||||
|
const entries = Object.entries(item);
|
||||||
|
const tmp2 = entries[Symbol.iterator]();
|
||||||
|
while (tmp2 !== undefined) {
|
||||||
|
let tmp5 = _slicedToArray(tmp3, 2);
|
||||||
|
let _HermesInternal = HermesInternal;
|
||||||
|
let str = " ";
|
||||||
|
let str2 = "(";
|
||||||
|
let str3 = ")";
|
||||||
|
closure_0 = closure_0 + " " + tmp5[0] + "(" + tmp5[1] + ")";
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
_require = _require + "; ";
|
||||||
|
} else {
|
||||||
|
let _HermesInternal5 = HermesInternal;
|
||||||
|
let str3 = "";
|
||||||
|
let str4 = ": ";
|
||||||
|
let str5 = "; ";
|
||||||
|
_require = _require + "" + tmp18 + ": " + arr + "; ";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
let _HermesInternal4 = HermesInternal;
|
||||||
|
_require = _require + "top: " + arr + "px; ";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
let _HermesInternal3 = HermesInternal;
|
||||||
|
_require = _require + "left: " + arr + "px; ";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
let str = "linear";
|
||||||
|
let tmp38 = _require;
|
||||||
|
if (arr in require("WebEasings").WebEasings) {
|
||||||
|
str = arr;
|
||||||
|
} else if (arr.name in tmp38(1715).WebEasings) {
|
||||||
|
str = arr.name;
|
||||||
|
}
|
||||||
|
let str2 = tmp38(1715).WebEasings[str];
|
||||||
|
let _HermesInternal2 = HermesInternal;
|
||||||
|
_require = _require + "animation-timing-function: cubic-bezier(" + str2.toString() + ");";
|
||||||
|
}
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
_require = `${closure_0}} `;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
_require = `${closure_0}} `;
|
||||||
|
return `${closure_0}} `;
|
||||||
|
};
|
||||||
|
|
@ -1,76 +0,0 @@
|
||||||
// Module ID: 1749
|
|
||||||
// Function ID: 1750
|
|
||||||
// Name: _slicedToArray
|
|
||||||
// Dependencies: [32, 1711]
|
|
||||||
// Exports: EntryExitTransition
|
|
||||||
|
|
||||||
// Module 1749 (_slicedToArray)
|
|
||||||
import TransitionType from "TransitionType" /* 1711 */;
|
|
||||||
import _slicedToArray from "_slicedToArray" /* 32 */;
|
|
||||||
|
|
||||||
let map;
|
|
||||||
|
|
||||||
function addTransformToKeepPosition(style, style2, _default, arg3) {
|
|
||||||
let tmp6;
|
|
||||||
let tmp7;
|
|
||||||
const entries = Object.entries(style2);
|
|
||||||
const tmp2 = entries[Symbol.iterator]();
|
|
||||||
while (tmp2 !== undefined) {
|
|
||||||
let bound;
|
|
||||||
let tmp5 = _slicedToArray(tmp3, 2);
|
|
||||||
[tmp6, tmp7] = tmp5;
|
|
||||||
let tmp8 = tmp7;
|
|
||||||
if (undefined !== tmp7.transform) {
|
|
||||||
let transform = tmp8.transform;
|
|
||||||
let arr = transform.unshift(_default);
|
|
||||||
} else {
|
|
||||||
let items = [_default];
|
|
||||||
tmp8.transform = items;
|
|
||||||
}
|
|
||||||
let _parseInt = parseInt;
|
|
||||||
let result = parseInt(tmp6) / 2;
|
|
||||||
if (arg3) {
|
|
||||||
let _Math = Math;
|
|
||||||
bound = Math.min(result, 49);
|
|
||||||
} else {
|
|
||||||
bound = result + 50;
|
|
||||||
}
|
|
||||||
let _HermesInternal = HermesInternal;
|
|
||||||
style["" + bound] = tmp8;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export const EntryExitTransition = function EntryExitTransition(name, translateX) {
|
|
||||||
function hideComponentBetweenAnimations(style) {
|
|
||||||
let tmp11;
|
|
||||||
map = new Map();
|
|
||||||
const tmp = map;
|
|
||||||
if (undefined === style[0].opacity) {
|
|
||||||
const result = map.set(48, 1);
|
|
||||||
const result1 = map.set(49, 0);
|
|
||||||
}
|
|
||||||
if (undefined === style[50].opacity) {
|
|
||||||
const result2 = map.set(50, 0);
|
|
||||||
const result3 = map.set(51, 1);
|
|
||||||
}
|
|
||||||
const tmp6 = tmp[Symbol.iterator]();
|
|
||||||
while (tmp6 !== undefined) {
|
|
||||||
let tmp9 = _slicedToArray(tmp7, 2);
|
|
||||||
let first = tmp9[0];
|
|
||||||
let obj = { opacity: tmp11 };
|
|
||||||
tmp11 = tmp9[1];
|
|
||||||
let merged = Object.assign(style[first]);
|
|
||||||
style[first] = obj;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let obj = { translateX: "" + translateX.translateX + "px", translateY: "" + translateX.translateY + "px", scale: "" + translateX.scaleX + "," + translateX.scaleY };
|
|
||||||
const structuredCloneResult = structuredClone(TransitionType.AnimationsData[translateX.exiting]);
|
|
||||||
const obj2 = { name, style: {}, duration: 300 };
|
|
||||||
const structuredCloneResult1 = structuredClone(TransitionType.AnimationsData[translateX.entering]);
|
|
||||||
addTransformToKeepPosition(obj2.style, structuredCloneResult.style, obj, true);
|
|
||||||
addTransformToKeepPosition(obj2.style, structuredCloneResult1.style, { translateX: "0px", translateY: "0px", scale: "1,1" }, false);
|
|
||||||
hideComponentBetweenAnimations(obj2.style);
|
|
||||||
return obj2;
|
|
||||||
};
|
|
||||||
76
alpha/source/__helpers/01xxx/1750__slicedToArray.js
Normal file
76
alpha/source/__helpers/01xxx/1750__slicedToArray.js
Normal file
|
|
@ -0,0 +1,76 @@
|
||||||
|
// Module ID: 1750
|
||||||
|
// Function ID: 1751
|
||||||
|
// Name: _slicedToArray
|
||||||
|
// Dependencies: [32, 1712]
|
||||||
|
// Exports: EntryExitTransition
|
||||||
|
|
||||||
|
// Module 1750 (_slicedToArray)
|
||||||
|
import TransitionType from "TransitionType" /* 1712 */;
|
||||||
|
import _slicedToArray from "_slicedToArray" /* 32 */;
|
||||||
|
|
||||||
|
let map;
|
||||||
|
|
||||||
|
function addTransformToKeepPosition(style, style2, _default, arg3) {
|
||||||
|
let tmp6;
|
||||||
|
let tmp7;
|
||||||
|
const entries = Object.entries(style2);
|
||||||
|
const tmp2 = entries[Symbol.iterator]();
|
||||||
|
while (tmp2 !== undefined) {
|
||||||
|
let bound;
|
||||||
|
let tmp5 = _slicedToArray(tmp3, 2);
|
||||||
|
[tmp6, tmp7] = tmp5;
|
||||||
|
let tmp8 = tmp7;
|
||||||
|
if (undefined !== tmp7.transform) {
|
||||||
|
let transform = tmp8.transform;
|
||||||
|
let arr = transform.unshift(_default);
|
||||||
|
} else {
|
||||||
|
let items = [_default];
|
||||||
|
tmp8.transform = items;
|
||||||
|
}
|
||||||
|
let _parseInt = parseInt;
|
||||||
|
let result = parseInt(tmp6) / 2;
|
||||||
|
if (arg3) {
|
||||||
|
let _Math = Math;
|
||||||
|
bound = Math.min(result, 49);
|
||||||
|
} else {
|
||||||
|
bound = result + 50;
|
||||||
|
}
|
||||||
|
let _HermesInternal = HermesInternal;
|
||||||
|
style["" + bound] = tmp8;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export const EntryExitTransition = function EntryExitTransition(name, translateX) {
|
||||||
|
function hideComponentBetweenAnimations(style) {
|
||||||
|
let tmp11;
|
||||||
|
map = new Map();
|
||||||
|
const tmp = map;
|
||||||
|
if (undefined === style[0].opacity) {
|
||||||
|
const result = map.set(48, 1);
|
||||||
|
const result1 = map.set(49, 0);
|
||||||
|
}
|
||||||
|
if (undefined === style[50].opacity) {
|
||||||
|
const result2 = map.set(50, 0);
|
||||||
|
const result3 = map.set(51, 1);
|
||||||
|
}
|
||||||
|
const tmp6 = tmp[Symbol.iterator]();
|
||||||
|
while (tmp6 !== undefined) {
|
||||||
|
let tmp9 = _slicedToArray(tmp7, 2);
|
||||||
|
let first = tmp9[0];
|
||||||
|
let obj = { opacity: tmp11 };
|
||||||
|
tmp11 = tmp9[1];
|
||||||
|
let merged = Object.assign(style[first]);
|
||||||
|
style[first] = obj;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let obj = { translateX: "" + translateX.translateX + "px", translateY: "" + translateX.translateY + "px", scale: "" + translateX.scaleX + "," + translateX.scaleY };
|
||||||
|
const structuredCloneResult = structuredClone(TransitionType.AnimationsData[translateX.exiting]);
|
||||||
|
const obj2 = { name, style: {}, duration: 300 };
|
||||||
|
const structuredCloneResult1 = structuredClone(TransitionType.AnimationsData[translateX.entering]);
|
||||||
|
addTransformToKeepPosition(obj2.style, structuredCloneResult.style, obj, true);
|
||||||
|
addTransformToKeepPosition(obj2.style, structuredCloneResult1.style, { translateX: "0px", translateY: "0px", scale: "1,1" }, false);
|
||||||
|
hideComponentBetweenAnimations(obj2.style);
|
||||||
|
return obj2;
|
||||||
|
};
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
// Module ID: 1941
|
|
||||||
// Function ID: 1942
|
|
||||||
// Name: _default2
|
|
||||||
// Dependencies: [1942, 1340]
|
|
||||||
|
|
||||||
// Module 1941 (_default2)
|
|
||||||
import _mod1942 from "module_1942" /* 1942 */;
|
|
||||||
import module_1340 from "module_1340" /* 1340 */;
|
|
||||||
|
|
||||||
global.IntlPolyfill = _mod1942.default;
|
|
||||||
if (!global.Intl) {
|
|
||||||
global.Intl = _mod1942.default;
|
|
||||||
const _default = _mod1942.default;
|
|
||||||
const result = _default.__applyLocaleSensitivePrototypes();
|
|
||||||
}
|
|
||||||
const _default2 = _mod1942.default;
|
|
||||||
_default2.default = _mod1942.default;
|
|
||||||
|
|
||||||
export default _default2;
|
|
||||||
19
alpha/source/__helpers/01xxx/1942__default2.js
Normal file
19
alpha/source/__helpers/01xxx/1942__default2.js
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
// Module ID: 1942
|
||||||
|
// Function ID: 1943
|
||||||
|
// Name: _default2
|
||||||
|
// Dependencies: [1943, 1341]
|
||||||
|
|
||||||
|
// Module 1942 (_default2)
|
||||||
|
import _mod1943 from "module_1943" /* 1943 */;
|
||||||
|
import module_1341 from "module_1341" /* 1341 */;
|
||||||
|
|
||||||
|
global.IntlPolyfill = _mod1943.default;
|
||||||
|
if (!global.Intl) {
|
||||||
|
global.Intl = _mod1943.default;
|
||||||
|
const _default = _mod1943.default;
|
||||||
|
const result = _default.__applyLocaleSensitivePrototypes();
|
||||||
|
}
|
||||||
|
const _default2 = _mod1943.default;
|
||||||
|
_default2.default = _mod1943.default;
|
||||||
|
|
||||||
|
export default _default2;
|
||||||
|
|
@ -1,43 +0,0 @@
|
||||||
// Module ID: 2000
|
|
||||||
// Function ID: 2001
|
|
||||||
// Name: _asyncToGenerator
|
|
||||||
// Dependencies: []
|
|
||||||
|
|
||||||
// Module 2000 (_asyncToGenerator)
|
|
||||||
let _self;
|
|
||||||
|
|
||||||
function asyncGeneratorStep(arg0, fn, fn2, arg3, arg4, arg5, arg6) {
|
|
||||||
try {
|
|
||||||
const iter = arg0[arg5](arg6);
|
|
||||||
const value = iter.value;
|
|
||||||
if (iter.done) {
|
|
||||||
fn(value);
|
|
||||||
} else {
|
|
||||||
const resolved = Promise.resolve(value);
|
|
||||||
resolved.then(arg3, arg4);
|
|
||||||
}
|
|
||||||
} catch (tmp12) {
|
|
||||||
fn2(tmp12);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export default function _asyncToGenerator(arg0) {
|
|
||||||
let closure_0 = arg0;
|
|
||||||
return function() {
|
|
||||||
const self = this;
|
|
||||||
let closure_1 = arguments;
|
|
||||||
const promise = new Promise((arg0, arg1) => {
|
|
||||||
_self = arg0;
|
|
||||||
closure_1 = arg1;
|
|
||||||
function _next(arg0) {
|
|
||||||
_self(applyResult, closure_0, closure_1, _next, _throw, "next", arg0);
|
|
||||||
}
|
|
||||||
function _throw(arg0) {
|
|
||||||
_self(applyResult, closure_0, closure_1, _next, _throw, "throw", arg0);
|
|
||||||
}
|
|
||||||
const applyResult = _self.apply(self, closure_1);
|
|
||||||
asyncGeneratorStep(applyResult, arg0, arg1, _next, _throw, "next", undefined);
|
|
||||||
});
|
|
||||||
return promise;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
43
alpha/source/__helpers/02xxx/2001__asyncToGenerator.js
Normal file
43
alpha/source/__helpers/02xxx/2001__asyncToGenerator.js
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
// Module ID: 2001
|
||||||
|
// Function ID: 2002
|
||||||
|
// Name: _asyncToGenerator
|
||||||
|
// Dependencies: []
|
||||||
|
|
||||||
|
// Module 2001 (_asyncToGenerator)
|
||||||
|
let _self;
|
||||||
|
|
||||||
|
function asyncGeneratorStep(arg0, fn, fn2, arg3, arg4, arg5, arg6) {
|
||||||
|
try {
|
||||||
|
const iter = arg0[arg5](arg6);
|
||||||
|
const value = iter.value;
|
||||||
|
if (iter.done) {
|
||||||
|
fn(value);
|
||||||
|
} else {
|
||||||
|
const resolved = Promise.resolve(value);
|
||||||
|
resolved.then(arg3, arg4);
|
||||||
|
}
|
||||||
|
} catch (tmp12) {
|
||||||
|
fn2(tmp12);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function _asyncToGenerator(arg0) {
|
||||||
|
let closure_0 = arg0;
|
||||||
|
return function() {
|
||||||
|
const self = this;
|
||||||
|
let closure_1 = arguments;
|
||||||
|
const promise = new Promise((arg0, arg1) => {
|
||||||
|
_self = arg0;
|
||||||
|
closure_1 = arg1;
|
||||||
|
function _next(arg0) {
|
||||||
|
_self(applyResult, closure_0, closure_1, _next, _throw, "next", arg0);
|
||||||
|
}
|
||||||
|
function _throw(arg0) {
|
||||||
|
_self(applyResult, closure_0, closure_1, _next, _throw, "throw", arg0);
|
||||||
|
}
|
||||||
|
const applyResult = _self.apply(self, closure_1);
|
||||||
|
asyncGeneratorStep(applyResult, arg0, arg1, _next, _throw, "next", undefined);
|
||||||
|
});
|
||||||
|
return promise;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
// Module ID: 4690
|
|
||||||
// Function ID: 4691
|
|
||||||
// Name: _slicedToArray
|
|
||||||
// Dependencies: [4691, 4692]
|
|
||||||
|
|
||||||
// Module 4690 (_slicedToArray)
|
|
||||||
const require = globalThis.__r;
|
|
||||||
|
|
||||||
|
|
||||||
export const shallow = require("_slicedToArray").shallow;
|
|
||||||
export const useShallow = require("react").useShallow;
|
|
||||||
|
|
@ -1,153 +0,0 @@
|
||||||
// Module ID: 4691
|
|
||||||
// Function ID: 4692
|
|
||||||
// Name: _slicedToArray
|
|
||||||
// Dependencies: [32]
|
|
||||||
// Exports: shallow
|
|
||||||
|
|
||||||
// Module 4691 (_slicedToArray)
|
|
||||||
import _slicedToArray from "_slicedToArray" /* 32 */;
|
|
||||||
|
|
||||||
let map, map1;
|
|
||||||
|
|
||||||
function isIterable(arg0) {
|
|
||||||
|
|
||||||
}
|
|
||||||
function hasIterableEntries(arg0) {
|
|
||||||
|
|
||||||
}
|
|
||||||
function compareEntries(arr, arr2) {
|
|
||||||
let tmp10;
|
|
||||||
let tmp8;
|
|
||||||
map = arr;
|
|
||||||
if (!(arr instanceof Map)) {
|
|
||||||
const _Map = Map;
|
|
||||||
const self = this;
|
|
||||||
const self2 = this;
|
|
||||||
map = new Map(arr.entries());
|
|
||||||
}
|
|
||||||
map1 = arr2;
|
|
||||||
if (!(arr2 instanceof Map)) {
|
|
||||||
const _Map2 = Map;
|
|
||||||
const self3 = this;
|
|
||||||
const self4 = this;
|
|
||||||
map1 = new Map(arr2.entries());
|
|
||||||
}
|
|
||||||
if (map.size !== map1.size) {
|
|
||||||
return false;
|
|
||||||
} else {
|
|
||||||
const obj2 = map[Symbol.iterator]();
|
|
||||||
while (obj2 !== undefined) {
|
|
||||||
let tmp7 = _slicedToArray(tmp4, 2);
|
|
||||||
[tmp8, tmp10] = tmp7;
|
|
||||||
if (map1.has(tmp8)) {
|
|
||||||
let _Object = Object;
|
|
||||||
}
|
|
||||||
obj2.return();
|
|
||||||
let flag = false;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export const shallow = function shallow(current, current2) {
|
|
||||||
let closure_0 = current;
|
|
||||||
let closure_1 = current2;
|
|
||||||
let isResult = Object.is(current, current2);
|
|
||||||
if (!isResult) {
|
|
||||||
let tmp2 = typeof current === "object";
|
|
||||||
if (typeof current === "object") {
|
|
||||||
tmp2 = null !== current;
|
|
||||||
}
|
|
||||||
if (tmp2) {
|
|
||||||
tmp2 = typeof current2 === "object";
|
|
||||||
}
|
|
||||||
if (tmp2) {
|
|
||||||
tmp2 = null !== current2;
|
|
||||||
}
|
|
||||||
if (tmp2) {
|
|
||||||
const _Object = Object;
|
|
||||||
const _Object2 = Object;
|
|
||||||
const prototypeOf = Object.getPrototypeOf(current);
|
|
||||||
let tmp5 = prototypeOf === Object.getPrototypeOf(current2);
|
|
||||||
if (tmp5) {
|
|
||||||
if (typeof isIterable === "function") {
|
|
||||||
const _Symbol = Symbol;
|
|
||||||
if (Symbol.iterator in current) {
|
|
||||||
if (typeof tmp6 === "function") {
|
|
||||||
let tmp8;
|
|
||||||
const _Symbol2 = Symbol;
|
|
||||||
if (Symbol.iterator in current2) {
|
|
||||||
if (typeof hasIterableEntries === "function") {
|
|
||||||
let flag;
|
|
||||||
if ("entries" in current) {
|
|
||||||
if (typeof tmp9 === "function") {
|
|
||||||
if ("entries" in current2) {
|
|
||||||
flag = compareEntries(current, current2);
|
|
||||||
}
|
|
||||||
tmp8 = flag;
|
|
||||||
} else {
|
|
||||||
throw new TypeError("Trying to call a non-function");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const _Symbol3 = Symbol;
|
|
||||||
const iter = current[Symbol.iterator]();
|
|
||||||
const _Symbol4 = Symbol;
|
|
||||||
const iter2 = current2[Symbol.iterator]();
|
|
||||||
const iter3 = iter.next();
|
|
||||||
const iter4 = iter2.next();
|
|
||||||
let iter5 = iter4;
|
|
||||||
let iter6 = iter3;
|
|
||||||
if (!iter3.done) {
|
|
||||||
let iter7 = iter4;
|
|
||||||
let iter8 = iter3;
|
|
||||||
iter5 = iter4;
|
|
||||||
iter6 = iter3;
|
|
||||||
if (!iter4.done) {
|
|
||||||
const _Object3 = Object;
|
|
||||||
flag = false;
|
|
||||||
while (Object.is(iter8.value, iter7.value)) {
|
|
||||||
let iter9 = iter.next();
|
|
||||||
let iter10 = iter2.next();
|
|
||||||
iter5 = iter10;
|
|
||||||
iter6 = iter9;
|
|
||||||
if (!iter9.done) {
|
|
||||||
iter7 = iter10;
|
|
||||||
iter8 = iter9;
|
|
||||||
iter5 = iter10;
|
|
||||||
iter6 = iter9;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
flag = iter6.done && iter5.done;
|
|
||||||
} else {
|
|
||||||
throw new TypeError("Trying to call a non-function");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tmp5 = tmp8;
|
|
||||||
} else {
|
|
||||||
throw new TypeError("Trying to call a non-function");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const obj = {
|
|
||||||
entries() {
|
|
||||||
return Object.entries(closure_0);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
const obj2 = {
|
|
||||||
entries() {
|
|
||||||
return Object.entries(closure_1);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
tmp8 = compareEntries(obj, obj2);
|
|
||||||
} else {
|
|
||||||
throw new TypeError("Trying to call a non-function");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tmp2 = tmp5;
|
|
||||||
}
|
|
||||||
isResult = tmp2;
|
|
||||||
}
|
|
||||||
return isResult;
|
|
||||||
};
|
|
||||||
11
alpha/source/__helpers/04xxx/4692__slicedToArray.js
Normal file
11
alpha/source/__helpers/04xxx/4692__slicedToArray.js
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
// Module ID: 4692
|
||||||
|
// Function ID: 4693
|
||||||
|
// Name: _slicedToArray
|
||||||
|
// Dependencies: [4693, 4694]
|
||||||
|
|
||||||
|
// Module 4692 (_slicedToArray)
|
||||||
|
const require = globalThis.__r;
|
||||||
|
|
||||||
|
|
||||||
|
export const shallow = require("_slicedToArray").shallow;
|
||||||
|
export const useShallow = require("react").useShallow;
|
||||||
153
alpha/source/__helpers/04xxx/4693__slicedToArray.js
Normal file
153
alpha/source/__helpers/04xxx/4693__slicedToArray.js
Normal file
|
|
@ -0,0 +1,153 @@
|
||||||
|
// Module ID: 4693
|
||||||
|
// Function ID: 4694
|
||||||
|
// Name: _slicedToArray
|
||||||
|
// Dependencies: [32]
|
||||||
|
// Exports: shallow
|
||||||
|
|
||||||
|
// Module 4693 (_slicedToArray)
|
||||||
|
import _slicedToArray from "_slicedToArray" /* 32 */;
|
||||||
|
|
||||||
|
let map, map1;
|
||||||
|
|
||||||
|
function isIterable(arg0) {
|
||||||
|
|
||||||
|
}
|
||||||
|
function hasIterableEntries(arg0) {
|
||||||
|
|
||||||
|
}
|
||||||
|
function compareEntries(arr, arr2) {
|
||||||
|
let tmp10;
|
||||||
|
let tmp8;
|
||||||
|
map = arr;
|
||||||
|
if (!(arr instanceof Map)) {
|
||||||
|
const _Map = Map;
|
||||||
|
const self = this;
|
||||||
|
const self2 = this;
|
||||||
|
map = new Map(arr.entries());
|
||||||
|
}
|
||||||
|
map1 = arr2;
|
||||||
|
if (!(arr2 instanceof Map)) {
|
||||||
|
const _Map2 = Map;
|
||||||
|
const self3 = this;
|
||||||
|
const self4 = this;
|
||||||
|
map1 = new Map(arr2.entries());
|
||||||
|
}
|
||||||
|
if (map.size !== map1.size) {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
const obj2 = map[Symbol.iterator]();
|
||||||
|
while (obj2 !== undefined) {
|
||||||
|
let tmp7 = _slicedToArray(tmp4, 2);
|
||||||
|
[tmp8, tmp10] = tmp7;
|
||||||
|
if (map1.has(tmp8)) {
|
||||||
|
let _Object = Object;
|
||||||
|
}
|
||||||
|
obj2.return();
|
||||||
|
let flag = false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export const shallow = function shallow(current, current2) {
|
||||||
|
let closure_0 = current;
|
||||||
|
let closure_1 = current2;
|
||||||
|
let isResult = Object.is(current, current2);
|
||||||
|
if (!isResult) {
|
||||||
|
let tmp2 = typeof current === "object";
|
||||||
|
if (typeof current === "object") {
|
||||||
|
tmp2 = null !== current;
|
||||||
|
}
|
||||||
|
if (tmp2) {
|
||||||
|
tmp2 = typeof current2 === "object";
|
||||||
|
}
|
||||||
|
if (tmp2) {
|
||||||
|
tmp2 = null !== current2;
|
||||||
|
}
|
||||||
|
if (tmp2) {
|
||||||
|
const _Object = Object;
|
||||||
|
const _Object2 = Object;
|
||||||
|
const prototypeOf = Object.getPrototypeOf(current);
|
||||||
|
let tmp5 = prototypeOf === Object.getPrototypeOf(current2);
|
||||||
|
if (tmp5) {
|
||||||
|
if (typeof isIterable === "function") {
|
||||||
|
const _Symbol = Symbol;
|
||||||
|
if (Symbol.iterator in current) {
|
||||||
|
if (typeof tmp6 === "function") {
|
||||||
|
let tmp8;
|
||||||
|
const _Symbol2 = Symbol;
|
||||||
|
if (Symbol.iterator in current2) {
|
||||||
|
if (typeof hasIterableEntries === "function") {
|
||||||
|
let flag;
|
||||||
|
if ("entries" in current) {
|
||||||
|
if (typeof tmp9 === "function") {
|
||||||
|
if ("entries" in current2) {
|
||||||
|
flag = compareEntries(current, current2);
|
||||||
|
}
|
||||||
|
tmp8 = flag;
|
||||||
|
} else {
|
||||||
|
throw new TypeError("Trying to call a non-function");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const _Symbol3 = Symbol;
|
||||||
|
const iter = current[Symbol.iterator]();
|
||||||
|
const _Symbol4 = Symbol;
|
||||||
|
const iter2 = current2[Symbol.iterator]();
|
||||||
|
const iter3 = iter.next();
|
||||||
|
const iter4 = iter2.next();
|
||||||
|
let iter5 = iter4;
|
||||||
|
let iter6 = iter3;
|
||||||
|
if (!iter3.done) {
|
||||||
|
let iter7 = iter4;
|
||||||
|
let iter8 = iter3;
|
||||||
|
iter5 = iter4;
|
||||||
|
iter6 = iter3;
|
||||||
|
if (!iter4.done) {
|
||||||
|
const _Object3 = Object;
|
||||||
|
flag = false;
|
||||||
|
while (Object.is(iter8.value, iter7.value)) {
|
||||||
|
let iter9 = iter.next();
|
||||||
|
let iter10 = iter2.next();
|
||||||
|
iter5 = iter10;
|
||||||
|
iter6 = iter9;
|
||||||
|
if (!iter9.done) {
|
||||||
|
iter7 = iter10;
|
||||||
|
iter8 = iter9;
|
||||||
|
iter5 = iter10;
|
||||||
|
iter6 = iter9;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
flag = iter6.done && iter5.done;
|
||||||
|
} else {
|
||||||
|
throw new TypeError("Trying to call a non-function");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tmp5 = tmp8;
|
||||||
|
} else {
|
||||||
|
throw new TypeError("Trying to call a non-function");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const obj = {
|
||||||
|
entries() {
|
||||||
|
return Object.entries(closure_0);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const obj2 = {
|
||||||
|
entries() {
|
||||||
|
return Object.entries(closure_1);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
tmp8 = compareEntries(obj, obj2);
|
||||||
|
} else {
|
||||||
|
throw new TypeError("Trying to call a non-function");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tmp2 = tmp5;
|
||||||
|
}
|
||||||
|
isResult = tmp2;
|
||||||
|
}
|
||||||
|
return isResult;
|
||||||
|
};
|
||||||
|
|
@ -1,89 +0,0 @@
|
||||||
// Module ID: 4851
|
|
||||||
// Function ID: 4852
|
|
||||||
// Name: _asyncToGenerator
|
|
||||||
// Dependencies: [5, 4807]
|
|
||||||
// Exports: RiveRuntime
|
|
||||||
|
|
||||||
// Module 4851 (_asyncToGenerator)
|
|
||||||
import _mod4807 from "module_4807" /* 4807 */;
|
|
||||||
import _asyncToGenerator from "_asyncToGenerator" /* 5 */;
|
|
||||||
|
|
||||||
let c2, c3;
|
|
||||||
|
|
||||||
const NitroModules = _mod4807.NitroModules;
|
|
||||||
let closure_1 = NitroModules.createHybridObject("RiveRuntime");
|
|
||||||
let obj = {
|
|
||||||
initialize() {
|
|
||||||
return obj(...arguments);
|
|
||||||
},
|
|
||||||
getStatus() {
|
|
||||||
let initError;
|
|
||||||
const obj = { isInitialized: closure_1.isInitialized, error: initError };
|
|
||||||
initError = closure_1.initError;
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
obj = function _initialize() {
|
|
||||||
obj = _asyncToGenerator(async function(arg0, value) {
|
|
||||||
if (c3 === 2) {
|
|
||||||
c3 = 3;
|
|
||||||
throw new TypeError("Generator functions may not be called on executing generators");
|
|
||||||
} else if (tmp2 === 3) {
|
|
||||||
if (arg0 === 1) {
|
|
||||||
throw value;
|
|
||||||
} else if (arg0 === 2) {
|
|
||||||
const obj2 = { value, done: true };
|
|
||||||
return obj2;
|
|
||||||
} else {
|
|
||||||
return { value: "IconComponent", done: null };
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
try {
|
|
||||||
c3 = 2;
|
|
||||||
if (0 === c2) {
|
|
||||||
if (arg0 === 1) {
|
|
||||||
c3 = 3;
|
|
||||||
throw value;
|
|
||||||
} else if (arg0 === 2) {
|
|
||||||
c3 = 3;
|
|
||||||
const obj3 = { value, done: true };
|
|
||||||
return obj3;
|
|
||||||
} else {
|
|
||||||
c2 = 1;
|
|
||||||
c3 = 1;
|
|
||||||
const obj4 = { value: tmp3.initialize(), done: false };
|
|
||||||
return obj4;
|
|
||||||
}
|
|
||||||
} else if (arg0 === 1) {
|
|
||||||
c3 = 3;
|
|
||||||
throw value;
|
|
||||||
} else if (arg0 === 2) {
|
|
||||||
c3 = 3;
|
|
||||||
obj = { value, done: true };
|
|
||||||
return obj;
|
|
||||||
} else if (tmp3.isInitialized) {
|
|
||||||
c3 = 3;
|
|
||||||
return { value: "IconComponent", done: null };
|
|
||||||
} else {
|
|
||||||
const initError = tmp3.initError;
|
|
||||||
let c0 = initError;
|
|
||||||
const _Error = Error;
|
|
||||||
if (initError == null) {
|
|
||||||
c0 = "Unknown error";
|
|
||||||
}
|
|
||||||
const _HermesInternal = HermesInternal;
|
|
||||||
const self = this;
|
|
||||||
const self2 = this;
|
|
||||||
const _Error1 = new _Error("Rive initialization failed: " + c0);
|
|
||||||
throw _Error1;
|
|
||||||
}
|
|
||||||
} catch (tmp12) {
|
|
||||||
c3 = 3;
|
|
||||||
throw tmp12;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return obj(...arguments);
|
|
||||||
};
|
|
||||||
|
|
||||||
export const RiveRuntime = obj;
|
|
||||||
89
alpha/source/__helpers/04xxx/4852__asyncToGenerator.js
Normal file
89
alpha/source/__helpers/04xxx/4852__asyncToGenerator.js
Normal file
|
|
@ -0,0 +1,89 @@
|
||||||
|
// Module ID: 4852
|
||||||
|
// Function ID: 4853
|
||||||
|
// Name: _asyncToGenerator
|
||||||
|
// Dependencies: [5, 4808]
|
||||||
|
// Exports: RiveRuntime
|
||||||
|
|
||||||
|
// Module 4852 (_asyncToGenerator)
|
||||||
|
import _mod4808 from "module_4808" /* 4808 */;
|
||||||
|
import _asyncToGenerator from "_asyncToGenerator" /* 5 */;
|
||||||
|
|
||||||
|
let c2, c3;
|
||||||
|
|
||||||
|
const NitroModules = _mod4808.NitroModules;
|
||||||
|
let closure_1 = NitroModules.createHybridObject("RiveRuntime");
|
||||||
|
let obj = {
|
||||||
|
initialize() {
|
||||||
|
return obj(...arguments);
|
||||||
|
},
|
||||||
|
getStatus() {
|
||||||
|
let initError;
|
||||||
|
const obj = { isInitialized: closure_1.isInitialized, error: initError };
|
||||||
|
initError = closure_1.initError;
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
obj = function _initialize() {
|
||||||
|
obj = _asyncToGenerator(async function(arg0, value) {
|
||||||
|
if (c3 === 2) {
|
||||||
|
c3 = 3;
|
||||||
|
throw new TypeError("Generator functions may not be called on executing generators");
|
||||||
|
} else if (tmp2 === 3) {
|
||||||
|
if (arg0 === 1) {
|
||||||
|
throw value;
|
||||||
|
} else if (arg0 === 2) {
|
||||||
|
const obj2 = { value, done: true };
|
||||||
|
return obj2;
|
||||||
|
} else {
|
||||||
|
return { value: "IconComponent", done: null };
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
c3 = 2;
|
||||||
|
if (0 === c2) {
|
||||||
|
if (arg0 === 1) {
|
||||||
|
c3 = 3;
|
||||||
|
throw value;
|
||||||
|
} else if (arg0 === 2) {
|
||||||
|
c3 = 3;
|
||||||
|
const obj3 = { value, done: true };
|
||||||
|
return obj3;
|
||||||
|
} else {
|
||||||
|
c2 = 1;
|
||||||
|
c3 = 1;
|
||||||
|
const obj4 = { value: tmp3.initialize(), done: false };
|
||||||
|
return obj4;
|
||||||
|
}
|
||||||
|
} else if (arg0 === 1) {
|
||||||
|
c3 = 3;
|
||||||
|
throw value;
|
||||||
|
} else if (arg0 === 2) {
|
||||||
|
c3 = 3;
|
||||||
|
obj = { value, done: true };
|
||||||
|
return obj;
|
||||||
|
} else if (tmp3.isInitialized) {
|
||||||
|
c3 = 3;
|
||||||
|
return { value: "IconComponent", done: null };
|
||||||
|
} else {
|
||||||
|
const initError = tmp3.initError;
|
||||||
|
let c0 = initError;
|
||||||
|
const _Error = Error;
|
||||||
|
if (initError == null) {
|
||||||
|
c0 = "Unknown error";
|
||||||
|
}
|
||||||
|
const _HermesInternal = HermesInternal;
|
||||||
|
const self = this;
|
||||||
|
const self2 = this;
|
||||||
|
const _Error1 = new _Error("Rive initialization failed: " + c0);
|
||||||
|
throw _Error1;
|
||||||
|
}
|
||||||
|
} catch (tmp12) {
|
||||||
|
c3 = 3;
|
||||||
|
throw tmp12;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return obj(...arguments);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const RiveRuntime = obj;
|
||||||
|
|
@ -1,58 +0,0 @@
|
||||||
// Module ID: 6256
|
|
||||||
// Function ID: 6257
|
|
||||||
// Name: _slicedToArray
|
|
||||||
// Dependencies: [32, 19]
|
|
||||||
// Exports: Lazy
|
|
||||||
|
|
||||||
// Module 6256 (_slicedToArray)
|
|
||||||
import _slicedToArray from "_slicedToArray" /* 32 */;
|
|
||||||
import react from "react" /* 19 */;
|
|
||||||
|
|
||||||
|
|
||||||
export const Lazy = function Lazy(arg0) {
|
|
||||||
let children;
|
|
||||||
let enabled;
|
|
||||||
let tmp3;
|
|
||||||
let tmp4;
|
|
||||||
let tmp7;
|
|
||||||
let visible;
|
|
||||||
({ enabled, visible, children } = arg0);
|
|
||||||
let c0;
|
|
||||||
let closure_1;
|
|
||||||
let tmp = enabled;
|
|
||||||
const useState = react.useState;
|
|
||||||
const obj = react;
|
|
||||||
if (tmp) {
|
|
||||||
tmp = visible;
|
|
||||||
}
|
|
||||||
[tmp3, tmp4] = useState(tmp);
|
|
||||||
c0 = tmp4;
|
|
||||||
_slicedToArray(useState(tmp), 2);
|
|
||||||
if (!enabled) {
|
|
||||||
enabled = visible;
|
|
||||||
}
|
|
||||||
if (!enabled) {
|
|
||||||
enabled = tmp3;
|
|
||||||
}
|
|
||||||
closure_1 = tmp5;
|
|
||||||
const items = [!enabled];
|
|
||||||
const effect = obj.useEffect(() => {
|
|
||||||
if (false !== closure_1) {
|
|
||||||
let closure_0 = requestIdleCallback(() => {
|
|
||||||
closure_0(true);
|
|
||||||
});
|
|
||||||
return () => cancelIdleCallback(closure_0);
|
|
||||||
}
|
|
||||||
}, items);
|
|
||||||
if (visible) {
|
|
||||||
if (false === tmp3) {
|
|
||||||
tmp4(true);
|
|
||||||
tmp7 = children;
|
|
||||||
}
|
|
||||||
return tmp7;
|
|
||||||
}
|
|
||||||
tmp7 = null;
|
|
||||||
if (tmp3) {
|
|
||||||
tmp7 = children;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
58
alpha/source/__helpers/06xxx/6258__slicedToArray.js
Normal file
58
alpha/source/__helpers/06xxx/6258__slicedToArray.js
Normal file
|
|
@ -0,0 +1,58 @@
|
||||||
|
// Module ID: 6258
|
||||||
|
// Function ID: 6259
|
||||||
|
// Name: _slicedToArray
|
||||||
|
// Dependencies: [32, 19]
|
||||||
|
// Exports: Lazy
|
||||||
|
|
||||||
|
// Module 6258 (_slicedToArray)
|
||||||
|
import _slicedToArray from "_slicedToArray" /* 32 */;
|
||||||
|
import react from "react" /* 19 */;
|
||||||
|
|
||||||
|
|
||||||
|
export const Lazy = function Lazy(arg0) {
|
||||||
|
let children;
|
||||||
|
let enabled;
|
||||||
|
let tmp3;
|
||||||
|
let tmp4;
|
||||||
|
let tmp7;
|
||||||
|
let visible;
|
||||||
|
({ enabled, visible, children } = arg0);
|
||||||
|
let c0;
|
||||||
|
let closure_1;
|
||||||
|
let tmp = enabled;
|
||||||
|
const useState = react.useState;
|
||||||
|
const obj = react;
|
||||||
|
if (tmp) {
|
||||||
|
tmp = visible;
|
||||||
|
}
|
||||||
|
[tmp3, tmp4] = useState(tmp);
|
||||||
|
c0 = tmp4;
|
||||||
|
_slicedToArray(useState(tmp), 2);
|
||||||
|
if (!enabled) {
|
||||||
|
enabled = visible;
|
||||||
|
}
|
||||||
|
if (!enabled) {
|
||||||
|
enabled = tmp3;
|
||||||
|
}
|
||||||
|
closure_1 = tmp5;
|
||||||
|
const items = [!enabled];
|
||||||
|
const effect = obj.useEffect(() => {
|
||||||
|
if (false !== closure_1) {
|
||||||
|
let closure_0 = requestIdleCallback(() => {
|
||||||
|
closure_0(true);
|
||||||
|
});
|
||||||
|
return () => cancelIdleCallback(closure_0);
|
||||||
|
}
|
||||||
|
}, items);
|
||||||
|
if (visible) {
|
||||||
|
if (false === tmp3) {
|
||||||
|
tmp4(true);
|
||||||
|
tmp7 = children;
|
||||||
|
}
|
||||||
|
return tmp7;
|
||||||
|
}
|
||||||
|
tmp7 = null;
|
||||||
|
if (tmp3) {
|
||||||
|
tmp7 = children;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
// Module ID: 6528
|
|
||||||
// Function ID: 6529
|
|
||||||
// Name: _slicedToArray
|
|
||||||
// Dependencies: [6529, 6530, 6531, 6533]
|
|
||||||
|
|
||||||
// Module 6528 (_slicedToArray)
|
|
||||||
import _arrayWithHoles from "_arrayWithHoles" /* 6529 */;
|
|
||||||
import _iterableToArrayLimit from "_iterableToArrayLimit" /* 6530 */;
|
|
||||||
import _unsupportedIterableToArray from "_unsupportedIterableToArray" /* 6531 */;
|
|
||||||
import _nonIterableRest from "_nonIterableRest" /* 6533 */;
|
|
||||||
|
|
||||||
|
|
||||||
export default function _slicedToArray(arg0, arg1) {
|
|
||||||
const tmp3 = _arrayWithHoles(arg0) || _iterableToArrayLimit(arg0, arg1) || _unsupportedIterableToArray(arg0, arg1) || _nonIterableRest();
|
|
||||||
return tmp3;
|
|
||||||
};
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
// Module ID: 6529
|
|
||||||
// Function ID: 6530
|
|
||||||
// Name: _arrayWithHoles
|
|
||||||
// Dependencies: []
|
|
||||||
|
|
||||||
// Module 6529 (_arrayWithHoles)
|
|
||||||
|
|
||||||
export default function _arrayWithHoles(arg0) {
|
|
||||||
if (Array.isArray(arg0)) {
|
|
||||||
return arg0;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
@ -1,148 +0,0 @@
|
||||||
// Module ID: 6530
|
|
||||||
// Function ID: 6531
|
|
||||||
// Name: _iterableToArrayLimit
|
|
||||||
// Dependencies: []
|
|
||||||
|
|
||||||
// Module 6530 (_iterableToArrayLimit)
|
|
||||||
|
|
||||||
export default function _iterableToArrayLimit(iterable, arg1) {
|
|
||||||
let tmp2 = null;
|
|
||||||
if (null != iterable) {
|
|
||||||
const _Symbol = Symbol;
|
|
||||||
let prop = typeof Symbol !== "undefined";
|
|
||||||
if (typeof Symbol !== "undefined") {
|
|
||||||
const _Symbol2 = Symbol;
|
|
||||||
prop = iterable[Symbol.iterator];
|
|
||||||
}
|
|
||||||
if (!prop) {
|
|
||||||
prop = iterable[Symbol.iterator];
|
|
||||||
}
|
|
||||||
tmp2 = prop;
|
|
||||||
}
|
|
||||||
let obj = tmp2;
|
|
||||||
if (null != tmp2) {
|
|
||||||
let flag = true;
|
|
||||||
let flag2 = false;
|
|
||||||
try {
|
|
||||||
const items = [];
|
|
||||||
try {
|
|
||||||
const iter = obj.call(iterable);
|
|
||||||
obj = iter;
|
|
||||||
const next = iter.next;
|
|
||||||
if (0 === arg1) {
|
|
||||||
const _Object = Object;
|
|
||||||
if (Object(obj) !== obj) {
|
|
||||||
try {
|
|
||||||
const tmp15 = flag;
|
|
||||||
if (!tmp15) {
|
|
||||||
if (null != obj.return) {
|
|
||||||
const returnResult = obj.return();
|
|
||||||
const _Object2 = Object;
|
|
||||||
if (Object(returnResult) !== returnResult) {
|
|
||||||
const tmp19 = flag2;
|
|
||||||
if (tmp19) {
|
|
||||||
throw tmp;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const tmp21 = flag2;
|
|
||||||
if (tmp21) {
|
|
||||||
throw tmp;
|
|
||||||
}
|
|
||||||
} catch (tmp23) {
|
|
||||||
const tmp24 = flag2;
|
|
||||||
if (tmp24) {
|
|
||||||
throw tmp;
|
|
||||||
} else {
|
|
||||||
throw tmp23;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
flag = false;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
flag = next.call(obj).done;
|
|
||||||
const iter2 = next.call(obj);
|
|
||||||
if (!flag) {
|
|
||||||
items.push(iter3.value);
|
|
||||||
if (items.length !== arg1) {
|
|
||||||
while (true) {
|
|
||||||
let iter4 = next.call(obj);
|
|
||||||
flag = iter4.done;
|
|
||||||
if (flag) {
|
|
||||||
break;
|
|
||||||
} else {
|
|
||||||
let arr3 = items.push(iter5.value);
|
|
||||||
if (items.length !== arg1) {
|
|
||||||
continue;
|
|
||||||
} else {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
const tmp26 = flag;
|
|
||||||
if (!tmp26) {
|
|
||||||
if (null != obj.return) {
|
|
||||||
const returnResult1 = obj.return();
|
|
||||||
const _Object3 = Object;
|
|
||||||
if (Object(returnResult1) !== returnResult1) {
|
|
||||||
const tmp31 = flag2;
|
|
||||||
if (tmp31) {
|
|
||||||
throw tmp;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const tmp33 = flag2;
|
|
||||||
if (tmp33) {
|
|
||||||
throw tmp;
|
|
||||||
} else {
|
|
||||||
return items;
|
|
||||||
}
|
|
||||||
} catch (tmp35) {
|
|
||||||
const tmp36 = flag2;
|
|
||||||
if (tmp36) {
|
|
||||||
throw tmp;
|
|
||||||
} else {
|
|
||||||
throw tmp35;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (tmp) {
|
|
||||||
flag2 = true;
|
|
||||||
}
|
|
||||||
} catch (tmp38) {
|
|
||||||
try {
|
|
||||||
if (!flag) {
|
|
||||||
if (null != obj.return) {
|
|
||||||
const returnResult2 = obj.return();
|
|
||||||
const _Object4 = Object;
|
|
||||||
if (Object(returnResult2) !== returnResult2) {
|
|
||||||
const tmp43 = flag2;
|
|
||||||
if (tmp43) {
|
|
||||||
throw tmp;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const tmp45 = flag2;
|
|
||||||
if (tmp45) {
|
|
||||||
throw tmp;
|
|
||||||
} else {
|
|
||||||
throw tmp38;
|
|
||||||
}
|
|
||||||
} catch (tmp47) {
|
|
||||||
if (flag2) {
|
|
||||||
throw tmp;
|
|
||||||
} else {
|
|
||||||
throw tmp47;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
||||||
// Module ID: 6531
|
|
||||||
// Function ID: 6532
|
|
||||||
// Name: _unsupportedIterableToArray
|
|
||||||
// Dependencies: [6532]
|
|
||||||
|
|
||||||
// Module 6531 (_unsupportedIterableToArray)
|
|
||||||
import _arrayLikeToArray from "_arrayLikeToArray" /* 6532 */;
|
|
||||||
|
|
||||||
|
|
||||||
export default function _unsupportedIterableToArray(str, arg1) {
|
|
||||||
const tmp = str;
|
|
||||||
if (tmp) {
|
|
||||||
if (typeof str === "string") {
|
|
||||||
return _arrayLikeToArray(str, arg1);
|
|
||||||
} else {
|
|
||||||
const toString = {}.toString;
|
|
||||||
const callResult = toString.call(str);
|
|
||||||
const substr = callResult.slice(8, -1);
|
|
||||||
let name = substr;
|
|
||||||
const tmp4 = "Object" === substr && str.constructor;
|
|
||||||
if (tmp4) {
|
|
||||||
name = str.constructor.name;
|
|
||||||
}
|
|
||||||
if ("Map" !== name) {
|
|
||||||
let arr;
|
|
||||||
if ("Set" !== name) {
|
|
||||||
if ("Arguments" === name) {
|
|
||||||
arr = _arrayLikeToArray(str, arg1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return arr;
|
|
||||||
}
|
|
||||||
const _Array = Array;
|
|
||||||
arr = Array.from(str);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
// Module ID: 6532
|
|
||||||
// Function ID: 6533
|
|
||||||
// Name: _arrayLikeToArray
|
|
||||||
// Dependencies: []
|
|
||||||
|
|
||||||
// Module 6532 (_arrayLikeToArray)
|
|
||||||
|
|
||||||
export default function _arrayLikeToArray(arg0, arg1) {
|
|
||||||
let num;
|
|
||||||
let length = arg1;
|
|
||||||
const tmp = null == arg1 || length > arg0.length;
|
|
||||||
if (tmp) {
|
|
||||||
length = arg0.length;
|
|
||||||
}
|
|
||||||
const ArrayResult = Array(length);
|
|
||||||
for (let num = 0; num < length; num = num + 1) {
|
|
||||||
ArrayResult[num] = arg0[num];
|
|
||||||
}
|
|
||||||
return ArrayResult;
|
|
||||||
};
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
// Module ID: 6533
|
|
||||||
// Function ID: 6534
|
|
||||||
// Name: _nonIterableRest
|
|
||||||
// Dependencies: []
|
|
||||||
|
|
||||||
// Module 6533 (_nonIterableRest)
|
|
||||||
|
|
||||||
export default function _nonIterableRest() {
|
|
||||||
const typeError = new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
||||||
throw typeError;
|
|
||||||
};
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
||||||
// Module ID: 6534
|
|
||||||
// Function ID: 6535
|
|
||||||
// Name: _objectWithoutProperties
|
|
||||||
// Dependencies: [6535]
|
|
||||||
|
|
||||||
// Module 6534 (_objectWithoutProperties)
|
|
||||||
import _objectWithoutPropertiesLoose from "_objectWithoutPropertiesLoose" /* 6535 */;
|
|
||||||
|
|
||||||
|
|
||||||
export default function _objectWithoutProperties(arg0, arr) {
|
|
||||||
if (null == arg0) {
|
|
||||||
return {};
|
|
||||||
} else {
|
|
||||||
const tmp7 = _objectWithoutPropertiesLoose(arg0, arr);
|
|
||||||
const _Object2 = Object;
|
|
||||||
if (Object.getOwnPropertySymbols) {
|
|
||||||
let num;
|
|
||||||
const _Object = Object;
|
|
||||||
const ownPropertySymbols = Object.getOwnPropertySymbols(arg0);
|
|
||||||
for (let num = 0; num < ownPropertySymbols.length; num = num + 1) {
|
|
||||||
let tmp = ownPropertySymbols[num];
|
|
||||||
let callResult = -1 === arr.indexOf(tmp);
|
|
||||||
if (callResult) {
|
|
||||||
let propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
||||||
callResult = propertyIsEnumerable.call(arg0, tmp);
|
|
||||||
}
|
|
||||||
if (callResult) {
|
|
||||||
tmp7[tmp] = arg0[tmp];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return tmp7;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
// Module ID: 6535
|
|
||||||
// Function ID: 6536
|
|
||||||
// Name: _objectWithoutPropertiesLoose
|
|
||||||
// Dependencies: []
|
|
||||||
|
|
||||||
// Module 6535 (_objectWithoutPropertiesLoose)
|
|
||||||
let hasOwnProperty;
|
|
||||||
|
|
||||||
|
|
||||||
export default function _objectWithoutPropertiesLoose(obj, arr) {
|
|
||||||
if (null == obj) {
|
|
||||||
return {};
|
|
||||||
} else {
|
|
||||||
obj = {};
|
|
||||||
for (const key10007 in obj) {
|
|
||||||
hasOwnProperty = {}.hasOwnProperty;
|
|
||||||
if (!hasOwnProperty.call(obj, key10007)) {
|
|
||||||
continue;
|
|
||||||
} else {
|
|
||||||
if (-1 !== arr.indexOf(key10007)) {
|
|
||||||
continue;
|
|
||||||
} else {
|
|
||||||
obj[key10007] = obj[key10007];
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
16
alpha/source/__helpers/06xxx/6535__slicedToArray.js
Normal file
16
alpha/source/__helpers/06xxx/6535__slicedToArray.js
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
// Module ID: 6535
|
||||||
|
// Function ID: 6536
|
||||||
|
// Name: _slicedToArray
|
||||||
|
// Dependencies: [6536, 6537, 6538, 6540]
|
||||||
|
|
||||||
|
// Module 6535 (_slicedToArray)
|
||||||
|
import _arrayWithHoles from "_arrayWithHoles" /* 6536 */;
|
||||||
|
import _iterableToArrayLimit from "_iterableToArrayLimit" /* 6537 */;
|
||||||
|
import _unsupportedIterableToArray from "_unsupportedIterableToArray" /* 6538 */;
|
||||||
|
import _nonIterableRest from "_nonIterableRest" /* 6540 */;
|
||||||
|
|
||||||
|
|
||||||
|
export default function _slicedToArray(arg0, arg1) {
|
||||||
|
const tmp3 = _arrayWithHoles(arg0) || _iterableToArrayLimit(arg0, arg1) || _unsupportedIterableToArray(arg0, arg1) || _nonIterableRest();
|
||||||
|
return tmp3;
|
||||||
|
};
|
||||||
12
alpha/source/__helpers/06xxx/6536__arrayWithHoles.js
Normal file
12
alpha/source/__helpers/06xxx/6536__arrayWithHoles.js
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
// Module ID: 6536
|
||||||
|
// Function ID: 6537
|
||||||
|
// Name: _arrayWithHoles
|
||||||
|
// Dependencies: []
|
||||||
|
|
||||||
|
// Module 6536 (_arrayWithHoles)
|
||||||
|
|
||||||
|
export default function _arrayWithHoles(arg0) {
|
||||||
|
if (Array.isArray(arg0)) {
|
||||||
|
return arg0;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
// Module ID: 6537
|
|
||||||
// Function ID: 6538
|
|
||||||
// Name: _classCallCheck
|
|
||||||
// Dependencies: []
|
|
||||||
|
|
||||||
// Module 6537 (_classCallCheck)
|
|
||||||
|
|
||||||
export default function _classCallCheck(arg0, arg1) {
|
|
||||||
if (!(arg0 instanceof arg1)) {
|
|
||||||
const _TypeError = TypeError;
|
|
||||||
const self = this;
|
|
||||||
const self2 = this;
|
|
||||||
const typeError = new TypeError("Cannot call a class as a function");
|
|
||||||
throw typeError;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
148
alpha/source/__helpers/06xxx/6537__iterableToArrayLimit.js
Normal file
148
alpha/source/__helpers/06xxx/6537__iterableToArrayLimit.js
Normal file
|
|
@ -0,0 +1,148 @@
|
||||||
|
// Module ID: 6537
|
||||||
|
// Function ID: 6538
|
||||||
|
// Name: _iterableToArrayLimit
|
||||||
|
// Dependencies: []
|
||||||
|
|
||||||
|
// Module 6537 (_iterableToArrayLimit)
|
||||||
|
|
||||||
|
export default function _iterableToArrayLimit(iterable, arg1) {
|
||||||
|
let tmp2 = null;
|
||||||
|
if (null != iterable) {
|
||||||
|
const _Symbol = Symbol;
|
||||||
|
let prop = typeof Symbol !== "undefined";
|
||||||
|
if (typeof Symbol !== "undefined") {
|
||||||
|
const _Symbol2 = Symbol;
|
||||||
|
prop = iterable[Symbol.iterator];
|
||||||
|
}
|
||||||
|
if (!prop) {
|
||||||
|
prop = iterable[Symbol.iterator];
|
||||||
|
}
|
||||||
|
tmp2 = prop;
|
||||||
|
}
|
||||||
|
let obj = tmp2;
|
||||||
|
if (null != tmp2) {
|
||||||
|
let flag = true;
|
||||||
|
let flag2 = false;
|
||||||
|
try {
|
||||||
|
const items = [];
|
||||||
|
try {
|
||||||
|
const iter = obj.call(iterable);
|
||||||
|
obj = iter;
|
||||||
|
const next = iter.next;
|
||||||
|
if (0 === arg1) {
|
||||||
|
const _Object = Object;
|
||||||
|
if (Object(obj) !== obj) {
|
||||||
|
try {
|
||||||
|
const tmp15 = flag;
|
||||||
|
if (!tmp15) {
|
||||||
|
if (null != obj.return) {
|
||||||
|
const returnResult = obj.return();
|
||||||
|
const _Object2 = Object;
|
||||||
|
if (Object(returnResult) !== returnResult) {
|
||||||
|
const tmp19 = flag2;
|
||||||
|
if (tmp19) {
|
||||||
|
throw tmp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const tmp21 = flag2;
|
||||||
|
if (tmp21) {
|
||||||
|
throw tmp;
|
||||||
|
}
|
||||||
|
} catch (tmp23) {
|
||||||
|
const tmp24 = flag2;
|
||||||
|
if (tmp24) {
|
||||||
|
throw tmp;
|
||||||
|
} else {
|
||||||
|
throw tmp23;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
flag = false;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
flag = next.call(obj).done;
|
||||||
|
const iter2 = next.call(obj);
|
||||||
|
if (!flag) {
|
||||||
|
items.push(iter3.value);
|
||||||
|
if (items.length !== arg1) {
|
||||||
|
while (true) {
|
||||||
|
let iter4 = next.call(obj);
|
||||||
|
flag = iter4.done;
|
||||||
|
if (flag) {
|
||||||
|
break;
|
||||||
|
} else {
|
||||||
|
let arr3 = items.push(iter5.value);
|
||||||
|
if (items.length !== arg1) {
|
||||||
|
continue;
|
||||||
|
} else {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
const tmp26 = flag;
|
||||||
|
if (!tmp26) {
|
||||||
|
if (null != obj.return) {
|
||||||
|
const returnResult1 = obj.return();
|
||||||
|
const _Object3 = Object;
|
||||||
|
if (Object(returnResult1) !== returnResult1) {
|
||||||
|
const tmp31 = flag2;
|
||||||
|
if (tmp31) {
|
||||||
|
throw tmp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const tmp33 = flag2;
|
||||||
|
if (tmp33) {
|
||||||
|
throw tmp;
|
||||||
|
} else {
|
||||||
|
return items;
|
||||||
|
}
|
||||||
|
} catch (tmp35) {
|
||||||
|
const tmp36 = flag2;
|
||||||
|
if (tmp36) {
|
||||||
|
throw tmp;
|
||||||
|
} else {
|
||||||
|
throw tmp35;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (tmp) {
|
||||||
|
flag2 = true;
|
||||||
|
}
|
||||||
|
} catch (tmp38) {
|
||||||
|
try {
|
||||||
|
if (!flag) {
|
||||||
|
if (null != obj.return) {
|
||||||
|
const returnResult2 = obj.return();
|
||||||
|
const _Object4 = Object;
|
||||||
|
if (Object(returnResult2) !== returnResult2) {
|
||||||
|
const tmp43 = flag2;
|
||||||
|
if (tmp43) {
|
||||||
|
throw tmp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const tmp45 = flag2;
|
||||||
|
if (tmp45) {
|
||||||
|
throw tmp;
|
||||||
|
} else {
|
||||||
|
throw tmp38;
|
||||||
|
}
|
||||||
|
} catch (tmp47) {
|
||||||
|
if (flag2) {
|
||||||
|
throw tmp;
|
||||||
|
} else {
|
||||||
|
throw tmp47;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
@ -1,49 +0,0 @@
|
||||||
// Module ID: 6538
|
|
||||||
// Function ID: 6539
|
|
||||||
// Name: _createClass
|
|
||||||
// Dependencies: [6539]
|
|
||||||
|
|
||||||
// Module 6538 (_createClass)
|
|
||||||
import toPropertyKey from "toPropertyKey" /* 6539 */;
|
|
||||||
|
|
||||||
|
|
||||||
export default function _createClass(arg0, arg1, arg2) {
|
|
||||||
const tmp = arg1;
|
|
||||||
if (tmp) {
|
|
||||||
let num;
|
|
||||||
for (let num = 0; num < arg1.length; num = num + 1) {
|
|
||||||
let tmp4 = arg1[num];
|
|
||||||
let flag2 = tmp4.enumerable;
|
|
||||||
if (!flag2) {
|
|
||||||
flag2 = false;
|
|
||||||
}
|
|
||||||
tmp4.enumerable = flag2;
|
|
||||||
tmp4.configurable = true;
|
|
||||||
if ("value" in tmp4) {
|
|
||||||
tmp4.writable = true;
|
|
||||||
}
|
|
||||||
let _Object = Object;
|
|
||||||
let definePropertyResult = Object.defineProperty(tmp2, toPropertyKey(tmp4.key), tmp4);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const tmp9 = arg2;
|
|
||||||
if (tmp9) {
|
|
||||||
let num3;
|
|
||||||
for (let num3 = 0; num3 < arg2.length; num3 = num3 + 1) {
|
|
||||||
let tmp11 = arg2[num3];
|
|
||||||
let flag4 = tmp11.enumerable;
|
|
||||||
if (!flag4) {
|
|
||||||
flag4 = false;
|
|
||||||
}
|
|
||||||
tmp11.enumerable = flag4;
|
|
||||||
tmp11.configurable = true;
|
|
||||||
if ("value" in tmp11) {
|
|
||||||
tmp11.writable = true;
|
|
||||||
}
|
|
||||||
let _Object2 = Object;
|
|
||||||
let definePropertyResult1 = Object.defineProperty(arg0, toPropertyKey(tmp11.key), tmp11);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Object.defineProperty(arg0, "prototype", { writable: false });
|
|
||||||
return arg0;
|
|
||||||
};
|
|
||||||
|
|
@ -0,0 +1,37 @@
|
||||||
|
// Module ID: 6538
|
||||||
|
// Function ID: 6539
|
||||||
|
// Name: _unsupportedIterableToArray
|
||||||
|
// Dependencies: [6539]
|
||||||
|
|
||||||
|
// Module 6538 (_unsupportedIterableToArray)
|
||||||
|
import _arrayLikeToArray from "_arrayLikeToArray" /* 6539 */;
|
||||||
|
|
||||||
|
|
||||||
|
export default function _unsupportedIterableToArray(str, arg1) {
|
||||||
|
const tmp = str;
|
||||||
|
if (tmp) {
|
||||||
|
if (typeof str === "string") {
|
||||||
|
return _arrayLikeToArray(str, arg1);
|
||||||
|
} else {
|
||||||
|
const toString = {}.toString;
|
||||||
|
const callResult = toString.call(str);
|
||||||
|
const substr = callResult.slice(8, -1);
|
||||||
|
let name = substr;
|
||||||
|
const tmp4 = "Object" === substr && str.constructor;
|
||||||
|
if (tmp4) {
|
||||||
|
name = str.constructor.name;
|
||||||
|
}
|
||||||
|
if ("Map" !== name) {
|
||||||
|
let arr;
|
||||||
|
if ("Set" !== name) {
|
||||||
|
if ("Arguments" === name) {
|
||||||
|
arr = _arrayLikeToArray(str, arg1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return arr;
|
||||||
|
}
|
||||||
|
const _Array = Array;
|
||||||
|
arr = Array.from(str);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
20
alpha/source/__helpers/06xxx/6539__arrayLikeToArray.js
Normal file
20
alpha/source/__helpers/06xxx/6539__arrayLikeToArray.js
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
// Module ID: 6539
|
||||||
|
// Function ID: 6540
|
||||||
|
// Name: _arrayLikeToArray
|
||||||
|
// Dependencies: []
|
||||||
|
|
||||||
|
// Module 6539 (_arrayLikeToArray)
|
||||||
|
|
||||||
|
export default function _arrayLikeToArray(arg0, arg1) {
|
||||||
|
let num;
|
||||||
|
let length = arg1;
|
||||||
|
const tmp = null == arg1 || length > arg0.length;
|
||||||
|
if (tmp) {
|
||||||
|
length = arg0.length;
|
||||||
|
}
|
||||||
|
const ArrayResult = Array(length);
|
||||||
|
for (let num = 0; num < length; num = num + 1) {
|
||||||
|
ArrayResult[num] = arg0[num];
|
||||||
|
}
|
||||||
|
return ArrayResult;
|
||||||
|
};
|
||||||
11
alpha/source/__helpers/06xxx/6540__nonIterableRest.js
Normal file
11
alpha/source/__helpers/06xxx/6540__nonIterableRest.js
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
// Module ID: 6540
|
||||||
|
// Function ID: 6541
|
||||||
|
// Name: _nonIterableRest
|
||||||
|
// Dependencies: []
|
||||||
|
|
||||||
|
// Module 6540 (_nonIterableRest)
|
||||||
|
|
||||||
|
export default function _nonIterableRest() {
|
||||||
|
const typeError = new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||||
|
throw typeError;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
// Module ID: 6541
|
||||||
|
// Function ID: 6542
|
||||||
|
// Name: _objectWithoutProperties
|
||||||
|
// Dependencies: [6542]
|
||||||
|
|
||||||
|
// Module 6541 (_objectWithoutProperties)
|
||||||
|
import _objectWithoutPropertiesLoose from "_objectWithoutPropertiesLoose" /* 6542 */;
|
||||||
|
|
||||||
|
|
||||||
|
export default function _objectWithoutProperties(arg0, arr) {
|
||||||
|
if (null == arg0) {
|
||||||
|
return {};
|
||||||
|
} else {
|
||||||
|
const tmp7 = _objectWithoutPropertiesLoose(arg0, arr);
|
||||||
|
const _Object2 = Object;
|
||||||
|
if (Object.getOwnPropertySymbols) {
|
||||||
|
let num;
|
||||||
|
const _Object = Object;
|
||||||
|
const ownPropertySymbols = Object.getOwnPropertySymbols(arg0);
|
||||||
|
for (let num = 0; num < ownPropertySymbols.length; num = num + 1) {
|
||||||
|
let tmp = ownPropertySymbols[num];
|
||||||
|
let callResult = -1 === arr.indexOf(tmp);
|
||||||
|
if (callResult) {
|
||||||
|
let propertyIsEnumerable = {}.propertyIsEnumerable;
|
||||||
|
callResult = propertyIsEnumerable.call(arg0, tmp);
|
||||||
|
}
|
||||||
|
if (callResult) {
|
||||||
|
tmp7[tmp] = arg0[tmp];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return tmp7;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
@ -1,36 +0,0 @@
|
||||||
// Module ID: 6541
|
|
||||||
// Function ID: 6542
|
|
||||||
// Name: _typeof
|
|
||||||
// Dependencies: []
|
|
||||||
|
|
||||||
// Module 6541 (_typeof)
|
|
||||||
function _typeof(arg0) {
|
|
||||||
let tmp = module;
|
|
||||||
if (typeof Symbol === "function") {
|
|
||||||
let _Symbol = Symbol;
|
|
||||||
if (typeof Symbol.iterator === "symbol") {
|
|
||||||
exports = (arg0) => typeof arg0;
|
|
||||||
}
|
|
||||||
tmp.exports = exports;
|
|
||||||
return exports(arg0);
|
|
||||||
}
|
|
||||||
exports = (arg0) => {
|
|
||||||
const tmp = arg0;
|
|
||||||
if (tmp) {
|
|
||||||
const _Symbol = Symbol;
|
|
||||||
if (typeof Symbol === "function") {
|
|
||||||
let str;
|
|
||||||
const _Symbol3 = Symbol;
|
|
||||||
if (arg0.constructor === Symbol) {
|
|
||||||
const _Symbol2 = Symbol;
|
|
||||||
str = "symbol";
|
|
||||||
}
|
|
||||||
return str;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
str = typeof arg0;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
exports = _typeof;
|
|
||||||
|
|
||||||
export default _typeof;
|
|
||||||
|
|
@ -0,0 +1,32 @@
|
||||||
|
// Module ID: 6542
|
||||||
|
// Function ID: 6543
|
||||||
|
// Name: _objectWithoutPropertiesLoose
|
||||||
|
// Dependencies: []
|
||||||
|
|
||||||
|
// Module 6542 (_objectWithoutPropertiesLoose)
|
||||||
|
let hasOwnProperty;
|
||||||
|
|
||||||
|
|
||||||
|
export default function _objectWithoutPropertiesLoose(obj, arr) {
|
||||||
|
if (null == obj) {
|
||||||
|
return {};
|
||||||
|
} else {
|
||||||
|
obj = {};
|
||||||
|
for (const key10007 in obj) {
|
||||||
|
hasOwnProperty = {}.hasOwnProperty;
|
||||||
|
if (!hasOwnProperty.call(obj, key10007)) {
|
||||||
|
continue;
|
||||||
|
} else {
|
||||||
|
if (-1 !== arr.indexOf(key10007)) {
|
||||||
|
continue;
|
||||||
|
} else {
|
||||||
|
obj[key10007] = obj[key10007];
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
};
|
||||||
16
alpha/source/__helpers/06xxx/6544__classCallCheck.js
Normal file
16
alpha/source/__helpers/06xxx/6544__classCallCheck.js
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
// Module ID: 6544
|
||||||
|
// Function ID: 6545
|
||||||
|
// Name: _classCallCheck
|
||||||
|
// Dependencies: []
|
||||||
|
|
||||||
|
// Module 6544 (_classCallCheck)
|
||||||
|
|
||||||
|
export default function _classCallCheck(arg0, arg1) {
|
||||||
|
if (!(arg0 instanceof arg1)) {
|
||||||
|
const _TypeError = TypeError;
|
||||||
|
const self = this;
|
||||||
|
const self2 = this;
|
||||||
|
const typeError = new TypeError("Cannot call a class as a function");
|
||||||
|
throw typeError;
|
||||||
|
}
|
||||||
|
};
|
||||||
49
alpha/source/__helpers/06xxx/6545__createClass.js
Normal file
49
alpha/source/__helpers/06xxx/6545__createClass.js
Normal file
|
|
@ -0,0 +1,49 @@
|
||||||
|
// Module ID: 6545
|
||||||
|
// Function ID: 6546
|
||||||
|
// Name: _createClass
|
||||||
|
// Dependencies: [6546]
|
||||||
|
|
||||||
|
// Module 6545 (_createClass)
|
||||||
|
import toPropertyKey from "toPropertyKey" /* 6546 */;
|
||||||
|
|
||||||
|
|
||||||
|
export default function _createClass(arg0, arg1, arg2) {
|
||||||
|
const tmp = arg1;
|
||||||
|
if (tmp) {
|
||||||
|
let num;
|
||||||
|
for (let num = 0; num < arg1.length; num = num + 1) {
|
||||||
|
let tmp4 = arg1[num];
|
||||||
|
let flag2 = tmp4.enumerable;
|
||||||
|
if (!flag2) {
|
||||||
|
flag2 = false;
|
||||||
|
}
|
||||||
|
tmp4.enumerable = flag2;
|
||||||
|
tmp4.configurable = true;
|
||||||
|
if ("value" in tmp4) {
|
||||||
|
tmp4.writable = true;
|
||||||
|
}
|
||||||
|
let _Object = Object;
|
||||||
|
let definePropertyResult = Object.defineProperty(tmp2, toPropertyKey(tmp4.key), tmp4);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const tmp9 = arg2;
|
||||||
|
if (tmp9) {
|
||||||
|
let num3;
|
||||||
|
for (let num3 = 0; num3 < arg2.length; num3 = num3 + 1) {
|
||||||
|
let tmp11 = arg2[num3];
|
||||||
|
let flag4 = tmp11.enumerable;
|
||||||
|
if (!flag4) {
|
||||||
|
flag4 = false;
|
||||||
|
}
|
||||||
|
tmp11.enumerable = flag4;
|
||||||
|
tmp11.configurable = true;
|
||||||
|
if ("value" in tmp11) {
|
||||||
|
tmp11.writable = true;
|
||||||
|
}
|
||||||
|
let _Object2 = Object;
|
||||||
|
let definePropertyResult1 = Object.defineProperty(arg0, toPropertyKey(tmp11.key), tmp11);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Object.defineProperty(arg0, "prototype", { writable: false });
|
||||||
|
return arg0;
|
||||||
|
};
|
||||||
36
alpha/source/__helpers/06xxx/6548__typeof.js
Normal file
36
alpha/source/__helpers/06xxx/6548__typeof.js
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
// Module ID: 6548
|
||||||
|
// Function ID: 6549
|
||||||
|
// Name: _typeof
|
||||||
|
// Dependencies: []
|
||||||
|
|
||||||
|
// Module 6548 (_typeof)
|
||||||
|
function _typeof(arg0) {
|
||||||
|
let tmp = module;
|
||||||
|
if (typeof Symbol === "function") {
|
||||||
|
let _Symbol = Symbol;
|
||||||
|
if (typeof Symbol.iterator === "symbol") {
|
||||||
|
exports = (arg0) => typeof arg0;
|
||||||
|
}
|
||||||
|
tmp.exports = exports;
|
||||||
|
return exports(arg0);
|
||||||
|
}
|
||||||
|
exports = (arg0) => {
|
||||||
|
const tmp = arg0;
|
||||||
|
if (tmp) {
|
||||||
|
const _Symbol = Symbol;
|
||||||
|
if (typeof Symbol === "function") {
|
||||||
|
let str;
|
||||||
|
const _Symbol3 = Symbol;
|
||||||
|
if (arg0.constructor === Symbol) {
|
||||||
|
const _Symbol2 = Symbol;
|
||||||
|
str = "symbol";
|
||||||
|
}
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
str = typeof arg0;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
exports = _typeof;
|
||||||
|
|
||||||
|
export default _typeof;
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
// Module ID: 6556
|
|
||||||
// Function ID: 6557
|
|
||||||
// Name: _possibleConstructorReturn
|
|
||||||
// Dependencies: [6541, 6557]
|
|
||||||
|
|
||||||
// Module 6556 (_possibleConstructorReturn)
|
|
||||||
import _typeof from "_typeof" /* 6541 */;
|
|
||||||
import _assertThisInitialized from "_assertThisInitialized" /* 6557 */;
|
|
||||||
|
|
||||||
|
|
||||||
export default function _possibleConstructorReturn(arg0, fn) {
|
|
||||||
const tmp = fn;
|
|
||||||
if (tmp) {
|
|
||||||
_typeof;
|
|
||||||
return fn;
|
|
||||||
}
|
|
||||||
if (undefined !== fn) {
|
|
||||||
const _TypeError = TypeError;
|
|
||||||
const self = this;
|
|
||||||
const self2 = this;
|
|
||||||
const typeError = new TypeError("Derived constructors may only return object or undefined");
|
|
||||||
throw typeError;
|
|
||||||
} else {
|
|
||||||
return _assertThisInitialized(arg0);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
// Module ID: 6557
|
|
||||||
// Function ID: 6558
|
|
||||||
// Name: _assertThisInitialized
|
|
||||||
// Dependencies: []
|
|
||||||
|
|
||||||
// Module 6557 (_assertThisInitialized)
|
|
||||||
|
|
||||||
export default function _assertThisInitialized(arg0) {
|
|
||||||
if (undefined === arg0) {
|
|
||||||
const _ReferenceError = ReferenceError;
|
|
||||||
const self = this;
|
|
||||||
const self2 = this;
|
|
||||||
const referenceError = new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
||||||
throw referenceError;
|
|
||||||
} else {
|
|
||||||
return arg0;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
// Module ID: 6558
|
|
||||||
// Function ID: 6559
|
|
||||||
// Name: _getPrototypeOf
|
|
||||||
// Dependencies: []
|
|
||||||
|
|
||||||
// Module 6558 (_getPrototypeOf)
|
|
||||||
function _getPrototypeOf(arg0) {
|
|
||||||
if (Object.setPrototypeOf) {
|
|
||||||
let _Object = Object;
|
|
||||||
exports = getPrototypeOf.bind();
|
|
||||||
} else {
|
|
||||||
exports = (arg0) => {
|
|
||||||
let __proto__ = arg0.__proto__;
|
|
||||||
if (!__proto__) {
|
|
||||||
const _Object = Object;
|
|
||||||
__proto__ = Object.getPrototypeOf(arg0);
|
|
||||||
}
|
|
||||||
return __proto__;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
module.exports = exports;
|
|
||||||
return exports(arg0);
|
|
||||||
}
|
|
||||||
exports = _getPrototypeOf;
|
|
||||||
|
|
||||||
export default _getPrototypeOf;
|
|
||||||
|
|
@ -1,44 +0,0 @@
|
||||||
// Module ID: 6559
|
|
||||||
// Function ID: 6560
|
|
||||||
// Name: _get
|
|
||||||
// Dependencies: [6560]
|
|
||||||
|
|
||||||
// Module 6559 (_get)
|
|
||||||
import _superPropBase from "_superPropBase" /* 6560 */;
|
|
||||||
|
|
||||||
function _get() {
|
|
||||||
let tmp = module;
|
|
||||||
if (typeof Reflect !== "undefined") {
|
|
||||||
const _Reflect2 = Reflect;
|
|
||||||
if (Reflect.get) {
|
|
||||||
const _Reflect = Reflect;
|
|
||||||
exports = get.bind();
|
|
||||||
}
|
|
||||||
tmp.exports = exports;
|
|
||||||
let tmp3 = null;
|
|
||||||
return exports(...arguments);
|
|
||||||
}
|
|
||||||
exports = function(arg0, arg1, arg2) {
|
|
||||||
const tmp = _superPropBase(arg0, arg1);
|
|
||||||
if (tmp) {
|
|
||||||
let callResult;
|
|
||||||
const _Object = Object;
|
|
||||||
const iter = Object.getOwnPropertyDescriptor(tmp, arg1);
|
|
||||||
if (iter.get) {
|
|
||||||
let tmp3 = arg2;
|
|
||||||
const get = iter.get;
|
|
||||||
const call = get.call;
|
|
||||||
if (arguments.length < 3) {
|
|
||||||
tmp3 = arg0;
|
|
||||||
}
|
|
||||||
callResult = call(tmp3);
|
|
||||||
} else {
|
|
||||||
callResult = iter.value;
|
|
||||||
}
|
|
||||||
return callResult;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
exports = _get;
|
|
||||||
|
|
||||||
export default _get;
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
// Module ID: 6560
|
|
||||||
// Function ID: 6561
|
|
||||||
// Name: _superPropBase
|
|
||||||
// Dependencies: [6558]
|
|
||||||
|
|
||||||
// Module 6560 (_superPropBase)
|
|
||||||
import _getPrototypeOf from "_getPrototypeOf" /* 6558 */;
|
|
||||||
|
|
||||||
let hasOwnProperty;
|
|
||||||
|
|
||||||
|
|
||||||
export default function _superPropBase(arg0, arg1) {
|
|
||||||
hasOwnProperty = {}.hasOwnProperty;
|
|
||||||
let tmp = arg0;
|
|
||||||
if (!hasOwnProperty.call(arg0, arg1)) {
|
|
||||||
let tmp4 = _getPrototypeOf(arg0);
|
|
||||||
tmp = tmp4;
|
|
||||||
if (null !== tmp4) {
|
|
||||||
while (true) {
|
|
||||||
let hasOwnProperty2 = {}.hasOwnProperty;
|
|
||||||
tmp = tmp4;
|
|
||||||
if (hasOwnProperty2.call(tmp4, arg1)) {
|
|
||||||
break;
|
|
||||||
} else {
|
|
||||||
tmp4 = _getPrototypeOf(tmp4);
|
|
||||||
tmp = tmp4;
|
|
||||||
if (null === tmp4) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return tmp;
|
|
||||||
};
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
// Module ID: 6561
|
|
||||||
// Function ID: 6562
|
|
||||||
// Name: _inherits
|
|
||||||
// Dependencies: [6562]
|
|
||||||
|
|
||||||
// Module 6561 (_inherits)
|
|
||||||
import _setPrototypeOf from "_setPrototypeOf" /* 6562 */;
|
|
||||||
|
|
||||||
|
|
||||||
export default function _inherits(value, fn) {
|
|
||||||
if (typeof fn !== "function") {
|
|
||||||
if (null !== fn) {
|
|
||||||
const _TypeError = TypeError;
|
|
||||||
const self = this;
|
|
||||||
const self2 = this;
|
|
||||||
const typeError = new TypeError("Super expression must either be null or a function");
|
|
||||||
throw typeError;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let prototype = fn;
|
|
||||||
const _Object = Object;
|
|
||||||
if (fn) {
|
|
||||||
prototype = fn.prototype;
|
|
||||||
}
|
|
||||||
const obj = { constructor: { value, writable: true, configurable: true } };
|
|
||||||
value.prototype = create(prototype, obj);
|
|
||||||
Object.defineProperty(value, "prototype", { writable: false });
|
|
||||||
if (fn) {
|
|
||||||
_setPrototypeOf(value, fn);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
// Module ID: 6562
|
|
||||||
// Function ID: 6563
|
|
||||||
// Name: _setPrototypeOf
|
|
||||||
// Dependencies: []
|
|
||||||
|
|
||||||
// Module 6562 (_setPrototypeOf)
|
|
||||||
function _setPrototypeOf(arg0, arg1) {
|
|
||||||
if (Object.setPrototypeOf) {
|
|
||||||
const _Object = Object;
|
|
||||||
exports = setPrototypeOf.bind();
|
|
||||||
} else {
|
|
||||||
exports = (arg0, arg1) => {
|
|
||||||
arg0.__proto__ = arg1;
|
|
||||||
return arg0;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
module.exports = exports;
|
|
||||||
return exports(arg0, arg1);
|
|
||||||
}
|
|
||||||
exports = _setPrototypeOf;
|
|
||||||
|
|
||||||
export default _setPrototypeOf;
|
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
// Module ID: 6563
|
||||||
|
// Function ID: 6564
|
||||||
|
// Name: _possibleConstructorReturn
|
||||||
|
// Dependencies: [6548, 6564]
|
||||||
|
|
||||||
|
// Module 6563 (_possibleConstructorReturn)
|
||||||
|
import _typeof from "_typeof" /* 6548 */;
|
||||||
|
import _assertThisInitialized from "_assertThisInitialized" /* 6564 */;
|
||||||
|
|
||||||
|
|
||||||
|
export default function _possibleConstructorReturn(arg0, fn) {
|
||||||
|
const tmp = fn;
|
||||||
|
if (tmp) {
|
||||||
|
_typeof;
|
||||||
|
return fn;
|
||||||
|
}
|
||||||
|
if (undefined !== fn) {
|
||||||
|
const _TypeError = TypeError;
|
||||||
|
const self = this;
|
||||||
|
const self2 = this;
|
||||||
|
const typeError = new TypeError("Derived constructors may only return object or undefined");
|
||||||
|
throw typeError;
|
||||||
|
} else {
|
||||||
|
return _assertThisInitialized(arg0);
|
||||||
|
}
|
||||||
|
};
|
||||||
18
alpha/source/__helpers/06xxx/6564__assertThisInitialized.js
Normal file
18
alpha/source/__helpers/06xxx/6564__assertThisInitialized.js
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
// Module ID: 6564
|
||||||
|
// Function ID: 6565
|
||||||
|
// Name: _assertThisInitialized
|
||||||
|
// Dependencies: []
|
||||||
|
|
||||||
|
// Module 6564 (_assertThisInitialized)
|
||||||
|
|
||||||
|
export default function _assertThisInitialized(arg0) {
|
||||||
|
if (undefined === arg0) {
|
||||||
|
const _ReferenceError = ReferenceError;
|
||||||
|
const self = this;
|
||||||
|
const self2 = this;
|
||||||
|
const referenceError = new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||||
|
throw referenceError;
|
||||||
|
} else {
|
||||||
|
return arg0;
|
||||||
|
}
|
||||||
|
};
|
||||||
26
alpha/source/__helpers/06xxx/6565__getPrototypeOf.js
Normal file
26
alpha/source/__helpers/06xxx/6565__getPrototypeOf.js
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
// Module ID: 6565
|
||||||
|
// Function ID: 6566
|
||||||
|
// Name: _getPrototypeOf
|
||||||
|
// Dependencies: []
|
||||||
|
|
||||||
|
// Module 6565 (_getPrototypeOf)
|
||||||
|
function _getPrototypeOf(arg0) {
|
||||||
|
if (Object.setPrototypeOf) {
|
||||||
|
let _Object = Object;
|
||||||
|
exports = getPrototypeOf.bind();
|
||||||
|
} else {
|
||||||
|
exports = (arg0) => {
|
||||||
|
let __proto__ = arg0.__proto__;
|
||||||
|
if (!__proto__) {
|
||||||
|
const _Object = Object;
|
||||||
|
__proto__ = Object.getPrototypeOf(arg0);
|
||||||
|
}
|
||||||
|
return __proto__;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
module.exports = exports;
|
||||||
|
return exports(arg0);
|
||||||
|
}
|
||||||
|
exports = _getPrototypeOf;
|
||||||
|
|
||||||
|
export default _getPrototypeOf;
|
||||||
44
alpha/source/__helpers/06xxx/6566__get.js
Normal file
44
alpha/source/__helpers/06xxx/6566__get.js
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
// Module ID: 6566
|
||||||
|
// Function ID: 6567
|
||||||
|
// Name: _get
|
||||||
|
// Dependencies: [6567]
|
||||||
|
|
||||||
|
// Module 6566 (_get)
|
||||||
|
import _superPropBase from "_superPropBase" /* 6567 */;
|
||||||
|
|
||||||
|
function _get() {
|
||||||
|
let tmp = module;
|
||||||
|
if (typeof Reflect !== "undefined") {
|
||||||
|
const _Reflect2 = Reflect;
|
||||||
|
if (Reflect.get) {
|
||||||
|
const _Reflect = Reflect;
|
||||||
|
exports = get.bind();
|
||||||
|
}
|
||||||
|
tmp.exports = exports;
|
||||||
|
let tmp3 = null;
|
||||||
|
return exports(...arguments);
|
||||||
|
}
|
||||||
|
exports = function(arg0, arg1, arg2) {
|
||||||
|
const tmp = _superPropBase(arg0, arg1);
|
||||||
|
if (tmp) {
|
||||||
|
let callResult;
|
||||||
|
const _Object = Object;
|
||||||
|
const iter = Object.getOwnPropertyDescriptor(tmp, arg1);
|
||||||
|
if (iter.get) {
|
||||||
|
let tmp3 = arg2;
|
||||||
|
const get = iter.get;
|
||||||
|
const call = get.call;
|
||||||
|
if (arguments.length < 3) {
|
||||||
|
tmp3 = arg0;
|
||||||
|
}
|
||||||
|
callResult = call(tmp3);
|
||||||
|
} else {
|
||||||
|
callResult = iter.value;
|
||||||
|
}
|
||||||
|
return callResult;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
exports = _get;
|
||||||
|
|
||||||
|
export default _get;
|
||||||
35
alpha/source/__helpers/06xxx/6567__superPropBase.js
Normal file
35
alpha/source/__helpers/06xxx/6567__superPropBase.js
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
// Module ID: 6567
|
||||||
|
// Function ID: 6568
|
||||||
|
// Name: _superPropBase
|
||||||
|
// Dependencies: [6565]
|
||||||
|
|
||||||
|
// Module 6567 (_superPropBase)
|
||||||
|
import _getPrototypeOf from "_getPrototypeOf" /* 6565 */;
|
||||||
|
|
||||||
|
let hasOwnProperty;
|
||||||
|
|
||||||
|
|
||||||
|
export default function _superPropBase(arg0, arg1) {
|
||||||
|
hasOwnProperty = {}.hasOwnProperty;
|
||||||
|
let tmp = arg0;
|
||||||
|
if (!hasOwnProperty.call(arg0, arg1)) {
|
||||||
|
let tmp4 = _getPrototypeOf(arg0);
|
||||||
|
tmp = tmp4;
|
||||||
|
if (null !== tmp4) {
|
||||||
|
while (true) {
|
||||||
|
let hasOwnProperty2 = {}.hasOwnProperty;
|
||||||
|
tmp = tmp4;
|
||||||
|
if (hasOwnProperty2.call(tmp4, arg1)) {
|
||||||
|
break;
|
||||||
|
} else {
|
||||||
|
tmp4 = _getPrototypeOf(tmp4);
|
||||||
|
tmp = tmp4;
|
||||||
|
if (null === tmp4) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return tmp;
|
||||||
|
};
|
||||||
31
alpha/source/__helpers/06xxx/6568__inherits.js
Normal file
31
alpha/source/__helpers/06xxx/6568__inherits.js
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
// Module ID: 6568
|
||||||
|
// Function ID: 6569
|
||||||
|
// Name: _inherits
|
||||||
|
// Dependencies: [6569]
|
||||||
|
|
||||||
|
// Module 6568 (_inherits)
|
||||||
|
import _setPrototypeOf from "_setPrototypeOf" /* 6569 */;
|
||||||
|
|
||||||
|
|
||||||
|
export default function _inherits(value, fn) {
|
||||||
|
if (typeof fn !== "function") {
|
||||||
|
if (null !== fn) {
|
||||||
|
const _TypeError = TypeError;
|
||||||
|
const self = this;
|
||||||
|
const self2 = this;
|
||||||
|
const typeError = new TypeError("Super expression must either be null or a function");
|
||||||
|
throw typeError;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let prototype = fn;
|
||||||
|
const _Object = Object;
|
||||||
|
if (fn) {
|
||||||
|
prototype = fn.prototype;
|
||||||
|
}
|
||||||
|
const obj = { constructor: { value, writable: true, configurable: true } };
|
||||||
|
value.prototype = create(prototype, obj);
|
||||||
|
Object.defineProperty(value, "prototype", { writable: false });
|
||||||
|
if (fn) {
|
||||||
|
_setPrototypeOf(value, fn);
|
||||||
|
}
|
||||||
|
};
|
||||||
22
alpha/source/__helpers/06xxx/6569__setPrototypeOf.js
Normal file
22
alpha/source/__helpers/06xxx/6569__setPrototypeOf.js
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
// Module ID: 6569
|
||||||
|
// Function ID: 6570
|
||||||
|
// Name: _setPrototypeOf
|
||||||
|
// Dependencies: []
|
||||||
|
|
||||||
|
// Module 6569 (_setPrototypeOf)
|
||||||
|
function _setPrototypeOf(arg0, arg1) {
|
||||||
|
if (Object.setPrototypeOf) {
|
||||||
|
const _Object = Object;
|
||||||
|
exports = setPrototypeOf.bind();
|
||||||
|
} else {
|
||||||
|
exports = (arg0, arg1) => {
|
||||||
|
arg0.__proto__ = arg1;
|
||||||
|
return arg0;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
module.exports = exports;
|
||||||
|
return exports(arg0, arg1);
|
||||||
|
}
|
||||||
|
exports = _setPrototypeOf;
|
||||||
|
|
||||||
|
export default _setPrototypeOf;
|
||||||
|
|
@ -1,43 +0,0 @@
|
||||||
// Module ID: 6571
|
|
||||||
// Function ID: 6572
|
|
||||||
// Name: _asyncToGenerator
|
|
||||||
// Dependencies: []
|
|
||||||
|
|
||||||
// Module 6571 (_asyncToGenerator)
|
|
||||||
let _self;
|
|
||||||
|
|
||||||
function asyncGeneratorStep(arg0, fn, fn2, arg3, arg4, arg5, arg6) {
|
|
||||||
try {
|
|
||||||
const iter = arg0[arg5](arg6);
|
|
||||||
const value = iter.value;
|
|
||||||
if (iter.done) {
|
|
||||||
fn(value);
|
|
||||||
} else {
|
|
||||||
const resolved = Promise.resolve(value);
|
|
||||||
resolved.then(arg3, arg4);
|
|
||||||
}
|
|
||||||
} catch (tmp12) {
|
|
||||||
fn2(tmp12);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export default function _asyncToGenerator(arg0) {
|
|
||||||
let closure_0 = arg0;
|
|
||||||
return function() {
|
|
||||||
const self = this;
|
|
||||||
let closure_1 = arguments;
|
|
||||||
const promise = new Promise((arg0, arg1) => {
|
|
||||||
_self = arg0;
|
|
||||||
closure_1 = arg1;
|
|
||||||
function _next(arg0) {
|
|
||||||
_self(applyResult, closure_0, closure_1, _next, _throw, "next", arg0);
|
|
||||||
}
|
|
||||||
function _throw(arg0) {
|
|
||||||
_self(applyResult, closure_0, closure_1, _next, _throw, "throw", arg0);
|
|
||||||
}
|
|
||||||
const applyResult = _self.apply(self, closure_1);
|
|
||||||
asyncGeneratorStep(applyResult, arg0, arg1, _next, _throw, "next", undefined);
|
|
||||||
});
|
|
||||||
return promise;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
@ -1,67 +0,0 @@
|
||||||
// Module ID: 6573
|
|
||||||
// Function ID: 6574
|
|
||||||
// Name: _slicedToArray
|
|
||||||
// Dependencies: [6528, 19]
|
|
||||||
// Exports: useUnmountAwareAnimationFrame, useUnmountAwareTimeout
|
|
||||||
|
|
||||||
// Module 6573 (_slicedToArray)
|
|
||||||
import _slicedToArray from "_slicedToArray" /* 6528 */;
|
|
||||||
import react from "react" /* 19 */;
|
|
||||||
|
|
||||||
let set;
|
|
||||||
|
|
||||||
let c2;
|
|
||||||
let c3;
|
|
||||||
let closure_4;
|
|
||||||
({ useCallback: c2, useEffect: c3, useState: closure_4 } = react);
|
|
||||||
|
|
||||||
export const useUnmountAwareTimeout = function useUnmountAwareTimeout() {
|
|
||||||
let items1;
|
|
||||||
let first = _slicedToArray(closure_4(() => {
|
|
||||||
set = new Set();
|
|
||||||
return set;
|
|
||||||
}), 1)[0];
|
|
||||||
const items = [first];
|
|
||||||
closure_3(() => () => {
|
|
||||||
const item = first.forEach((item) => closure_1_0.clearTimeout(item));
|
|
||||||
first.clear();
|
|
||||||
}, items);
|
|
||||||
const obj = {
|
|
||||||
setTimeout: closure_2((arg0, arg1) => {
|
|
||||||
let closure_0;
|
|
||||||
first = arg0;
|
|
||||||
const timerId = first.setTimeout(() => {
|
|
||||||
first.delete(timerId);
|
|
||||||
closure_0();
|
|
||||||
}, arg1);
|
|
||||||
first.add(timerId);
|
|
||||||
}, items1)
|
|
||||||
};
|
|
||||||
items1 = [first];
|
|
||||||
return obj;
|
|
||||||
};
|
|
||||||
export const useUnmountAwareAnimationFrame = function useUnmountAwareAnimationFrame() {
|
|
||||||
let items1;
|
|
||||||
let first = _slicedToArray(closure_4(() => {
|
|
||||||
set = new Set();
|
|
||||||
return set;
|
|
||||||
}), 1)[0];
|
|
||||||
const items = [first];
|
|
||||||
closure_3(() => () => {
|
|
||||||
const item = first.forEach((item) => cancelAnimationFrame(item));
|
|
||||||
first.clear();
|
|
||||||
}, items);
|
|
||||||
const obj = {
|
|
||||||
requestAnimationFrame: closure_2((arg0) => {
|
|
||||||
let closure_0;
|
|
||||||
first = arg0;
|
|
||||||
const animationFrame = first.requestAnimationFrame((arg0) => {
|
|
||||||
first.delete(animationFrame);
|
|
||||||
closure_0(arg0);
|
|
||||||
});
|
|
||||||
first.add(animationFrame);
|
|
||||||
}, items1)
|
|
||||||
};
|
|
||||||
items1 = [first];
|
|
||||||
return obj;
|
|
||||||
};
|
|
||||||
43
alpha/source/__helpers/06xxx/6578__asyncToGenerator.js
Normal file
43
alpha/source/__helpers/06xxx/6578__asyncToGenerator.js
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
// Module ID: 6578
|
||||||
|
// Function ID: 6579
|
||||||
|
// Name: _asyncToGenerator
|
||||||
|
// Dependencies: []
|
||||||
|
|
||||||
|
// Module 6578 (_asyncToGenerator)
|
||||||
|
let _self;
|
||||||
|
|
||||||
|
function asyncGeneratorStep(arg0, fn, fn2, arg3, arg4, arg5, arg6) {
|
||||||
|
try {
|
||||||
|
const iter = arg0[arg5](arg6);
|
||||||
|
const value = iter.value;
|
||||||
|
if (iter.done) {
|
||||||
|
fn(value);
|
||||||
|
} else {
|
||||||
|
const resolved = Promise.resolve(value);
|
||||||
|
resolved.then(arg3, arg4);
|
||||||
|
}
|
||||||
|
} catch (tmp12) {
|
||||||
|
fn2(tmp12);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function _asyncToGenerator(arg0) {
|
||||||
|
let closure_0 = arg0;
|
||||||
|
return function() {
|
||||||
|
const self = this;
|
||||||
|
let closure_1 = arguments;
|
||||||
|
const promise = new Promise((arg0, arg1) => {
|
||||||
|
_self = arg0;
|
||||||
|
closure_1 = arg1;
|
||||||
|
function _next(arg0) {
|
||||||
|
_self(applyResult, closure_0, closure_1, _next, _throw, "next", arg0);
|
||||||
|
}
|
||||||
|
function _throw(arg0) {
|
||||||
|
_self(applyResult, closure_0, closure_1, _next, _throw, "throw", arg0);
|
||||||
|
}
|
||||||
|
const applyResult = _self.apply(self, closure_1);
|
||||||
|
asyncGeneratorStep(applyResult, arg0, arg1, _next, _throw, "next", undefined);
|
||||||
|
});
|
||||||
|
return promise;
|
||||||
|
};
|
||||||
|
};
|
||||||
67
alpha/source/__helpers/06xxx/6580__slicedToArray.js
Normal file
67
alpha/source/__helpers/06xxx/6580__slicedToArray.js
Normal file
|
|
@ -0,0 +1,67 @@
|
||||||
|
// Module ID: 6580
|
||||||
|
// Function ID: 6581
|
||||||
|
// Name: _slicedToArray
|
||||||
|
// Dependencies: [6535, 19]
|
||||||
|
// Exports: useUnmountAwareAnimationFrame, useUnmountAwareTimeout
|
||||||
|
|
||||||
|
// Module 6580 (_slicedToArray)
|
||||||
|
import _slicedToArray from "_slicedToArray" /* 6535 */;
|
||||||
|
import react from "react" /* 19 */;
|
||||||
|
|
||||||
|
let set;
|
||||||
|
|
||||||
|
let c2;
|
||||||
|
let c3;
|
||||||
|
let closure_4;
|
||||||
|
({ useCallback: c2, useEffect: c3, useState: closure_4 } = react);
|
||||||
|
|
||||||
|
export const useUnmountAwareTimeout = function useUnmountAwareTimeout() {
|
||||||
|
let items1;
|
||||||
|
let first = _slicedToArray(closure_4(() => {
|
||||||
|
set = new Set();
|
||||||
|
return set;
|
||||||
|
}), 1)[0];
|
||||||
|
const items = [first];
|
||||||
|
closure_3(() => () => {
|
||||||
|
const item = first.forEach((item) => closure_1_0.clearTimeout(item));
|
||||||
|
first.clear();
|
||||||
|
}, items);
|
||||||
|
const obj = {
|
||||||
|
setTimeout: closure_2((arg0, arg1) => {
|
||||||
|
let closure_0;
|
||||||
|
first = arg0;
|
||||||
|
const timerId = first.setTimeout(() => {
|
||||||
|
first.delete(timerId);
|
||||||
|
closure_0();
|
||||||
|
}, arg1);
|
||||||
|
first.add(timerId);
|
||||||
|
}, items1)
|
||||||
|
};
|
||||||
|
items1 = [first];
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
export const useUnmountAwareAnimationFrame = function useUnmountAwareAnimationFrame() {
|
||||||
|
let items1;
|
||||||
|
let first = _slicedToArray(closure_4(() => {
|
||||||
|
set = new Set();
|
||||||
|
return set;
|
||||||
|
}), 1)[0];
|
||||||
|
const items = [first];
|
||||||
|
closure_3(() => () => {
|
||||||
|
const item = first.forEach((item) => cancelAnimationFrame(item));
|
||||||
|
first.clear();
|
||||||
|
}, items);
|
||||||
|
const obj = {
|
||||||
|
requestAnimationFrame: closure_2((arg0) => {
|
||||||
|
let closure_0;
|
||||||
|
first = arg0;
|
||||||
|
const animationFrame = first.requestAnimationFrame((arg0) => {
|
||||||
|
first.delete(animationFrame);
|
||||||
|
closure_0(arg0);
|
||||||
|
});
|
||||||
|
first.add(animationFrame);
|
||||||
|
}, items1)
|
||||||
|
};
|
||||||
|
items1 = [first];
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
|
@ -1,342 +0,0 @@
|
||||||
// Module ID: 7031
|
|
||||||
// Function ID: 7032
|
|
||||||
// Name: _extends
|
|
||||||
// Dependencies: [7032, 7033]
|
|
||||||
|
|
||||||
// Module 7031 (_extends)
|
|
||||||
import removeAccents from "removeAccents" /* 7033 */;
|
|
||||||
import _extends from "_extends" /* 7032 */;
|
|
||||||
|
|
||||||
let hasOwnProperty;
|
|
||||||
|
|
||||||
function getMatchRanking(rankedValue, arg1, keepDiacritics) {
|
|
||||||
let NO_MATCH;
|
|
||||||
const text = `${rankedValue}`;
|
|
||||||
let defaultResult = text;
|
|
||||||
if (!keepDiacritics.keepDiacritics) {
|
|
||||||
defaultResult = _module1.default(`${rankedValue}`);
|
|
||||||
}
|
|
||||||
const text1 = `${arg1}`;
|
|
||||||
let defaultResult1 = text1;
|
|
||||||
if (!keepDiacritics.keepDiacritics) {
|
|
||||||
defaultResult1 = _module1.default(`${arg1}`);
|
|
||||||
}
|
|
||||||
if (defaultResult1.length > defaultResult.length) {
|
|
||||||
NO_MATCH = obj2.NO_MATCH;
|
|
||||||
} else if (defaultResult === defaultResult1) {
|
|
||||||
NO_MATCH = obj2.CASE_SENSITIVE_EQUAL;
|
|
||||||
} else {
|
|
||||||
const str2 = defaultResult.toLowerCase();
|
|
||||||
const formatted = defaultResult1.toLowerCase();
|
|
||||||
if (str2 === formatted) {
|
|
||||||
NO_MATCH = obj2.EQUAL;
|
|
||||||
} else if (str2.startsWith(formatted)) {
|
|
||||||
NO_MATCH = obj2.STARTS_WITH;
|
|
||||||
} else if (str2.includes(` ${arr3}`)) {
|
|
||||||
NO_MATCH = obj2.WORD_STARTS_WITH;
|
|
||||||
} else if (str2.includes(formatted)) {
|
|
||||||
NO_MATCH = obj2.CONTAINS;
|
|
||||||
} else if (1 === formatted.length) {
|
|
||||||
NO_MATCH = obj2.NO_MATCH;
|
|
||||||
} else {
|
|
||||||
let c0 = "";
|
|
||||||
let parts = str2.split(" ");
|
|
||||||
let item = parts.forEach((item) => {
|
|
||||||
const parts = item.split("-");
|
|
||||||
item = parts.forEach((item) => {
|
|
||||||
closure_0 = closure_0 + item.substr(0, 1);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
if (c0.includes(formatted)) {
|
|
||||||
NO_MATCH = obj2.ACRONYM;
|
|
||||||
} else {
|
|
||||||
let num4 = 0;
|
|
||||||
let num5 = 0;
|
|
||||||
let num6 = -1;
|
|
||||||
if (0 < str2.length) {
|
|
||||||
while (str2[num4] !== tmp5) {
|
|
||||||
let sum = num4 + 1;
|
|
||||||
num4 = sum;
|
|
||||||
num5 = 0;
|
|
||||||
num6 = -1;
|
|
||||||
}
|
|
||||||
num6 = num4 + 1;
|
|
||||||
num5 = 1;
|
|
||||||
}
|
|
||||||
if (num6 < 0) {
|
|
||||||
NO_MATCH = obj2.NO_MATCH;
|
|
||||||
} else {
|
|
||||||
let tmp16 = num5;
|
|
||||||
let num8 = 1;
|
|
||||||
let tmp17 = num6;
|
|
||||||
let tmp18 = num5;
|
|
||||||
let tmp19 = num6;
|
|
||||||
if (1 < formatted.length) {
|
|
||||||
while (true) {
|
|
||||||
let length2 = str2.length;
|
|
||||||
let tmp11 = tmp17;
|
|
||||||
let sum2 = tmp16;
|
|
||||||
let num7 = -1;
|
|
||||||
if (tmp17 < length2) {
|
|
||||||
while (str2[tmp11] !== tmp8) {
|
|
||||||
let sum1 = tmp11 + 1;
|
|
||||||
tmp11 = sum1;
|
|
||||||
sum2 = tmp16;
|
|
||||||
num7 = -1;
|
|
||||||
}
|
|
||||||
sum2 = tmp16 + 1;
|
|
||||||
num7 = tmp11 + 1;
|
|
||||||
}
|
|
||||||
if (-1 >= num7) {
|
|
||||||
break;
|
|
||||||
} else {
|
|
||||||
num8 = num8 + 1;
|
|
||||||
tmp16 = sum2;
|
|
||||||
tmp17 = num7;
|
|
||||||
tmp18 = sum2;
|
|
||||||
tmp19 = num7;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
NO_MATCH = obj2.NO_MATCH;
|
|
||||||
}
|
|
||||||
NO_MATCH = obj2.MATCHES + tmp18 / formatted.length * (1 / (tmp19 - num6));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return NO_MATCH;
|
|
||||||
}
|
|
||||||
if (_extends) {
|
|
||||||
if (typeof _extends === "object") {
|
|
||||||
let obj = _extends;
|
|
||||||
}
|
|
||||||
let _module1 = removeAccents;
|
|
||||||
if (_module1) {
|
|
||||||
let tmp4;
|
|
||||||
if (typeof _module1 === "object") {
|
|
||||||
let str2 = "default";
|
|
||||||
tmp4 = _module1;
|
|
||||||
}
|
|
||||||
function matchSorter(valueResult, query, arg2) {
|
|
||||||
let length;
|
|
||||||
let threshold;
|
|
||||||
let closure_0 = query;
|
|
||||||
let tmp = arg2;
|
|
||||||
obj = arg2;
|
|
||||||
if (undefined === arg2) {
|
|
||||||
obj = {};
|
|
||||||
tmp = obj;
|
|
||||||
}
|
|
||||||
({ keys: obj2, threshold } = tmp);
|
|
||||||
if (undefined === threshold) {
|
|
||||||
const tmp2 = obj2;
|
|
||||||
threshold = obj2.MATCHES;
|
|
||||||
}
|
|
||||||
let baseSort = tmp.baseSort;
|
|
||||||
if (undefined === baseSort) {
|
|
||||||
baseSort = threshold;
|
|
||||||
}
|
|
||||||
let fn = tmp.sorter;
|
|
||||||
if (undefined === fn) {
|
|
||||||
fn = (arr) => arr.sort((arg0, arg1) => {
|
|
||||||
let keyIndex;
|
|
||||||
let keyIndex2;
|
|
||||||
let num;
|
|
||||||
let rank;
|
|
||||||
let rank2;
|
|
||||||
({ rank, keyIndex } = arg0);
|
|
||||||
({ rank: rank2, keyIndex: keyIndex2 } = arg1);
|
|
||||||
if (rank === rank2) {
|
|
||||||
let num2;
|
|
||||||
if (keyIndex === keyIndex2) {
|
|
||||||
num2 = tmp(arg0, arg1);
|
|
||||||
} else {
|
|
||||||
num2 = 1;
|
|
||||||
if (keyIndex < keyIndex2) {
|
|
||||||
num2 = -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
num = num2;
|
|
||||||
} else {
|
|
||||||
num = 1;
|
|
||||||
if (rank > rank2) {
|
|
||||||
num = -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return num;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
const fnResult = fn(valueResult.reduce(function reduceItemsToRanked(arr, rankedValue, index) {
|
|
||||||
let reduced;
|
|
||||||
let tmp;
|
|
||||||
let closure_1 = obj;
|
|
||||||
if (length) {
|
|
||||||
const items = [];
|
|
||||||
let num4 = 0;
|
|
||||||
if (0 < length.length) {
|
|
||||||
while (true) {
|
|
||||||
let defaultResult;
|
|
||||||
let str3Result;
|
|
||||||
let items4;
|
|
||||||
let tmp6 = arr[num4];
|
|
||||||
if (typeof tmp6 === "string") {
|
|
||||||
defaultResult = closure_5;
|
|
||||||
} else {
|
|
||||||
defaultResult = obj.default({}, closure_5, tmp6);
|
|
||||||
}
|
|
||||||
let str3 = tmp6;
|
|
||||||
if (typeof tmp6 === "object") {
|
|
||||||
str3 = tmp6.key;
|
|
||||||
}
|
|
||||||
if (typeof str3 === "function") {
|
|
||||||
str3Result = str3(rankedValue);
|
|
||||||
} else {
|
|
||||||
str3Result = null;
|
|
||||||
if (null != rankedValue) {
|
|
||||||
let _Object = Object;
|
|
||||||
hasOwnProperty = Object.hasOwnProperty;
|
|
||||||
if (hasOwnProperty.call(rankedValue, str3)) {
|
|
||||||
str3Result = rankedValue[str3];
|
|
||||||
} else {
|
|
||||||
let applyResult;
|
|
||||||
let num7;
|
|
||||||
str3Result = null;
|
|
||||||
if (str3.includes(".")) {
|
|
||||||
let parts = str3.split(".");
|
|
||||||
let items1 = [rankedValue];
|
|
||||||
let length2 = parts.length;
|
|
||||||
let num5 = 0;
|
|
||||||
let arr5 = items1;
|
|
||||||
let tmp10 = items1;
|
|
||||||
if (0 < length2) {
|
|
||||||
do {
|
|
||||||
let tmp11 = parts[num5];
|
|
||||||
let items2 = [];
|
|
||||||
let length3 = arr5.length;
|
|
||||||
let num6 = 0;
|
|
||||||
let tmp14 = items2;
|
|
||||||
if (0 < length3) {
|
|
||||||
do {
|
|
||||||
let tmp15 = arr5[num6];
|
|
||||||
let combined = items2;
|
|
||||||
if (null != tmp15) {
|
|
||||||
let _Object2 = Object;
|
|
||||||
let hasOwnProperty2 = Object.hasOwnProperty;
|
|
||||||
if (hasOwnProperty2.call(tmp15, tmp11)) {
|
|
||||||
let tmp19 = tmp15[tmp11];
|
|
||||||
combined = items2;
|
|
||||||
if (null != tmp19) {
|
|
||||||
let arr2 = items2.push(tmp19);
|
|
||||||
combined = items2;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
combined = items2;
|
|
||||||
if ("*" === tmp11) {
|
|
||||||
combined = items2.concat(tmp15);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
num6 = num6 + 1;
|
|
||||||
items2 = combined;
|
|
||||||
tmp14 = combined;
|
|
||||||
} while (num6 < length3);
|
|
||||||
}
|
|
||||||
num5 = num5 + 1;
|
|
||||||
arr5 = tmp14;
|
|
||||||
tmp10 = tmp14;
|
|
||||||
} while (num5 < length2);
|
|
||||||
}
|
|
||||||
let _Array = Array;
|
|
||||||
applyResult = tmp10;
|
|
||||||
if (Array.isArray(tmp10[0])) {
|
|
||||||
let items3 = [];
|
|
||||||
let concat = items3.concat;
|
|
||||||
applyResult = concat.apply(items3, tmp10);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let length4 = applyResult.length;
|
|
||||||
for (let num7 = 0; num7 < length4; num7 = num7 + 1) {
|
|
||||||
obj = { itemValue: applyResult[num7], attributes: defaultResult };
|
|
||||||
let arr3 = items.push(obj);
|
|
||||||
}
|
|
||||||
num4 = num4 + 1;
|
|
||||||
if (num4 >= length) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (null == str3Result) {
|
|
||||||
items4 = [];
|
|
||||||
} else {
|
|
||||||
let _Array2 = Array;
|
|
||||||
items4 = str3Result;
|
|
||||||
if (!Array.isArray(str3Result)) {
|
|
||||||
let _String = String;
|
|
||||||
let items5 = [String(str3Result)];
|
|
||||||
items4 = items5;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
applyResult = items4;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
obj2 = { rankedValue, rank: obj2.NO_MATCH, keyIndex: -1, keyThreshold: obj.threshold };
|
|
||||||
reduced = items.reduce((acc, item, index) => {
|
|
||||||
let attributes;
|
|
||||||
let itemValue;
|
|
||||||
let keyIndex;
|
|
||||||
let keyThreshold;
|
|
||||||
let maxRanking;
|
|
||||||
let minRanking;
|
|
||||||
let rank;
|
|
||||||
let rankedValue;
|
|
||||||
({ rank, rankedValue, keyIndex, keyThreshold } = acc);
|
|
||||||
({ itemValue, attributes } = item);
|
|
||||||
const tmp = baseSort(itemValue, closure_0, closure_1);
|
|
||||||
({ minRanking, maxRanking, threshold } = attributes);
|
|
||||||
if (tmp >= minRanking) {
|
|
||||||
minRanking = tmp;
|
|
||||||
if (tmp > maxRanking) {
|
|
||||||
minRanking = maxRanking;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (minRanking > rank) {
|
|
||||||
keyIndex = index;
|
|
||||||
rankedValue = itemValue;
|
|
||||||
keyThreshold = threshold;
|
|
||||||
rank = minRanking;
|
|
||||||
}
|
|
||||||
return { rankedValue, rank, keyIndex, keyThreshold };
|
|
||||||
}, obj2);
|
|
||||||
} else {
|
|
||||||
reduced = { rankedValue, rank: getMatchRanking(rankedValue, tmp, tmp2), keyIndex: -1, keyThreshold: tmp2.threshold };
|
|
||||||
}
|
|
||||||
let keyThreshold = reduced.keyThreshold;
|
|
||||||
let rank = reduced.rank;
|
|
||||||
if (undefined === keyThreshold) {
|
|
||||||
keyThreshold = threshold;
|
|
||||||
}
|
|
||||||
if (rank >= keyThreshold) {
|
|
||||||
const obj3 = { item: rankedValue, index };
|
|
||||||
arr.push(obj.default({}, reduced, obj3));
|
|
||||||
}
|
|
||||||
return arr;
|
|
||||||
}, []));
|
|
||||||
return fnResult.map((item) => item.item);
|
|
||||||
}
|
|
||||||
_module1 = tmp4;
|
|
||||||
let obj2 = { CASE_SENSITIVE_EQUAL: 7, EQUAL: 6, STARTS_WITH: 5, WORD_STARTS_WITH: 4, CONTAINS: 3, ACRONYM: 2, MATCHES: 1, NO_MATCH: 0 };
|
|
||||||
matchSorter.rankings = obj2;
|
|
||||||
function defaultBaseSortFn(rankedValue, rankedValue2) {
|
|
||||||
const StringResult = String(rankedValue.rankedValue);
|
|
||||||
return StringResult.localeCompare(String(rankedValue2.rankedValue));
|
|
||||||
}
|
|
||||||
let closure_5 = { maxRanking: Infinity, minRanking: -Infinity };
|
|
||||||
exports.defaultBaseSortFn = defaultBaseSortFn;
|
|
||||||
exports.matchSorter = matchSorter;
|
|
||||||
exports.rankings = obj2;
|
|
||||||
}
|
|
||||||
let obj3 = { default: _module1 };
|
|
||||||
tmp4 = obj3;
|
|
||||||
}
|
|
||||||
obj = { default: _extends };
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
||||||
// Module ID: 7032
|
|
||||||
// Function ID: 7033
|
|
||||||
// Name: _extends
|
|
||||||
// Dependencies: []
|
|
||||||
|
|
||||||
// Module 7032 (_extends)
|
|
||||||
let hasOwnProperty;
|
|
||||||
|
|
||||||
function _extends() {
|
|
||||||
let tmp = module;
|
|
||||||
if (Object.assign) {
|
|
||||||
const _Object = Object;
|
|
||||||
exports = assign.bind();
|
|
||||||
} else {
|
|
||||||
exports = function(arg0) {
|
|
||||||
let num;
|
|
||||||
for (let num = 1; num < arguments.length; num = num + 1) {
|
|
||||||
let tmp = arguments[num];
|
|
||||||
for (const key10011 in tmp) {
|
|
||||||
hasOwnProperty = {}.hasOwnProperty;
|
|
||||||
if (!hasOwnProperty.call(tmp, key10011)) {
|
|
||||||
continue;
|
|
||||||
} else {
|
|
||||||
arg0[key10011] = tmp[key10011];
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return arg0;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
tmp.exports = exports;
|
|
||||||
return exports(...arguments);
|
|
||||||
}
|
|
||||||
exports = _extends;
|
|
||||||
|
|
||||||
export default _extends;
|
|
||||||
342
alpha/source/__helpers/07xxx/7034__extends.js
Normal file
342
alpha/source/__helpers/07xxx/7034__extends.js
Normal file
|
|
@ -0,0 +1,342 @@
|
||||||
|
// Module ID: 7034
|
||||||
|
// Function ID: 7035
|
||||||
|
// Name: _extends
|
||||||
|
// Dependencies: [7035, 7036]
|
||||||
|
|
||||||
|
// Module 7034 (_extends)
|
||||||
|
import removeAccents from "removeAccents" /* 7036 */;
|
||||||
|
import _extends from "_extends" /* 7035 */;
|
||||||
|
|
||||||
|
let hasOwnProperty;
|
||||||
|
|
||||||
|
function getMatchRanking(rankedValue, arg1, keepDiacritics) {
|
||||||
|
let NO_MATCH;
|
||||||
|
const text = `${rankedValue}`;
|
||||||
|
let defaultResult = text;
|
||||||
|
if (!keepDiacritics.keepDiacritics) {
|
||||||
|
defaultResult = _module1.default(`${rankedValue}`);
|
||||||
|
}
|
||||||
|
const text1 = `${arg1}`;
|
||||||
|
let defaultResult1 = text1;
|
||||||
|
if (!keepDiacritics.keepDiacritics) {
|
||||||
|
defaultResult1 = _module1.default(`${arg1}`);
|
||||||
|
}
|
||||||
|
if (defaultResult1.length > defaultResult.length) {
|
||||||
|
NO_MATCH = obj2.NO_MATCH;
|
||||||
|
} else if (defaultResult === defaultResult1) {
|
||||||
|
NO_MATCH = obj2.CASE_SENSITIVE_EQUAL;
|
||||||
|
} else {
|
||||||
|
const str2 = defaultResult.toLowerCase();
|
||||||
|
const formatted = defaultResult1.toLowerCase();
|
||||||
|
if (str2 === formatted) {
|
||||||
|
NO_MATCH = obj2.EQUAL;
|
||||||
|
} else if (str2.startsWith(formatted)) {
|
||||||
|
NO_MATCH = obj2.STARTS_WITH;
|
||||||
|
} else if (str2.includes(` ${arr3}`)) {
|
||||||
|
NO_MATCH = obj2.WORD_STARTS_WITH;
|
||||||
|
} else if (str2.includes(formatted)) {
|
||||||
|
NO_MATCH = obj2.CONTAINS;
|
||||||
|
} else if (1 === formatted.length) {
|
||||||
|
NO_MATCH = obj2.NO_MATCH;
|
||||||
|
} else {
|
||||||
|
let c0 = "";
|
||||||
|
let parts = str2.split(" ");
|
||||||
|
let item = parts.forEach((item) => {
|
||||||
|
const parts = item.split("-");
|
||||||
|
item = parts.forEach((item) => {
|
||||||
|
closure_0 = closure_0 + item.substr(0, 1);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
if (c0.includes(formatted)) {
|
||||||
|
NO_MATCH = obj2.ACRONYM;
|
||||||
|
} else {
|
||||||
|
let num4 = 0;
|
||||||
|
let num5 = 0;
|
||||||
|
let num6 = -1;
|
||||||
|
if (0 < str2.length) {
|
||||||
|
while (str2[num4] !== tmp5) {
|
||||||
|
let sum = num4 + 1;
|
||||||
|
num4 = sum;
|
||||||
|
num5 = 0;
|
||||||
|
num6 = -1;
|
||||||
|
}
|
||||||
|
num6 = num4 + 1;
|
||||||
|
num5 = 1;
|
||||||
|
}
|
||||||
|
if (num6 < 0) {
|
||||||
|
NO_MATCH = obj2.NO_MATCH;
|
||||||
|
} else {
|
||||||
|
let tmp16 = num5;
|
||||||
|
let num8 = 1;
|
||||||
|
let tmp17 = num6;
|
||||||
|
let tmp18 = num5;
|
||||||
|
let tmp19 = num6;
|
||||||
|
if (1 < formatted.length) {
|
||||||
|
while (true) {
|
||||||
|
let length2 = str2.length;
|
||||||
|
let tmp11 = tmp17;
|
||||||
|
let sum2 = tmp16;
|
||||||
|
let num7 = -1;
|
||||||
|
if (tmp17 < length2) {
|
||||||
|
while (str2[tmp11] !== tmp8) {
|
||||||
|
let sum1 = tmp11 + 1;
|
||||||
|
tmp11 = sum1;
|
||||||
|
sum2 = tmp16;
|
||||||
|
num7 = -1;
|
||||||
|
}
|
||||||
|
sum2 = tmp16 + 1;
|
||||||
|
num7 = tmp11 + 1;
|
||||||
|
}
|
||||||
|
if (-1 >= num7) {
|
||||||
|
break;
|
||||||
|
} else {
|
||||||
|
num8 = num8 + 1;
|
||||||
|
tmp16 = sum2;
|
||||||
|
tmp17 = num7;
|
||||||
|
tmp18 = sum2;
|
||||||
|
tmp19 = num7;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
NO_MATCH = obj2.NO_MATCH;
|
||||||
|
}
|
||||||
|
NO_MATCH = obj2.MATCHES + tmp18 / formatted.length * (1 / (tmp19 - num6));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return NO_MATCH;
|
||||||
|
}
|
||||||
|
if (_extends) {
|
||||||
|
if (typeof _extends === "object") {
|
||||||
|
let obj = _extends;
|
||||||
|
}
|
||||||
|
let _module1 = removeAccents;
|
||||||
|
if (_module1) {
|
||||||
|
let tmp4;
|
||||||
|
if (typeof _module1 === "object") {
|
||||||
|
let str2 = "default";
|
||||||
|
tmp4 = _module1;
|
||||||
|
}
|
||||||
|
function matchSorter(valueResult, query, arg2) {
|
||||||
|
let length;
|
||||||
|
let threshold;
|
||||||
|
let closure_0 = query;
|
||||||
|
let tmp = arg2;
|
||||||
|
obj = arg2;
|
||||||
|
if (undefined === arg2) {
|
||||||
|
obj = {};
|
||||||
|
tmp = obj;
|
||||||
|
}
|
||||||
|
({ keys: obj2, threshold } = tmp);
|
||||||
|
if (undefined === threshold) {
|
||||||
|
const tmp2 = obj2;
|
||||||
|
threshold = obj2.MATCHES;
|
||||||
|
}
|
||||||
|
let baseSort = tmp.baseSort;
|
||||||
|
if (undefined === baseSort) {
|
||||||
|
baseSort = threshold;
|
||||||
|
}
|
||||||
|
let fn = tmp.sorter;
|
||||||
|
if (undefined === fn) {
|
||||||
|
fn = (arr) => arr.sort((arg0, arg1) => {
|
||||||
|
let keyIndex;
|
||||||
|
let keyIndex2;
|
||||||
|
let num;
|
||||||
|
let rank;
|
||||||
|
let rank2;
|
||||||
|
({ rank, keyIndex } = arg0);
|
||||||
|
({ rank: rank2, keyIndex: keyIndex2 } = arg1);
|
||||||
|
if (rank === rank2) {
|
||||||
|
let num2;
|
||||||
|
if (keyIndex === keyIndex2) {
|
||||||
|
num2 = tmp(arg0, arg1);
|
||||||
|
} else {
|
||||||
|
num2 = 1;
|
||||||
|
if (keyIndex < keyIndex2) {
|
||||||
|
num2 = -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
num = num2;
|
||||||
|
} else {
|
||||||
|
num = 1;
|
||||||
|
if (rank > rank2) {
|
||||||
|
num = -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return num;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
const fnResult = fn(valueResult.reduce(function reduceItemsToRanked(arr, rankedValue, index) {
|
||||||
|
let reduced;
|
||||||
|
let tmp;
|
||||||
|
let closure_1 = obj;
|
||||||
|
if (length) {
|
||||||
|
const items = [];
|
||||||
|
let num4 = 0;
|
||||||
|
if (0 < length.length) {
|
||||||
|
while (true) {
|
||||||
|
let defaultResult;
|
||||||
|
let str3Result;
|
||||||
|
let items4;
|
||||||
|
let tmp6 = arr[num4];
|
||||||
|
if (typeof tmp6 === "string") {
|
||||||
|
defaultResult = closure_5;
|
||||||
|
} else {
|
||||||
|
defaultResult = obj.default({}, closure_5, tmp6);
|
||||||
|
}
|
||||||
|
let str3 = tmp6;
|
||||||
|
if (typeof tmp6 === "object") {
|
||||||
|
str3 = tmp6.key;
|
||||||
|
}
|
||||||
|
if (typeof str3 === "function") {
|
||||||
|
str3Result = str3(rankedValue);
|
||||||
|
} else {
|
||||||
|
str3Result = null;
|
||||||
|
if (null != rankedValue) {
|
||||||
|
let _Object = Object;
|
||||||
|
hasOwnProperty = Object.hasOwnProperty;
|
||||||
|
if (hasOwnProperty.call(rankedValue, str3)) {
|
||||||
|
str3Result = rankedValue[str3];
|
||||||
|
} else {
|
||||||
|
let applyResult;
|
||||||
|
let num7;
|
||||||
|
str3Result = null;
|
||||||
|
if (str3.includes(".")) {
|
||||||
|
let parts = str3.split(".");
|
||||||
|
let items1 = [rankedValue];
|
||||||
|
let length2 = parts.length;
|
||||||
|
let num5 = 0;
|
||||||
|
let arr5 = items1;
|
||||||
|
let tmp10 = items1;
|
||||||
|
if (0 < length2) {
|
||||||
|
do {
|
||||||
|
let tmp11 = parts[num5];
|
||||||
|
let items2 = [];
|
||||||
|
let length3 = arr5.length;
|
||||||
|
let num6 = 0;
|
||||||
|
let tmp14 = items2;
|
||||||
|
if (0 < length3) {
|
||||||
|
do {
|
||||||
|
let tmp15 = arr5[num6];
|
||||||
|
let combined = items2;
|
||||||
|
if (null != tmp15) {
|
||||||
|
let _Object2 = Object;
|
||||||
|
let hasOwnProperty2 = Object.hasOwnProperty;
|
||||||
|
if (hasOwnProperty2.call(tmp15, tmp11)) {
|
||||||
|
let tmp19 = tmp15[tmp11];
|
||||||
|
combined = items2;
|
||||||
|
if (null != tmp19) {
|
||||||
|
let arr2 = items2.push(tmp19);
|
||||||
|
combined = items2;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
combined = items2;
|
||||||
|
if ("*" === tmp11) {
|
||||||
|
combined = items2.concat(tmp15);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
num6 = num6 + 1;
|
||||||
|
items2 = combined;
|
||||||
|
tmp14 = combined;
|
||||||
|
} while (num6 < length3);
|
||||||
|
}
|
||||||
|
num5 = num5 + 1;
|
||||||
|
arr5 = tmp14;
|
||||||
|
tmp10 = tmp14;
|
||||||
|
} while (num5 < length2);
|
||||||
|
}
|
||||||
|
let _Array = Array;
|
||||||
|
applyResult = tmp10;
|
||||||
|
if (Array.isArray(tmp10[0])) {
|
||||||
|
let items3 = [];
|
||||||
|
let concat = items3.concat;
|
||||||
|
applyResult = concat.apply(items3, tmp10);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let length4 = applyResult.length;
|
||||||
|
for (let num7 = 0; num7 < length4; num7 = num7 + 1) {
|
||||||
|
obj = { itemValue: applyResult[num7], attributes: defaultResult };
|
||||||
|
let arr3 = items.push(obj);
|
||||||
|
}
|
||||||
|
num4 = num4 + 1;
|
||||||
|
if (num4 >= length) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (null == str3Result) {
|
||||||
|
items4 = [];
|
||||||
|
} else {
|
||||||
|
let _Array2 = Array;
|
||||||
|
items4 = str3Result;
|
||||||
|
if (!Array.isArray(str3Result)) {
|
||||||
|
let _String = String;
|
||||||
|
let items5 = [String(str3Result)];
|
||||||
|
items4 = items5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
applyResult = items4;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
obj2 = { rankedValue, rank: obj2.NO_MATCH, keyIndex: -1, keyThreshold: obj.threshold };
|
||||||
|
reduced = items.reduce((acc, item, index) => {
|
||||||
|
let attributes;
|
||||||
|
let itemValue;
|
||||||
|
let keyIndex;
|
||||||
|
let keyThreshold;
|
||||||
|
let maxRanking;
|
||||||
|
let minRanking;
|
||||||
|
let rank;
|
||||||
|
let rankedValue;
|
||||||
|
({ rank, rankedValue, keyIndex, keyThreshold } = acc);
|
||||||
|
({ itemValue, attributes } = item);
|
||||||
|
const tmp = baseSort(itemValue, closure_0, closure_1);
|
||||||
|
({ minRanking, maxRanking, threshold } = attributes);
|
||||||
|
if (tmp >= minRanking) {
|
||||||
|
minRanking = tmp;
|
||||||
|
if (tmp > maxRanking) {
|
||||||
|
minRanking = maxRanking;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (minRanking > rank) {
|
||||||
|
keyIndex = index;
|
||||||
|
rankedValue = itemValue;
|
||||||
|
keyThreshold = threshold;
|
||||||
|
rank = minRanking;
|
||||||
|
}
|
||||||
|
return { rankedValue, rank, keyIndex, keyThreshold };
|
||||||
|
}, obj2);
|
||||||
|
} else {
|
||||||
|
reduced = { rankedValue, rank: getMatchRanking(rankedValue, tmp, tmp2), keyIndex: -1, keyThreshold: tmp2.threshold };
|
||||||
|
}
|
||||||
|
let keyThreshold = reduced.keyThreshold;
|
||||||
|
let rank = reduced.rank;
|
||||||
|
if (undefined === keyThreshold) {
|
||||||
|
keyThreshold = threshold;
|
||||||
|
}
|
||||||
|
if (rank >= keyThreshold) {
|
||||||
|
const obj3 = { item: rankedValue, index };
|
||||||
|
arr.push(obj.default({}, reduced, obj3));
|
||||||
|
}
|
||||||
|
return arr;
|
||||||
|
}, []));
|
||||||
|
return fnResult.map((item) => item.item);
|
||||||
|
}
|
||||||
|
_module1 = tmp4;
|
||||||
|
let obj2 = { CASE_SENSITIVE_EQUAL: 7, EQUAL: 6, STARTS_WITH: 5, WORD_STARTS_WITH: 4, CONTAINS: 3, ACRONYM: 2, MATCHES: 1, NO_MATCH: 0 };
|
||||||
|
matchSorter.rankings = obj2;
|
||||||
|
function defaultBaseSortFn(rankedValue, rankedValue2) {
|
||||||
|
const StringResult = String(rankedValue.rankedValue);
|
||||||
|
return StringResult.localeCompare(String(rankedValue2.rankedValue));
|
||||||
|
}
|
||||||
|
let closure_5 = { maxRanking: Infinity, minRanking: -Infinity };
|
||||||
|
exports.defaultBaseSortFn = defaultBaseSortFn;
|
||||||
|
exports.matchSorter = matchSorter;
|
||||||
|
exports.rankings = obj2;
|
||||||
|
}
|
||||||
|
let obj3 = { default: _module1 };
|
||||||
|
tmp4 = obj3;
|
||||||
|
}
|
||||||
|
obj = { default: _extends };
|
||||||
38
alpha/source/__helpers/07xxx/7035__extends.js
Normal file
38
alpha/source/__helpers/07xxx/7035__extends.js
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
// Module ID: 7035
|
||||||
|
// Function ID: 7036
|
||||||
|
// Name: _extends
|
||||||
|
// Dependencies: []
|
||||||
|
|
||||||
|
// Module 7035 (_extends)
|
||||||
|
let hasOwnProperty;
|
||||||
|
|
||||||
|
function _extends() {
|
||||||
|
let tmp = module;
|
||||||
|
if (Object.assign) {
|
||||||
|
const _Object = Object;
|
||||||
|
exports = assign.bind();
|
||||||
|
} else {
|
||||||
|
exports = function(arg0) {
|
||||||
|
let num;
|
||||||
|
for (let num = 1; num < arguments.length; num = num + 1) {
|
||||||
|
let tmp = arguments[num];
|
||||||
|
for (const key10011 in tmp) {
|
||||||
|
hasOwnProperty = {}.hasOwnProperty;
|
||||||
|
if (!hasOwnProperty.call(tmp, key10011)) {
|
||||||
|
continue;
|
||||||
|
} else {
|
||||||
|
arg0[key10011] = tmp[key10011];
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return arg0;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
tmp.exports = exports;
|
||||||
|
return exports(...arguments);
|
||||||
|
}
|
||||||
|
exports = _extends;
|
||||||
|
|
||||||
|
export default _extends;
|
||||||
|
|
@ -1,204 +0,0 @@
|
||||||
// Module ID: 7838
|
|
||||||
// Function ID: 7839
|
|
||||||
// Name: _slicedToArray
|
|
||||||
// Dependencies: [32, 7823]
|
|
||||||
|
|
||||||
// Module 7838 (_slicedToArray)
|
|
||||||
import _modDef7823 from "module_7823" /* 7823 */;
|
|
||||||
import _slicedToArray from "_slicedToArray" /* 32 */;
|
|
||||||
|
|
||||||
function calculateGPSValue(str) {
|
|
||||||
let tmp2;
|
|
||||||
[tmp2, str] = str.split(",");
|
|
||||||
_slicedToArray(str.split(","), 2);
|
|
||||||
if (undefined !== tmp2) {
|
|
||||||
if (undefined !== str) {
|
|
||||||
const _parseFloat = parseFloat;
|
|
||||||
const parsed = parseFloat(tmp2);
|
|
||||||
const _parseFloat2 = parseFloat;
|
|
||||||
const parsed1 = parseFloat(str);
|
|
||||||
const _Number = Number;
|
|
||||||
const charAtResult = str.charAt(str.length - 1);
|
|
||||||
if (!Number.isNaN(parsed)) {
|
|
||||||
const _Number2 = Number;
|
|
||||||
if (!Number.isNaN(parsed1)) {
|
|
||||||
return "" + (parsed + parsed1 / 60) + charAtResult;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return str;
|
|
||||||
}
|
|
||||||
|
|
||||||
export default {
|
|
||||||
"tiff:Orientation": (arg0) => {
|
|
||||||
let str = "Horizontal (normal)";
|
|
||||||
if ("1" !== arg0) {
|
|
||||||
let str14 = "Mirror horizontal";
|
|
||||||
if ("2" !== arg0) {
|
|
||||||
let str2 = "Rotate 180";
|
|
||||||
if ("3" !== arg0) {
|
|
||||||
let str4 = "Mirror vertical";
|
|
||||||
if ("4" !== arg0) {
|
|
||||||
let str6 = "Mirror horizontal and rotate 270 CW";
|
|
||||||
if ("5" !== arg0) {
|
|
||||||
let str8 = "Rotate 90 CW";
|
|
||||||
if ("6" !== arg0) {
|
|
||||||
let str10 = "Mirror horizontal and rotate 90 CW";
|
|
||||||
if ("7" !== arg0) {
|
|
||||||
let str12 = "Rotate 270 CW";
|
|
||||||
if ("8" !== arg0) {
|
|
||||||
str12 = arg0;
|
|
||||||
}
|
|
||||||
str10 = str12;
|
|
||||||
}
|
|
||||||
str8 = str10;
|
|
||||||
}
|
|
||||||
str6 = str8;
|
|
||||||
}
|
|
||||||
str4 = str6;
|
|
||||||
}
|
|
||||||
str2 = str4;
|
|
||||||
}
|
|
||||||
str14 = str2;
|
|
||||||
}
|
|
||||||
str = str14;
|
|
||||||
}
|
|
||||||
return str;
|
|
||||||
},
|
|
||||||
"tiff:ResolutionUnit": (match) => {
|
|
||||||
const obj = _modDef7823;
|
|
||||||
return obj.ResolutionUnit(parseInt(match, 10));
|
|
||||||
},
|
|
||||||
"tiff:XResolution": (str) => {
|
|
||||||
const obj = /^-?\d+\/-?\d+$/;
|
|
||||||
const XResolution = _modDef7823.XResolution;
|
|
||||||
let XResolutionResult = str;
|
|
||||||
if (obj.test(str)) {
|
|
||||||
XResolutionResult = XResolution(str.split("/"));
|
|
||||||
}
|
|
||||||
return XResolutionResult;
|
|
||||||
},
|
|
||||||
"tiff:YResolution": (str) => {
|
|
||||||
const obj = /^-?\d+\/-?\d+$/;
|
|
||||||
const YResolution = _modDef7823.YResolution;
|
|
||||||
let YResolutionResult = str;
|
|
||||||
if (obj.test(str)) {
|
|
||||||
YResolutionResult = YResolution(str.split("/"));
|
|
||||||
}
|
|
||||||
return YResolutionResult;
|
|
||||||
},
|
|
||||||
"exif:ApertureValue": (str) => {
|
|
||||||
const obj = /^-?\d+\/-?\d+$/;
|
|
||||||
const ApertureValue = _modDef7823.ApertureValue;
|
|
||||||
let ApertureValueResult = str;
|
|
||||||
if (obj.test(str)) {
|
|
||||||
ApertureValueResult = ApertureValue(str.split("/"));
|
|
||||||
}
|
|
||||||
return ApertureValueResult;
|
|
||||||
},
|
|
||||||
"exif:GPSLatitude": calculateGPSValue,
|
|
||||||
"exif:GPSLongitude": calculateGPSValue,
|
|
||||||
"exif:FNumber": (str) => {
|
|
||||||
const obj = /^-?\d+\/-?\d+$/;
|
|
||||||
const FNumber = _modDef7823.FNumber;
|
|
||||||
let FNumberResult = str;
|
|
||||||
if (obj.test(str)) {
|
|
||||||
FNumberResult = FNumber(str.split("/"));
|
|
||||||
}
|
|
||||||
return FNumberResult;
|
|
||||||
},
|
|
||||||
"exif:FocalLength": (str) => {
|
|
||||||
const obj = /^-?\d+\/-?\d+$/;
|
|
||||||
const FocalLength = _modDef7823.FocalLength;
|
|
||||||
let FocalLengthResult = str;
|
|
||||||
if (obj.test(str)) {
|
|
||||||
FocalLengthResult = FocalLength(str.split("/"));
|
|
||||||
}
|
|
||||||
return FocalLengthResult;
|
|
||||||
},
|
|
||||||
"exif:FocalPlaneResolutionUnit": (match) => {
|
|
||||||
const obj = _modDef7823;
|
|
||||||
return obj.FocalPlaneResolutionUnit(parseInt(match, 10));
|
|
||||||
},
|
|
||||||
"exif:ColorSpace": (match) => {
|
|
||||||
let parsed;
|
|
||||||
const ColorSpace = _modDef7823.ColorSpace;
|
|
||||||
_modDef7823;
|
|
||||||
if ("0x" === match.substring(0, 2)) {
|
|
||||||
const _parseInt2 = parseInt;
|
|
||||||
parsed = parseInt(match.substring(2), 16);
|
|
||||||
} else {
|
|
||||||
const _parseInt = parseInt;
|
|
||||||
parsed = parseInt(match, 10);
|
|
||||||
}
|
|
||||||
return ColorSpace(parsed);
|
|
||||||
},
|
|
||||||
"exif:ComponentsConfiguration": (arg0, str) => {
|
|
||||||
const obj = /^\d, \d, \d, \d$/;
|
|
||||||
if (obj.test(str)) {
|
|
||||||
const parts = str.split(", ");
|
|
||||||
const mapped = parts.map((item) => item.charCodeAt(0));
|
|
||||||
const obj2 = _modDef7823;
|
|
||||||
return obj2.ComponentsConfiguration(mapped);
|
|
||||||
} else {
|
|
||||||
return str;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"exif:Contrast": (match) => {
|
|
||||||
const obj = _modDef7823;
|
|
||||||
return obj.Contrast(parseInt(match, 10));
|
|
||||||
},
|
|
||||||
"exif:CustomRendered": (match) => {
|
|
||||||
const obj = _modDef7823;
|
|
||||||
return obj.CustomRendered(parseInt(match, 10));
|
|
||||||
},
|
|
||||||
"exif:ExposureMode": (match) => {
|
|
||||||
const obj = _modDef7823;
|
|
||||||
return obj.ExposureMode(parseInt(match, 10));
|
|
||||||
},
|
|
||||||
"exif:ExposureProgram": (match) => {
|
|
||||||
const obj = _modDef7823;
|
|
||||||
return obj.ExposureProgram(parseInt(match, 10));
|
|
||||||
},
|
|
||||||
"exif:ExposureTime": (str) => {
|
|
||||||
let ExposureTimeResult = str;
|
|
||||||
const obj = /^-?\d+\/-?\d+$/;
|
|
||||||
if (obj.test(str)) {
|
|
||||||
const ExposureTime = _modDef7823.ExposureTime;
|
|
||||||
_modDef7823;
|
|
||||||
const parts = str.split("/");
|
|
||||||
ExposureTimeResult = ExposureTime(parts.map((item) => parseInt(item, 10)));
|
|
||||||
}
|
|
||||||
return ExposureTimeResult;
|
|
||||||
},
|
|
||||||
"exif:MeteringMode": (match) => {
|
|
||||||
const obj = _modDef7823;
|
|
||||||
return obj.MeteringMode(parseInt(match, 10));
|
|
||||||
},
|
|
||||||
"exif:Saturation": (match) => {
|
|
||||||
const obj = _modDef7823;
|
|
||||||
return obj.Saturation(parseInt(match, 10));
|
|
||||||
},
|
|
||||||
"exif:SceneCaptureType": (match) => {
|
|
||||||
const obj = _modDef7823;
|
|
||||||
return obj.SceneCaptureType(parseInt(match, 10));
|
|
||||||
},
|
|
||||||
"exif:Sharpness": (match) => {
|
|
||||||
const obj = _modDef7823;
|
|
||||||
return obj.Sharpness(parseInt(match, 10));
|
|
||||||
},
|
|
||||||
"exif:ShutterSpeedValue": (str) => {
|
|
||||||
const obj = /^-?\d+\/-?\d+$/;
|
|
||||||
const ShutterSpeedValue = _modDef7823.ShutterSpeedValue;
|
|
||||||
let ShutterSpeedValueResult = str;
|
|
||||||
if (obj.test(str)) {
|
|
||||||
ShutterSpeedValueResult = ShutterSpeedValue(str.split("/"));
|
|
||||||
}
|
|
||||||
return ShutterSpeedValueResult;
|
|
||||||
},
|
|
||||||
"exif:WhiteBalance": (match) => {
|
|
||||||
const obj = _modDef7823;
|
|
||||||
return obj.WhiteBalance(parseInt(match, 10));
|
|
||||||
}
|
|
||||||
};
|
|
||||||
204
alpha/source/__helpers/07xxx/7847__slicedToArray.js
Normal file
204
alpha/source/__helpers/07xxx/7847__slicedToArray.js
Normal file
|
|
@ -0,0 +1,204 @@
|
||||||
|
// Module ID: 7847
|
||||||
|
// Function ID: 7848
|
||||||
|
// Name: _slicedToArray
|
||||||
|
// Dependencies: [32, 7832]
|
||||||
|
|
||||||
|
// Module 7847 (_slicedToArray)
|
||||||
|
import _modDef7832 from "module_7832" /* 7832 */;
|
||||||
|
import _slicedToArray from "_slicedToArray" /* 32 */;
|
||||||
|
|
||||||
|
function calculateGPSValue(str) {
|
||||||
|
let tmp2;
|
||||||
|
[tmp2, str] = str.split(",");
|
||||||
|
_slicedToArray(str.split(","), 2);
|
||||||
|
if (undefined !== tmp2) {
|
||||||
|
if (undefined !== str) {
|
||||||
|
const _parseFloat = parseFloat;
|
||||||
|
const parsed = parseFloat(tmp2);
|
||||||
|
const _parseFloat2 = parseFloat;
|
||||||
|
const parsed1 = parseFloat(str);
|
||||||
|
const _Number = Number;
|
||||||
|
const charAtResult = str.charAt(str.length - 1);
|
||||||
|
if (!Number.isNaN(parsed)) {
|
||||||
|
const _Number2 = Number;
|
||||||
|
if (!Number.isNaN(parsed1)) {
|
||||||
|
return "" + (parsed + parsed1 / 60) + charAtResult;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default {
|
||||||
|
"tiff:Orientation": (arg0) => {
|
||||||
|
let str = "Horizontal (normal)";
|
||||||
|
if ("1" !== arg0) {
|
||||||
|
let str14 = "Mirror horizontal";
|
||||||
|
if ("2" !== arg0) {
|
||||||
|
let str2 = "Rotate 180";
|
||||||
|
if ("3" !== arg0) {
|
||||||
|
let str4 = "Mirror vertical";
|
||||||
|
if ("4" !== arg0) {
|
||||||
|
let str6 = "Mirror horizontal and rotate 270 CW";
|
||||||
|
if ("5" !== arg0) {
|
||||||
|
let str8 = "Rotate 90 CW";
|
||||||
|
if ("6" !== arg0) {
|
||||||
|
let str10 = "Mirror horizontal and rotate 90 CW";
|
||||||
|
if ("7" !== arg0) {
|
||||||
|
let str12 = "Rotate 270 CW";
|
||||||
|
if ("8" !== arg0) {
|
||||||
|
str12 = arg0;
|
||||||
|
}
|
||||||
|
str10 = str12;
|
||||||
|
}
|
||||||
|
str8 = str10;
|
||||||
|
}
|
||||||
|
str6 = str8;
|
||||||
|
}
|
||||||
|
str4 = str6;
|
||||||
|
}
|
||||||
|
str2 = str4;
|
||||||
|
}
|
||||||
|
str14 = str2;
|
||||||
|
}
|
||||||
|
str = str14;
|
||||||
|
}
|
||||||
|
return str;
|
||||||
|
},
|
||||||
|
"tiff:ResolutionUnit": (match) => {
|
||||||
|
const obj = _modDef7832;
|
||||||
|
return obj.ResolutionUnit(parseInt(match, 10));
|
||||||
|
},
|
||||||
|
"tiff:XResolution": (str) => {
|
||||||
|
const obj = /^-?\d+\/-?\d+$/;
|
||||||
|
const XResolution = _modDef7832.XResolution;
|
||||||
|
let XResolutionResult = str;
|
||||||
|
if (obj.test(str)) {
|
||||||
|
XResolutionResult = XResolution(str.split("/"));
|
||||||
|
}
|
||||||
|
return XResolutionResult;
|
||||||
|
},
|
||||||
|
"tiff:YResolution": (str) => {
|
||||||
|
const obj = /^-?\d+\/-?\d+$/;
|
||||||
|
const YResolution = _modDef7832.YResolution;
|
||||||
|
let YResolutionResult = str;
|
||||||
|
if (obj.test(str)) {
|
||||||
|
YResolutionResult = YResolution(str.split("/"));
|
||||||
|
}
|
||||||
|
return YResolutionResult;
|
||||||
|
},
|
||||||
|
"exif:ApertureValue": (str) => {
|
||||||
|
const obj = /^-?\d+\/-?\d+$/;
|
||||||
|
const ApertureValue = _modDef7832.ApertureValue;
|
||||||
|
let ApertureValueResult = str;
|
||||||
|
if (obj.test(str)) {
|
||||||
|
ApertureValueResult = ApertureValue(str.split("/"));
|
||||||
|
}
|
||||||
|
return ApertureValueResult;
|
||||||
|
},
|
||||||
|
"exif:GPSLatitude": calculateGPSValue,
|
||||||
|
"exif:GPSLongitude": calculateGPSValue,
|
||||||
|
"exif:FNumber": (str) => {
|
||||||
|
const obj = /^-?\d+\/-?\d+$/;
|
||||||
|
const FNumber = _modDef7832.FNumber;
|
||||||
|
let FNumberResult = str;
|
||||||
|
if (obj.test(str)) {
|
||||||
|
FNumberResult = FNumber(str.split("/"));
|
||||||
|
}
|
||||||
|
return FNumberResult;
|
||||||
|
},
|
||||||
|
"exif:FocalLength": (str) => {
|
||||||
|
const obj = /^-?\d+\/-?\d+$/;
|
||||||
|
const FocalLength = _modDef7832.FocalLength;
|
||||||
|
let FocalLengthResult = str;
|
||||||
|
if (obj.test(str)) {
|
||||||
|
FocalLengthResult = FocalLength(str.split("/"));
|
||||||
|
}
|
||||||
|
return FocalLengthResult;
|
||||||
|
},
|
||||||
|
"exif:FocalPlaneResolutionUnit": (match) => {
|
||||||
|
const obj = _modDef7832;
|
||||||
|
return obj.FocalPlaneResolutionUnit(parseInt(match, 10));
|
||||||
|
},
|
||||||
|
"exif:ColorSpace": (match) => {
|
||||||
|
let parsed;
|
||||||
|
const ColorSpace = _modDef7832.ColorSpace;
|
||||||
|
_modDef7832;
|
||||||
|
if ("0x" === match.substring(0, 2)) {
|
||||||
|
const _parseInt2 = parseInt;
|
||||||
|
parsed = parseInt(match.substring(2), 16);
|
||||||
|
} else {
|
||||||
|
const _parseInt = parseInt;
|
||||||
|
parsed = parseInt(match, 10);
|
||||||
|
}
|
||||||
|
return ColorSpace(parsed);
|
||||||
|
},
|
||||||
|
"exif:ComponentsConfiguration": (arg0, str) => {
|
||||||
|
const obj = /^\d, \d, \d, \d$/;
|
||||||
|
if (obj.test(str)) {
|
||||||
|
const parts = str.split(", ");
|
||||||
|
const mapped = parts.map((item) => item.charCodeAt(0));
|
||||||
|
const obj2 = _modDef7832;
|
||||||
|
return obj2.ComponentsConfiguration(mapped);
|
||||||
|
} else {
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"exif:Contrast": (match) => {
|
||||||
|
const obj = _modDef7832;
|
||||||
|
return obj.Contrast(parseInt(match, 10));
|
||||||
|
},
|
||||||
|
"exif:CustomRendered": (match) => {
|
||||||
|
const obj = _modDef7832;
|
||||||
|
return obj.CustomRendered(parseInt(match, 10));
|
||||||
|
},
|
||||||
|
"exif:ExposureMode": (match) => {
|
||||||
|
const obj = _modDef7832;
|
||||||
|
return obj.ExposureMode(parseInt(match, 10));
|
||||||
|
},
|
||||||
|
"exif:ExposureProgram": (match) => {
|
||||||
|
const obj = _modDef7832;
|
||||||
|
return obj.ExposureProgram(parseInt(match, 10));
|
||||||
|
},
|
||||||
|
"exif:ExposureTime": (str) => {
|
||||||
|
let ExposureTimeResult = str;
|
||||||
|
const obj = /^-?\d+\/-?\d+$/;
|
||||||
|
if (obj.test(str)) {
|
||||||
|
const ExposureTime = _modDef7832.ExposureTime;
|
||||||
|
_modDef7832;
|
||||||
|
const parts = str.split("/");
|
||||||
|
ExposureTimeResult = ExposureTime(parts.map((item) => parseInt(item, 10)));
|
||||||
|
}
|
||||||
|
return ExposureTimeResult;
|
||||||
|
},
|
||||||
|
"exif:MeteringMode": (match) => {
|
||||||
|
const obj = _modDef7832;
|
||||||
|
return obj.MeteringMode(parseInt(match, 10));
|
||||||
|
},
|
||||||
|
"exif:Saturation": (match) => {
|
||||||
|
const obj = _modDef7832;
|
||||||
|
return obj.Saturation(parseInt(match, 10));
|
||||||
|
},
|
||||||
|
"exif:SceneCaptureType": (match) => {
|
||||||
|
const obj = _modDef7832;
|
||||||
|
return obj.SceneCaptureType(parseInt(match, 10));
|
||||||
|
},
|
||||||
|
"exif:Sharpness": (match) => {
|
||||||
|
const obj = _modDef7832;
|
||||||
|
return obj.Sharpness(parseInt(match, 10));
|
||||||
|
},
|
||||||
|
"exif:ShutterSpeedValue": (str) => {
|
||||||
|
const obj = /^-?\d+\/-?\d+$/;
|
||||||
|
const ShutterSpeedValue = _modDef7832.ShutterSpeedValue;
|
||||||
|
let ShutterSpeedValueResult = str;
|
||||||
|
if (obj.test(str)) {
|
||||||
|
ShutterSpeedValueResult = ShutterSpeedValue(str.split("/"));
|
||||||
|
}
|
||||||
|
return ShutterSpeedValueResult;
|
||||||
|
},
|
||||||
|
"exif:WhiteBalance": (match) => {
|
||||||
|
const obj = _modDef7832;
|
||||||
|
return obj.WhiteBalance(parseInt(match, 10));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
@ -1,181 +0,0 @@
|
||||||
// Module ID: 8544
|
|
||||||
// Function ID: 8545
|
|
||||||
// Name: _slicedToArray
|
|
||||||
// Dependencies: [32]
|
|
||||||
// Exports: colorToHex
|
|
||||||
|
|
||||||
// Module 8544 (_slicedToArray)
|
|
||||||
import _slicedToArray from "_slicedToArray" /* 32 */;
|
|
||||||
|
|
||||||
|
|
||||||
export const colorToHex = function colorToHex(arr) {
|
|
||||||
let tmp30;
|
|
||||||
let tmp31;
|
|
||||||
let tmp32;
|
|
||||||
if (undefined === arr) {
|
|
||||||
return arr;
|
|
||||||
} else if ("none" === arr) {
|
|
||||||
return arr;
|
|
||||||
} else if (arr.includes("rgb")) {
|
|
||||||
const match = arr.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);
|
|
||||||
if (match) {
|
|
||||||
const substr = match.slice(1);
|
|
||||||
let str8 = "";
|
|
||||||
if (3 === substr.length) {
|
|
||||||
const _parseInt4 = parseInt;
|
|
||||||
const str17 = parseInt(substr[0], 10);
|
|
||||||
str17.toString(16);
|
|
||||||
const _parseInt5 = parseInt;
|
|
||||||
const text = `#${obj5.padStart(2, "0")}`;
|
|
||||||
const str20 = parseInt(substr[1], 10);
|
|
||||||
str20.toString(16);
|
|
||||||
const _parseInt6 = parseInt;
|
|
||||||
const text1 = `#${obj5.padStart(2, "0")}${obj6.padStart(2, "0")}`;
|
|
||||||
const str21 = parseInt(substr[2], 10);
|
|
||||||
str21.toString(16);
|
|
||||||
str8 = `#${obj5.padStart(2, "0")}${obj6.padStart(2, "0")}${obj7.padStart(2, "0")}`;
|
|
||||||
}
|
|
||||||
return str8;
|
|
||||||
} else {
|
|
||||||
const _Error4 = Error;
|
|
||||||
throw Error("Invalid color: " + arr);
|
|
||||||
}
|
|
||||||
} else if (arr.includes("hsl")) {
|
|
||||||
const match1 = arr.match(/^hsla*\((\d{1,3})\s*[, ]\s*(\d{1,3})%\s*[, ]\s*(\d{1,3})%.*\)/i);
|
|
||||||
if (null === match1) {
|
|
||||||
const _Error3 = Error;
|
|
||||||
throw Error("Invalid color: " + arr);
|
|
||||||
} else {
|
|
||||||
const items = [match1[1] / 360, match1[2] / 100, match1[3] / 100];
|
|
||||||
let str11 = "";
|
|
||||||
let str5 = "";
|
|
||||||
if (3 === items.length) {
|
|
||||||
[tmp30, tmp31, tmp32] = items;
|
|
||||||
let tmp22 = tmp32;
|
|
||||||
let tmp23 = tmp32;
|
|
||||||
let tmp24 = tmp32;
|
|
||||||
_slicedToArray(items, 3);
|
|
||||||
if (0 !== tmp31) {
|
|
||||||
let result;
|
|
||||||
let sum2;
|
|
||||||
let sum5;
|
|
||||||
let sum8;
|
|
||||||
if (tmp32 < 0.5) {
|
|
||||||
result = tmp32 * (1 + tmp31);
|
|
||||||
} else {
|
|
||||||
result = tmp32 + tmp31 - tmp32 * tmp31;
|
|
||||||
}
|
|
||||||
const diff = 2 * tmp32 - result;
|
|
||||||
const sum = tmp30 + 0.3333333333333333;
|
|
||||||
let sum1 = sum;
|
|
||||||
if (sum < 0) {
|
|
||||||
sum1 = sum + 1;
|
|
||||||
}
|
|
||||||
let diff1 = sum1;
|
|
||||||
if (sum1 > 1) {
|
|
||||||
diff1 = sum1 - 1;
|
|
||||||
}
|
|
||||||
if (diff1 < 0.16666666666666666) {
|
|
||||||
sum2 = diff + 6 * (result - diff) * diff1;
|
|
||||||
} else {
|
|
||||||
sum2 = result;
|
|
||||||
if (diff1 >= 0.5) {
|
|
||||||
let sum3 = diff;
|
|
||||||
if (diff1 < 0.6666666666666666) {
|
|
||||||
sum3 = diff + (result - diff) * (0.6666666666666666 - diff1) * 6;
|
|
||||||
}
|
|
||||||
sum2 = sum3;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let sum4 = tmp30;
|
|
||||||
if (tmp30 < 0) {
|
|
||||||
sum4 = tmp30 + 1;
|
|
||||||
}
|
|
||||||
let diff2 = sum4;
|
|
||||||
if (sum4 > 1) {
|
|
||||||
diff2 = sum4 - 1;
|
|
||||||
}
|
|
||||||
if (diff2 < 0.16666666666666666) {
|
|
||||||
sum5 = diff + 6 * (result - diff) * diff2;
|
|
||||||
} else {
|
|
||||||
sum5 = result;
|
|
||||||
if (diff2 >= 0.5) {
|
|
||||||
let sum6 = diff;
|
|
||||||
if (diff2 < 0.6666666666666666) {
|
|
||||||
sum6 = diff + (result - diff) * (0.6666666666666666 - diff2) * 6;
|
|
||||||
}
|
|
||||||
sum5 = sum6;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const diff3 = tmp30 - 0.3333333333333333;
|
|
||||||
let sum7 = diff3;
|
|
||||||
if (diff3 < 0) {
|
|
||||||
sum7 = diff3 + 1;
|
|
||||||
}
|
|
||||||
let diff4 = sum7;
|
|
||||||
if (1 < sum7) {
|
|
||||||
diff4 = sum7 - 1;
|
|
||||||
}
|
|
||||||
if (diff4 < 0.16666666666666666) {
|
|
||||||
sum8 = diff + 6 * (result - diff) * diff4;
|
|
||||||
} else {
|
|
||||||
sum8 = result;
|
|
||||||
if (diff4 >= 0.5) {
|
|
||||||
let sum9 = diff;
|
|
||||||
if (diff4 < 0.6666666666666666) {
|
|
||||||
sum9 = diff + (result - diff) * (0.6666666666666666 - diff4) * 6;
|
|
||||||
}
|
|
||||||
sum8 = sum9;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tmp22 = sum8;
|
|
||||||
tmp23 = sum5;
|
|
||||||
tmp24 = sum2;
|
|
||||||
}
|
|
||||||
const _Math = Math;
|
|
||||||
const items1 = [Math.round(255 * tmp24), , ];
|
|
||||||
const _Math2 = Math;
|
|
||||||
items1[1] = Math.round(255 * tmp23);
|
|
||||||
const _Math3 = Math;
|
|
||||||
items1[2] = Math.round(255 * tmp22);
|
|
||||||
if (3 === items1.length) {
|
|
||||||
const _parseInt = parseInt;
|
|
||||||
const str12 = parseInt(items1[0], 10);
|
|
||||||
str12.toString(16);
|
|
||||||
const _parseInt2 = parseInt;
|
|
||||||
const text2 = `#${obj2.padStart(2, "0")}`;
|
|
||||||
const str15 = parseInt(items1[1], 10);
|
|
||||||
str15.toString(16);
|
|
||||||
const _parseInt3 = parseInt;
|
|
||||||
const text3 = `#${obj2.padStart(2, "0")}${obj3.padStart(2, "0")}`;
|
|
||||||
const str16 = parseInt(items1[2], 10);
|
|
||||||
str16.toString(16);
|
|
||||||
str11 = `#${obj2.padStart(2, "0")}${obj3.padStart(2, "0")}${obj4.padStart(2, "0")}`;
|
|
||||||
}
|
|
||||||
str5 = str11;
|
|
||||||
}
|
|
||||||
return str5;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (arr.includes("#")) {
|
|
||||||
const obj = /^#([0-9A-Fa-f]{3}){1,2}$/i;
|
|
||||||
if (obj.test(arr)) {
|
|
||||||
if (4 === arr.length) {
|
|
||||||
return "#" + arr[1] + arr[1] + arr[2] + arr[2] + arr[3] + arr[3];
|
|
||||||
} else if (7 === arr.length) {
|
|
||||||
return arr;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
const _Error = Error;
|
|
||||||
throw Error("Invalid color: " + arr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const tmp2 = { aliceblue: "#f0f8ff", antiquewhite: "#faebd7", aqua: "#00ffff", aquamarine: "#7fffd4", azure: "#f0ffff", beige: "#f5f5dc", bisque: "#ffe4c4", black: "#000000", blanchedalmond: "#ffebcd", blue: "#0000ff", blueviolet: "#8a2be2", brown: "#a52a2a", burlywood: "#deb887", cadetblue: "#5f9ea0", chartreuse: "#7fff00", chocolate: "#d2691e", coral: "#ff7f50", cornflowerblue: "#6495ed", cornsilk: "#fff8dc", crimson: "#dc143c", cyan: "#00ffff", darkblue: "#00008b", darkcyan: "#008b8b", darkgoldenrod: "#b8860b", darkgray: "#a9a9a9", darkgreen: "#006400", darkkhaki: "#bdb76b", darkmagenta: "#8b008b", darkolivegreen: "#556b2f", darkorange: "#ff8c00", darkorchid: "#9932cc", darkred: "#8b0000", darksalmon: "#e9967a", darkseagreen: "#8fbc8f", darkslateblue: "#483d8b", darkslategray: "#2f4f4f", darkturquoise: "#00ced1", darkviolet: "#9400d3", deeppink: "#ff1493", deepskyblue: "#00bfff", dimgray: "#696969", dodgerblue: "#1e90ff", firebrick: "#b22222", floralwhite: "#fffaf0", forestgreen: "#228b22", fuchsia: "#ff00ff", gainsboro: "#dcdcdc", ghostwhite: "#f8f8ff", gold: "#ffd700", goldenrod: "#daa520", gray: "#808080", green: "#008000", greenyellow: "#adff2f", honeydew: "#f0fff0", hotpink: "#ff69b4", indianred: "#cd5c5c", indigo: "#4b0082", ivory: "#fffff0", khaki: "#f0e68c", lavender: "#e6e6fa", lavenderblush: "#fff0f5", lawngreen: "#7cfc00", lemonchiffon: "#fffacd", lightblue: "#add8e6", lightcoral: "#f08080", lightcyan: "#e0ffff", lightgoldenrodyellow: "#fafad2", lightgrey: "#d3d3d3", lightgreen: "#90ee90", lightpink: "#ffb6c1", lightsalmon: "#ffa07a", lightseagreen: "#20b2aa", lightskyblue: "#87cefa", lightslategray: "#778899", lightsteelblue: "#b0c4de", lightyellow: "#ffffe0", lime: "#00ff00", limegreen: "#32cd32", linen: "#faf0e6", magenta: "#ff00ff", maroon: "#800000", mediumaquamarine: "#66cdaa", mediumblue: "#0000cd", mediumorchid: "#ba55d3", mediumpurple: "#9370d8", mediumseagreen: "#3cb371", mediumslateblue: "#7b68ee", mediumspringgreen: "#00fa9a", mediumturquoise: "#48d1cc", mediumvioletred: "#c71585", midnightblue: "#191970", mintcream: "#f5fffa", mistyrose: "#ffe4e1", moccasin: "#ffe4b5", navajowhite: "#ffdead", navy: "#000080", oldlace: "#fdf5e6", olive: "#808000", olivedrab: "#6b8e23", orange: "#ffa500", orangered: "#ff4500", orchid: "#da70d6", palegoldenrod: "#eee8aa", palegreen: "#98fb98", paleturquoise: "#afeeee", palevioletred: "#d87093", papayawhip: "#ffefd5", peachpuff: "#ffdab9", peru: "#cd853f", pink: "#ffc0cb", plum: "#dda0dd", powderblue: "#b0e0e6", purple: "#800080", rebeccapurple: "#663399", red: "#ff0000", rosybrown: "#bc8f8f", royalblue: "#4169e1", saddlebrown: "#8b4513", salmon: "#fa8072", sandybrown: "#f4a460", seagreen: "#2e8b57", seashell: "#fff5ee", sienna: "#a0522d", silver: "#c0c0c0", skyblue: "#87ceeb", slateblue: "#6a5acd", slategray: "#708090", snow: "#fffafa", springgreen: "#00ff7f", steelblue: "#4682b4", tan: "#d2b48c", teal: "#008080", thistle: "#d8bfd8", tomato: "#ff6347", turquoise: "#40e0d0", violet: "#ee82ee", wheat: "#f5deb3", white: "#ffffff", whitesmoke: "#f5f5f5", yellow: "#ffff00", yellowgreen: "#9acd32" }[arr.toLowerCase(arr)];
|
|
||||||
if (tmp2) {
|
|
||||||
return tmp2;
|
|
||||||
} else {
|
|
||||||
const _Error2 = Error;
|
|
||||||
throw Error("Invalid color: " + arr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
181
alpha/source/__helpers/08xxx/8552__slicedToArray.js
Normal file
181
alpha/source/__helpers/08xxx/8552__slicedToArray.js
Normal file
|
|
@ -0,0 +1,181 @@
|
||||||
|
// Module ID: 8552
|
||||||
|
// Function ID: 8553
|
||||||
|
// Name: _slicedToArray
|
||||||
|
// Dependencies: [32]
|
||||||
|
// Exports: colorToHex
|
||||||
|
|
||||||
|
// Module 8552 (_slicedToArray)
|
||||||
|
import _slicedToArray from "_slicedToArray" /* 32 */;
|
||||||
|
|
||||||
|
|
||||||
|
export const colorToHex = function colorToHex(arr) {
|
||||||
|
let tmp30;
|
||||||
|
let tmp31;
|
||||||
|
let tmp32;
|
||||||
|
if (undefined === arr) {
|
||||||
|
return arr;
|
||||||
|
} else if ("none" === arr) {
|
||||||
|
return arr;
|
||||||
|
} else if (arr.includes("rgb")) {
|
||||||
|
const match = arr.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);
|
||||||
|
if (match) {
|
||||||
|
const substr = match.slice(1);
|
||||||
|
let str8 = "";
|
||||||
|
if (3 === substr.length) {
|
||||||
|
const _parseInt4 = parseInt;
|
||||||
|
const str17 = parseInt(substr[0], 10);
|
||||||
|
str17.toString(16);
|
||||||
|
const _parseInt5 = parseInt;
|
||||||
|
const text = `#${obj5.padStart(2, "0")}`;
|
||||||
|
const str20 = parseInt(substr[1], 10);
|
||||||
|
str20.toString(16);
|
||||||
|
const _parseInt6 = parseInt;
|
||||||
|
const text1 = `#${obj5.padStart(2, "0")}${obj6.padStart(2, "0")}`;
|
||||||
|
const str21 = parseInt(substr[2], 10);
|
||||||
|
str21.toString(16);
|
||||||
|
str8 = `#${obj5.padStart(2, "0")}${obj6.padStart(2, "0")}${obj7.padStart(2, "0")}`;
|
||||||
|
}
|
||||||
|
return str8;
|
||||||
|
} else {
|
||||||
|
const _Error4 = Error;
|
||||||
|
throw Error("Invalid color: " + arr);
|
||||||
|
}
|
||||||
|
} else if (arr.includes("hsl")) {
|
||||||
|
const match1 = arr.match(/^hsla*\((\d{1,3})\s*[, ]\s*(\d{1,3})%\s*[, ]\s*(\d{1,3})%.*\)/i);
|
||||||
|
if (null === match1) {
|
||||||
|
const _Error3 = Error;
|
||||||
|
throw Error("Invalid color: " + arr);
|
||||||
|
} else {
|
||||||
|
const items = [match1[1] / 360, match1[2] / 100, match1[3] / 100];
|
||||||
|
let str11 = "";
|
||||||
|
let str5 = "";
|
||||||
|
if (3 === items.length) {
|
||||||
|
[tmp30, tmp31, tmp32] = items;
|
||||||
|
let tmp22 = tmp32;
|
||||||
|
let tmp23 = tmp32;
|
||||||
|
let tmp24 = tmp32;
|
||||||
|
_slicedToArray(items, 3);
|
||||||
|
if (0 !== tmp31) {
|
||||||
|
let result;
|
||||||
|
let sum2;
|
||||||
|
let sum5;
|
||||||
|
let sum8;
|
||||||
|
if (tmp32 < 0.5) {
|
||||||
|
result = tmp32 * (1 + tmp31);
|
||||||
|
} else {
|
||||||
|
result = tmp32 + tmp31 - tmp32 * tmp31;
|
||||||
|
}
|
||||||
|
const diff = 2 * tmp32 - result;
|
||||||
|
const sum = tmp30 + 0.3333333333333333;
|
||||||
|
let sum1 = sum;
|
||||||
|
if (sum < 0) {
|
||||||
|
sum1 = sum + 1;
|
||||||
|
}
|
||||||
|
let diff1 = sum1;
|
||||||
|
if (sum1 > 1) {
|
||||||
|
diff1 = sum1 - 1;
|
||||||
|
}
|
||||||
|
if (diff1 < 0.16666666666666666) {
|
||||||
|
sum2 = diff + 6 * (result - diff) * diff1;
|
||||||
|
} else {
|
||||||
|
sum2 = result;
|
||||||
|
if (diff1 >= 0.5) {
|
||||||
|
let sum3 = diff;
|
||||||
|
if (diff1 < 0.6666666666666666) {
|
||||||
|
sum3 = diff + (result - diff) * (0.6666666666666666 - diff1) * 6;
|
||||||
|
}
|
||||||
|
sum2 = sum3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let sum4 = tmp30;
|
||||||
|
if (tmp30 < 0) {
|
||||||
|
sum4 = tmp30 + 1;
|
||||||
|
}
|
||||||
|
let diff2 = sum4;
|
||||||
|
if (sum4 > 1) {
|
||||||
|
diff2 = sum4 - 1;
|
||||||
|
}
|
||||||
|
if (diff2 < 0.16666666666666666) {
|
||||||
|
sum5 = diff + 6 * (result - diff) * diff2;
|
||||||
|
} else {
|
||||||
|
sum5 = result;
|
||||||
|
if (diff2 >= 0.5) {
|
||||||
|
let sum6 = diff;
|
||||||
|
if (diff2 < 0.6666666666666666) {
|
||||||
|
sum6 = diff + (result - diff) * (0.6666666666666666 - diff2) * 6;
|
||||||
|
}
|
||||||
|
sum5 = sum6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const diff3 = tmp30 - 0.3333333333333333;
|
||||||
|
let sum7 = diff3;
|
||||||
|
if (diff3 < 0) {
|
||||||
|
sum7 = diff3 + 1;
|
||||||
|
}
|
||||||
|
let diff4 = sum7;
|
||||||
|
if (1 < sum7) {
|
||||||
|
diff4 = sum7 - 1;
|
||||||
|
}
|
||||||
|
if (diff4 < 0.16666666666666666) {
|
||||||
|
sum8 = diff + 6 * (result - diff) * diff4;
|
||||||
|
} else {
|
||||||
|
sum8 = result;
|
||||||
|
if (diff4 >= 0.5) {
|
||||||
|
let sum9 = diff;
|
||||||
|
if (diff4 < 0.6666666666666666) {
|
||||||
|
sum9 = diff + (result - diff) * (0.6666666666666666 - diff4) * 6;
|
||||||
|
}
|
||||||
|
sum8 = sum9;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tmp22 = sum8;
|
||||||
|
tmp23 = sum5;
|
||||||
|
tmp24 = sum2;
|
||||||
|
}
|
||||||
|
const _Math = Math;
|
||||||
|
const items1 = [Math.round(255 * tmp24), , ];
|
||||||
|
const _Math2 = Math;
|
||||||
|
items1[1] = Math.round(255 * tmp23);
|
||||||
|
const _Math3 = Math;
|
||||||
|
items1[2] = Math.round(255 * tmp22);
|
||||||
|
if (3 === items1.length) {
|
||||||
|
const _parseInt = parseInt;
|
||||||
|
const str12 = parseInt(items1[0], 10);
|
||||||
|
str12.toString(16);
|
||||||
|
const _parseInt2 = parseInt;
|
||||||
|
const text2 = `#${obj2.padStart(2, "0")}`;
|
||||||
|
const str15 = parseInt(items1[1], 10);
|
||||||
|
str15.toString(16);
|
||||||
|
const _parseInt3 = parseInt;
|
||||||
|
const text3 = `#${obj2.padStart(2, "0")}${obj3.padStart(2, "0")}`;
|
||||||
|
const str16 = parseInt(items1[2], 10);
|
||||||
|
str16.toString(16);
|
||||||
|
str11 = `#${obj2.padStart(2, "0")}${obj3.padStart(2, "0")}${obj4.padStart(2, "0")}`;
|
||||||
|
}
|
||||||
|
str5 = str11;
|
||||||
|
}
|
||||||
|
return str5;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (arr.includes("#")) {
|
||||||
|
const obj = /^#([0-9A-Fa-f]{3}){1,2}$/i;
|
||||||
|
if (obj.test(arr)) {
|
||||||
|
if (4 === arr.length) {
|
||||||
|
return "#" + arr[1] + arr[1] + arr[2] + arr[2] + arr[3] + arr[3];
|
||||||
|
} else if (7 === arr.length) {
|
||||||
|
return arr;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
const _Error = Error;
|
||||||
|
throw Error("Invalid color: " + arr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const tmp2 = { aliceblue: "#f0f8ff", antiquewhite: "#faebd7", aqua: "#00ffff", aquamarine: "#7fffd4", azure: "#f0ffff", beige: "#f5f5dc", bisque: "#ffe4c4", black: "#000000", blanchedalmond: "#ffebcd", blue: "#0000ff", blueviolet: "#8a2be2", brown: "#a52a2a", burlywood: "#deb887", cadetblue: "#5f9ea0", chartreuse: "#7fff00", chocolate: "#d2691e", coral: "#ff7f50", cornflowerblue: "#6495ed", cornsilk: "#fff8dc", crimson: "#dc143c", cyan: "#00ffff", darkblue: "#00008b", darkcyan: "#008b8b", darkgoldenrod: "#b8860b", darkgray: "#a9a9a9", darkgreen: "#006400", darkkhaki: "#bdb76b", darkmagenta: "#8b008b", darkolivegreen: "#556b2f", darkorange: "#ff8c00", darkorchid: "#9932cc", darkred: "#8b0000", darksalmon: "#e9967a", darkseagreen: "#8fbc8f", darkslateblue: "#483d8b", darkslategray: "#2f4f4f", darkturquoise: "#00ced1", darkviolet: "#9400d3", deeppink: "#ff1493", deepskyblue: "#00bfff", dimgray: "#696969", dodgerblue: "#1e90ff", firebrick: "#b22222", floralwhite: "#fffaf0", forestgreen: "#228b22", fuchsia: "#ff00ff", gainsboro: "#dcdcdc", ghostwhite: "#f8f8ff", gold: "#ffd700", goldenrod: "#daa520", gray: "#808080", green: "#008000", greenyellow: "#adff2f", honeydew: "#f0fff0", hotpink: "#ff69b4", indianred: "#cd5c5c", indigo: "#4b0082", ivory: "#fffff0", khaki: "#f0e68c", lavender: "#e6e6fa", lavenderblush: "#fff0f5", lawngreen: "#7cfc00", lemonchiffon: "#fffacd", lightblue: "#add8e6", lightcoral: "#f08080", lightcyan: "#e0ffff", lightgoldenrodyellow: "#fafad2", lightgrey: "#d3d3d3", lightgreen: "#90ee90", lightpink: "#ffb6c1", lightsalmon: "#ffa07a", lightseagreen: "#20b2aa", lightskyblue: "#87cefa", lightslategray: "#778899", lightsteelblue: "#b0c4de", lightyellow: "#ffffe0", lime: "#00ff00", limegreen: "#32cd32", linen: "#faf0e6", magenta: "#ff00ff", maroon: "#800000", mediumaquamarine: "#66cdaa", mediumblue: "#0000cd", mediumorchid: "#ba55d3", mediumpurple: "#9370d8", mediumseagreen: "#3cb371", mediumslateblue: "#7b68ee", mediumspringgreen: "#00fa9a", mediumturquoise: "#48d1cc", mediumvioletred: "#c71585", midnightblue: "#191970", mintcream: "#f5fffa", mistyrose: "#ffe4e1", moccasin: "#ffe4b5", navajowhite: "#ffdead", navy: "#000080", oldlace: "#fdf5e6", olive: "#808000", olivedrab: "#6b8e23", orange: "#ffa500", orangered: "#ff4500", orchid: "#da70d6", palegoldenrod: "#eee8aa", palegreen: "#98fb98", paleturquoise: "#afeeee", palevioletred: "#d87093", papayawhip: "#ffefd5", peachpuff: "#ffdab9", peru: "#cd853f", pink: "#ffc0cb", plum: "#dda0dd", powderblue: "#b0e0e6", purple: "#800080", rebeccapurple: "#663399", red: "#ff0000", rosybrown: "#bc8f8f", royalblue: "#4169e1", saddlebrown: "#8b4513", salmon: "#fa8072", sandybrown: "#f4a460", seagreen: "#2e8b57", seashell: "#fff5ee", sienna: "#a0522d", silver: "#c0c0c0", skyblue: "#87ceeb", slateblue: "#6a5acd", slategray: "#708090", snow: "#fffafa", springgreen: "#00ff7f", steelblue: "#4682b4", tan: "#d2b48c", teal: "#008080", thistle: "#d8bfd8", tomato: "#ff6347", turquoise: "#40e0d0", violet: "#ee82ee", wheat: "#f5deb3", white: "#ffffff", whitesmoke: "#f5f5f5", yellow: "#ffff00", yellowgreen: "#9acd32" }[arr.toLowerCase(arr)];
|
||||||
|
if (tmp2) {
|
||||||
|
return tmp2;
|
||||||
|
} else {
|
||||||
|
const _Error2 = Error;
|
||||||
|
throw Error("Invalid color: " + arr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
@ -1,37 +0,0 @@
|
||||||
// Module ID: 9286
|
|
||||||
// Function ID: 9287
|
|
||||||
// Name: _slicedToArray
|
|
||||||
// Dependencies: [32, 19]
|
|
||||||
// Exports: useDismissedRouteError
|
|
||||||
|
|
||||||
// Module 9286 (_slicedToArray)
|
|
||||||
import _slicedToArray from "_slicedToArray" /* 32 */;
|
|
||||||
import react from "react" /* 19 */;
|
|
||||||
|
|
||||||
|
|
||||||
export const useDismissedRouteError = function useDismissedRouteError(state) {
|
|
||||||
let first;
|
|
||||||
let setNextDismissedKey;
|
|
||||||
[first, setNextDismissedKey] = react.useState(null);
|
|
||||||
let tmp4 = null;
|
|
||||||
const obj = react;
|
|
||||||
if (first) {
|
|
||||||
const routes = state.routes;
|
|
||||||
const found = routes.find((key) => key.key === first);
|
|
||||||
let name;
|
|
||||||
if (found != null) {
|
|
||||||
name = found.name;
|
|
||||||
}
|
|
||||||
tmp4 = name;
|
|
||||||
}
|
|
||||||
name = tmp4;
|
|
||||||
const items = [tmp4];
|
|
||||||
const effect = obj.useEffect(() => {
|
|
||||||
if (name) {
|
|
||||||
const _HermesInternal = HermesInternal;
|
|
||||||
const _console = console;
|
|
||||||
console.error("The screen '" + tmp + "' was removed natively but didn't get removed from JS state. This can happen if the action was prevented in a 'beforeRemove' listener, which is not fully supported in native-stack.\n\nConsider using a 'usePreventRemove' hook with 'headerBackButtonMenuEnabled: false' to prevent users from natively going back multiple screens.");
|
|
||||||
}
|
|
||||||
}, items);
|
|
||||||
return { setNextDismissedKey };
|
|
||||||
};
|
|
||||||
37
alpha/source/__helpers/09xxx/9324__slicedToArray.js
Normal file
37
alpha/source/__helpers/09xxx/9324__slicedToArray.js
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
// Module ID: 9324
|
||||||
|
// Function ID: 9325
|
||||||
|
// Name: _slicedToArray
|
||||||
|
// Dependencies: [32, 19]
|
||||||
|
// Exports: useDismissedRouteError
|
||||||
|
|
||||||
|
// Module 9324 (_slicedToArray)
|
||||||
|
import _slicedToArray from "_slicedToArray" /* 32 */;
|
||||||
|
import react from "react" /* 19 */;
|
||||||
|
|
||||||
|
|
||||||
|
export const useDismissedRouteError = function useDismissedRouteError(state) {
|
||||||
|
let first;
|
||||||
|
let setNextDismissedKey;
|
||||||
|
[first, setNextDismissedKey] = react.useState(null);
|
||||||
|
let tmp4 = null;
|
||||||
|
const obj = react;
|
||||||
|
if (first) {
|
||||||
|
const routes = state.routes;
|
||||||
|
const found = routes.find((key) => key.key === first);
|
||||||
|
let name;
|
||||||
|
if (found != null) {
|
||||||
|
name = found.name;
|
||||||
|
}
|
||||||
|
tmp4 = name;
|
||||||
|
}
|
||||||
|
name = tmp4;
|
||||||
|
const items = [tmp4];
|
||||||
|
const effect = obj.useEffect(() => {
|
||||||
|
if (name) {
|
||||||
|
const _HermesInternal = HermesInternal;
|
||||||
|
const _console = console;
|
||||||
|
console.error("The screen '" + tmp + "' was removed natively but didn't get removed from JS state. This can happen if the action was prevented in a 'beforeRemove' listener, which is not fully supported in native-stack.\n\nConsider using a 'usePreventRemove' hook with 'headerBackButtonMenuEnabled: false' to prevent users from natively going back multiple screens.");
|
||||||
|
}
|
||||||
|
}, items);
|
||||||
|
return { setNextDismissedKey };
|
||||||
|
};
|
||||||
|
|
@ -1,68 +0,0 @@
|
||||||
// Module ID: 11007
|
|
||||||
// Function ID: 11008
|
|
||||||
// Name: _browserPerformanceTimeOriginMode
|
|
||||||
// Dependencies: [10994]
|
|
||||||
|
|
||||||
// Module 11007 (_browserPerformanceTimeOriginMode)
|
|
||||||
import _mod10994 from "module_10994" /* 10994 */;
|
|
||||||
|
|
||||||
function dateTimestampInSeconds() {
|
|
||||||
return Date.now() / 1000;
|
|
||||||
}
|
|
||||||
let timeOrigin;
|
|
||||||
const _performance = _mod10994.GLOBAL_OBJ.performance;
|
|
||||||
let fn = dateTimestampInSeconds;
|
|
||||||
if (_performance) {
|
|
||||||
fn = dateTimestampInSeconds;
|
|
||||||
if (_performance.now) {
|
|
||||||
const _Date = Date;
|
|
||||||
const timestamp = Date.now();
|
|
||||||
timeOrigin = timestamp - _performance.now();
|
|
||||||
if (null != _performance.timeOrigin) {
|
|
||||||
timeOrigin = _performance.timeOrigin;
|
|
||||||
}
|
|
||||||
fn = () => (timeOrigin + _performance.now()) / 1000;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const _performance2 = _mod10994.GLOBAL_OBJ.performance;
|
|
||||||
if (_performance2) {
|
|
||||||
let tmp4;
|
|
||||||
if (_performance2.now) {
|
|
||||||
const nowResult = _performance2.now();
|
|
||||||
const _Date2 = Date;
|
|
||||||
let timestamp1 = Date.now();
|
|
||||||
let num2 = 3600000;
|
|
||||||
if (_performance2.timeOrigin) {
|
|
||||||
const _Math = Math;
|
|
||||||
num2 = Math.abs(_performance2.timeOrigin + nowResult - timestamp1);
|
|
||||||
}
|
|
||||||
let timeOrigin2 = _performance2.timing;
|
|
||||||
const tmp7 = num2 < 3600000;
|
|
||||||
if (timeOrigin2) {
|
|
||||||
timeOrigin2 = _performance2.timing.navigationStart;
|
|
||||||
}
|
|
||||||
let num3 = 3600000;
|
|
||||||
if (typeof timeOrigin2 === "number") {
|
|
||||||
const _Math2 = Math;
|
|
||||||
num3 = Math.abs(timeOrigin2 + nowResult - timestamp1);
|
|
||||||
}
|
|
||||||
if (!tmp7) {
|
|
||||||
if (num3 >= 3600000) {
|
|
||||||
exports._browserPerformanceTimeOriginMode = "dateNow";
|
|
||||||
}
|
|
||||||
tmp4 = timestamp1;
|
|
||||||
}
|
|
||||||
if (num2 <= num3) {
|
|
||||||
exports._browserPerformanceTimeOriginMode = "timeOrigin";
|
|
||||||
timeOrigin2 = _performance2.timeOrigin;
|
|
||||||
} else {
|
|
||||||
exports._browserPerformanceTimeOriginMode = "navigationStart";
|
|
||||||
}
|
|
||||||
timestamp1 = timeOrigin2;
|
|
||||||
}
|
|
||||||
exports.browserPerformanceTimeOrigin = tmp4;
|
|
||||||
exports.dateTimestampInSeconds = dateTimestampInSeconds;
|
|
||||||
exports.timestampInSeconds = fn;
|
|
||||||
}
|
|
||||||
|
|
||||||
export const _browserPerformanceTimeOriginMode = "none";
|
|
||||||
|
|
@ -1,71 +0,0 @@
|
||||||
// Module ID: 11009
|
|
||||||
// Function ID: 11010
|
|
||||||
// Name: _slicedToArray
|
|
||||||
// Dependencies: [32, 10999]
|
|
||||||
// Exports: getMetricSummaryJsonForSpan, updateMetricSummaryOnSpan
|
|
||||||
|
|
||||||
// Module 11009 (_slicedToArray)
|
|
||||||
import _mod10999 from "module_10999" /* 10999 */;
|
|
||||||
import _slicedToArray from "_slicedToArray" /* 32 */;
|
|
||||||
|
|
||||||
let map, set;
|
|
||||||
|
|
||||||
const _sentryMetrics = "_sentryMetrics";
|
|
||||||
|
|
||||||
export const getMetricSummaryJsonForSpan = function getMetricSummaryJsonForSpan(self) {
|
|
||||||
let tmp11;
|
|
||||||
let tmp9;
|
|
||||||
if (self[_sentryMetrics]) {
|
|
||||||
const obj = {};
|
|
||||||
const tmp3 = self[_sentryMetrics][Symbol.iterator]();
|
|
||||||
while (tmp3 !== undefined) {
|
|
||||||
let tmp8 = _slicedToArray(_slicedToArray(tmp5, 2)[1], 2);
|
|
||||||
[tmp9, tmp11] = tmp8;
|
|
||||||
let arr = obj[tmp9];
|
|
||||||
if (!arr) {
|
|
||||||
let items = [];
|
|
||||||
obj[tmp10] = items;
|
|
||||||
arr = items;
|
|
||||||
}
|
|
||||||
let push = arr.push;
|
|
||||||
let obj2 = _mod10999;
|
|
||||||
let arr2 = push(obj2.dropUndefinedKeys(tmp11));
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
export const updateMetricSummaryOnSpan = function updateMetricSummaryOnSpan(activeSpan, metricType, sanitizeMetricKeyResult, min, sanitizeUnitResult, tags, bucketKey) {
|
|
||||||
let sum;
|
|
||||||
let sum1;
|
|
||||||
let obj = activeSpan[_sentryMetrics];
|
|
||||||
if (!obj) {
|
|
||||||
const _Map = Map;
|
|
||||||
const self = this;
|
|
||||||
const self2 = this;
|
|
||||||
map = new Map();
|
|
||||||
activeSpan[tmp] = map;
|
|
||||||
obj = map;
|
|
||||||
}
|
|
||||||
const combined = "" + metricType + ":" + sanitizeMetricKeyResult + "@" + sanitizeUnitResult;
|
|
||||||
const value = obj.get(bucketKey);
|
|
||||||
if (value) {
|
|
||||||
const range = _slicedToArray(value, 2)[1];
|
|
||||||
const items = [combined, ];
|
|
||||||
const range1 = { min: Math.min(range.min, min), max: Math.max(range.max, min), count: sum, sum: sum1, tags: range.tags };
|
|
||||||
const _Math = Math;
|
|
||||||
const _Math2 = Math;
|
|
||||||
sum = range.count + 1;
|
|
||||||
set = obj.set;
|
|
||||||
range.count = sum;
|
|
||||||
sum1 = range.sum + min;
|
|
||||||
range.sum = sum1;
|
|
||||||
items[1] = range1;
|
|
||||||
const result = set(bucketKey, items);
|
|
||||||
} else {
|
|
||||||
const items1 = [combined, ];
|
|
||||||
const range2 = { min, max: min, count: 1, sum: min, tags };
|
|
||||||
items1[1] = range2;
|
|
||||||
const result1 = obj.set(bucketKey, items1);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
@ -1,101 +0,0 @@
|
||||||
// Module ID: 11058
|
|
||||||
// Function ID: 11059
|
|
||||||
// Name: _slicedToArray
|
|
||||||
// Dependencies: [32]
|
|
||||||
// Exports: disabledUntil, isRateLimited, updateRateLimits
|
|
||||||
|
|
||||||
// Module 11058 (_slicedToArray)
|
|
||||||
import _slicedToArray from "_slicedToArray" /* 32 */;
|
|
||||||
|
|
||||||
function parseRetryAfterHeader(arg0) {
|
|
||||||
let timestamp = arg1;
|
|
||||||
if (arg1 === undefined) {
|
|
||||||
const _Date = Date;
|
|
||||||
timestamp = Date.now();
|
|
||||||
}
|
|
||||||
const parsed = parseInt("" + arg0, 10);
|
|
||||||
if (isNaN(parsed)) {
|
|
||||||
const _Date2 = Date;
|
|
||||||
const _HermesInternal = HermesInternal;
|
|
||||||
const parsed1 = Date.parse("" + arg0);
|
|
||||||
const _isNaN = isNaN;
|
|
||||||
let num2 = 60000;
|
|
||||||
if (!isNaN(parsed1)) {
|
|
||||||
num2 = parsed1 - timestamp;
|
|
||||||
}
|
|
||||||
return num2;
|
|
||||||
} else {
|
|
||||||
return 1000 * parsed;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export const DEFAULT_RETRY_AFTER = 60000;
|
|
||||||
export const disabledUntil = function disabledUntil(all, arg1) {
|
|
||||||
return all[arg1] || all.all || 0;
|
|
||||||
};
|
|
||||||
export const isRateLimited = function isRateLimited(all, arg1) {
|
|
||||||
let timestamp = arg2;
|
|
||||||
if (arg2 === undefined) {
|
|
||||||
const _Date = Date;
|
|
||||||
timestamp = Date.now();
|
|
||||||
}
|
|
||||||
return (all[arg1] || all.all || 0) > timestamp;
|
|
||||||
};
|
|
||||||
export { parseRetryAfterHeader };
|
|
||||||
export const updateRateLimits = function updateRateLimits(arg0, headers) {
|
|
||||||
headers = headers.headers;
|
|
||||||
let timestamp = arg2;
|
|
||||||
const statusCode = headers.statusCode;
|
|
||||||
if (arg2 === undefined) {
|
|
||||||
const _Date = Date;
|
|
||||||
timestamp = Date.now();
|
|
||||||
}
|
|
||||||
const obj = {};
|
|
||||||
const merged = Object.assign(arg0);
|
|
||||||
if (headers && headers["x-sentry-rate-limits"]) {
|
|
||||||
const str2 = (headers && headers["x-sentry-rate-limits"]).trim();
|
|
||||||
const parts = str2.split(",");
|
|
||||||
const iter = parts[Symbol.iterator]();
|
|
||||||
const str8 = iter.next();
|
|
||||||
while (iter !== undefined) {
|
|
||||||
let tmp12 = _slicedToArray(str8.split(":", 5), 5);
|
|
||||||
let str9 = tmp12[1];
|
|
||||||
let str10 = tmp12[4];
|
|
||||||
let _parseInt = parseInt;
|
|
||||||
let parsed = parseInt(tmp12[0], 10);
|
|
||||||
let _isNaN = isNaN;
|
|
||||||
let num6 = 60;
|
|
||||||
if (!isNaN(parsed)) {
|
|
||||||
num6 = parsed;
|
|
||||||
}
|
|
||||||
let result = 1000 * num6;
|
|
||||||
let tmp16 = str9;
|
|
||||||
if (tmp16) {
|
|
||||||
let parts1 = str9.split(";");
|
|
||||||
for (const item10065 of parts1) {
|
|
||||||
let tmp23 = "metric_bucket" === item10065;
|
|
||||||
let tmp22 = item10065;
|
|
||||||
if (tmp23) {
|
|
||||||
tmp23 = str10;
|
|
||||||
}
|
|
||||||
if (tmp23) {
|
|
||||||
let parts2 = str10.split(";");
|
|
||||||
tmp23 = !parts2.includes("custom");
|
|
||||||
}
|
|
||||||
if (!tmp23) {
|
|
||||||
obj[tmp22] = timestamp + result;
|
|
||||||
}
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
obj.all = timestamp + result;
|
|
||||||
}
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
} else if (headers && headers["retry-after"]) {
|
|
||||||
obj.all = timestamp + parseRetryAfterHeader(headers && headers["retry-after"], timestamp);
|
|
||||||
} else if (429 === statusCode) {
|
|
||||||
obj.all = timestamp + 60000;
|
|
||||||
}
|
|
||||||
return obj;
|
|
||||||
};
|
|
||||||
|
|
@ -1,56 +0,0 @@
|
||||||
// Module ID: 11116
|
|
||||||
// Function ID: 11117
|
|
||||||
// Name: _asyncToGenerator
|
|
||||||
// Dependencies: [5, 11117]
|
|
||||||
// Exports: _asyncNullishCoalesce
|
|
||||||
|
|
||||||
// Module 11116 (_asyncToGenerator)
|
|
||||||
import _nullishCoalesce from "_nullishCoalesce" /* 11117 */;
|
|
||||||
import _asyncToGenerator from "_asyncToGenerator" /* 5 */;
|
|
||||||
|
|
||||||
let c2;
|
|
||||||
|
|
||||||
let obj = function _asyncNullishCoalesce2() {
|
|
||||||
obj = _asyncToGenerator(async (arg0, value) => {
|
|
||||||
let closure_0 = arg0;
|
|
||||||
let closure_1 = value;
|
|
||||||
if (c2 === 2) {
|
|
||||||
c2 = 3;
|
|
||||||
throw new TypeError("Generator functions may not be called on executing generators");
|
|
||||||
} else if (tmp2 === 3) {
|
|
||||||
if (arg0 === 1) {
|
|
||||||
throw value;
|
|
||||||
} else if (arg0 === 2) {
|
|
||||||
const obj2 = { value, done: true };
|
|
||||||
return obj2;
|
|
||||||
} else {
|
|
||||||
return { value: "IconComponent", done: null };
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
try {
|
|
||||||
c2 = 2;
|
|
||||||
if (arg0 === 1) {
|
|
||||||
c2 = 3;
|
|
||||||
throw value;
|
|
||||||
} else if (arg0 === 2) {
|
|
||||||
c2 = 3;
|
|
||||||
const obj3 = { value, done: true };
|
|
||||||
return obj3;
|
|
||||||
} else {
|
|
||||||
c2 = 3;
|
|
||||||
const obj4 = { value: obj._nullishCoalesce(closure_0, closure_1), done: true };
|
|
||||||
obj = _nullishCoalesce;
|
|
||||||
return obj4;
|
|
||||||
}
|
|
||||||
} catch (tmp7) {
|
|
||||||
c2 = 3;
|
|
||||||
throw tmp7;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return obj(...arguments);
|
|
||||||
};
|
|
||||||
|
|
||||||
export const _asyncNullishCoalesce = function _asyncNullishCoalesce(arg0, arg1) {
|
|
||||||
return obj(...arguments);
|
|
||||||
};
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
// Module ID: 11117
|
|
||||||
// Function ID: 11118
|
|
||||||
// Name: _nullishCoalesce
|
|
||||||
// Dependencies: []
|
|
||||||
// Exports: _nullishCoalesce
|
|
||||||
|
|
||||||
// Module 11117 (_nullishCoalesce)
|
|
||||||
|
|
||||||
export const _nullishCoalesce = function _nullishCoalesce(arg0, fn) {
|
|
||||||
let tmp = arg0;
|
|
||||||
if (null == arg0) {
|
|
||||||
tmp = fn();
|
|
||||||
}
|
|
||||||
return tmp;
|
|
||||||
};
|
|
||||||
|
|
@ -1,113 +0,0 @@
|
||||||
// Module ID: 11118
|
|
||||||
// Function ID: 11119
|
|
||||||
// Name: _asyncToGenerator
|
|
||||||
// Dependencies: [5]
|
|
||||||
// Exports: _asyncOptionalChain
|
|
||||||
|
|
||||||
// Module 11118 (_asyncToGenerator)
|
|
||||||
import _asyncToGenerator from "_asyncToGenerator" /* 5 */;
|
|
||||||
|
|
||||||
let c2, c3, length;
|
|
||||||
|
|
||||||
let obj = function _asyncOptionalChain2() {
|
|
||||||
obj = _asyncToGenerator(async (arg0, value) => {
|
|
||||||
let closure_0;
|
|
||||||
length = arg0;
|
|
||||||
if (c3 === 2) {
|
|
||||||
c3 = 3;
|
|
||||||
throw new TypeError("Generator functions may not be called on executing generators");
|
|
||||||
} else if (tmp2 === 3) {
|
|
||||||
if (arg0 === 1) {
|
|
||||||
throw value;
|
|
||||||
} else if (arg0 === 2) {
|
|
||||||
const obj2 = { value, done: true };
|
|
||||||
return obj2;
|
|
||||||
} else {
|
|
||||||
return { value: "IconComponent", done: null };
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
try {
|
|
||||||
c3 = 2;
|
|
||||||
if (0 === c2) {
|
|
||||||
if (arg0 === 1) {
|
|
||||||
c3 = 3;
|
|
||||||
throw value;
|
|
||||||
} else if (arg0 === 2) {
|
|
||||||
c3 = 3;
|
|
||||||
const obj3 = { value, done: true };
|
|
||||||
return obj3;
|
|
||||||
} else {
|
|
||||||
let closure_1 = tmp3;
|
|
||||||
let closure_4;
|
|
||||||
let closure_5;
|
|
||||||
let c1;
|
|
||||||
value = length[0];
|
|
||||||
let closure_3 = 1;
|
|
||||||
if (closure_3 < length.length) {
|
|
||||||
closure_4 = length[closure_3];
|
|
||||||
closure_5 = length[closure_3 + 1];
|
|
||||||
closure_3 = closure_3 + 2;
|
|
||||||
if ("optionalAccess" === closure_4) {
|
|
||||||
if (null == value) {
|
|
||||||
c3 = 3;
|
|
||||||
return { value: "IconComponent", done: null };
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ("access" !== closure_4) {
|
|
||||||
if ("optionalAccess" !== closure_4) {
|
|
||||||
const tmp21 = "call" !== closure_4 && "optionalCall" !== closure_4;
|
|
||||||
if (!tmp21) {
|
|
||||||
c2 = 2;
|
|
||||||
c3 = 1;
|
|
||||||
const obj4 = {
|
|
||||||
value: closure_5(() => {
|
|
||||||
const items = [c1, ...HermesBuiltin.copyRestArgs()];
|
|
||||||
return closure_2.call.apply(items);
|
|
||||||
}),
|
|
||||||
done: false
|
|
||||||
};
|
|
||||||
return obj4;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
c1 = value;
|
|
||||||
c2 = 1;
|
|
||||||
c3 = 1;
|
|
||||||
const obj5 = { value: closure_5(value), done: false };
|
|
||||||
return obj5;
|
|
||||||
}
|
|
||||||
c3 = 3;
|
|
||||||
const obj6 = { value, done: true };
|
|
||||||
return obj6;
|
|
||||||
}
|
|
||||||
} else if (1 === c2) {
|
|
||||||
if (arg0 === 1) {
|
|
||||||
c3 = 3;
|
|
||||||
throw value;
|
|
||||||
} else if (arg0 === 2) {
|
|
||||||
c3 = 3;
|
|
||||||
const obj7 = { value, done: true };
|
|
||||||
return obj7;
|
|
||||||
}
|
|
||||||
} else if (arg0 === 1) {
|
|
||||||
c3 = 3;
|
|
||||||
throw value;
|
|
||||||
} else if (arg0 === 2) {
|
|
||||||
c3 = 3;
|
|
||||||
obj = { value, done: true };
|
|
||||||
return obj;
|
|
||||||
} else {
|
|
||||||
c1 = undefined;
|
|
||||||
}
|
|
||||||
} catch (tmp30) {
|
|
||||||
c3 = 3;
|
|
||||||
throw tmp30;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return obj(...arguments);
|
|
||||||
};
|
|
||||||
|
|
||||||
export const _asyncOptionalChain = function _asyncOptionalChain(arg0) {
|
|
||||||
return obj(...arguments);
|
|
||||||
};
|
|
||||||
|
|
@ -1,74 +0,0 @@
|
||||||
// Module ID: 11119
|
|
||||||
// Function ID: 11120
|
|
||||||
// Name: _asyncToGenerator
|
|
||||||
// Dependencies: [5, 11118]
|
|
||||||
// Exports: _asyncOptionalChainDelete
|
|
||||||
|
|
||||||
// Module 11119 (_asyncToGenerator)
|
|
||||||
import _asyncToGenerator2 from "_asyncToGenerator" /* 11118 */;
|
|
||||||
import _asyncToGenerator from "_asyncToGenerator" /* 5 */;
|
|
||||||
|
|
||||||
let c2, c3;
|
|
||||||
|
|
||||||
let obj = function _asyncOptionalChainDelete2() {
|
|
||||||
obj = _asyncToGenerator(async (arg0, value) => {
|
|
||||||
let obj3;
|
|
||||||
let closure_0 = arg0;
|
|
||||||
if (c3 === 2) {
|
|
||||||
c3 = 3;
|
|
||||||
throw new TypeError("Generator functions may not be called on executing generators");
|
|
||||||
} else if (tmp3 === 3) {
|
|
||||||
if (arg0 === 1) {
|
|
||||||
throw value;
|
|
||||||
} else if (arg0 === 2) {
|
|
||||||
const obj2 = { value, done: true };
|
|
||||||
return obj2;
|
|
||||||
} else {
|
|
||||||
return { value: "IconComponent", done: null };
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
try {
|
|
||||||
c3 = 2;
|
|
||||||
if (0 === c2) {
|
|
||||||
if (arg0 === 1) {
|
|
||||||
c3 = 3;
|
|
||||||
throw value;
|
|
||||||
} else if (arg0 === 2) {
|
|
||||||
c3 = 3;
|
|
||||||
const obj4 = { value, done: true };
|
|
||||||
return obj4;
|
|
||||||
} else {
|
|
||||||
let closure_1 = tmp;
|
|
||||||
closure_0 = undefined;
|
|
||||||
c2 = 1;
|
|
||||||
c3 = 1;
|
|
||||||
const obj5 = { value: obj3._asyncOptionalChain(closure_0), done: false };
|
|
||||||
obj3 = _asyncToGenerator2;
|
|
||||||
return obj5;
|
|
||||||
}
|
|
||||||
} else if (arg0 === 1) {
|
|
||||||
c3 = 3;
|
|
||||||
throw value;
|
|
||||||
} else if (arg0 === 2) {
|
|
||||||
c3 = 3;
|
|
||||||
const obj6 = { value, done: true };
|
|
||||||
return obj6;
|
|
||||||
} else {
|
|
||||||
closure_0 = value;
|
|
||||||
const tmp8 = null == closure_0 || closure_0;
|
|
||||||
c3 = 3;
|
|
||||||
obj = { value: tmp8, done: true };
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
} catch (tmp13) {
|
|
||||||
c3 = 3;
|
|
||||||
throw tmp13;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return obj(...arguments);
|
|
||||||
};
|
|
||||||
|
|
||||||
export const _asyncOptionalChainDelete = function _asyncOptionalChainDelete(arg0) {
|
|
||||||
return obj(...arguments);
|
|
||||||
};
|
|
||||||
|
|
@ -1,50 +0,0 @@
|
||||||
// Module ID: 11120
|
|
||||||
// Function ID: 11121
|
|
||||||
// Name: _optionalChain
|
|
||||||
// Dependencies: []
|
|
||||||
// Exports: _optionalChain
|
|
||||||
|
|
||||||
// Module 11120 (_optionalChain)
|
|
||||||
|
|
||||||
export const _optionalChain = function _optionalChain(arg0) {
|
|
||||||
let first = arg0[0];
|
|
||||||
let num = 1;
|
|
||||||
let tmp2 = first;
|
|
||||||
let tmp3 = first;
|
|
||||||
if (1 < arg0.length) {
|
|
||||||
while (true) {
|
|
||||||
let tmp4 = arg0[num];
|
|
||||||
let tmp5 = arg0[num + 1];
|
|
||||||
let tmp6 = "optionalAccess" === tmp4;
|
|
||||||
if (tmp6) {
|
|
||||||
if (null == tmp2) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ("access" !== tmp4) {
|
|
||||||
let tmp10;
|
|
||||||
if (!tmp6) {
|
|
||||||
let tmp9 = "call" !== tmp4 && "optionalCall" !== tmp4;
|
|
||||||
tmp10 = tmp2;
|
|
||||||
if (!tmp9) {
|
|
||||||
let tmp5Result = tmp5(() => {
|
|
||||||
const items = [closure_0, ...HermesBuiltin.copyRestArgs()];
|
|
||||||
return first.call.apply(items);
|
|
||||||
});
|
|
||||||
first = tmp5Result;
|
|
||||||
let closure_0;
|
|
||||||
tmp10 = tmp5Result;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
num = num + 2;
|
|
||||||
tmp2 = tmp10;
|
|
||||||
tmp3 = tmp10;
|
|
||||||
}
|
|
||||||
closure_0 = tmp2;
|
|
||||||
let tmp5Result2 = tmp5(tmp2);
|
|
||||||
first = tmp5Result2;
|
|
||||||
tmp10 = tmp5Result2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return tmp3;
|
|
||||||
};
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
// Module ID: 11121
|
|
||||||
// Function ID: 11122
|
|
||||||
// Name: _optionalChainDelete
|
|
||||||
// Dependencies: [11120]
|
|
||||||
// Exports: _optionalChainDelete
|
|
||||||
|
|
||||||
// Module 11121 (_optionalChainDelete)
|
|
||||||
import _optionalChain from "_optionalChain" /* 11120 */;
|
|
||||||
|
|
||||||
|
|
||||||
export const _optionalChainDelete = function _optionalChainDelete(arg0) {
|
|
||||||
const obj = _optionalChain;
|
|
||||||
const _optionalChainResult = obj._optionalChain(arg0);
|
|
||||||
return null == _optionalChainResult || _optionalChainResult;
|
|
||||||
};
|
|
||||||
|
|
@ -0,0 +1,68 @@
|
||||||
|
// Module ID: 11181
|
||||||
|
// Function ID: 11182
|
||||||
|
// Name: _browserPerformanceTimeOriginMode
|
||||||
|
// Dependencies: [11168]
|
||||||
|
|
||||||
|
// Module 11181 (_browserPerformanceTimeOriginMode)
|
||||||
|
import _mod11168 from "module_11168" /* 11168 */;
|
||||||
|
|
||||||
|
function dateTimestampInSeconds() {
|
||||||
|
return Date.now() / 1000;
|
||||||
|
}
|
||||||
|
let timeOrigin;
|
||||||
|
const _performance = _mod11168.GLOBAL_OBJ.performance;
|
||||||
|
let fn = dateTimestampInSeconds;
|
||||||
|
if (_performance) {
|
||||||
|
fn = dateTimestampInSeconds;
|
||||||
|
if (_performance.now) {
|
||||||
|
const _Date = Date;
|
||||||
|
const timestamp = Date.now();
|
||||||
|
timeOrigin = timestamp - _performance.now();
|
||||||
|
if (null != _performance.timeOrigin) {
|
||||||
|
timeOrigin = _performance.timeOrigin;
|
||||||
|
}
|
||||||
|
fn = () => (timeOrigin + _performance.now()) / 1000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const _performance2 = _mod11168.GLOBAL_OBJ.performance;
|
||||||
|
if (_performance2) {
|
||||||
|
let tmp4;
|
||||||
|
if (_performance2.now) {
|
||||||
|
const nowResult = _performance2.now();
|
||||||
|
const _Date2 = Date;
|
||||||
|
let timestamp1 = Date.now();
|
||||||
|
let num2 = 3600000;
|
||||||
|
if (_performance2.timeOrigin) {
|
||||||
|
const _Math = Math;
|
||||||
|
num2 = Math.abs(_performance2.timeOrigin + nowResult - timestamp1);
|
||||||
|
}
|
||||||
|
let timeOrigin2 = _performance2.timing;
|
||||||
|
const tmp7 = num2 < 3600000;
|
||||||
|
if (timeOrigin2) {
|
||||||
|
timeOrigin2 = _performance2.timing.navigationStart;
|
||||||
|
}
|
||||||
|
let num3 = 3600000;
|
||||||
|
if (typeof timeOrigin2 === "number") {
|
||||||
|
const _Math2 = Math;
|
||||||
|
num3 = Math.abs(timeOrigin2 + nowResult - timestamp1);
|
||||||
|
}
|
||||||
|
if (!tmp7) {
|
||||||
|
if (num3 >= 3600000) {
|
||||||
|
exports._browserPerformanceTimeOriginMode = "dateNow";
|
||||||
|
}
|
||||||
|
tmp4 = timestamp1;
|
||||||
|
}
|
||||||
|
if (num2 <= num3) {
|
||||||
|
exports._browserPerformanceTimeOriginMode = "timeOrigin";
|
||||||
|
timeOrigin2 = _performance2.timeOrigin;
|
||||||
|
} else {
|
||||||
|
exports._browserPerformanceTimeOriginMode = "navigationStart";
|
||||||
|
}
|
||||||
|
timestamp1 = timeOrigin2;
|
||||||
|
}
|
||||||
|
exports.browserPerformanceTimeOrigin = tmp4;
|
||||||
|
exports.dateTimestampInSeconds = dateTimestampInSeconds;
|
||||||
|
exports.timestampInSeconds = fn;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const _browserPerformanceTimeOriginMode = "none";
|
||||||
71
alpha/source/__helpers/11xxx/11183__slicedToArray.js
Normal file
71
alpha/source/__helpers/11xxx/11183__slicedToArray.js
Normal file
|
|
@ -0,0 +1,71 @@
|
||||||
|
// Module ID: 11183
|
||||||
|
// Function ID: 11184
|
||||||
|
// Name: _slicedToArray
|
||||||
|
// Dependencies: [32, 11173]
|
||||||
|
// Exports: getMetricSummaryJsonForSpan, updateMetricSummaryOnSpan
|
||||||
|
|
||||||
|
// Module 11183 (_slicedToArray)
|
||||||
|
import _mod11173 from "module_11173" /* 11173 */;
|
||||||
|
import _slicedToArray from "_slicedToArray" /* 32 */;
|
||||||
|
|
||||||
|
let map, set;
|
||||||
|
|
||||||
|
const _sentryMetrics = "_sentryMetrics";
|
||||||
|
|
||||||
|
export const getMetricSummaryJsonForSpan = function getMetricSummaryJsonForSpan(self) {
|
||||||
|
let tmp11;
|
||||||
|
let tmp9;
|
||||||
|
if (self[_sentryMetrics]) {
|
||||||
|
const obj = {};
|
||||||
|
const tmp3 = self[_sentryMetrics][Symbol.iterator]();
|
||||||
|
while (tmp3 !== undefined) {
|
||||||
|
let tmp8 = _slicedToArray(_slicedToArray(tmp5, 2)[1], 2);
|
||||||
|
[tmp9, tmp11] = tmp8;
|
||||||
|
let arr = obj[tmp9];
|
||||||
|
if (!arr) {
|
||||||
|
let items = [];
|
||||||
|
obj[tmp10] = items;
|
||||||
|
arr = items;
|
||||||
|
}
|
||||||
|
let push = arr.push;
|
||||||
|
let obj2 = _mod11173;
|
||||||
|
let arr2 = push(obj2.dropUndefinedKeys(tmp11));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
export const updateMetricSummaryOnSpan = function updateMetricSummaryOnSpan(activeSpan, metricType, sanitizeMetricKeyResult, min, sanitizeUnitResult, tags, bucketKey) {
|
||||||
|
let sum;
|
||||||
|
let sum1;
|
||||||
|
let obj = activeSpan[_sentryMetrics];
|
||||||
|
if (!obj) {
|
||||||
|
const _Map = Map;
|
||||||
|
const self = this;
|
||||||
|
const self2 = this;
|
||||||
|
map = new Map();
|
||||||
|
activeSpan[tmp] = map;
|
||||||
|
obj = map;
|
||||||
|
}
|
||||||
|
const combined = "" + metricType + ":" + sanitizeMetricKeyResult + "@" + sanitizeUnitResult;
|
||||||
|
const value = obj.get(bucketKey);
|
||||||
|
if (value) {
|
||||||
|
const range = _slicedToArray(value, 2)[1];
|
||||||
|
const items = [combined, ];
|
||||||
|
const range1 = { min: Math.min(range.min, min), max: Math.max(range.max, min), count: sum, sum: sum1, tags: range.tags };
|
||||||
|
const _Math = Math;
|
||||||
|
const _Math2 = Math;
|
||||||
|
sum = range.count + 1;
|
||||||
|
set = obj.set;
|
||||||
|
range.count = sum;
|
||||||
|
sum1 = range.sum + min;
|
||||||
|
range.sum = sum1;
|
||||||
|
items[1] = range1;
|
||||||
|
const result = set(bucketKey, items);
|
||||||
|
} else {
|
||||||
|
const items1 = [combined, ];
|
||||||
|
const range2 = { min, max: min, count: 1, sum: min, tags };
|
||||||
|
items1[1] = range2;
|
||||||
|
const result1 = obj.set(bucketKey, items1);
|
||||||
|
}
|
||||||
|
};
|
||||||
101
alpha/source/__helpers/11xxx/11232__slicedToArray.js
Normal file
101
alpha/source/__helpers/11xxx/11232__slicedToArray.js
Normal file
|
|
@ -0,0 +1,101 @@
|
||||||
|
// Module ID: 11232
|
||||||
|
// Function ID: 11233
|
||||||
|
// Name: _slicedToArray
|
||||||
|
// Dependencies: [32]
|
||||||
|
// Exports: disabledUntil, isRateLimited, updateRateLimits
|
||||||
|
|
||||||
|
// Module 11232 (_slicedToArray)
|
||||||
|
import _slicedToArray from "_slicedToArray" /* 32 */;
|
||||||
|
|
||||||
|
function parseRetryAfterHeader(arg0) {
|
||||||
|
let timestamp = arg1;
|
||||||
|
if (arg1 === undefined) {
|
||||||
|
const _Date = Date;
|
||||||
|
timestamp = Date.now();
|
||||||
|
}
|
||||||
|
const parsed = parseInt("" + arg0, 10);
|
||||||
|
if (isNaN(parsed)) {
|
||||||
|
const _Date2 = Date;
|
||||||
|
const _HermesInternal = HermesInternal;
|
||||||
|
const parsed1 = Date.parse("" + arg0);
|
||||||
|
const _isNaN = isNaN;
|
||||||
|
let num2 = 60000;
|
||||||
|
if (!isNaN(parsed1)) {
|
||||||
|
num2 = parsed1 - timestamp;
|
||||||
|
}
|
||||||
|
return num2;
|
||||||
|
} else {
|
||||||
|
return 1000 * parsed;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export const DEFAULT_RETRY_AFTER = 60000;
|
||||||
|
export const disabledUntil = function disabledUntil(all, arg1) {
|
||||||
|
return all[arg1] || all.all || 0;
|
||||||
|
};
|
||||||
|
export const isRateLimited = function isRateLimited(all, arg1) {
|
||||||
|
let timestamp = arg2;
|
||||||
|
if (arg2 === undefined) {
|
||||||
|
const _Date = Date;
|
||||||
|
timestamp = Date.now();
|
||||||
|
}
|
||||||
|
return (all[arg1] || all.all || 0) > timestamp;
|
||||||
|
};
|
||||||
|
export { parseRetryAfterHeader };
|
||||||
|
export const updateRateLimits = function updateRateLimits(arg0, headers) {
|
||||||
|
headers = headers.headers;
|
||||||
|
let timestamp = arg2;
|
||||||
|
const statusCode = headers.statusCode;
|
||||||
|
if (arg2 === undefined) {
|
||||||
|
const _Date = Date;
|
||||||
|
timestamp = Date.now();
|
||||||
|
}
|
||||||
|
const obj = {};
|
||||||
|
const merged = Object.assign(arg0);
|
||||||
|
if (headers && headers["x-sentry-rate-limits"]) {
|
||||||
|
const str2 = (headers && headers["x-sentry-rate-limits"]).trim();
|
||||||
|
const parts = str2.split(",");
|
||||||
|
const iter = parts[Symbol.iterator]();
|
||||||
|
const str8 = iter.next();
|
||||||
|
while (iter !== undefined) {
|
||||||
|
let tmp12 = _slicedToArray(str8.split(":", 5), 5);
|
||||||
|
let str9 = tmp12[1];
|
||||||
|
let str10 = tmp12[4];
|
||||||
|
let _parseInt = parseInt;
|
||||||
|
let parsed = parseInt(tmp12[0], 10);
|
||||||
|
let _isNaN = isNaN;
|
||||||
|
let num6 = 60;
|
||||||
|
if (!isNaN(parsed)) {
|
||||||
|
num6 = parsed;
|
||||||
|
}
|
||||||
|
let result = 1000 * num6;
|
||||||
|
let tmp16 = str9;
|
||||||
|
if (tmp16) {
|
||||||
|
let parts1 = str9.split(";");
|
||||||
|
for (const item10065 of parts1) {
|
||||||
|
let tmp23 = "metric_bucket" === item10065;
|
||||||
|
let tmp22 = item10065;
|
||||||
|
if (tmp23) {
|
||||||
|
tmp23 = str10;
|
||||||
|
}
|
||||||
|
if (tmp23) {
|
||||||
|
let parts2 = str10.split(";");
|
||||||
|
tmp23 = !parts2.includes("custom");
|
||||||
|
}
|
||||||
|
if (!tmp23) {
|
||||||
|
obj[tmp22] = timestamp + result;
|
||||||
|
}
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
obj.all = timestamp + result;
|
||||||
|
}
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
} else if (headers && headers["retry-after"]) {
|
||||||
|
obj.all = timestamp + parseRetryAfterHeader(headers && headers["retry-after"], timestamp);
|
||||||
|
} else if (429 === statusCode) {
|
||||||
|
obj.all = timestamp + 60000;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
56
alpha/source/__helpers/11xxx/11290__asyncToGenerator.js
Normal file
56
alpha/source/__helpers/11xxx/11290__asyncToGenerator.js
Normal file
|
|
@ -0,0 +1,56 @@
|
||||||
|
// Module ID: 11290
|
||||||
|
// Function ID: 11291
|
||||||
|
// Name: _asyncToGenerator
|
||||||
|
// Dependencies: [5, 11291]
|
||||||
|
// Exports: _asyncNullishCoalesce
|
||||||
|
|
||||||
|
// Module 11290 (_asyncToGenerator)
|
||||||
|
import _nullishCoalesce from "_nullishCoalesce" /* 11291 */;
|
||||||
|
import _asyncToGenerator from "_asyncToGenerator" /* 5 */;
|
||||||
|
|
||||||
|
let c2;
|
||||||
|
|
||||||
|
let obj = function _asyncNullishCoalesce2() {
|
||||||
|
obj = _asyncToGenerator(async (arg0, value) => {
|
||||||
|
let closure_0 = arg0;
|
||||||
|
let closure_1 = value;
|
||||||
|
if (c2 === 2) {
|
||||||
|
c2 = 3;
|
||||||
|
throw new TypeError("Generator functions may not be called on executing generators");
|
||||||
|
} else if (tmp2 === 3) {
|
||||||
|
if (arg0 === 1) {
|
||||||
|
throw value;
|
||||||
|
} else if (arg0 === 2) {
|
||||||
|
const obj2 = { value, done: true };
|
||||||
|
return obj2;
|
||||||
|
} else {
|
||||||
|
return { value: "IconComponent", done: null };
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
c2 = 2;
|
||||||
|
if (arg0 === 1) {
|
||||||
|
c2 = 3;
|
||||||
|
throw value;
|
||||||
|
} else if (arg0 === 2) {
|
||||||
|
c2 = 3;
|
||||||
|
const obj3 = { value, done: true };
|
||||||
|
return obj3;
|
||||||
|
} else {
|
||||||
|
c2 = 3;
|
||||||
|
const obj4 = { value: obj._nullishCoalesce(closure_0, closure_1), done: true };
|
||||||
|
obj = _nullishCoalesce;
|
||||||
|
return obj4;
|
||||||
|
}
|
||||||
|
} catch (tmp7) {
|
||||||
|
c2 = 3;
|
||||||
|
throw tmp7;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return obj(...arguments);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const _asyncNullishCoalesce = function _asyncNullishCoalesce(arg0, arg1) {
|
||||||
|
return obj(...arguments);
|
||||||
|
};
|
||||||
15
alpha/source/__helpers/11xxx/11291__nullishCoalesce.js
Normal file
15
alpha/source/__helpers/11xxx/11291__nullishCoalesce.js
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
// Module ID: 11291
|
||||||
|
// Function ID: 11292
|
||||||
|
// Name: _nullishCoalesce
|
||||||
|
// Dependencies: []
|
||||||
|
// Exports: _nullishCoalesce
|
||||||
|
|
||||||
|
// Module 11291 (_nullishCoalesce)
|
||||||
|
|
||||||
|
export const _nullishCoalesce = function _nullishCoalesce(arg0, fn) {
|
||||||
|
let tmp = arg0;
|
||||||
|
if (null == arg0) {
|
||||||
|
tmp = fn();
|
||||||
|
}
|
||||||
|
return tmp;
|
||||||
|
};
|
||||||
113
alpha/source/__helpers/11xxx/11292__asyncToGenerator.js
Normal file
113
alpha/source/__helpers/11xxx/11292__asyncToGenerator.js
Normal file
|
|
@ -0,0 +1,113 @@
|
||||||
|
// Module ID: 11292
|
||||||
|
// Function ID: 11293
|
||||||
|
// Name: _asyncToGenerator
|
||||||
|
// Dependencies: [5]
|
||||||
|
// Exports: _asyncOptionalChain
|
||||||
|
|
||||||
|
// Module 11292 (_asyncToGenerator)
|
||||||
|
import _asyncToGenerator from "_asyncToGenerator" /* 5 */;
|
||||||
|
|
||||||
|
let c2, c3, length;
|
||||||
|
|
||||||
|
let obj = function _asyncOptionalChain2() {
|
||||||
|
obj = _asyncToGenerator(async (arg0, value) => {
|
||||||
|
let closure_0;
|
||||||
|
length = arg0;
|
||||||
|
if (c3 === 2) {
|
||||||
|
c3 = 3;
|
||||||
|
throw new TypeError("Generator functions may not be called on executing generators");
|
||||||
|
} else if (tmp2 === 3) {
|
||||||
|
if (arg0 === 1) {
|
||||||
|
throw value;
|
||||||
|
} else if (arg0 === 2) {
|
||||||
|
const obj2 = { value, done: true };
|
||||||
|
return obj2;
|
||||||
|
} else {
|
||||||
|
return { value: "IconComponent", done: null };
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
c3 = 2;
|
||||||
|
if (0 === c2) {
|
||||||
|
if (arg0 === 1) {
|
||||||
|
c3 = 3;
|
||||||
|
throw value;
|
||||||
|
} else if (arg0 === 2) {
|
||||||
|
c3 = 3;
|
||||||
|
const obj3 = { value, done: true };
|
||||||
|
return obj3;
|
||||||
|
} else {
|
||||||
|
let closure_1 = tmp3;
|
||||||
|
let closure_4;
|
||||||
|
let closure_5;
|
||||||
|
let c1;
|
||||||
|
value = length[0];
|
||||||
|
let closure_3 = 1;
|
||||||
|
if (closure_3 < length.length) {
|
||||||
|
closure_4 = length[closure_3];
|
||||||
|
closure_5 = length[closure_3 + 1];
|
||||||
|
closure_3 = closure_3 + 2;
|
||||||
|
if ("optionalAccess" === closure_4) {
|
||||||
|
if (null == value) {
|
||||||
|
c3 = 3;
|
||||||
|
return { value: "IconComponent", done: null };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ("access" !== closure_4) {
|
||||||
|
if ("optionalAccess" !== closure_4) {
|
||||||
|
const tmp21 = "call" !== closure_4 && "optionalCall" !== closure_4;
|
||||||
|
if (!tmp21) {
|
||||||
|
c2 = 2;
|
||||||
|
c3 = 1;
|
||||||
|
const obj4 = {
|
||||||
|
value: closure_5(() => {
|
||||||
|
const items = [c1, ...HermesBuiltin.copyRestArgs()];
|
||||||
|
return closure_2.call.apply(items);
|
||||||
|
}),
|
||||||
|
done: false
|
||||||
|
};
|
||||||
|
return obj4;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
c1 = value;
|
||||||
|
c2 = 1;
|
||||||
|
c3 = 1;
|
||||||
|
const obj5 = { value: closure_5(value), done: false };
|
||||||
|
return obj5;
|
||||||
|
}
|
||||||
|
c3 = 3;
|
||||||
|
const obj6 = { value, done: true };
|
||||||
|
return obj6;
|
||||||
|
}
|
||||||
|
} else if (1 === c2) {
|
||||||
|
if (arg0 === 1) {
|
||||||
|
c3 = 3;
|
||||||
|
throw value;
|
||||||
|
} else if (arg0 === 2) {
|
||||||
|
c3 = 3;
|
||||||
|
const obj7 = { value, done: true };
|
||||||
|
return obj7;
|
||||||
|
}
|
||||||
|
} else if (arg0 === 1) {
|
||||||
|
c3 = 3;
|
||||||
|
throw value;
|
||||||
|
} else if (arg0 === 2) {
|
||||||
|
c3 = 3;
|
||||||
|
obj = { value, done: true };
|
||||||
|
return obj;
|
||||||
|
} else {
|
||||||
|
c1 = undefined;
|
||||||
|
}
|
||||||
|
} catch (tmp30) {
|
||||||
|
c3 = 3;
|
||||||
|
throw tmp30;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return obj(...arguments);
|
||||||
|
};
|
||||||
|
|
||||||
|
export const _asyncOptionalChain = function _asyncOptionalChain(arg0) {
|
||||||
|
return obj(...arguments);
|
||||||
|
};
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue