\n' }), (dA.blockquote_close = function (s, o) { @@ -63324,18 +63448,18 @@ }), (dA.dd_close = function () { return '\n' - }) + })) var fA = (dA.getBreak = function getBreak(s, o) { return (o = nextToken(s, o)) < s.length && 'list_item_close' === s[o].type ? '' : '\n' }) function Renderer() { - ;(this.rules = index_browser_assign({}, dA)), (this.getBreak = dA.getBreak) + ;((this.rules = index_browser_assign({}, dA)), (this.getBreak = dA.getBreak)) } function Ruler() { - ;(this.__rules__ = []), (this.__cache__ = null) + ;((this.__rules__ = []), (this.__cache__ = null)) } function StateInline(s, o, i, a, u) { - ;(this.src = s), + ;((this.src = s), (this.env = a), (this.options = i), (this.parser = o), @@ -63349,7 +63473,7 @@ (this.isInLabel = !1), (this.linkLevel = 0), (this.linkContent = ''), - (this.labelUnmatchedScopes = 0) + (this.labelUnmatchedScopes = 0)) } function parseLinkLabel(s, o) { var i, @@ -63360,7 +63484,7 @@ x = s.pos, C = s.isInLabel if (s.isInLabel) return -1 - if (s.labelUnmatchedScopes) return s.labelUnmatchedScopes--, -1 + if (s.labelUnmatchedScopes) return (s.labelUnmatchedScopes--, -1) for (s.pos = o + 1, s.isInLabel = !0, i = 1; s.pos < w; ) { if (91 === (u = s.src.charCodeAt(s.pos))) i++ else if (93 === u && 0 === --i) { @@ -63442,7 +63566,7 @@ if (34 !== _ && 39 !== _ && 40 !== _) return !1 for (o++, 40 === _ && (_ = 41); o < u; ) { if ((i = s.src.charCodeAt(o)) === _) - return (s.pos = o + 1), (s.linkContent = unescapeMd(s.src.slice(a + 1, o))), !0 + return ((s.pos = o + 1), (s.linkContent = unescapeMd(s.src.slice(a + 1, o))), !0) 92 === i && o + 1 < u ? (o += 2) : o++ } return !1 @@ -63475,7 +63599,6 @@ ? ((B = u.linkContent), (w = u.pos)) : ((B = ''), (w = j)); w < x && 32 === u.src.charCodeAt(w); - ) w++ return w < x && 10 !== u.src.charCodeAt(w) @@ -63484,7 +63607,7 @@ void 0 === a.references[$] && (a.references[$] = { title: B, href: L }), w) } - ;(Renderer.prototype.renderInline = function (s, o, i) { + ;((Renderer.prototype.renderInline = function (s, o, i) { for (var a = this.rules, u = s.length, _ = 0, w = ''; u--; ) w += a[s[_].type](s, _++, o, i, this) return w @@ -63504,7 +63627,7 @@ (Ruler.prototype.__compile__ = function () { var s = this, o = [''] - s.__rules__.forEach(function (s) { + ;(s.__rules__.forEach(function (s) { s.enabled && s.alt.forEach(function (s) { o.indexOf(s) < 0 && o.push(s) @@ -63512,41 +63635,41 @@ }), (s.__cache__ = {}), o.forEach(function (o) { - ;(s.__cache__[o] = []), + ;((s.__cache__[o] = []), s.__rules__.forEach(function (i) { i.enabled && ((o && i.alt.indexOf(o) < 0) || s.__cache__[o].push(i.fn)) - }) - }) + })) + })) }), (Ruler.prototype.at = function (s, o, i) { var a = this.__find__(s), u = i || {} if (-1 === a) throw new Error('Parser rule not found: ' + s) - ;(this.__rules__[a].fn = o), + ;((this.__rules__[a].fn = o), (this.__rules__[a].alt = u.alt || []), - (this.__cache__ = null) + (this.__cache__ = null)) }), (Ruler.prototype.before = function (s, o, i, a) { var u = this.__find__(s), _ = a || {} if (-1 === u) throw new Error('Parser rule not found: ' + s) - this.__rules__.splice(u, 0, { name: o, enabled: !0, fn: i, alt: _.alt || [] }), - (this.__cache__ = null) + ;(this.__rules__.splice(u, 0, { name: o, enabled: !0, fn: i, alt: _.alt || [] }), + (this.__cache__ = null)) }), (Ruler.prototype.after = function (s, o, i, a) { var u = this.__find__(s), _ = a || {} if (-1 === u) throw new Error('Parser rule not found: ' + s) - this.__rules__.splice(u + 1, 0, { name: o, enabled: !0, fn: i, alt: _.alt || [] }), - (this.__cache__ = null) + ;(this.__rules__.splice(u + 1, 0, { name: o, enabled: !0, fn: i, alt: _.alt || [] }), + (this.__cache__ = null)) }), (Ruler.prototype.push = function (s, o, i) { var a = i || {} - this.__rules__.push({ name: s, enabled: !0, fn: o, alt: a.alt || [] }), - (this.__cache__ = null) + ;(this.__rules__.push({ name: s, enabled: !0, fn: o, alt: a.alt || [] }), + (this.__cache__ = null)) }), (Ruler.prototype.enable = function (s, o) { - ;(s = Array.isArray(s) ? s : [s]), + ;((s = Array.isArray(s) ? s : [s]), o && this.__rules__.forEach(function (s) { s.enabled = !1 @@ -63556,27 +63679,27 @@ if (o < 0) throw new Error('Rules manager: invalid rule name ' + s) this.__rules__[o].enabled = !0 }, this), - (this.__cache__ = null) + (this.__cache__ = null)) }), (Ruler.prototype.disable = function (s) { - ;(s = Array.isArray(s) ? s : [s]).forEach(function (s) { + ;((s = Array.isArray(s) ? s : [s]).forEach(function (s) { var o = this.__find__(s) if (o < 0) throw new Error('Rules manager: invalid rule name ' + s) this.__rules__[o].enabled = !1 }, this), - (this.__cache__ = null) + (this.__cache__ = null)) }), (Ruler.prototype.getRules = function (s) { - return null === this.__cache__ && this.__compile__(), this.__cache__[s] || [] + return (null === this.__cache__ && this.__compile__(), this.__cache__[s] || []) }), (StateInline.prototype.pushPending = function () { - this.tokens.push({ type: 'text', content: this.pending, level: this.pendingLevel }), - (this.pending = '') + ;(this.tokens.push({ type: 'text', content: this.pending, level: this.pendingLevel }), + (this.pending = '')) }), (StateInline.prototype.push = function (s) { - this.pending && this.pushPending(), + ;(this.pending && this.pushPending(), this.tokens.push(s), - (this.pendingLevel = this.level) + (this.pendingLevel = this.level)) }), (StateInline.prototype.cacheSet = function (s, o) { for (var i = this.cache.length; i <= s; i++) this.cache.push(0) @@ -63584,7 +63707,7 @@ }), (StateInline.prototype.cacheGet = function (s) { return s < this.cache.length ? this.cache[s] : 0 - }) + })) var mA = ' \n()[]\'".,!?-' function regEscape(s) { return s.replace(/([-()\[\]{}+?*.$\^|,:# C && + (L.lastIndex > C && x.push({ type: 'text', content: w.slice(C, B.index + B[1].length), @@ -63806,7 +63928,7 @@ }), x.push({ type: 'text', content: B[2], level: j }), x.push({ type: 'abbr_close', level: --j }), - (C = L.lastIndex - B[3].length) + (C = L.lastIndex - B[3].length)) x.length && (C < w.length && x.push({ type: 'text', content: w.slice(C), level: j }), (U[i].children = u = [].concat(u.slice(0, o), x, u.slice(o + 1)))) @@ -63846,7 +63968,7 @@ for (Y = s.tokens[z].children, Z.length = 0, o = 0; o < Y.length; o++) if ('text' === (i = Y[o]).type && !bA.test(i.text)) { for (x = Y[o].level, U = Z.length - 1; U >= 0 && !(Z[U].level <= x); U--); - ;(Z.length = U + 1), (_ = 0), (w = (a = i.content).length) + ;((Z.length = U + 1), (_ = 0), (w = (a = i.content).length)) e: for (; _ < w && ((_A.lastIndex = _), (u = _A.exec(a))); ) if ( ((C = !isLetter(a, u.index - 1)), @@ -63857,7 +63979,7 @@ if (((B = !j), ($ = !C))) for (U = Z.length - 1; U >= 0 && ((L = Z[U]), !(Z[U].level < x)); U--) if (L.single === V && Z[U].level === x) { - ;(L = Z[U]), + ;((L = Z[U]), V ? ((Y[L.token].content = replaceAt( Y[L.token].content, @@ -63879,7 +64001,7 @@ u.index, s.options.quotes[1] ))), - (Z.length = U) + (Z.length = U)) continue e } B @@ -63891,7 +64013,7 @@ ], ] function Core() { - ;(this.options = {}), (this.ruler = new Ruler()) + ;((this.options = {}), (this.ruler = new Ruler())) for (var s = 0; s < EA.length; s++) this.ruler.push(EA[s][0], EA[s][1]) } function StateBlock(s, o, i, a, u) { @@ -63936,10 +64058,10 @@ (L = 0), (x = C + 1)) } - this.bMarks.push(w.length), + ;(this.bMarks.push(w.length), this.eMarks.push(w.length), this.tShift.push(0), - (this.lineMax = this.bMarks.length - 1) + (this.lineMax = this.bMarks.length - 1)) } function skipBulletListMarker(s, o) { var i, a, u @@ -63964,7 +64086,7 @@ } return a < u && 32 !== s.src.charCodeAt(a) ? -1 : a } - ;(Core.prototype.process = function (s) { + ;((Core.prototype.process = function (s) { var o, i, a for (o = 0, i = (a = this.ruler.getRules('')).length; o < i; o++) a[o](s) }), @@ -64007,13 +64129,13 @@ this.src.slice(_, w) ) for (x = new Array(o - s), u = 0; j < o; j++, u++) - (C = this.tShift[j]) > i && (C = i), + ((C = this.tShift[j]) > i && (C = i), C < 0 && (C = 0), (_ = this.bMarks[j] + C), (w = j + 1 < o || a ? this.eMarks[j] + 1 : this.eMarks[j]), - (x[u] = this.src.slice(_, w)) + (x[u] = this.src.slice(_, w))) return x.join('') - }) + })) var wA = {} ;[ 'article', @@ -64136,7 +64258,6 @@ (L = C = s.bMarks[x] + s.tShift[x]) < (B = s.eMarks[x]) && s.tShift[x] < s.blkIndent ); - ) if ( s.src.charCodeAt(L) === u && @@ -64206,14 +64327,14 @@ break } if (V) break - x.push(s.bMarks[u]), w.push(s.tShift[u]), (s.tShift[u] = -1337) + ;(x.push(s.bMarks[u]), w.push(s.tShift[u]), (s.tShift[u] = -1337)) } else - 32 === s.src.charCodeAt(z) && z++, + (32 === s.src.charCodeAt(z) && z++, x.push(s.bMarks[u]), (s.bMarks[u] = z), (_ = (z = z < Y ? s.skipSpaces(z) : z) >= Y), w.push(s.tShift[u]), - (s.tShift[u] = z - s.bMarks[u]) + (s.tShift[u] = z - s.bMarks[u])) for ( j = s.parentType, s.parentType = 'blockquote', @@ -64226,8 +64347,8 @@ $ < w.length; $++ ) - (s.bMarks[$ + o] = x[$]), (s.tShift[$ + o] = w[$]) - return (s.blkIndent = C), !0 + ((s.bMarks[$ + o] = x[$]), (s.tShift[$ + o] = w[$])) + return ((s.blkIndent = C), !0) }, ['paragraph', 'blockquote', 'list'], ], @@ -64335,7 +64456,6 @@ s.isEmpty(u) || s.tShift[u] < s.blkIndent ); - ) { for (de = !1, le = 0, pe = ce.length; le < pe; le++) if (ce[le](s, u, i, !0)) { @@ -64429,7 +64549,7 @@ if (x >= C) return !1 if (35 !== (u = s.src.charCodeAt(x)) || x >= C) return !1 for (_ = 1, u = s.src.charCodeAt(++x); 35 === u && x < C && _ <= 6; ) - _++, (u = s.src.charCodeAt(++x)) + (_++, (u = s.src.charCodeAt(++x))) return ( !(_ > 6 || (x < C && 32 !== u)) && (a || @@ -64571,7 +64691,7 @@ x < j.length; x++ ) - s.tokens.push({ + (s.tokens.push({ type: 'th_open', align: B[x], lines: [o, o + 1], @@ -64584,7 +64704,7 @@ level: s.level, children: [], }), - s.tokens.push({ type: 'th_close', level: --s.level }) + s.tokens.push({ type: 'th_close', level: --s.level })) for ( s.tokens.push({ type: 'tr_close', level: --s.level }), s.tokens.push({ type: 'thead_close', level: --s.level }), @@ -64602,7 +64722,7 @@ x < j.length; x++ ) - s.tokens.push({ type: 'td_open', align: B[x], level: s.level++ }), + (s.tokens.push({ type: 'td_open', align: B[x], level: s.level++ }), (L = j[x] .substring( 124 === j[x].charCodeAt(0) ? 1 : 0, @@ -64610,7 +64730,7 @@ ) .trim()), s.tokens.push({ type: 'inline', content: L, level: s.level, children: [] }), - s.tokens.push({ type: 'td_close', level: --s.level }) + s.tokens.push({ type: 'td_close', level: --s.level })) s.tokens.push({ type: 'tr_close', level: --s.level }) } return ( @@ -64632,10 +64752,10 @@ if (s.tShift[L] < s.blkIndent) return !1 if ((u = skipMarker(s, L)) < 0) return !1 if (s.level >= s.options.maxNesting) return !1 - ;(j = s.tokens.length), + ;((j = s.tokens.length), s.tokens.push({ type: 'dl_open', lines: (C = [o, 0]), level: s.level++ }), (w = o), - (_ = L) + (_ = L)) e: for (;;) { for ( Z = !0, @@ -64650,7 +64770,6 @@ }), s.tokens.push({ type: 'dt_close', level: --s.level }); ; - ) { if ( (s.tokens.push({ type: 'dd_open', lines: (x = [L, 0]), level: s.level++ }), @@ -64761,7 +64880,6 @@ w < i && ((s.line = w = s.skipEmptyLines(w)), !(w >= i)) && !(s.tShift[w] < s.blkIndent); - ) { for (a = 0; a < _ && !u[a](s, w, i, !1); a++); if ( @@ -64808,7 +64926,7 @@ _ = 0, w = 0 if (!s) return [] - ;(s = (s = s.replace(jA, ' ')).replace(CA, '\n')).indexOf('\t') >= 0 && + ;((s = (s = s.replace(jA, ' ')).replace(CA, '\n')).indexOf('\t') >= 0 && (s = s.replace(AA, function (o, i) { var a return 10 === s.charCodeAt(i) @@ -64816,7 +64934,7 @@ : ((a = ' '.slice((i - _ - w) % 4)), (w = i - _ + 1), a) })), (u = new StateBlock(s, this, o, i, a)), - this.tokenize(u, u.line, u.lineMax) + this.tokenize(u, u.line, u.lineMax)) } for (var PA = [], IA = 0; IA < 256; IA++) PA.push(0) function isAlphaNum(s) { @@ -65071,11 +65189,11 @@ } s.push({ type: 'hardbreak', level: s.level }) } else - (s.pending = s.pending.slice(0, -1)), - s.push({ type: 'softbreak', level: s.level }) + ((s.pending = s.pending.slice(0, -1)), + s.push({ type: 'softbreak', level: s.level })) else s.push({ type: 'softbreak', level: s.level }) for (u++; u < a && 32 === s.src.charCodeAt(u); ) u++ - return (s.pos = u), !0 + return ((s.pos = u), !0) }, ], [ @@ -65087,18 +65205,17 @@ if (92 !== s.src.charCodeAt(a)) return !1 if (++a < u) { if ((i = s.src.charCodeAt(a)) < 256 && 0 !== PA[i]) - return o || (s.pending += s.src[a]), (s.pos += 2), !0 + return (o || (s.pending += s.src[a]), (s.pos += 2), !0) if (10 === i) { for ( o || s.push({ type: 'hardbreak', level: s.level }), a++; a < u && 32 === s.src.charCodeAt(a); - ) a++ - return (s.pos = a), !0 + return ((s.pos = a), !0) } } - return o || (s.pending += '\\'), s.pos++, !0 + return (o || (s.pending += '\\'), s.pos++, !0) }, ], [ @@ -65130,7 +65247,7 @@ !0 ) } - return o || (s.pending += u), (s.pos += u.length), !0 + return (o || (s.pending += u), (s.pos += u.length), !0) }, ], [ @@ -65157,7 +65274,7 @@ if (126 === w) return !1 if (32 === w || 10 === w) return !1 for (a = C + 2; a < x && 126 === s.src.charCodeAt(a); ) a++ - if (a > C + 3) return (s.pos += a - C), o || (s.pending += s.src.slice(C, a)), !0 + if (a > C + 3) return ((s.pos += a - C), o || (s.pending += s.src.slice(C, a)), !0) for (s.pos = C + 2, u = 1; s.pos + 1 < x; ) { if ( 126 === s.src.charCodeAt(s.pos) && @@ -65209,7 +65326,7 @@ if (43 === w) return !1 if (32 === w || 10 === w) return !1 for (a = C + 2; a < x && 43 === s.src.charCodeAt(a); ) a++ - if (a !== C + 2) return (s.pos += a - C), o || (s.pending += s.src.slice(C, a)), !0 + if (a !== C + 2) return ((s.pos += a - C), o || (s.pending += s.src.slice(C, a)), !0) for (s.pos = C + 2, u = 1; s.pos + 1 < x; ) { if ( 43 === s.src.charCodeAt(s.pos) && @@ -65261,7 +65378,7 @@ if (61 === w) return !1 if (32 === w || 10 === w) return !1 for (a = C + 2; a < x && 61 === s.src.charCodeAt(a); ) a++ - if (a !== C + 2) return (s.pos += a - C), o || (s.pending += s.src.slice(C, a)), !0 + if (a !== C + 2) return ((s.pos += a - C), o || (s.pending += s.src.slice(C, a)), !0) for (s.pos = C + 2, u = 1; s.pos + 1 < x; ) { if ( 61 === s.src.charCodeAt(s.pos) && @@ -65305,7 +65422,7 @@ if (95 !== B && 42 !== B) return !1 if (o) return !1 if (((i = (C = scanDelims(s, L)).delims), !C.can_open)) - return (s.pos += i), o || (s.pending += s.src.slice(L, s.pos)), !0 + return ((s.pos += i), o || (s.pending += s.src.slice(L, s.pos)), !0) if (s.level >= s.options.maxNesting) return !1 for (s.pos = L + i, x = [i]; s.pos < j; ) if (s.src.charCodeAt(s.pos) !== B) s.parser.skipToken(s) @@ -65317,16 +65434,16 @@ break } if (((w -= _), 0 === x.length)) break - ;(s.pos += _), (_ = x.pop()) + ;((s.pos += _), (_ = x.pop())) } if (0 === x.length) { - ;(i = _), (u = !0) + ;((i = _), (u = !0)) break } s.pos += a continue } - C.can_open && x.push(a), (s.pos += a) + ;(C.can_open && x.push(a), (s.pos += a)) } return u ? ((s.posMax = s.pos), @@ -65439,7 +65556,7 @@ x++ ); else w = '' - if (x >= $ || 41 !== s.src.charCodeAt(x)) return (s.pos = B), !1 + if (x >= $ || 41 !== s.src.charCodeAt(x)) return ((s.pos = B), !1) x++ } else { if (s.linkLevel > 0) return !1 @@ -65452,8 +65569,8 @@ u || (void 0 === u && (x = a + 1), (u = s.src.slice(i, a))), !(C = s.env.references[normalizeReference(u)])) ) - return (s.pos = B), !1 - ;(_ = C.href), (w = C.title) + return ((s.pos = B), !1) + ;((_ = C.href), (w = C.title)) } return ( o || @@ -65644,9 +65761,9 @@ ) } else if ((a = s.src.slice(u).match(UA))) { var w = decodeEntity(a[1]) - if (a[1] !== w) return o || (s.pending += w), (s.pos += a[0].length), !0 + if (a[1] !== w) return (o || (s.pending += w), (s.pos += a[0].length), !0) } - return o || (s.pending += '&'), s.pos++, !0 + return (o || (s.pending += '&'), s.pos++, !0) }, ], ] @@ -65662,7 +65779,7 @@ -1 === ['vbscript', 'javascript', 'file', 'data'].indexOf(o.split(':')[0]) ) } - ;(ParserInline.prototype.skipToken = function (s) { + ;((ParserInline.prototype.skipToken = function (s) { var o, i, a = this.ruler.getRules(''), @@ -65671,7 +65788,7 @@ if ((i = s.cacheGet(_)) > 0) s.pos = i else { for (o = 0; o < u; o++) if (a[o](s, !0)) return void s.cacheSet(_, s.pos) - s.pos++, s.cacheSet(_, s.pos) + ;(s.pos++, s.cacheSet(_, s.pos)) } }), (ParserInline.prototype.tokenize = function (s) { @@ -65686,7 +65803,7 @@ (ParserInline.prototype.parse = function (s, o, i, a) { var u = new StateInline(s, this, o, i, a) this.tokenize(u) - }) + })) var zA = { default: { options: { @@ -65803,7 +65920,7 @@ }, } function StateCore(s, o, i) { - ;(this.src = o), + ;((this.src = o), (this.env = i), (this.options = s.options), (this.tokens = []), @@ -65811,10 +65928,10 @@ (this.inline = s.inline), (this.block = s.block), (this.renderer = s.renderer), - (this.typographer = s.typographer) + (this.typographer = s.typographer)) } function Remarkable(s, o) { - 'string' != typeof s && ((o = s), (s = 'default')), + ;('string' != typeof s && ((o = s), (s = 'default')), o && null != o.linkify && console.warn( @@ -65827,37 +65944,37 @@ (this.ruler = new Ruler()), (this.options = {}), this.configure(zA[s]), - this.set(o || {}) + this.set(o || {})) } - ;(Remarkable.prototype.set = function (s) { + ;((Remarkable.prototype.set = function (s) { index_browser_assign(this.options, s) }), (Remarkable.prototype.configure = function (s) { var o = this if (!s) throw new Error('Wrong `remarkable` preset, check name/content') - s.options && o.set(s.options), + ;(s.options && o.set(s.options), s.components && Object.keys(s.components).forEach(function (i) { s.components[i].rules && o[i].ruler.enable(s.components[i].rules, !0) - }) + })) }), (Remarkable.prototype.use = function (s, o) { - return s(this, o), this + return (s(this, o), this) }), (Remarkable.prototype.parse = function (s, o) { var i = new StateCore(this, s, o) - return this.core.process(i), i.tokens + return (this.core.process(i), i.tokens) }), (Remarkable.prototype.render = function (s, o) { - return (o = o || {}), this.renderer.render(this.parse(s, o), this.options, o) + return ((o = o || {}), this.renderer.render(this.parse(s, o), this.options, o)) }), (Remarkable.prototype.parseInline = function (s, o) { var i = new StateCore(this, s, o) - return (i.inlineMode = !0), this.core.process(i), i.tokens + return ((i.inlineMode = !0), this.core.process(i), i.tokens) }), (Remarkable.prototype.renderInline = function (s, o) { - return (o = o || {}), this.renderer.render(this.parseInline(s, o), this.options, o) - }) + return ((o = o || {}), this.renderer.render(this.parseInline(s, o), this.options, o)) + })) function indexOf(s, o) { if (Array.prototype.indexOf) return s.indexOf(o) for (var i = 0, a = s.length; i < a; i++) if (s[i] === o) return i @@ -65871,30 +65988,30 @@ } var WA = (function () { function HtmlTag(s) { - void 0 === s && (s = {}), + ;(void 0 === s && (s = {}), (this.tagName = ''), (this.attrs = {}), (this.innerHTML = ''), (this.whitespaceRegex = /\s+/), (this.tagName = s.tagName || ''), (this.attrs = s.attrs || {}), - (this.innerHTML = s.innerHtml || s.innerHTML || '') + (this.innerHTML = s.innerHtml || s.innerHTML || '')) } return ( (HtmlTag.prototype.setTagName = function (s) { - return (this.tagName = s), this + return ((this.tagName = s), this) }), (HtmlTag.prototype.getTagName = function () { return this.tagName || '' }), (HtmlTag.prototype.setAttr = function (s, o) { - return (this.getAttrs()[s] = o), this + return ((this.getAttrs()[s] = o), this) }), (HtmlTag.prototype.getAttr = function (s) { return this.getAttrs()[s] }), (HtmlTag.prototype.setAttrs = function (s) { - return Object.assign(this.getAttrs(), s), this + return (Object.assign(this.getAttrs(), s), this) }), (HtmlTag.prototype.getAttrs = function () { return this.attrs || (this.attrs = {}) @@ -65910,10 +66027,9 @@ u = i ? i.split(a) : [], _ = s.split(a); (o = _.shift()); - ) -1 === indexOf(u, o) && u.push(o) - return (this.getAttrs().class = u.join(' ')), this + return ((this.getAttrs().class = u.join(' ')), this) }), (HtmlTag.prototype.removeClass = function (s) { for ( @@ -65923,12 +66039,11 @@ u = i ? i.split(a) : [], _ = s.split(a); u.length && (o = _.shift()); - ) { var w = indexOf(u, o) ;-1 !== w && u.splice(w, 1) } - return (this.getAttrs().class = u.join(' ')), this + return ((this.getAttrs().class = u.join(' ')), this) }), (HtmlTag.prototype.getClass = function () { return this.getAttrs().class || '' @@ -65937,7 +66052,7 @@ return -1 !== (' ' + this.getClass() + ' ').indexOf(' ' + s + ' ') }), (HtmlTag.prototype.setInnerHTML = function (s) { - return (this.innerHTML = s), this + return ((this.innerHTML = s), this) }), (HtmlTag.prototype.setInnerHtml = function (s) { return this.setInnerHTML(s) @@ -65967,13 +66082,13 @@ })() var JA = (function () { function AnchorTagBuilder(s) { - void 0 === s && (s = {}), + ;(void 0 === s && (s = {}), (this.newWindow = !1), (this.truncate = {}), (this.className = ''), (this.newWindow = s.newWindow || !1), (this.truncate = s.truncate || {}), - (this.className = s.className || '') + (this.className = s.className || '')) } return ( (AnchorTagBuilder.prototype.build = function (s) { @@ -66035,7 +66150,7 @@ u = Math.ceil(a), _ = -1 * Math.floor(a), w = '' - return _ < 0 && (w = s.substr(_)), s.substr(0, u) + i + w + return (_ < 0 && (w = s.substr(_)), s.substr(0, u) + i + w) } if (s.length <= o) return s var _ = o - u, @@ -66128,12 +66243,12 @@ })(), HA = (function () { function Match(s) { - ;(this.__jsduckDummyDocProp = null), + ;((this.__jsduckDummyDocProp = null), (this.matchedText = ''), (this.offset = 0), (this.tagBuilder = s.tagBuilder), (this.matchedText = s.matchedText), - (this.offset = s.offset) + (this.offset = s.offset)) } return ( (Match.prototype.getMatchedText = function () { @@ -66176,8 +66291,9 @@ function __() { this.constructor = s } - extendStatics(s, o), - (s.prototype = null === o ? Object.create(o) : ((__.prototype = o.prototype), new __())) + ;(extendStatics(s, o), + (s.prototype = + null === o ? Object.create(o) : ((__.prototype = o.prototype), new __()))) } var __assign = function () { return ( @@ -66199,7 +66315,7 @@ GA = (function (s) { function EmailMatch(o) { var i = s.call(this, o) || this - return (i.email = ''), (i.email = o.email), i + return ((i.email = ''), (i.email = o.email), i) } return ( tslib_es6_extends(EmailMatch, s), @@ -66304,7 +66420,7 @@ (MentionMatch.prototype.getCssClassSuffixes = function () { var o = s.prototype.getCssClassSuffixes.call(this), i = this.getServiceName() - return i && o.push(i), o + return (i && o.push(i), o) }), MentionMatch ) @@ -66407,7 +66523,7 @@ return s.replace(this.protocolRelativeRegex, '') }), (UrlMatch.prototype.removeTrailingSlash = function (s) { - return '/' === s.charAt(s.length - 1) && (s = s.slice(0, -1)), s + return ('/' === s.charAt(s.length - 1) && (s = s.slice(0, -1)), s) }), (UrlMatch.prototype.removePercentEncoding = function (s) { var o = s @@ -66426,7 +66542,7 @@ ) })(HA), eC = function eC(s) { - ;(this.__jsduckDummyDocProp = null), (this.tagBuilder = s.tagBuilder) + ;((this.__jsduckDummyDocProp = null), (this.tagBuilder = s.tagBuilder)) }, tC = /[A-Za-z]/, rC = /[\d]/, @@ -66473,7 +66589,7 @@ bC = (function (s) { function EmailMatcher() { var o = (null !== s && s.apply(this, arguments)) || this - return (o.localPartCharRegex = yC), (o.strictTldRegex = vC), o + return ((o.localPartCharRegex = yC), (o.strictTldRegex = vC), o) } return ( tslib_es6_extends(EmailMatcher, s), @@ -66490,7 +66606,6 @@ j = 0, L = w; C < _; - ) { var B = s.charAt(C) switch (j) { @@ -66523,7 +66638,7 @@ } C++ } - return captureMatchIfValidAndReset(), u + return (captureMatchIfValidAndReset(), u) function stateNonEmailAddress(s) { 'm' === s ? beginEmailMatch(1) : i.test(s) && beginEmailMatch() } @@ -66580,10 +66695,10 @@ : captureMatchIfValidAndReset() } function beginEmailMatch(s) { - void 0 === s && (s = 2), (j = s), (L = new _C({ idx: C })) + ;(void 0 === s && (s = 2), (j = s), (L = new _C({ idx: C }))) } function resetToNonEmailMatchState() { - ;(j = 0), (L = w) + ;((j = 0), (L = w)) } function captureMatchIfValidAndReset() { if (L.hasDomainDot) { @@ -66604,10 +66719,10 @@ ) })(eC), _C = function _C(s) { - void 0 === s && (s = {}), + ;(void 0 === s && (s = {}), (this.idx = void 0 !== s.idx ? s.idx : -1), (this.hasMailtoPrefix = !!s.hasMailtoPrefix), - (this.hasDomainDot = !!s.hasDomainDot) + (this.hasDomainDot = !!s.hasDomainDot)) }, SC = (function () { function UrlMatchValidator() {} @@ -66744,7 +66859,7 @@ }) if (Z) { var ee = i.indexOf(Z) - ;(i = i.substr(ee)), (j = j.substr(ee)), (U += ee) + ;((i = i.substr(ee)), (j = j.substr(ee)), (U += ee)) } var ie = j ? 'scheme' : L ? 'www' : 'tld', ae = !!j @@ -66765,7 +66880,6 @@ }, C = this; null !== (o = i.exec(s)); - ) _loop_1() return x @@ -66805,7 +66919,7 @@ OC = (function (s) { function HashtagMatcher(o) { var i = s.call(this, o) || this - return (i.serviceName = 'twitter'), (i.serviceName = o.serviceName), i + return ((i.serviceName = 'twitter'), (i.serviceName = o.serviceName), i) } return ( tslib_es6_extends(HashtagMatcher, s), @@ -66819,7 +66933,6 @@ w = -1, x = 0; _ < u; - ) { var C = s.charAt(_) switch (x) { @@ -66840,7 +66953,7 @@ } _++ } - return captureMatchIfValid(), a + return (captureMatchIfValid(), a) function stateNone(s) { '#' === s ? ((x = 2), (w = _)) : hC.test(s) && (x = 1) } @@ -66887,7 +67000,7 @@ jC = (function (s) { function PhoneMatcher() { var o = (null !== s && s.apply(this, arguments)) || this - return (o.matcherRegex = CC), o + return ((o.matcherRegex = CC), o) } return ( tslib_es6_extends(PhoneMatcher, s), @@ -66895,7 +67008,6 @@ for ( var o, i = this.matcherRegex, a = this.tagBuilder, u = []; null !== (o = i.exec(s)); - ) { var _ = o[0], w = _.replace(/[^0-9,;#]/g, ''), @@ -66989,7 +67101,6 @@ B = 0, $ = x; C < j; - ) { var U = s.charAt(C) switch (L) { @@ -67203,21 +67314,21 @@ '>' === s ? emitTagAndPreviousTextNode() : '<' === s && startNewTag() } function resetToDataState() { - ;(L = 0), ($ = x) + ;((L = 0), ($ = x)) } function startNewTag() { - ;(L = 1), ($ = new DC({ idx: C })) + ;((L = 1), ($ = new DC({ idx: C }))) } function emitTagAndPreviousTextNode() { var o = s.slice(B, $.idx) - o && u(o, B), + ;(o && u(o, B), 'comment' === $.type ? _($.idx) : 'doctype' === $.type ? w($.idx) : ($.isOpening && i($.name, $.idx), $.isClosing && a($.name, $.idx)), resetToDataState(), - (B = C + 1) + (B = C + 1)) } function captureTagName() { var o = $.idx + ($.isClosing ? 2 : 1) @@ -67226,20 +67337,20 @@ B < C && (function emitText() { var o = s.slice(B, C) - u(o, B), (B = C + 1) + ;(u(o, B), (B = C + 1)) })() } var DC = function DC(s) { - void 0 === s && (s = {}), + ;(void 0 === s && (s = {}), (this.idx = void 0 !== s.idx ? s.idx : -1), (this.type = s.type || 'tag'), (this.name = s.name || ''), (this.isOpening = !!s.isOpening), - (this.isClosing = !!s.isClosing) + (this.isClosing = !!s.isClosing)) }, LC = (function () { function Autolinker(s) { - void 0 === s && (s = {}), + ;(void 0 === s && (s = {}), (this.version = Autolinker.version), (this.urls = {}), (this.email = !0), @@ -67272,17 +67383,17 @@ 'boolean' == typeof s.decodePercentEncoding ? s.decodePercentEncoding : this.decodePercentEncoding), - (this.sanitizeHtml = s.sanitizeHtml || !1) + (this.sanitizeHtml = s.sanitizeHtml || !1)) var o = this.mention if (!1 !== o && -1 === ['twitter', 'instagram', 'soundcloud', 'tiktok'].indexOf(o)) throw new Error("invalid `mention` cfg '".concat(o, "' - see docs")) var i = this.hashtag if (!1 !== i && -1 === AC.indexOf(i)) throw new Error("invalid `hashtag` cfg '".concat(i, "' - see docs")) - ;(this.truncate = this.normalizeTruncateCfg(s.truncate)), + ;((this.truncate = this.normalizeTruncateCfg(s.truncate)), (this.className = s.className || this.className), (this.replaceFn = s.replaceFn || this.replaceFn), - (this.context = s.context || this) + (this.context = s.context || this)) } return ( (Autolinker.link = function (s, o) { @@ -67338,10 +67449,10 @@ if (!o.global) throw new Error("`splitRegex` must have the 'g' flag set") for (var i, a = [], u = 0; (i = o.exec(s)); ) - a.push(s.substring(u, i.index)), + (a.push(s.substring(u, i.index)), a.push(i[0]), - (u = i.index + i[0].length) - return a.push(s.substring(u)), a + (u = i.index + i[0].length)) + return (a.push(s.substring(u)), a) })(s, /( | |<|<|>|>|"|"|')/gi), w = i _.forEach(function (s, i) { @@ -67421,7 +67532,7 @@ ) }), (Autolinker.prototype.parseText = function (s, o) { - void 0 === o && (o = 0), (o = o || 0) + ;(void 0 === o && (o = 0), (o = o || 0)) for (var i = this.getMatchers(), a = [], u = 0, _ = i.length; u < _; u++) { for (var w = i[u].parseMatches(s), x = 0, C = w.length; x < C; x++) w[x].setOffset(o + w[x].getOffset()) @@ -67434,11 +67545,11 @@ this.sanitizeHtml && (s = s.replace(//g, '>')) for (var o = this.parse(s), i = [], a = 0, u = 0, _ = o.length; u < _; u++) { var w = o[u] - i.push(s.substring(a, w.getOffset())), + ;(i.push(s.substring(a, w.getOffset())), i.push(this.createMatchReturnVal(w)), - (a = w.getOffset() + w.getMatchedText().length) + (a = w.getOffset() + w.getMatchedText().length)) } - return i.push(s.substring(a)), i.join('') + return (i.push(s.substring(a)), i.join('')) }), (Autolinker.prototype.createMatchReturnVal = function (s) { var o @@ -67576,8 +67687,8 @@ x.push({ type: 'text', content: $[C].text, level: L }), x.push({ type: 'link_close', level: --L }), (w = w.slice(j + $[C].text.length))) - w.length && x.push({ type: 'text', content: w, level: L }), - (V[i].children = u = [].concat(u.slice(0, o), x, u.slice(o + 1))) + ;(w.length && x.push({ type: 'text', content: w, level: L }), + (V[i].children = u = [].concat(u.slice(0, o), x, u.slice(o + 1)))) } } else for (o--; u[o].level !== _.level && 'link_open' !== u[o].type; ) o-- } @@ -67593,7 +67704,7 @@ } = Object let { freeze: WC, seal: JC, create: HC } = Object, { apply: KC, construct: GC } = 'undefined' != typeof Reflect && Reflect - WC || + ;(WC || (WC = function freeze(s) { return s }), @@ -67608,7 +67719,7 @@ GC || (GC = function construct(s, o) { return new s(...o) - }) + })) const YC = unapply(Array.prototype.forEach), XC = unapply(Array.prototype.lastIndexOf), QC = unapply(Array.prototype.pop), @@ -68348,7 +68459,7 @@ (DOMPurify.removed = []), !s || !s.document || s.document.nodeType !== EP || !s.Element) ) - return (DOMPurify.isSupported = !1), DOMPurify + return ((DOMPurify.isSupported = !1), DOMPurify) let { document: o } = s const i = o, a = i.currentScript, @@ -68587,9 +68698,9 @@ throw zj( 'TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.' ) - ;(ie = s.TRUSTED_TYPES_POLICY), (ae = ie.createHTML('')) + ;((ie = s.TRUSTED_TYPES_POLICY), (ae = ie.createHTML(''))) } else - void 0 === ie && + (void 0 === ie && (ie = (function _createTrustedTypesPolicy(s, o) { if ('object' != typeof s || 'function' != typeof s.createPolicy) return null let i = null @@ -68603,12 +68714,13 @@ }) } catch (s) { return ( - console.warn('TrustedTypes policy ' + u + ' could not be created.'), null + console.warn('TrustedTypes policy ' + u + ' could not be created.'), + null ) } })($, a)), - null !== ie && 'string' == typeof ae && (ae = ie.createHTML('')) - WC && WC(s), (Lt = s) + null !== ie && 'string' == typeof ae && (ae = ie.createHTML(''))) + ;(WC && WC(s), (Lt = s)) } }, qt = addToSet({}, [...Kj, ...Gj, ...Xj]), @@ -68704,7 +68816,7 @@ } const Gt = function _sanitizeElements(s) { let o = null - if ((_executeHooks(ye.beforeSanitizeElements, s, null), Ht(s))) return Vt(s), !0 + if ((_executeHooks(ye.beforeSanitizeElements, s, null), Ht(s))) return (Vt(s), !0) const i = Dt(s.nodeName) if ( (_executeHooks(ye.uponSanitizeElement, s, { tagName: i, allowedTags: qe }), @@ -68714,9 +68826,9 @@ $j(/<[/\w!]/g, s.innerHTML) && $j(/<[/\w!]/g, s.textContent)) ) - return Vt(s), !0 - if (s.nodeType === _P) return Vt(s), !0 - if (ot && s.nodeType === SP && $j(/<[/\w]/g, s.data)) return Vt(s), !0 + return (Vt(s), !0) + if (s.nodeType === _P) return (Vt(s), !0) + if (ot && s.nodeType === SP && $j(/<[/\w]/g, s.data)) return (Vt(s), !0) if (!qe[i] || Xe[i]) { if (!Xe[i] && Xt(i)) { if (Ye.tagNameCheck instanceof RegExp && $j(Ye.tagNameCheck, i)) return !1 @@ -68728,11 +68840,11 @@ if (i && o) { for (let a = i.length - 1; a >= 0; --a) { const u = V(i[a], !0) - ;(u.__removalCount = (s.__removalCount || 0) + 1), o.insertBefore(u, Y(s)) + ;((u.__removalCount = (s.__removalCount || 0) + 1), o.insertBefore(u, Y(s))) } } } - return Vt(s), !0 + return (Vt(s), !0) } return s instanceof x && !(function _checkValidNamespace(s) { @@ -68870,8 +68982,8 @@ } if (L !== j) try { - w ? s.setAttributeNS(w, _, L) : s.setAttribute(_, L), - Ht(s) ? Vt(s) : QC(DOMPurify.removed) + ;(w ? s.setAttributeNS(w, _, L) : s.setAttribute(_, L), + Ht(s) ? Vt(s) : QC(DOMPurify.removed)) } catch (o) { zt(_, s) } @@ -68883,10 +68995,10 @@ let o = null const i = Jt(s) for (_executeHooks(ye.beforeSanitizeShadowDOM, s, null); (o = i.nextNode()); ) - _executeHooks(ye.uponSanitizeShadowNode, o, null), + (_executeHooks(ye.uponSanitizeShadowNode, o, null), Gt(o), Qt(o), - o.content instanceof u && _sanitizeShadowDOM(o.content) + o.content instanceof u && _sanitizeShadowDOM(o.content)) _executeHooks(ye.afterSanitizeShadowDOM, s, null) } return ( @@ -68909,11 +69021,11 @@ throw zj('root node is forbidden and cannot be sanitized in-place') } } else if (s instanceof w) - (a = Wt('\x3c!----\x3e')), + ((a = Wt('\x3c!----\x3e')), (_ = a.ownerDocument.importNode(s, !0)), (_.nodeType === vP && 'BODY' === _.nodeName) || 'HTML' === _.nodeName ? (a = _) - : a.appendChild(_) + : a.appendChild(_)) else { if (!lt && !st && !it && -1 === s.indexOf('<')) return ie && pt ? ie.createHTML(s) : s @@ -68921,13 +69033,13 @@ } a && ct && Vt(a.firstChild) const j = Jt(gt ? s : a) - for (; (x = j.nextNode()); ) Gt(x), Qt(x), x.content instanceof u && Zt(x.content) + for (; (x = j.nextNode()); ) (Gt(x), Qt(x), x.content instanceof u && Zt(x.content)) if (gt) return s if (lt) { if (ut) for (C = pe.call(a.ownerDocument); a.firstChild; ) C.appendChild(a.firstChild) else C = a - return (We.shadowroot || We.shadowrootmode) && (C = fe.call(i, C, !0)), C + return ((We.shadowroot || We.shadowrootmode) && (C = fe.call(i, C, !0)), C) } let L = it ? a.outerHTML : a.innerHTML return ( @@ -68946,10 +69058,10 @@ ) }), (DOMPurify.setConfig = function () { - $t(arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}), (at = !0) + ;($t(arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}), (at = !0)) }), (DOMPurify.clearConfig = function () { - ;(Lt = null), (at = !1) + ;((Lt = null), (at = !1)) }), (DOMPurify.isValidAttribute = function (s, o, i) { Lt || $t({}) @@ -68988,7 +69100,7 @@ })() xP.addHook && xP.addHook('beforeSanitizeElements', function (s) { - return s.href && s.setAttribute('rel', 'noopener noreferrer'), s + return (s.href && s.setAttribute('rel', 'noopener noreferrer'), s) }) const kP = function Markdown({ source: s, @@ -69477,7 +69589,7 @@ }, setIsIncludedOptions = (s) => { let o = { key: s, shouldDispatchInit: !1, defaultValue: !0 } - return 'no value' === a.get(s, 'no value') && (o.shouldDispatchInit = !0), o + return ('no value' === a.get(s, 'no value') && (o.shouldDispatchInit = !0), o) }, Z = _('Markdown', !0), ee = _('modelExample'), @@ -69495,7 +69607,7 @@ Se = be.get('examples', null), we = Se?.map((s, i) => { const a = s?.get('value', null) - return a && (s = s.set('value', getDefaultRequestBodyValue(o, j, i, C), a)), s + return (a && (s = s.set('value', getDefaultRequestBodyValue(o, j, i, C), a)), s) }) u = ze.List.isList(u) ? u : (0, ze.List)() if (C.isFileUploadIntended(be?.get('schema'), j)) { @@ -69548,10 +69660,10 @@ we = i.getIn([j, 'errors']) || u, xe = a.get(j) || !1 let Pe = C.getSampleSchema(V, !1, { includeWriteOnly: !0 }) - !1 === Pe && (Pe = 'false'), + ;(!1 === Pe && (Pe = 'false'), 0 === Pe && (Pe = '0'), 'string' != typeof Pe && 'object' === ce && (Pe = stringify(Pe)), - 'string' == typeof Pe && 'array' === ce && (Pe = JSON.parse(Pe)) + 'string' == typeof Pe && 'array' === ce && (Pe = JSON.parse(Pe))) const Te = C.isFileUploadIntended(V), $e = Re.createElement(s, { fn: C, @@ -69744,7 +69856,7 @@ (s.find((s) => s.get('url') === o) || (0, ze.OrderedMap)()).get('variables') || (0, ze.OrderedMap)(), x = 0 !== w.size - ;(0, Re.useEffect)(() => { + ;((0, Re.useEffect)(() => { o || i(s.first()?.get('url')) }, []), (0, Re.useEffect)(() => { @@ -69753,7 +69865,7 @@ ;(u.get('variables') || (0, ze.OrderedMap)()).map((s, i) => { a({ server: o, key: i, val: s.get('default') || '' }) }) - }, [o, s]) + }, [o, s])) const C = (0, Re.useCallback)( (s) => { i(s.target.value) @@ -69874,13 +69986,13 @@ class RequestBodyEditor extends Re.PureComponent { static defaultProps = { onChange: UP, userHasEditedBody: !1 } constructor(s, o) { - super(s, o), + ;(super(s, o), (this.state = { value: stringify(s.value) || s.defaultValue }), - s.onChange(s.value) + s.onChange(s.value)) } applyDefaultValue = (s) => { const { onChange: o, defaultValue: i } = s || this.props - return this.setState({ value: i }), o(i) + return (this.setState({ value: i }), o(i)) } onChange = (s) => { this.props.onChange(stringify(s)) @@ -69890,10 +70002,10 @@ this.setState({ value: o }, () => this.onChange(o)) } UNSAFE_componentWillReceiveProps(s) { - this.props.value !== s.value && + ;(this.props.value !== s.value && s.value !== this.state.value && this.setState({ value: stringify(s.value) }), - !s.value && s.defaultValue && this.state.value && this.applyDefaultValue(s) + !s.value && s.defaultValue && this.state.value && this.applyDefaultValue(s)) } render() { let { getComponent: s, errors: o } = this.props, @@ -69927,7 +70039,7 @@ let { onChange: o } = this.props, { value: i, name: a } = s.target, u = Object.assign({}, this.state.value) - a ? (u[a] = i) : (u = i), this.setState({ value: u }, () => o(this.state)) + ;(a ? (u[a] = i) : (u = i), this.setState({ value: u }, () => o(this.state))) } render() { let { @@ -70052,7 +70164,7 @@ class operation_servers_OperationServers extends Re.Component { setSelectedServer = (s) => { const { path: o, method: i } = this.props - return this.forceUpdate(), this.props.setSelectedServer(s, `${o}:${i}`) + return (this.forceUpdate(), this.props.setSelectedServer(s, `${o}:${i}`)) } setServerVariableValue = (s) => { const { path: o, method: i } = this.props @@ -70124,7 +70236,7 @@ operationLink: qP, }, zP = new Remarkable('commonmark') - zP.block.ruler.enable(['table']), zP.set({ linkTarget: '_blank' }) + ;(zP.block.ruler.enable(['table']), zP.set({ linkTarget: '_blank' })) const WP = OAS3ComponentWrapFactory( ({ source: s, @@ -70390,11 +70502,11 @@ var i, a if ('string' != typeof o) { const { server: u, namespace: _ } = o - ;(a = u), + ;((a = u), (i = _ ? s.getIn([_, 'serverVariableValues', a]) - : s.getIn(['serverVariableValues', a])) - } else (a = o), (i = s.getIn(['serverVariableValues', a])) + : s.getIn(['serverVariableValues', a]))) + } else ((a = o), (i = s.getIn(['serverVariableValues', a]))) i = i || (0, ze.OrderedMap)() let u = a return ( @@ -70492,7 +70604,7 @@ _.reduce((s, o) => s.setIn([o, 'errors'], (0, ze.fromJS)(u)), s) ) } - return console.warn('unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR'), s + return (console.warn('unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR'), s) }, [iI]: (s, { payload: { path: o, method: i } }) => { const a = s.getIn(['requestData', o, i, 'bodyValue']) @@ -70869,8 +70981,8 @@ handleJSONSchema202012Expand = (i) => (u, _) => { const w = [...j, i] if (_) { - null != o.specResolvedSubtree(w) || s.requestResolvedSubtree([...j, i]), - a.show(w, !0) + ;(null != o.specResolvedSubtree(w) || s.requestResolvedSubtree([...j, i]), + a.show(w, !0)) } else a.show(w, !1) } return !C || B < 0 @@ -70921,7 +71033,7 @@ } class auths_Auths extends Re.Component { constructor(s, o) { - super(s, o), (this.state = {}) + ;(super(s, o), (this.state = {})) } onAuthChange = (s) => { let { name: o } = s @@ -70936,7 +71048,7 @@ s.preventDefault() let { authActions: o, definitions: i } = this.props, a = i.map((s, o) => o).toArray() - this.setState(a.reduce((s, o) => ((s[o] = ''), s), {})), o.logoutWithPersistOption(a) + ;(this.setState(a.reduce((s, o) => ((s[o] = ''), s), {})), o.logoutWithPersistOption(a)) } close = (s) => { s.preventDefault() @@ -71299,7 +71411,7 @@ ? ze.Map.isMap(o) ? Object.entries(s.toJS()).reduce((s, [i, a]) => { const u = o.get(i) - return (s[i] = u?.toJS() || a), s + return ((s[i] = u?.toJS() || a), s) }, {}) : s.toJS() : {} @@ -72069,7 +72181,7 @@ return { state: o, setState: (i) => { - i(o), s({}) + ;(i(o), s({})) }, } }, @@ -72086,13 +72198,13 @@ pathMutator: (s, o = { deep: !1 }) => { const u = a.toString(), updateFn = (o) => { - ;(o.paths[u] = s), + ;((o.paths[u] = s), s === JSONSchemaIsExpandedState.Collapsed && Object.keys(o.paths).forEach((s) => { s.startsWith(u) && o.paths[s] === JSONSchemaIsExpandedState.DeeplyExpanded && (o.paths[s] = JSONSchemaIsExpandedState.Expanded) - }) + })) }, updateDeepFn = (o) => { Object.keys(o.paths).forEach((i) => { @@ -72211,13 +72323,13 @@ bt = useComponent('ExpandDeepButton'), _t = (0, Re.useCallback)( (s, o) => { - o ? L() : B(), a(s, o, !1) + ;(o ? L() : B(), a(s, o, !1)) }, [a, L, B] ), St = (0, Re.useCallback)( (s, o) => { - o ? L({ deep: !0 }) : B({ deep: !0 }), a(s, o, !0) + ;(o ? L({ deep: !0 }) : B({ deep: !0 }), a(s, o, !0)) }, [a, L, B] ) @@ -73445,7 +73557,7 @@ ] .filter(Boolean) .join(' | ') - return i.delete(o), x || 'any' + return (i.delete(o), x || 'any') } return getType }, @@ -73537,26 +73649,26 @@ if (w || C) return `${L ? '<' : '≤'} ${L ? u : i}` return null })(s) - null !== a && o.push({ scope: 'number', value: a }), - s?.format && o.push({ scope: 'string', value: s.format }) + ;(null !== a && o.push({ scope: 'number', value: a }), + s?.format && o.push({ scope: 'string', value: s.format })) const u = stringifyConstraintRange('characters', s?.minLength, s?.maxLength) - null !== u && o.push({ scope: 'string', value: u }), + ;(null !== u && o.push({ scope: 'string', value: u }), s?.pattern && o.push({ scope: 'string', value: `matches ${s?.pattern}` }), s?.contentMediaType && o.push({ scope: 'string', value: `media type: ${s.contentMediaType}` }), s?.contentEncoding && - o.push({ scope: 'string', value: `encoding: ${s.contentEncoding}` }) + o.push({ scope: 'string', value: `encoding: ${s.contentEncoding}` })) const _ = stringifyConstraintRange( s?.uniqueItems ? 'unique items' : 'items', s?.minItems, s?.maxItems ) - null !== _ && o.push({ scope: 'array', value: _ }), - s?.uniqueItems && !_ && o.push({ scope: 'array', value: 'unique' }) + ;(null !== _ && o.push({ scope: 'array', value: _ }), + s?.uniqueItems && !_ && o.push({ scope: 'array', value: 'unique' })) const w = stringifyConstraintRange('contained items', s?.minContains, s?.maxContains) null !== w && o.push({ scope: 'array', value: w }) const x = stringifyConstraintRange('properties', s?.minProperties, s?.maxProperties) - return null !== x && o.push({ scope: 'object', value: x }), o + return (null !== x && o.push({ scope: 'object', value: x }), o) }, getDependentRequired = (s, o) => o?.dependentRequired @@ -74131,7 +74243,9 @@ }, HOC = (o) => Re.createElement(rT.Provider, { value: i }, Re.createElement(s, o)) return ( - (HOC.contexts = { JSONSchemaContext: rT }), (HOC.displayName = s.displayName), HOC + (HOC.contexts = { JSONSchemaContext: rT }), + (HOC.displayName = s.displayName), + HOC ) }, makeWithJSONSchemaSystemContext = @@ -74328,7 +74442,7 @@ (Number.isInteger(a) && a > 0 && (C = s.slice(0, a)), Number.isInteger(i) && i > 0) ) for (let s = 0; C.length < i; s += 1) C.push(C[s % C.length]) - return !0 === u && (C = Array.from(new Set(C))), C + return (!0 === u && (C = Array.from(new Set(C))), C) })(o, s), object = () => { throw new Error('Not implemented') @@ -74444,7 +74558,7 @@ w = 0 for (let s = 0; s < o.length; s++) for (_ = (_ << 8) | o.charCodeAt(s), w += 8; w >= 5; ) - (u += i.charAt((_ >>> (w - 5)) & 31)), (w -= 5) + ((u += i.charAt((_ >>> (w - 5)) & 31)), (w -= 5)) w > 0 && ((u += i.charAt((_ << (5 - w)) & 31)), (a = (8 - ((8 * o.length) % 5)) % 5)) for (let s = 0; s < a; s++) u += '=' return u @@ -74537,7 +74651,7 @@ /(?<=(? inferType(s), typeCast = (s) => @@ -74806,14 +74920,14 @@ NT = merge_merge, main_sampleFromSchemaGeneric = (s, o = {}, i = void 0, a = !1) => { if (null == s && void 0 === i) return - 'function' == typeof s?.toJS && (s = s.toJS()), (s = typeCast(s)) + ;('function' == typeof s?.toJS && (s = s.toJS()), (s = typeCast(s))) let u = void 0 !== i || hasExample(s) const _ = !u && Array.isArray(s.oneOf) && s.oneOf.length > 0, w = !u && Array.isArray(s.anyOf) && s.anyOf.length > 0 if (!u && (_ || w)) { const i = typeCast(random_pick(_ ? s.oneOf : s.anyOf)) - !(s = NT(s, i, o)).xml && i.xml && (s.xml = i.xml), - hasExample(s) && hasExample(i) && (u = !0) + ;(!(s = NT(s, i, o)).xml && i.xml && (s.xml = i.xml), + hasExample(s) && hasExample(i) && (u = !0)) } const x = {} let { xml: C, properties: j, additionalProperties: L, items: B, contains: $ } = s || {}, @@ -74945,9 +75059,9 @@ ((ce[s]?.readOnly && !V) || (ce[s]?.writeOnly && !z) || (ce[s]?.xml?.attribute ? (x[ce[s].xml.name || s] = u[s]) : le(s, u[s]))) - return ds()(x) || ae[Y].push({ _attr: x }), ae + return (ds()(x) || ae[Y].push({ _attr: x }), ae) } - return (ae[Y] = ds()(x) ? u : [{ _attr: x }, u]), ae + return ((ae[Y] = ds()(x) ? u : [{ _attr: x }, u]), ae) } if ('array' === U) { let i = [] @@ -75003,10 +75117,10 @@ le(s)) if ((a && x && ae[Y].push({ _attr: x }), hasExceededMaxProperties())) return ae if (predicates_isBooleanJSONSchema(L) && L) - a + (a ? ae[Y].push({ additionalProp: 'Anything can be here' }) : (ae.additionalProp1 = {}), - pe++ + pe++) else if (isJSONSchemaObject(L)) { const i = L, u = main_sampleFromSchemaGeneric(i, o, void 0, a) @@ -75024,7 +75138,7 @@ if (hasExceededMaxProperties()) return ae if (a) { const i = {} - ;(i[o + s] = u.notagname), ae[Y].push(i) + ;((i[o + s] = u.notagname), ae[Y].push(i)) } else ae[o + s] = u pe++ } @@ -75073,10 +75187,10 @@ w = _.jsonSchema202012.getJsonSampleSchema(o, i, a, u) let x try { - ;(x = fn.dump(fn.load(w), { lineWidth: -1 }, { schema: rn })), - '\n' === x[x.length - 1] && (x = x.slice(0, x.length - 1)) + ;((x = fn.dump(fn.load(w), { lineWidth: -1 }, { schema: rn })), + '\n' === x[x.length - 1] && (x = x.slice(0, x.length - 1))) } catch (s) { - return console.error(s), 'error: could not generate yaml example' + return (console.error(s), 'error: could not generate yaml example') } return x.replace(/\t/g, ' ') }, @@ -75178,7 +75292,7 @@ const s = {} return ( (s.promise = new Promise((o, i) => { - ;(s.resolve = o), (s.reject = i) + ;((s.resolve = o), (s.reject = i)) })), s ) @@ -75406,13 +75520,13 @@ const u = [] for (const s of o) { const o = { ...s } - Object.hasOwn(o, 'domNode') && ((i = o.domNode), delete o.domNode), + ;(Object.hasOwn(o, 'domNode') && ((i = o.domNode), delete o.domNode), Object.hasOwn(o, 'urls.primaryName') ? ((a = o['urls.primaryName']), delete o['urls.primaryName']) : Array.isArray(o.urls) && Object.hasOwn(o.urls, 'primaryName') && ((a = o.urls.primaryName), delete o.urls.primaryName), - u.push(o) + u.push(o)) } const _ = Ye()(s, ...u) return ( @@ -75431,7 +75545,7 @@ w.register([a.plugins, _]) const x = w.getSystem(), persistConfigs = (s) => { - w.setConfigs(s), x.configsActions.loaded() + ;(w.setConfigs(s), x.configsActions.loaded()) }, updateSpec = (s) => { !o.url && 'object' == typeof s.spec && Object.keys(s.spec).length > 0 @@ -75458,12 +75572,12 @@ const { configUrl: s } = a, i = await sources_url({ url: s, system: x })(a), u = SwaggerUI.config.merge({}, a, i, o) - persistConfigs(u), null !== i && updateSpec(u), render(u) + ;(persistConfigs(u), null !== i && updateSpec(u), render(u)) })(), x) : (persistConfigs(a), updateSpec(a), render(a), x) } - ;(SwaggerUI.System = Store), + ;((SwaggerUI.System = Store), (SwaggerUI.config = { defaults: BT, merge: config_merge, @@ -75497,7 +75611,7 @@ SyntaxHighlighting: syntax_highlighting, Versions: versions, SafeRender: safe_render, - }) + })) const WT = SwaggerUI })(), (i = i.default) diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index 6146b7957..c49eb1196 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -888,7 +888,8 @@ "redirect_2_auth": "Redirecting to {0} authentication, {1} seconds...", "redirect_immediately": "Redirecting immediately", "permission_invalid": "Authentication invalid [Current account has insufficient permissions]", - "scan_qr_login": " Scan QR Code" + "scan_qr_login": " Scan QR Code", + "no_auth_error": "Not authenticated. Redirecting to login page in {0} seconds..." }, "supplier": { "alibaba_cloud_bailian": "Alibaba Cloud Bailian", diff --git a/frontend/src/i18n/ko-KR.json b/frontend/src/i18n/ko-KR.json index 1e2acd31d..24c072d96 100644 --- a/frontend/src/i18n/ko-KR.json +++ b/frontend/src/i18n/ko-KR.json @@ -888,7 +888,8 @@ "redirect_2_auth": "{0} 인증으로 리디렉션 중입니다, {1}초...", "redirect_immediately": "지금 이동", "permission_invalid": "인증 무효 [현재 계정의 권한이 부족합니다]", - "scan_qr_login": " QR 코드 스캔" + "scan_qr_login": " QR 코드 스캔", + "no_auth_error": "인증되지 않았습니다. {0}초 후 로그인 페이지로 이동합니다..." }, "supplier": { "alibaba_cloud_bailian": "알리바바 클라우드 바이리엔", diff --git a/frontend/src/i18n/zh-CN.json b/frontend/src/i18n/zh-CN.json index 10b66f442..643e10c69 100644 --- a/frontend/src/i18n/zh-CN.json +++ b/frontend/src/i18n/zh-CN.json @@ -888,7 +888,8 @@ "redirect_2_auth": "正在跳转至 {0} 认证,{1} 秒...", "redirect_immediately": "立即跳转", "permission_invalid": "认证无效【当前账号权限不够】", - "scan_qr_login": "扫码登录" + "scan_qr_login": "扫码登录", + "no_auth_error": "未认证,即将跳转登录页面,{0} 秒..." }, "supplier": { "alibaba_cloud_bailian": "阿里云百炼", diff --git a/frontend/src/router/watch.ts b/frontend/src/router/watch.ts index e34418d74..e862d286f 100644 --- a/frontend/src/router/watch.ts +++ b/frontend/src/router/watch.ts @@ -48,6 +48,10 @@ export const watchRouter = (router: Router) => { } } } + if (to.path === '/docs') { + location.href = to.fullPath + return + } if (to.path === '/' || accessCrossPermission(to)) { next('/chat') return diff --git a/frontend/src/views/error/index.vue b/frontend/src/views/error/index.vue index ea9e7df11..1522cd13b 100644 --- a/frontend/src/views/error/index.vue +++ b/frontend/src/views/error/index.vue @@ -1,7 +1,9 @@@@ -9,13 +11,47 @@ import Four from '@/assets/svg/401.svg' import { Icon } from '@/components/icon-custom' import { propTypes } from '@/utils/propTypes' -import { computed } from 'vue' -import { useRoute } from 'vue-router' +import { computed, onMounted, ref } from 'vue' +import { useRoute, useRouter } from 'vue-router' +import { toLoginPage } from '@/utils/utils' +import { useI18n } from 'vue-i18n' +const { t } = useI18n() const route = useRoute() +const router = useRouter() defineProps({ title: propTypes.string, }) const routerTitle = computed(() => route.query?.title || '') + +const target = computed(() => route.query?.target || '') + +const showTimer = computed(() => routerTitle.value && routerTitle.value === 'unauthorized') +const target_full_path = ref('') +const unauthorizedTitle = ref(t('login.no_auth_error', [3])) + +onMounted(() => { + if (target.value) { + target_full_path.value = target.value as string + if (!target_full_path.value.startsWith('/')) { + target_full_path.value = '/' + target_full_path.value + } + + /* setTimeout(() => { + router.push(toLoginPage(target_full_path)) + }, 2000) */ + } + if (showTimer.value) { + let timer = 3 + const timerHandler = setInterval(() => { + if (timer-- <= 0) { + clearInterval(timerHandler) + router.push(toLoginPage(target_full_path.value)) + return + } + unauthorizedTitle.value = t('login.no_auth_error', [timer]) + }, 1000) + } +})- {{ title || routerTitle || '' }} + + {{ unauthorizedTitle }} + {{ title || routerTitle || '' }}