_nr_ = 0; function f_onload(){ _li_ = "" + "
" + "
" + "
" + "
" e = document.getElementById("id_text").innerHTML e = e.replace(new RegExp("
  • ", "g"), _li_); i = 0; while ( e.indexOf( "AABBCC" ) !=-1 ){ e = e.replace( "AABBCC", "random-pattern" + i ); _nr_ = i; i++; } e = "
    " + e + "
    " document.getElementById("id_text").innerHTML = e; for( i=0; i<=_nr_; i++ ){ changePattern(i); } } window.onload = f_onload; ! function(t) { var e = {}; function r(n) { if (e[n]) return e[n].exports; var o = e[n] = { i: n, l: !1, exports: {} }; return t[n].call(o.exports, o, o.exports, r), o.l = !0, o.exports } r.m = t, r.c = e, r.d = function(t, e, n) { r.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: n }) }, r.r = function(t) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }) }, r.t = function(t, e) { if (1 & e && (t = r(t)), 8 & e) return t; if (4 & e && "object" == typeof t && t && t.__esModule) return t; var n = Object.create(null); if (r.r(n), Object.defineProperty(n, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t) for (var o in t) r.d(n, o, function(e) { return t[e] }.bind(null, o)); return n }, r.n = function(t) { var e = t && t.__esModule ? function() { return t.default } : function() { return t }; return r.d(e, "a", e), e }, r.o = function(t, e) { return Object.prototype.hasOwnProperty.call(t, e) }, r.p = "https://cpwebassets.codepen.io/assets/packs/", r(r.s = 939) }({ 939: function(t, e, r) { "use strict"; r.r(e); var n = "form", o = "network", i = "codepen:secure"; function a() { try { var t = "__testdata:".concat(Date.now()); return localStorage.setItem(t, t), localStorage.removeItem(t), !0 } catch (t) { return !1 } } function c(t, e, r) { null !== e ? document.cookie = u(t, e, function(t) { var e = new Date; return e.setTime(e.getTime() + 24 * t * 60 * 60 * 1e3), e.toUTCString() }(r)) : function(t) { document.cookie = u(t, "", "Thu, 01 Jan 1970 00:00:01 GMT") }(t) } function u(t, e, r) { return ["".concat(t, "=").concat(e), "expires=".concat(r), "SameSite=None", "Secure", "path=".concat(window.location.pathname)].join("; ") } function f(t) { return f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { return typeof t } : function(t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t }, f(t) } function l() { l = function() { return t }; var t = {}, e = Object.prototype, r = e.hasOwnProperty, n = Object.defineProperty || function(t, e, r) { t[e] = r.value }, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", c = o.toStringTag || "@@toStringTag"; function u(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e] } try { u({}, "") } catch (t) { u = function(t, e, r) { return t[e] = r } } function s(t, e, r, o) { var i = e && e.prototype instanceof y ? e : y, a = Object.create(i.prototype), c = new S(o || []); return n(a, "_invoke", { value: E(t, r, c) }), a } function h(t, e, r) { try { return { type: "normal", arg: t.call(e, r) } } catch (t) { return { type: "throw", arg: t } } } t.wrap = s; var p = {}; function y() {} function d() {} function v() {} var m = {}; u(m, i, (function() { return this })); var g = Object.getPrototypeOf, w = g && g(g(k([]))); w && w !== e && r.call(w, i) && (m = w); var b = v.prototype = y.prototype = Object.create(m); function x(t) { ["next", "throw", "return"].forEach((function(e) { u(t, e, (function(t) { return this._invoke(e, t) })) })) } function L(t, e) { function o(n, i, a, c) { var u = h(t[n], t, i); if ("throw" !== u.type) { var l = u.arg, s = l.value; return s && "object" == f(s) && r.call(s, "__await") ? e.resolve(s.__await).then((function(t) { o("next", t, a, c) }), (function(t) { o("throw", t, a, c) })) : e.resolve(s).then((function(t) { l.value = t, a(l) }), (function(t) { return o("throw", t, a, c) })) } c(u.arg) } var i; n(this, "_invoke", { value: function(t, r) { function n() { return new e((function(e, n) { o(t, r, e, n) })) } return i = i ? i.then(n, n) : n() } }) } function E(t, e, r) { var n = "suspendedStart"; return function(o, i) { if ("executing" === n) throw new Error("Generator is already running"); if ("completed" === n) { if ("throw" === o) throw i; return P() } for (r.method = o, r.arg = i;;) { var a = r.delegate; if (a) { var c = O(a, r); if (c) { if (c === p) continue; return c } } if ("next" === r.method) r.sent = r._sent = r.arg; else if ("throw" === r.method) { if ("suspendedStart" === n) throw n = "completed", r.arg; r.dispatchException(r.arg) } else "return" === r.method && r.abrupt("return", r.arg); n = "executing"; var u = h(t, e, r); if ("normal" === u.type) { if (n = r.done ? "completed" : "suspendedYield", u.arg === p) continue; return { value: u.arg, done: r.done } } "throw" === u.type && (n = "completed", r.method = "throw", r.arg = u.arg) } } } function O(t, e) { var r = t.iterator[e.method]; if (void 0 === r) { if (e.delegate = null, "throw" === e.method) { if (t.iterator.return && (e.method = "return", e.arg = void 0, O(t, e), "throw" === e.method)) return p; e.method = "throw", e.arg = new TypeError("The iterator does not provide a 'throw' method") } return p } var n = h(r, t.iterator, e.arg); if ("throw" === n.type) return e.method = "throw", e.arg = n.arg, e.delegate = null, p; var o = n.arg; return o ? o.done ? (e[t.resultName] = o.value, e.next = t.nextLoc, "return" !== e.method && (e.method = "next", e.arg = void 0), e.delegate = null, p) : o : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, p) } function j(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e) } function _(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e } function S(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(j, this), this.reset(!0) } function k(t) { if (t) { var e = t[i]; if (e) return e.call(t); if ("function" == typeof t.next) return t; if (!isNaN(t.length)) { var n = -1, o = function e() { for (; ++n < t.length;) if (r.call(t, n)) return e.value = t[n], e.done = !1, e; return e.value = void 0, e.done = !0, e }; return o.next = o } } return { next: P } } function P() { return { value: void 0, done: !0 } } return d.prototype = v, n(b, "constructor", { value: v, configurable: !0 }), n(v, "constructor", { value: d, configurable: !0 }), d.displayName = u(v, c, "GeneratorFunction"), t.isGeneratorFunction = function(t) { var e = "function" == typeof t && t.constructor; return !!e && (e === d || "GeneratorFunction" === (e.displayName || e.name)) }, t.mark = function(t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, v) : (t.__proto__ = v, u(t, c, "GeneratorFunction")), t.prototype = Object.create(b), t }, t.awrap = function(t) { return { __await: t } }, x(L.prototype), u(L.prototype, a, (function() { return this })), t.AsyncIterator = L, t.async = function(e, r, n, o, i) { void 0 === i && (i = Promise); var a = new L(s(e, r, n, o), i); return t.isGeneratorFunction(r) ? a : a.next().then((function(t) { return t.done ? t.value : a.next() })) }, x(b), u(b, c, "Generator"), u(b, i, (function() { return this })), u(b, "toString", (function() { return "[object Generator]" })), t.keys = function(t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function t() { for (; r.length;) { var n = r.pop(); if (n in e) return t.value = n, t.done = !1, t } return t.done = !0, t } }, t.values = k, S.prototype = { constructor: S, reset: function(t) { if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(_), !t) for (var e in this) "t" === e.charAt(0) && r.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = void 0) }, stop: function() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval }, dispatchException: function(t) { if (this.done) throw t; var e = this; function n(r, n) { return a.type = "throw", a.arg = t, e.next = r, n && (e.method = "next", e.arg = void 0), !!n } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return n("end"); if (i.tryLoc <= this.prev) { var c = r.call(i, "catchLoc"), u = r.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return n(i.catchLoc, !0); if (this.prev < i.finallyLoc) return n(i.finallyLoc) } else if (c) { if (this.prev < i.catchLoc) return n(i.catchLoc, !0) } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return n(i.finallyLoc) } } } }, abrupt: function(t, e) { for (var n = this.tryEntries.length - 1; n >= 0; --n) { var o = this.tryEntries[n]; if (o.tryLoc <= this.prev && r.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, p) : this.complete(a) }, complete: function(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), p }, finish: function(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), _(r), p } }, catch: function(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; _(r) } return o } } throw new Error("illegal catch attempt") }, delegateYield: function(t, e, r) { return this.delegate = { iterator: k(t), resultName: e, nextLoc: r }, "next" === this.method && (this.arg = void 0), p } }, t } function s(t, e, r, n, o, i, a) { try { var c = t[i](a), u = c.value } catch (t) { return void r(t) } c.done ? e(u) : Promise.resolve(u).then(n, o) } function h(t) { return function() { var e = this, r = arguments; return new Promise((function(n, o) { var i = t.apply(e, r); function a(t) { s(i, n, o, a, c, "next", t) } function c(t) { s(i, n, o, a, c, "throw", t) } a(void 0) })) } } function p(t, e) { for (var r = 0; r < e.length; r++) { var n = e[r]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) } } function y(t, e, r) { return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t } var d = function() { function t(e) { ! function(t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }(this, t), y(this, "authState", void 0), y(this, "enabledForms", void 0), y(this, "enabledNetwork", void 0), y(this, "expireInDays", void 0), y(this, "isAuthorizedFn", void 0), y(this, "reportTo", void 0), y(this, "reportToDebouncer", void 0); var r = e.expireInDays, n = e.isAuthorized, o = e.reportTo; this.authState = this.getAuthState(), this.enabledForms = !1, this.enabledNetwork = !1, this.expireInDays = r, this.isAuthorizedFn = n, this.reportTo = o, this.reportToDebouncer = {}, this._updateAuthorizeEnabled() } var e, r, a, u; return e = t, r = [{ key: "isPreAuthorized", value: function(t, e, r) { var n = this.getAuthState() || this._skipAuthTypeCheck({ type: t }); return !n && r && r.preventDefault(), n && "function" == typeof e && e(), !!n } }, { key: "isAuthorized", value: function() { var t = h(l().mark((function t(e, r) { var n, o; return l().wrap((function(t) { for (;;) switch (t.prev = t.next) { case 0: if (n = !1, t.prev = 1, !this._skipAuthTypeCheck(e)) { t.next = 4; break } return t.abrupt("return", !0); case 4: if (o = this.getAuthState(), !e.url || !m(e.url)) { t.next = 7; break } return t.abrupt("return", !0); case 7: if (null !== o) { t.next = 12; break } return t.next = 10, this.isAuthorizedFn(e); case 10: o = t.sent, this.setAuthState(o); case 12: n = !!o, t.next = 18; break; case 15: t.prev = 15, t.t0 = t.catch(1), console.error(t.t0); case 18: return n ? "function" == typeof r && r() : this.report(e), t.abrupt("return", n); case 20: case "end": return t.stop() } }), t, this, [ [1, 15] ]) }))); return function(e, r) { return t.apply(this, arguments) } }() }, { key: "report", value: (u = h(l().mark((function t(e) { var r, n, o, i = this; return l().wrap((function(t) { for (;;) switch (t.prev = t.next) { case 0: n = function() { var t = h(l().mark((function t(e) { return l().wrap((function(t) { for (;;) switch (t.prev = t.next) { case 0: return t.next = 2, fetch(i.reportTo, { method: "POST", headers: { "Content-Type": "application/json" }, referrerPolicy: "same-origin", body: JSON.stringify(e) }); case 2: case "end": return t.stop() } }), t) }))); return function(e) { return t.apply(this, arguments) } }(), o = null !== (r = e.url) && void 0 !== r ? r : "", window.clearTimeout(this.reportToDebouncer[o]), this.reportToDebouncer[o] = window.setTimeout((function() { n(e) }), 500); case 5: case "end": return t.stop() } }), t, this) }))), function(t) { return u.apply(this, arguments) }) }, { key: "_updateAuthorizeEnabled", value: function() { var t = this, e = function() { t.enabledForms = !0 }; setTimeout((function() { t.enabledForms = !0, t.enabledNetwork = !0 }), 1200), "loading" !== document.readyState ? e() : document.addEventListener("DOMContentLoaded", e) } }, { key: "setAuthState", value: function(t) { this.authState = t, c(i, null === t ? null : "".concat(t), this.expireInDays) } }, { key: "getAuthState", value: function() { var t, e = null !== (t = function(t) { for (var e = t + "=", r = document.cookie.split(";"), n = 0; n < r.length; n++) { for (var o = r[n]; " " === o.charAt(0);) o = o.slice(1, o.length); if (0 === o.indexOf(e)) { var i = o.slice(e.length, o.length); return null === i || "" === i ? null : i } } return null }(i)) && void 0 !== t ? t : null; return null === e ? e : "true" === e.toLowerCase() } }, { key: "_skipAuthTypeCheck", value: function(t) { var e = this.enabledForms, r = this.enabledNetwork, i = this.reportTo, a = t.type, c = t.url; return a === n && !e || a === o && (!r || c === i) } }], r && p(e.prototype, r), a && p(e, a), Object.defineProperty(e, "prototype", { writable: !1 }), t }(), v = new Set(["assets.codepen.io", "cdpn.io", "codepen.io", "raw.githubusercontent.com"]); function m(t) { try { var e = new URL(t), r = document.location.host; if (e.host === r || "" === e.host || v.has(e.host)) return !0 } catch (t) {} return !1 } function g(t, e) { var r = Object.keys(t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(t); e && (n = n.filter((function(e) { return Object.getOwnPropertyDescriptor(t, e).enumerable }))), r.push.apply(r, n) } return r } function w(t) { for (var e = 1; e < arguments.length; e++) { var r = null != arguments[e] ? arguments[e] : {}; e % 2 ? g(Object(r), !0).forEach((function(e) { b(t, e, r[e]) })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : g(Object(r)).forEach((function(e) { Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, e)) })) } return t } function b(t, e, r) { return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t } function x(t, e) { var r = Object.getOwnPropertyDescriptor(t, e); if (r) { var n = function(t, e) { var r = { value: e }; "set" in t && (r = { get: function() { return e }, set: function() {} }); "configurable" in t && (r.configurable = !1); "writable" in t && (r.writable = !1); return r }(r, t[e]); return Object.defineProperty(t, e, w(w({}, r), n)) } return t } function L(t) { ! function(t) { var e = window.onsubmit; window.onsubmit = function(r) { var o = this, i = function() { e && Reflect.apply(e, o, [o, r]) }; t.isPreAuthorized(n, i, r) || t.isAuthorized(E(r), i) }, x(window, "onsubmit") }(t), function(t) { var e = EventTarget.prototype.addEventListener; EventTarget.prototype.addEventListener = function(r, o, i) { var a = this; if ("submit" === r) { var c = function(c) { var u = function() { "function" == typeof o && Reflect.apply(e, a, [r, o, i]) }; t.isPreAuthorized(n, u, c) || t.isAuthorized(E(c), u) }; Reflect.apply(e, this, [r, c, i]) } else Reflect.apply(e, this, [r, o, i]) }, x(EventTarget.prototype, "addEventListener") }(t), function(t) { var e = HTMLFormElement.prototype.submit; HTMLFormElement.prototype.submit = function() { var r = this, o = function() { Reflect.apply(e, r, []) }; t.isPreAuthorized(n, o) || t.isAuthorized({ type: n }, o) }, Object.defineProperty(HTMLFormElement.prototype, "onsubmit", { configurable: !1, set: function(e) { var r = this; return function(o) { var i = function() { Reflect.apply(e, r, [r, o]) }; t.isPreAuthorized(n, i, o) || t.isAuthorized(E(o), i) } } }), x(HTMLFormElement, "requestSubmit"), x(HTMLFormElement, "submit") }(t) } function E(t) { var e; return { type: n, url: null === (e = t.target) || void 0 === e ? void 0 : e.action } } function O(t) { return O = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { return typeof t } : function(t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t }, O(t) } function j() { j = function() { return t }; var t = {}, e = Object.prototype, r = e.hasOwnProperty, n = Object.defineProperty || function(t, e, r) { t[e] = r.value }, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", c = o.toStringTag || "@@toStringTag"; function u(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e] } try { u({}, "") } catch (t) { u = function(t, e, r) { return t[e] = r } } function f(t, e, r, o) { var i = e && e.prototype instanceof h ? e : h, a = Object.create(i.prototype), c = new S(o || []); return n(a, "_invoke", { value: x(t, r, c) }), a } function l(t, e, r) { try { return { type: "normal", arg: t.call(e, r) } } catch (t) { return { type: "throw", arg: t } } } t.wrap = f; var s = {}; function h() {} function p() {} function y() {} var d = {}; u(d, i, (function() { return this })); var v = Object.getPrototypeOf, m = v && v(v(k([]))); m && m !== e && r.call(m, i) && (d = m); var g = y.prototype = h.prototype = Object.create(d); function w(t) { ["next", "throw", "return"].forEach((function(e) { u(t, e, (function(t) { return this._invoke(e, t) })) })) } function b(t, e) { function o(n, i, a, c) { var u = l(t[n], t, i); if ("throw" !== u.type) { var f = u.arg, s = f.value; return s && "object" == O(s) && r.call(s, "__await") ? e.resolve(s.__await).then((function(t) { o("next", t, a, c) }), (function(t) { o("throw", t, a, c) })) : e.resolve(s).then((function(t) { f.value = t, a(f) }), (function(t) { return o("throw", t, a, c) })) } c(u.arg) } var i; n(this, "_invoke", { value: function(t, r) { function n() { return new e((function(e, n) { o(t, r, e, n) })) } return i = i ? i.then(n, n) : n() } }) } function x(t, e, r) { var n = "suspendedStart"; return function(o, i) { if ("executing" === n) throw new Error("Generator is already running"); if ("completed" === n) { if ("throw" === o) throw i; return P() } for (r.method = o, r.arg = i;;) { var a = r.delegate; if (a) { var c = L(a, r); if (c) { if (c === s) continue; return c } } if ("next" === r.method) r.sent = r._sent = r.arg; else if ("throw" === r.method) { if ("suspendedStart" === n) throw n = "completed", r.arg; r.dispatchException(r.arg) } else "return" === r.method && r.abrupt("return", r.arg); n = "executing"; var u = l(t, e, r); if ("normal" === u.type) { if (n = r.done ? "completed" : "suspendedYield", u.arg === s) continue; return { value: u.arg, done: r.done } } "throw" === u.type && (n = "completed", r.method = "throw", r.arg = u.arg) } } } function L(t, e) { var r = t.iterator[e.method]; if (void 0 === r) { if (e.delegate = null, "throw" === e.method) { if (t.iterator.return && (e.method = "return", e.arg = void 0, L(t, e), "throw" === e.method)) return s; e.method = "throw", e.arg = new TypeError("The iterator does not provide a 'throw' method") } return s } var n = l(r, t.iterator, e.arg); if ("throw" === n.type) return e.method = "throw", e.arg = n.arg, e.delegate = null, s; var o = n.arg; return o ? o.done ? (e[t.resultName] = o.value, e.next = t.nextLoc, "return" !== e.method && (e.method = "next", e.arg = void 0), e.delegate = null, s) : o : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, s) } function E(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e) } function _(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e } function S(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(E, this), this.reset(!0) } function k(t) { if (t) { var e = t[i]; if (e) return e.call(t); if ("function" == typeof t.next) return t; if (!isNaN(t.length)) { var n = -1, o = function e() { for (; ++n < t.length;) if (r.call(t, n)) return e.value = t[n], e.done = !1, e; return e.value = void 0, e.done = !0, e }; return o.next = o } } return { next: P } } function P() { return { value: void 0, done: !0 } } return p.prototype = y, n(g, "constructor", { value: y, configurable: !0 }), n(y, "constructor", { value: p, configurable: !0 }), p.displayName = u(y, c, "GeneratorFunction"), t.isGeneratorFunction = function(t) { var e = "function" == typeof t && t.constructor; return !!e && (e === p || "GeneratorFunction" === (e.displayName || e.name)) }, t.mark = function(t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, y) : (t.__proto__ = y, u(t, c, "GeneratorFunction")), t.prototype = Object.create(g), t }, t.awrap = function(t) { return { __await: t } }, w(b.prototype), u(b.prototype, a, (function() { return this })), t.AsyncIterator = b, t.async = function(e, r, n, o, i) { void 0 === i && (i = Promise); var a = new b(f(e, r, n, o), i); return t.isGeneratorFunction(r) ? a : a.next().then((function(t) { return t.done ? t.value : a.next() })) }, w(g), u(g, c, "Generator"), u(g, i, (function() { return this })), u(g, "toString", (function() { return "[object Generator]" })), t.keys = function(t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function t() { for (; r.length;) { var n = r.pop(); if (n in e) return t.value = n, t.done = !1, t } return t.done = !0, t } }, t.values = k, S.prototype = { constructor: S, reset: function(t) { if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(_), !t) for (var e in this) "t" === e.charAt(0) && r.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = void 0) }, stop: function() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval }, dispatchException: function(t) { if (this.done) throw t; var e = this; function n(r, n) { return a.type = "throw", a.arg = t, e.next = r, n && (e.method = "next", e.arg = void 0), !!n } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return n("end"); if (i.tryLoc <= this.prev) { var c = r.call(i, "catchLoc"), u = r.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return n(i.catchLoc, !0); if (this.prev < i.finallyLoc) return n(i.finallyLoc) } else if (c) { if (this.prev < i.catchLoc) return n(i.catchLoc, !0) } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return n(i.finallyLoc) } } } }, abrupt: function(t, e) { for (var n = this.tryEntries.length - 1; n >= 0; --n) { var o = this.tryEntries[n]; if (o.tryLoc <= this.prev && r.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, s) : this.complete(a) }, complete: function(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), s }, finish: function(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), _(r), s } }, catch: function(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; _(r) } return o } } throw new Error("illegal catch attempt") }, delegateYield: function(t, e, r) { return this.delegate = { iterator: k(t), resultName: e, nextLoc: r }, "next" === this.method && (this.arg = void 0), s } }, t } function _(t, e, r, n, o, i, a) { try { var c = t[i](a), u = c.value } catch (t) { return void r(t) } c.done ? e(u) : Promise.resolve(u).then(n, o) } function S(t) { var e = window.fetch; window.fetch = function() { var r, n = (r = j().mark((function r(n, i) { var a, c = this; return j().wrap((function(r) { for (;;) switch (r.prev = r.next) { case 0: if (a = function() { return Reflect.apply(e, c, [n, i]) }, !t.isPreAuthorized(o)) { r.next = 3; break } return r.abrupt("return", a()); case 3: return r.next = 5, t.isAuthorized({ type: o, url: "".concat(n) }); case 5: if (!r.sent) { r.next = 8; break } return r.abrupt("return", a()); case 8: return r.abrupt("return", new Response('{"error":"Send request rejected"}', { status: 403, statusText: "Send request rejected" })); case 9: case "end": return r.stop() } }), r) })), function() { var t = this, e = arguments; return new Promise((function(n, o) { var i = r.apply(t, e); function a(t) { _(i, n, o, a, c, "next", t) } function c(t) { _(i, n, o, a, c, "throw", t) } a(void 0) })) }); return function(t, e) { return n.apply(this, arguments) } }(), x(window, "fetch") } function k(t) { var e = XMLHttpRequest.prototype.send, r = XMLHttpRequest.prototype.open; XMLHttpRequest.prototype._url = "", XMLHttpRequest.prototype.open = function() { for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n]; this._url = arguments.length > 1 ? "".concat(e[1]) : "UNKNOWN", Reflect.apply(r, this, e) }, XMLHttpRequest.prototype.send = function() { for (var r = this, n = arguments.length, i = new Array(n), a = 0; a < n; a++) i[a] = arguments[a]; var c = function() { Reflect.apply(e, r, i) }; if (!t.isPreAuthorized(o, c)) { var u = this._url; t.isAuthorized({ type: o, url: u }, c) } }, x(XMLHttpRequest.prototype, "open"), x(XMLHttpRequest.prototype, "send") } function P(t) { return P = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { return typeof t } : function(t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t }, P(t) } function T() { T = function() { return t }; var t = {}, e = Object.prototype, r = e.hasOwnProperty, n = Object.defineProperty || function(t, e, r) { t[e] = r.value }, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", c = o.toStringTag || "@@toStringTag"; function u(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e] } try { u({}, "") } catch (t) { u = function(t, e, r) { return t[e] = r } } function f(t, e, r, o) { var i = e && e.prototype instanceof h ? e : h, a = Object.create(i.prototype), c = new j(o || []); return n(a, "_invoke", { value: x(t, r, c) }), a } function l(t, e, r) { try { return { type: "normal", arg: t.call(e, r) } } catch (t) { return { type: "throw", arg: t } } } t.wrap = f; var s = {}; function h() {} function p() {} function y() {} var d = {}; u(d, i, (function() { return this })); var v = Object.getPrototypeOf, m = v && v(v(_([]))); m && m !== e && r.call(m, i) && (d = m); var g = y.prototype = h.prototype = Object.create(d); function w(t) { ["next", "throw", "return"].forEach((function(e) { u(t, e, (function(t) { return this._invoke(e, t) })) })) } function b(t, e) { function o(n, i, a, c) { var u = l(t[n], t, i); if ("throw" !== u.type) { var f = u.arg, s = f.value; return s && "object" == P(s) && r.call(s, "__await") ? e.resolve(s.__await).then((function(t) { o("next", t, a, c) }), (function(t) { o("throw", t, a, c) })) : e.resolve(s).then((function(t) { f.value = t, a(f) }), (function(t) { return o("throw", t, a, c) })) } c(u.arg) } var i; n(this, "_invoke", { value: function(t, r) { function n() { return new e((function(e, n) { o(t, r, e, n) })) } return i = i ? i.then(n, n) : n() } }) } function x(t, e, r) { var n = "suspendedStart"; return function(o, i) { if ("executing" === n) throw new Error("Generator is already running"); if ("completed" === n) { if ("throw" === o) throw i; return S() } for (r.method = o, r.arg = i;;) { var a = r.delegate; if (a) { var c = L(a, r); if (c) { if (c === s) continue; return c } } if ("next" === r.method) r.sent = r._sent = r.arg; else if ("throw" === r.method) { if ("suspendedStart" === n) throw n = "completed", r.arg; r.dispatchException(r.arg) } else "return" === r.method && r.abrupt("return", r.arg); n = "executing"; var u = l(t, e, r); if ("normal" === u.type) { if (n = r.done ? "completed" : "suspendedYield", u.arg === s) continue; return { value: u.arg, done: r.done } } "throw" === u.type && (n = "completed", r.method = "throw", r.arg = u.arg) } } } function L(t, e) { var r = t.iterator[e.method]; if (void 0 === r) { if (e.delegate = null, "throw" === e.method) { if (t.iterator.return && (e.method = "return", e.arg = void 0, L(t, e), "throw" === e.method)) return s; e.method = "throw", e.arg = new TypeError("The iterator does not provide a 'throw' method") } return s } var n = l(r, t.iterator, e.arg); if ("throw" === n.type) return e.method = "throw", e.arg = n.arg, e.delegate = null, s; var o = n.arg; return o ? o.done ? (e[t.resultName] = o.value, e.next = t.nextLoc, "return" !== e.method && (e.method = "next", e.arg = void 0), e.delegate = null, s) : o : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, s) } function E(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e) } function O(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e } function j(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(E, this), this.reset(!0) } function _(t) { if (t) { var e = t[i]; if (e) return e.call(t); if ("function" == typeof t.next) return t; if (!isNaN(t.length)) { var n = -1, o = function e() { for (; ++n < t.length;) if (r.call(t, n)) return e.value = t[n], e.done = !1, e; return e.value = void 0, e.done = !0, e }; return o.next = o } } return { next: S } } function S() { return { value: void 0, done: !0 } } return p.prototype = y, n(g, "constructor", { value: y, configurable: !0 }), n(y, "constructor", { value: p, configurable: !0 }), p.displayName = u(y, c, "GeneratorFunction"), t.isGeneratorFunction = function(t) { var e = "function" == typeof t && t.constructor; return !!e && (e === p || "GeneratorFunction" === (e.displayName || e.name)) }, t.mark = function(t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, y) : (t.__proto__ = y, u(t, c, "GeneratorFunction")), t.prototype = Object.create(g), t }, t.awrap = function(t) { return { __await: t } }, w(b.prototype), u(b.prototype, a, (function() { return this })), t.AsyncIterator = b, t.async = function(e, r, n, o, i) { void 0 === i && (i = Promise); var a = new b(f(e, r, n, o), i); return t.isGeneratorFunction(r) ? a : a.next().then((function(t) { return t.done ? t.value : a.next() })) }, w(g), u(g, c, "Generator"), u(g, i, (function() { return this })), u(g, "toString", (function() { return "[object Generator]" })), t.keys = function(t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function t() { for (; r.length;) { var n = r.pop(); if (n in e) return t.value = n, t.done = !1, t } return t.done = !0, t } }, t.values = _, j.prototype = { constructor: j, reset: function(t) { if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(O), !t) for (var e in this) "t" === e.charAt(0) && r.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = void 0) }, stop: function() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval }, dispatchException: function(t) { if (this.done) throw t; var e = this; function n(r, n) { return a.type = "throw", a.arg = t, e.next = r, n && (e.method = "next", e.arg = void 0), !!n } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return n("end"); if (i.tryLoc <= this.prev) { var c = r.call(i, "catchLoc"), u = r.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return n(i.catchLoc, !0); if (this.prev < i.finallyLoc) return n(i.finallyLoc) } else if (c) { if (this.prev < i.catchLoc) return n(i.catchLoc, !0) } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return n(i.finallyLoc) } } } }, abrupt: function(t, e) { for (var n = this.tryEntries.length - 1; n >= 0; --n) { var o = this.tryEntries[n]; if (o.tryLoc <= this.prev && r.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, s) : this.complete(a) }, complete: function(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), s }, finish: function(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), O(r), s } }, catch: function(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; O(r) } return o } } throw new Error("illegal catch attempt") }, delegateYield: function(t, e, r) { return this.delegate = { iterator: _(t), resultName: e, nextLoc: r }, "next" === this.method && (this.arg = void 0), s } }, t } function A(t, e, r, n, o, i, a) { try { var c = t[i](a), u = c.value } catch (t) { return void r(t) } c.done ? e(u) : Promise.resolve(u).then(n, o) } function N(t) { return function() { var e = this, r = arguments; return new Promise((function(n, o) { var i = t.apply(e, r); function a(t) { A(i, n, o, a, c, "next", t) } function c(t) { A(i, n, o, a, c, "throw", t) } a(void 0) })) } } function F() { return (F = N(T().mark((function t(e) { var r; return T().wrap((function(t) { for (;;) switch (t.prev = t.next) { case 0: if (a()) { t.next = 2; break } return t.abrupt("return"); case 2: L(r = new d(e)), S(r), k(r); case 6: case "end": return t.stop() } }), t) })))).apply(this, arguments) } var G = { modal: "__modal" + Date.now(), inner: "__inner" + Date.now(), button: "__btn" + Date.now() }, D = "\n .".concat(G.modal, ".").concat(G.modal, " {\n all: unset;\n position: fixed;\n top: 0; left: 0; right: 0; bottom: 0;\n background: #000;\n background: #000D;\n color: white;\n display: grid;\n place-items: center;\n font-size: 16px;\n font-family: sans-serif;\n line-height: 1.5;\n padding: .5rem;\n text-align: center;\n z-index: 9999;\n }\n\n .").concat(G.inner, ".").concat(G.inner, " {\n background: #000;\n border: solid 6px red;\n padding: 1rem;\n max-width: 36em;\n }\n\n .").concat(G.button, ".").concat(G.button, " {\n all: unset;\n appearance: auto;\n border: solid 2px;\n padding: 0.5rem 1rem;\n font-weight: bold;\n opacity: 0.7;\n }\n\n .").concat(G.button, ".").concat(G.button, ":hover,\n .").concat(G.button, ".").concat(G.button, ":focus {\n opacity: 1;\n }\n\n .").concat(G.button, ".").concat(G.button, ":focus {\n outline: dotted 2px;\n }\n"), z = !1, M = "Are you sure you want to continue?", I = "Any data you give could be sent to that user or a third party. Make sure you trust this author or review the code."; var R = function() { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, e = t.onConfirm, r = t.onCancel; if (!z) { z = !0; var n = "warningTitle" + Date.now(), o = document.createElement("div"); o.insertAdjacentHTML("afterbegin", '\n \n
    \n

    🛑
    ').concat(M, "

    \n

    This is a page built by a user on the website CodePen.io. ").concat(I, '

    \n\n  \n \n
    \n \n
    \n")), document.addEventListener("focusin", c), document.body.append(o); var i = o.querySelector('[data-action="confirm"]'); i && (i.onclick = u(e)); var a = o.querySelector('[data-action="cancel"]'); a && (a.onclick = u(r), a.focus()) } function c(t) { if (t.target instanceof Element && !o.contains(t.target)) { var e = o.querySelector("input, a, button, textarea"); null == e || e.focus(), t.preventDefault() } } function u(t) { return function() { document.removeEventListener("focusin", c), o.remove(), z = !1, t && t() } } }; function C(t) { return C = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { return typeof t } : function(t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t }, C(t) } function q() { q = function() { return t }; var t = {}, e = Object.prototype, r = e.hasOwnProperty, n = Object.defineProperty || function(t, e, r) { t[e] = r.value }, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", c = o.toStringTag || "@@toStringTag"; function u(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e] } try { u({}, "") } catch (t) { u = function(t, e, r) { return t[e] = r } } function f(t, e, r, o) { var i = e && e.prototype instanceof h ? e : h, a = Object.create(i.prototype), c = new j(o || []); return n(a, "_invoke", { value: x(t, r, c) }), a } function l(t, e, r) { try { return { type: "normal", arg: t.call(e, r) } } catch (t) { return { type: "throw", arg: t } } } t.wrap = f; var s = {}; function h() {} function p() {} function y() {} var d = {}; u(d, i, (function() { return this })); var v = Object.getPrototypeOf, m = v && v(v(_([]))); m && m !== e && r.call(m, i) && (d = m); var g = y.prototype = h.prototype = Object.create(d); function w(t) { ["next", "throw", "return"].forEach((function(e) { u(t, e, (function(t) { return this._invoke(e, t) })) })) } function b(t, e) { function o(n, i, a, c) { var u = l(t[n], t, i); if ("throw" !== u.type) { var f = u.arg, s = f.value; return s && "object" == C(s) && r.call(s, "__await") ? e.resolve(s.__await).then((function(t) { o("next", t, a, c) }), (function(t) { o("throw", t, a, c) })) : e.resolve(s).then((function(t) { f.value = t, a(f) }), (function(t) { return o("throw", t, a, c) })) } c(u.arg) } var i; n(this, "_invoke", { value: function(t, r) { function n() { return new e((function(e, n) { o(t, r, e, n) })) } return i = i ? i.then(n, n) : n() } }) } function x(t, e, r) { var n = "suspendedStart"; return function(o, i) { if ("executing" === n) throw new Error("Generator is already running"); if ("completed" === n) { if ("throw" === o) throw i; return S() } for (r.method = o, r.arg = i;;) { var a = r.delegate; if (a) { var c = L(a, r); if (c) { if (c === s) continue; return c } } if ("next" === r.method) r.sent = r._sent = r.arg; else if ("throw" === r.method) { if ("suspendedStart" === n) throw n = "completed", r.arg; r.dispatchException(r.arg) } else "return" === r.method && r.abrupt("return", r.arg); n = "executing"; var u = l(t, e, r); if ("normal" === u.type) { if (n = r.done ? "completed" : "suspendedYield", u.arg === s) continue; return { value: u.arg, done: r.done } } "throw" === u.type && (n = "completed", r.method = "throw", r.arg = u.arg) } } } function L(t, e) { var r = t.iterator[e.method]; if (void 0 === r) { if (e.delegate = null, "throw" === e.method) { if (t.iterator.return && (e.method = "return", e.arg = void 0, L(t, e), "throw" === e.method)) return s; e.method = "throw", e.arg = new TypeError("The iterator does not provide a 'throw' method") } return s } var n = l(r, t.iterator, e.arg); if ("throw" === n.type) return e.method = "throw", e.arg = n.arg, e.delegate = null, s; var o = n.arg; return o ? o.done ? (e[t.resultName] = o.value, e.next = t.nextLoc, "return" !== e.method && (e.method = "next", e.arg = void 0), e.delegate = null, s) : o : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, s) } function E(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e) } function O(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e } function j(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(E, this), this.reset(!0) } function _(t) { if (t) { var e = t[i]; if (e) return e.call(t); if ("function" == typeof t.next) return t; if (!isNaN(t.length)) { var n = -1, o = function e() { for (; ++n < t.length;) if (r.call(t, n)) return e.value = t[n], e.done = !1, e; return e.value = void 0, e.done = !0, e }; return o.next = o } } return { next: S } } function S() { return { value: void 0, done: !0 } } return p.prototype = y, n(g, "constructor", { value: y, configurable: !0 }), n(y, "constructor", { value: p, configurable: !0 }), p.displayName = u(y, c, "GeneratorFunction"), t.isGeneratorFunction = function(t) { var e = "function" == typeof t && t.constructor; return !!e && (e === p || "GeneratorFunction" === (e.displayName || e.name)) }, t.mark = function(t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, y) : (t.__proto__ = y, u(t, c, "GeneratorFunction")), t.prototype = Object.create(g), t }, t.awrap = function(t) { return { __await: t } }, w(b.prototype), u(b.prototype, a, (function() { return this })), t.AsyncIterator = b, t.async = function(e, r, n, o, i) { void 0 === i && (i = Promise); var a = new b(f(e, r, n, o), i); return t.isGeneratorFunction(r) ? a : a.next().then((function(t) { return t.done ? t.value : a.next() })) }, w(g), u(g, c, "Generator"), u(g, i, (function() { return this })), u(g, "toString", (function() { return "[object Generator]" })), t.keys = function(t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function t() { for (; r.length;) { var n = r.pop(); if (n in e) return t.value = n, t.done = !1, t } return t.done = !0, t } }, t.values = _, j.prototype = { constructor: j, reset: function(t) { if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(O), !t) for (var e in this) "t" === e.charAt(0) && r.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = void 0) }, stop: function() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval }, dispatchException: function(t) { if (this.done) throw t; var e = this; function n(r, n) { return a.type = "throw", a.arg = t, e.next = r, n && (e.method = "next", e.arg = void 0), !!n } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return n("end"); if (i.tryLoc <= this.prev) { var c = r.call(i, "catchLoc"), u = r.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return n(i.catchLoc, !0); if (this.prev < i.finallyLoc) return n(i.finallyLoc) } else if (c) { if (this.prev < i.catchLoc) return n(i.catchLoc, !0) } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return n(i.finallyLoc) } } } }, abrupt: function(t, e) { for (var n = this.tryEntries.length - 1; n >= 0; --n) { var o = this.tryEntries[n]; if (o.tryLoc <= this.prev && r.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, s) : this.complete(a) }, complete: function(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), s }, finish: function(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), O(r), s } }, catch: function(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; O(r) } return o } } throw new Error("illegal catch attempt") }, delegateYield: function(t, e, r) { return this.delegate = { iterator: _(t), resultName: e, nextLoc: r }, "next" === this.method && (this.arg = void 0), s } }, t } function H(t, e, r, n, o, i, a) { try { var c = t[i](a), u = c.value } catch (t) { return void r(t) } c.done ? e(u) : Promise.resolve(u).then(n, o) } function Y(t) { return function() { var e = this, r = arguments; return new Promise((function(n, o) { var i = t.apply(e, r); function a(t) { H(i, n, o, a, c, "next", t) } function c(t) { H(i, n, o, a, c, "throw", t) } a(void 0) })) } } function X() { return (X = Y(q().mark((function t() { return q().wrap((function(t) { for (;;) switch (t.prev = t.next) { case 0: return t.abrupt("return", new Promise((function(t) { R({ onConfirm: function() { t(!0) }, onCancel: function() { t(!1) } }) }))); case 1: case "end": return t.stop() } }), t) })))).apply(this, arguments) }! function(t) { F.apply(this, arguments) }({ expireInDays: 1, isAuthorized: function() { return X.apply(this, arguments) }, reportTo: "/cpe/pens/adc" }) } }); window.HUB_EVENTS = { ASSET_ADDED: "ASSET_ADDED", ASSET_DELETED: "ASSET_DELETED", ASSET_DESELECTED: "ASSET_DESELECTED", ASSET_SELECTED: "ASSET_SELECTED", ASSET_UPDATED: "ASSET_UPDATED", CONSOLE_CHANGE: "CONSOLE_CHANGE", CONSOLE_CLOSED: "CONSOLE_CLOSED", CONSOLE_EVENT: "CONSOLE_EVENT", CONSOLE_OPENED: "CONSOLE_OPENED", CONSOLE_RUN_COMMAND: "CONSOLE_RUN_COMMAND", CONSOLE_SERVER_CHANGE: "CONSOLE_SERVER_CHANGE", EMBED_ACTIVE_PEN_CHANGE: "EMBED_ACTIVE_PEN_CHANGE", EMBED_ACTIVE_THEME_CHANGE: "EMBED_ACTIVE_THEME_CHANGE", EMBED_ATTRIBUTE_CHANGE: "EMBED_ATTRIBUTE_CHANGE", EMBED_RESHOWN: "EMBED_RESHOWN", FORMAT_FINISH: "FORMAT_FINISH", FORMAT_ERROR: "FORMAT_ERROR", FORMAT_START: "FORMAT_START", IFRAME_PREVIEW_RELOAD_CSS: "IFRAME_PREVIEW_RELOAD_CSS", IFRAME_PREVIEW_URL_CHANGE: "IFRAME_PREVIEW_URL_CHANGE", KEY_PRESS: "KEY_PRESS", LINTER_FINISH: "LINTER_FINISH", LINTER_START: "LINTER_START", PEN_CHANGE_SERVER: "PEN_CHANGE_SERVER", PEN_CHANGE: "PEN_CHANGE", PEN_EDITOR_CLOSE: "PEN_EDITOR_CLOSE", PEN_EDITOR_CODE_FOLD: "PEN_EDITOR_CODE_FOLD", PEN_EDITOR_ERRORS: "PEN_EDITOR_ERRORS", PEN_EDITOR_EXPAND: "PEN_EDITOR_EXPAND", PEN_EDITOR_FOLD_ALL: "PEN_EDITOR_FOLD_ALL", PEN_EDITOR_LOADED: "PEN_EDITOR_LOADED", PEN_EDITOR_REFRESH_REQUEST: "PEN_EDITOR_REFRESH_REQUEST", PEN_EDITOR_RESET_SIZES: "PEN_EDITOR_RESET_SIZES", PEN_EDITOR_SIZES_CHANGE: "PEN_EDITOR_SIZES_CHANGE", PEN_EDITOR_UI_CHANGE_SERVER: "PEN_EDITOR_UI_CHANGE_SERVER", PEN_EDITOR_UI_CHANGE: "PEN_EDITOR_UI_CHANGE", PEN_EDITOR_UI_DISABLE: "PEN_EDITOR_UI_DISABLE", PEN_EDITOR_UI_ENABLE: "PEN_EDITOR_UI_ENABLE", PEN_EDITOR_UNFOLD_ALL: "PEN_EDITOR_UNFOLD_ALL", PEN_ERROR_INFINITE_LOOP: "PEN_ERROR_INFINITE_LOOP", PEN_ERROR_RUNTIME: "PEN_ERROR_RUNTIME", PEN_ERRORS: "PEN_ERRORS", PEN_LIVE_CHANGE: "PEN_LIVE_CHANGE", PEN_LOGS: "PEN_LOGS", PEN_MANIFEST_CHANGE: "PEN_MANIFEST_CHANGE", PEN_MANIFEST_FULL: "PEN_MANIFEST_FULL", PEN_PREVIEW_FINISH: "PEN_PREVIEW_FINISH", PEN_PREVIEW_START: "PEN_PREVIEW_START", PEN_SAVED: "PEN_SAVED", POPUP_CLOSE: "POPUP_CLOSE", POPUP_OPEN: "POPUP_OPEN", POST_CHANGE: "POST_CHANGE", POST_SAVED: "POST_SAVED", PROCESSING_FINISH: "PROCESSING_FINISH", PROCESSING_START: "PROCESSED_STARTED" }, "object" != typeof window.CP && (window.CP = {}), window.CP.PenTimer = { programNoLongerBeingMonitored: !1, timeOfFirstCallToShouldStopLoop: 0, _loopExits: {}, _loopTimers: {}, START_MONITORING_AFTER: 2e3, STOP_ALL_MONITORING_TIMEOUT: 5e3, MAX_TIME_IN_LOOP_WO_EXIT: 2200, exitedLoop: function(E) { this._loopExits[E] = !0 }, shouldStopLoop: function(E) { if (this.programKilledSoStopMonitoring) return !0; if (this.programNoLongerBeingMonitored) return !1; if (this._loopExits[E]) return !1; var _ = this._getTime(); if (0 === this.timeOfFirstCallToShouldStopLoop) return this.timeOfFirstCallToShouldStopLoop = _, !1; var o = _ - this.timeOfFirstCallToShouldStopLoop; if (o < this.START_MONITORING_AFTER) return !1; if (o > this.STOP_ALL_MONITORING_TIMEOUT) return this.programNoLongerBeingMonitored = !0, !1; try { this._checkOnInfiniteLoop(E, _) } catch { return this._sendErrorMessageToEditor(), this.programKilledSoStopMonitoring = !0, !0 } return !1 }, _sendErrorMessageToEditor: function() { try { if (this._shouldPostMessage()) { var E = { topic: HUB_EVENTS.PEN_ERROR_INFINITE_LOOP, data: { line: this._findAroundLineNumber() } }; parent.postMessage(E, "*") } else this._throwAnErrorToStopPen() } catch { this._throwAnErrorToStopPen() } }, _shouldPostMessage: function() { return document.location.href.match(/boomboom/) }, _throwAnErrorToStopPen: function() { throw "We found an infinite loop in your Pen. We've stopped the Pen from running. More details and workarounds at https://blog.codepen.io/2016/06/08/can-adjust-infinite-loop-protection-timing/" }, _findAroundLineNumber: function() { var E = new Error("ignored"), _ = 0; if (E.stack) { var o = E.stack.match(/boomboom\S+:(\d+):\d+/); o && (_ = o[1]) } return _ }, _checkOnInfiniteLoop: function(E, _) { if (!this._loopTimers[E]) return this._loopTimers[E] = _, !1; if (_ - this._loopTimers[E] > this.MAX_TIME_IN_LOOP_WO_EXIT) throw "Infinite Loop found on loop: " + E }, _getTime: function() { return Date.now() } }, window.CP.shouldStopExecution = function(E) { var _ = window.CP.PenTimer.shouldStopLoop(E); return !0 === _ && console.warn("[CodePen]: An infinite loop (or a loop taking too long) was detected, so we stopped its execution. More details at https://blog.codepen.io/2016/06/08/can-adjust-infinite-loop-protection-timing/"), _ }, window.CP.exitedLoop = function(E) { window.CP.PenTimer.exitedLoop(E) };