UNPKG

@meshsdk/react

Version:

React component library - https://meshjs.dev/react

746 lines (745 loc) 1.73 MB
"use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __commonJS = (cb, mod) => function __require() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // ../../node_modules/@fabianbormann/cardano-peer-connect/dist/index.js var require_dist = __commonJS({ "../../node_modules/@fabianbormann/cardano-peer-connect/dist/index.js"(exports, module) { "use strict"; !(function(t, e2) { "object" == typeof exports && "object" == typeof module ? module.exports = e2() : "function" == typeof define && define.amd ? define([], e2) : "object" == typeof exports ? exports.CardanoPeerConnect = e2() : t.CardanoPeerConnect = e2(); })(exports, (() => (() => { var __webpack_modules__ = { 726: (t) => { var e2; globalThis, e2 = function() { return (() => { var t2 = { "./node_modules/@basementuniverse/commonjs/common.js": (t3) => { Math.floatEquals = (t4, e5, r3 = Number.EPSILON) => Math.abs(t4 - e5) < r3, Math.clamp = (t4, e5 = 0, r3 = 1) => t4 < e5 ? e5 : t4 > r3 ? r3 : t4, Math.frac = (t4) => t4 >= 0 ? t4 - Math.floor(t4) : t4 - Math.ceil(t4), Math.lerp = (t4, e5, r3) => t4 + (e5 - t4) * r3, Math.unlerp = (t4, e5, r3) => (r3 - t4) / (e5 - t4), Math.blerp = (t4, e5, r3, i2, n, o) => Math.lerp(Math.lerp(t4, e5, n), Math.lerp(r3, i2, n), o), Math.remap = (t4, e5, r3, i2, n) => i2 + (t4 - e5) * (n - i2) / (r3 - e5), Math.smoothstep = (t4, e5, r3) => Math.lerp(t4, e5, 3 * Math.pow(r3, 2) - 2 * Math.pow(r3, 3)), Math.radians = (t4) => Math.PI / 180 * t4, Math.degrees = (t4) => 180 / Math.PI * t4, Math.randomBetween = (t4, e5) => Math.random() * (e5 - t4) + t4, Math.randomIntBetween = (t4, e5) => Math.floor(Math.random() * (e5 - t4 + 1)) + t4, Math.cltRandom = (t4 = 0.5, e5 = 0.5, r3 = 2) => { let i2 = 0; for (let t5 = r3; t5--; ) i2 += Math.random(); return t4 + (i2 - r3 / 2) / (r3 / 2) * e5; }, Math.cltRandomInt = (t4, e5) => Math.floor(t4 + Math.cltRandom(0.5, 0.5, 2) * (e5 + 1 - t4)), Math.weightedRandom = (t4) => { let e5 = t4.reduce(((t5, e6) => t5 + e6), 0), r3 = 0; const i2 = Math.random() * e5; for (; e5 > i2; ) e5 -= t4[r3++]; return r3 - 1; }, Math.lerpArray = (t4, e5, r3 = Math.lerp) => { const i2 = e5 * (t4.length - 1), n = Math.clamp(Math.trunc(i2), 0, t4.length - 1); return r3(t4[n] || 0, t4[n + 1] || 0, Math.frac(i2)); }, Math.dot = (t4, e5) => t4.reduce(((t5, r3, i2) => t5 + r3 * e5[i2]), 0), Math.factorial = (t4) => { let e5 = 1; for (let r3 = 2; r3 <= t4; r3++) e5 *= r3; return e5; }, Math.permutation = (t4, e5) => Math.factorial(t4) / Math.factorial(t4 - e5), Math.combination = (t4, e5) => Math.factorial(t4) / (Math.factorial(e5) * Math.factorial(t4 - e5)), Array.times = (t4, e5) => Array(e5).fill(0).map(((e6, r3) => t4(r3))), Array.range = (t4) => Array.times(((t5) => t5), t4), Array.zip = (t4, e5) => t4.map(((t5, r3) => [t5, e5[r3]])), Object.defineProperty(Array.prototype, "at", { value: function(t4) { const e5 = this.length; if (e5) return this[(t4 % e5 + e5) % e5]; }, writable: true, configurable: true, enumerable: false }), Array.prototype.chunk || Object.defineProperty(Array.prototype, "chunk", { value: function(t4) { return Array.times(((e5) => this.slice(e5 * t4, e5 * t4 + t4)), Math.ceil(this.length / t4)); }, writable: true, configurable: true, enumerable: false }), Array.prototype.shuffle || Object.defineProperty(Array.prototype, "shuffle", { value: function() { return this.map(((t4) => [Math.random(), t4])).sort(((t4, e5) => t4[0] - e5[0])).map(((t4) => t4[1])); }, writable: true, configurable: true, enumerable: false }); const e4 = (t4, e5) => t4 || e5 ? "object" == typeof t4 ? { x: t4.x || 0, y: t4.y || 0 } : null == e5 ? { x: t4, y: t4 } : { x: t4, y: e5 } : { x: 0, y: 0 }; e4.components = (t4) => [t4.x, t4.y], e4.ux = () => e4(1, 0), e4.uy = () => e4(0, 1), e4.add = (t4, e5) => ({ x: t4.x + e5.x, y: t4.y + e5.y }), e4.mul = (t4, e5) => ({ x: t4.x * e5, y: t4.y * e5 }), e4.sub = (t4, e5) => ({ x: t4.x - e5.x, y: t4.y - e5.y }), e4.len = (t4) => Math.sqrt(t4.x * t4.x + t4.y * t4.y), e4.manhattan = (t4) => Math.abs(t4.x) + Math.abs(t4.y), e4.nor = (t4) => { let r3 = e4.len(t4); return r3 ? { x: t4.x / r3, y: t4.y / r3 } : e4(); }, e4.dot = (t4, e5) => t4.x * e5.x + t4.y * e5.y, e4.rot = (t4, e5) => { let r3 = Math.sin(e5), i2 = Math.cos(e5); return { x: i2 * t4.x - r3 * t4.y, y: r3 * t4.x + i2 * t4.y }; }, e4.eq = (t4, e5) => t4.x === e5.x && t4.y === e5.y, e4.rad = (t4) => Math.atan2(t4.y, t4.x), e4.cpy = (t4) => e4(t4), e4.map = (t4, e5) => ({ x: e5(t4.x, "x"), y: e5(t4.y, "y") }), e4.str = (t4, e5 = ", ") => `${t4.x}${e5}${t4.y}`; const r2 = (t4 = 4, e5 = 4, r3 = []) => ({ m: t4, n: e5, entries: r3.concat(Array(t4 * e5).fill(0)).slice(0, t4 * e5) }); r2.identity = (t4) => r2(t4, t4, Array(t4 * t4).fill(0).map(((e5, r3) => +(Math.floor(r3 / t4) === r3 % t4)))), r2.get = (t4, e5, r3) => t4.entries[r3 - 1 + (e5 - 1) * t4.n], r2.set = (t4, e5, r3, i2) => { t4.entries[r3 - 1 + (e5 - 1) * t4.n] = i2; }, r2.row = (t4, e5) => { const r3 = (e5 - 1) * t4.n; return t4.entries.slice(r3, r3 + t4.n); }, r2.col = (t4, e5) => Array.times(((i2) => r2.get(t4, i2 + 1, e5)), t4.m), r2.add = (t4, e5) => t4.m === e5.m && t4.n === e5.n && r2.map(t4, ((t5, r3) => t5 + e5.entries[r3])), r2.sub = (t4, e5) => t4.m === e5.m && t4.n === e5.n && r2.map(t4, ((t5, r3) => t5 - e5.entries[r3])), r2.mul = (t4, e5) => { if (t4.n !== e5.m) return false; const i2 = r2(t4.m, e5.n); for (let n = 1; n <= t4.m; n++) for (let o = 1; o <= e5.n; o++) r2.set(i2, n, o, Math.dot(r2.row(t4, n), r2.col(e5, o))); return i2; }, r2.scale = (t4, e5) => r2.map(t4, ((t5) => t5 * e5)), r2.trans = (t4) => r2(t4.n, t4.m, Array.times(((e5) => r2.col(t4, e5 + 1)), t4.n).flat()), r2.minor = (t4, e5, i2) => { if (t4.m !== t4.n) return false; const n = []; for (let o = 1; o <= t4.m; o++) if (o !== e5) for (let e6 = 1; e6 <= t4.n; e6++) e6 !== i2 && n.push(r2.get(t4, o, e6)); return r2(t4.m - 1, t4.n - 1, n); }, r2.det = (t4) => { if (t4.m !== t4.n) return false; if (1 === t4.m) return t4.entries[0]; if (2 === t4.m) return t4.entries[0] * t4.entries[3] - t4.entries[1] * t4.entries[2]; let e5 = 0, i2 = 1; for (let n = 1; n <= t4.n; n++) e5 += i2 * t4.entries[n - 1] * r2.det(r2.minor(t4, 1, n)), i2 *= -1; return e5; }, r2.nor = (t4) => { if (t4.m !== t4.n) return false; const e5 = r2.det(t4); return r2.map(t4, ((t5) => t5 * e5)); }, r2.adj = (t4) => { const e5 = r2(t4.m, t4.n); for (let i3 = 1; i3 <= t4.m; i3++) for (let n = 1; n <= t4.n; n++) r2.set(e5, i3, n, r2.det(r2.minor(t4, i3, n))); const i2 = r2.map(e5, ((t5, e6) => t5 * (e6 % 2 ? -1 : 1))); return r2.trans(i2); }, r2.inv = (t4) => { if (t4.m !== t4.n) return false; const e5 = r2.det(t4); return 0 !== e5 && r2.scale(r2.adj(t4), 1 / e5); }, r2.eq = (t4, e5) => t4.m === e5.m && t4.n === e5.n && r2.str(t4) === r2.str(e5), r2.cpy = (t4) => r2(t4.m, t4.n, [...t4.entries]), r2.map = (t4, e5) => r2(t4.m, t4.n, t4.entries.map(e5)), r2.str = (t4, e5 = ", ", r3 = "\n") => t4.entries.chunk(t4.n).map(((t5) => t5.join(e5))).join(r3), t3.exports = { vec: e4, mat: r2 }; }, "./node_modules/seed-random/index.js": (t3, e4, r2) => { "use strict"; var i2 = 256, n = [], o = void 0 === r2.g ? window : r2.g, s = Math.pow(i2, 6), a = Math.pow(2, 52), h = 2 * a, u = 255, f = Math.random; function l(t4) { var e5, r3 = t4.length, n2 = this, o2 = 0, s2 = n2.i = n2.j = 0, a2 = n2.S = []; for (r3 || (t4 = [r3++]); o2 < i2; ) a2[o2] = o2++; for (o2 = 0; o2 < i2; o2++) a2[o2] = a2[s2 = u & s2 + t4[o2 % r3] + (e5 = a2[o2])], a2[s2] = e5; (n2.g = function(t5) { for (var e6, r4 = 0, o3 = n2.i, s3 = n2.j, a3 = n2.S; t5--; ) e6 = a3[o3 = u & o3 + 1], r4 = r4 * i2 + a3[u & (a3[o3] = a3[s3 = u & s3 + e6]) + (a3[s3] = e6)]; return n2.i = o3, n2.j = s3, r4; })(i2); } function c(t4, e5) { var r3, i3 = [], n2 = (typeof t4)[0]; if (e5 && "o" == n2) for (r3 in t4) try { i3.push(c(t4[r3], e5 - 1)); } catch (t5) { } return i3.length ? i3 : "s" == n2 ? t4 : t4 + "\0"; } function d(t4, e5) { for (var r3, i3 = t4 + "", n2 = 0; n2 < i3.length; ) e5[u & n2] = u & (r3 ^= 19 * e5[u & n2]) + i3.charCodeAt(n2++); return p(e5); } function p(t4) { return String.fromCharCode.apply(0, t4); } t3.exports = function(e5, r3) { if (r3 && true === r3.global) return r3.global = false, Math.random = t3.exports(e5, r3), r3.global = true, Math.random; var u2 = [], f2 = (d(c(r3 && r3.entropy ? [e5, p(n)] : 0 in arguments ? e5 : (function(t4) { try { return o.crypto.getRandomValues(t4 = new Uint8Array(i2)), p(t4); } catch (t5) { return [+/* @__PURE__ */ new Date(), o, o.navigator && o.navigator.plugins, o.screen, p(n)]; } })(), 3), u2), new l(u2)); return d(p(f2.S), n), function() { for (var t4 = f2.g(6), e6 = s, r4 = 0; t4 < a; ) t4 = (t4 + r4) * i2, e6 *= i2, r4 = f2.g(1); for (; t4 >= h; ) t4 /= 2, e6 /= 2, r4 >>>= 1; return (t4 + r4) / e6; }; }, t3.exports.resetGlobal = function() { Math.random = f; }, d(Math.random(), n); } }, e3 = {}; function r(i2) { var n = e3[i2]; if (void 0 !== n) return n.exports; var o = e3[i2] = { exports: {} }; return t2[i2](o, o.exports, r), o.exports; } r.g = (function() { if ("object" == typeof globalThis) return globalThis; try { return this || new Function("return this")(); } catch (t3) { if ("object" == typeof window) return window; } })(); var i = {}; return (() => { "use strict"; var t3 = i; Object.defineProperty(t3, "__esModule", { value: true }), t3.identicon = void 0; const e4 = r("./node_modules/seed-random/index.js"), n = r("./node_modules/@basementuniverse/commonjs/common.js"), o = { size: 100, baseSeed: "", font: "Helvetica", fontStyle: "bold", fontSize: 0.4, backgroundColours: ["#16a085", "#1abc9c", "#2ecc71", "#3498db", "#1970b9", "#9b59b6", "#e67e22", "#e74c3c", "#e0395b"], initialsColours: ["#ffffff"], initialsOffset: n.vec(), initialsAlpha: 1, initialsCompositeOperation: "source-over", stripeColours: ["#f1c40f"], stripeAlpha: 0.15, stripeCompositeOperation: "lighter", stripes: [3, 8], stripeWidth: [0.2, 0.7], stripeDeviation: [-0.5, 0.5], curveAmount: [0.2, 0.4], curveOffset: [0, 0.5], startWidthSign: ["positive", "negative"], endWidthSign: ["positive", "negative"] }, s = 2 * Math.PI, a = { positive: 1, negative: -1 }; function h(t4, e5, r2) { const i2 = a[e5.startWidthSign.shuffle()[0]], o2 = r2 + Math.randomBetween(e5.stripeWidth[0], e5.stripeWidth[1]) * i2, s2 = r2 + Math.PI + Math.randomBetween(e5.curveOffset[0], e5.curveOffset[1]), h2 = a[e5.endWidthSign.shuffle()[0]], f = s2 + Math.randomBetween(e5.stripeWidth[0], e5.stripeWidth[1]) * h2, l = r2 + Math.PI / 2, c = n.vec.mul(n.vec(e5.size), 0.5), d = 2 * Math.sqrt(c.x * c.x + c.y * c.y), p = u(c, d, r2), m = u(c, d, o2), g = u(c, d, s2), y = u(c, d, f), b = u(c, d * Math.randomBetween(e5.curveAmount[0], e5.curveAmount[1]), l); t4.beginPath(), t4.moveTo(p.x, p.y), t4.quadraticCurveTo(b.x, b.y, g.x, g.y), t4.lineTo(y.x, y.y), t4.quadraticCurveTo(b.x, b.y, m.x, m.y), t4.closePath(), t4.fill(); } function u(t4, e5, r2) { return n.vec.add(t4, n.vec(e5 * Math.sin(r2), e5 * Math.cos(r2))); } t3.identicon = function(t4, r2 = {}) { const i2 = Object.assign({}, o, r2); t4 && "string" == typeof t4 || (t4 = "Anonymous"); const a2 = t4.split(/[\s\-']/).map(((t5) => t5[0].toUpperCase())).join(""), u2 = `${r2.baseSeed}${t4}`; e4(u2, { global: true }); const f = document.createElement("canvas"), l = f.getContext("2d"); return f.width = i2.size, f.height = i2.size, (function(t5, e5, r3) { t5.save(); const i3 = Math.randomIntBetween(0, Math.max(e5.backgroundColours.length, e5.stripeColours.length, e5.initialsColours.length) - 1); t5.fillStyle = e5.backgroundColours[Math.clamp(i3, 0, e5.backgroundColours.length - 1)], t5.fillRect(0, 0, e5.size, e5.size), t5.save(), t5.fillStyle = e5.stripeColours[Math.clamp(i3, 0, e5.stripeColours.length - 1)], t5.globalAlpha = e5.stripeAlpha, t5.globalCompositeOperation = e5.stripeCompositeOperation; const o2 = Math.randomIntBetween(e5.stripes[0], e5.stripes[1]); let a3 = Math.random() * s; for (let r4 = 0; r4 < o2; r4++) h(t5, e5, a3), a3 += Math.randomBetween(e5.stripeDeviation[0], e5.stripeDeviation[1]); t5.restore(), (function(t6, e6, r4, i4) { t6.save(), t6.font = `${e6.fontStyle} ${Math.floor(e6.size * e6.fontSize)}px ${e6.font}`, t6.fillStyle = e6.initialsColours[Math.clamp(i4, 0, e6.initialsColours.length - 1)], t6.globalAlpha = e6.initialsAlpha, t6.globalCompositeOperation = e6.initialsCompositeOperation, t6.textAlign = "center", t6.textBaseline = "middle"; const o3 = n.vec.mul(n.vec(e6.size), 0.5); t6.fillText(r4, o3.x + e6.initialsOffset.x, o3.y + e6.initialsOffset.y), t6.restore(); })(t5, e5, r3, i3), t5.restore(); })(l, i2, a2), e4.resetGlobal(), f; }; })(), i; })(); }, t.exports = e2(); }, 747: function(module) { var e; e = () => (() => { var __webpack_modules__ = { 7568: (t, e2, r) => { var i = e2; i.bignum = r(2344), i.define = r(7363).define, i.base = r(9673), i.constants = r(2153), i.decoders = r(2853), i.encoders = r(4669); }, 7363: (t, e2, r) => { var i = r(7568), n = r(6698); function o(t2, e3) { this.name = t2, this.body = e3, this.decoders = {}, this.encoders = {}; } e2.define = function(t2, e3) { return new o(t2, e3); }, o.prototype._createNamed = function(t2) { var e3; try { e3 = r(8961).runInThisContext("(function " + this.name + "(entity) {\n this._initNamed(entity);\n})"); } catch (t3) { e3 = function(t4) { this._initNamed(t4); }; } return n(e3, t2), e3.prototype._initNamed = function(e4) { t2.call(this, e4); }, new e3(this); }, o.prototype._getDecoder = function(t2) { return t2 = t2 || "der", this.decoders.hasOwnProperty(t2) || (this.decoders[t2] = this._createNamed(i.decoders[t2])), this.decoders[t2]; }, o.prototype.decode = function(t2, e3, r2) { return this._getDecoder(e3).decode(t2, r2); }, o.prototype._getEncoder = function(t2) { return t2 = t2 || "der", this.encoders.hasOwnProperty(t2) || (this.encoders[t2] = this._createNamed(i.encoders[t2])), this.encoders[t2]; }, o.prototype.encode = function(t2, e3, r2) { return this._getEncoder(e3).encode(t2, r2); }; }, 7227: (t, e2, r) => { var i = r(6698), n = r(9673).Reporter, o = r(8287).Buffer; function s(t2, e3) { n.call(this, e3), o.isBuffer(t2) ? (this.base = t2, this.offset = 0, this.length = t2.length) : this.error("Input not Buffer"); } function a(t2, e3) { if (Array.isArray(t2)) this.length = 0, this.value = t2.map((function(t3) { return t3 instanceof a || (t3 = new a(t3, e3)), this.length += t3.length, t3; }), this); else if ("number" == typeof t2) { if (!(0 <= t2 && t2 <= 255)) return e3.error("non-byte EncoderBuffer value"); this.value = t2, this.length = 1; } else if ("string" == typeof t2) this.value = t2, this.length = o.byteLength(t2); else { if (!o.isBuffer(t2)) return e3.error("Unsupported type: " + typeof t2); this.value = t2, this.length = t2.length; } } i(s, n), e2.t = s, s.prototype.save = function() { return { offset: this.offset, reporter: n.prototype.save.call(this) }; }, s.prototype.restore = function(t2) { var e3 = new s(this.base); return e3.offset = t2.offset, e3.length = this.offset, this.offset = t2.offset, n.prototype.restore.call(this, t2.reporter), e3; }, s.prototype.isEmpty = function() { return this.offset === this.length; }, s.prototype.readUInt8 = function(t2) { return this.offset + 1 <= this.length ? this.base.readUInt8(this.offset++, true) : this.error(t2 || "DecoderBuffer overrun"); }, s.prototype.skip = function(t2, e3) { if (!(this.offset + t2 <= this.length)) return this.error(e3 || "DecoderBuffer overrun"); var r2 = new s(this.base); return r2._reporterState = this._reporterState, r2.offset = this.offset, r2.length = this.offset + t2, this.offset += t2, r2; }, s.prototype.raw = function(t2) { return this.base.slice(t2 ? t2.offset : this.offset, this.length); }, e2.d = a, a.prototype.join = function(t2, e3) { return t2 || (t2 = new o(this.length)), e3 || (e3 = 0), 0 === this.length || (Array.isArray(this.value) ? this.value.forEach((function(r2) { r2.join(t2, e3), e3 += r2.length; })) : ("number" == typeof this.value ? t2[e3] = this.value : "string" == typeof this.value ? t2.write(this.value, e3) : o.isBuffer(this.value) && this.value.copy(t2, e3), e3 += this.length)), t2; }; }, 9673: (t, e2, r) => { var i = e2; i.Reporter = r(9220).a, i.DecoderBuffer = r(7227).t, i.EncoderBuffer = r(7227).d, i.Node = r(993); }, 993: (t, e2, r) => { var i = r(9673).Reporter, n = r(9673).EncoderBuffer, o = r(9673).DecoderBuffer, s = r(3349), a = ["seq", "seqof", "set", "setof", "objid", "bool", "gentime", "utctime", "null_", "enum", "int", "objDesc", "bitstr", "bmpstr", "charstr", "genstr", "graphstr", "ia5str", "iso646str", "numstr", "octstr", "printstr", "t61str", "unistr", "utf8str", "videostr"], h = ["key", "obj", "use", "optional", "explicit", "implicit", "def", "choice", "any", "contains"].concat(a); function u(t2, e3) { var r2 = {}; this._baseState = r2, r2.enc = t2, r2.parent = e3 || null, r2.children = null, r2.tag = null, r2.args = null, r2.reverseArgs = null, r2.choice = null, r2.optional = false, r2.any = false, r2.obj = false, r2.use = null, r2.useDecoder = null, r2.key = null, r2.default = null, r2.explicit = null, r2.implicit = null, r2.contains = null, r2.parent || (r2.children = [], this._wrap()); } t.exports = u; var f = ["enc", "parent", "children", "tag", "args", "reverseArgs", "choice", "optional", "any", "obj", "use", "alteredUse", "key", "default", "explicit", "implicit", "contains"]; u.prototype.clone = function() { var t2 = this._baseState, e3 = {}; f.forEach((function(r3) { e3[r3] = t2[r3]; })); var r2 = new this.constructor(e3.parent); return r2._baseState = e3, r2; }, u.prototype._wrap = function() { var t2 = this._baseState; h.forEach((function(e3) { this[e3] = function() { var r2 = new this.constructor(this); return t2.children.push(r2), r2[e3].apply(r2, arguments); }; }), this); }, u.prototype._init = function(t2) { var e3 = this._baseState; s(null === e3.parent), t2.call(this), e3.children = e3.children.filter((function(t3) { return t3._baseState.parent === this; }), this), s.equal(e3.children.length, 1, "Root node can have only one child"); }, u.prototype._useArgs = function(t2) { var e3 = this._baseState, r2 = t2.filter((function(t3) { return t3 instanceof this.constructor; }), this); t2 = t2.filter((function(t3) { return !(t3 instanceof this.constructor); }), this), 0 !== r2.length && (s(null === e3.children), e3.children = r2, r2.forEach((function(t3) { t3._baseState.parent = this; }), this)), 0 !== t2.length && (s(null === e3.args), e3.args = t2, e3.reverseArgs = t2.map((function(t3) { if ("object" != typeof t3 || t3.constructor !== Object) return t3; var e4 = {}; return Object.keys(t3).forEach((function(r3) { r3 == (0 | r3) && (r3 |= 0); var i2 = t3[r3]; e4[i2] = r3; })), e4; }))); }, ["_peekTag", "_decodeTag", "_use", "_decodeStr", "_decodeObjid", "_decodeTime", "_decodeNull", "_decodeInt", "_decodeBool", "_decodeList", "_encodeComposite", "_encodeStr", "_encodeObjid", "_encodeTime", "_encodeNull", "_encodeInt", "_encodeBool"].forEach((function(t2) { u.prototype[t2] = function() { var e3 = this._baseState; throw new Error(t2 + " not implemented for encoding: " + e3.enc); }; })), a.forEach((function(t2) { u.prototype[t2] = function() { var e3 = this._baseState, r2 = Array.prototype.slice.call(arguments); return s(null === e3.tag), e3.tag = t2, this._useArgs(r2), this; }; })), u.prototype.use = function(t2) { s(t2); var e3 = this._baseState; return s(null === e3.use), e3.use = t2, this; }, u.prototype.optional = function() { return this._baseState.optional = true, this; }, u.prototype.def = function(t2) { var e3 = this._baseState; return s(null === e3.default), e3.default = t2, e3.optional = true, this; }, u.prototype.explicit = function(t2) { var e3 = this._baseState; return s(null === e3.explicit && null === e3.implicit), e3.explicit = t2, this; }, u.prototype.implicit = function(t2) { var e3 = this._baseState; return s(null === e3.explicit && null === e3.implicit), e3.implicit = t2, this; }, u.prototype.obj = function() { var t2 = this._baseState, e3 = Array.prototype.slice.call(arguments); return t2.obj = true, 0 !== e3.length && this._useArgs(e3), this; }, u.prototype.key = function(t2) { var e3 = this._baseState; return s(null === e3.key), e3.key = t2, this; }, u.prototype.any = function() { return this._baseState.any = true, this; }, u.prototype.choice = function(t2) { var e3 = this._baseState; return s(null === e3.choice), e3.choice = t2, this._useArgs(Object.keys(t2).map((function(e4) { return t2[e4]; }))), this; }, u.prototype.contains = function(t2) { var e3 = this._baseState; return s(null === e3.use), e3.contains = t2, this; }, u.prototype._decode = function(t2, e3) { var r2 = this._baseState; if (null === r2.parent) return t2.wrapResult(r2.children[0]._decode(t2, e3)); var i2, n2 = r2.default, s2 = true, a2 = null; if (null !== r2.key && (a2 = t2.enterKey(r2.key)), r2.optional) { var h2 = null; if (null !== r2.explicit ? h2 = r2.explicit : null !== r2.implicit ? h2 = r2.implicit : null !== r2.tag && (h2 = r2.tag), null !== h2 || r2.any) { if (s2 = this._peekTag(t2, h2, r2.any), t2.isError(s2)) return s2; } else { var u2 = t2.save(); try { null === r2.choice ? this._decodeGeneric(r2.tag, t2, e3) : this._decodeChoice(t2, e3), s2 = true; } catch (t3) { s2 = false; } t2.restore(u2); } } if (r2.obj && s2 && (i2 = t2.enterObject()), s2) { if (null !== r2.explicit) { var f2 = this._decodeTag(t2, r2.explicit); if (t2.isError(f2)) return f2; t2 = f2; } var l = t2.offset; if (null === r2.use && null === r2.choice) { r2.any && (u2 = t2.save()); var c = this._decodeTag(t2, null !== r2.implicit ? r2.implicit : r2.tag, r2.any); if (t2.isError(c)) return c; r2.any ? n2 = t2.raw(u2) : t2 = c; } if (e3 && e3.track && null !== r2.tag && e3.track(t2.path(), l, t2.length, "tagged"), e3 && e3.track && null !== r2.tag && e3.track(t2.path(), t2.offset, t2.length, "content"), r2.any || (n2 = null === r2.choice ? this._decodeGeneric(r2.tag, t2, e3) : this._decodeChoice(t2, e3)), t2.isError(n2)) return n2; if (r2.any || null !== r2.choice || null === r2.children || r2.children.forEach((function(r3) { r3._decode(t2, e3); })), r2.contains && ("octstr" === r2.tag || "bitstr" === r2.tag)) { var d = new o(n2); n2 = this._getUse(r2.contains, t2._reporterState.obj)._decode(d, e3); } } return r2.obj && s2 && (n2 = t2.leaveObject(i2)), null === r2.key || null === n2 && true !== s2 ? null !== a2 && t2.exitKey(a2) : t2.leaveKey(a2, r2.key, n2), n2; }, u.prototype._decodeGeneric = function(t2, e3, r2) { var i2 = this._baseState; return "seq" === t2 || "set" === t2 ? null : "seqof" === t2 || "setof" === t2 ? this._decodeList(e3, t2, i2.args[0], r2) : /str$/.test(t2) ? this._decodeStr(e3, t2, r2) : "objid" === t2 && i2.args ? this._decodeObjid(e3, i2.args[0], i2.args[1], r2) : "objid" === t2 ? this._decodeObjid(e3, null, null, r2) : "gentime" === t2 || "utctime" === t2 ? this._decodeTime(e3, t2, r2) : "null_" === t2 ? this._decodeNull(e3, r2) : "bool" === t2 ? this._decodeBool(e3, r2) : "objDesc" === t2 ? this._decodeStr(e3, t2, r2) : "int" === t2 || "enum" === t2 ? this._decodeInt(e3, i2.args && i2.args[0], r2) : null !== i2.use ? this._getUse(i2.use, e3._reporterState.obj)._decode(e3, r2) : e3.error("unknown tag: " + t2); }, u.prototype._getUse = function(t2, e3) { var r2 = this._baseState; return r2.useDecoder = this._use(t2, e3), s(null === r2.useDecoder._baseState.parent), r2.useDecoder = r2.useDecoder._baseState.children[0], r2.implicit !== r2.useDecoder._baseState.implicit && (r2.useDecoder = r2.useDecoder.clone(), r2.useDecoder._baseState.implicit = r2.implicit), r2.useDecoder; }, u.prototype._decodeChoice = function(t2, e3) { var r2 = this._baseState, i2 = null, n2 = false; return Object.keys(r2.choice).some((function(o2) { var s2 = t2.save(), a2 = r2.choice[o2]; try { var h2 = a2._decode(t2, e3); if (t2.isError(h2)) return false; i2 = { type: o2, value: h2 }, n2 = true; } catch (e4) { return t2.restore(s2), false; } return true; }), this), n2 ? i2 : t2.error("Choice not matched"); }, u.prototype._createEncoderBuffer = function(t2) { return new n(t2, this.reporter); }, u.prototype._encode = function(t2, e3, r2) { var i2 = this._baseState; if (null === i2.default || i2.default !== t2) { var n2 = this._encodeValue(t2, e3, r2); if (void 0 !== n2 && !this._skipDefault(n2, e3, r2)) return n2; } }, u.prototype._encodeValue = function(t2, e3, r2) { var n2 = this._baseState; if (null === n2.parent) return n2.children[0]._encode(t2, e3 || new i()); var o2 = null; if (this.reporter = e3, n2.optional && void 0 === t2) { if (null === n2.default) return; t2 = n2.default; } var s2 = null, a2 = false; if (n2.any) o2 = this._createEncoderBuffer(t2); else if (n2.choice) o2 = this._encodeChoice(t2, e3); else if (n2.contains) s2 = this._getUse(n2.contains, r2)._encode(t2, e3), a2 = true; else if (n2.children) s2 = n2.children.map((function(r3) { if ("null_" === r3._baseState.tag) return r3._encode(null, e3, t2); if (null === r3._baseState.key) return e3.error("Child should have a key"); var i2 = e3.enterKey(r3._baseState.key); if ("object" != typeof t2) return e3.error("Child expected, but input is not object"); var n3 = r3._encode(t2[r3._baseState.key], e3, t2); return e3.leaveKey(i2), n3; }), this).filter((function(t3) { return t3; })), s2 = this._createEncoderBuffer(s2); else if ("seqof" === n2.tag || "setof" === n2.tag) { if (!n2.args || 1 !== n2.args.length) return e3.error("Too many args for : " + n2.tag); if (!Array.isArray(t2)) return e3.error("seqof/setof, but data is not Array"); var h2 = this.clone(); h2._baseState.implicit = null, s2 = this._createEncoderBuffer(t2.map((function(r3) { var i2 = this._baseState; return this._getUse(i2.args[0], t2)._encode(r3, e3); }), h2)); } else null !== n2.use ? o2 = this._getUse(n2.use, r2)._encode(t2, e3) : (s2 = this._encodePrimitive(n2.tag, t2), a2 = true); if (!n2.any && null === n2.choice) { var u2 = null !== n2.implicit ? n2.implicit : n2.tag, f2 = null === n2.implicit ? "universal" : "context"; null === u2 ? null === n2.use && e3.error("Tag could be omitted only for .use()") : null === n2.use && (o2 = this._encodeComposite(u2, a2, f2, s2)); } return null !== n2.explicit && (o2 = this._encodeComposite(n2.explicit, false, "context", o2)), o2; }, u.prototype._encodeChoice = function(t2, e3) { var r2 = this._baseState, i2 = r2.choice[t2.type]; return i2 || s(false, t2.type + " not found in " + JSON.stringify(Object.keys(r2.choice))), i2._encode(t2.value, e3); }, u.prototype._encodePrimitive = function(t2, e3) { var r2 = this._baseState; if (/str$/.test(t2)) return this._encodeStr(e3, t2); if ("objid" === t2 && r2.args) return this._encodeObjid(e3, r2.reverseArgs[0], r2.args[1]); if ("objid" === t2) return this._encodeObjid(e3, null, null); if ("gentime" === t2 || "utctime" === t2) return this._encodeTime(e3, t2); if ("null_" === t2) return this._encodeNull(); if ("int" === t2 || "enum" === t2) return this._encodeInt(e3, r2.args && r2.reverseArgs[0]); if ("bool" === t2) return this._encodeBool(e3); if ("objDesc" === t2) return this._encodeStr(e3, t2); throw new Error("Unsupported tag: " + t2); }, u.prototype._isNumstr = function(t2) { return /^[0-9 ]*$/.test(t2); }, u.prototype._isPrintstr = function(t2) { return /^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t2); }; }, 9220: (t, e2, r) => { var i = r(6698); function n(t2) { this._reporterState = { obj: null, path: [], options: t2 || {}, errors: [] }; } function o(t2, e3) { this.path = t2, this.rethrow(e3); } e2.a = n, n.prototype.isError = function(t2) { return t2 instanceof o; }, n.prototype.save = function() { var t2 = this._reporterState; return { obj: t2.obj, pathLen: t2.path.length }; }, n.prototype.restore = function(t2) { var e3 = this._reporterState; e3.obj = t2.obj, e3.path = e3.path.slice(0, t2.pathLen); }, n.prototype.enterKey = function(t2) { return this._reporterState.path.push(t2); }, n.prototype.exitKey = function(t2) { var e3 = this._reporterState; e3.path = e3.path.slice(0, t2 - 1); }, n.prototype.leaveKey = function(t2, e3, r2) { var i2 = this._reporterState; this.exitKey(t2), null !== i2.obj && (i2.obj[e3] = r2); }, n.prototype.path = function() { return this._reporterState.path.join("/"); }, n.prototype.enterObject = function() { var t2 = this._reporterState, e3 = t2.obj; return t2.obj = {}, e3; }, n.prototype.leaveObject = function(t2) { var e3 = this._reporterState, r2 = e3.obj; return e3.obj = t2, r2; }, n.prototype.error = function(t2) { var e3, r2 = this._reporterState, i2 = t2 instanceof o; if (e3 = i2 ? t2 : new o(r2.path.map((function(t3) { return "[" + JSON.stringify(t3) + "]"; })).join(""), t2.message || t2, t2.stack), !r2.options.partial) throw e3; return i2 || r2.errors.push(e3), e3; }, n.prototype.wrapResult = function(t2) { var e3 = this._reporterState; return e3.options.partial ? { result: this.isError(t2) ? null : t2, errors: e3.errors } : t2; }, i(o, Error), o.prototype.rethrow = function(t2) { if (this.message = t2 + " at: " + (this.path || "(shallow)"), Error.captureStackTrace && Error.captureStackTrace(this, o), !this.stack) try { throw new Error(this.message); } catch (t3) { this.stack = t3.stack; } return this; }; }, 4598: (t, e2, r) => { var i = r(2153); e2.tagClass = { 0: "universal", 1: "application", 2: "context", 3: "private" }, e2.tagClassByName = i._reverse(e2.tagClass), e2.tag = { 0: "end", 1: "bool", 2: "int", 3: "bitstr", 4: "octstr", 5: "null_", 6: "objid", 7: "objDesc", 8: "external", 9: "real", 10: "enum", 11: "embed", 12: "utf8str", 13: "relativeOid", 16: "seq", 17: "set", 18: "numstr", 19: "printstr", 20: "t61str", 21: "videostr", 22: "ia5str", 23: "utctime", 24: "gentime", 25: "graphstr", 26: "iso646str", 27: "genstr", 28: "unistr", 29: "charstr", 30: "bmpstr" }, e2.tagByName = i._reverse(e2.tag); }, 2153: (t, e2, r) => { var i = e2; i._reverse = function(t2) { var e3 = {}; return Object.keys(t2).forEach((function(r2) { (0 | r2) == r2 && (r2 |= 0); var i2 = t2[r2]; e3[i2] = r2; })), e3; }, i.der = r(4598); }, 2010: (t, e2, r) => { var i = r(6698), n = r(7568), o = n.base, s = n.bignum, a = n.constants.der; function h(t2) { this.enc = "der", this.name = t2.name, this.entity = t2, this.tree = new u(), this.tree._init(t2.body); } function u(t2) { o.Node.call(this, "der", t2); } function f(t2, e3) { var r2 = t2.readUInt8(e3); if (t2.isError(r2)) return r2; var i2 = a.tagClass[r2 >> 6], n2 = !(32 & r2); if (31 & ~r2) r2 &= 31; else { var o2 = r2; for (r2 = 0; !(128 & ~o2); ) { if (o2 = t2.readUInt8(e3), t2.isError(o2)) return o2; r2 <<= 7, r2 |= 127 & o2; } } return { cls: i2, primitive: n2, tag: r2, tagStr: a.tag[r2] }; } function l(t2, e3, r2) { var i2 = t2.readUInt8(r2); if (t2.isError(i2)) return i2; if (!e3 && 128 === i2) return null; if (!(128 & i2)) return i2; var n2 = 127 & i2; if (n2 > 4) return t2.error("length octect is too long"); i2 = 0; for (var o2 = 0; o2 < n2; o2++) { i2 <<= 8; var s2 = t2.readUInt8(r2); if (t2.isError(s2)) return s2; i2 |= s2; } return i2; } t.exports = h, h.prototype.decode = function(t2, e3) { return t2 instanceof o.DecoderBuffer || (t2 = new o.DecoderBuffer(t2, e3)), this.tree._decode(t2, e3); }, i(u, o.Node), u.prototype._peekTag = function(t2, e3, r2) { if (t2.isEmpty()) return false; var i2 = t2.save(), n2 = f(t2, 'Failed to peek tag: "' + e3 + '"'); return t2.isError(n2) ? n2 : (t2.restore(i2), n2.tag === e3 || n2.tagStr === e3 || n2.tagStr + "of" === e3 || r2); }, u.prototype._decodeTag = function(t2, e3, r2) { var i2 = f(t2, 'Failed to decode tag of "' + e3 + '"'); if (t2.isError(i2)) return i2; var n2 = l(t2, i2.primitive, 'Failed to get length of "' + e3 + '"'); if (t2.isError(n2)) return n2; if (!r2 && i2.tag !== e3 && i2.tagStr !== e3 && i2.tagStr + "of" !== e3) return t2.error('Failed to match tag: "' + e3 + '"'); if (i2.primitive || null !== n2) return t2.skip(n2, 'Failed to match body of: "' + e3 + '"'); var o2 = t2.save(), s2 = this._skipUntilEnd(t2, 'Failed to skip indefinite length body: "' + this.tag + '"'); return t2.isError(s2) ? s2 : (n2 = t2.offset - o2.offset, t2.restore(o2), t2.skip(n2, 'Failed to match body of: "' + e3 + '"')); }, u.prototype._skipUntilEnd = function(t2, e3) { for (; ; ) { var r2 = f(t2, e3); if (t2.isError(r2)) return r2; var i2, n2 = l(t2, r2.primitive, e3); if (t2.isError(n2)) return n2; if (i2 = r2.primitive || null !== n2 ? t2.skip(n2) : this._skipUntilEnd(t2, e3), t2.isError(i2)) return i2; if ("end" === r2.tagStr) break; } }, u.prototype._decodeList = function(t2, e3, r2, i2) { for (var n2 = []; !t2.isEmpty(); ) { var o2 = this._peekTag(t2, "end"); if (t2.isError(o2)) return o2; var s2 = r2.decode(t2, "der", i2); if (t2.isError(s2) && o2) break; n2.push(s2); } return n2; }, u.prototype._decodeStr = function(t2, e3) { if ("bitstr" === e3) { var r2 = t2.readUInt8(); return t2.isError(r2) ? r2 : { unused: r2, data: t2.raw() }; } if ("bmpstr" === e3) { var i2 = t2.raw(); if (i2.length % 2 == 1) return t2.error("Decoding of string type: bmpstr length mismatch"); for (var n2 = "", o2 = 0; o2 < i2.length / 2; o2++) n2 += String.fromCharCode(i2.readUInt16BE(2 * o2)); return n2; } if ("numstr" === e3) { var s2 = t2.raw().toString("ascii"); return this._isNumstr(s2) ? s2 : t2.error("Decoding of string type: numstr unsupported characters"); } if ("octstr" === e3) return t2.raw(); if ("objDesc" === e3) return t2.raw(); if ("printstr" === e3) { var a2 = t2.raw().toString("ascii"); return this._isPrintstr(a2) ? a2 : t2.error("Decoding of string type: printstr unsupported characters"); } return /str$/.test(e3) ? t2.raw().toString() : t2.error("Decoding of string type: " + e3 + " unsupported"); }, u.prototype._decodeObjid = function(t2, e3, r2) { for (var i2, n2 = [], o2 = 0; !t2.isEmpty(); ) { var s2 = t2.readUInt8(); o2 <<= 7, o2 |= 127 & s2, 128 & s2 || (n2.push(o2), o2 = 0); } 128 & s2 && n2.push(o2); var a2 = n2[0] / 40 | 0, h2 = n2[0] % 40; if (i2 = r2 ? n2 : [a2, h2].concat(n2.slice(1)), e3) { var u2 = e3[i2.join(" ")]; void 0 === u2 && (u2 = e3[i2.join(".")]), void 0 !== u2 && (i2 = u2); } return i2; }, u.prototype._decodeTime = function(t2, e3) { var r2 = t2.raw().toString(); if ("gentime" === e3) var i2 = 0 | r2.slice(0, 4), n2 = 0 | r2.slice(4, 6), o2 = 0 | r2.slice(6, 8), s2 = 0 | r2.slice(8, 10), a2 = 0 | r2.slice(10, 12), h2 = 0 | r2.slice(12, 14); else { if ("utctime" !== e3) return t2.error("Decoding " + e3 + " time is not supported yet"); i2 = 0 | r2.slice(0, 2), n2 = 0 | r2.slice(2, 4), o2 = 0 | r2.slice(4, 6), s2 = 0 | r2.slice(6, 8), a2 = 0 | r2.slice(8, 10), h2 = 0 | r2.slice(10, 12), i2 = i2 < 70 ? 2e3 + i2 : 1900 + i2; } return Date.UTC(i2, n2 - 1, o2, s2, a2, h2, 0); }, u.prototype._decodeNull = function(t2) { return null; }, u.prototype._decodeBool = function(t2) { var e3 = t2.readUInt8(); return t2.isError(e3) ? e3 : 0 !== e3; }, u.prototype._decodeInt = function(t2, e3) { var r2 = t2.raw(), i2 = new s(r2); return e3 && (i2 = e3[i2.toString(10)] || i2), i2; }, u.prototype._use = function(t2, e3) { return "function" == typeof t2 && (t2 = t2(e3)), t2._getDecoder("der").tree; }; }, 2853: (t, e2, r) => { var i = e2; i.der = r(2010), i.pem = r(8903); }, 8903: (t, e2, r) => { var i = r(6698), n = r(8287).Buffer, o = r(2010); function s(t2) { o.call(this, t2), this.enc = "pem"; } i(s, o), t.exports = s, s.prototype.decode = function(t2, e3) { for (var r2 = t2.toString().split(/[\r\n]+/g), i2 = e3.label.toUpperCase(), s2 = /^-----(BEGIN|END) ([^-]+)-----$/, a = -1, h = -1, u = 0; u < r2.length; u++) { var f = r2[u].match(s2); if (null !== f && f[2] === i2) { if (-1 !== a) { if ("END" !== f[1]) break; h = u; break; } if ("BEGIN" !== f[1]) break; a = u; } } if (-1 === a || -1 === h) throw new Error("PEM section not found for: " + i2); var l = r2.slice(a + 1, h).join(""); l.replace(/[^a-z0-9\+\/=]+/gi, ""); var c = new n(l, "base64"); return o.prototype.decode.call(this, c, e3); }; }, 82: (t, e2, r) => { var i = r(6698), n = r(8287).Buffer, o = r(7568), s = o.base, a = o.constants.der; function h(t2) { this.enc = "der", this.name = t2.name, this.entity = t2, this.tree = new u(), this.tree._init(t2.body); } function u(t2) { s.Node.call(this, "der", t2); } function f(t2) { return t2 < 10 ? "0" + t2 : t2; } t.exports = h, h.prototype.encode = function(t2, e3) { return this.tree._encode(t2, e3).join(); }, i(u, s.Node), u.prototype._encodeComposite = function(t2, e3, r2, i2) { var o2, s2 = (function(t3, e4, r3, i3) { var n2; if ("seqof" === t3 ? t3 = "seq" : "setof" === t3 && (t3 = "set"), a.tagByName.hasOwnProperty(t3)) n2 = a.tagByName[t3]; else { if ("number" != typeof t3 || (0 | t3) !== t3) return i3.error("Unknown tag: " + t3); n2 = t3; } return n2 >= 31 ? i3.error("Multi-octet tag encoding unsupported") : (e4 || (n2 |= 32), n2 |= a.tagClassByName[r3 || "universal"] << 6); })(t2, e3, r2, this.reporter); if (i2.length < 128) return (o2 = new n(2))[0] = s2, o2[1] = i2.length, this._createEncoderBuffer([o2, i2]); for (var h2 = 1, u2 = i2.length; u2 >= 256; u2 >>= 8) h2++; (o2 = new n(2 + h2))[0] = s2, o2[1] = 128 | h2, u2 = 1 + h2; for (var f2 = i2.length; f2 > 0; u2--, f2 >>= 8) o2[u2] = 255 & f2; return this._createEncoderBuffer([o2, i2]); }, u.prototype._encodeStr = function(t2, e3) { if ("bitstr" === e3) return this._createEncoderBuffer([0 | t2.unused, t2.data]); if ("bmpstr" === e3) { for (var r2 = new n(2 * t2.length), i2 = 0; i2 < t2.length; i2++) r2.writeUInt16BE(t2.charCodeAt(i2), 2 * i2); return this._createEncoderBuffer(r2); } return "numstr" === e3 ? this._isNumstr(t2) ? this._createEncoderBuffer(t2) : this.reporter.error("Encoding of string type: numstr supports only digits and space") : "printstr" === e3 ? this._isPrintstr(t2) ? this._createEncoderBuffer(t2) : this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark") : /str$/.test(e3) || "objDesc" === e3 ? this._createEncoderBuffer(t2) : this.reporter.error("Encoding of string type: " + e3 + " unsupported"); }, u.prototype._encodeObjid = function(t2, e3, r2) { if ("string" == typeof t2) { if (!e3) return this.reporter.error("string objid given, but no values map found"); if (!e3.hasOwnProperty(t2)) return this.reporter.error("objid not found in values map"); t2 = e3[t2].split(/[\s\.]+/g); for (var i2 = 0; i2 < t2.length; i2++) t2[i2] |= 0; } else if (Array.isArray(t2)) for (t2 = t2.slice(), i2 = 0; i2 < t2.length; i2++) t2[i2]