@regulaforensics/document-reader-typings
Version:
Document Reader API typings
880 lines (878 loc) • 756 kB
JavaScript
var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value;
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function getDefaultExportFromCjs(x) {
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
}
var _Reflect = {};
/*! *****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var hasRequired_Reflect;
function require_Reflect() {
if (hasRequired_Reflect) return _Reflect;
hasRequired_Reflect = 1;
var Reflect2;
return function(Reflect3) {
(function(factory) {
var root = typeof globalThis == "object" ? globalThis : typeof commonjsGlobal == "object" ? commonjsGlobal : typeof self == "object" ? self : typeof this == "object" ? this : sloppyModeThis(), exporter = makeExporter(Reflect3);
typeof root.Reflect < "u" && (exporter = makeExporter(root.Reflect, exporter)), factory(exporter, root), typeof root.Reflect > "u" && (root.Reflect = Reflect3);
function makeExporter(target, previous) {
return function(key, value) {
Object.defineProperty(target, key, { configurable: !0, writable: !0, value }), previous && previous(key, value);
};
}
function functionThis() {
try {
return Function("return this;")();
} catch {
}
}
function indirectEvalThis() {
try {
return (0, eval)("(function() { return this; })()");
} catch {
}
}
function sloppyModeThis() {
return functionThis() || indirectEvalThis();
}
})(function(exporter, root) {
var hasOwn = Object.prototype.hasOwnProperty, supportsSymbol = typeof Symbol == "function", toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive < "u" ? Symbol.toPrimitive : "@@toPrimitive", iteratorSymbol = supportsSymbol && typeof Symbol.iterator < "u" ? Symbol.iterator : "@@iterator", supportsCreate = typeof Object.create == "function", supportsProto = { __proto__: [] } instanceof Array, downLevel = !supportsCreate && !supportsProto, HashMap = {
// create an object in dictionary mode (a.k.a. "slow" mode in v8)
create: supportsCreate ? function() {
return MakeDictionary(/* @__PURE__ */ Object.create(null));
} : supportsProto ? function() {
return MakeDictionary({ __proto__: null });
} : function() {
return MakeDictionary({});
},
has: downLevel ? function(map, key) {
return hasOwn.call(map, key);
} : function(map, key) {
return key in map;
},
get: downLevel ? function(map, key) {
return hasOwn.call(map, key) ? map[key] : void 0;
} : function(map, key) {
return map[key];
}
}, functionPrototype = Object.getPrototypeOf(Function), _Map2 = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : CreateMapPolyfill(), _Set = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : CreateSetPolyfill(), _WeakMap = typeof WeakMap == "function" ? WeakMap : CreateWeakMapPolyfill(), registrySymbol = supportsSymbol ? Symbol.for("@reflect-metadata:registry") : void 0, metadataRegistry = GetOrCreateMetadataRegistry(), metadataProvider = CreateMetadataProvider(metadataRegistry);
function decorate(decorators, target, propertyKey, attributes) {
if (IsUndefined(propertyKey)) {
if (!IsArray2(decorators))
throw new TypeError();
if (!IsConstructor(target))
throw new TypeError();
return DecorateConstructor(decorators, target);
} else {
if (!IsArray2(decorators))
throw new TypeError();
if (!IsObject(target))
throw new TypeError();
if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes))
throw new TypeError();
return IsNull(attributes) && (attributes = void 0), propertyKey = ToPropertyKey(propertyKey), DecorateProperty(decorators, target, propertyKey, attributes);
}
}
exporter("decorate", decorate);
function metadata(metadataKey, metadataValue) {
function decorator(target, propertyKey) {
if (!IsObject(target))
throw new TypeError();
if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey))
throw new TypeError();
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
}
return decorator;
}
exporter("metadata", metadata);
function defineMetadata(metadataKey, metadataValue, target, propertyKey) {
if (!IsObject(target))
throw new TypeError();
return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
}
exporter("defineMetadata", defineMetadata);
function hasMetadata(metadataKey, target, propertyKey) {
if (!IsObject(target))
throw new TypeError();
return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryHasMetadata(metadataKey, target, propertyKey);
}
exporter("hasMetadata", hasMetadata);
function hasOwnMetadata(metadataKey, target, propertyKey) {
if (!IsObject(target))
throw new TypeError();
return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryHasOwnMetadata(metadataKey, target, propertyKey);
}
exporter("hasOwnMetadata", hasOwnMetadata);
function getMetadata(metadataKey, target, propertyKey) {
if (!IsObject(target))
throw new TypeError();
return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryGetMetadata(metadataKey, target, propertyKey);
}
exporter("getMetadata", getMetadata);
function getOwnMetadata(metadataKey, target, propertyKey) {
if (!IsObject(target))
throw new TypeError();
return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryGetOwnMetadata(metadataKey, target, propertyKey);
}
exporter("getOwnMetadata", getOwnMetadata);
function getMetadataKeys(target, propertyKey) {
if (!IsObject(target))
throw new TypeError();
return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryMetadataKeys(target, propertyKey);
}
exporter("getMetadataKeys", getMetadataKeys);
function getOwnMetadataKeys(target, propertyKey) {
if (!IsObject(target))
throw new TypeError();
return IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), OrdinaryOwnMetadataKeys(target, propertyKey);
}
exporter("getOwnMetadataKeys", getOwnMetadataKeys);
function deleteMetadata(metadataKey, target, propertyKey) {
if (!IsObject(target))
throw new TypeError();
if (IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey)), !IsObject(target))
throw new TypeError();
IsUndefined(propertyKey) || (propertyKey = ToPropertyKey(propertyKey));
var provider = GetMetadataProvider(
target,
propertyKey,
/*Create*/
!1
);
return IsUndefined(provider) ? !1 : provider.OrdinaryDeleteMetadata(metadataKey, target, propertyKey);
}
exporter("deleteMetadata", deleteMetadata);
function DecorateConstructor(decorators, target) {
for (var i = decorators.length - 1; i >= 0; --i) {
var decorator = decorators[i], decorated = decorator(target);
if (!IsUndefined(decorated) && !IsNull(decorated)) {
if (!IsConstructor(decorated))
throw new TypeError();
target = decorated;
}
}
return target;
}
function DecorateProperty(decorators, target, propertyKey, descriptor) {
for (var i = decorators.length - 1; i >= 0; --i) {
var decorator = decorators[i], decorated = decorator(target, propertyKey, descriptor);
if (!IsUndefined(decorated) && !IsNull(decorated)) {
if (!IsObject(decorated))
throw new TypeError();
descriptor = decorated;
}
}
return descriptor;
}
function OrdinaryHasMetadata(MetadataKey, O, P) {
var hasOwn2 = OrdinaryHasOwnMetadata(MetadataKey, O, P);
if (hasOwn2)
return !0;
var parent = OrdinaryGetPrototypeOf(O);
return IsNull(parent) ? !1 : OrdinaryHasMetadata(MetadataKey, parent, P);
}
function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
var provider = GetMetadataProvider(
O,
P,
/*Create*/
!1
);
return IsUndefined(provider) ? !1 : ToBoolean2(provider.OrdinaryHasOwnMetadata(MetadataKey, O, P));
}
function OrdinaryGetMetadata(MetadataKey, O, P) {
var hasOwn2 = OrdinaryHasOwnMetadata(MetadataKey, O, P);
if (hasOwn2)
return OrdinaryGetOwnMetadata(MetadataKey, O, P);
var parent = OrdinaryGetPrototypeOf(O);
if (!IsNull(parent))
return OrdinaryGetMetadata(MetadataKey, parent, P);
}
function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
var provider = GetMetadataProvider(
O,
P,
/*Create*/
!1
);
if (!IsUndefined(provider))
return provider.OrdinaryGetOwnMetadata(MetadataKey, O, P);
}
function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
var provider = GetMetadataProvider(
O,
P,
/*Create*/
!0
);
provider.OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P);
}
function OrdinaryMetadataKeys(O, P) {
var ownKeys = OrdinaryOwnMetadataKeys(O, P), parent = OrdinaryGetPrototypeOf(O);
if (parent === null)
return ownKeys;
var parentKeys = OrdinaryMetadataKeys(parent, P);
if (parentKeys.length <= 0)
return ownKeys;
if (ownKeys.length <= 0)
return parentKeys;
for (var set = new _Set(), keys = [], _i = 0, ownKeys_1 = ownKeys; _i < ownKeys_1.length; _i++) {
var key = ownKeys_1[_i], hasKey = set.has(key);
hasKey || (set.add(key), keys.push(key));
}
for (var _a50 = 0, parentKeys_1 = parentKeys; _a50 < parentKeys_1.length; _a50++) {
var key = parentKeys_1[_a50], hasKey = set.has(key);
hasKey || (set.add(key), keys.push(key));
}
return keys;
}
function OrdinaryOwnMetadataKeys(O, P) {
var provider = GetMetadataProvider(
O,
P,
/*create*/
!1
);
return provider ? provider.OrdinaryOwnMetadataKeys(O, P) : [];
}
function Type2(x) {
if (x === null)
return 1;
switch (typeof x) {
case "undefined":
return 0;
case "boolean":
return 2;
case "string":
return 3;
case "symbol":
return 4;
case "number":
return 5;
case "object":
return x === null ? 1 : 6;
default:
return 6;
}
}
function IsUndefined(x) {
return x === void 0;
}
function IsNull(x) {
return x === null;
}
function IsSymbol(x) {
return typeof x == "symbol";
}
function IsObject(x) {
return typeof x == "object" ? x !== null : typeof x == "function";
}
function ToPrimitive(input, PreferredType) {
switch (Type2(input)) {
case 0:
return input;
case 1:
return input;
case 2:
return input;
case 3:
return input;
case 4:
return input;
case 5:
return input;
}
var hint = "string", exoticToPrim = GetMethod(input, toPrimitiveSymbol);
if (exoticToPrim !== void 0) {
var result = exoticToPrim.call(input, hint);
if (IsObject(result))
throw new TypeError();
return result;
}
return OrdinaryToPrimitive(input);
}
function OrdinaryToPrimitive(O, hint) {
var valueOf, result, toString_2;
{
var toString_1 = O.toString;
if (IsCallable(toString_1)) {
var result = toString_1.call(O);
if (!IsObject(result))
return result;
}
var valueOf = O.valueOf;
if (IsCallable(valueOf)) {
var result = valueOf.call(O);
if (!IsObject(result))
return result;
}
}
throw new TypeError();
}
function ToBoolean2(argument) {
return !!argument;
}
function ToString(argument) {
return "" + argument;
}
function ToPropertyKey(argument) {
var key = ToPrimitive(argument);
return IsSymbol(key) ? key : ToString(key);
}
function IsArray2(argument) {
return Array.isArray ? Array.isArray(argument) : argument instanceof Object ? argument instanceof Array : Object.prototype.toString.call(argument) === "[object Array]";
}
function IsCallable(argument) {
return typeof argument == "function";
}
function IsConstructor(argument) {
return typeof argument == "function";
}
function IsPropertyKey(argument) {
switch (Type2(argument)) {
case 3:
return !0;
case 4:
return !0;
default:
return !1;
}
}
function SameValueZero(x, y) {
return x === y || x !== x && y !== y;
}
function GetMethod(V, P) {
var func = V[P];
if (func != null) {
if (!IsCallable(func))
throw new TypeError();
return func;
}
}
function GetIterator(obj) {
var method = GetMethod(obj, iteratorSymbol);
if (!IsCallable(method))
throw new TypeError();
var iterator = method.call(obj);
if (!IsObject(iterator))
throw new TypeError();
return iterator;
}
function IteratorValue(iterResult) {
return iterResult.value;
}
function IteratorStep(iterator) {
var result = iterator.next();
return result.done ? !1 : result;
}
function IteratorClose(iterator) {
var f = iterator.return;
f && f.call(iterator);
}
function OrdinaryGetPrototypeOf(O) {
var proto = Object.getPrototypeOf(O);
if (typeof O != "function" || O === functionPrototype || proto !== functionPrototype)
return proto;
var prototype = O.prototype, prototypeProto = prototype && Object.getPrototypeOf(prototype);
if (prototypeProto == null || prototypeProto === Object.prototype)
return proto;
var constructor = prototypeProto.constructor;
return typeof constructor != "function" || constructor === O ? proto : constructor;
}
function CreateMetadataRegistry() {
var fallback;
!IsUndefined(registrySymbol) && typeof root.Reflect < "u" && !(registrySymbol in root.Reflect) && typeof root.Reflect.defineMetadata == "function" && (fallback = CreateFallbackProvider(root.Reflect));
var first, second, rest, targetProviderMap = new _WeakMap(), registry = {
registerProvider,
getProvider,
setProvider
};
return registry;
function registerProvider(provider) {
if (!Object.isExtensible(registry))
throw new Error("Cannot add provider to a frozen registry.");
switch (!0) {
case fallback === provider:
break;
case IsUndefined(first):
first = provider;
break;
case first === provider:
break;
case IsUndefined(second):
second = provider;
break;
case second === provider:
break;
default:
rest === void 0 && (rest = new _Set()), rest.add(provider);
break;
}
}
function getProviderNoCache(O, P) {
if (!IsUndefined(first)) {
if (first.isProviderFor(O, P))
return first;
if (!IsUndefined(second)) {
if (second.isProviderFor(O, P))
return first;
if (!IsUndefined(rest))
for (var iterator = GetIterator(rest); ; ) {
var next = IteratorStep(iterator);
if (!next)
return;
var provider = IteratorValue(next);
if (provider.isProviderFor(O, P))
return IteratorClose(iterator), provider;
}
}
}
if (!IsUndefined(fallback) && fallback.isProviderFor(O, P))
return fallback;
}
function getProvider(O, P) {
var providerMap = targetProviderMap.get(O), provider;
return IsUndefined(providerMap) || (provider = providerMap.get(P)), IsUndefined(provider) && (provider = getProviderNoCache(O, P), IsUndefined(provider) || (IsUndefined(providerMap) && (providerMap = new _Map2(), targetProviderMap.set(O, providerMap)), providerMap.set(P, provider))), provider;
}
function hasProvider(provider) {
if (IsUndefined(provider))
throw new TypeError();
return first === provider || second === provider || !IsUndefined(rest) && rest.has(provider);
}
function setProvider(O, P, provider) {
if (!hasProvider(provider))
throw new Error("Metadata provider not registered.");
var existingProvider = getProvider(O, P);
if (existingProvider !== provider) {
if (!IsUndefined(existingProvider))
return !1;
var providerMap = targetProviderMap.get(O);
IsUndefined(providerMap) && (providerMap = new _Map2(), targetProviderMap.set(O, providerMap)), providerMap.set(P, provider);
}
return !0;
}
}
function GetOrCreateMetadataRegistry() {
var metadataRegistry2;
return !IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect) && (metadataRegistry2 = root.Reflect[registrySymbol]), IsUndefined(metadataRegistry2) && (metadataRegistry2 = CreateMetadataRegistry()), !IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect) && Object.defineProperty(root.Reflect, registrySymbol, {
enumerable: !1,
configurable: !1,
writable: !1,
value: metadataRegistry2
}), metadataRegistry2;
}
function CreateMetadataProvider(registry) {
var metadata2 = new _WeakMap(), provider = {
isProviderFor: function(O, P) {
var targetMetadata = metadata2.get(O);
return IsUndefined(targetMetadata) ? !1 : targetMetadata.has(P);
},
OrdinaryDefineOwnMetadata: OrdinaryDefineOwnMetadata2,
OrdinaryHasOwnMetadata: OrdinaryHasOwnMetadata2,
OrdinaryGetOwnMetadata: OrdinaryGetOwnMetadata2,
OrdinaryOwnMetadataKeys: OrdinaryOwnMetadataKeys2,
OrdinaryDeleteMetadata
};
return metadataRegistry.registerProvider(provider), provider;
function GetOrCreateMetadataMap(O, P, Create) {
var targetMetadata = metadata2.get(O), createdTargetMetadata = !1;
if (IsUndefined(targetMetadata)) {
if (!Create)
return;
targetMetadata = new _Map2(), metadata2.set(O, targetMetadata), createdTargetMetadata = !0;
}
var metadataMap = targetMetadata.get(P);
if (IsUndefined(metadataMap)) {
if (!Create)
return;
if (metadataMap = new _Map2(), targetMetadata.set(P, metadataMap), !registry.setProvider(O, P, provider))
throw targetMetadata.delete(P), createdTargetMetadata && metadata2.delete(O), new Error("Wrong provider for target.");
}
return metadataMap;
}
function OrdinaryHasOwnMetadata2(MetadataKey, O, P) {
var metadataMap = GetOrCreateMetadataMap(
O,
P,
/*Create*/
!1
);
return IsUndefined(metadataMap) ? !1 : ToBoolean2(metadataMap.has(MetadataKey));
}
function OrdinaryGetOwnMetadata2(MetadataKey, O, P) {
var metadataMap = GetOrCreateMetadataMap(
O,
P,
/*Create*/
!1
);
if (!IsUndefined(metadataMap))
return metadataMap.get(MetadataKey);
}
function OrdinaryDefineOwnMetadata2(MetadataKey, MetadataValue, O, P) {
var metadataMap = GetOrCreateMetadataMap(
O,
P,
/*Create*/
!0
);
metadataMap.set(MetadataKey, MetadataValue);
}
function OrdinaryOwnMetadataKeys2(O, P) {
var keys = [], metadataMap = GetOrCreateMetadataMap(
O,
P,
/*Create*/
!1
);
if (IsUndefined(metadataMap))
return keys;
for (var keysObj = metadataMap.keys(), iterator = GetIterator(keysObj), k = 0; ; ) {
var next = IteratorStep(iterator);
if (!next)
return keys.length = k, keys;
var nextValue = IteratorValue(next);
try {
keys[k] = nextValue;
} catch (e) {
try {
IteratorClose(iterator);
} finally {
throw e;
}
}
k++;
}
}
function OrdinaryDeleteMetadata(MetadataKey, O, P) {
var metadataMap = GetOrCreateMetadataMap(
O,
P,
/*Create*/
!1
);
if (IsUndefined(metadataMap) || !metadataMap.delete(MetadataKey))
return !1;
if (metadataMap.size === 0) {
var targetMetadata = metadata2.get(O);
IsUndefined(targetMetadata) || (targetMetadata.delete(P), targetMetadata.size === 0 && metadata2.delete(targetMetadata));
}
return !0;
}
}
function CreateFallbackProvider(reflect) {
var defineMetadata2 = reflect.defineMetadata, hasOwnMetadata2 = reflect.hasOwnMetadata, getOwnMetadata2 = reflect.getOwnMetadata, getOwnMetadataKeys2 = reflect.getOwnMetadataKeys, deleteMetadata2 = reflect.deleteMetadata, metadataOwner = new _WeakMap(), provider = {
isProviderFor: function(O, P) {
var metadataPropertySet = metadataOwner.get(O);
return !IsUndefined(metadataPropertySet) && metadataPropertySet.has(P) ? !0 : getOwnMetadataKeys2(O, P).length ? (IsUndefined(metadataPropertySet) && (metadataPropertySet = new _Set(), metadataOwner.set(O, metadataPropertySet)), metadataPropertySet.add(P), !0) : !1;
},
OrdinaryDefineOwnMetadata: defineMetadata2,
OrdinaryHasOwnMetadata: hasOwnMetadata2,
OrdinaryGetOwnMetadata: getOwnMetadata2,
OrdinaryOwnMetadataKeys: getOwnMetadataKeys2,
OrdinaryDeleteMetadata: deleteMetadata2
};
return provider;
}
function GetMetadataProvider(O, P, Create) {
var registeredProvider = metadataRegistry.getProvider(O, P);
if (!IsUndefined(registeredProvider))
return registeredProvider;
if (Create) {
if (metadataRegistry.setProvider(O, P, metadataProvider))
return metadataProvider;
throw new Error("Illegal state.");
}
}
function CreateMapPolyfill() {
var cacheSentinel = {}, arraySentinel = [], MapIterator = (
/** @class */
function() {
function MapIterator2(keys, values2, selector) {
this._index = 0, this._keys = keys, this._values = values2, this._selector = selector;
}
return MapIterator2.prototype["@@iterator"] = function() {
return this;
}, MapIterator2.prototype[iteratorSymbol] = function() {
return this;
}, MapIterator2.prototype.next = function() {
var index = this._index;
if (index >= 0 && index < this._keys.length) {
var result = this._selector(this._keys[index], this._values[index]);
return index + 1 >= this._keys.length ? (this._index = -1, this._keys = arraySentinel, this._values = arraySentinel) : this._index++, { value: result, done: !1 };
}
return { value: void 0, done: !0 };
}, MapIterator2.prototype.throw = function(error) {
throw this._index >= 0 && (this._index = -1, this._keys = arraySentinel, this._values = arraySentinel), error;
}, MapIterator2.prototype.return = function(value) {
return this._index >= 0 && (this._index = -1, this._keys = arraySentinel, this._values = arraySentinel), { value, done: !0 };
}, MapIterator2;
}()
), Map2 = (
/** @class */
function() {
function Map3() {
this._keys = [], this._values = [], this._cacheKey = cacheSentinel, this._cacheIndex = -2;
}
return Object.defineProperty(Map3.prototype, "size", {
get: function() {
return this._keys.length;
},
enumerable: !0,
configurable: !0
}), Map3.prototype.has = function(key) {
return this._find(
key,
/*insert*/
!1
) >= 0;
}, Map3.prototype.get = function(key) {
var index = this._find(
key,
/*insert*/
!1
);
return index >= 0 ? this._values[index] : void 0;
}, Map3.prototype.set = function(key, value) {
var index = this._find(
key,
/*insert*/
!0
);
return this._values[index] = value, this;
}, Map3.prototype.delete = function(key) {
var index = this._find(
key,
/*insert*/
!1
);
if (index >= 0) {
for (var size = this._keys.length, i = index + 1; i < size; i++)
this._keys[i - 1] = this._keys[i], this._values[i - 1] = this._values[i];
return this._keys.length--, this._values.length--, SameValueZero(key, this._cacheKey) && (this._cacheKey = cacheSentinel, this._cacheIndex = -2), !0;
}
return !1;
}, Map3.prototype.clear = function() {
this._keys.length = 0, this._values.length = 0, this._cacheKey = cacheSentinel, this._cacheIndex = -2;
}, Map3.prototype.keys = function() {
return new MapIterator(this._keys, this._values, getKey);
}, Map3.prototype.values = function() {
return new MapIterator(this._keys, this._values, getValue);
}, Map3.prototype.entries = function() {
return new MapIterator(this._keys, this._values, getEntry);
}, Map3.prototype["@@iterator"] = function() {
return this.entries();
}, Map3.prototype[iteratorSymbol] = function() {
return this.entries();
}, Map3.prototype._find = function(key, insert) {
if (!SameValueZero(this._cacheKey, key)) {
this._cacheIndex = -1;
for (var i = 0; i < this._keys.length; i++)
if (SameValueZero(this._keys[i], key)) {
this._cacheIndex = i;
break;
}
}
return this._cacheIndex < 0 && insert && (this._cacheIndex = this._keys.length, this._keys.push(key), this._values.push(void 0)), this._cacheIndex;
}, Map3;
}()
);
return Map2;
function getKey(key, _) {
return key;
}
function getValue(_, value) {
return value;
}
function getEntry(key, value) {
return [key, value];
}
}
function CreateSetPolyfill() {
var Set2 = (
/** @class */
function() {
function Set3() {
this._map = new _Map2();
}
return Object.defineProperty(Set3.prototype, "size", {
get: function() {
return this._map.size;
},
enumerable: !0,
configurable: !0
}), Set3.prototype.has = function(value) {
return this._map.has(value);
}, Set3.prototype.add = function(value) {
return this._map.set(value, value), this;
}, Set3.prototype.delete = function(value) {
return this._map.delete(value);
}, Set3.prototype.clear = function() {
this._map.clear();
}, Set3.prototype.keys = function() {
return this._map.keys();
}, Set3.prototype.values = function() {
return this._map.keys();
}, Set3.prototype.entries = function() {
return this._map.entries();
}, Set3.prototype["@@iterator"] = function() {
return this.keys();
}, Set3.prototype[iteratorSymbol] = function() {
return this.keys();
}, Set3;
}()
);
return Set2;
}
function CreateWeakMapPolyfill() {
var UUID_SIZE = 16, keys = HashMap.create(), rootKey = CreateUniqueKey();
return (
/** @class */
function() {
function WeakMap2() {
this._key = CreateUniqueKey();
}
return WeakMap2.prototype.has = function(target) {
var table = GetOrCreateWeakMapTable(
target,
/*create*/
!1
);
return table !== void 0 ? HashMap.has(table, this._key) : !1;
}, WeakMap2.prototype.get = function(target) {
var table = GetOrCreateWeakMapTable(
target,
/*create*/
!1
);
return table !== void 0 ? HashMap.get(table, this._key) : void 0;
}, WeakMap2.prototype.set = function(target, value) {
var table = GetOrCreateWeakMapTable(
target,
/*create*/
!0
);
return table[this._key] = value, this;
}, WeakMap2.prototype.delete = function(target) {
var table = GetOrCreateWeakMapTable(
target,
/*create*/
!1
);
return table !== void 0 ? delete table[this._key] : !1;
}, WeakMap2.prototype.clear = function() {
this._key = CreateUniqueKey();
}, WeakMap2;
}()
);
function CreateUniqueKey() {
var key;
do
key = "@@WeakMap@@" + CreateUUID();
while (HashMap.has(keys, key));
return keys[key] = !0, key;
}
function GetOrCreateWeakMapTable(target, create) {
if (!hasOwn.call(target, rootKey)) {
if (!create)
return;
Object.defineProperty(target, rootKey, { value: HashMap.create() });
}
return target[rootKey];
}
function FillRandomBytes(buffer, size) {
for (var i = 0; i < size; ++i)
buffer[i] = Math.random() * 255 | 0;
return buffer;
}
function GenRandomBytes(size) {
if (typeof Uint8Array == "function") {
var array = new Uint8Array(size);
return typeof crypto < "u" ? crypto.getRandomValues(array) : typeof msCrypto < "u" ? msCrypto.getRandomValues(array) : FillRandomBytes(array, size), array;
}
return FillRandomBytes(new Array(size), size);
}
function CreateUUID() {
var data = GenRandomBytes(UUID_SIZE);
data[6] = data[6] & 79 | 64, data[8] = data[8] & 191 | 128;
for (var result = "", offset = 0; offset < UUID_SIZE; ++offset) {
var byte = data[offset];
(offset === 4 || offset === 6 || offset === 8) && (result += "-"), byte < 16 && (result += "0"), result += byte.toString(16).toLowerCase();
}
return result;
}
}
function MakeDictionary(obj) {
return obj.__ = void 0, delete obj.__, obj;
}
});
}(Reflect2 || (Reflect2 = {})), _Reflect;
}
require_Reflect();
var eAuthenticity = /* @__PURE__ */ ((eAuthenticity2) => (eAuthenticity2[eAuthenticity2.NONE = 0] = "NONE", eAuthenticity2[eAuthenticity2.UV_LUMINESCENCE = 1] = "UV_LUMINESCENCE", eAuthenticity2[eAuthenticity2.IR_B900 = 2] = "IR_B900", eAuthenticity2[eAuthenticity2.IMAGE_PATTERN = 4] = "IMAGE_PATTERN", eAuthenticity2[eAuthenticity2.AXIAL_PROTECTION = 8] = "AXIAL_PROTECTION", eAuthenticity2[eAuthenticity2.UV_FIBERS = 16] = "UV_FIBERS", eAuthenticity2[eAuthenticity2.IR_VISIBILITY = 32] = "IR_VISIBILITY", eAuthenticity2[eAuthenticity2.OCR_SECURITY_TEXT = 64] = "OCR_SECURITY_TEXT", eAuthenticity2[eAuthenticity2.IPI = 128] = "IPI", eAuthenticity2[eAuthenticity2.IR_PHOTO = 256] = "IR_PHOTO", eAuthenticity2[eAuthenticity2.PHOTO_EMBED_TYPE = 512] = "PHOTO_EMBED_TYPE", eAuthenticity2[eAuthenticity2.OVI = 1024] = "OVI", eAuthenticity2[eAuthenticity2.IR_LUMINESCENCE = 2048] = "IR_LUMINESCENCE", eAuthenticity2[eAuthenticity2.HOLOGRAMS = 4096] = "HOLOGRAMS", eAuthenticity2[eAuthenticity2.PHOTO_AREA = 8192] = "PHOTO_AREA", eAuthenticity2[eAuthenticity2.UV_BACKGROUND = 16384] = "UV_BACKGROUND", eAuthenticity2[eAuthenticity2.PORTRAIT_COMPARISON = 32768] = "PORTRAIT_COMPARISON", eAuthenticity2[eAuthenticity2.BARCODE_FORMAT_CHECK = 65536] = "BARCODE_FORMAT_CHECK", eAuthenticity2[eAuthenticity2.KINEGRAM = 131072] = "KINEGRAM", eAuthenticity2[eAuthenticity2.LETTER_SCREEN = 262144] = "LETTER_SCREEN", eAuthenticity2[eAuthenticity2.HOLOGRAM_DETECTION = 524288] = "HOLOGRAM_DETECTION", eAuthenticity2[eAuthenticity2.FINGERPRINT_COMPARISON = 1048576] = "FINGERPRINT_COMPARISON", eAuthenticity2[eAuthenticity2.LIVENESS = 2097152] = "LIVENESS", eAuthenticity2[eAuthenticity2.EXTENDED_OCR_CHECK = 4194304] = "EXTENDED_OCR_CHECK", eAuthenticity2[eAuthenticity2.EXTENDED_MRZ_CHECK = 8388608] = "EXTENDED_MRZ_CHECK", eAuthenticity2[eAuthenticity2.STATUS_ONLY = 2147483648] = "STATUS_ONLY", eAuthenticity2[eAuthenticity2.ENCRYPTED_IPI = 16777216] = "ENCRYPTED_IPI", eAuthenticity2))(eAuthenticity || {});
const getAuthenticityArray = (value) => {
const result = [];
if (value === 0)
return result.push(eAuthenticity.NONE), result;
for (const key in eAuthenticity) {
const enumValue = eAuthenticity[key];
enumValue !== 0 && (value & enumValue) === enumValue && result.push(enumValue);
}
return result;
}, isAuthenticity = (authenticity) => Object.values(eAuthenticity).includes(authenticity);
var eIRVisibilityFlag = /* @__PURE__ */ ((eIRVisibilityFlag2) => (eIRVisibilityFlag2[eIRVisibilityFlag2.INVISIBLE = 0] = "INVISIBLE", eIRVisibilityFlag2[eIRVisibilityFlag2.VISIBLE = 1] = "VISIBLE", eIRVisibilityFlag2[eIRVisibilityFlag2.COLORED = 2] = "COLORED", eIRVisibilityFlag2[eIRVisibilityFlag2.GRAYSCALE = 4] = "GRAYSCALE", eIRVisibilityFlag2[eIRVisibilityFlag2.WHITE_IR_MATCHING = 8] = "WHITE_IR_MATCHING", eIRVisibilityFlag2))(eIRVisibilityFlag || {});
const getIRVisibilityFlagArray = (value) => {
const result = [];
if (value === 0)
return result.push(eIRVisibilityFlag.INVISIBLE), result;
for (const key in eIRVisibilityFlag) {
const enumValue = eIRVisibilityFlag[key];
enumValue !== 0 && (value & enumValue) === enumValue && result.push(enumValue);
}
return result;
}, isIRVisibilityFlag = (lights) => Object.values(eIRVisibilityFlag).includes(lights);
var eLights = /* @__PURE__ */ ((eLights2) => (eLights2[eLights2.OFF = 0] = "OFF", eLights2[eLights2.OVI = 1] = "OVI", eLights2[eLights2.WHITE_TOP = 2] = "WHITE_TOP", eLights2[eLights2.WHITE_SIDE = 4] = "WHITE_SIDE", eLights2[eLights2.WHITE_FRONT = 8388608] = "WHITE_FRONT", eLights2[eLights2.IR_TOP = 8] = "IR_TOP", eLights2[eLights2.IR_SIDE = 16] = "IR_SIDE", eLights2[eLights2.IR_FRONT = 16777216] = "IR_FRONT", eLights2[eLights2.WHITE_GRAY = 33554432] = "WHITE_GRAY", eLights2[eLights2.OVD = 67108864] = "OVD", eLights2[eLights2.VIDEODETECTION = 134217728] = "VIDEODETECTION", eLights2[eLights2.IR_870_OBL = 268435456] = "IR_870_OBL", eLights2[eLights2.UV = 128] = "UV", eLights2[eLights2.IR_LUMINESCENCE = 256] = "IR_LUMINESCENCE", eLights2[eLights2.AXIAL_WHITE_LEFT = 1024] = "AXIAL_WHITE_LEFT", eLights2[eLights2.AXIAL_WHITE_RIGHT = 2048] = "AXIAL_WHITE_RIGHT", eLights2[eLights2.AXIAL_WHITE_FRONT = 512] = "AXIAL_WHITE_FRONT", eLights2[eLights2.IR_720 = 4096] = "IR_720", eLights2[eLights2.IR_940 = 8192] = "IR_940", eLights2[eLights2.WHITE_FULL = 6] = "WHITE_FULL", eLights2[eLights2.IR_FULL = 24] = "IR_FULL", eLights2[eLights2.AXIAL_WHITE_FULL = 3072] = "AXIAL_WHITE_FULL", eLights2[eLights2.RAW_DATA = 2147483648] = "RAW_DATA", eLights2[eLights2.RAW_DATA_GRBG = 2415919104] = "RAW_DATA_GRBG", eLights2[eLights2.RAW_DATA_GBGR = 2684354560] = "RAW_DATA_GBGR", eLights2[eLights2.RAW_DATA_RGGB = 2952790016] = "RAW_DATA_RGGB", eLights2[eLights2.RAW_DATA_BGGR = 3221225472] = "RAW_DATA_BGGR", eLights2[eLights2.TRANSMITTED = 32] = "TRANSMITTED", eLights2[eLights2.TRANSMITTED_IR = 64] = "TRANSMITTED_IR", eLights2[eLights2.ANTI_STOKES = 65536] = "ANTI_STOKES", eLights2[eLights2.TRANSMITTED_IR940 = 16384] = "TRANSMITTED_IR940", eLights2[eLights2.OVD_RIGHT = 262144] = "OVD_RIGHT", eLights2[eLights2.OVD_LEFT = 131072] = "OVD_LEFT", eLights2[eLights2.IR_700 = 32768] = "IR_700", eLights2[
eLights2.IR_870 = 16777216
/* IR_FRONT */
] = "IR_870", eLights2[
eLights2.HOLO = 67108864
/* OVD */
] = "HOLO", eLights2[
eLights2.IR_BOTTOM = 64
/* TRANSMITTED_IR */
] = "IR_BOTTOM", eLights2[
eLights2.WHITE_BOTTOM = 32
/* TRANSMITTED */
] = "WHITE_BOTTOM", eLights2[eLights2.UVC = 524288] = "UVC", eLights2[eLights2.UVB = 1048576] = "UVB", eLights2[eLights2.WHITE_OBL = 2097152] = "WHITE_OBL", eLights2[eLights2.WHITE_SPECIAL = 4194304] = "WHITE_SPECIAL", eLights2[eLights2.WHITE_UV = 134] = "WHITE_UV", eLights2[eLights2.WHITE_FULL_HOLO = 67108870] = "WHITE_FULL_HOLO", eLights2[eLights2.HR_LIGHT = 1073741824] = "HR_LIGHT", eLights2[eLights2.HR_WHITE = 1073741830] = "HR_WHITE", eLights2[eLights2.HR_UV = 1073741952] = "HR_UV", eLights2[eLights2.HR_IR = 1073741848] = "HR_IR", eLights2))(eLights || {});
const getLightsArray = (value) => {
const result = [];
if (value === 0)
return result.push(eLights.OFF), result;
for (const key in eLights) {
const enumValue = eLights[key];
enumValue !== 0 && (value & enumValue) === enumValue && result.push(enumValue);
}
return result;
}, isLights = (lights) => Object.values(eLights).includes(lights);
var eRfidTerminalAuthorizationRequirement = /* @__PURE__ */ ((eRfidTerminalAuthorizationRequirement2) => (eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.IS_E_PASSPORT_DG3 = 1] = "IS_E_PASSPORT_DG3", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.IS_E_PASSPORT_DG4 = 2] = "IS_E_PASSPORT_DG4", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.IS_E_PASSPORT_ALL_DG = 3] = "IS_E_PASSPORT_ALL_DG", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG1 = 1] = "AT_EID_READ_DG1", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG2 = 2] = "AT_EID_READ_DG2", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG3 = 4] = "AT_EID_READ_DG3", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG4 = 8] = "AT_EID_READ_DG4", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG5 = 16] = "AT_EID_READ_DG5", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG6 = 32] = "AT_EID_READ_DG6", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG7 = 64] = "AT_EID_READ_DG7", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG8 = 128] = "AT_EID_READ_DG8", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG9 = 256] = "AT_EID_READ_DG9", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG10 = 512] = "AT_EID_READ_DG10", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG11 = 1024] = "AT_EID_READ_DG11", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG12 = 2048] = "AT_EID_READ_DG12", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG13 = 4096] = "AT_EID_READ_DG13", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG14 = 8192] = "AT_EID_READ_DG14", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG15 = 16384] = "AT_EID_READ_DG15", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG16 = 32768] = "AT_EID_READ_DG16", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG17 = 65536] = "AT_EID_READ_DG17", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG18 = 131072] = "AT_EID_READ_DG18", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG19 = 262144] = "AT_EID_READ_DG19", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG20 = 524288] = "AT_EID_READ_DG20", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_DG21 = 1048576] = "AT_EID_READ_DG21", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_READ_ALL_DG = 2097151] = "AT_EID_READ_ALL_DG", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_WRITE_DG17 = 2097152] = "AT_EID_WRITE_DG17", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_WRITE_DG18 = 4194304] = "AT_EID_WRITE_DG18", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_WRITE_DG19 = 8388608] = "AT_EID_WRITE_DG19", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_WRITE_DG20 = 16777216] = "AT_EID_WRITE_DG20", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_WRITE_DG21 = 33554432] = "AT_EID_WRITE_DG21", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_EID_WRITE_ALL_DG = 65011712] = "AT_EID_WRITE_ALL_DG", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_FUNC_INSTALL_Q_CERT = 1] = "AT_FUNC_INSTALL_Q_CERT", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_FUNC_INSTALL_CERT = 2] = "AT_FUNC_INSTALL_CERT", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_FUNC_PIN_MANAGEMENT = 4] = "AT_FUNC_PIN_MANAGEMENT", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_FUNC_CAN_ALLOWED = 8] = "AT_FUNC_CAN_ALLOWED", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_FUNC_PRIVILEGED_TERMINAL = 16] = "AT_FUNC_PRIVILEGED_TERMINAL", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_FUNC_RESTRICTED_IDENT = 32] = "AT_FUNC_RESTRICTED_IDENT", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_FUNC_VERIFY_COMMUNITY_ID = 64] = "AT_FUNC_VERIFY_COMMUNITY_ID", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_FUNC_VERIFY_AGE = 128] = "AT_FUNC_VERIFY_AGE", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.AT_FUNC_FULL = 255] = "AT_FUNC_FULL", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.ST_GEN_QUALIFIED_SIGNATURE = 1] = "ST_GEN_QUALIFIED_SIGNATURE", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.ST_GEN_SIGNATURE = 2] = "ST_GEN_SIGNATURE", eRfidTerminalAuthorizationRequirement2[eRfidTerminalAuthorizationRequirement2.ST_GEN_FULL = 3] = "ST_GEN_FULL", eRfidTerminalAuthorizationRequirement2))(eRfidTerminalAuthorizationRequirement || {});
const getRfidTerminalAuthorizationRequirements = (value) => {
const result = [];
for (const key in eRfidTerminalAuthorizationRequirement) {
const enumValue = eRfidTerminalAuthorizationRequirement[key];
(value & enumValue) === enumValue && result.push(enumValue);
}
return result;
}, isRfidTerminalAuthorizationRequirement = (requirements) => Object.values(eRfidTerminalAuthorizationRequirement).includes(requirements);
var eBarCodeDetectionType = /* @__PURE__ */ ((eBarCodeDetectionType2) => (eBarCodeDetectionType2[eBarCodeDetectionType2.LINEAR = 1] = "LINEAR", eBarCodeDetectionType2[eBarCodeDetectionType2.TWO_DIMENSIONAL = 2] = "TWO_DIMENSIONAL", eBarCodeDetectionType2))(eBarCodeDetectionType || {}), eBarCodeModuleType = /* @__PURE__ */ ((eBarCodeModuleType2) => (eBarCodeModuleType2[eBarCodeModuleType2.TEXT = 0] = "TEXT", eBarCodeModuleType2[eBarCodeModuleType2.BYTE = 1] = "BYTE", eBarCodeModuleType2[eBarCodeModuleType2.NUM = 2] = "NUM", eBarCodeModuleType2[eBarCodeModuleType2.SHIFT = 3] = "SHIFT", eBarCodeModuleType2[eBarCodeModuleType2.ALL = 4] = "ALL", eBarCodeModuleType2))(eBarCodeModuleType || {}), eBarCodeResultCodes = /* @__PURE__ */ ((eBarCodeResultCodes2) => (eBarCodeResultCodes2[eBarCodeResultCodes2.NO_ERR = 0] = "NO_ERR", eBarCodeResultCodes2[eBarCodeResultCodes2.INVALID_RESULT = 140] = "INVALID_RESULT", eBarCodeResultCodes2[eBarCodeResultCodes2.NULL_PTR_ERR = -6001] = "NULL_PTR_ERR", eBarCodeResultCodes2[eBarCodeResultCodes2.BAD_ARG_ERR = -6002] = "BAD_ARG_ERR", eBarCodeResultCodes2[eBarCodeResultCodes2.SIZE_ERR = -6003] = "SIZE_ERR", eBarCodeResultCodes2[eBarCodeResultCodes2.RANGE_ERR = -6004] = "RANGE_ERR", eBarCodeResultCodes2[eBarCodeResultCodes2.INTERNAL_ERR = -6005] = "INTERNAL_ERR", eBarCodeResultCodes2[eBarCodeResultCodes2.TRY_EXCEPT_ERR = -6006] = "TRY_EXCEPT_ERR", eBarCodeResultCodes2[eBarCodeResultCodes2.BAR_CODE_NOT_FOUND = -6008] = "BAR_CODE_NOT_FOUND", eBarCodeResultCodes2[eBarCodeResultCodes2.BAR_CODE_DECODE_ERR = -6010] = "BAR_CODE_DECODE_ERR", eBarCodeResultCodes2[eBarCodeResultCodes2.NO_USER_DLL_FOUND = -6019] = "NO_USER_DLL_FOUND", eBarCodeResultCodes2[eBarCodeResultCodes2.NO_IPP_DLL_FOUND = -6020] = "NO_IPP_DLL_FOUND", eBarCodeResultCodes2[eBarCodeResultCodes2.IPP_EXEC_ERR = -6024] = "IPP_EXEC_ERR", eBarCodeResultCodes2[eBarCodeResultCodes2.IPP_TRY_EXCEPT_ERR = -6025] = "IPP_TRY_EXCEPT_ERR", eBarCodeResultCodes2[eBarCodeResultCodes2.BARCODE_ERROR_INPUT_PARAM = -11001] = "BARCODE_ERROR_INPUT_PARAM", eBarCodeResultCodes2[eBarCodeResultCodes2.BARCODE_ERROR_F_INIT = -11006] = "BARCODE_ERROR_F_INIT", eBarCodeResultCodes2[eBarCodeResultCodes2.BARCODE_ERROR_NOT_LOAD_IP_DECODE_DLL = -11012] = "BARCODE_ERROR_NOT_LOAD_IP_DECODE_DLL", eBarCodeResultCodes2[eBarCodeResultCodes2.BARCODE_ERROR_INNER_PROBLEM = -11100] = "BARCODE_ERROR_INNER_PROBLEM", eBarCodeResultCodes2[eBarCodeResultCodes2.BARCODE_ERROR_DECODE_1D_BAD_DECODE = -11200] = "BARCODE_ERROR_DECODE_1D_BAD_DECODE", eBarCodeResultCodes2[eBarCodeResultCodes2.BARCODE_ERROR_FIND_ROW_OR_COLUMN = -11201] = "BARCODE_ERROR_FIND_ROW_OR_COLUMN", eBarCodeResultCodes2[eBarCodeResultCodes2.BARCODE_ERROR_FIND_3X8_2D_X = -11202] = "BARCODE_ERROR_FIND_3X8_2D_X", eBarCodeResultCodes2[eBarCodeResultCodes2.BARCODE_ERROR_FIND_3X8_2D_Y = -11203] = "BARCODE_ERROR_FIND_3X8_2D_Y", eBarCodeResultCodes2[eBarCodeResultCodes2.BARCODE_ERROR_2D_UGOL_MAX = -11204] = "BARCODE_ERROR_2D_UGOL_MAX", eBarCodeResultCodes2[eBarCodeResultCodes2.BARCODE_ERR