diff --git a/META-INF/cose.manifest b/META-INF/cose.manifest deleted file mode 100644 index 1cae1ad..0000000 --- a/META-INF/cose.manifest +++ /dev/null @@ -1,142 +0,0 @@ -Manifest-Version: 1.0 - -Name: manifest.json -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: QyOWplGk05hY8yqOckI5ow3flts= -SHA256-Digest: YsavbsFOHi+AXVSbguQu0Tv60yoFhK9W3mW++ablOII= - -Name: background.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: otZGFtDhcnbfdUJOCjW9i1NYPO0= -SHA256-Digest: mgVRfmNzMoxvuLndSlKK4AkCWDabpbekleOV++9cWtU= - -Name: index-6137f488.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: rNamLTYc/X4gd/dLBlk300AQOW8= -SHA256-Digest: S33prVTiy5xonbBTGTEKPY1v+Lb84anybWbye+zq6wE= - -Name: background.injected-af36b849.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: UF0lgn7oKe72Bjg/lBEwzH4Umis= -SHA256-Digest: NTFIqjrprPiv/JKI7ppnvr3q1Ibt8C/IGbLwkr3nHNk= - -Name: get_stream_details-b6177000.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: yCTRLEgpVeUuVBx6nRlIZGc/FkA= -SHA256-Digest: QzA+2ffC9lOLR9vXjdJYGXg12fQY0Fo5ga6Na4muGqU= - -Name: parse_token.util-ed270559.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: IBgALOyVpV5c2qndWHw3xIwYD8o= -SHA256-Digest: EVxzphZ3DjnCxgg69Bb+Cb6qU+IQuSD6dp93AIhNWZg= - -Name: fetch_youtube-71c76849.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 42eBw2OqRR68eu8r/SPuKyFKaOQ= -SHA256-Digest: MRh597WCWZkT9t03IVvwdcOZZmjMuu7K4soQU/T2a/0= - -Name: router.interface-6cdbc015.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: W9ch3UrWE93U87O7CGQLo4Zn1O8= -SHA256-Digest: icJArSO2T+nG5wNcv9j54PPcb7/4hrTvQgkyxvoww74= - -Name: style-inject.es-a0e1a0ba.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: syuFaCktG1wUUxfCChPrKvOC3Po= -SHA256-Digest: KVO81P8lHSZ+7NgTK9REh7A7CNjl/cZWUzBQSWLW8GQ= - -Name: storage-a8ac7bd3.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 1fGdHT6DYLkzUYCSGdpONdCNjhA= -SHA256-Digest: wJ4DkoJ6fjrH7bUjQj26JLD8N87etKl9t8IFYffGfRg= - -Name: connectRuntime-a699491c.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: LVD3EDxHZoyuVOD0Gx7nbbwyjmQ= -SHA256-Digest: AXPMWmaye4YgwkyD83k9SFZRtlk+iG8hfXSlk1pBJ5U= - -Name: background.content-5f02aba1.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: pr0Fwt3L3YF+gW2/f1rMEthMD3c= -SHA256-Digest: QWplWRax1J1pkq64mM1eTeDg5Djv/CtiLJoIYlrZSI0= - -Name: inject_script.util-c1ec59e3.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: A1nesjjyxjUtFgzMB/LrqVTxYvA= -SHA256-Digest: v9JV86okMb2y8UCyST10ZJmZi28egw6Fpua+HOdpAKU= - -Name: when_ready.util-91474a6b.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: vGtvPLCiUbrZ0wSC14aVb5FkecQ= -SHA256-Digest: 9Cb+zjS00dSy+O5ABVzMB+qM/OAaHOzrkBfRtVGfw2o= - -Name: popup/index.html -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: N1UM8u9cukLAr+I9D9YzWiqL4bM= -SHA256-Digest: 9CNJMH1v+j2WlTe+sIo78TZ6LuVLab2QIwGtrMhSFLw= - -Name: popup/index.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: X/+QqwkoQ/2LSAmw6IojRy+ZFEA= -SHA256-Digest: ELssVW8zEux25qpRliKg44b0YVg8g8MKJ+rSvVpZnQM= - -Name: assets/icon16.png -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 5fHxvDGOaVFjrooikbv1hD0zJ1o= -SHA256-Digest: fUCcukwVtnuEm0RLro1kBByeqg7y9ZtacV/EJOGab2w= - -Name: assets/icon48.png -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: zKUR+hdJsV76zopW+ANvI6Ib91E= -SHA256-Digest: 3RNu1SPtiNbK9DlSeRuro+r8vQ3e1vsKAFMQs0x52N0= - -Name: assets/icon128.png -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: tsWw4BHONlffMdl0Sm7UzLWYW/k= -SHA256-Digest: DQq7VbY0l32ewC/MJKwsPdqYPkgFkr4GywJe2TdkV9M= - -Name: assets/background-c101863b.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: KHjGawagtvVDH7ef9CJ2qRQNcDI= -SHA256-Digest: QvnXfM33XTrJj0j8jRLvo3EvZPO0dFsitpnYG4kbTyM= - -Name: assets/index-8c52b575.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: Un7dBvBb46qfc84r8NKcsv7452c= -SHA256-Digest: 4f5WbJ3/wfSqwD74LR9j34sJAkJ0MwSzpDYnDcpzG60= - -Name: assets/index-b14d09b0.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: JsUIKULUiNrjUOqMBtDTLpU9Re4= -SHA256-Digest: 5TgWk/SxFjsHUhykKvheafN02qvQDgwKTIZ9+1R2UrY= - -Name: assets/index-26a612d9.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: rUTqX3fuW2B6+zOTl6zBwkPo41s= -SHA256-Digest: SWQ0c104tRKLaUEOp9jtdl1bKuDYXQQNNXxQjdw6wJ4= - -Name: content/youtube/inject.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: Ov5ue5JIapXyBOzbveEVoBNFPXk= -SHA256-Digest: FOL1i7Z8U1fU66AAbV3F2sSWGlMgSWfSNUAQdP8CgnM= - -Name: content/youtube/index.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: FzEoDMTpvO6RgnXhR7dbrHb9EuU= -SHA256-Digest: uDoKZjRVQJc+v2MjqjIFM5sVrXufOPcRD+BRlXk2Wxg= - -Name: content/twitch/inject.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 7NMc9FYcdiJ+XH27GauS1qIRsac= -SHA256-Digest: SHAgW6ZzT6DnrZMj+fBld3X/GcvpeydsH+zP+JgK+jw= - -Name: content/twitch/index.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 0OlsTi3u80Ji/nlfE/jDs/H3BKQ= -SHA256-Digest: 1UDKMJwQ7k23j1hOxDrq5Mbt3uiLKSfmLQ0lHXDPe54= - -Name: content/mogultv/index.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: SM+VJXBfLoE8CIUeV9asO1rzKd0= -SHA256-Digest: tAOufek6iJjCxZ5pmi9oNsTJl9EeiQppgYLc+9yq19s= - diff --git a/META-INF/cose.sig b/META-INF/cose.sig deleted file mode 100644 index 72cb0fc..0000000 Binary files a/META-INF/cose.sig and /dev/null differ diff --git a/META-INF/manifest.mf b/META-INF/manifest.mf deleted file mode 100644 index 5396974..0000000 --- a/META-INF/manifest.mf +++ /dev/null @@ -1,152 +0,0 @@ -Manifest-Version: 1.0 - -Name: manifest.json -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: QyOWplGk05hY8yqOckI5ow3flts= -SHA256-Digest: YsavbsFOHi+AXVSbguQu0Tv60yoFhK9W3mW++ablOII= - -Name: background.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: otZGFtDhcnbfdUJOCjW9i1NYPO0= -SHA256-Digest: mgVRfmNzMoxvuLndSlKK4AkCWDabpbekleOV++9cWtU= - -Name: index-6137f488.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: rNamLTYc/X4gd/dLBlk300AQOW8= -SHA256-Digest: S33prVTiy5xonbBTGTEKPY1v+Lb84anybWbye+zq6wE= - -Name: background.injected-af36b849.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: UF0lgn7oKe72Bjg/lBEwzH4Umis= -SHA256-Digest: NTFIqjrprPiv/JKI7ppnvr3q1Ibt8C/IGbLwkr3nHNk= - -Name: get_stream_details-b6177000.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: yCTRLEgpVeUuVBx6nRlIZGc/FkA= -SHA256-Digest: QzA+2ffC9lOLR9vXjdJYGXg12fQY0Fo5ga6Na4muGqU= - -Name: parse_token.util-ed270559.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: IBgALOyVpV5c2qndWHw3xIwYD8o= -SHA256-Digest: EVxzphZ3DjnCxgg69Bb+Cb6qU+IQuSD6dp93AIhNWZg= - -Name: fetch_youtube-71c76849.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 42eBw2OqRR68eu8r/SPuKyFKaOQ= -SHA256-Digest: MRh597WCWZkT9t03IVvwdcOZZmjMuu7K4soQU/T2a/0= - -Name: router.interface-6cdbc015.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: W9ch3UrWE93U87O7CGQLo4Zn1O8= -SHA256-Digest: icJArSO2T+nG5wNcv9j54PPcb7/4hrTvQgkyxvoww74= - -Name: style-inject.es-a0e1a0ba.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: syuFaCktG1wUUxfCChPrKvOC3Po= -SHA256-Digest: KVO81P8lHSZ+7NgTK9REh7A7CNjl/cZWUzBQSWLW8GQ= - -Name: storage-a8ac7bd3.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 1fGdHT6DYLkzUYCSGdpONdCNjhA= -SHA256-Digest: wJ4DkoJ6fjrH7bUjQj26JLD8N87etKl9t8IFYffGfRg= - -Name: connectRuntime-a699491c.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: LVD3EDxHZoyuVOD0Gx7nbbwyjmQ= -SHA256-Digest: AXPMWmaye4YgwkyD83k9SFZRtlk+iG8hfXSlk1pBJ5U= - -Name: background.content-5f02aba1.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: pr0Fwt3L3YF+gW2/f1rMEthMD3c= -SHA256-Digest: QWplWRax1J1pkq64mM1eTeDg5Djv/CtiLJoIYlrZSI0= - -Name: inject_script.util-c1ec59e3.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: A1nesjjyxjUtFgzMB/LrqVTxYvA= -SHA256-Digest: v9JV86okMb2y8UCyST10ZJmZi28egw6Fpua+HOdpAKU= - -Name: when_ready.util-91474a6b.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: vGtvPLCiUbrZ0wSC14aVb5FkecQ= -SHA256-Digest: 9Cb+zjS00dSy+O5ABVzMB+qM/OAaHOzrkBfRtVGfw2o= - -Name: popup/index.html -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: N1UM8u9cukLAr+I9D9YzWiqL4bM= -SHA256-Digest: 9CNJMH1v+j2WlTe+sIo78TZ6LuVLab2QIwGtrMhSFLw= - -Name: popup/index.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: X/+QqwkoQ/2LSAmw6IojRy+ZFEA= -SHA256-Digest: ELssVW8zEux25qpRliKg44b0YVg8g8MKJ+rSvVpZnQM= - -Name: assets/icon16.png -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 5fHxvDGOaVFjrooikbv1hD0zJ1o= -SHA256-Digest: fUCcukwVtnuEm0RLro1kBByeqg7y9ZtacV/EJOGab2w= - -Name: assets/icon48.png -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: zKUR+hdJsV76zopW+ANvI6Ib91E= -SHA256-Digest: 3RNu1SPtiNbK9DlSeRuro+r8vQ3e1vsKAFMQs0x52N0= - -Name: assets/icon128.png -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: tsWw4BHONlffMdl0Sm7UzLWYW/k= -SHA256-Digest: DQq7VbY0l32ewC/MJKwsPdqYPkgFkr4GywJe2TdkV9M= - -Name: assets/background-c101863b.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: KHjGawagtvVDH7ef9CJ2qRQNcDI= -SHA256-Digest: QvnXfM33XTrJj0j8jRLvo3EvZPO0dFsitpnYG4kbTyM= - -Name: assets/index-8c52b575.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: Un7dBvBb46qfc84r8NKcsv7452c= -SHA256-Digest: 4f5WbJ3/wfSqwD74LR9j34sJAkJ0MwSzpDYnDcpzG60= - -Name: assets/index-b14d09b0.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: JsUIKULUiNrjUOqMBtDTLpU9Re4= -SHA256-Digest: 5TgWk/SxFjsHUhykKvheafN02qvQDgwKTIZ9+1R2UrY= - -Name: assets/index-26a612d9.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: rUTqX3fuW2B6+zOTl6zBwkPo41s= -SHA256-Digest: SWQ0c104tRKLaUEOp9jtdl1bKuDYXQQNNXxQjdw6wJ4= - -Name: content/youtube/inject.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: Ov5ue5JIapXyBOzbveEVoBNFPXk= -SHA256-Digest: FOL1i7Z8U1fU66AAbV3F2sSWGlMgSWfSNUAQdP8CgnM= - -Name: content/youtube/index.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: FzEoDMTpvO6RgnXhR7dbrHb9EuU= -SHA256-Digest: uDoKZjRVQJc+v2MjqjIFM5sVrXufOPcRD+BRlXk2Wxg= - -Name: content/twitch/inject.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 7NMc9FYcdiJ+XH27GauS1qIRsac= -SHA256-Digest: SHAgW6ZzT6DnrZMj+fBld3X/GcvpeydsH+zP+JgK+jw= - -Name: content/twitch/index.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: 0OlsTi3u80Ji/nlfE/jDs/H3BKQ= -SHA256-Digest: 1UDKMJwQ7k23j1hOxDrq5Mbt3uiLKSfmLQ0lHXDPe54= - -Name: content/mogultv/index.js -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: SM+VJXBfLoE8CIUeV9asO1rzKd0= -SHA256-Digest: tAOufek6iJjCxZ5pmi9oNsTJl9EeiQppgYLc+9yq19s= - -Name: META-INF/cose.manifest -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: JbBDgY4Auec9tEuvS6VrbtqtU88= -SHA256-Digest: TnnqxR++CyBRAEwdlIwvhgX7w7TJqfoi16AKWXm6nFM= - -Name: META-INF/cose.sig -Digest-Algorithms: SHA1 SHA256 -SHA1-Digest: aq3V7SWNxTjUOvac4nR0ASzSuCo= -SHA256-Digest: NjaNWpbF0miRPZBdCYp2gIlbe0x6ekUrgeZX3GGkUK4= - diff --git a/META-INF/mozilla.rsa b/META-INF/mozilla.rsa deleted file mode 100644 index 9bb1866..0000000 Binary files a/META-INF/mozilla.rsa and /dev/null differ diff --git a/META-INF/mozilla.sf b/META-INF/mozilla.sf deleted file mode 100644 index d58c0ef..0000000 --- a/META-INF/mozilla.sf +++ /dev/null @@ -1,4 +0,0 @@ -Signature-Version: 1.0 -SHA1-Digest-Manifest: JvgRKeFOOFxt5PuYl6SWkpcmiRw= -SHA256-Digest-Manifest: RxJHimH6MUnrcxmytp7w/FtE2hPteHedAiMOwT1Gzow= - diff --git a/background.content-5d20fc40.js b/background.content-5d20fc40.js new file mode 100644 index 0000000..279209b --- /dev/null +++ b/background.content-5d20fc40.js @@ -0,0 +1,7 @@ +import { t } from './index-2879cf47.js'; +import { s, m } from './storage-6f9cf62e.js'; +import { n } from './connectRuntime-a983a955.js'; + +class o extends t{constructor(){super(),this.fetch=async(t,e)=>{const s=Math.random().toString();return this.port.postMessage({nonce:s,path:t,body:e}),new Promise((t=>{const e=a=>{a.meta.nonce===s&&(this.port.onMessage.removeListener(e),t(a));};this.port.onMessage.addListener(e);}))},this.extensionId=s.runtime.id,this.port=this.connectToBackground(),this.port.onMessage.addListener(this.onMessage),window.addEventListener("message",(async t=>{var e,a,o;if(t.source!==window||(null===(e=t.data)||void 0===e?void 0:e.id)!==this.extensionId||"response"===(null===(a=t.data)||void 0===a?void 0:a.type))return;let n;switch(null===(o=t.data)||void 0===o?void 0:o.type){case"fetch":n=await this.fetch(t.data.data[0],t.data.data[1]);break;case"storage.get":{const[e,a]=t.data.data.split(".");n=await m[e].get(a);break}case"storage.set":{const[e,a]=t.data.data[0].split(".");n=await m[e].set(a,t.data.data[1]);break}}window.postMessage({id:this.extensionId,nonce:t.data.nonce,type:"response",data:n});}));}connectToBackground(){return n()}async onMessage(t){window.postMessage(t);}} + +export { o }; diff --git a/background.content-5f02aba1.js b/background.content-5f02aba1.js deleted file mode 100644 index f45d118..0000000 --- a/background.content-5f02aba1.js +++ /dev/null @@ -1,63 +0,0 @@ -import { - t -} from './index-6137f488.js'; -import { - s, - m -} from './storage-a8ac7bd3.js'; -import { - n -} from './connectRuntime-a699491c.js'; - -class o extends t { - constructor() { - super(), this.fetch = async (t, e) => { - const s = Math.random().toString(); - return this.port.postMessage({ - nonce: s, - path: t, - body: e - }), new Promise((t => { - const e = a => { - a.meta.nonce === s && (this.port.onMessage.removeListener(e), t(a)); - }; - this.port.onMessage.addListener(e); - })) - }, this.extensionId = s.runtime.id, this.port = this.connectToBackground(), this.port.onMessage.addListener(this.onMessage), window.addEventListener("message", (async t => { - var e, a, o; - if (t.source !== window || (null === (e = t.data) || void 0 === e ? void 0 : e.id) !== this.extensionId || "response" === (null === (a = t.data) || void 0 === a ? void 0 : a.type)) return; - let n; - switch (null === (o = t.data) || void 0 === o ? void 0 : o.type) { - case "fetch": - n = await this.fetch(t.data.data[0], t.data.data[1]); - break; - case "storage.get": { - const [e, a] = t.data.data.split("."); - n = await m[e].get(a); - break - } - case "storage.set": { - const [e, a] = t.data.data[0].split("."); - n = await m[e].set(a, t.data.data[1]); - break - } - } - window.postMessage({ - id: this.extensionId, - nonce: t.data.nonce, - type: "response", - data: n - }); - })); - } - connectToBackground() { - return n() - } - async onMessage(t) { - window.postMessage(t); - } -} - -export { - o -}; \ No newline at end of file diff --git a/background.injected-af36b849.js b/background.injected-4f2074c6.js similarity index 68% rename from background.injected-af36b849.js rename to background.injected-4f2074c6.js index 8bba3fc..dc95dae 100644 --- a/background.injected-af36b849.js +++ b/background.injected-4f2074c6.js @@ -1,12 +1,12 @@ import { t -} from './index-6137f488.js'; +} from './index-2879cf47.js'; class e extends t { constructor() { super(), this.fetch = async (t, e) => this.sendToContentScript("fetch", [t, e]), this.extensionId = function() { var t; - const e = null === (t = document.getElementById("jjdtNVhjLLNiwvfY")) || void 0 === t ? void 0 : t.getAttribute("jjdtNVhjLLNiwvfY"); + const e = null === (t = document.getElementById("pKEWqxalXsGqbmDU")) || void 0 === t ? void 0 : t.getAttribute("pKEWqxalXsGqbmDU"); if (!e) throw new Error("Could not resolve extension ID from injected script"); return e }(), window.addEventListener("message", (t => { @@ -22,10 +22,10 @@ class e extends t { const n = { value: e(await this.getStorage(t)) }, - o = window.setInterval((async () => { + s = window.setInterval((async () => { n.value = e(await this.getStorage(t)); }), 1e3); - return n.interval = o, n + return n.interval = s, n } async setStorage(t, e) { return this.sendToContentScript("storage.set", [t, e]) @@ -38,9 +38,9 @@ class e extends t { type: t, data: e }), new Promise((t => { - const e = o => { - var s, a, i; - o.source === window && (null === (s = o.data) || void 0 === s ? void 0 : s.id) === this.extensionId && (null === (a = o.data) || void 0 === a ? void 0 : a.nonce) === n && "response" === (null === (i = o.data) || void 0 === i ? void 0 : i.type) && (t(o.data.data), window.removeEventListener("message", e)); + const e = s => { + var o, a, i; + s.source === window && (null === (o = s.data) || void 0 === o ? void 0 : o.id) === this.extensionId && (null === (a = s.data) || void 0 === a ? void 0 : a.nonce) === n && "response" === (null === (i = s.data) || void 0 === i ? void 0 : i.type) && (t(s.data.data), window.removeEventListener("message", e)); }; window.addEventListener("message", e); })) diff --git a/background.js b/background.js index 4d9f65f..468b91b 100644 --- a/background.js +++ b/background.js @@ -1,246 +1,419 @@ import { - d as dt -} from './parse_token.util-ed270559.js'; + d as dt, + t +} from './parse_token.util-73818eef.js'; import { - e -} from './fetch_youtube-71c76849.js'; + n, + e, + c +} from './constants-27e12ede.js'; import { - n + n as n$1 } from './router.interface-6cdbc015.js'; import { s, - m -} from './storage-a8ac7bd3.js'; + m as m$1 +} from './storage-6f9cf62e.js'; -class o extends Error { +class i extends Error { constructor(t, e) { super(e), this.code = t, this.message = e; } } -const r = (t, e = {}, a) => ({ +const l = (t, e = {}, n) => ({ body: e, meta: { isSuccess: !1, code: t, - nonce: a + nonce: n } }); -let i; -const c = t => s.cookies.getAll({ +let u; +const d = t => s.cookies.getAll({ url: t }).then((t => t.filter((t => !t.name.startsWith("ST-"))).map((t => [t.name, t.value])))).then(Object.fromEntries), - u = { + p = { "@me": async () => { - const t = await m.auth.get("token"); + const t = await m$1.auth.get("token2"); return dt(t) }, + token: async () => m$1.auth.get("token2"), logout: async () => { - const t = await m.auth.get("token"); - await fetch("https://v2.mogultv.org/auth/youtube", { + const t = await m$1.auth.get("token2"); + await fetch("https://truffle-tv-source-test.truffle-tv.workers.dev/auth/youtube", { method: "DELETE", headers: { Authorization: `Bearer ${t}` } - }), await m.auth.remove("token"); + }), await m$1.auth.remove("token2"); }, login: async t => { - const a = await c(t.href), - s = await fetch("https://v2.mogultv.org/auth/youtube", { + const n = await d(t.href), + o = await fetch("https://truffle-tv-source-test.truffle-tv.workers.dev/auth/youtube", { method: "POST", body: JSON.stringify(Object.assign(Object.assign({}, t), { - cookies: a + cookies: n })) }); - if (200 !== s.status) return null; + if (200 !== o.status) return null; const { - jwt: n - } = await s.json(); - return await m.auth.set("token", n), n + jwt: r + } = await o.json(); + return await m$1.auth.set("token2", r), r }, link: async t => { - const a = await m.auth.get("token"), - n = await fetch(`https://v2.mogultv.org/link/${t}`, { + const n = await m$1.auth.get("token2"), + r = await fetch(`https://truffle-tv-source-test.truffle-tv.workers.dev/link/${t}`, { method: "GET", headers: { - Authorization: `Bearer ${a}` + Authorization: `Bearer ${n}` } }); - if (200 !== n.status) return; - const o = await n.text(); + if (200 !== r.status) return; + const s = await r.text(); await chrome.cookies.set({ - url: "https://v2.mogultv.org", + url: "https://truffle-tv-source-test.truffle-tv.workers.dev", name: "Authorization", - value: a, + value: n, httpOnly: !0, path: `/link/${t}/callback`, expirationDate: Math.floor(Date.now() / 1e3) + 3600 }), await chrome.windows.create({ - url: o, + url: s, focused: !0, type: "popup", width: 850, height: 800 }); - const r = await new Promise((t => { - i = t; + const a = await new Promise((t => { + u = t; })); - return m.auth.set("token", r), dt(r) + return m$1.auth.set("token2", a), dt(a) }, "finish-link": async (t, e) => { - var s$1, n; - (null === (s$1 = e.sender.tab) || void 0 === s$1 ? void 0 : s$1.id) && s.tabs.remove(null === (n = e.sender.tab) || void 0 === n ? void 0 : n.id), null == i || i(t); + var o, r; + (null === (o = e.sender.tab) || void 0 === o ? void 0 : o.id) && s.tabs.remove(null === (r = e.sender.tab) || void 0 === r ? void 0 : r.id), null == u || u(t); }, "disconnect-link": async t => { - const a = await m.auth.get("token"), - n = await fetch(`https://v2.mogultv.org/link/${t}`, { + const n = await m$1.auth.get("token2"), + r = await fetch(`https://truffle-tv-source-test.truffle-tv.workers.dev/link/${t}`, { method: "DELETE", headers: { - Authorization: `Bearer ${a}` + Authorization: `Bearer ${n}` } }); - if (200 !== n.status) return; + if (200 !== r.status) return; const { - jwt: o - } = await n.json(); - return await m.auth.set("token", o), dt(o) + jwt: s + } = await r.json(); + return await m$1.auth.set("token2", s), dt(s) } }; -const l = t => async () => { - var a, s; - const n = await m.cache.get(t); - let o; - if (n && n.expiresAt > Date.now()) o = n.value; - else { - const n = await fetch("https://v2.mogultv.org" + t), - r = Number(n.headers.get("age")), - i = Number((null === (s = null === (a = n.headers.get("cache-control")) || void 0 === a ? void 0 : a.match(/max-age=(\d+)/)) || void 0 === s ? void 0 : s[1]) || 300) - r, - c = Date.now() + 1e3 * i; - o = await n.json(), await m.cache.set(t, { - expiresAt: c, - value: o - }); - } - return o -}, h = { - youtube: { +const h = { "get-stream": async () => { - const t = await m.cache.get("get-stream"); - let a; - if (t && t.expiresAt > Date.now()) a = t.value; + const t = await m$1.cache.get("get-stream"); + let n; + if (t && t.expiresAt > Date.now()) n = t.value; else { const t = Date.now() + 6e4; - a = await async function() { + n = await async function() { try { const t = await fetch("https://youtube.com/channel/UCrPseYLGpNygVi34QpGNqpA/live"); if (200 !== t.status) return null; const e = await t.text(), - a = /(?:window\s*\[\s*["']ytInitialData["']\s*\]|ytInitialData)\s*=\s*({.+?})\s*;/.exec(e); - if (a) { - const t = JSON.parse(a[1]), + n = /(?:window\s*\[\s*["']ytInitialData["']\s*\]|ytInitialData)\s*=\s*({.+?})\s*;/.exec(e); + if (n) { + const t = JSON.parse(n[1]), e = t.currentVideoEndpoint.watchEndpoint.videoId, - s = t.contents.twoColumnWatchNextResults.results.results.contents[0].videoPrimaryInfoRenderer, - n = t.contents.twoColumnWatchNextResults.results.results.contents[1].videoSecondaryInfoRenderer.owner.videoOwnerRenderer.thumbnail.thumbnails[0].url, - o = s.viewCount.videoViewCountRenderer.viewCount.runs.find((t => /^[0-9,]+$/.test(t.text))).text; + o = t.contents.twoColumnWatchNextResults.results.results.contents[0].videoPrimaryInfoRenderer, + r = t.contents.twoColumnWatchNextResults.results.results.contents[1].videoSecondaryInfoRenderer.owner.videoOwnerRenderer.thumbnail.thumbnails[0].url, + s = o.viewCount.videoViewCountRenderer.viewCount.runs.find((t => /^[0-9,]+$/.test(t.text))).text; return { - title: s.title.runs[0].text, - viewersCount: parseInt(o.replace(/,/g, "")), + title: o.title.runs[0].text, + viewersCount: parseInt(s.replace(/,/g, "")), previewImageURL: `https://i.ytimg.com/vi/${e}/mqdefault.jpg`, - profileImageURL: n + profileImageURL: r } } } catch (t) { console.warn(t); } return null - }(), await m.cache.set("get-stream", { + }(), await m$1.cache.set("get-stream", { expiresAt: t, - value: a + value: n }); } - return a + return n }, "get-user": async t => { - const e$1 = await c(t.href), - a = await e(Object.assign(Object.assign({}, t), { + const e$1 = await d(t.href), + n = await e(Object.assign(Object.assign({}, t), { cookies: e$1 })); - if (!a.success) throw new o(a.code, a.message); - return a.data + if (!n.success) throw new i(n.code, n.message); + return n.data } }, - gateway: { - users: l("/gateway/users"), - emotes: l("/gateway/emotes"), - badges: l("/gateway/badges"), + g = async (t, { + cacheExpirationMs: n = c.ONE_SECOND_MS, + cacheControlFallback: o = c.FIVE_MINUTE_SECONDS + } = {}) => { + var r, s; + const a = await m$1.cache.get(t); + let i; + if (a && a.expiresAt > Date.now()) i = a.value; + else { + const a = await fetch("https://truffle-tv-source-test.truffle-tv.workers.dev" + t), + c = Number(a.headers.get("age")), + l = Number((null === (s = null === (r = a.headers.get("cache-control")) || void 0 === r ? void 0 : r.match(/max-age=(\d+)/)) || void 0 === s ? void 0 : s[1]) || o) - c, + u = Date.now() + l * n; + i = await a.json(), await m$1.cache.set(t, { + expiresAt: u, + value: i + }); + } + return i + }, f = (t, { + cacheExpirationMs: e = c.ONE_SECOND_MS, + cacheControlFallback: n = c.FIVE_MINUTE_SECONDS + } = {}) => async () => g(t, { + cacheControlFallback: n, + cacheExpirationMs: e + }), w = { + users: t => (console.log("fetching channelId"), g(`/gateway/users/c/${t}`)), + emotes: f("/gateway/emotes"), + badges: f("/gateway/badges"), "set-settings": async t => { - const a = await m.auth.get("token"), - n = await fetch("https://v2.mogultv.org/gateway/settings", { + console.log("updating settings", t); + const n = await m$1.auth.get("token2"), + r = await fetch("https://truffle-tv-source-test.truffle-tv.workers.dev/gateway/settings", { method: "PUT", headers: { - Authorization: `Bearer ${a}` + Authorization: `Bearer ${n}` }, body: JSON.stringify(t) }), { - jwt: o - } = await n.json(); - return m.auth.set("token", o), dt(o) + jwt: s + } = await r.json(); + return m$1.auth.set("token2", s), dt(s) + } + }; +async function v(t, n, { + expireSeconds: o = c.ONE_MINUTE_SECONDS +} = {}) { + const r = await m$1.cache.get(t); + let s; + const a = (null == r ? void 0 : r.expiresAt) > Date.now(); + if ((null == r ? void 0 : r.value) && a) s = r.value; + else { + s = await n(); + const r = Date.now() + o * c.ONE_SECOND_MS; + await m$1.cache.set(t, { + expiresAt: r, + value: s + }); + } + return s +} + +function y(t$1, e) { + const n = function(t$1) { + if (null == t$1 ? void 0 : t$1.nodes) return t$1.nodes.map((t$1 => { + if (t$1) return function(t$1) { + return { + id: t$1.collectible.id, + name: t$1.collectible.slug, + ext: t$1.collectible.fileRel.fileObj.ext, + provider: t.Spore + } + }(t$1) + })).filter(m); + return [] + }(null == e ? void 0 : e.ownedCollectibleConnection), + o = (s = null == e ? void 0 : e.ownedCollectibleConnection, null === (a = null == s ? void 0 : s.nodes) || void 0 === a ? void 0 : a.map((t => { + var e; + return null === (e = null == t ? void 0 : t.collectible) || void 0 === e ? void 0 : e.slug + }))); + var s, a; + const c = function(t) { + var e; + return null === (e = null == t ? void 0 : t.nodes) || void 0 === e ? void 0 : e.map((t => { + var e; + return null === (e = null == t ? void 0 : t.powerup) || void 0 === e ? void 0 : e.slug + })) + }(null == e ? void 0 : e.activePowerupConnection); + return { + id: t$1, + emotes: o, + badges: c, + serializedEmotes: n + } +} +const m = t => !!t; +async function b(t, e, n, { + throwIfErrors: o +} = {}) { + var r; + const s = await fetch(t, { + method: "POST", + headers: { + Authorization: "Bearer pk_1K4r062GimOrw71jtDpzSAhii0lExREdcMZ2Fp5Y2uBjiZ1gS", + "Content-Type": "application/json" + }, + body: JSON.stringify({ + query: e, + variables: n + }) + }), + a = await s.json(); + if (o && (null === (r = a.data) || void 0 === r ? void 0 : r.errors)) throw new Error(`spore graphql error ${a.data.errors}`); + return a.data +} +const S = { + youtube: h, + gateway: w, + auth: p, + extension: { + popup: () => s.action.openPopup(), + "open-tab": async t => { + await s.tabs.create({ + url: t + }); + } + }, + spore: { + "fetch-extension-mappings": async ({ + channelId: t, + extensionVersion: e + }) => (console.log("fetching ext. mappigns", { + channelId: t, + extensionVersion: e + }), await async function(t, e, n) { + const o = { + sourceType: t, + sourceId: e, + extensionVersion: n + }; + try { + const t = await b("https://zygote.spore.build/graphql", "query GetExtensionMappingConnection($sourceType: String, $sourceId: String, $extensionVersion: String) {\n\textensionMappingConnection(sourceType: $sourceType, sourceId: $sourceId, extensionVersion: $extensionVersion) {\n\t\tnodes {\n\t\t\tid\n\t\t\tslug\n\t\t\tiframeUrl\n\t\t\tdomAction\n\t\t\tquerySelector\n\t\t\tiframeQuerySelector\n\t\t}\n\t}\n}", o); + return console.log("res", t), t.extensionMappingConnection.nodes + } catch (t) { + console.error(t); + } + }("youtube", t, e)), + "fetch-spore-user": async ({ + connectionSourceId: t, + sporeOrgId: e, + preferCache: n = !0 + } = {}) => { + const o = async () => { + const n = await async function(t, e) { + const n = { + orgId: e, + connectionSourceType: "youtube", + connectionSourceId: t, + collectibleType: "emote" + }; + try { + return (await b("https://zygote.spore.build/graphql", "query CacheableOrgUserWithCollectiblesAndActivePowerups(\n $orgId: ID\n $connectionSourceType: String,\n $connectionSourceId: String,\n $collectibleType: String\n ) {\n orgUser(\n orgId: $orgId\n connectionSourceType: $connectionSourceType,\n connectionSourceId: $connectionSourceId\n\t\t\t) \n\t\t{\n\t\t\tid\n\t\t\tuserId\n\t\t\torgId\n\t\t\townedCollectibleConnection(collectibleType: $collectibleType) {\n\t\t\t\tnodes {\n\t\t\t\t\tuserId\n\t\t\t\t\tcollectible {\n\t\t\t\t\t\tid\n\t\t\t\t\t\tname\n\t\t\t\t\t\tslug\n\t\t\t\t\t\tfileRel {\n\t\t\t\t\t\t\tfileObj {\n\t\t\t\t\t\t\t\tsrc\n\t\t\t\t\t\t\t\text\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tactivePowerupConnection {\n\t\t\t\ttotalCount\n\t\t\t\tnodes {\n\t\t\t\t\tid\n\t\t\t\t\tuserId\n\t\t\t\t\tpowerup {\n\t\t\t\t\t\tid\n\t\t\t\t\t\tslug\n\t\t\t\t\t\tcomponentRels {\n\t\t\t\t\t\t\tprops\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n }\n\t}", n)).orgUser + } catch (t) { + console.error(t); + } + }(t, e); + return y(t, n) + }; + if (n) { + const t = ((t, e) => `${t}:${e}`)(e, e); + return v(t, o, { + expireSeconds: 15 + }) + } + return o() + }, + "fetch-youtube-channel": async t => { + const e = (t => `spore-org-yt-channel:${t}`)(t); + return v(e, (() => async function(t) { + const e = { + id: t + }; + try { + return (await b("https://zygote.spore.build/graphql", "query YoutubeChannelById($id: String) {\n\tyoutubeChannel(id: $id) {\n\t\tid\n\t\tsporeOrgId\n\t\tchannelName\n\t\tisLive\t\n\t}\n}", e)).youtubeChannel + } catch (t) { + console.error(t); + } + }(t)), { + expireSeconds: 60 + }) + } } }, - auth: u, - extension: { - popup: () => s.action.openPopup(), - "open-tab": async t => { - await s.tabs.create({ - url: t - }); + x = async (e, n$2) => { + var o; + const { + path: r, + body: a + } = e; + if (!r) return; + e.meta ? e.meta.sender = n$2 : e.meta = { + sender: n$2, + isPort: !1 + }, e.meta.isPort || (e.meta.isPort = !1); + const c = (t => { + const e = Date.now(); + return console.groupEnd(), console.groupCollapsed(`${t.meta.isPort?"P":""}-> %c${t.path}`, `color: ${n(t.path)}`), void 0 !== t.body && console.log("%cBody:", "color: hsl(0deg, 100%, 70%); font-weight: bold;", t.body), console.log("%cMeta:", "color: hsl(30deg, 100%, 70%); font-weight: bold;", t.meta), console.groupEnd(), n$1 => { + console.groupEnd(), console.groupCollapsed(`${t.meta.isPort?"P":""}<- %c${n$1.meta.code}%c ${t.path} %c${Date.now()-e}ms`, `background: ${n$1.meta.isSuccess?"#2ecc71":"#e74c3c"}; color: black; padding: 2px; border-radius: 2px;`, `color: ${n(t.path)}`, "color: white; font-weight: normal"), console.log("%cBody:", "color: hsl(0deg, 100%, 70%); font-weight: bold;", n$1.body), console.groupEnd(); + } + })(e), + i = r.split("/").filter(Boolean), + u = i[0]; + if (!(u in S)) { + const n = l(n$1.NotFound, void 0, e.nonce); + return c(n), n } - } -}, d = async (e, a) => { - var s; - const { - path: n$1, - body: o - } = e; - if (!n$1) return; - e.meta ? e.meta.sender = a : e.meta = { - sender: a, - isPort: !1 - }, e.meta.isPort || (e.meta.isPort = !1); - const i = t => {}, - c = n$1.split("/").filter(Boolean), - u = c[0]; - if (!(u in h)) { - return r(n.NotFound, void 0, e.nonce) - } - const l = h[u][c.slice(1).join("/")]; - if (!l) { - return r(n.NotFound, void 0, e.nonce) - } - try { - const a = ((e, a) => ({ - body: e, - meta: { - isSuccess: !0, - code: n.Success, - nonce: a - } - }))(await l(o, e.meta), e.nonce); - return i(a), a - } catch (a) { - const n$1 = a; - return r(null !== (s = n$1.code) && void 0 !== s ? s : n.Unknown, { - message: n$1.message - }, e.nonce) - } -}; + const d = S[u][i.slice(1).join("/")]; + if (!d) { + const n = l(n$1.NotFound, void 0, e.nonce); + return c(n), n + } + try { + const n = ((e, n) => ({ + body: e, + meta: { + isSuccess: !0, + code: n$1.Success, + nonce: n + } + }))(await d(a, e.meta), e.nonce); + return c(n), n + } catch (n) { + const r = n; + console.error("error in background", r); + const s = l(null !== (o = r.code) && void 0 !== o ? o : n$1.Unknown, { + message: r.message + }, e.nonce); + return c(s), s + } + }; s.runtime.onConnect.addListener((t => { - const e = t.sender; - e && t.onMessage.addListener((async a => { - a.meta = { + var e; + const o = t.sender; + o && (console.log(`%cCONNECT:%c ${null===(e=t.sender)||void 0===e?void 0:e.url}`, "color: black; font-weight: bold; background: #2ecc71; padding: 2px; border-radius: 2px;", ""), t.onDisconnect.addListener((() => { + var e; + console.log(`%cDISCONNECT:%c ${null===(e=t.sender)||void 0===e?void 0:e.url}`, "color: black; font-weight: bold; background: #e74c3c; padding: 2px; border-radius: 2px;", ""); + })), t.onMessage.addListener((async e => { + e.meta = { isPort: !0 }; - const s = await d(a, e); - t.postMessage(s); - })); -})), s.runtime.onMessage.addListener(d); \ No newline at end of file + const n = await x(e, o); + t.postMessage(n); + })), s.tabs.onUpdated.addListener(((e, n, o) => { + t.postMessage({ + type: "tab:updated", + tabId: e, + changeInfo: n, + tab: o + }); + }))); +})), s.runtime.onMessage.addListener(x); \ No newline at end of file diff --git a/connectRuntime-a699491c.js b/connectRuntime-a983a955.js similarity index 95% rename from connectRuntime-a699491c.js rename to connectRuntime-a983a955.js index f2bd1d6..7ab55db 100644 --- a/connectRuntime-a699491c.js +++ b/connectRuntime-a983a955.js @@ -1,6 +1,6 @@ import { s -} from './storage-a8ac7bd3.js'; +} from './storage-6f9cf62e.js'; const n = n => { let s$1; diff --git a/fetch_youtube-71c76849.js b/constants-27e12ede.js similarity index 51% rename from fetch_youtube-71c76849.js rename to constants-27e12ede.js index e6ec1f2..b09fd81 100644 --- a/fetch_youtube-71c76849.js +++ b/constants-27e12ede.js @@ -1,19 +1,19 @@ async function e(e) { const t = await async function(e, t) { - const o = t.cookies.SAPISID || t.cookies["__Secure-3PAPISID"]; - if (!o) return { + const n = t.cookies.SAPISID || t.cookies["__Secure-3PAPISID"]; + if (!n) return { success: !1, code: 400, message: "Missing cookie" }; - const n = new URL(t.href).origin, - c = Math.floor(Date.now() / 1e3), - a = await async function(e) { + const o = new URL(t.href).origin, + a = Math.floor(Date.now() / 1e3), + c = await async function(e) { const t = await crypto.subtle.digest("SHA-1", (new TextEncoder).encode(e)); return Array.from(new Uint8Array(t)).map((e => e.toString(16).padStart(2, "0"))).join("") - }(`${c} ${o} ${n}`), s = { - "x-origin": n, - authorization: `SAPISIDHASH ${c}_${a}`, + }(`${a} ${n} ${o}`), s = { + "x-origin": o, + authorization: `SAPISIDHASH ${a}_${c}`, "x-goog-authuser": t.authUser, cookie: Object.entries(t.cookies).map((([e, t]) => `${e}=${t}`)).join(";") }; @@ -31,15 +31,17 @@ async function e(e) { } }("/youtubei/v1/account/account_menu", e); if (!t.success) return t; - const o = t.data; + const n = t.data; try { - const e = o.actions[0].openPopupAction.popup.multiPageMenuRenderer, + const e = n.actions[0].openPopupAction.popup.multiPageMenuRenderer, t = e.header.activeAccountHeaderRenderer, - n = e.sections[0].multiPageMenuSectionRenderer.items[0].compactLinkRenderer.navigationEndpoint.browseEndpoint.browseId.trim().replace(/\n/g, ""); - return /^UC.{22}$/.test(n) ? { + o = e.sections[0].multiPageMenuSectionRenderer.items[0].compactLinkRenderer.navigationEndpoint.browseEndpoint.browseId.trim().replace(/\n/g, ""), + a = n.responseContext.mainAppWebResponseContext.datasyncId.split("||")[0]; + return /^UC.{22}$/.test(o) ? { success: !0, data: { - id: n, + id: o, + googleUserId: a, profile: t.accountPhoto.thumbnails[0].url, username: t.accountName.simpleText } @@ -57,6 +59,36 @@ async function e(e) { } } +function t(e) { + let t = 0; + if (0 === e.length) return 0; + for (let n = 0; n < e.length; n++) { + t = (t << 5) - t + e.charCodeAt(n), t |= 0; + } + return t +} + +function n(e) { + return `hsl(${(t(e)%60+60)%60*6}deg, 100%, 70%)` +} +const o = ["#ff0000", "#009000", "#b22222", "#ff7f50", "#9acd32", "#ff4500", "#2e8b57", "#daa520", "#d2691e", "#5f9ea0", "#1e90ff", "#ff69b4", "#00ff7f", "#a244f9"]; + +function a(e) { + const n = t(e); + return o[(n % o.length + o.length) % o.length] +} +const c = { + ONE_SECOND_MS: 1e3, + ONE_MINUTE_SECONDS: 60, + ONE_MINUTE_MS: 6e4, + FIVE_MINUTE_MS: 3e4, + FIVE_MINUTE_SECONDS: 300, + DEFAULT_EXTENSION_MAPPING_IFRAME_STYLES: "\n\t\twidth: 0;\n\t\theight: 0;\n\t" +}; + export { - e + a, + c, + e, + n }; \ No newline at end of file diff --git a/content/mogultv/index.js b/content/mogultv/index.js index 511cdc9..531c97d 100644 --- a/content/mogultv/index.js +++ b/content/mogultv/index.js @@ -1,9 +1,9 @@ -import '../../index-6137f488.js'; -import '../../storage-a8ac7bd3.js'; -import '../../connectRuntime-a699491c.js'; +import '../../index-2879cf47.js'; +import '../../storage-6f9cf62e.js'; +import '../../connectRuntime-a983a955.js'; import { o -} from '../../background.content-5f02aba1.js'; +} from '../../background.content-5d20fc40.js'; import { e } from '../../when_ready.util-91474a6b.js'; diff --git a/content/twitch/index.js b/content/twitch/index.js index 549c788..5d9c7ea 100644 --- a/content/twitch/index.js +++ b/content/twitch/index.js @@ -1,11 +1,200 @@ -import '../../index-6137f488.js'; -import '../../storage-a8ac7bd3.js'; -import '../../connectRuntime-a699491c.js'; -import { - o -} from '../../background.content-5f02aba1.js'; +import '../../index-2879cf47.js'; import { e -} from '../../inject_script.util-c1ec59e3.js'; +} from '../../background.injected-4f2074c6.js'; +import { + s +} from '../../router.interface-6cdbc015.js'; -new o, e("content/twitch/inject.js"); \ No newline at end of file +!async function(e) { + async function a(e) { + if (Array.isArray(e)) + for (const t of e) await n(t); + return e + } + async function n(a) { + var n, i, r; + try { + switch (a.extensions.operationName) { + case "FollowingLive_CurrentUser": { + const n = a.data, + i = await e.fetch("/youtube/get-stream"); + s(i) && i.body && (n.currentUser.followedLiveUsers.edges.push(function({ + title: e, + viewersCount: t, + profileImageURL: a, + previewImageURL: n + }) { + return { + __typename: "FollowedLiveUserEdge", + cursor: "LTE=", + node: { + __typename: "User", + id: "40934651", + displayName: "ludwig", + login: "ludwig", + profileImageURL: a, + stream: { + broadcaster: { + id: "40934651", + primaryColorHex: "00FFE2", + __typename: "User", + channel: { + id: "40934651", + self: { + isAuthorized: !0, + __typename: "ChannelSelfEdge" + }, + __typename: "Channel" + } + }, + id: "-1", + previewImageURL: n, + game: { + id: "-1", + name: "YouTube", + displayName: "YouTube", + boxArtURL: "https://i.postimg.cc/NjQvCPh2/image.png", + __typename: "Game" + }, + restriction: null, + tags: [], + title: e, + type: "live", + viewersCount: t, + __typename: "Stream" + } + } + } + }(i.body)), n.currentUser.followedLiveUsers.edges.sort(((e, t) => t.node.stream.viewersCount - e.node.stream.viewersCount))); + break + } + case "PersonalSections": { + const n = a.data.personalSections.find((e => "FOLLOWED_SECTION" === e.type)); + if (n) { + const a = await e.fetch("/youtube/get-stream"); + s(a) && a.body && (n.items.push(function({ + title: e, + viewersCount: t, + profileImageURL: a, + previewImageURL: n + }) { + return { + trackingID: "1bb8ab4b-aed2-4f25-a750-c295d57e6a95", + promotionsCampaignID: "", + user: { + id: "40934651", + login: "ludwig", + displayName: "ludwig", + profileImageURL: a, + primaryColorHex: "00FFE2", + broadcastSettings: { + id: "40934651", + title: e, + __typename: "BroadcastSettings" + }, + channel: { + id: "40934651", + creatorAnniversaries: { + id: "40934651", + isAnniversary: !1, + __typename: "CreatorAnniversaries" + }, + __typename: "Channel" + }, + __typename: "User" + }, + label: "NONE", + content: { + id: "-1", + previewImageURL: n, + broadcaster: { + id: "40934651", + broadcastSettings: { + id: "40934651", + title: e, + __typename: "BroadcastSettings" + }, + __typename: "User" + }, + viewersCount: t, + self: { + canWatch: !0, + isRestricted: !1, + restrictionType: null, + __typename: "StreamSelfConnection" + }, + game: { + id: "-1", + displayName: "YouTube", + name: "YouTube", + __typename: "Game" + }, + type: "live", + __typename: "Stream" + }, + __typename: "PersonalSectionChannel" + } + }(a.body)), n.items.sort(((e, t) => (t.content.viewersCount || 0) - (e.content.viewersCount || 0)))); + } + break + } + case "StreamMetadata": { + const n = a.data; + if ("40934651" === n.user.id) { + const a = await e.fetch("/youtube/get-stream"); + s(a) && a.body && (n.user.lastBroadcast.id = "-1", n.user.lastBroadcast.title = a.body.title, n.user.stream = { + id: "-1", + type: "live", + createdAt: (new Date).toJSON(), + viewersCount: a.body.viewersCount, + game: { + id: "-1", + name: "YouTube", + __typename: "Game" + }, + __typename: "Stream" + }); + } + break + } + default: { + const o = a.data; + if ("40934651" === (null === (n = o.user) || void 0 === n ? void 0 : n.id) && (null === (r = null === (i = o.user) || void 0 === i ? void 0 : i.lastBroadcast) || void 0 === r ? void 0 : r.title)) { + const a = await e.fetch("/youtube/get-stream"); + s(a) && a.body && (o.user.lastBroadcast.title = a.body.title); + } + } + } + } catch (e) {} + } + const i = window.fetch.bind(window); + window.fetch = async function(e, t) { + const n = await i(e, t); + try { + let t; + if (t = "string" == typeof e ? e : e.url, !t.includes("gql.twitch.tv/gql")) return n; + const i = n.text.bind(n), + r = n.json.bind(n); + n.text = async function() { + const e = await i(); + try { + const t = JSON.parse(e); + return await a(t), JSON.stringify(t) + } catch (t) { + return e + } + }, n.json = async function() { + const e = await r(); + try { + return await a(e), e + } catch (t) { + return e + } + }; + } catch (e) { + return n + } + return n + }; +}(new e); \ No newline at end of file diff --git a/content/twitch/inject.js b/content/twitch/inject.js index 73b1d67..1d9ca5a 100644 --- a/content/twitch/inject.js +++ b/content/twitch/inject.js @@ -1,200 +1,5 @@ -import '../../index-6137f488.js'; -import { - e -} from '../../background.injected-af36b849.js'; -import { - s -} from '../../router.interface-6cdbc015.js'; +import '../../index-2879cf47.js'; +import { e } from '../../background.injected-4f2074c6.js'; +import { s } from '../../router.interface-6cdbc015.js'; -!async function(e) { - async function a(e) { - if (Array.isArray(e)) - for (const t of e) await n(t); - return e - } - async function n(a) { - var n, i, r; - try { - switch (a.extensions.operationName) { - case "FollowingLive_CurrentUser": { - const n = a.data, - i = await e.fetch("/youtube/get-stream"); - s(i) && i.body && (n.currentUser.followedLiveUsers.edges.push(function({ - title: e, - viewersCount: t, - profileImageURL: a, - previewImageURL: n - }) { - return { - __typename: "FollowedLiveUserEdge", - cursor: "LTE=", - node: { - __typename: "User", - id: "40934651", - displayName: "ludwig", - login: "ludwig", - profileImageURL: a, - stream: { - broadcaster: { - id: "40934651", - primaryColorHex: "00FFE2", - __typename: "User", - channel: { - id: "40934651", - self: { - isAuthorized: !0, - __typename: "ChannelSelfEdge" - }, - __typename: "Channel" - } - }, - id: "-1", - previewImageURL: n, - game: { - id: "-1", - name: "YouTube", - displayName: "YouTube", - boxArtURL: "https://i.postimg.cc/NjQvCPh2/image.png", - __typename: "Game" - }, - restriction: null, - tags: [], - title: e, - type: "live", - viewersCount: t, - __typename: "Stream" - } - } - } - }(i.body)), n.currentUser.followedLiveUsers.edges.sort(((e, t) => t.node.stream.viewersCount - e.node.stream.viewersCount))); - break - } - case "PersonalSections": { - const n = a.data.personalSections.find((e => "FOLLOWED_SECTION" === e.type)); - if (n) { - const a = await e.fetch("/youtube/get-stream"); - s(a) && a.body && (n.items.push(function({ - title: e, - viewersCount: t, - profileImageURL: a, - previewImageURL: n - }) { - return { - trackingID: "1bb8ab4b-aed2-4f25-a750-c295d57e6a95", - promotionsCampaignID: "", - user: { - id: "40934651", - login: "ludwig", - displayName: "ludwig", - profileImageURL: a, - primaryColorHex: "00FFE2", - broadcastSettings: { - id: "40934651", - title: e, - __typename: "BroadcastSettings" - }, - channel: { - id: "40934651", - creatorAnniversaries: { - id: "40934651", - isAnniversary: !1, - __typename: "CreatorAnniversaries" - }, - __typename: "Channel" - }, - __typename: "User" - }, - label: "NONE", - content: { - id: "-1", - previewImageURL: n, - broadcaster: { - id: "40934651", - broadcastSettings: { - id: "40934651", - title: e, - __typename: "BroadcastSettings" - }, - __typename: "User" - }, - viewersCount: t, - self: { - canWatch: !0, - isRestricted: !1, - restrictionType: null, - __typename: "StreamSelfConnection" - }, - game: { - id: "-1", - displayName: "YouTube", - name: "YouTube", - __typename: "Game" - }, - type: "live", - __typename: "Stream" - }, - __typename: "PersonalSectionChannel" - } - }(a.body)), n.items.sort(((e, t) => (t.content.viewersCount || 0) - (e.content.viewersCount || 0)))); - } - break - } - case "StreamMetadata": { - const n = a.data; - if ("40934651" === n.user.id) { - const a = await e.fetch("/youtube/get-stream"); - s(a) && a.body && (n.user.lastBroadcast.id = "-1", n.user.lastBroadcast.title = a.body.title, n.user.stream = { - id: "-1", - type: "live", - createdAt: (new Date).toJSON(), - viewersCount: a.body.viewersCount, - game: { - id: "-1", - name: "YouTube", - __typename: "Game" - }, - __typename: "Stream" - }); - } - break - } - default: { - const o = a.data; - if ("40934651" === (null === (n = o.user) || void 0 === n ? void 0 : n.id) && (null === (r = null === (i = o.user) || void 0 === i ? void 0 : i.lastBroadcast) || void 0 === r ? void 0 : r.title)) { - const a = await e.fetch("/youtube/get-stream"); - s(a) && a.body && (o.user.lastBroadcast.title = a.body.title); - } - } - } - } catch (e) {} - } - const i = window.fetch.bind(window); - window.fetch = async function(e, t) { - const n = await i(e, t); - try { - let t; - if (t = "string" == typeof e ? e : e.url, !t.includes("gql.twitch.tv/gql")) return n; - const i = n.text.bind(n), - r = n.json.bind(n); - n.text = async function() { - const e = await i(); - try { - const t = JSON.parse(e); - return await a(t), JSON.stringify(t) - } catch (t) { - return e - } - }, n.json = async function() { - const e = await r(); - try { - return await a(e), e - } catch (t) { - return e - } - }; - } catch (e) { - return n - } - return n - }; -}(new e); \ No newline at end of file +!async function(e){async function a(e){if(Array.isArray(e))for(const t of e)await n(t);return e}async function n(a){var n,i,r;try{switch(a.extensions.operationName){case"FollowingLive_CurrentUser":{const n=a.data,i=await e.fetch("/youtube/get-stream");s(i)&&i.body&&(n.currentUser.followedLiveUsers.edges.push(function({title:e,viewersCount:t,profileImageURL:a,previewImageURL:n}){return {__typename:"FollowedLiveUserEdge",cursor:"LTE=",node:{__typename:"User",id:"40934651",displayName:"ludwig",login:"ludwig",profileImageURL:a,stream:{broadcaster:{id:"40934651",primaryColorHex:"00FFE2",__typename:"User",channel:{id:"40934651",self:{isAuthorized:!0,__typename:"ChannelSelfEdge"},__typename:"Channel"}},id:"-1",previewImageURL:n,game:{id:"-1",name:"YouTube",displayName:"YouTube",boxArtURL:"https://i.postimg.cc/NjQvCPh2/image.png",__typename:"Game"},restriction:null,tags:[],title:e,type:"live",viewersCount:t,__typename:"Stream"}}}}(i.body)),n.currentUser.followedLiveUsers.edges.sort(((e,t)=>t.node.stream.viewersCount-e.node.stream.viewersCount)));break}case"PersonalSections":{const n=a.data.personalSections.find((e=>"FOLLOWED_SECTION"===e.type));if(n){const a=await e.fetch("/youtube/get-stream");s(a)&&a.body&&(n.items.push(function({title:e,viewersCount:t,profileImageURL:a,previewImageURL:n}){return {trackingID:"1bb8ab4b-aed2-4f25-a750-c295d57e6a95",promotionsCampaignID:"",user:{id:"40934651",login:"ludwig",displayName:"ludwig",profileImageURL:a,primaryColorHex:"00FFE2",broadcastSettings:{id:"40934651",title:e,__typename:"BroadcastSettings"},channel:{id:"40934651",creatorAnniversaries:{id:"40934651",isAnniversary:!1,__typename:"CreatorAnniversaries"},__typename:"Channel"},__typename:"User"},label:"NONE",content:{id:"-1",previewImageURL:n,broadcaster:{id:"40934651",broadcastSettings:{id:"40934651",title:e,__typename:"BroadcastSettings"},__typename:"User"},viewersCount:t,self:{canWatch:!0,isRestricted:!1,restrictionType:null,__typename:"StreamSelfConnection"},game:{id:"-1",displayName:"YouTube",name:"YouTube",__typename:"Game"},type:"live",__typename:"Stream"},__typename:"PersonalSectionChannel"}}(a.body)),n.items.sort(((e,t)=>(t.content.viewersCount||0)-(e.content.viewersCount||0))));}break}case"StreamMetadata":{const n=a.data;if("40934651"===n.user.id){const a=await e.fetch("/youtube/get-stream");s(a)&&a.body&&(n.user.lastBroadcast.id="-1",n.user.lastBroadcast.title=a.body.title,n.user.stream={id:"-1",type:"live",createdAt:(new Date).toJSON(),viewersCount:a.body.viewersCount,game:{id:"-1",name:"YouTube",__typename:"Game"},__typename:"Stream"});}break}default:{const o=a.data;if("40934651"===(null===(n=o.user)||void 0===n?void 0:n.id)&&(null===(r=null===(i=o.user)||void 0===i?void 0:i.lastBroadcast)||void 0===r?void 0:r.title)){const a=await e.fetch("/youtube/get-stream");s(a)&&a.body&&(o.user.lastBroadcast.title=a.body.title);}}}}catch(e){}}const i=window.fetch.bind(window);window.fetch=async function(e,t){const n=await i(e,t);try{let t;if(t="string"==typeof e?e:e.url,!t.includes("gql.twitch.tv/gql"))return n;const i=n.text.bind(n),r=n.json.bind(n);n.text=async function(){const e=await i();try{const t=JSON.parse(e);return await a(t),JSON.stringify(t)}catch(t){return e}},n.json=async function(){const e=await r();try{return await a(e),e}catch(t){return e}};}catch(e){return n}return n};}(new e); diff --git a/content/youtube/index.js b/content/youtube/index.js index 9747766..6db9b7c 100644 --- a/content/youtube/index.js +++ b/content/youtube/index.js @@ -1,67 +1,1081 @@ -import '../../index-6137f488.js'; -import { - e as e$3 -} from '../../get_stream_details-b6177000.js'; import { e -} from '../../style-inject.es-a0e1a0ba.js'; +} from '../../index-2879cf47.js'; import { - s, - m -} from '../../storage-a8ac7bd3.js'; -import '../../connectRuntime-a699491c.js'; + e as e$3 +} from '../../background.injected-4f2074c6.js'; import { - o as o$1 -} from '../../background.content-5f02aba1.js'; + n, + e as e$1, + t +} from '../../get_stream_details-70a52c12.js'; +import { + d as dt, + t as t$1 +} from '../../parse_token.util-73818eef.js'; +import { + c, + e as e$4, + a +} from '../../constants-27e12ede.js'; +import { + s +} from '../../router.interface-6cdbc015.js'; import { e as e$2 -} from '../../inject_script.util-c1ec59e3.js'; -import { - e as e$1 -} from '../../when_ready.util-91474a6b.js'; +} from '../../style-inject.es-a0e1a0ba.js'; -var o = "settings-module_ludwigLogo__Wt9ZZ", - i = "settings-module_ludwigSettingsPopup__Mfv9p"; -async function c() { - const g = await d(); - let I = document.getElementById("ludwig-settings-popup"); - g.addEventListener("click", (() => { - I ? I.style.display = "none" === I.style.display ? "block" : "none" : I = function() { - const I = document.createElement("iframe"); - return I.src = s.runtime.getURL("popup/index.html"), I.id = "ludwig-settings-popup", I.className = i, document.body.appendChild(I), window.addEventListener("message", (g => { - g.source === I.contentWindow && "mogul-tv:close" === g.data && (I.style.display = "none"); - })), document.addEventListener("keydown", (g => { - "Escape" === g.key && (I.style.display = "none"); - })), document.addEventListener("click", (A => { - "none" === I.style.display || g.contains(A.target) || I.contains(A.target) || (I.style.display = "none"); - })), I - }(); - })); +const h = e => void 0 !== (null == e ? void 0 : e.months), + m = e => void 0 !== (null == e ? void 0 : e.slug); + +function f(e) { + if (!e) return 0; + e = e.toLowerCase(); + const t = /\((.+)\)/.exec(e); + if (!t) return 1; + const n = t[1].split(/\s/), + s = parseInt(n[0]); + return isNaN(s) ? 0 : n[1].startsWith("year") ? 12 * parseInt(n[0]) : parseInt(n[0]) } -function d() { - const g = document.getElementById("ludwig-settings-button"); - if (g) return Promise.resolve(g); - const I = document.querySelector("ytd-masthead #end"); - if (!I) return new Promise((g => { - setTimeout((() => g(d())), 1e3); - })); - const A = document.createElement("yt-icon-button"); - A.id = "ludwig-settings-button", A.setAttribute("label", "Mogul.TV Settings"), A.className = "style-scope ytd-masthead"; - const C = document.createElement("img"); - return C.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAQYXpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjapZpZtuM4c4TfsQovAfOwHIzneAdevr8AKdWt6vof2r7q0kBSAJgZGREJtdn/89/H/Bd/MbpsYio1t5wtf7HF5jtvqn3++n12Nt7n+xfeU3z+7bj5nvAcCr+urPm9/nPcfQd4Xjrv0o+B6nxPjN9PtPiOX/8Y6J0oaEWeN+sdqL0DBf+ccO8A/bktm1stP29h7Od1fe6kPv+Mns70TcfSeM79+TkWorcS8wTvd3DB8uxDfRYQ9M+Z0DnheWaxujAE3qf7HIN7V0JA/han7x/TmqOlxr9e9FtWvu/c34+bP7MV/XtJ+CPI+fv61+PGpb9n5Yb+x8yxvu/878ePt+dZ0R/Rv8E/q557z9xFj5lQ5/emPrdy33Ed6YiauhqWlm3hX2KIch+NRwXVEygsO+3gMV1znnQdF91y3R237+t0kyVGv40vvPF+kkEdrKH45qdySNZ4uONLaGGFSkYnaQ8c9d+1uDtts9Pc2SozL8el3jGY4PCvH+bffuEclYJztn5jxbq8V7BZhjKnZy4jI+68QU03wJ/Hn3/KayCDSVFWiTQCO54hRnK/mCDcRAcuTLw+NejKegcgREydWIwLZICsuZBcdrZ4X5wjkJUEdZbuQ/SDDLiU/GKRPoaQyU31mpqvFHcv9clz2HAcMiMTKeRQyE0LnWTFmMBPiRUM9RRSTCnlVFJNLfUccswp51yySLGXUKIpqeRSSi2t9BpqrKnmWmqtrfbmW4A0U8uttNpa6505OyN3vt25oPfhRxhxJDPyKKOONvoEPjPONPMss842+/IrLPhj5VVWXW317TZQ2nGnnXfZdbfdD1A7wZx40smnnHra6d+svWn9x+NfZM29WfM3U7qwfLPG0VI+QzjRSVLOSJg30ZHxohQAaK+c2epi9MqccmabuC55FpmUs+WUMTIYt/PpuE/ujH8yqsz9v/JmSvwtb/7/mjmj1P3LzP0zb3/L2pIMzZuxpwoVVBuovr1YTPPcXGNmG9rMpfbUiAPiYOChVdxcMcNcCzbZO1IdDJvHanmePvPpPqReBrd4K370XbijXhp8xV3GOLPx3Y9oO3TVYgquJqdzc5FUDrhILCuR63b5rLex80Hnfd42Ls8lfA2qjcuxOALIgmvje3UuLgiD9fG1X2fzjF4nvaAT94zVaXI9tZ4jJaJLfW6sCR6Ise5UbC8QbCp7+bMBh/d99h11p9YSzkXi76AMFEdxZNak4ezO0C4xwDCQ2rDySHWMXSeZJF9zzuGvjpQnODUe1pRzqB1ktVxPgmrdBmhWEGQS8iJwVtJTK2vk3rwOZ28VmBuUgGjoAuaGtu6N8p9pcTbr75Lsc48ESwcU014yrkFff65uKSpYzwxOT5BfluVo5n59ruRCcc9I9RlWcHiHyPdA/8T/HbU+KfFVUR4GuAQPEiKl2xkPRDU3mh1rgOrmR/duhKw5qDjWtEsPq9r5Zh4FuXBA+6Pu/82s0MFpf3NCMB7U+AugewnGy7fm7yD+Znnk+8G8oHg/6tN8IPMrai/E0hMUpvp1uwqKv9A0F7CfOBGD5O77Z0TdQOXNFC4JfBpBBa87njMsGPEuuf9EtgrhswiAuqb/kch2w57sBQMweud7YHyzXs0z+UX5mncUMe8h8NwGJ6o/eXG4uQ3dhpYOdXSi22sfhb9Ol1Zr0UBPvu9Z/ToEDkpiHGxHhHDbAVNH8t3lMKY/Beo9m5FFOAC9DXzr6HnkBdXC+GS7hwmpOuij1ufLUJ3IoHJDpTVKfPhybJtO1Nf2LGGHGU7JVtebPmthkh7OFrvLPW2JtR0zrRL4mk6MQqsRxoxxtTrgVth6nhz8rFUyn4sJjaqmslEj1wtTQZ9Wc5OLBa21k/s+frSGYpBCQl20gqQFIC9oJtRAjPbEI7SRIMX0EzxjnQATCoD1JkQM83t9gAYIxN60e3Ph1pb9QHWntnEulzAdC3S30l90rKf4oAtAf8FlP+VgNPZbm4J0shTvJNItr57mKcWBopDV+xR3whOygvYspWlwXd2xNNljaGr2CGIVDYzoiFefxM6BEw5a9MSlJmSWmWLGEq25I2klqcuR6Ty2cX1MRMUTh2ljXrPYWYSOtJdi322tfQSZbRFtVKBryl0t2Qp8GWHDogXD2Lal3ES9cCsaa7NvhKeD2V6SQ6PnlI5ISuz3daBQBBwwjoG4QbU5yn2ki+IU9kr9xJVVV2mqrvdGkegEcEGYShK0YOxuIwWTxWCFDO+eabPgKTvqy87iWCrGj/rk+JuHr1ZdJDyZhm0pUphghAXVXn5+Czm+mvfC5OXukfLJE1nNCVxLrAtwxoVsmC/lhT+hFe3J9jQaZVAZfQ21EhgTMn0TndeYoeXiFW6Uf4+6XVUSMxmKU4GewwXDnSYcBsmFkTtQYzXODhUOCeqLnmM5v/MC5BHzU5tfjfxcJkld3HtYBORfoqarszxggQmI6aDKBt4njhhxftyzDJFaZ1DmVGfh1oJa6efV2D8OfF/dnHukHpMIXdJ5sDg720Cwdi1LNLMIkI8De5KMwNgT0MhQ33HkVhjuyE6koCp2tB38zdYiD8xCrWcUzj7Q7BVTdNbO3YhUjhQMenSNCmphrLrL+BT5reSJWauvfgoBUoJHTT4QMcp5QR/Xl81fAhjP175S8IXIhRCWc7tcxqFT9+GsZEhyhnYXVTqBR6MLnpuMQohhO6iZtnS2l8oOoEgX+/jG4OBuRFfvcCOZcZa7qeh/pCIkWRI+oCI5YcAD+eSG6/boDIuu44w71TnO9J1Pgp03pmqBfeB2xqZwQErYhw4Mj9pFTBay8/JJVZaXoa5qIUBy7tMgmXO15AtlTJuj2qbQ5oz/qPf3NcdxMOe4sUqv3Wg6a5to/737vYNepfN7o4gY3uhdi3ZuyQ5er7R9kA+sPSFiXVeCoNNezkDsdzUbaOAVCRUwojHfjwJIZNNh5L3kHx57QlX+lnKlMPRws2lE+aTg8qx7Hcd1E+/Xr/Jj+GOpGQGMmFoQWODuOdWZgLzR8PNGeIWeH5xuLqL/2MOVngoYHJhaRB/J3GT7RmknaKT6zRs43EN8DoUp4IiPgJCQ+YkzICnHRWofCcHHL/DPAbc2pkOFPjzK6WHQ0CwdN2srkE48ptCikVo4PoFHorYdn6BigF3AOxYjkuOF8FC1FDF+IqXKhApoitd1x7UMJiShOq6lhHTBWlHba2+JtemxfDSAC7czcxholzzmxGsP2vaTOu2RpXPKZtA60SjRRHE5fQG9aJoC8RTFYj1Ppwmq+1AiA9hue4YIMh6EEDwiUrL31YxWI4KCKAiw9sXrgdtoVIvNpaEZeTn5EbJagFf91lHMB0OSF4ujX5tQpUfNM7ki8rBrV/NByxtsUSzgKChMGz80ghNxSpT1IT+URlsHMmNcE+limVu81mIO3dEDsmICnLOaOktVVQojULhTNHKDU5Kmd/lKWk224tgqCyjgLP/WSAyqKl58y1Z2auK3rsCrq73tiwwuKGnmdyXEvUsJQXSIC0YbmdYZxAmujCBlgcP1ScSURUx4kYl0mePVbR3kqkFxA0Lxoi0XCNiMAAMCnVAWzeXGNZBsWnFQhrl0m+b85E1GfTWWGQlLxD1tMJXVbdcpb0pa4LD4+lpa43jUIGNnJC7As4F93OgEsqOYpZOLEsbM0ptGOjuvk+QJ/FZQmGuD9xZS3t0EggWRpV1GLQK3vl8rBLIRZgGyB+4+gPB85fSXoc1q19eml5zi8hTb3uQZayvx98i1b7MZEOMRjaROdlLymCS62bxrn3iNXgqdXyFghFz11mml6Eu1cY6Ru5asr9xKN6wDVLHKIr8fG/7ueGlpWAM1LVG9Fd6L/NWGucEpQ0CAdroH6rCAu4BMd8OhyZkxdh0FK522hJiBQVCgkvEFbiruUU3K7uSeNqRjpcAxl9ComdIuGRWyODOWXA01RUR3cRrRhugK9ijJuURPAwOJsUhgLfYj5gmzGe1wBtXTtv4o5Vpbp30SfDrdwsEeS5s7/SnL4uuduC9unoZkJ+aWsdkkJLjeTR8oNNQ/3FOLvxro0iGgX9SNuPnxp/ePu5XHIZgrD6XFMvBfP8qp3+72s6eBW1sJmyJwkvLyEYAD7a7CbVK0dNTHjiIJ2L8k4KocHctYVwYwBlcGcoLTZnpklE71l4ya/6Cn/1Fnx1nrzIxbogSPJkTOoEzDnFglSSGlzFLG+Ogq6rspwaupEPHtGbdUD4FItI4kNPgehjxuiKZ+nNGA6q8f7jfYavVfxb2aaVtbj95in6kDR392u/rXN5nbE/3GWsJG6AtV0xoUOmL8BO6GbV71ROlckqWh9G8renmKFcNE9RoouinWjURtBsMofzi/1v/gWp9XE/+jrSUw34gVYZyIlb9FLN8VwXGYiDCOuy4A8FwInHwxs7jVsRzNxrl061F3oktQftDzQYSq+WwkvVsI76aI2k5qK/TPLguNy3D7Evx6NqEghPrdDdHeiLZqE5GLD8Hf2L0E/4SuicQ30uthXQ9JlYfhD8uVzUPZ07YmB7DaaRPyIZxf51f9v0Sq+Sdk95glaW5pPHht5WML8Rvf+C/iPz7xJ/rG3+Q/cC0PXF0PdXw2FOUAMbvvJqP8+48dOjEA3kk7R+YJFpch+z6snH/C9XaO34i+HX/eLBhLnN2Bi/XrD84ZgbxEQJ+CF5zcW+BOYMJeRWQ8UymIm8NwY7oXPH/QqyTjFQbnZZ6mPdmZREuBfmKFUAuXUuraHZH30a5IuM8Qpn7MosYYjf5ZbobnRDH6z6XmvdbP+ePovzk45x3UtPpMhZulmUNtcWTyK/oZGYeIFP64umkjx01/NugpboehQIkaj7mV47+VgwXpmDrZEKSazkNhKnYwwe0bwQbdMgHgklI6FgtR6dVW+MgfdSgsdHDZypNOeaKN6moWPstSEc/OMubOuk+NaXNb1vTZ1oxev9MG7YAiYvjreasKWer2p1wkr72iT1l9dpOeCn02boMZaOIXJqAvabdRqn/bRol9WzS5r517a1rbtrTwWul6vrgNjnh7vkKDnPxnfqZ7OtF2Cx0ptDofyku8MtzFZcfinv3KKIF8Nok/e/ff/eI/tjhxIbQNIpHS7Watq+onbu/B3oT/jeJ/KFlizjE6SMwW/QcwRkno7marQDgsWni7PsyuTTo89H73QjWVebTYffbM/9GGPxtq3832ppA1+1MrhiRVu8f9qfLZfqQlqcf7LXH6HwUUoWcBOf7aTuZrWlG4m3vRf/f5ovv+SAFh9NDk35aafNp2G0vS5obXlixeEpPeq3PuIrsQbzwT3bF+6tUvCfA1rRN++CS7c0Xi0SM6KPpZOITl7KkfIFrXNgN+Z4c6DSw1tLOk/e8B1uFw1/RbWef1iUwjzfqNI76o/AaM6MYPXZkbE/10YD9o08vSpvofLcH3grv1xRU/hmy42t+3vN13I+3dJ/sZ7Zx//8nE+lac+rPqmgFfcGQY2GcXY58Em9tKiV5ypZAPUYFWtNvnb1MK2Oxc+j1ROxvYJoxgmgF/FOTuqRD8n4yUle+1mEDIgdak40sb7MHZgEGjC/pfz63X+Y4VVjYAAABgelRYdFJhdyBwcm9maWxlIHR5cGUgaXB0YwAAeNo9ibENgEAMA/tMwQhJbMSzDklDR8H+wrwEtk7yyXZed9kywzQMJne2U/0THeWJTXMg4SLUd8V8Ss8hB1ZBhGV/6m4PMC4U1rB1J+0AAAGFaUNDUElDQyBwcm9maWxlAAB4nH2RPUjDUBSFT1NFkYqDFUQcMlRBsFBUxFGrUIQKoVZo1cHkpX/QpCFJcXEUXAsO/ixWHVycdXVwFQTBHxA3NydFFynxvqTQIsYLj/dx3j2H9+4DhHqZaVZHDNB020wl4mImuyp2vSKEAAYQw5jMLGNOkpLwra976qW6i/Is/74/q1fNWQwIiMSzzDBt4g3i6U3b4LxPHGZFWSU+Jx436YLEj1xXPH7jXHBZ4JlhM52aJw4Ti4U2VtqYFU2NeIo4omo65QsZj1XOW5y1cpU178lfGMrpK8tcpzWMBBaxBAkiFFRRQhk2orTrpFhI0Xncxz/k+iVyKeQqgZFjARVokF0/+B/8nq2Vn5zwkkJxoPPFcT5GgK5doFFznO9jx2mcAMFn4Epv+St1YOaT9FpLixwBfdvAxXVLU/aAyx1g8MmQTdmVgrSEfB54P6NvygL9t0DPmje35jlOH4A0zSp5AxwcAqMFyl73eXd3+9z+7WnO7wefz3K5SrnPGAAAEuFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDQuNC4wLUV4aXYyIj4KIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIgogICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgeG1sbnM6R0lNUD0iaHR0cDovL3d3dy5naW1wLm9yZy94bXAvIgogICAgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgIHhtcE1NOkRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDo3NTM0YTk5NC0xNDIzLTZjNDctYTExNi01ZjUzMWZkYzZkM2UiCiAgIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ZDhlZDc2NDctZDYzMy00NDczLWI4MWYtY2NiYjRlMzQzMGRkIgogICB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6ZmMzZjY2MTMtODdkZi0yZDRmLWIyNDUtODZiZjc3MWFhODk4IgogICBkYzpmb3JtYXQ9ImltYWdlL3BuZyIKICAgR0lNUDpBUEk9IjIuMCIKICAgR0lNUDpQbGF0Zm9ybT0iTGludXgiCiAgIEdJTVA6VGltZVN0YW1wPSIxNjM4NDMxNjIxMzU1NDU4IgogICBHSU1QOlZlcnNpb249IjIuMTAuMjgiCiAgIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiCiAgIHRpZmY6T3JpZW50YXRpb249IjEiCiAgIHhtcDpDcmVhdGVEYXRlPSIyMDIxLTEyLTAyVDAwOjU3OjA2LTA2OjAwIgogICB4bXA6Q3JlYXRvclRvb2w9IkdJTVAgMi4xMCIKICAgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMS0xMi0wMlQwMTo1MDoyOC0wNjowMCIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjEtMTItMDJUMDE6NTA6MjgtMDY6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJjcmVhdGVkIgogICAgICBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOmZjM2Y2NjEzLTg3ZGYtMmQ0Zi1iMjQ1LTg2YmY3NzFhYTg5OCIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDIzLjAgKFdpbmRvd3MpIgogICAgICBzdEV2dDp3aGVuPSIyMDIxLTEyLTAyVDAwOjU3OjA2LTA2OjAwIi8+CiAgICAgPHJkZjpsaQogICAgICBzdEV2dDphY3Rpb249InNhdmVkIgogICAgICBzdEV2dDpjaGFuZ2VkPSIvIgogICAgICBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjhhZjc3YWM5LWU3NWMtYWI0Zi05OGY4LWYyMTE4NjY3YjljZCIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDIzLjAgKFdpbmRvd3MpIgogICAgICBzdEV2dDp3aGVuPSIyMDIxLTEyLTAyVDAxOjUwOjI4LTA2OjAwIi8+CiAgICAgPHJkZjpsaQogICAgICBzdEV2dDphY3Rpb249ImNvbnZlcnRlZCIKICAgICAgc3RFdnQ6cGFyYW1ldGVycz0iZnJvbSBhcHBsaWNhdGlvbi92bmQuYWRvYmUucGhvdG9zaG9wIHRvIGltYWdlL3BuZyIvPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJkZXJpdmVkIgogICAgICBzdEV2dDpwYXJhbWV0ZXJzPSJjb252ZXJ0ZWQgZnJvbSBhcHBsaWNhdGlvbi92bmQuYWRvYmUucGhvdG9zaG9wIHRvIGltYWdlL3BuZyIvPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo3YTAxNGEzOC02Y2M4LWFjNDQtOGYyYS0yNDE0NTI1OGJkZjMiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCAyMy4wIChXaW5kb3dzKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMS0xMi0wMlQwMTo1MDoyOC0wNjowMCIvPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo0MDgyMWI4NS03MWU5LTQzYjUtYTEwNi0wY2RhYWZhZjE3YzMiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTGludXgpIgogICAgICBzdEV2dDp3aGVuPSIyMDIxLTEyLTAxVDIzOjUzOjQxLTA4OjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICAgPHhtcE1NOkRlcml2ZWRGcm9tCiAgICBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOmZjM2Y2NjEzLTg3ZGYtMmQ0Zi1iMjQ1LTg2YmY3NzFhYTg5OCIKICAgIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OGFmNzdhYzktZTc1Yy1hYjRmLTk4ZjgtZjIxMTg2NjdiOWNkIgogICAgc3RSZWY6b3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmZjM2Y2NjEzLTg3ZGYtMmQ0Zi1iMjQ1LTg2YmY3NzFhYTg5OCIvPgogIDwvcmRmOkRlc2NyaXB0aW9uPgogPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+BKrvTAAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAAd0SU1FB+UMAgc1KQBoSUQAAAgKSURBVGjexVpNjJ1VGX7e853v3rl3Zm4pnbS2pbY4lgZNNMhCKQp1IRVM/YkxjW5csHclGw1popK4IYS4cWlcWV2oUWtUhDTVGEQSYxAVSMEU+nPpgC3tTGfuPe/j4vu55+9Oh2qmJ5lk7vdzz/O+7/P+niuIFr83FK7hbgBHCRwmZD+IDgEQACkgAULQXFOwvabNdQLa3q/e0/Z/QCFQTu4HzzT3gRGBV5T4rQI/7vT47Icf2UIfrwTgnxjuouIJCD5PSof1Bqg3pQioDXDWACUAWwFqhAS0BsUaWCVkAzL87D/vP6MElBhR5Fc0/NrBRwdnEgH08eEHIfgFiNsbDbK+HWq+2ZTthmi1ONF+Dnyt1YkFAotMngk/e+9W33uGBl+479j8860A+uSFPXByisReNGBbzU+oQg9QZQHxqBPRpn4v0G5AG7kuaEbgJ1bDOZT4+CcfnT8t+v0LghX5JRQP0dMgPF7C4yo9EPS17tOCoUCt5lNtTtd4TLf2XnUNhqfsFj1ksSqHqHig4XJAGQBgQxfxeByC953Rd0Rf0zFtKuBM+E5GWo+cvn3Wyb161RyxVBwlxObAh0AZUUh8kwaaZML32HklCyr2FfUc30V7KWF0jC9bEp9pndN3XJ/bCf89B/T5ToAS8jvLfYaUywvRUMe3WkgnKB6wpLyHHjB4gBiEv0jLGSswAROHzBQ0CagAqhIJU1E3fW/i0KQMLAkTJCb6CSp03oqzOd6HYTROUDGf7YJBd6eB6Qp62w3mdxe4fNbh1RNr0LEHMqDYhJKu+X4VsVqnAx98HBInVJpk2mxymsJ/RaXlwYcsdhzsojMQmDLIoZjdUeDiKw5Lf3cVyIiiIX2kTaQWXA98nEUxsUJG677Fms+mbwAF9hzp4pY7SkxdAhQ9A6UmGk9CaRNQCNgkrjOkD5nXdpyMfL5LTzB3wGLLnSXm9lqMlxXlvMG6i4ApM06dOHpIJZvjcmKRTORIwiIAmRVsP9TF4ECJoittoXJd8LUFFu/v4PXnHHQ11XoTSuNAYBlxN6hlokizHt9n3ldg50M9lIMNgJ2yyhlBZyBYGzLUepzEPKFM4hj1TVebywWmC53JAZCBYOHBGez50uz/BL6xwvs/VaK7rdrXrQe+8YFczR4XY2ScGQH0DLZ+tMTWu7ooeoL/19r1AQsI8OwP16KCLywzGrpXPiB+GRBn2donBOjut+juLlDMGfT32o1x+wbWYHsBWIGO4qSXRiYbOqgkHRIBSF+w8Lke+vtKbMYqe4ApBTqiV5n6PtFYQ2oKMS55w2RVzAl6t9kNAyCBpZfGAICFA/ZdC0AFnNKrhRhm9/o6icqJXZD20wcVEnefU9f4GnH6qVX860fXcOmsuyELLL2huLaCSQCpKwBHwDFsbqzfkPih1C9rDddPQNcuKZaXFP857fDWiw4rbyuUwPCvDrd/AjDvwghrK8QLz4zzPUEUgWoB8jV72A1N1/6ZP6zi3KkRxiO/8ag2WH6beONvI9x2VwnZgAEvXySe+cEaLg8ZVrpRk0MvtNu20mxNxczII2+ClbcU5//kg6/MDqn7AhW8+LMRLrys2PMRix37i3UFeOnPI1weatBfNEDDZqlOtlUp4ZfAzJawRVMqeJvpmHjt96sYLVfPSim49c4CWxcL3LrXwvaAS+cUF191GP5TUVwngLkx8M5SxXFOifnB6KWhUFCUITSPn/3ipWOgMzDovxfYcbfFwh0W5YwEUm7bV2DbvgL7N+AHhQXu/0oH5w8qnjsxxpv/ZrYRCjpDAtZFmk/qbyBLIDsjWDzc3ZBjbtSJTQHsWjT49MMljn93DctXpiQxLy/YIOrE3PPC6WYuUwgoAm2mFj4uhhHTJoMmZPpXCDZ7TZQXlvJBpUyGYTTQfCTYzRDA+YCTRqupRpnpXzMzm81cE21LRJnUF+xUrUc1+Gav2Fn9Gq0NsU0/MJU+QS202VaQSfPuNfFxn25d3OfmEshN8oFq/xC8Rn5hk3Yymh43jnQzKOS8c4mYTo0QdsL3aPIQjfI23QKccB1TwDNwYjaJIzN8vVl5ICri6BVxLYVcdgYfRqHRCFAlzCYJMh4hqHAZa94r+a0Gp4cCV584+gJceVPx8h9HWPxYCckU9ryBOD+9KiVO/UZx9R0EQ2YwdOBGIDl57MpYFYVmjnPiDN1OL6aN0P2joVwPG40L4w6woYdqiCGmTjVsIChwFsKhQnZqdojqZUTEXyyZnJE/8/JbwDCjEqR3xsx4vBmCnwhUhdai1CtGIb92bBrm9CTEz3qaPf6smpCq2ZZ2YqdM/wLNk+1oJCjY/P6cYYkTWgAQg6cMDI8r4BpALgqhDgIHJCPGdvTnTQlcPM2I6hl/nsO6d2ZkQTJTRmhKHwhoZ/S4menr72B40teqr02fNqFGpToWYuYIqc6g2blmxiLJiY4nSOy0zYFLUepf5reNfmru+foWSsGHVXDWBxNSSgJrxM+FgjdaT08t2+vIBwofdFqfTU6HxHCp03dffeQbg7EBgMPH5l8TwWcVeL3SbEYQ788fLjE+Oo0GT8nhNVPHZ+xrkbb9Xw7AcNjp6xe/9Xj/HwDQTmePfGf2+cLyXgpOKDCO+wLHNEIFIBTT6aRR+M0eBPoWkCR0ghibgk93e3rPY0/OnMz+WgUAfv7tq7K6gvvGTo4q8KBzstsRhR/fU9NLMrPxQyiRZlVN4nt1CkrvFzAQOjE4T+BEUepP5m5xT3/zsdkgD/4XKfSpkcz+36MAAAAASUVORK5CYII=", C.className = "style-scope ytd-masthead " + o, A.appendChild(C), I.prepend(A), Promise.resolve(A) +function p(e, t) { + const n = t; + for (let t = 0; t < n.length; t++) + if (n[t][0] > e) return n[t - 1][1]; + return n[n.length - 1][1] } -e(".ytd-masthead.settings-module_ludwigLogo__Wt9ZZ {\n width: var(--yt-icon-button-icon-width);\n}\n\n.settings-module_ludwigSettingsPopup__Mfv9p {\n width: 400px;\n height: 600px;\n position: fixed;\n top: 56px;\n right: 0px;\n z-index: 9999;\n box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\n}"); -async function a() { - setInterval((async () => { - await async function() { - const g = await m.settings.get("chatStyles"), - I = e$3(); - return g && I - }() ? document.body.setAttribute("data-mogul-chat-styles", "") : document.body.removeAttribute("data-mogul-chat-styles"); + +function g(e) { + var t, n, s; + return { + liveChatAuthorBadgeRenderer: { + accessibility: { + accessibilityData: { + label: null !== (t = e.slug) && void 0 !== t ? t : "none" + } + }, + tooltip: null !== (n = e.slug) && void 0 !== n ? n : "none", + customThumbnail: { + thumbnails: [{ + url: e.url, + width: 18, + height: 18 + }], + accessibility: { + accessibilityData: { + label: null !== (s = e.slug) && void 0 !== s ? s : "none" + } + } + } + } + } +} + +function v(e, t, n, s, o) { + const i = t(e.authorExternalChannelId); + ! function(e, t) { + (null == t ? void 0 : t.a) && (e.authorName = { + simpleText: t.a + }); + }(e, i), + function(e, t) { + var n, s; + e.authorBadges || (e.authorBadges = []); + for (const o of e.authorBadges) { + const e = o.liveChatAuthorBadgeRenderer; + (null === (n = e.icon) || void 0 === n ? void 0 : n.iconType) ? e._mtvType = null === (s = e.icon) || void 0 === s ? void 0 : s.iconType.toLowerCase(): e.customThumbnail && (e._mtvType = "member"), "moderator" === e._mtvType && (delete e.icon, e._mtvType = "moderator", e.customThumbnail = { + thumbnails: [{ + url: t, + width: 18, + height: 18 + }] + }); + } + }(e, o), (null == s ? void 0 : s.length) && function(e, t, n) { + if ((null == n ? void 0 : n.b) && !(n.b <= 0)) + for (const s of e.authorBadges) { + const e = s.liveChatAuthorBadgeRenderer; + if ("member" !== e._mtvType) continue; + const o = f(e.tooltip); + if (0 === o) continue; + const i = o + n.b, + r = `Member (${i} months)`, + a = p(i, t); + e.customThumbnail = a, delete e.icon, e.tooltip = r, e.accessibility.accessibilityData.label = r; + } + }(e, s, i), + function(e, t) { + const n = t(e.authorExternalChannelId); + if (e.authorBadges || (e.authorBadges = []), n) + for (const t of n) e.authorBadges.push(t); + }(e, n); +} +const w = /[\s.,?!]/; + +function y(e) { + const t = []; + let n = 0; + for (let s = 0; s < e.length - 1; s++) w.test(e[s]) !== w.test(e[s + 1]) && (t.push(e.substring(n, s + 1)), n = s + 1); + return t.push(e.substring(n)), t +} + +function b(e) { + let t; + if (e.provider === t$1.Twitch) t = `https://static-cdn.jtvnw.net/emoticons/v2/${e.id}/static/dark/1.0`; + else if (e.provider === t$1.FFZ) t = `https://cdn.frankerfacez.com/emote/${e.id}/1`; + else if (e.provider === t$1.BTTV) t = `https://cdn.betterttv.net/emote/${e.id}/1x`; + else { + if (e.provider !== t$1.Spore || !(null == e ? void 0 : e.ext)) return; + t = `https://cdn.bio/ugc/collectible/${e.id}.tiny.${e.ext}`; + } + return { + emojiId: "mogultv-" + e.name + "-" + e.id, + image: { + thumbnails: [{ + url: t + }], + accessibility: { + accessibilityData: { + label: e.name + } + } + }, + isCustomEmoji: !0, + isSporeEmote: e.provider === t$1.Spore, + searchTerms: [e.name], + shortcuts: [":" + e.name + ":", e.name] + } +} +class C { + constructor(e) { + this.gatewayService = e; + } + addAliasesToMessage(e) { + v(e, (e => this.gatewayService.getUserInfo(e)), (e => this.gatewayService.getSporeBadges(e)), this.gatewayService.monthBadgeList, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAABg2lDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV/TiiIVBzuIOGRonSyIijpqFYpQIdQKrTqYXPoFTRqSFBdHwbXg4Mdi1cHFWVcHV0EQ/ABxc3NSdJES/5cUWsR4cNyPd/ced+8AoVFhmhUaAzTdNtPJhJjNrYrdrwgjBGAaMZlZxpwkpeA7vu4R4OtdnGf5n/tz9Kl5iwEBkXiWGaZNvEE8tWkbnPeJI6wkq8TnxKMmXZD4keuKx2+ciy4LPDNiZtLzxBFisdjBSgezkqkRTxJHVU2nfCHrscp5i7NWqbHWPfkLw3l9ZZnrNIeRxCKWIEGEghrKqMBGnFadFAtp2k/4+Idcv0QuhVxlMHIsoAoNsusH/4Pf3VqFiXEvKZwAul4c5yMGdO8CzbrjfB87TvMECD4DV3rbX20AM5+k19ta9Ajo3wYurtuasgdc7gCDT4Zsyq4UpCkUCsD7GX1TDhi4BXrXvN5a+zh9ADLUVeoGODgERoqUve7z7p7O3v490+rvB3pIcqqJKL5aAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5QwEARQDdqq2HwAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAGkSURBVDjLpdSxS5tBGMfx7+V9JamLGbSQNNAQdBBJhZKWLPkHxKmQEgd9xUFwCRQKHe1cKHSztCCmLyQlkriULu2kSyBQkCCCg0bQCJrhTSUxoW+8DuLRNPqq8aa7hx8f7nk4TpDXDCQfAC+9rTKCt4KctgcEnZKJ/pcYoRmG+oewz21Wdlb4+PvzvxFLvwlJD5vEx+Lomg5A6ahE/nTt/5hXd0Le+98x9WRKnUtHJSYKkxzLalfW5djSaKILOZCHqvZQDLIwMO8MPdOf4h/wq3Or3epAAuIRP6M/MEYMZyjY1zm6SCBC8XlBId+j3wj7wuiui+lcO6PVszxNu4lH93RiFHBrbsK+MAAnjRNnKBVaxq25u+qRQETt7bZNavfL9a2lQstMj08jhHB8idmtLF8b2atvdBUipaTVbqk2K7UKme0MrytvVEa/DWJumhi7c8QfvKD8p0zR/tV1O0FOk7dBblougE+Pl+6FKGijukGtWesZUZBZT5NcT2KdWT0hl8O2AK9ZT8M6xAZjzO8v3PFLkmVBTpsFuQgi2Nu/Ji3QXv0FPBynaffELJkAAAAASUVORK5CYII="); + } +} +var I = { + exports: {} + }, + A = "undefined" != typeof crypto && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || "undefined" != typeof msCrypto && "function" == typeof window.msCrypto.getRandomValues && msCrypto.getRandomValues.bind(msCrypto); +if (A) { + var S = new Uint8Array(16); + I.exports = function() { + return A(S), S + }; +} else { + var M = new Array(16); + I.exports = function() { + for (var e, t = 0; t < 16; t++) 0 == (3 & t) && (e = 4294967296 * Math.random()), M[t] = e >>> ((3 & t) << 3) & 255; + return M + }; +} +for (var E = [], B = 0; B < 256; ++B) E[B] = (B + 256).toString(16).substr(1); +var x, k, R = function(e, t) { + var n = t || 0, + s = E; + return [s[e[n++]], s[e[n++]], s[e[n++]], s[e[n++]], "-", s[e[n++]], s[e[n++]], "-", s[e[n++]], s[e[n++]], "-", s[e[n++]], s[e[n++]], "-", s[e[n++]], s[e[n++]], s[e[n++]], s[e[n++]], s[e[n++]], s[e[n++]]].join("") + }, + T = I.exports, + O = R, + U = 0, + _ = 0; +var q = function(e, t, n) { + var s = t && n || 0, + o = t || [], + i = (e = e || {}).node || x, + r = void 0 !== e.clockseq ? e.clockseq : k; + if (null == i || null == r) { + var a = T(); + null == i && (i = x = [1 | a[0], a[1], a[2], a[3], a[4], a[5]]), null == r && (r = k = 16383 & (a[6] << 8 | a[7])); + } + var l = void 0 !== e.msecs ? e.msecs : (new Date).getTime(), + c = void 0 !== e.nsecs ? e.nsecs : _ + 1, + u = l - U + (c - _) / 1e4; + if (u < 0 && void 0 === e.clockseq && (r = r + 1 & 16383), (u < 0 || l > U) && void 0 === e.nsecs && (c = 0), c >= 1e4) throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + U = l, _ = c, k = r; + var d = (1e4 * (268435455 & (l += 122192928e5)) + c) % 4294967296; + o[s++] = d >>> 24 & 255, o[s++] = d >>> 16 & 255, o[s++] = d >>> 8 & 255, o[s++] = 255 & d; + var h = l / 4294967296 * 1e4 & 268435455; + o[s++] = h >>> 8 & 255, o[s++] = 255 & h, o[s++] = h >>> 24 & 15 | 16, o[s++] = h >>> 16 & 255, o[s++] = r >>> 8 | 128, o[s++] = 255 & r; + for (var m = 0; m < 6; ++m) o[s + m] = i[m]; + return t || O(o) + }, + N = I.exports, + j = R; +var L = function(e, t, n) { + var s = t && n || 0; + "string" == typeof e && (t = "binary" === e ? new Array(16) : null, e = null); + var o = (e = e || {}).random || (e.rng || N)(); + if (o[6] = 15 & o[6] | 64, o[8] = 63 & o[8] | 128, t) + for (var i = 0; i < 16; ++i) t[s + i] = o[i]; + return t || j(o) + }, + P = q, + D = L, + W = D; +W.v1 = P, W.v4 = D; +var V = W; +const F = 100, + Q = -1, + K = { + "-32601": "Method not found" + }; +K[F] = "Invalid origin", K[Q] = "Error"; +class J { + constructor({ + postMessage: e, + timeout: t = 3e3 + } = {}) { + this.postMessage = e, this.timeout = t, this.pendingRequests = {}, this.callbackFunctions = {}, this.call = this.call.bind(this), this.resolve = this.resolve.bind(this), this.resolveRPCResponse = this.resolveRPCResponse.bind(this); + } + call(e, t, n = {}) { + const { + timeout: s = this.timeout + } = n, o = function() { + let e = null, + t = null; + const n = new Promise(((n, s) => (e = n, t = s, t))); + return n.resolve = e, n.reject = t, n + }(), i = []; + for (const e of Array.from(t || [])) + if ("function" == typeof e) { + const t = { + _browserComms: !0, + _browserCommsGunCallback: !0, + callbackId: V.v4() + }; + this.callbackFunctions[t.callbackId] = e, i.push(t); + } else i.push(e); + const r = function({ + method: e, + params: t + }) { + if (null == t) throw new Error("Must provide params"); + for (const e of Array.from(t)) + if ("function" == typeof e) throw new Error("Functions are not allowed. Use RPCCallback instead."); + return { + _browserComms: !0, + id: V.v4(), + method: e, + params: t + } + }({ + method: e, + params: i + }); + this.pendingRequests[r.id] = { + reject: o.reject, + resolve: o.resolve, + isAcknowledged: !1 + }; + try { + this.postMessage(JSON.stringify(r), "*"); + } catch (e) { + return o.reject(e), o + } + return setTimeout((() => { + if (!this.pendingRequests[r.id].isAcknowledged) return o.reject(new Error("Message Timeout")) + }), s), o + } + resolve(e) { + switch (!1) { + case !(!0 === e?.acknowledge): + return this.resolveRPCRequestAcknowledgement(e); + case !H(e): + return this.resolveRPCResponse(e); + case ! function(e) { + return e?.callbackId && null != e.params + }(e): + return this.resolveRPCCallbackResponse(e); + default: + throw new Error("Unknown response type") + } + } + resolveRPCResponse(e) { + const t = this.pendingRequests[e.id]; + if (null == t) throw new Error("Request not found"); + t.isAcknowledged = !0; + const { + result: n, + error: s + } = e; + return s ? t.reject(s.data || new Error(s.message)) : null != n ? t.resolve(n) : t.resolve(null), null + } + resolveRPCRequestAcknowledgement(e) { + const t = this.pendingRequests[e.id]; + if (null == t) throw new Error("Request not found"); + return t.isAcknowledged = !0, null + } + resolveRPCCallbackResponse(e) { + const t = this.callbackFunctions[e.callbackId]; + if (null == t) throw new Error("Callback not found"); + return t.apply(null, e.params), null + } +} + +function X({ + params: e, + callbackId: t +}) { + return { + _browserComms: !0, + callbackId: t, + params: e + } +} + +function z({ + requestId: e, + result: t = null, + rPCError: n = null +}) { + return { + _browserComms: !0, + id: e, + result: t, + error: n + } +} + +function Z({ + code: e, + data: t = null +}) { + return { + _browserComms: !0, + code: e, + message: K[e], + data: t + } +} + +function G(e) { + return e?._browserComms +} + +function H(e) { + return e?.id && (void 0 !== e.result || void 0 !== e.error) +} +const Y = 1e4, + $ = "undefined" != typeof window ? window : self; +class ee { + constructor(e = {}) { + const { + timeout: t, + shouldConnectToServiceWorker: n, + handshakeTimeout: s = Y, + isParentValidFn: o = (() => !0) + } = e; + this.handshakeTimeout = s, this.isParentValidFn = o, this.isListening = !1; + const i = globalThis?.window?._browserCommsIsInAppBrowser || -1 !== navigator.userAgent.indexOf("/InAppBrowser"); + this.hasParent = "undefined" != typeof window && window.self !== window.top || i, this.parent = globalThis?.window?.parent, this.client = new J({ + timeout: t, + postMessage: (e, t) => { + if (i) { + let t = (() => { + try { + return JSON.parse(localStorage["portal:queue"]) + } catch (e) { + return null + } + })(); + return null == t && (t = []), t.push(e), localStorage["portal:queue"] = JSON.stringify(t), localStorage["portal:queue"] + } + return this.parent?.postMessage(e, t) + } + }), this.ready = n ? function() { + return new Promise(((e, t) => { + const n = setTimeout(e, 5e3); + return navigator?.serviceWorker?.ready.catch((function() { + return console.log("caught sw error"), null + })).then((t => { + const s = t?.active; + return s && (this.sw = new J({ + timeout: this.timeout, + postMessage: (e, t) => { + const n = new MessageChannel; + if (n) return n.port1.onmessage = e => this.onMessage(e, { + isServiceWorker: !0 + }), s.postMessage(e, [n.port2]) + } + })), clearTimeout(n), e() + })) + })) + }() : Promise.resolve(!0), this.registeredMethods = { + ping: () => Object.keys(this.registeredMethods) + }, this.parentsRegisteredMethods = [], this.setParent = this.setParent.bind(this), this.setInAppBrowserWindow = this.setInAppBrowserWindow.bind(this), this.replyInAppBrowserWindow = this.replyInAppBrowserWindow.bind(this), this.onMessageInAppBrowserWindow = this.onMessageInAppBrowserWindow.bind(this), this.listen = this.listen.bind(this), this.close = this.close.bind(this), this.call = this.call.bind(this), this.onRequest = this.onRequest.bind(this), this.onMessage = this.onMessage.bind(this), this.on = this.on.bind(this); + } + setParent(e) { + this.parent = e, this.hasParent = !0; + } + setInAppBrowserWindow(e, t) { + this.iabWindow = e; + const n = -1 !== navigator.userAgent.indexOf("iPhone") ? "loadstop" : "loadstart"; + return this.iabWindow.addEventListener(n, (() => { + this.iabWindow.executeScript({ + code: "window._browserCommsIsInAppBrowser = true;" + }), clearInterval(this.iabInterval), this.iabInterval = setInterval((() => this.iabWindow.executeScript({ + code: "localStorage.getItem('portal:queue');" + }, (e => { + try { + return (e = JSON.parse(e?.[0])) && e.length && this.iabWindow.executeScript({ + code: "localStorage.setItem('portal:queue', '[]')" + }), e.map((e => t(e))) + } catch (t) { + return console.log(t, e) + } + }))), 100); + })), this.iabWindow.addEventListener("exit", (() => clearInterval(this.iabInterval))) + } + replyInAppBrowserWindow(e) { + const t = e.replace(/'/g, "'"); + return this.iabWindow.executeScript({ + code: `if(window._browserCommsOnMessage) window._browserCommsOnMessage('${t}')` + }) + } + onMessageInAppBrowserWindow(e) { + return this.onMessage({ + data: e, + source: { + postMessage: e => this.call("browser.reply", { + data: e + }) + } + }) + } + listen() { + this.isListening = !0, $.addEventListener("message", this.onMessage), "undefined" != typeof window && null !== window && (window._browserCommsOnMessage = e => this.onMessage({ + debug: !0, + data: (() => { + try { + return JSON.parse(e) + } catch (t) { + return console.log("error parsing", e), null + } + })() + })), this.clientValidation = this.client.call("ping", null, { + timeout: this.handshakeTimeout + }).then((e => { + this.hasParent && (this.parentsRegisteredMethods = this.parentsRegisteredMethods.concat(e)); + })).catch((() => null)), this.swValidation = this.ready.then((() => this.sw?.call("ping", null, { + timeout: this.handshakeTimeout + }))).then((e => { + this.parentsRegisteredMethods = this.parentsRegisteredMethods.concat(e); + })); + } + close() { + return this.isListening = !0, $.removeEventListener("message", this.onMessage) + } + async call(e, ...t) { + if (!this.isListening) return new Promise(((e, t) => t(new Error("Must call listen() before call()")))); + const n = (e, t) => { + const n = this.registeredMethods[e]; + if (!n) throw new Error("Method not found"); + return n.apply(null, t) + }; + if (await this.ready, this.hasParent) { + let s = null; + await this.clientValidation; + if (!(-1 !== this.parentsRegisteredMethods.indexOf(e))) return n(e, t); { + const o = await this.client.call(e, t); + try { + if ("ping" === e) { + const s = n(e, t); + return (o || []).concat(s) + } + return o + } catch (o) { + try { + if (s = o, !this.sw) return n(e, t); + try { + const s = await this.sw.call(e, t); + if ("ping" === e) { + const o = n(e, t); + return (s || []).concat(o) + } + return s + } catch { + return n(e, t) + } + } catch (e) { + throw "Method not found" === e.message && s ? s : e + } + } + } + } else { + if (!this.sw) return n(e, t); + if (await this.swValidation, -1 === this.parentsRegisteredMethods.indexOf(e)) return n(e, t); + try { + const s = await this.sw.call(e, t); + if ("ping" === e) { + const o = n(e, t); + return (s || []).concat(o) + } + return s + } catch (s) { + return n(e, t) + } + } + } + async onRequest(e, t) { + const n = []; + for (const s of Array.from(t.params || [])) s?._browserCommsGunCallback ? (t => { + n.push(((...n) => e(X({ + params: n, + callbackId: t.callbackId + })))); + })(s) : n.push(s); + e(function({ + requestId: e + }) { + return { + _browserComms: !0, + id: e, + acknowledge: !0 + } + }({ + requestId: t.id + })); + try { + const s = await this.call(t.method, ...Array.from(n)); + return e(z({ + requestId: t.id, + result: s + })) + } catch (n) { + return e(z({ + requestId: t.id, + rPCError: Z({ + code: Q, + data: n + }) + })) + } + } + onMessage(e, { + isServiceWorker: t + } = {}) { + try { + const s = "string" == typeof e.data ? JSON.parse(e.data) : e.data; + if (!G(s)) return; + const o = function(t) { + return "undefined" != typeof window && null !== window ? e.source?.postMessage(JSON.stringify(t), "*") : e.ports[0].postMessage(JSON.stringify(t)) + }; + if (null != (n = s)?.id && null != n.method) return this.onRequest(o, s); + if (G(s)) { + let n; + if (this.isParentValidFn(e.origin)) return n = t ? this.sw : this.client, n.resolve(s); + if (H(s)) return n = t ? this.sw : this.client, n.resolve(z({ + requestId: s.id, + rPCError: Z({ + code: F + }) + })); + throw new Error("Invalid origin") + } + throw new Error("Unknown RPCEntity type") + } catch (e) {} + var n; + } + on(e, t) { + this.registeredMethods[e] = t; + } +} +class te { + constructor() { + this.call = (e, t) => this.browserComms.call(e, t), this.listen = () => { + this.browserComms.listen(), this.browserComms.on("context.getCredentials", this.getCredentials), this.browserComms.on("dom.setStyle", this.setStyle); + }, this.setStyle = ({ + querySelector: e, + style: t + }) => { + const n = document.querySelector(e); + null == n || n.setAttribute("style", t); + }, this.getCredentials = () => this.credentials, this.setCredentials = e => { + this.credentials = e; + }, this.browserComms = new ee, this.credentials = {}; + } +} +class ne { + constructor(e) { + this.gatewayService = e; + } + addEmotesToMessage(e) { + return function(e, t) { + const n = e.authorExternalChannelId, + s = []; + for (const o of e.message.runs) + if ("string" == typeof o.text) { + const { + text: e + } = o; + let i = 0, + r = 0; + const a = y(e); + let l = !1; + for (const o of a) { + const a = t("🌝" === o ? "Kappa" : o, n); + a && (l = !0, i > 0 && s.push({ + text: e.substring(r, i) + }), s.push({ + emoji: a + }), r = i + o.length), i += o.length; + } + l ? s.push({ + text: e.substring(r, i) + }) : s.push(o); + } else if ("🌝" === o.emoji.emojiId) { + const e = t("Kappa", n); + e && s.push({ + emoji: e + }); + } else s.push(o); + return e.message.runs = s, e.message + }(e, ((e, t) => this.gatewayService.getEmote(e, t))) + } +} +class se extends e.exports.EventEmitter { + constructor(e) { + super(), this.backgroundService = e, this.extensionMappings = [], this.extensionMappingDomElements = new Map, this.handleTabUpdate(), window.addEventListener("message", (e => { + var t, n, s, o; + if ("tab:updated" === e.data.type) { + const i = (null === (n = null === (t = e.data) || void 0 === t ? void 0 : t.tab) || void 0 === n ? void 0 : n.url) === window.location.href; + if (e.data.tab && i) { + "complete" === (null === (o = null === (s = e.data) || void 0 === s ? void 0 : s.changeInfo) || void 0 === o ? void 0 : o.status) && this.handleTabUpdate(); + } + } + })); + } + async fetchExtensionMappings(e, t) { + var n; + const s$1 = await this.backgroundService.fetch("/spore/fetch-extension-mappings", { + channelId: e, + extensionVersion: t + }); + s(s$1) && (this.extensionMappings = null !== (n = s$1.body) && void 0 !== n ? n : []), this.emit("inject-mappings", this.extensionMappings); + } + async handleTabUpdate() { + this.emit("cleanup-mappings", this.extensionMappingDomElements); + const e = setInterval((async () => { + const o = n(); + if (o) { + clearInterval(e); + const t$1 = o.channelId, + i = e$1(!1) && t(!1); + t$1 && i && await this.fetchExtensionMappings(t$1, "3.0.1"); + } + }), 1e3); + } + setDomElementMapping(e, t) { + this.extensionMappingDomElements.set(e, t); + } +} +class oe extends e.exports.EventEmitter { + constructor(e, t) { + super(), this.backgroundService = e, this.channelId = t, this.monthBadgeList = [], this.emoteCache = new Map, this.sporeUserEmoteCache = new Map, this.sporeBadgeCache = new Map, e.getLiveStorageValue("auth.token2", dt).then((e => this.myUserInfo = e)).catch((e => console.error("error parsing auth.token", e))), this.fetchUserInfo().then((() => { + this.fetchEmotes(), this.fetchBadges(), this.fetchSporeOrgId().then((() => { + this.fetchCurrentUserSporeInfo(); + })); + })), setInterval((() => { + this.fetchEmotes(), this.fetchBadges(); + }), c.FIVE_MINUTE_MS), setInterval((() => { + this.fetchUserInfo(); + }), c.ONE_MINUTE_MS), setInterval((() => { + this.fetchCurrentUserSporeInfo(); + }), 5 * c.ONE_SECOND_MS); + } + async fetchBadges() { + const e = await this.backgroundService.fetch("/gateway/badges"); + if (!s(e)) return; + const t = e.body.filter(h).sort(((e, t) => e.months - t.months)), + n = e.body.filter(m); + this.monthBadgeList = t.map((e => [e.months, { + thumbnails: [{ + url: e.url, + width: 16, + height: 16 + }] + }])), this.sporeBadgeCache.clear(); + for (const e of n) { + const t = g(e); + t && this.sporeBadgeCache.set(e.slug, t); + } + console.log("monthbadges", this.monthBadgeList), console.log("sporeBadgeCache", this.sporeBadgeCache), this.emit("monthBadges", this.monthBadgeList), this.emit("sporeBadges", this.sporeBadgeCache); + } + async fetchEmotes() { + const e = await this.backgroundService.fetch("/gateway/emotes"); + if (s(e)) { + this.emoteCache.clear(); + for (const t of e.body) { + const e = b(t); + e && this.emoteCache.set(t.name, e); + } + console.log("emoteCache", this.emoteCache), this.emit("emotes", this.emoteCache); + } + } + async fetchUserInfo() { + const e = await this.backgroundService.fetch("/gateway/users", this.channelId); + s(e) && (this.infoCache = new Map(e.body), console.log("this.infoCache", this.infoCache), this.emit("users", this.infoCache)); + } + async fetchSporeOrgId() { + var e; + const t = await this.backgroundService.fetch("/spore/fetch-youtube-channel", this.channelId); + s(t) && (this.sporeOrgId = null === (e = t.body) || void 0 === e ? void 0 : e.sporeOrgId); + } + async fetchCurrentUserSporeInfo() { + var e, t, n, s$1, o; + console.log("spore fetching current user", null === (t = null === (e = this.myUserInfo) || void 0 === e ? void 0 : e.value) || void 0 === t ? void 0 : t.sub); + const i = null === (n = this.myUserInfo.value) || void 0 === n ? void 0 : n.sub; + if (i && this.sporeOrgId) try { + const e = await this.backgroundService.fetch("/spore/fetch-spore-user", { + connectionSourceId: i, + sporeOrgId: this.sporeOrgId, + preferCache: !1 + }); + if (!s(e)) return; + if (this.mySporeUserInfo = e.body, console.log("spore user info", this.mySporeUserInfo), (null === (s$1 = null == e ? void 0 : e.body) || void 0 === s$1 ? void 0 : s$1.emotes) && (null === (o = null == e ? void 0 : e.body) || void 0 === o ? void 0 : o.serializedEmotes)) { + const t = new Map; + for (const n of e.body.serializedEmotes) { + const e = b(n); + e && !this.sporeUserEmoteCache.get(n.name) && (t.set(n.name, e), this.sporeUserEmoteCache.set(n.name, e)); + } + this.emit("spore-user-emotes", t); + } + } catch (e) { + console.warn("error fetching spore user", e); + } + } + getSerializedMetadata(e) { + const t = e.links.find((t => t.prv === e.prv)), + n = { + a: null == t ? void 0 : t.name, + b: e.meta.sub, + c: e.meta.col + }; + return Object.values(n).filter((e => void 0 !== e)).length > 0 ? n : void 0 + } + getUserInfo(e) { + var t, n, s; + if ((null === (n = null === (t = this.myUserInfo) || void 0 === t ? void 0 : t.value) || void 0 === n ? void 0 : n.sub) === e) { + const e = this.getSerializedMetadata(this.myUserInfo.value); + if (e) return e + } + return null === (s = this.infoCache) || void 0 === s ? void 0 : s.get(e) + } + getSporeBadges(e) { + var t, n, s; + const o = []; + if (this._isCurrentUser(e)) { + const e = null !== (n = null === (t = this.mySporeUserInfo) || void 0 === t ? void 0 : t.badges) && void 0 !== n ? n : []; + if (e) + for (const t of e) { + const e = this.sporeBadgeCache.get(t); + e && o.push(e); + } + } else { + const t = this.infoCache.get(e); + if (t) { + const e = new Set(null !== (s = null == t ? void 0 : t.e) && void 0 !== s ? s : []); + if (e) + for (const t of e) { + const e = this.sporeBadgeCache.get(t); + e && o.push(e); + } + } + } + return o + } + getEmote(e, t) { + var n, s, o, i, r, a, l; + const c = null === (n = this.emoteCache) || void 0 === n ? void 0 : n.get(e); + if (null == c ? void 0 : c.isSporeEmote) + if (this._isCurrentUser(t)) { + const t = null !== (o = null === (s = this.mySporeUserInfo) || void 0 === s ? void 0 : s.emotes) && void 0 !== o ? o : []; + if ((null === (i = this.mySporeUserInfo) || void 0 === i ? void 0 : i.emotes) && !t.includes(e)) return + } else { + const n = null !== (a = null === (r = this.infoCache.get(t)) || void 0 === r ? void 0 : r.d) && void 0 !== a ? a : []; + if (!this.infoCache.get(t)) return; + if ((null === (l = this.infoCache.get(t)) || void 0 === l ? void 0 : l.d) && !n.includes(e)) return + } return c + } + _isCurrentUser(e) { + var t; + return e === (null === (t = this.myUserInfo.value) || void 0 === t ? void 0 : t.sub) + } +} +/*! + * cookie + * Copyright(c) 2012-2014 Roman Shtylman + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + */ +var ie = function(e, t) { + if ("string" != typeof e) throw new TypeError("argument str must be a string"); + for (var n = {}, s = t || {}, o = e.split(ae), i = s.decode || re, r = 0; r < o.length; r++) { + var a = o[r], + l = a.indexOf("="); + if (!(l < 0)) { + var c = a.substr(0, l).trim(), + u = a.substr(++l, a.length).trim(); + '"' == u[0] && (u = u.slice(1, -1)), null == n[c] && (n[c] = le(u, i)); + } + } + return n + }, + re = decodeURIComponent, + ae = /; */; + +function le(e, t) { + try { + return t(e) + } catch (t) { + return e + } +} + +function ce(e, t, n = 15) { + var s, o; + if (!e) return; + if (n < 0) return; + const i = function(e) { + var t, n; + if (e.iframeQuerySelector) { + const s = document.querySelector(e.querySelector), + o = null !== (t = null == s ? void 0 : s.contentDocument) && void 0 !== t ? t : null === (n = null == s ? void 0 : s.contentWindow) || void 0 === n ? void 0 : n.document; + if (!o) return; + return o.querySelector(e.iframeQuerySelector) + } + return document.querySelector(e.querySelector) + }(e), + a = function(e) { + var t, n; + if (e.iframeQuerySelector) { + const s = document.querySelector(e.querySelector), + o = null !== (t = null == s ? void 0 : s.contentDocument) && void 0 !== t ? t : null === (n = null == s ? void 0 : s.contentWindow) || void 0 === n ? void 0 : n.document; + if (!o) return; + return o.getElementById(e.slug) + } + return document.getElementById(e.slug) + }(e); + if (i && !a) { + const n = document.createElement("iframe"); + n.src = e.iframeUrl, n.setAttribute("key", e.slug), n.setAttribute("style", c.DEFAULT_EXTENSION_MAPPING_IFRAME_STYLES), n.id = e.slug, "append" === e.domAction ? i.appendChild(n) : "before" === e.domAction ? null === (s = i.parentNode) || void 0 === s || s.insertBefore(n, i) : "after" === e.domAction ? null === (o = i.parentNode) || void 0 === o || o.insertBefore(n, i.nextSibling) : "replace" === e.domAction && i.replaceWith(n), t.setDomElementMapping(null == e ? void 0 : e.id, n); + } else setTimeout((() => { + ce(e, t, n - 1); }), 250); } -e('/* Overwrite colors on verified/owner names */\nyt-live-chat-author-chip[is-highlighted] #author-name.owner.yt-live-chat-author-chip,\n#author-name.owner.yt-live-chat-author-chip {\n color: var(--yt-live-chat-author-chip-owner-text-color) !important;\n}\n\nyt-live-chat-author-chip[is-highlighted] #author-name.yt-live-chat-author-chip {\n color: var(--yt-live-chat-author-chip-verified-text-color) !important;\n}\n\n\nbody[data-mogul-chat-styles] #author-photo.yt-live-chat-text-message-renderer {\n\tdisplay: none;\n}\n\nbody[data-mogul-chat-styles] yt-live-chat-text-message-renderer {\n\tmin-height: 24px;\n}\n\nbody[data-mogul-chat-styles] yt-live-chat-author-chip {\n\tdirection: rtl;\n}\n\nbody[data-mogul-chat-styles] yt-live-chat-author-chip::before {\n\tcontent: ":";\n}\n\nbody[data-mogul-chat-styles] #author-name.member.yt-live-chat-author-chip,\n#author-name.moderator.yt-live-chat-author-chip {\n font-weight: 800 !important;\n}\n\nbody[data-mogul-chat-styles] yt-live-chat-author-badge-renderer.yt-live-chat-author-chip {\n margin: 0 4px 0 0 !important;\n}\n\n#message.yt-live-chat-text-message-renderer .emoji.yt-live-chat-text-message-renderer {\n width: auto !important;\n}'), e$1((() => { - const g = null !== document.querySelector("yt-live-chat-app"); - new o$1, e$2("content/youtube/inject.js"), g ? a() : c(); -})); \ No newline at end of file +var ue; +async function de(e, t) { + await customElements.whenDefined(e); + const s = customElements.get(e); + if (!s) return void console.warn(`Polymer: ${e} not found`); + const o = s.prototype[t.functionName]; + s.prototype[t.functionName] = function(...e) { + if (t.ludwigOnly && !e$1()) return o.apply(this, e); + if (console.log("%cRule:", "color: hsl(0deg, 100%, 70%); font-weight: bold;", t), console.log("%cArgs:", "color: hsl(30deg, 100%, 70%); font-weight: bold;", e), t.type === ue.OverrideFunction) try { + return t.function.apply(this, e) + } catch (e) { + console.error(JSON.stringify(t)), console.error(e); + } + if (t.type === ue.RunBefore) try { + t.function.apply(this, e); + } catch (e) { + console.error(e); + } + let s = o.apply(this, e); + if (t.type === ue.RunAfter) try { + s = t.function.apply(this, [s]); + } catch (e) { + console.error(e); + } + return console.log("%cResult:", "color: hsl(60deg, 100%, 70%); font-weight: bold;", s), s + }; +}! function(e) { + e[e.OverrideFunction = 0] = "OverrideFunction", e[e.RunBefore = 1] = "RunBefore", e[e.RunAfter = 2] = "RunAfter"; +}(ue || (ue = {})); +const he = (e, t, { + LudwigOnly: n + }) => ({ + functionName: e, + function: t, + ludwigOnly: n || !1, + type: ue.OverrideFunction + }), + me = (e, t, { + LudwigOnly: n + }) => ({ + functionName: e, + function: t, + ludwigOnly: n || !1, + type: ue.RunBefore + }); + +function fe(e, t, s) { + de("yt-live-chat-item-list-renderer", me("handleAddChatItemAction_", (function(n) { + n.item.liveChatTextMessageRenderer && (t.addAliasesToMessage(n.item.liveChatTextMessageRenderer), e.addEmotesToMessage(n.item.liveChatTextMessageRenderer)); + }), { + LudwigOnly: true + })), de("yt-live-chat-text-input-field-renderer", ((e, t, { + LudwigOnly: n + }) => ({ + functionName: e, + function: t, + ludwigOnly: n || !1, + type: ue.RunAfter + }))("calculateLiveChatRichMessageInput_", (function(e) { + var t; + if (!(null == e ? void 0 : e.textSegments)) return e; + for (const n of e.textSegments) + if (null === (t = n.emojiId) || void 0 === t ? void 0 : t.startsWith("mogultv")) { + const [, e] = n.emojiId.split("-"); + delete n.emojiId, n.text = e; + } return e + }), { + LudwigOnly: true + })), s.on("emotes", (e => { + if (!e$1()) return; + const t = document.querySelector("yt-live-chat-item-list-renderer"); + if (null == t ? void 0 : t.emojiManager) { + if (t.emojiManager._mogulTvLoaded) return; + t.emojiManager._mogulTvLoaded = !0, t.emojiManager.load(Array.from(e.values()).filter((e => !(null == e ? void 0 : e.isSporeEmote)))); + } else console.warn("Cannot find chat list"); + })), s.on("spore-user-emotes", (e => { + if (!e$1()) return; + const t = document.querySelector("yt-live-chat-item-list-renderer"); + (null == t ? void 0 : t.emojiManager) ? t.emojiManager.load([...e.values()]): console.warn("Cannot find chat list"); + })); +} + +function pe(e) { + return e ? e._mtvType ? e._mtvType : e.icon ? e.icon.iconType.toLowerCase() : e.customThumbnail ? "member" : "" : "" +} +async function ge(e) { + de("yt-live-chat-author-badge-renderer", he("computeType_", (e => pe(e.liveChatAuthorBadgeRenderer)), { + LudwigOnly: true + })), de("yt-live-chat-author-chip", he("computeAuthorType_", (function(t) { + var n, s; + const o = this.$["author-name"]; + if (o) { + let t; + const i = null === (n = this.parentElement) || void 0 === n ? void 0 : n.parentElement, + r = null === (s = null == i ? void 0 : i.data) || void 0 === s ? void 0 : s.authorExternalChannelId; + if (r) { + const n = e.getUserInfo(r); + (null == n ? void 0 : n.c) && (t = n.c); + } + t || (t = a(this.authorName.simpleText)), o.style.color = t; + } + return function(e) { + if (!e) return ""; + for (const t of e) { + if (!t.liveChatAuthorBadgeRenderer) continue; + const e = pe(t.liveChatAuthorBadgeRenderer); + if ("verified" !== e) return e + } + return "" + }(t) + }), { + LudwigOnly: true + })); +} + +function ve(e, t, n, s) { + fe(s, n, t), async function(e) { + const t = await e.getLiveStorageValue("settings.chatBatching"); + de("yt-timed-continuation", me("dataChanged_", (function() { + t.value && (this.data.timeoutMs /= 3 * Math.random() + 2); + }), { + LudwigOnly: !0 + })), de("yt-live-chat-renderer", me("preprocessActions_", (function(e) { + const n = Object.getPrototypeOf(this.smoothedQueue_); + for (const e in n) + if (e.includes("emitSmoothedMessages")) { + n[e] = function() { + if (this.nextUpdateId_ = null, this.messageQueue_.length) { + let s = 1e4; + this.estimatedUpdateInterval_ && (s = this.estimatedUpdateInterval_ - Date.now() + this.lastUpdateTime_); + const o = this.messageQueue_.length < s / 80 ? 1 : Math.ceil(this.messageQueue_.length / (s / 80)), + i = this.messageQueue_.splice(0, o); + if (this.callback && this.callback(i[0]), this.messageQueue_.length) { + let i = 1; + t.value || (1 === o ? (i = s / this.messageQueue_.length, i *= Math.random() + .5, i = Math.min(1e3, i), i = Math.max(80, i)) : i = 80), this.nextUpdateId_ = window.setTimeout(n[e].bind(this), i); + } + } + }; + break + } return e + }), { + LudwigOnly: !0 + })); + }(e), ge(t); +} +e$2("\n/* Make the masthead transparent unless we are hovering it */\nbody[data-mogul-theater-mode] #masthead-container {\n opacity: 0.1;\n transition: opacity .2s ease;\n}\n\nbody[data-mogul-theater-mode] #masthead-container:hover {\n opacity: 1;\n}\n\n\n@media screen and (min-width: 1014px) {\n /* Make chat fill screen vertically */\n body[data-mogul-theater-mode] #chat.ytd-watch-flexy {\n height: calc(100vh - 56px) !important;\n width: var(--ytd-watch-flexy-sidebar-width);\n position: absolute;\n top: 56px;\n right: 0;\n }\n\n body[data-mogul-theater-mode] #player-theater-container.ytd-watch-flexy {\n width: calc(100vw - var(--ytd-watch-flexy-sidebar-width) - var(--ytd-watch-flexy-scrollbar-width)) !important;\n max-width: calc(100vw - var(--ytd-watch-flexy-sidebar-width) - var(--ytd-watch-flexy-scrollbar-width)) !important;\n height: calc(100vh - 56px) !important;\n max-height: calc(100vh - 56px) !important;\n }\n}"); +const we = null !== document.querySelector("yt-live-chat-app"), + ye = new e$3; +if (we) { + const e = setInterval((() => { + const n$1 = n(), + s = null == n$1 ? void 0 : n$1.channelId; + if (s) { + clearInterval(e); + const t = new oe(ye, s), + n = new ne(t), + o = new C(t); + ve(ye, t, o, n); + } + }), c.ONE_SECOND_MS); +} else { + !async function(e) { + async function t() { + const t = document.querySelector("ytd-watch-flexy"), + s = (null == t ? void 0 : t.hasAttribute("theater")) || !1, + o = (null == t ? void 0 : t.hasAttribute("fullscreen")) || !1, + i = await e.getStorage("settings.theaterMode"), + r = e$1(!1); + return s && !o && i && r + } + let s = await t(); + setInterval((async () => { + await t() ? (document.body.setAttribute("data-mogul-theater-mode", ""), s || window.dispatchEvent(new Event("resize")), s = !0) : (s = !1, document.body.removeAttribute("data-mogul-theater-mode")); + }), 250); + }(ye), async function(e) { + if (!window.ytcfg) return; + const t = { + key: window.ytcfg.get("INNERTUBE_API_KEY"), + authUser: window.ytcfg.get("SESSION_INDEX"), + pageId: window.ytcfg.get("DELEGATED_SESSION_ID"), + href: window.location.href, + context: window.ytcfg.get("INNERTUBE_CONTEXT") + }; + n = await e$4(Object.assign(Object.assign({}, t), { + cookies: ie(document.cookie) + })), s = await e.fetch("/auth/@me"), (!n.success || !s.meta.isSuccess || n.data.id !== (null === (o = s.body) || void 0 === o ? void 0 : o.sub) || !(null === (i = s.body) || void 0 === i ? void 0 : i.googleId)) && await e.fetch("/auth/login", t); + var n, s, o, i; + }(ye); + const e = new te; + e.listen(); + const s = new se(ye); + !async function(e, t, n) { + if (!window.ytcfg) return; + const s = { + sourceType: "youtube", + token: (await e.fetch("/auth/token")).body, + version: "3.0.1" + }; + n.setCredentials(s), t.on("cleanup-mappings", (e => { + ! function(e) { + if (e) + for (const t of e.values()) t.remove(); + }(e); + })), t.on("inject-mappings", (e => { + e.forEach((e => ce(e, t))); + })); + }(ye, s, e), setInterval((() => { + const e = document.querySelector("ytd-live-chat-frame iframe"); + if (e && !e.src.includes("OpXmfbXQaCyUDUFX")) { + const n$1 = n(); + e.src += `#OpXmfbXQaCyUDUFX=${encodeURIComponent(JSON.stringify(n$1))}`; + } + }), c.ONE_SECOND_MS); +} \ No newline at end of file diff --git a/content/youtube/inject.js b/content/youtube/inject.js index b738650..0083c77 100644 --- a/content/youtube/inject.js +++ b/content/youtube/inject.js @@ -1,427 +1,15 @@ -import { - e -} from '../../index-6137f488.js'; -import { - e as e$2 -} from '../../background.injected-af36b849.js'; -import { - n, - e as e$4 -} from '../../get_stream_details-b6177000.js'; -import { - d as dt, - t -} from '../../parse_token.util-ed270559.js'; -import { - e as e$3 -} from '../../fetch_youtube-71c76849.js'; -import { - s -} from '../../router.interface-6cdbc015.js'; -import { - e as e$1 -} from '../../style-inject.es-a0e1a0ba.js'; +import { e } from '../../index-2879cf47.js'; +import { e as e$3 } from '../../background.injected-4f2074c6.js'; +import { n, e as e$1, t } from '../../get_stream_details-70a52c12.js'; +import { d as dt, t as t$1 } from '../../parse_token.util-73818eef.js'; +import { c, e as e$4, a } from '../../constants-27e12ede.js'; +import { s } from '../../router.interface-6cdbc015.js'; +import { e as e$2 } from '../../style-inject.es-a0e1a0ba.js'; -function u(t) { - if (!t) return 0; - t = t.toLowerCase(); - const e = /\((.+)\)/.exec(t); - if (!e) return 1; - const n = e[1].split(/\s/), - i = parseInt(n[0]); - return isNaN(i) ? 0 : n[1].startsWith("year") ? 12 * parseInt(n[0]) : parseInt(n[0]) -} - -function d(t, e) { - const n = e; - for (let e = 0; e < n.length; e++) - if (n[e][0] > t) return n[e - 1][1]; - return n[n.length - 1][1] -} - -function l(t, e, n, i) { - const a = e(t.authorExternalChannelId); - ! function(t, e) { - (null == e ? void 0 : e.a) && (t.authorName = { - simpleText: e.a - }); - }(t, a), - function(t, e) { - var n, i; - t.authorBadges || (t.authorBadges = []); - for (const a of t.authorBadges) { - const t = a.liveChatAuthorBadgeRenderer; - (null === (n = t.icon) || void 0 === n ? void 0 : n.iconType) ? t._mtvType = null === (i = t.icon) || void 0 === i ? void 0 : i.iconType.toLowerCase(): t.customThumbnail && (t._mtvType = "member"), "moderator" === t._mtvType && (delete t.icon, t._mtvType = "moderator", t.customThumbnail = { - thumbnails: [{ - url: e, - width: 18, - height: 18 - }] - }); - } - }(t, i), - function(t, e, n) { - if ((null == n ? void 0 : n.b) && !(n.b <= 0)) - for (const i of t.authorBadges) { - const t = i.liveChatAuthorBadgeRenderer; - if ("member" !== t._mtvType) continue; - const a = u(t.tooltip); - if (0 === a) continue; - const o = a + n.b, - r = `Member (${o} months)`, - s = d(o, e); - t.customThumbnail = s, delete t.icon, t.tooltip = r, t.accessibility.accessibilityData.label = r; - } - }(t, n, a); -} -const h = /[\s.,?!]/; - -function f(t) { - const e = []; - let n = 0; - for (let i = 0; i < t.length - 1; i++) h.test(t[i]) !== h.test(t[i + 1]) && (e.push(t.substring(n, i + 1)), n = i + 1); - return e.push(t.substring(n)), e -} - -function m(t$1) { - let e; - if (t$1.provider === t.Twitch) e = `https://static-cdn.jtvnw.net/emoticons/v2/${t$1.id}/static/dark/1.0`; - else if (t$1.provider === t.FFZ) e = `https://cdn.frankerfacez.com/emote/${t$1.id}/1`; - else { - if (t$1.provider !== t.BTTV) return; - e = `https://cdn.betterttv.net/emote/${t$1.id}/1x`; - } - return { - emojiId: "mogultv-" + t$1.name + "-" + t$1.id, - image: { - thumbnails: [{ - url: e - }], - accessibility: { - accessibilityData: { - label: t$1.name - } - } - }, - isCustomEmoji: !0, - searchTerms: [t$1.name], - shortcuts: [":" + t$1.name + ":", t$1.name] - } -} -const g = ["#ff0000", "#009000", "#b22222", "#ff7f50", "#9acd32", "#ff4500", "#2e8b57", "#daa520", "#d2691e", "#5f9ea0", "#1e90ff", "#ff69b4", "#00ff7f", "#a244f9"]; +const h=e=>void 0!==(null==e?void 0:e.months),m=e=>void 0!==(null==e?void 0:e.slug);function f(e){if(!e)return 0;e=e.toLowerCase();const t=/\((.+)\)/.exec(e);if(!t)return 1;const n=t[1].split(/\s/),s=parseInt(n[0]);return isNaN(s)?0:n[1].startsWith("year")?12*parseInt(n[0]):parseInt(n[0])}function p(e,t){const n=t;for(let t=0;te)return n[t-1][1];return n[n.length-1][1]}function g(e){var t,n,s;return {liveChatAuthorBadgeRenderer:{accessibility:{accessibilityData:{label:null!==(t=e.slug)&&void 0!==t?t:"none"}},tooltip:null!==(n=e.slug)&&void 0!==n?n:"none",customThumbnail:{thumbnails:[{url:e.url,width:18,height:18}],accessibility:{accessibilityData:{label:null!==(s=e.slug)&&void 0!==s?s:"none"}}}}}}function v(e,t,n,s,o){const i=t(e.authorExternalChannelId);!function(e,t){(null==t?void 0:t.a)&&(e.authorName={simpleText:t.a});}(e,i),function(e,t){var n,s;e.authorBadges||(e.authorBadges=[]);for(const o of e.authorBadges){const e=o.liveChatAuthorBadgeRenderer;(null===(n=e.icon)||void 0===n?void 0:n.iconType)?e._mtvType=null===(s=e.icon)||void 0===s?void 0:s.iconType.toLowerCase():e.customThumbnail&&(e._mtvType="member"),"moderator"===e._mtvType&&(delete e.icon,e._mtvType="moderator",e.customThumbnail={thumbnails:[{url:t,width:18,height:18}]});}}(e,o),(null==s?void 0:s.length)&&function(e,t,n){if((null==n?void 0:n.b)&&!(n.b<=0))for(const s of e.authorBadges){const e=s.liveChatAuthorBadgeRenderer;if("member"!==e._mtvType)continue;const o=f(e.tooltip);if(0===o)continue;const i=o+n.b,r=`Member (${i} months)`,a=p(i,t);e.customThumbnail=a,delete e.icon,e.tooltip=r,e.accessibility.accessibilityData.label=r;}}(e,s,i),function(e,t){const n=t(e.authorExternalChannelId);if(e.authorBadges||(e.authorBadges=[]),n)for(const t of n)e.authorBadges.push(t);}(e,n);}const w=/[\s.,?!]/;function y(e){const t=[];let n=0;for(let s=0;sthis.gatewayService.getUserInfo(e)),(e=>this.gatewayService.getSporeBadges(e)),this.gatewayService.monthBadgeList,"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAABg2lDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV/TiiIVBzuIOGRonSyIijpqFYpQIdQKrTqYXPoFTRqSFBdHwbXg4Mdi1cHFWVcHV0EQ/ABxc3NSdJES/5cUWsR4cNyPd/ced+8AoVFhmhUaAzTdNtPJhJjNrYrdrwgjBGAaMZlZxpwkpeA7vu4R4OtdnGf5n/tz9Kl5iwEBkXiWGaZNvEE8tWkbnPeJI6wkq8TnxKMmXZD4keuKx2+ciy4LPDNiZtLzxBFisdjBSgezkqkRTxJHVU2nfCHrscp5i7NWqbHWPfkLw3l9ZZnrNIeRxCKWIEGEghrKqMBGnFadFAtp2k/4+Idcv0QuhVxlMHIsoAoNsusH/4Pf3VqFiXEvKZwAul4c5yMGdO8CzbrjfB87TvMECD4DV3rbX20AM5+k19ta9Ajo3wYurtuasgdc7gCDT4Zsyq4UpCkUCsD7GX1TDhi4BXrXvN5a+zh9ADLUVeoGODgERoqUve7z7p7O3v490+rvB3pIcqqJKL5aAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5QwEARQDdqq2HwAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAGkSURBVDjLpdSxS5tBGMfx7+V9JamLGbSQNNAQdBBJhZKWLPkHxKmQEgd9xUFwCRQKHe1cKHSztCCmLyQlkriULu2kSyBQkCCCg0bQCJrhTSUxoW+8DuLRNPqq8aa7hx8f7nk4TpDXDCQfAC+9rTKCt4KctgcEnZKJ/pcYoRmG+oewz21Wdlb4+PvzvxFLvwlJD5vEx+Lomg5A6ahE/nTt/5hXd0Le+98x9WRKnUtHJSYKkxzLalfW5djSaKILOZCHqvZQDLIwMO8MPdOf4h/wq3Or3epAAuIRP6M/MEYMZyjY1zm6SCBC8XlBId+j3wj7wuiui+lcO6PVszxNu4lH93RiFHBrbsK+MAAnjRNnKBVaxq25u+qRQETt7bZNavfL9a2lQstMj08jhHB8idmtLF8b2atvdBUipaTVbqk2K7UKme0MrytvVEa/DWJumhi7c8QfvKD8p0zR/tV1O0FOk7dBblougE+Pl+6FKGijukGtWesZUZBZT5NcT2KdWT0hl8O2AK9ZT8M6xAZjzO8v3PFLkmVBTpsFuQgi2Nu/Ji3QXv0FPBynaffELJkAAAAASUVORK5CYII=");}}var I={exports:{}},A="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(A){var S=new Uint8Array(16);I.exports=function(){return A(S),S};}else {var M=new Array(16);I.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),M[t]=e>>>((3&t)<<3)&255;return M};}for(var E=[],B=0;B<256;++B)E[B]=(B+256).toString(16).substr(1);var x,k,R=function(e,t){var n=t||0,s=E;return [s[e[n++]],s[e[n++]],s[e[n++]],s[e[n++]],"-",s[e[n++]],s[e[n++]],"-",s[e[n++]],s[e[n++]],"-",s[e[n++]],s[e[n++]],"-",s[e[n++]],s[e[n++]],s[e[n++]],s[e[n++]],s[e[n++]],s[e[n++]]].join("")},T=I.exports,O=R,U=0,_=0;var q=function(e,t,n){var s=t&&n||0,o=t||[],i=(e=e||{}).node||x,r=void 0!==e.clockseq?e.clockseq:k;if(null==i||null==r){var a=T();null==i&&(i=x=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),null==r&&(r=k=16383&(a[6]<<8|a[7]));}var l=void 0!==e.msecs?e.msecs:(new Date).getTime(),c=void 0!==e.nsecs?e.nsecs:_+1,u=l-U+(c-_)/1e4;if(u<0&&void 0===e.clockseq&&(r=r+1&16383),(u<0||l>U)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");U=l,_=c,k=r;var d=(1e4*(268435455&(l+=122192928e5))+c)%4294967296;o[s++]=d>>>24&255,o[s++]=d>>>16&255,o[s++]=d>>>8&255,o[s++]=255&d;var h=l/4294967296*1e4&268435455;o[s++]=h>>>8&255,o[s++]=255&h,o[s++]=h>>>24&15|16,o[s++]=h>>>16&255,o[s++]=r>>>8|128,o[s++]=255&r;for(var m=0;m<6;++m)o[s+m]=i[m];return t||O(o)},N=I.exports,j=R;var L=function(e,t,n){var s=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||N)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[s+i]=o[i];return t||j(o)},P=q,D=L,W=D;W.v1=P,W.v4=D;var V=W;const F=100,Q=-1,K={"-32601":"Method not found"};K[F]="Invalid origin",K[Q]="Error";class J{constructor({postMessage:e,timeout:t=3e3}={}){this.postMessage=e,this.timeout=t,this.pendingRequests={},this.callbackFunctions={},this.call=this.call.bind(this),this.resolve=this.resolve.bind(this),this.resolveRPCResponse=this.resolveRPCResponse.bind(this);}call(e,t,n={}){const{timeout:s=this.timeout}=n,o=function(){let e=null,t=null;const n=new Promise(((n,s)=>(e=n,t=s,t)));return n.resolve=e,n.reject=t,n}(),i=[];for(const e of Array.from(t||[]))if("function"==typeof e){const t={_browserComms:!0,_browserCommsGunCallback:!0,callbackId:V.v4()};this.callbackFunctions[t.callbackId]=e,i.push(t);}else i.push(e);const r=function({method:e,params:t}){if(null==t)throw new Error("Must provide params");for(const e of Array.from(t))if("function"==typeof e)throw new Error("Functions are not allowed. Use RPCCallback instead.");return {_browserComms:!0,id:V.v4(),method:e,params:t}}({method:e,params:i});this.pendingRequests[r.id]={reject:o.reject,resolve:o.resolve,isAcknowledged:!1};try{this.postMessage(JSON.stringify(r),"*");}catch(e){return o.reject(e),o}return setTimeout((()=>{if(!this.pendingRequests[r.id].isAcknowledged)return o.reject(new Error("Message Timeout"))}),s),o}resolve(e){switch(!1){case!(!0===e?.acknowledge):return this.resolveRPCRequestAcknowledgement(e);case!H(e):return this.resolveRPCResponse(e);case!function(e){return e?.callbackId&&null!=e.params}(e):return this.resolveRPCCallbackResponse(e);default:throw new Error("Unknown response type")}}resolveRPCResponse(e){const t=this.pendingRequests[e.id];if(null==t)throw new Error("Request not found");t.isAcknowledged=!0;const{result:n,error:s}=e;return s?t.reject(s.data||new Error(s.message)):null!=n?t.resolve(n):t.resolve(null),null}resolveRPCRequestAcknowledgement(e){const t=this.pendingRequests[e.id];if(null==t)throw new Error("Request not found");return t.isAcknowledged=!0,null}resolveRPCCallbackResponse(e){const t=this.callbackFunctions[e.callbackId];if(null==t)throw new Error("Callback not found");return t.apply(null,e.params),null}}function X({params:e,callbackId:t}){return {_browserComms:!0,callbackId:t,params:e}}function z({requestId:e,result:t=null,rPCError:n=null}){return {_browserComms:!0,id:e,result:t,error:n}}function Z({code:e,data:t=null}){return {_browserComms:!0,code:e,message:K[e],data:t}}function G(e){return e?._browserComms}function H(e){return e?.id&&(void 0!==e.result||void 0!==e.error)}const Y=1e4,$="undefined"!=typeof window?window:self;class ee{constructor(e={}){const{timeout:t,shouldConnectToServiceWorker:n,handshakeTimeout:s=Y,isParentValidFn:o=(()=>!0)}=e;this.handshakeTimeout=s,this.isParentValidFn=o,this.isListening=!1;const i=globalThis?.window?._browserCommsIsInAppBrowser||-1!==navigator.userAgent.indexOf("/InAppBrowser");this.hasParent="undefined"!=typeof window&&window.self!==window.top||i,this.parent=globalThis?.window?.parent,this.client=new J({timeout:t,postMessage:(e,t)=>{if(i){let t=(()=>{try{return JSON.parse(localStorage["portal:queue"])}catch(e){return null}})();return null==t&&(t=[]),t.push(e),localStorage["portal:queue"]=JSON.stringify(t),localStorage["portal:queue"]}return this.parent?.postMessage(e,t)}}),this.ready=n?function(){return new Promise(((e,t)=>{const n=setTimeout(e,5e3);return navigator?.serviceWorker?.ready.catch((function(){return console.log("caught sw error"),null})).then((t=>{const s=t?.active;return s&&(this.sw=new J({timeout:this.timeout,postMessage:(e,t)=>{const n=new MessageChannel;if(n)return n.port1.onmessage=e=>this.onMessage(e,{isServiceWorker:!0}),s.postMessage(e,[n.port2])}})),clearTimeout(n),e()}))}))}():Promise.resolve(!0),this.registeredMethods={ping:()=>Object.keys(this.registeredMethods)},this.parentsRegisteredMethods=[],this.setParent=this.setParent.bind(this),this.setInAppBrowserWindow=this.setInAppBrowserWindow.bind(this),this.replyInAppBrowserWindow=this.replyInAppBrowserWindow.bind(this),this.onMessageInAppBrowserWindow=this.onMessageInAppBrowserWindow.bind(this),this.listen=this.listen.bind(this),this.close=this.close.bind(this),this.call=this.call.bind(this),this.onRequest=this.onRequest.bind(this),this.onMessage=this.onMessage.bind(this),this.on=this.on.bind(this);}setParent(e){this.parent=e,this.hasParent=!0;}setInAppBrowserWindow(e,t){this.iabWindow=e;const n=-1!==navigator.userAgent.indexOf("iPhone")?"loadstop":"loadstart";return this.iabWindow.addEventListener(n,(()=>{this.iabWindow.executeScript({code:"window._browserCommsIsInAppBrowser = true;"}),clearInterval(this.iabInterval),this.iabInterval=setInterval((()=>this.iabWindow.executeScript({code:"localStorage.getItem('portal:queue');"},(e=>{try{return (e=JSON.parse(e?.[0]))&&e.length&&this.iabWindow.executeScript({code:"localStorage.setItem('portal:queue', '[]')"}),e.map((e=>t(e)))}catch(t){return console.log(t,e)}}))),100);})),this.iabWindow.addEventListener("exit",(()=>clearInterval(this.iabInterval)))}replyInAppBrowserWindow(e){const t=e.replace(/'/g,"'");return this.iabWindow.executeScript({code:`if(window._browserCommsOnMessage) window._browserCommsOnMessage('${t}')`})}onMessageInAppBrowserWindow(e){return this.onMessage({data:e,source:{postMessage:e=>this.call("browser.reply",{data:e})}})}listen(){this.isListening=!0,$.addEventListener("message",this.onMessage),"undefined"!=typeof window&&null!==window&&(window._browserCommsOnMessage=e=>this.onMessage({debug:!0,data:(()=>{try{return JSON.parse(e)}catch(t){return console.log("error parsing",e),null}})()})),this.clientValidation=this.client.call("ping",null,{timeout:this.handshakeTimeout}).then((e=>{this.hasParent&&(this.parentsRegisteredMethods=this.parentsRegisteredMethods.concat(e));})).catch((()=>null)),this.swValidation=this.ready.then((()=>this.sw?.call("ping",null,{timeout:this.handshakeTimeout}))).then((e=>{this.parentsRegisteredMethods=this.parentsRegisteredMethods.concat(e);}));}close(){return this.isListening=!0,$.removeEventListener("message",this.onMessage)}async call(e,...t){if(!this.isListening)return new Promise(((e,t)=>t(new Error("Must call listen() before call()"))));const n=(e,t)=>{const n=this.registeredMethods[e];if(!n)throw new Error("Method not found");return n.apply(null,t)};if(await this.ready,this.hasParent){let s=null;await this.clientValidation;if(!(-1!==this.parentsRegisteredMethods.indexOf(e)))return n(e,t);{const o=await this.client.call(e,t);try{if("ping"===e){const s=n(e,t);return (o||[]).concat(s)}return o}catch(o){try{if(s=o,!this.sw)return n(e,t);try{const s=await this.sw.call(e,t);if("ping"===e){const o=n(e,t);return (s||[]).concat(o)}return s}catch{return n(e,t)}}catch(e){throw "Method not found"===e.message&&s?s:e}}}}else {if(!this.sw)return n(e,t);if(await this.swValidation,-1===this.parentsRegisteredMethods.indexOf(e))return n(e,t);try{const s=await this.sw.call(e,t);if("ping"===e){const o=n(e,t);return (s||[]).concat(o)}return s}catch(s){return n(e,t)}}}async onRequest(e,t){const n=[];for(const s of Array.from(t.params||[]))s?._browserCommsGunCallback?(t=>{n.push(((...n)=>e(X({params:n,callbackId:t.callbackId}))));})(s):n.push(s);e(function({requestId:e}){return {_browserComms:!0,id:e,acknowledge:!0}}({requestId:t.id}));try{const s=await this.call(t.method,...Array.from(n));return e(z({requestId:t.id,result:s}))}catch(n){return e(z({requestId:t.id,rPCError:Z({code:Q,data:n})}))}}onMessage(e,{isServiceWorker:t}={}){try{const s="string"==typeof e.data?JSON.parse(e.data):e.data;if(!G(s))return;const o=function(t){return "undefined"!=typeof window&&null!==window?e.source?.postMessage(JSON.stringify(t),"*"):e.ports[0].postMessage(JSON.stringify(t))};if(null!=(n=s)?.id&&null!=n.method)return this.onRequest(o,s);if(G(s)){let n;if(this.isParentValidFn(e.origin))return n=t?this.sw:this.client,n.resolve(s);if(H(s))return n=t?this.sw:this.client,n.resolve(z({requestId:s.id,rPCError:Z({code:F})}));throw new Error("Invalid origin")}throw new Error("Unknown RPCEntity type")}catch(e){}var n;}on(e,t){this.registeredMethods[e]=t;}}class te{constructor(){this.call=(e,t)=>this.browserComms.call(e,t),this.listen=()=>{this.browserComms.listen(),this.browserComms.on("context.getCredentials",this.getCredentials),this.browserComms.on("dom.setStyle",this.setStyle);},this.setStyle=({querySelector:e,style:t})=>{const n=document.querySelector(e);null==n||n.setAttribute("style",t);},this.getCredentials=()=>this.credentials,this.setCredentials=e=>{this.credentials=e;},this.browserComms=new ee,this.credentials={};}}class ne{constructor(e){this.gatewayService=e;}addEmotesToMessage(e){return function(e,t){const n=e.authorExternalChannelId,s=[];for(const o of e.message.runs)if("string"==typeof o.text){const{text:e}=o;let i=0,r=0;const a=y(e);let l=!1;for(const o of a){const a=t("🌝"===o?"Kappa":o,n);a&&(l=!0,i>0&&s.push({text:e.substring(r,i)}),s.push({emoji:a}),r=i+o.length),i+=o.length;}l?s.push({text:e.substring(r,i)}):s.push(o);}else if("🌝"===o.emoji.emojiId){const e=t("Kappa",n);e&&s.push({emoji:e});}else s.push(o);return e.message.runs=s,e.message}(e,((e,t)=>this.gatewayService.getEmote(e,t)))}}class se extends e.exports.EventEmitter{constructor(e){super(),this.backgroundService=e,this.extensionMappings=[],this.extensionMappingDomElements=new Map,this.handleTabUpdate(),window.addEventListener("message",(e=>{var t,n,s,o;if("tab:updated"===e.data.type){const i=(null===(n=null===(t=e.data)||void 0===t?void 0:t.tab)||void 0===n?void 0:n.url)===window.location.href;if(e.data.tab&&i){"complete"===(null===(o=null===(s=e.data)||void 0===s?void 0:s.changeInfo)||void 0===o?void 0:o.status)&&this.handleTabUpdate();}}}));}async fetchExtensionMappings(e,t){var n;const s$1=await this.backgroundService.fetch("/spore/fetch-extension-mappings",{channelId:e,extensionVersion:t});s(s$1)&&(this.extensionMappings=null!==(n=s$1.body)&&void 0!==n?n:[]),this.emit("inject-mappings",this.extensionMappings);}async handleTabUpdate(){this.emit("cleanup-mappings",this.extensionMappingDomElements);const e=setInterval((async()=>{const o=n();if(o){clearInterval(e);const t$1=o.channelId,i=e$1(!1)&&t(!1);t$1&&i&&await this.fetchExtensionMappings(t$1,"3.0.1");}}),1e3);}setDomElementMapping(e,t){this.extensionMappingDomElements.set(e,t);}}class oe extends e.exports.EventEmitter{constructor(e,t){super(),this.backgroundService=e,this.channelId=t,this.monthBadgeList=[],this.emoteCache=new Map,this.sporeUserEmoteCache=new Map,this.sporeBadgeCache=new Map,e.getLiveStorageValue("auth.token2",dt).then((e=>this.myUserInfo=e)).catch((e=>console.error("error parsing auth.token",e))),this.fetchUserInfo().then((()=>{this.fetchEmotes(),this.fetchBadges(),this.fetchSporeOrgId().then((()=>{this.fetchCurrentUserSporeInfo();}));})),setInterval((()=>{this.fetchEmotes(),this.fetchBadges();}),c.FIVE_MINUTE_MS),setInterval((()=>{this.fetchUserInfo();}),c.ONE_MINUTE_MS),setInterval((()=>{this.fetchCurrentUserSporeInfo();}),5*c.ONE_SECOND_MS);}async fetchBadges(){const e=await this.backgroundService.fetch("/gateway/badges");if(!s(e))return;const t=e.body.filter(h).sort(((e,t)=>e.months-t.months)),n=e.body.filter(m);this.monthBadgeList=t.map((e=>[e.months,{thumbnails:[{url:e.url,width:16,height:16}]}])),this.sporeBadgeCache.clear();for(const e of n){const t=g(e);t&&this.sporeBadgeCache.set(e.slug,t);}console.log("monthbadges",this.monthBadgeList),console.log("sporeBadgeCache",this.sporeBadgeCache),this.emit("monthBadges",this.monthBadgeList),this.emit("sporeBadges",this.sporeBadgeCache);}async fetchEmotes(){const e=await this.backgroundService.fetch("/gateway/emotes");if(s(e)){this.emoteCache.clear();for(const t of e.body){const e=b(t);e&&this.emoteCache.set(t.name,e);}console.log("emoteCache",this.emoteCache),this.emit("emotes",this.emoteCache);}}async fetchUserInfo(){const e=await this.backgroundService.fetch("/gateway/users",this.channelId);s(e)&&(this.infoCache=new Map(e.body),console.log("this.infoCache",this.infoCache),this.emit("users",this.infoCache));}async fetchSporeOrgId(){var e;const t=await this.backgroundService.fetch("/spore/fetch-youtube-channel",this.channelId);s(t)&&(this.sporeOrgId=null===(e=t.body)||void 0===e?void 0:e.sporeOrgId);}async fetchCurrentUserSporeInfo(){var e,t,n,s$1,o;console.log("spore fetching current user",null===(t=null===(e=this.myUserInfo)||void 0===e?void 0:e.value)||void 0===t?void 0:t.sub);const i=null===(n=this.myUserInfo.value)||void 0===n?void 0:n.sub;if(i&&this.sporeOrgId)try{const e=await this.backgroundService.fetch("/spore/fetch-spore-user",{connectionSourceId:i,sporeOrgId:this.sporeOrgId,preferCache:!1});if(!s(e))return;if(this.mySporeUserInfo=e.body,console.log("spore user info",this.mySporeUserInfo),(null===(s$1=null==e?void 0:e.body)||void 0===s$1?void 0:s$1.emotes)&&(null===(o=null==e?void 0:e.body)||void 0===o?void 0:o.serializedEmotes)){const t=new Map;for(const n of e.body.serializedEmotes){const e=b(n);e&&!this.sporeUserEmoteCache.get(n.name)&&(t.set(n.name,e),this.sporeUserEmoteCache.set(n.name,e));}this.emit("spore-user-emotes",t);}}catch(e){console.warn("error fetching spore user",e);}}getSerializedMetadata(e){const t=e.links.find((t=>t.prv===e.prv)),n={a:null==t?void 0:t.name,b:e.meta.sub,c:e.meta.col};return Object.values(n).filter((e=>void 0!==e)).length>0?n:void 0}getUserInfo(e){var t,n,s;if((null===(n=null===(t=this.myUserInfo)||void 0===t?void 0:t.value)||void 0===n?void 0:n.sub)===e){const e=this.getSerializedMetadata(this.myUserInfo.value);if(e)return e}return null===(s=this.infoCache)||void 0===s?void 0:s.get(e)}getSporeBadges(e){var t,n,s;const o=[];if(this._isCurrentUser(e)){const e=null!==(n=null===(t=this.mySporeUserInfo)||void 0===t?void 0:t.badges)&&void 0!==n?n:[];if(e)for(const t of e){const e=this.sporeBadgeCache.get(t);e&&o.push(e);}}else {const t=this.infoCache.get(e);if(t){const e=new Set(null!==(s=null==t?void 0:t.e)&&void 0!==s?s:[]);if(e)for(const t of e){const e=this.sporeBadgeCache.get(t);e&&o.push(e);}}}return o}getEmote(e,t){var n,s,o,i,r,a,l;const c=null===(n=this.emoteCache)||void 0===n?void 0:n.get(e);if(null==c?void 0:c.isSporeEmote)if(this._isCurrentUser(t)){const t=null!==(o=null===(s=this.mySporeUserInfo)||void 0===s?void 0:s.emotes)&&void 0!==o?o:[];if((null===(i=this.mySporeUserInfo)||void 0===i?void 0:i.emotes)&&!t.includes(e))return}else {const n=null!==(a=null===(r=this.infoCache.get(t))||void 0===r?void 0:r.d)&&void 0!==a?a:[];if(!this.infoCache.get(t))return;if((null===(l=this.infoCache.get(t))||void 0===l?void 0:l.d)&&!n.includes(e))return}return c}_isCurrentUser(e){var t;return e===(null===(t=this.myUserInfo.value)||void 0===t?void 0:t.sub)}} /*! * cookie * Copyright(c) 2012-2014 Roman Shtylman * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed - */ -var v = function(t, e) { - if ("string" != typeof t) throw new TypeError("argument str must be a string"); - for (var n = {}, i = e || {}, a = t.split(p), o = i.decode || y, r = 0; r < a.length; r++) { - var s = a[r], - c = s.indexOf("="); - if (!(c < 0)) { - var u = s.substr(0, c).trim(), - d = s.substr(++c, s.length).trim(); - '"' == d[0] && (d = d.slice(1, -1)), null == n[u] && (n[u] = w(d, o)); - } - } - return n - }, - y = decodeURIComponent, - p = /; */; - -function w(t, e) { - try { - return e(t) - } catch (e) { - return t - } -} -var b; -class A { - constructor(t) { - this.gatewayService = t; - } - addAliasesToMessage(t) { - l(t, (t => this.gatewayService.getUserInfo(t)), this.gatewayService.badgeList, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAABg2lDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV/TiiIVBzuIOGRonSyIijpqFYpQIdQKrTqYXPoFTRqSFBdHwbXg4Mdi1cHFWVcHV0EQ/ABxc3NSdJES/5cUWsR4cNyPd/ced+8AoVFhmhUaAzTdNtPJhJjNrYrdrwgjBGAaMZlZxpwkpeA7vu4R4OtdnGf5n/tz9Kl5iwEBkXiWGaZNvEE8tWkbnPeJI6wkq8TnxKMmXZD4keuKx2+ciy4LPDNiZtLzxBFisdjBSgezkqkRTxJHVU2nfCHrscp5i7NWqbHWPfkLw3l9ZZnrNIeRxCKWIEGEghrKqMBGnFadFAtp2k/4+Idcv0QuhVxlMHIsoAoNsusH/4Pf3VqFiXEvKZwAul4c5yMGdO8CzbrjfB87TvMECD4DV3rbX20AM5+k19ta9Ajo3wYurtuasgdc7gCDT4Zsyq4UpCkUCsD7GX1TDhi4BXrXvN5a+zh9ADLUVeoGODgERoqUve7z7p7O3v490+rvB3pIcqqJKL5aAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5QwEARQDdqq2HwAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAGkSURBVDjLpdSxS5tBGMfx7+V9JamLGbSQNNAQdBBJhZKWLPkHxKmQEgd9xUFwCRQKHe1cKHSztCCmLyQlkriULu2kSyBQkCCCg0bQCJrhTSUxoW+8DuLRNPqq8aa7hx8f7nk4TpDXDCQfAC+9rTKCt4KctgcEnZKJ/pcYoRmG+oewz21Wdlb4+PvzvxFLvwlJD5vEx+Lomg5A6ahE/nTt/5hXd0Le+98x9WRKnUtHJSYKkxzLalfW5djSaKILOZCHqvZQDLIwMO8MPdOf4h/wq3Or3epAAuIRP6M/MEYMZyjY1zm6SCBC8XlBId+j3wj7wuiui+lcO6PVszxNu4lH93RiFHBrbsK+MAAnjRNnKBVaxq25u+qRQETt7bZNavfL9a2lQstMj08jhHB8idmtLF8b2atvdBUipaTVbqk2K7UKme0MrytvVEa/DWJumhi7c8QfvKD8p0zR/tV1O0FOk7dBblougE+Pl+6FKGijukGtWesZUZBZT5NcT2KdWT0hl8O2AK9ZT8M6xAZjzO8v3PFLkmVBTpsFuQgi2Nu/Ji3QXv0FPBynaffELJkAAAAASUVORK5CYII="); - } -} -class T { - constructor(t) { - this.gatewayService = t; - } - addTwitchEmotesToMessage(t) { - return function(t, e) { - const n = []; - for (const i of t.runs) - if ("string" == typeof i.text) { - const { - text: t - } = i; - let a = 0, - o = 0; - const r = f(t); - let s = !1; - for (const i of r) { - const r = e("🌝" === i ? "Kappa" : i); - r && (s = !0, a > 0 && n.push({ - text: t.substring(o, a) - }), n.push({ - emoji: r - }), o = a + i.length), a += i.length; - } - s ? n.push({ - text: t.substring(o, a) - }) : n.push(i); - } else if ("🌝" === i.emoji.emojiId) { - const t = e("Kappa"); - t && n.push({ - emoji: t - }); - } else n.push(i); - return t.runs = n, t - }(t, (t => this.gatewayService.getEmote(t))) - } -} -class x extends e.exports.EventEmitter { - constructor(t) { - super(), this.backgroundService = t, this.badgeList = [], this.emoteCache = new Map, t.getLiveStorageValue("auth.token", dt).then((t => this.myUserInfo = t)), this.fetchUserInfo(), this.fetchEmotes(), this.fetchBadges(), setInterval((() => { - this.fetchUserInfo(), this.fetchEmotes(), this.fetchBadges(); - }), 3e5); - } - async fetchBadges() { - const t = await this.backgroundService.fetch("/gateway/badges"); - if (!s(t)) return; - const e = t.body.sort(((t, e) => t.months - e.months)); - this.badgeList = e.map((t => [t.months, { - thumbnails: [{ - url: t.url, - width: 16, - height: 16 - }] - }])), this.emit("badges", this.badgeList); - } - async fetchEmotes() { - const t = await this.backgroundService.fetch("/gateway/emotes"); - if (s(t)) { - this.emoteCache.clear(); - for (const e of t.body) { - const t = m(e); - t && this.emoteCache.set(e.name, t); - } - this.emit("emotes", this.emoteCache); - } - } - async fetchUserInfo() { - const t = await this.backgroundService.fetch("/gateway/users"); - s(t) && (this.infoCache = new Map(t.body), this.emit("users", this.infoCache)); - } - getSerializedMetadata(t) { - const e = t.links.find((e => e.prv === t.prv)), - n = { - a: null == e ? void 0 : e.name, - b: t.meta.sub, - c: t.meta.col - }; - return Object.values(n).filter((t => void 0 !== t)).length > 0 ? n : void 0 - } - getUserInfo(t) { - var e, n, i; - if ((null === (n = null === (e = this.myUserInfo) || void 0 === e ? void 0 : e.value) || void 0 === n ? void 0 : n.sub) === t) { - const t = this.getSerializedMetadata(this.myUserInfo.value); - if (t) return t - } - return null === (i = this.infoCache) || void 0 === i ? void 0 : i.get(t) - } - getEmote(t) { - var e; - return null === (e = this.emoteCache) || void 0 === e ? void 0 : e.get(t) - } -} -async function I(t, n) { - await customElements.whenDefined(t); - const i = customElements.get(t); - if (!i) return void console.warn(`Polymer: ${t} not found`); - const a = i.prototype[n.functionName]; - i.prototype[n.functionName] = function(...t) { - if (n.ludwigOnly && !e$4()) return a.apply(this, t); - if (n.type === b.OverrideFunction) try { - return n.function.apply(this, t) - } catch (t) { - console.error(JSON.stringify(n)), console.error(t); - } - if (n.type === b.RunBefore) try { - n.function.apply(this, t); - } catch (t) { - console.error(t); - } - let i = a.apply(this, t); - if (n.type === b.RunAfter) try { - i = n.function.apply(this, [i]); - } catch (t) { - console.error(t); - } - return i - }; -}! function(t) { - t[t.OverrideFunction = 0] = "OverrideFunction", t[t.RunBefore = 1] = "RunBefore", t[t.RunAfter = 2] = "RunAfter"; -}(b || (b = {})); -const B = (t, e, { - LudwigOnly: n - }) => ({ - functionName: t, - function: e, - ludwigOnly: n || !1, - type: b.OverrideFunction - }), - E = (t, e, { - LudwigOnly: n - }) => ({ - functionName: t, - function: e, - ludwigOnly: n || !1, - type: b.RunBefore - }); - -function C(t, n, i) { - I("yt-live-chat-item-list-renderer", E("handleAddChatItemAction_", (function(e) { - e.item.liveChatTextMessageRenderer && (t.addTwitchEmotesToMessage(e.item.liveChatTextMessageRenderer.message), n.addAliasesToMessage(e.item.liveChatTextMessageRenderer)); - }), { - LudwigOnly: true - })), I("yt-live-chat-text-input-field-renderer", ((t, e, { - LudwigOnly: n - }) => ({ - functionName: t, - function: e, - ludwigOnly: n || !1, - type: b.RunAfter - }))("calculateLiveChatRichMessageInput_", (function(t) { - var e; - if (!(null == t ? void 0 : t.textSegments)) return t; - for (const n of t.textSegments) - if (null === (e = n.emojiId) || void 0 === e ? void 0 : e.startsWith("mogultv")) { - const [, t] = n.emojiId.split("-"); - delete n.emojiId, n.text = t; - } return t - }), { - LudwigOnly: true - })), i.on("emotes", (t => { - if (!e$4()) return; - const n = document.querySelector("yt-live-chat-item-list-renderer"); - if (null == n ? void 0 : n.emojiManager) { - if (n.emojiManager._mogulTvLoaded) return; - n.emojiManager._mogulTvLoaded = !0, n.emojiManager.load([...t.values()]); - } else console.warn("Cannot find chat list"); - })); -} - -function S(t) { - return t ? t._mtvType ? t._mtvType : t.icon ? t.icon.iconType.toLowerCase() : t.customThumbnail ? "member" : "" : "" -} -async function M(t) { - I("yt-live-chat-author-badge-renderer", B("computeType_", (t => S(t.liveChatAuthorBadgeRenderer)), { - LudwigOnly: true - })), I("yt-live-chat-author-chip", B("computeAuthorType_", (function(e) { - var n, i; - const a = this.$["author-name"]; - if (a) { - let e; - const o = null === (n = this.parentElement) || void 0 === n ? void 0 : n.parentElement, - r = null === (i = null == o ? void 0 : o.data) || void 0 === i ? void 0 : i.authorExternalChannelId; - if (r) { - const n = t.getUserInfo(r); - (null == n ? void 0 : n.c) && (e = n.c); - } - e || (e = function(t) { - const e = function(t) { - let e = 0; - if (0 === t.length) return 0; - for (let n = 0; n < t.length; n++) e = (e << 5) - e + t.charCodeAt(n), e |= 0; - return e - }(t); - return g[(e % g.length + g.length) % g.length] - }(this.authorName.simpleText)), a.style.color = e; - } - return function(t) { - if (!t) return ""; - for (const e of t) { - if (!e.liveChatAuthorBadgeRenderer) continue; - const t = S(e.liveChatAuthorBadgeRenderer); - if ("verified" !== t) return t - } - return "" - }(e) - }), { - LudwigOnly: true - })); -} -e$1("\n/* Make the masthead transparent unless we are hovering it */\nbody[data-mogul-theater-mode] #masthead-container {\n opacity: 0.1;\n transition: opacity .2s ease;\n}\n\nbody[data-mogul-theater-mode] #masthead-container:hover {\n opacity: 1;\n}\n\n\n@media screen and (min-width: 1014px) {\n /* Make chat fill screen vertically */\n body[data-mogul-theater-mode] #chat.ytd-watch-flexy {\n height: calc(100vh - 56px) !important;\n width: var(--ytd-watch-flexy-sidebar-width);\n position: absolute;\n top: 56px;\n right: 0;\n }\n\n body[data-mogul-theater-mode] #player-theater-container.ytd-watch-flexy {\n width: calc(100vw - var(--ytd-watch-flexy-sidebar-width) - var(--ytd-watch-flexy-scrollbar-width)) !important;\n max-width: calc(100vw - var(--ytd-watch-flexy-sidebar-width) - var(--ytd-watch-flexy-scrollbar-width)) !important;\n height: calc(100vh - 56px) !important;\n max-height: calc(100vh - 56px) !important;\n }\n}"); -const R = null !== document.querySelector("yt-live-chat-app"), - j = new e$2; -if (R) { - const t = new x(j), - e = new T(t), - n = new A(t); - L = j, C(e, n, O = t), async function(t) { - const e = await t.getLiveStorageValue("settings.chatBatching"); - I("yt-timed-continuation", E("dataChanged_", (function() { - e.value && (this.data.timeoutMs /= 3 * Math.random() + 2); - }), { - LudwigOnly: !0 - })), I("yt-live-chat-renderer", E("preprocessActions_", (function(t) { - const n = Object.getPrototypeOf(this.smoothedQueue_); - for (const t in n) - if (t.includes("emitSmoothedMessages")) { - n[t] = function() { - if (this.nextUpdateId_ = null, this.messageQueue_.length) { - let i = 1e4; - this.estimatedUpdateInterval_ && (i = this.estimatedUpdateInterval_ - Date.now() + this.lastUpdateTime_); - const a = this.messageQueue_.length < i / 80 ? 1 : Math.ceil(this.messageQueue_.length / (i / 80)), - o = this.messageQueue_.splice(0, a); - if (this.callback && this.callback(o[0]), this.messageQueue_.length) { - let o = 1; - e.value || (1 === a ? (o = i / this.messageQueue_.length, o *= Math.random() + .5, o = Math.min(1e3, o), o = Math.max(80, o)) : o = 80), this.nextUpdateId_ = window.setTimeout(n[t].bind(this), o); - } - } - }; - break - } return t - }), { - LudwigOnly: !0 - })); - }(L), M(O); -} else !async function(t) { - async function n() { - const n = document.querySelector("ytd-watch-flexy"), - i = (null == n ? void 0 : n.hasAttribute("theater")) || !1, - a = (null == n ? void 0 : n.hasAttribute("fullscreen")) || !1, - o = await t.getStorage("settings.theaterMode"), - r = e$4(!1); - return i && !a && o && r - } - let i = await n(); - setInterval((async () => { - await n() ? (document.body.setAttribute("data-mogul-theater-mode", ""), i || window.dispatchEvent(new Event("resize")), i = !0) : (i = !1, document.body.removeAttribute("data-mogul-theater-mode")); - }), 250); -}(j), async function(t) { - if (!window.ytcfg) return; - const e = { - key: window.ytcfg.get("INNERTUBE_API_KEY"), - authUser: window.ytcfg.get("SESSION_INDEX"), - pageId: window.ytcfg.get("DELEGATED_SESSION_ID"), - href: window.location.href, - context: window.ytcfg.get("INNERTUBE_CONTEXT") - }; - n = await e$3(Object.assign(Object.assign({}, e), { - cookies: v(document.cookie) - })), i = await t.fetch("/auth/@me"), (!n.success || !i.meta.isSuccess || n.data.id !== (null === (a = i.body) || void 0 === a ? void 0 : a.sub)) && await t.fetch("/auth/login", e); - var n, i, a; -}(j), setInterval((() => { - const t = document.querySelector("ytd-live-chat-frame iframe"); - if (t && !t.src.includes("QXZRwEzaeHNfDqtD")) { - const e = n(); - t.src += `#QXZRwEzaeHNfDqtD=${encodeURIComponent(JSON.stringify(e))}`; - } -}), 1e3); -var L, O; \ No newline at end of file + */var ie=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},s=t||{},o=e.split(ae),i=s.decode||re,r=0;r{ce(e,t,n-1);}),250);}var ue;async function de(e,t){await customElements.whenDefined(e);const s=customElements.get(e);if(!s)return void console.warn(`Polymer: ${e} not found`);const o=s.prototype[t.functionName];s.prototype[t.functionName]=function(...e){if(t.ludwigOnly&&!e$1())return o.apply(this,e);if(console.log("%cRule:","color: hsl(0deg, 100%, 70%); font-weight: bold;",t),console.log("%cArgs:","color: hsl(30deg, 100%, 70%); font-weight: bold;",e),t.type===ue.OverrideFunction)try{return t.function.apply(this,e)}catch(e){console.error(JSON.stringify(t)),console.error(e);}if(t.type===ue.RunBefore)try{t.function.apply(this,e);}catch(e){console.error(e);}let s=o.apply(this,e);if(t.type===ue.RunAfter)try{s=t.function.apply(this,[s]);}catch(e){console.error(e);}return console.log("%cResult:","color: hsl(60deg, 100%, 70%); font-weight: bold;",s),s};}!function(e){e[e.OverrideFunction=0]="OverrideFunction",e[e.RunBefore=1]="RunBefore",e[e.RunAfter=2]="RunAfter";}(ue||(ue={}));const he=(e,t,{LudwigOnly:n})=>({functionName:e,function:t,ludwigOnly:n||!1,type:ue.OverrideFunction}),me=(e,t,{LudwigOnly:n})=>({functionName:e,function:t,ludwigOnly:n||!1,type:ue.RunBefore});function fe(e,t,s){de("yt-live-chat-item-list-renderer",me("handleAddChatItemAction_",(function(n){n.item.liveChatTextMessageRenderer&&(t.addAliasesToMessage(n.item.liveChatTextMessageRenderer),e.addEmotesToMessage(n.item.liveChatTextMessageRenderer));}),{LudwigOnly:true})),de("yt-live-chat-text-input-field-renderer",((e,t,{LudwigOnly:n})=>({functionName:e,function:t,ludwigOnly:n||!1,type:ue.RunAfter}))("calculateLiveChatRichMessageInput_",(function(e){var t;if(!(null==e?void 0:e.textSegments))return e;for(const n of e.textSegments)if(null===(t=n.emojiId)||void 0===t?void 0:t.startsWith("mogultv")){const[,e]=n.emojiId.split("-");delete n.emojiId,n.text=e;}return e}),{LudwigOnly:true})),s.on("emotes",(e=>{if(!e$1())return;const t=document.querySelector("yt-live-chat-item-list-renderer");if(null==t?void 0:t.emojiManager){if(t.emojiManager._mogulTvLoaded)return;t.emojiManager._mogulTvLoaded=!0,t.emojiManager.load(Array.from(e.values()).filter((e=>!(null==e?void 0:e.isSporeEmote))));}else console.warn("Cannot find chat list");})),s.on("spore-user-emotes",(e=>{if(!e$1())return;const t=document.querySelector("yt-live-chat-item-list-renderer");(null==t?void 0:t.emojiManager)?t.emojiManager.load([...e.values()]):console.warn("Cannot find chat list");}));}function pe(e){return e?e._mtvType?e._mtvType:e.icon?e.icon.iconType.toLowerCase():e.customThumbnail?"member":"":""}async function ge(e){de("yt-live-chat-author-badge-renderer",he("computeType_",(e=>pe(e.liveChatAuthorBadgeRenderer)),{LudwigOnly:true})),de("yt-live-chat-author-chip",he("computeAuthorType_",(function(t){var n,s;const o=this.$["author-name"];if(o){let t;const i=null===(n=this.parentElement)||void 0===n?void 0:n.parentElement,r=null===(s=null==i?void 0:i.data)||void 0===s?void 0:s.authorExternalChannelId;if(r){const n=e.getUserInfo(r);(null==n?void 0:n.c)&&(t=n.c);}t||(t=a(this.authorName.simpleText)),o.style.color=t;}return function(e){if(!e)return "";for(const t of e){if(!t.liveChatAuthorBadgeRenderer)continue;const e=pe(t.liveChatAuthorBadgeRenderer);if("verified"!==e)return e}return ""}(t)}),{LudwigOnly:true}));}function ve(e,t,n,s){fe(s,n,t),async function(e){const t=await e.getLiveStorageValue("settings.chatBatching");de("yt-timed-continuation",me("dataChanged_",(function(){t.value&&(this.data.timeoutMs/=3*Math.random()+2);}),{LudwigOnly:!0})),de("yt-live-chat-renderer",me("preprocessActions_",(function(e){const n=Object.getPrototypeOf(this.smoothedQueue_);for(const e in n)if(e.includes("emitSmoothedMessages")){n[e]=function(){if(this.nextUpdateId_=null,this.messageQueue_.length){let s=1e4;this.estimatedUpdateInterval_&&(s=this.estimatedUpdateInterval_-Date.now()+this.lastUpdateTime_);const o=this.messageQueue_.length{const n$1=n(),s=null==n$1?void 0:n$1.channelId;if(s){clearInterval(e);const t=new oe(ye,s),n=new ne(t),o=new C(t);ve(ye,t,o,n);}}),c.ONE_SECOND_MS);}else {!async function(e){async function t(){const t=document.querySelector("ytd-watch-flexy"),s=(null==t?void 0:t.hasAttribute("theater"))||!1,o=(null==t?void 0:t.hasAttribute("fullscreen"))||!1,i=await e.getStorage("settings.theaterMode"),r=e$1(!1);return s&&!o&&i&&r}let s=await t();setInterval((async()=>{await t()?(document.body.setAttribute("data-mogul-theater-mode",""),s||window.dispatchEvent(new Event("resize")),s=!0):(s=!1,document.body.removeAttribute("data-mogul-theater-mode"));}),250);}(ye),async function(e){if(!window.ytcfg)return;const t={key:window.ytcfg.get("INNERTUBE_API_KEY"),authUser:window.ytcfg.get("SESSION_INDEX"),pageId:window.ytcfg.get("DELEGATED_SESSION_ID"),href:window.location.href,context:window.ytcfg.get("INNERTUBE_CONTEXT")};n=await e$4(Object.assign(Object.assign({},t),{cookies:ie(document.cookie)})),s=await e.fetch("/auth/@me"),(!n.success||!s.meta.isSuccess||n.data.id!==(null===(o=s.body)||void 0===o?void 0:o.sub)||!(null===(i=s.body)||void 0===i?void 0:i.googleId))&&await e.fetch("/auth/login",t);var n,s,o,i;}(ye);const e=new te;e.listen();const s=new se(ye);!async function(e,t,n){if(!window.ytcfg)return;const s={sourceType:"youtube",token:(await e.fetch("/auth/token")).body,version:"3.0.1"};n.setCredentials(s),t.on("cleanup-mappings",(e=>{!function(e){if(e)for(const t of e.values())t.remove();}(e);})),t.on("inject-mappings",(e=>{e.forEach((e=>ce(e,t)));}));}(ye,s,e),setInterval((()=>{const e=document.querySelector("ytd-live-chat-frame iframe");if(e&&!e.src.includes("OpXmfbXQaCyUDUFX")){const n$1=n();e.src+=`#OpXmfbXQaCyUDUFX=${encodeURIComponent(JSON.stringify(n$1))}`;}}),c.ONE_SECOND_MS);} diff --git a/get_stream_details-70a52c12.js b/get_stream_details-70a52c12.js new file mode 100644 index 0000000..e8febe1 --- /dev/null +++ b/get_stream_details-70a52c12.js @@ -0,0 +1,35 @@ +function n() { + let n = function() { + var n, t; + const e = document.querySelector("ytd-page-manager"); + return null === (t = null === (n = null == e ? void 0 : e.data) || void 0 === n ? void 0 : n.playerResponse) || void 0 === t ? void 0 : t.videoDetails + }(); + return n || (n = function() { + const n = new URLSearchParams(window.location.hash.substring(1)).get("OpXmfbXQaCyUDUFX"); + if (n) try { + return JSON.parse(n) + } catch (n) { + return + } + }(), n || void 0) +} + +function t(t = !0) { + var e; + const i = n(); + return null !== (e = null == i ? void 0 : i.isLive) && void 0 !== e ? e : t +} + +function e(t = !0) { + const e = n(); + if (e) { + return ["UCZaVG6KWBuquVXt63G6xopg", "UCrPseYLGpNygVi34QpGNqpA"].includes(e.channelId) && e.isLiveContent + } + return t +} + +export { + e, + n, + t +}; \ No newline at end of file diff --git a/get_stream_details-b6177000.js b/get_stream_details-b6177000.js deleted file mode 100644 index 16627cf..0000000 --- a/get_stream_details-b6177000.js +++ /dev/null @@ -1,25 +0,0 @@ -function n() { - let n = function() { - var n, e; - const t = document.querySelector("ytd-page-manager"); - return null === (e = null === (n = null == t ? void 0 : t.data) || void 0 === n ? void 0 : n.playerResponse) || void 0 === e ? void 0 : e.videoDetails - }(); - return n || (n = function() { - const n = new URLSearchParams(window.location.hash.substring(1)).get("QXZRwEzaeHNfDqtD"); - if (n) try { - return JSON.parse(n) - } catch (n) { - return - } - }(), n || void 0) -} - -function e(e = !0) { - const t = n(); - return t ? "UCrPseYLGpNygVi34QpGNqpA" === t.channelId && t.isLiveContent : e -} - -export { - e, - n -}; \ No newline at end of file diff --git a/index-6137f488.js b/index-2879cf47.js similarity index 100% rename from index-6137f488.js rename to index-2879cf47.js diff --git a/inject_script.util-c1ec59e3.js b/inject_script.util-c1ec59e3.js deleted file mode 100644 index de2b3b4..0000000 --- a/inject_script.util-c1ec59e3.js +++ /dev/null @@ -1,13 +0,0 @@ -import { - s -} from './storage-a8ac7bd3.js'; - -function e(e) { - const d = document.head || document.documentElement, - n = document.createElement("script"); - n.type = "module", n.id = "jjdtNVhjLLNiwvfY", n.setAttribute("jjdtNVhjLLNiwvfY", s.runtime.id), n.src = s.runtime.getURL(e), d.prepend(n); -} - -export { - e -}; \ No newline at end of file diff --git a/inject_script.util-e25f022c.js b/inject_script.util-e25f022c.js new file mode 100644 index 0000000..b0456aa --- /dev/null +++ b/inject_script.util-e25f022c.js @@ -0,0 +1,13 @@ +import { + s +} from './storage-6f9cf62e.js'; + +function t(t) { + const m = document.head || document.documentElement, + n = document.createElement("script"); + n.type = "module", n.id = "pKEWqxalXsGqbmDU", n.setAttribute("pKEWqxalXsGqbmDU", s.runtime.id), n.src = s.runtime.getURL(t), m.prepend(n); +} + +export { + t +}; \ No newline at end of file diff --git a/manifest.json b/manifest.json index 7c97216..34b3732 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "Mogul.TV", - "version": "2.0.1", + "version": "3.0.1", "description": "Enhance your Ludwig viewing experience", "browser_specific_settings": { "gecko": { @@ -48,7 +48,7 @@ "assets/index-26a612d9.js" ], "matches": [ - "*://v2.mogultv.org/*" + "*://truffle-tv-source-test.truffle-tv.workers.dev/*" ], "run_at": "document_idle" } @@ -56,24 +56,26 @@ "permissions": [ "cookies", "storage", + "tabs", + "activeTab", "*://*.youtube.com/*", "*://*.twitch.tv/*", - "*://v2.mogultv.org/*" + "*://truffle-tv-source-test.truffle-tv.workers.dev/*" ], "web_accessible_resources": [ "content/youtube/inject.js", "content/twitch/inject.js", - "background.injected-af36b849.js", - "get_stream_details-b6177000.js", - "index-6137f488.js", - "parse_token.util-ed270559.js", - "fetch_youtube-71c76849.js", + "background.injected-4f2074c6.js", + "get_stream_details-70a52c12.js", + "parse_token.util-73818eef.js", + "constants-27e12ede.js", + "index-2879cf47.js", "router.interface-6cdbc015.js", "style-inject.es-a0e1a0ba.js", - "storage-a8ac7bd3.js", - "background.content-5f02aba1.js", - "inject_script.util-c1ec59e3.js", - "connectRuntime-a699491c.js", + "storage-6f9cf62e.js", + "background.content-5d20fc40.js", + "inject_script.util-e25f022c.js", + "connectRuntime-a983a955.js", "when_ready.util-91474a6b.js", "content/twitch/index.js", "content/youtube/index.js", diff --git a/parse_token.util-ed270559.js b/parse_token.util-73818eef.js similarity index 94% rename from parse_token.util-ed270559.js rename to parse_token.util-73818eef.js index feb78df..8160aff 100644 --- a/parse_token.util-ed270559.js +++ b/parse_token.util-73818eef.js @@ -1,6 +1,6 @@ var t; ! function(t) { - t[t.Twitch = 0] = "Twitch", t[t.FFZ = 1] = "FFZ", t[t.BTTV = 2] = "BTTV", t[t.Custom = 3] = "Custom"; + t[t.Twitch = 0] = "Twitch", t[t.FFZ = 1] = "FFZ", t[t.BTTV = 2] = "BTTV", t[t.Custom = 3] = "Custom", t[t.Spore = 4] = "Spore"; }(t || (t = {})); var e = { black: "#000", @@ -102,7 +102,7 @@ var s = { A400: "#ff9100", A700: "#ff6d00" }; -var c = { +var f = { 50: "#fafafa", 100: "#f5f5f5", 200: "#eeeeee", @@ -119,14 +119,14 @@ var c = { A700: "#616161" }; -function f() { - return f = Object.assign || function(t) { +function c() { + return c = Object.assign || function(t) { for (var e = 1; e < arguments.length; e++) { var n = arguments[e]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); } return t - }, f.apply(this, arguments) + }, c.apply(this, arguments) } function u(t, e) { @@ -144,7 +144,7 @@ function l(t) { function d(t, e, n = { clone: !0 }) { - const r = n.clone ? f({}, t) : t; + const r = n.clone ? c({}, t) : t; return l(t) && l(e) && Object.keys(e).forEach((a => { "__proto__" !== a && (l(e[a]) && a in t && l(t[a]) ? r[a] = d(t[a], e[a], n) : r[a] = e[a]); })), r @@ -333,26 +333,26 @@ function L(t = {}, ...e) { return `@media (max-width:${("number"==typeof e[t]?e[t]:t)-r/100}${n})` } - function c(t, a) { + function f(t, a) { const o = i.indexOf(a); return `@media (min-width:${"number"==typeof e[t]?e[t]:t}${n}) and (max-width:${(-1!==o&&"number"==typeof e[i[o]]?e[i[o]]:a)-r/100}${n})` } - return f({ + return c({ keys: i, values: e, up: o, down: s, - between: c, + between: f, only: function(t) { - return i.indexOf(t) + 1 < i.length ? c(t, i[i.indexOf(t) + 1]) : o(t) + return i.indexOf(t) + 1 < i.length ? f(t, i[i.indexOf(t) + 1]) : o(t) }, not: function(t) { const e = i.indexOf(t); - return 0 === e ? o(i[1]) : e === i.length - 1 ? s(i[e]) : c(t, i[i.indexOf(t) + 1]).replace("@media", "@media not all and") + return 0 === e ? o(i[1]) : e === i.length - 1 ? s(i[e]) : f(t, i[i.indexOf(t) + 1]).replace("@media", "@media not all and") }, unit: n }, a) - }(n), c = function(t = 8) { + }(n), f = function(t = 8) { if (t.mui) return t; const e = B({ spacing: t @@ -367,11 +367,11 @@ function L(t = {}, ...e) { breakpoints: s, direction: "ltr", components: {}, - palette: f({ + palette: c({ mode: "light" }, r), - spacing: c, - shape: f({}, W, i) + spacing: f, + shape: c({}, W, i) }, o); return l = e.reduce(((t, e) => d(t, e)), l), l } @@ -420,10 +420,10 @@ function _(t) { values: e } = t, n = e[0], r = e[1] / 100, a = e[2] / 100, i = r * Math.min(a, 1 - a), o = (t, e = (t + n / 30) % 12) => a - i * Math.max(Math.min(e - 3, 9 - e, 1), -1); let s = "rgb"; - const c = [Math.round(255 * o(0)), Math.round(255 * o(8)), Math.round(255 * o(4))]; - return "hsla" === t.type && (s += "a", c.push(e[3])), P({ + const f = [Math.round(255 * o(0)), Math.round(255 * o(8)), Math.round(255 * o(4))]; + return "hsla" === t.type && (s += "a", f.push(e[3])), P({ type: s, - values: c + values: f }) }(t)).values : t.values; return e = e.map((e => ("color" !== t.type && (e /= 255), e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4))), Number((.2126 * e[0] + .7152 * e[1] + .0722 * e[2]).toFixed(3)) @@ -589,7 +589,7 @@ function Z(t) { lightShade: r = 300, darkShade: a = 700 }) => { - if (!(t = f({}, t)).main && t[n] && (t.main = t[n]), !t.hasOwnProperty("main")) throw new Error(p(11, e ? ` (${e})` : "", n)); + if (!(t = c({}, t)).main && t[n] && (t.main = t[n]), !t.hasOwnProperty("main")) throw new Error(p(11, e ? ` (${e})` : "", n)); if ("string" != typeof t.main) throw new Error(p(12, e ? ` (${e})` : "", JSON.stringify(t.main))); return J(t, "light", r, h), J(t, "dark", a, h), t.contrastText || (t.contrastText = A(t.main)), t }, @@ -597,7 +597,7 @@ function Z(t) { dark: D, light: U }; - return d(f({ + return d(c({ common: e, mode: l, primary: $({ @@ -627,7 +627,7 @@ function Z(t) { color: v, name: "success" }), - grey: c, + grey: f, contrastThreshold: g, getContrastText: A, augmentColor: $, @@ -648,7 +648,7 @@ function Q(t, e) { fontWeightLight: i = 300, fontWeightRegular: o = 400, fontWeightMedium: s = 500, - fontWeightBold: c = 700, + fontWeightBold: f = 700, htmlFontSize: l = 16, allVariants: p, pxToRem: g @@ -657,7 +657,7 @@ function Q(t, e) { m = a / 14, b = g || (t => t / l * m + "rem"), y = (t, e, n, a, i) => { - return f({ + return c({ fontFamily: r, fontWeight: t, fontSize: b(e), @@ -682,7 +682,7 @@ function Q(t, e) { caption: y(o, 12, 1.66, .4), overline: y(o, 12, 2.66, 1, K) }; - return d(f({ + return d(c({ htmlFontSize: l, pxToRem: b, fontFamily: r, @@ -690,7 +690,7 @@ function Q(t, e) { fontWeightLight: i, fontWeightRegular: o, fontWeightMedium: s, - fontWeightBold: c + fontWeightBold: f }, x), h, { clone: !1 }) @@ -728,9 +728,9 @@ function ot(t) { } function st(t) { - const e = f({}, rt, t.easing), - n = f({}, at, t.duration); - return f({ + const e = c({}, rt, t.easing), + n = c({}, at, t.duration); + return c({ getAutoHeightDuration: ot, create: (t = ["all"], r = {}) => { const { @@ -745,7 +745,7 @@ function st(t) { duration: n }) } -var ct = { +var ft = { mobileStepper: 1e3, speedDial: 1050, appBar: 1100, @@ -754,7 +754,7 @@ var ct = { snackbar: 1400, tooltip: 1500 }; -const ft = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"]; +const ct = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"]; function ut(t = {}, ...e) { const { @@ -762,9 +762,9 @@ function ut(t = {}, ...e) { palette: r = {}, transitions: a = {}, typography: i = {} - } = t, o = u(t, ft), s = Z(r), c = L(t); - let l = d(c, { - mixins: (p = c.breakpoints, c.spacing, g = n, f({ + } = t, o = u(t, ct), s = Z(r), f = L(t); + let l = d(f, { + mixins: (p = f.breakpoints, f.spacing, g = n, c({ toolbar: { minHeight: 56, [`${p.up("xs")} and (orientation: landscape)`]: { @@ -779,7 +779,7 @@ function ut(t = {}, ...e) { shadows: et.slice(), typography: Q(s, i), transitions: st(a), - zIndex: f({}, ct) + zIndex: c({}, ft) }); var p, g; return l = d(l, o), l = e.reduce(((t, e) => d(t, e)), l), l @@ -821,7 +821,7 @@ function dt(t) { if (!t) return; return JSON.parse(atob(t.split(".")[1])) } catch (t) { - return void console.error(t) + return } } @@ -834,10 +834,10 @@ export { Y, ut as a, d as b, - lt as c, + c, dt as d, - at as e, - f, + lt as e, + at as f, g, h, j, diff --git a/popup/index.js b/popup/index.js index e4c00aa..df75d48 100644 --- a/popup/index.js +++ b/popup/index.js @@ -1,5 +1,5 @@ import { - f, + c, A as A$1, L as L$1, l, @@ -11,7 +11,7 @@ import { Y as Y$1, p, b as d, - c as lt$1, + e as lt$1, h, j as j$1, y, @@ -19,12 +19,12 @@ import { d as dt$1, x, k, - e as at$1, + f as at$1, n as n$2, o, I as I$1, m as m$1 -} from '../parse_token.util-ed270559.js'; +} from '../parse_token.util-73818eef.js'; import { e } from '../style-inject.es-a0e1a0ba.js'; @@ -32,10 +32,10 @@ import { e as e$1, n as n$1, m -} from '../storage-a8ac7bd3.js'; +} from '../storage-6f9cf62e.js'; import { n -} from '../connectRuntime-a699491c.js'; +} from '../connectRuntime-a983a955.js'; var T = { exports: {} @@ -820,26 +820,18 @@ function lt(e, t, n, r) { } return Oe(n = it(e.children, r)) ? e.return = e.value + "{" + n + "}" : "" } - -function st(e) { - var t = Te(e); - return function(n, r, o, a) { - for (var i = "", l = 0; l < t; l++) i += e[l](n, r, o, a) || ""; - return i - } -} -var ut, ct, dt = function(e, t, n) { +var st = function(e, t, n) { for (var r = 0, o = 0; r = o, o = We(), 38 === r && 12 === o && (t[n] = 1), !Ve(o);) De(); return He(e, Le) }, - pt = function(e, t) { + ut = function(e, t) { return Ke(function(e, t) { var n = -1, r = 44; do { switch (Ve(r)) { case 0: - 38 === r && 12 === We() && (t[n] = 1), e[n] += dt(Le - 1, t, n); + 38 === r && 12 === We() && (t[n] = 1), e[n] += st(Le - 1, t, n); break; case 2: e[n] += Xe(r); @@ -856,39 +848,26 @@ var ut, ct, dt = function(e, t, n) { return e }(qe(e), t)) }, - ft = new WeakMap, - ht = function(e) { + ct = new WeakMap, + dt = function(e) { if ("rule" === e.type && e.parent && !(e.length < 1)) { for (var t = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; "rule" !== n.type;) if (!(n = n.parent)) return; - if ((1 !== e.props.length || 58 === t.charCodeAt(0) || ft.get(n)) && !r) { - ft.set(e, !0); - for (var o = [], a = pt(t, o), i = n.props, l = 0, s = 0; l < a.length; l++) + if ((1 !== e.props.length || 58 === t.charCodeAt(0) || ct.get(n)) && !r) { + ct.set(e, !0); + for (var o = [], a = ut(t, o), i = n.props, l = 0, s = 0; l < a.length; l++) for (var u = 0; u < i.length; u++, s++) e.props[s] = o[l] ? a[l].replace(/&\f/g, i[u]) : i[u] + " " + a[l]; } } }, - mt = function(e) { + pt = function(e) { if ("decl" === e.type) { var t = e.value; 108 === t.charCodeAt(0) && 98 === t.charCodeAt(2) && (e.return = "", e.value = ""); } }, - vt = "undefined" != typeof document, - gt = vt ? void 0 : (ut = function() { - return he((function() { - var e = {}; - return function(t) { - return e[t] - } - })) - }, ct = new WeakMap, function(e) { - if (ct.has(e)) return ct.get(e); - var t = ut(e); - return ct.set(e, t), t - }), - bt = [function(e, t, n, r) { + ft = [function(e, t, n, r) { if (e.length > -1 && !e.return) switch (e.type) { case "decl": e.return = at(e.value, e.length); @@ -922,52 +901,40 @@ var ut, ct, dt = function(e, t, n) { })) } }], - yt = function(e) { + ht = function(e) { var t = e.key; - if (vt && "css" === t) { + if ("css" === t) { var n = document.querySelectorAll("style[data-emotion]:not([data-s])"); Array.prototype.forEach.call(n, (function(e) { -1 !== e.getAttribute("data-emotion").indexOf(" ") && (document.head.appendChild(e), e.setAttribute("data-s", "")); })); } - var r, o, a = e.stylisPlugins || bt, + var r, o, a = e.stylisPlugins || ft, i = {}, l = []; - vt && (r = e.container || document.head, Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="' + t + ' "]'), (function(e) { + r = e.container || document.head, Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="' + t + ' "]'), (function(e) { for (var t = e.getAttribute("data-emotion").split(" "), n = 1; n < t.length; n++) i[t[n]] = !0; l.push(e); - }))); - var s, u = [ht, mt]; - if (vt) { - var c, d = [lt, (s = function(e) { - c.insert(e); - }, function(e) { - e.root || (e = e.return) && s(e); - })], - p = st(u.concat(a, d)); - o = function(e, t, n, r) { - c = n, - function(e) { - it(et(e), p); - }(e ? e + "{" + t.styles + "}" : t.styles), r && (g.inserted[t.name] = !0); - }; - } else { - var f = [lt], - h = st(u.concat(a, f)), - m = gt(a)(t), - v = function(e, t) { - var n = t.name; - return void 0 === m[n] && (m[n] = function(e) { - return it(et(e), h) - }(e ? e + "{" + t.styles + "}" : t.styles)), m[n] - }; - o = function(e, t, n, r) { - var o = t.name, - a = v(e, t); - return void 0 === g.compat ? (r && (g.inserted[o] = !0), a) : r ? void(g.inserted[o] = a) : a - }; - } - var g = { + })); + var s, u, c = [lt, (u = function(e) { + s.insert(e); + }, function(e) { + e.root || (e = e.return) && u(e); + })], + d = function(e) { + var t = Te(e); + return function(n, r, o, a) { + for (var i = "", l = 0; l < t; l++) i += e[l](n, r, o, a) || ""; + return i + } + }([dt, pt].concat(a, c)); + o = function(e, t, n, r) { + s = n, + function(e) { + it(et(e), d); + }(e ? e + "{" + t.styles + "}" : t.styles), r && (p.inserted[t.name] = !0); + }; + var p = { key: t, sheet: new ge({ key: t, @@ -982,102 +949,102 @@ var ut, ct, dt = function(e, t, n) { registered: {}, insert: o }; - return g.sheet.hydrate(l), g + return p.sheet.hydrate(l), p }, - xt = { + mt = { exports: {} }, - wt = {}, - kt = "function" == typeof Symbol && Symbol.for, - St = kt ? Symbol.for("react.element") : 60103, - Ct = kt ? Symbol.for("react.portal") : 60106, - Et = kt ? Symbol.for("react.fragment") : 60107, - Rt = kt ? Symbol.for("react.strict_mode") : 60108, - Pt = kt ? Symbol.for("react.profiler") : 60114, - Mt = kt ? Symbol.for("react.provider") : 60109, - Ot = kt ? Symbol.for("react.context") : 60110, - Tt = kt ? Symbol.for("react.async_mode") : 60111, - jt = kt ? Symbol.for("react.concurrent_mode") : 60111, - zt = kt ? Symbol.for("react.forward_ref") : 60112, - Nt = kt ? Symbol.for("react.suspense") : 60113, - _t = kt ? Symbol.for("react.suspense_list") : 60120, - Lt = kt ? Symbol.for("react.memo") : 60115, - It = kt ? Symbol.for("react.lazy") : 60116, - Ft = kt ? Symbol.for("react.block") : 60121, - $t = kt ? Symbol.for("react.fundamental") : 60117, - At = kt ? Symbol.for("react.responder") : 60118, - Bt = kt ? Symbol.for("react.scope") : 60119; + vt = {}, + gt = "function" == typeof Symbol && Symbol.for, + bt = gt ? Symbol.for("react.element") : 60103, + yt = gt ? Symbol.for("react.portal") : 60106, + xt = gt ? Symbol.for("react.fragment") : 60107, + wt = gt ? Symbol.for("react.strict_mode") : 60108, + kt = gt ? Symbol.for("react.profiler") : 60114, + St = gt ? Symbol.for("react.provider") : 60109, + Ct = gt ? Symbol.for("react.context") : 60110, + Et = gt ? Symbol.for("react.async_mode") : 60111, + Rt = gt ? Symbol.for("react.concurrent_mode") : 60111, + Pt = gt ? Symbol.for("react.forward_ref") : 60112, + Mt = gt ? Symbol.for("react.suspense") : 60113, + Ot = gt ? Symbol.for("react.suspense_list") : 60120, + Tt = gt ? Symbol.for("react.memo") : 60115, + jt = gt ? Symbol.for("react.lazy") : 60116, + zt = gt ? Symbol.for("react.block") : 60121, + Nt = gt ? Symbol.for("react.fundamental") : 60117, + _t = gt ? Symbol.for("react.responder") : 60118, + Lt = gt ? Symbol.for("react.scope") : 60119; -function Dt(e) { +function It(e) { if ("object" == typeof e && null !== e) { var t = e.$$typeof; switch (t) { - case St: + case bt: switch (e = e.type) { - case Tt: - case jt: case Et: - case Pt: case Rt: - case Nt: + case xt: + case kt: + case wt: + case Mt: return e; default: switch (e = e && e.$$typeof) { - case Ot: - case zt: - case It: - case Lt: - case Mt: + case Ct: + case Pt: + case jt: + case Tt: + case St: return e; default: return t } } - case Ct: + case yt: return t } } } -function Wt(e) { - return Dt(e) === jt +function Ft(e) { + return It(e) === Rt } -wt.AsyncMode = Tt, wt.ConcurrentMode = jt, wt.ContextConsumer = Ot, wt.ContextProvider = Mt, wt.Element = St, wt.ForwardRef = zt, wt.Fragment = Et, wt.Lazy = It, wt.Memo = Lt, wt.Portal = Ct, wt.Profiler = Pt, wt.StrictMode = Rt, wt.Suspense = Nt, wt.isAsyncMode = function(e) { - return Wt(e) || Dt(e) === Tt -}, wt.isConcurrentMode = Wt, wt.isContextConsumer = function(e) { - return Dt(e) === Ot -}, wt.isContextProvider = function(e) { - return Dt(e) === Mt -}, wt.isElement = function(e) { - return "object" == typeof e && null !== e && e.$$typeof === St -}, wt.isForwardRef = function(e) { - return Dt(e) === zt -}, wt.isFragment = function(e) { - return Dt(e) === Et -}, wt.isLazy = function(e) { - return Dt(e) === It -}, wt.isMemo = function(e) { - return Dt(e) === Lt -}, wt.isPortal = function(e) { - return Dt(e) === Ct -}, wt.isProfiler = function(e) { - return Dt(e) === Pt -}, wt.isStrictMode = function(e) { - return Dt(e) === Rt -}, wt.isSuspense = function(e) { - return Dt(e) === Nt -}, wt.isValidElementType = function(e) { - return "string" == typeof e || "function" == typeof e || e === Et || e === jt || e === Pt || e === Rt || e === Nt || e === _t || "object" == typeof e && null !== e && (e.$$typeof === It || e.$$typeof === Lt || e.$$typeof === Mt || e.$$typeof === Ot || e.$$typeof === zt || e.$$typeof === $t || e.$$typeof === At || e.$$typeof === Bt || e.$$typeof === Ft) -}, wt.typeOf = Dt, xt.exports = wt; -var Ut = xt.exports, - Ht = {}; -Ht[Ut.ForwardRef] = { +vt.AsyncMode = Et, vt.ConcurrentMode = Rt, vt.ContextConsumer = Ct, vt.ContextProvider = St, vt.Element = bt, vt.ForwardRef = Pt, vt.Fragment = xt, vt.Lazy = jt, vt.Memo = Tt, vt.Portal = yt, vt.Profiler = kt, vt.StrictMode = wt, vt.Suspense = Mt, vt.isAsyncMode = function(e) { + return Ft(e) || It(e) === Et +}, vt.isConcurrentMode = Ft, vt.isContextConsumer = function(e) { + return It(e) === Ct +}, vt.isContextProvider = function(e) { + return It(e) === St +}, vt.isElement = function(e) { + return "object" == typeof e && null !== e && e.$$typeof === bt +}, vt.isForwardRef = function(e) { + return It(e) === Pt +}, vt.isFragment = function(e) { + return It(e) === xt +}, vt.isLazy = function(e) { + return It(e) === jt +}, vt.isMemo = function(e) { + return It(e) === Tt +}, vt.isPortal = function(e) { + return It(e) === yt +}, vt.isProfiler = function(e) { + return It(e) === kt +}, vt.isStrictMode = function(e) { + return It(e) === wt +}, vt.isSuspense = function(e) { + return It(e) === Mt +}, vt.isValidElementType = function(e) { + return "string" == typeof e || "function" == typeof e || e === xt || e === Rt || e === kt || e === wt || e === Mt || e === Ot || "object" == typeof e && null !== e && (e.$$typeof === jt || e.$$typeof === Tt || e.$$typeof === St || e.$$typeof === Ct || e.$$typeof === Pt || e.$$typeof === Nt || e.$$typeof === _t || e.$$typeof === Lt || e.$$typeof === zt) +}, vt.typeOf = It, mt.exports = vt; +var $t = mt.exports, + At = {}; +At[$t.ForwardRef] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 -}, Ht[Ut.Memo] = { +}, At[$t.Memo] = { $$typeof: !0, compare: !0, defaultProps: !0, @@ -1085,27 +1052,23 @@ Ht[Ut.ForwardRef] = { propTypes: !0, type: !0 }; -var Vt = "undefined" != typeof document; -function qt(e, t, n) { +function Bt(e, t, n) { var r = ""; return n.split(" ").forEach((function(n) { void 0 !== e[n] ? t.push(e[n] + ";") : r += n + " "; })), r } -var Kt = function(e, t, n) { +var Dt = function(e, t, n) { var r = e.key + "-" + t.name; - if ((!1 === n || !1 === Vt && void 0 !== e.compat) && void 0 === e.registered[r] && (e.registered[r] = t.styles), void 0 === e.inserted[t.name]) { - var o = "", - a = t; + if (!1 === n && void 0 === e.registered[r] && (e.registered[r] = t.styles), void 0 === e.inserted[t.name]) { + var o = t; do { - var i = e.insert(t === a ? "." + r : "", a, e.sheet, !0); - Vt || void 0 === i || (o += i), a = a.next; - } while (void 0 !== a); - if (!Vt && 0 !== o.length) return o + e.insert(t === o ? "." + r : "", o, e.sheet, !0), o = o.next; + } while (void 0 !== o) } }; -var Xt = { +var Wt = { animationIterationCount: 1, borderImageOutset: 1, borderImageSlice: 1, @@ -1152,99 +1115,99 @@ var Xt = { strokeOpacity: 1, strokeWidth: 1 }, - Yt = /[A-Z]|^ms/g, - Qt = /_EMO_([^_]+?)_([^]*?)_EMO_/g, - Gt = function(e) { + Ut = /[A-Z]|^ms/g, + Ht = /_EMO_([^_]+?)_([^]*?)_EMO_/g, + Vt = function(e) { return 45 === e.charCodeAt(1) }, - Zt = function(e) { + qt = function(e) { return null != e && "boolean" != typeof e }, - Jt = he((function(e) { - return Gt(e) ? e : e.replace(Yt, "-$&").toLowerCase() + Kt = he((function(e) { + return Vt(e) ? e : e.replace(Ut, "-$&").toLowerCase() })), - en = function(e, t) { + Xt = function(e, t) { switch (e) { case "animation": case "animationName": - if ("string" == typeof t) return t.replace(Qt, (function(e, t, n) { - return nn = { + if ("string" == typeof t) return t.replace(Ht, (function(e, t, n) { + return Qt = { name: t, styles: n, - next: nn + next: Qt }, t })) } - return 1 === Xt[e] || Gt(e) || "number" != typeof t || 0 === t ? t : t + "px" + return 1 === Wt[e] || Vt(e) || "number" != typeof t || 0 === t ? t : t + "px" }; -function tn(e, t, n) { +function Yt(e, t, n) { if (null == n) return ""; if (void 0 !== n.__emotion_styles) return n; switch (typeof n) { case "boolean": return ""; case "object": - if (1 === n.anim) return nn = { + if (1 === n.anim) return Qt = { name: n.name, styles: n.styles, - next: nn + next: Qt }, n.name; if (void 0 !== n.styles) { var r = n.next; if (void 0 !== r) - for (; void 0 !== r;) nn = { + for (; void 0 !== r;) Qt = { name: r.name, styles: r.styles, - next: nn + next: Qt }, r = r.next; return n.styles + ";" } return function(e, t, n) { var r = ""; if (Array.isArray(n)) - for (var o = 0; o < n.length; o++) r += tn(e, t, n[o]) + ";"; + for (var o = 0; o < n.length; o++) r += Yt(e, t, n[o]) + ";"; else for (var a in n) { var i = n[a]; - if ("object" != typeof i) null != t && void 0 !== t[i] ? r += a + "{" + t[i] + "}" : Zt(i) && (r += Jt(a) + ":" + en(a, i) + ";"); + if ("object" != typeof i) null != t && void 0 !== t[i] ? r += a + "{" + t[i] + "}" : qt(i) && (r += Kt(a) + ":" + Xt(a, i) + ";"); else if (!Array.isArray(i) || "string" != typeof i[0] || null != t && void 0 !== t[i[0]]) { - var l = tn(e, t, i); + var l = Yt(e, t, i); switch (a) { case "animation": case "animationName": - r += Jt(a) + ":" + l + ";"; + r += Kt(a) + ":" + l + ";"; break; default: r += a + "{" + l + "}"; } } else - for (var s = 0; s < i.length; s++) Zt(i[s]) && (r += Jt(a) + ":" + en(a, i[s]) + ";"); + for (var s = 0; s < i.length; s++) qt(i[s]) && (r += Kt(a) + ":" + Xt(a, i[s]) + ";"); } return r }(e, t, n); case "function": if (void 0 !== e) { - var o = nn, + var o = Qt, a = n(e); - return nn = o, tn(e, t, a) + return Qt = o, Yt(e, t, a) } } if (null == t) return n; var i = t[n]; return void 0 !== i ? i : n } -var nn, rn = /label:\s*([^\s;\n{]+)\s*(;|$)/g, - on = function(e, t, n) { +var Qt, Gt = /label:\s*([^\s;\n{]+)\s*(;|$)/g, + Zt = function(e, t, n) { if (1 === e.length && "object" == typeof e[0] && null !== e[0] && void 0 !== e[0].styles) return e[0]; var r = !0, o = ""; - nn = void 0; + Qt = void 0; var a = e[0]; - null == a || void 0 === a.raw ? (r = !1, o += tn(n, t, a)) : o += a[0]; - for (var i = 1; i < e.length; i++) o += tn(n, t, e[i]), r && (o += a[i]); - rn.lastIndex = 0; - for (var l, s = ""; null !== (l = rn.exec(o));) s += "-" + l[1]; + null == a || void 0 === a.raw ? (r = !1, o += Yt(n, t, a)) : o += a[0]; + for (var i = 1; i < e.length; i++) o += Yt(n, t, e[i]), r && (o += a[i]); + Gt.lastIndex = 0; + for (var l, s = ""; null !== (l = Gt.exec(o));) s += "-" + l[1]; var u = function(e) { for (var t, n = 0, r = 0, o = e.length; o >= 4; ++r, o -= 4) t = 1540483477 * (65535 & (t = 255 & e.charCodeAt(r) | (255 & e.charCodeAt(++r)) << 8 | (255 & e.charCodeAt(++r)) << 16 | (255 & e.charCodeAt(++r)) << 24)) + (59797 * (t >>> 16) << 16), n = 1540483477 * (65535 & (t ^= t >>> 24)) + (59797 * (t >>> 16) << 16) ^ 1540483477 * (65535 & n) + (59797 * (n >>> 16) << 16); switch (o) { @@ -1260,46 +1223,24 @@ var nn, rn = /label:\s*([^\s;\n{]+)\s*(;|$)/g, return { name: u, styles: o, - next: nn + next: Qt } }, - an = "undefined" != typeof document, - ln = T.exports.createContext("undefined" != typeof HTMLElement ? yt({ + Jt = T.exports.createContext("undefined" != typeof HTMLElement ? ht({ key: "css" }) : null); -ln.Provider; -var sn = function(e) { - return T.exports.forwardRef((function(t, n) { - var r = T.exports.useContext(ln); - return e(t, r, n) - })) -}; -an || (sn = function(e) { - return function(t) { - var n = T.exports.useContext(ln); - return null === n ? (n = yt({ - key: "css" - }), T.exports.createElement(ln.Provider, { - value: n - }, e(t, n))) : e(t, n) - } -}); -var un = T.exports.createContext({}), - cn = sn((function(e, t) { +Jt.Provider; +var en = function(e) { + return T.exports.forwardRef((function(t, n) { + var r = T.exports.useContext(Jt); + return e(t, r, n) + })) + }, + tn = T.exports.createContext({}), + nn = en((function(e, t) { var n = e.styles, - r = on([n], void 0, T.exports.useContext(un)); - if (!an) { - for (var o, a = r.name, i = r.styles, l = r.next; void 0 !== l;) a += " " + l.name, i += l.styles, l = l.next; - var s = !0 === t.compat, - u = t.insert("", { - name: a, - styles: i - }, t.sheet, s); - return s ? null : T.exports.createElement("style", ((o = {})["data-emotion"] = t.key + "-global " + a, o.dangerouslySetInnerHTML = { - __html: u - }, o.nonce = t.sheet.nonce, o)) - } - var c = T.exports.useRef(); + r = Zt([n], void 0, T.exports.useContext(tn)), + o = T.exports.useRef(); return T.exports.useLayoutEffect((function() { var e = t.key + "-global", n = new ge({ @@ -1308,32 +1249,32 @@ var un = T.exports.createContext({}), container: t.sheet.container, speedy: t.sheet.isSpeedy }), - o = !1, - a = document.querySelector('style[data-emotion="' + e + " " + r.name + '"]'); - return t.sheet.tags.length && (n.before = t.sheet.tags[0]), null !== a && (o = !0, a.setAttribute("data-emotion", e), n.hydrate([a])), c.current = [n, o], + a = !1, + i = document.querySelector('style[data-emotion="' + e + " " + r.name + '"]'); + return t.sheet.tags.length && (n.before = t.sheet.tags[0]), null !== i && (a = !0, i.setAttribute("data-emotion", e), n.hydrate([i])), o.current = [n, a], function() { n.flush(); } }), [t]), T.exports.useLayoutEffect((function() { - var e = c.current, + var e = o.current, n = e[0]; if (e[1]) e[1] = !1; else { - if (void 0 !== r.next && Kt(t, r.next, !0), n.tags.length) { - var o = n.tags[n.tags.length - 1].nextElementSibling; - n.before = o, n.flush(); + if (void 0 !== r.next && Dt(t, r.next, !0), n.tags.length) { + var a = n.tags[n.tags.length - 1].nextElementSibling; + n.before = a, n.flush(); } t.insert("", r, n, !1); } }), [t, r.name]), null })); -function dn() { +function rn() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; - return on(t) + return Zt(t) } -var pn = function() { - var e = dn.apply(void 0, arguments), +var on = function() { + var e = rn.apply(void 0, arguments), t = "animation-" + e.name; return { name: t, @@ -1344,14 +1285,14 @@ var pn = function() { } } }, - fn = ve, - hn = function(e) { + an = ve, + ln = function(e) { return "theme" !== e }, - mn = function(e) { - return "string" == typeof e && e.charCodeAt(0) > 96 ? fn : hn + sn = function(e) { + return "string" == typeof e && e.charCodeAt(0) > 96 ? an : ln }, - vn = function(e, t, n) { + un = function(e, t, n) { var r; if (t) { var o = t.shouldForwardProp; @@ -1361,104 +1302,96 @@ var pn = function() { } return "function" != typeof r && n && (r = e.__emotion_forwardProp), r }, - gn = "undefined" != typeof document, - bn = function() { + cn = function() { return null }, - yn = function t(n, r) { + dn = function t(n, r) { var o, a, i = n.__emotion_real === n, l = i && n.__emotion_base || n; void 0 !== r && (o = r.label, a = r.target); - var s = vn(n, r, i), - u = s || mn(l), - c = !u("as"); + var s = un(n, r, i), + u = s || sn(l), + c$1 = !u("as"); return function() { var d = arguments, p = i && void 0 !== n.__emotion_styles ? n.__emotion_styles.slice(0) : []; if (void 0 !== o && p.push("label:" + o + ";"), null == d[0] || void 0 === d[0].raw) p.push.apply(p, d); else { p.push(d[0][0]); - for (var f$1 = d.length, h = 1; h < f$1; h++) p.push(d[h], d[0][h]); + for (var f = d.length, h = 1; h < f; h++) p.push(d[h], d[0][h]); } - var m = sn((function(e, t, n) { - var r = c && e.as || l, + var m = en((function(e, t, n) { + var r = c$1 && e.as || l, o = "", i = [], d = e; if (null == e.theme) { for (var f in d = {}, e) d[f] = e[f]; - d.theme = T.exports.useContext(un); + d.theme = T.exports.useContext(tn); } - "string" == typeof e.className ? o = qt(t.registered, i, e.className) : null != e.className && (o = e.className + " "); - var h = on(p.concat(i), t.registered, d), - m = Kt(t, h, "string" == typeof r); - o += t.key + "-" + h.name, void 0 !== a && (o += " " + a); - var v = c && void 0 === s ? mn(r) : u, - g = {}; - for (var b in e) c && "as" === b || v(b) && (g[b] = e[b]); - g.className = o, g.ref = n; - var y = T.exports.createElement(r, g), - x = T.exports.createElement(bn, null); - if (!gn && void 0 !== m) { - for (var w, k = h.name, S = h.next; void 0 !== S;) k += " " + S.name, S = S.next; - x = T.exports.createElement("style", ((w = {})["data-emotion"] = t.key + " " + k, w.dangerouslySetInnerHTML = { - __html: m - }, w.nonce = t.sheet.nonce, w)); - } - return T.exports.createElement(T.exports.Fragment, null, x, y) + "string" == typeof e.className ? o = Bt(t.registered, i, e.className) : null != e.className && (o = e.className + " "); + var h = Zt(p.concat(i), t.registered, d); + Dt(t, h, "string" == typeof r), o += t.key + "-" + h.name, void 0 !== a && (o += " " + a); + var m = c$1 && void 0 === s ? sn(r) : u, + v = {}; + for (var g in e) c$1 && "as" === g || m(g) && (v[g] = e[g]); + v.className = o, v.ref = n; + var b = T.exports.createElement(r, v), + y = T.exports.createElement(cn, null); + return T.exports.createElement(T.exports.Fragment, null, y, b) })); return m.displayName = void 0 !== o ? o : "Styled(" + ("string" == typeof l ? l : l.displayName || l.name || "Component") + ")", m.defaultProps = n.defaultProps, m.__emotion_real = m, m.__emotion_base = l, m.__emotion_styles = p, m.__emotion_forwardProp = s, Object.defineProperty(m, "toString", { value: function() { return "." + a } }), m.withComponent = function(n, o) { - return t(n, f({}, r, o, { - shouldForwardProp: vn(m, o, !0) + return t(n, c({}, r, o, { + shouldForwardProp: un(m, o, !0) })).apply(void 0, p) }, m } }.bind(); ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"].forEach((function(e) { - yn[e] = yn(e); + dn[e] = dn(e); })); -var xn = yn, - wn = { +var pn = dn, + fn = { exports: {} }, - kn = {}, - Sn = T.exports, - Cn = 60103; -if (kn.Fragment = 60107, "function" == typeof Symbol && Symbol.for) { - var En = Symbol.for; - Cn = En("react.element"), kn.Fragment = En("react.fragment"); + hn = {}, + mn = T.exports, + vn = 60103; +if (hn.Fragment = 60107, "function" == typeof Symbol && Symbol.for) { + var gn = Symbol.for; + vn = gn("react.element"), hn.Fragment = gn("react.fragment"); } -var Rn = Sn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, - Pn = Object.prototype.hasOwnProperty, - Mn = { +var bn = mn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, + yn = Object.prototype.hasOwnProperty, + xn = { key: !0, ref: !0, __self: !0, __source: !0 }; -function On(e, t, n) { +function wn(e, t, n) { var r, o = {}, a = null, i = null; - for (r in void 0 !== n && (a = "" + n), void 0 !== t.key && (a = "" + t.key), void 0 !== t.ref && (i = t.ref), t) Pn.call(t, r) && !Mn.hasOwnProperty(r) && (o[r] = t[r]); + for (r in void 0 !== n && (a = "" + n), void 0 !== t.key && (a = "" + t.key), void 0 !== t.ref && (i = t.ref), t) yn.call(t, r) && !xn.hasOwnProperty(r) && (o[r] = t[r]); if (e && e.defaultProps) for (r in t = e.defaultProps) void 0 === o[r] && (o[r] = t[r]); return { - $$typeof: Cn, + $$typeof: vn, type: e, key: a, ref: i, props: o, - _owner: Rn.current + _owner: bn.current } } -function Tn(e) { +function kn(e) { const { styles: t, defaultTheme: n = {} @@ -1466,7 +1399,7 @@ function Tn(e) { return t(null == (r = e) || 0 === Object.keys(r).length ? n : e); var r; } : t; - return wn.exports.jsx(cn, { + return fn.exports.jsx(nn, { styles: r }) } @@ -1475,27 +1408,27 @@ function Tn(e) { * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -function jn(e, t) { - return xn(e, t) +function Sn(e, t) { + return pn(e, t) } -kn.jsx = On, kn.jsxs = On, wn.exports = kn; -var Nn = 60103, - _n = 60106, - Ln = 60107, - In = 60108, - Fn = 60114, - $n = 60109, - An = 60110, - Bn = 60112, - Dn = 60113, - Wn = 60120, - Un = 60115, - Hn = 60116, - Vn = 60121, - qn = 60122, - Kn = 60117, - Xn = 60129, - Yn = 60131; +hn.jsx = wn, hn.jsxs = wn, fn.exports = hn; +var En = 60103, + Rn = 60106, + Pn = 60107, + Mn = 60108, + On = 60114, + Tn = 60109, + jn = 60110, + zn = 60112, + Nn = 60113, + _n = 60120, + Ln = 60115, + In = 60116, + Fn = 60121, + $n = 60122, + An = 60117, + Bn = 60129, + Dn = 60131; /** @license React v17.0.2 * react-is.production.min.js * @@ -1505,17 +1438,17 @@ var Nn = 60103, * LICENSE file in the root directory of this source tree. */ if ("function" == typeof Symbol && Symbol.for) { - var Qn = Symbol.for; - Nn = Qn("react.element"), _n = Qn("react.portal"), Ln = Qn("react.fragment"), In = Qn("react.strict_mode"), Fn = Qn("react.profiler"), $n = Qn("react.provider"), An = Qn("react.context"), Bn = Qn("react.forward_ref"), Dn = Qn("react.suspense"), Wn = Qn("react.suspense_list"), Un = Qn("react.memo"), Hn = Qn("react.lazy"), Vn = Qn("react.block"), qn = Qn("react.server.block"), Kn = Qn("react.fundamental"), Xn = Qn("react.debug_trace_mode"), Yn = Qn("react.legacy_hidden"); + var Wn = Symbol.for; + En = Wn("react.element"), Rn = Wn("react.portal"), Pn = Wn("react.fragment"), Mn = Wn("react.strict_mode"), On = Wn("react.profiler"), Tn = Wn("react.provider"), jn = Wn("react.context"), zn = Wn("react.forward_ref"), Nn = Wn("react.suspense"), _n = Wn("react.suspense_list"), Ln = Wn("react.memo"), In = Wn("react.lazy"), Fn = Wn("react.block"), $n = Wn("react.server.block"), An = Wn("react.fundamental"), Bn = Wn("react.debug_trace_mode"), Dn = Wn("react.legacy_hidden"); } -function sr(...e) { +function er(...e) { return e.reduce(((e, t) => null == t ? e : function(...n) { e.apply(this, n), t.apply(this, n); }), (() => {})) } -function ur(e, t = 166) { +function tr(e, t = 166) { let n; function r(...r) { @@ -1528,32 +1461,32 @@ function ur(e, t = 166) { }, r } -function cr(e, t) { +function nr(e, t) { return T.exports.isValidElement(e) && -1 !== t.indexOf(e.type.muiName) } -function dr(e) { +function rr(e) { return e && e.ownerDocument || document } -function pr(e) { - return dr(e).defaultView || window +function or(e) { + return rr(e).defaultView || window } -function fr(e, t) { +function ar(e, t) { "function" == typeof e ? e(t) : e && (e.current = t); } -var hr = "undefined" != typeof window ? T.exports.useLayoutEffect : T.exports.useEffect; -let mr = 0; +var ir = "undefined" != typeof window ? T.exports.useLayoutEffect : T.exports.useEffect; +let lr = 0; -function vr(e) { +function sr(e) { const [t, n] = T.exports.useState(e), r = e || t; return T.exports.useEffect((() => { - null == t && (mr += 1, n(`mui-${mr}`)); + null == t && (lr += 1, n(`mui-${lr}`)); }), [t]), r } -function gr({ +function ur({ controlled: e, default: t, name: n, @@ -1567,21 +1500,21 @@ function gr({ }), [])] } -function br(e) { +function cr(e) { const t = T.exports.useRef(e); - return hr((() => { + return ir((() => { t.current = e; })), T.exports.useCallback(((...e) => (0, t.current)(...e)), []) } -function yr(e, t) { +function dr(e, t) { return T.exports.useMemo((() => null == e && null == t ? null : n => { - fr(e, n), fr(t, n); + ar(e, n), ar(t, n); }), [e, t]) } -let xr, wr = !0, - kr = !1; -const Sr = { +let pr, fr = !0, + hr = !1; +const mr = { text: !0, search: !0, url: !0, @@ -1597,71 +1530,71 @@ const Sr = { "datetime-local": !0 }; -function Cr(e) { - e.metaKey || e.altKey || e.ctrlKey || (wr = !0); +function vr(e) { + e.metaKey || e.altKey || e.ctrlKey || (fr = !0); } -function Er() { - wr = !1; +function gr() { + fr = !1; } -function Rr() { - "hidden" === this.visibilityState && kr && (wr = !0); +function br() { + "hidden" === this.visibilityState && hr && (fr = !0); } -function Pr(e) { +function yr(e) { const { target: t } = e; try { return t.matches(":focus-visible") } catch (e) {} - return wr || function(e) { + return fr || function(e) { const { type: t, tagName: n } = e; - return !("INPUT" !== n || !Sr[t] || e.readOnly) || "TEXTAREA" === n && !e.readOnly || !!e.isContentEditable + return !("INPUT" !== n || !mr[t] || e.readOnly) || "TEXTAREA" === n && !e.readOnly || !!e.isContentEditable }(t) } -function Mr() { +function xr() { const e = T.exports.useCallback((e => { var t; - null != e && ((t = e.ownerDocument).addEventListener("keydown", Cr, !0), t.addEventListener("mousedown", Er, !0), t.addEventListener("pointerdown", Er, !0), t.addEventListener("touchstart", Er, !0), t.addEventListener("visibilitychange", Rr, !0)); + null != e && ((t = e.ownerDocument).addEventListener("keydown", vr, !0), t.addEventListener("mousedown", gr, !0), t.addEventListener("pointerdown", gr, !0), t.addEventListener("touchstart", gr, !0), t.addEventListener("visibilitychange", br, !0)); }), []), t = T.exports.useRef(!1); return { isFocusVisibleRef: t, onFocus: function(e) { - return !!Pr(e) && (t.current = !0, !0) + return !!yr(e) && (t.current = !0, !0) }, onBlur: function() { - return !!t.current && (kr = !0, window.clearTimeout(xr), xr = window.setTimeout((() => { - kr = !1; + return !!t.current && (hr = !0, window.clearTimeout(pr), pr = window.setTimeout((() => { + hr = !1; }), 100), t.current = !1, !0) }, ref: e } } -function Or(e) { +function wr(e) { const t = e.documentElement.clientWidth; return Math.abs(window.innerWidth - t) } -let Tr; +let kr; -function jr() { - if (Tr) return Tr; +function Sr() { + if (kr) return kr; const e = document.createElement("div"), t = document.createElement("div"); - return t.style.width = "10px", t.style.height = "1px", e.appendChild(t), e.dir = "rtl", e.style.fontSize = "14px", e.style.width = "4px", e.style.height = "1px", e.style.position = "absolute", e.style.top = "-1000px", e.style.overflow = "scroll", document.body.appendChild(e), Tr = "reverse", e.scrollLeft > 0 ? Tr = "default" : (e.scrollLeft = 1, 0 === e.scrollLeft && (Tr = "negative")), document.body.removeChild(e), Tr + return t.style.width = "10px", t.style.height = "1px", e.appendChild(t), e.dir = "rtl", e.style.fontSize = "14px", e.style.width = "4px", e.style.height = "1px", e.style.position = "absolute", e.style.top = "-1000px", e.style.overflow = "scroll", document.body.appendChild(e), kr = "reverse", e.scrollLeft > 0 ? kr = "default" : (e.scrollLeft = 1, 0 === e.scrollLeft && (kr = "negative")), document.body.removeChild(e), kr } -function zr(e, t) { +function Cr(e, t) { const n = e.scrollLeft; if ("rtl" !== t) return n; - switch (jr()) { + switch (Sr()) { case "negative": return e.scrollWidth - e.clientWidth + n; case "reverse": @@ -1671,14 +1604,14 @@ function zr(e, t) { } } -function Nr(t, n) { - const r = f({}, n); +function Er(t, n) { + const r = c({}, n); return Object.keys(t).forEach((e => { void 0 === r[e] && (r[e] = t[e]); })), r } -function _r(...e) { +function Rr(...e) { const n = e.reduce(((e, t) => (t.filterProps.forEach((n => { e[n] = t; })), e)), {}), @@ -1686,55 +1619,55 @@ function _r(...e) { return r.propTypes = {}, r.filterProps = e.reduce(((e, t) => e.concat(t.filterProps)), []), r } -function Lr(e) { +function Pr(e) { return "number" != typeof e ? e : `${e}px solid` } -const Ir = A$1({ +const Mr = A$1({ prop: "border", themeKey: "borders", - transform: Lr + transform: Pr }), - Fr = A$1({ + Or = A$1({ prop: "borderTop", themeKey: "borders", - transform: Lr + transform: Pr }), - $r = A$1({ + Tr = A$1({ prop: "borderRight", themeKey: "borders", - transform: Lr + transform: Pr }), - Ar = A$1({ + jr = A$1({ prop: "borderBottom", themeKey: "borders", - transform: Lr + transform: Pr }), - Br = A$1({ + zr = A$1({ prop: "borderLeft", themeKey: "borders", - transform: Lr + transform: Pr }), - Dr = A$1({ + Nr = A$1({ prop: "borderColor", themeKey: "palette" }), - Wr = A$1({ + _r = A$1({ prop: "borderTopColor", themeKey: "palette" }), - Ur = A$1({ + Lr = A$1({ prop: "borderRightColor", themeKey: "palette" }), - Hr = A$1({ + Ir = A$1({ prop: "borderBottomColor", themeKey: "palette" }), - Vr = A$1({ + Fr = A$1({ prop: "borderLeftColor", themeKey: "palette" }), - qr = e => { + $r = e => { if (void 0 !== e.borderRadius && null !== e.borderRadius) { const t = j$1(e.theme, "shape.borderRadius", 4), n = e => ({ @@ -1744,9 +1677,9 @@ const Ir = A$1({ } return null }; -qr.propTypes = {}, qr.filterProps = ["borderRadius"]; -var Kr = _r(Ir, Fr, $r, Ar, Br, Dr, Wr, Ur, Hr, Vr, qr); -var Xr = _r(A$1({ +$r.propTypes = {}, $r.filterProps = ["borderRadius"]; +var Ar = Rr(Mr, Or, Tr, jr, zr, Nr, _r, Lr, Ir, Fr, $r); +var Br = Rr(A$1({ prop: "displayPrint", cssProperty: !1, transform: e => ({ @@ -1765,7 +1698,7 @@ var Xr = _r(A$1({ }), A$1({ prop: "whiteSpace" })); -var Yr = _r(A$1({ +var Dr = Rr(A$1({ prop: "flexBasis" }), A$1({ prop: "flexDirection" @@ -1792,7 +1725,7 @@ var Yr = _r(A$1({ }), A$1({ prop: "justifySelf" })); -const Qr = e => { +const Wr = e => { if (void 0 !== e.gap && null !== e.gap) { const t = j$1(e.theme, "spacing", 8), n = e => ({ @@ -1802,8 +1735,8 @@ const Qr = e => { } return null }; -Qr.propTypes = {}, Qr.filterProps = ["gap"]; -const Gr = e => { +Wr.propTypes = {}, Wr.filterProps = ["gap"]; +const Ur = e => { if (void 0 !== e.columnGap && null !== e.columnGap) { const t = j$1(e.theme, "spacing", 8), n = e => ({ @@ -1813,8 +1746,8 @@ const Gr = e => { } return null }; -Gr.propTypes = {}, Gr.filterProps = ["columnGap"]; -const Zr = e => { +Ur.propTypes = {}, Ur.filterProps = ["columnGap"]; +const Hr = e => { if (void 0 !== e.rowGap && null !== e.rowGap) { const t = j$1(e.theme, "spacing", 8), n = e => ({ @@ -1824,8 +1757,8 @@ const Zr = e => { } return null }; -Zr.propTypes = {}, Zr.filterProps = ["rowGap"]; -var Jr = _r(Qr, Gr, Zr, A$1({ +Hr.propTypes = {}, Hr.filterProps = ["rowGap"]; +var Vr = Rr(Wr, Ur, Hr, A$1({ prop: "gridColumn" }), A$1({ prop: "gridRow" @@ -1844,7 +1777,7 @@ var Jr = _r(Qr, Gr, Zr, A$1({ }), A$1({ prop: "gridArea" })); -var eo = _r(A$1({ +var qr = Rr(A$1({ prop: "color", themeKey: "palette" }), A$1({ @@ -1855,7 +1788,7 @@ var eo = _r(A$1({ prop: "backgroundColor", themeKey: "palette" })); -var to = _r(A$1({ +var Kr = Rr(A$1({ prop: "position" }), A$1({ prop: "zIndex", @@ -1869,129 +1802,129 @@ var to = _r(A$1({ }), A$1({ prop: "left" })); -var no = A$1({ +var Xr = A$1({ prop: "boxShadow", themeKey: "shadows" }); -function ro(e) { +function Yr(e) { return e <= 1 && 0 !== e ? 100 * e + "%" : e } -const oo = A$1({ +const Qr = A$1({ prop: "width", - transform: ro + transform: Yr }), - ao = e => { + Gr = e => { if (void 0 !== e.maxWidth && null !== e.maxWidth) { const t = t => { var n, r, o; return { - maxWidth: (null == (n = e.theme) || null == (r = n.breakpoints) || null == (o = r.values) ? void 0 : o[t]) || m$1[t] || ro(t) + maxWidth: (null == (n = e.theme) || null == (r = n.breakpoints) || null == (o = r.values) ? void 0 : o[t]) || m$1[t] || Yr(t) } }; return y(e, e.maxWidth, t) } return null }; -ao.filterProps = ["maxWidth"]; -const io = A$1({ +Gr.filterProps = ["maxWidth"]; +const Zr = A$1({ prop: "minWidth", - transform: ro + transform: Yr }), - lo = A$1({ + Jr = A$1({ prop: "height", - transform: ro + transform: Yr }), - so = A$1({ + eo = A$1({ prop: "maxHeight", - transform: ro + transform: Yr }), - uo = A$1({ + to = A$1({ prop: "minHeight", - transform: ro + transform: Yr }); A$1({ prop: "size", cssProperty: "width", - transform: ro + transform: Yr }), A$1({ prop: "size", cssProperty: "height", - transform: ro + transform: Yr }); -var co = _r(oo, ao, io, lo, so, uo, A$1({ +var no = Rr(Qr, Gr, Zr, Jr, eo, to, A$1({ prop: "boxSizing" })); -const po = A$1({ +const ro = A$1({ prop: "fontFamily", themeKey: "typography" }), - fo = A$1({ + oo = A$1({ prop: "fontSize", themeKey: "typography" }), - ho = A$1({ + ao = A$1({ prop: "fontStyle", themeKey: "typography" }), - mo = A$1({ + io = A$1({ prop: "fontWeight", themeKey: "typography" }), - vo = A$1({ + lo = A$1({ prop: "letterSpacing" }), - go = A$1({ + so = A$1({ prop: "lineHeight" }), - bo = A$1({ + uo = A$1({ prop: "textAlign" }); -var yo = _r(A$1({ +var co = Rr(A$1({ prop: "typography", cssProperty: !1, themeKey: "typography" -}), po, fo, ho, mo, vo, go, bo); -const xo = { - borders: Kr.filterProps, - display: Xr.filterProps, - flexbox: Yr.filterProps, - grid: Jr.filterProps, - positions: to.filterProps, - palette: eo.filterProps, - shadows: no.filterProps, - sizing: co.filterProps, +}), ro, oo, ao, io, lo, so, uo); +const po = { + borders: Ar.filterProps, + display: Br.filterProps, + flexbox: Dr.filterProps, + grid: Vr.filterProps, + positions: Kr.filterProps, + palette: qr.filterProps, + shadows: Xr.filterProps, + sizing: no.filterProps, spacing: z$1.filterProps, - typography: yo.filterProps + typography: co.filterProps }, - wo = { - borders: Kr, - display: Xr, - flexbox: Yr, - grid: Jr, - positions: to, - palette: eo, - shadows: no, - sizing: co, + fo = { + borders: Ar, + display: Br, + flexbox: Dr, + grid: Vr, + positions: Kr, + palette: qr, + shadows: Xr, + sizing: no, spacing: z$1, - typography: yo + typography: co }, - ko = Object.keys(xo).reduce(((e, t) => (xo[t].forEach((n => { - e[n] = wo[t]; + ho = Object.keys(po).reduce(((e, t) => (po[t].forEach((n => { + e[n] = fo[t]; })), e)), {}); -function So(e, t, n) { +function mo(e, t, n) { const r = { [e]: t, theme: n }, - o = ko[e]; + o = ho[e]; return o ? o(r) : { [e]: t } } -function Co(e) { +function vo(e) { const { sx: n, theme: r = {} @@ -2010,7 +1943,7 @@ function Co(e) { var i, s; if (null != a) if ("object" == typeof a) - if (ko[e]) l = h(l, So(e, a, r)); + if (ho[e]) l = h(l, mo(e, a, r)); else { const n = y({ theme: r @@ -2021,23 +1954,23 @@ function Co(e) { const t = e.reduce(((e, t) => e.concat(Object.keys(t))), []), n = new Set(t); return e.every((e => n.size === Object.keys(e).length)) - }(n, a) ? l = h(l, n): l[e] = Co({ + }(n, a) ? l = h(l, n): l[e] = vo({ sx: a, theme: r }); } - else l = h(l, So(e, a, r)); + else l = h(l, mo(e, a, r)); })), k(i, l) } return Array.isArray(n) ? n.map(a) : a(n) } -Co.filterProps = ["sx"]; -const Eo = ["sx"]; +vo.filterProps = ["sx"]; +const go = ["sx"]; -function Ro(t) { +function bo(t) { const { sx: n - } = t, r = u(t, Eo), { + } = t, r = u(t, go), { systemProps: o, otherProps: a } = (e => { @@ -2046,121 +1979,121 @@ function Ro(t) { otherProps: {} }; return Object.keys(e).forEach((n => { - ko[n] ? t.systemProps[n] = e[n] : t.otherProps[n] = e[n]; + ho[n] ? t.systemProps[n] = e[n] : t.otherProps[n] = e[n]; })), t })(r); let i; return i = Array.isArray(n) ? [o, ...n] : "function" == typeof n ? (...t) => { const r = n(...t); - return l(r) ? f({}, o, r) : o - } : f({}, o, n), f({}, a, { + return l(r) ? c({}, o, r) : o + } : c({}, o, n), c({}, a, { sx: i }) } -function Po(e) { +function yo(e) { var t, n, r = ""; if ("string" == typeof e || "number" == typeof e) r += e; else if ("object" == typeof e) if (Array.isArray(e)) - for (t = 0; t < e.length; t++) e[t] && (n = Po(e[t])) && (r && (r += " "), r += n); + for (t = 0; t < e.length; t++) e[t] && (n = yo(e[t])) && (r && (r += " "), r += n); else for (t in e) e[t] && (r && (r += " "), r += t); return r } -function Mo() { - for (var e, t, n = 0, r = ""; n < arguments.length;)(e = arguments[n++]) && (t = Po(e)) && (r && (r += " "), r += t); +function xo() { + for (var e, t, n = 0, r = ""; n < arguments.length;)(e = arguments[n++]) && (t = yo(e)) && (r && (r += " "), r += t); return r } -var Oo = T.exports.createContext(null); +var wo = T.exports.createContext(null); -function To() { - return T.exports.useContext(Oo) +function ko() { + return T.exports.useContext(wo) } -var jo = "function" == typeof Symbol && Symbol.for ? Symbol.for("mui.nested") : "__THEME_NESTED__"; +var So = "function" == typeof Symbol && Symbol.for ? Symbol.for("mui.nested") : "__THEME_NESTED__"; -function zo(t) { +function Co(t) { const { children: n, theme: r - } = t, o = To(), a = T.exports.useMemo((() => { + } = t, o = ko(), a = T.exports.useMemo((() => { const t = null === o ? r : function(t, n) { if ("function" == typeof n) return n(t); - return f({}, t, n) + return c({}, t, n) }(o, r); - return null != t && (t[jo] = null !== o), t + return null != t && (t[So] = null !== o), t }), [r, o]); - return wn.exports.jsx(Oo.Provider, { + return fn.exports.jsx(wo.Provider, { value: a, children: n }) } -function No(e = null) { - const t = To(); +function Eo(e = null) { + const t = ko(); return t && (n = t, 0 !== Object.keys(n).length) ? t : e; var n; } -const _o = L$1(); +const Ro = L$1(); -function Lo(e = _o) { - return No(e) +function Po(e = Ro) { + return Eo(e) } -const Io = ["className", "component"]; +const Mo = ["className", "component"]; -function Fo(t = {}) { +function Oo(t = {}) { const { defaultTheme: n, defaultClassName: r = "MuiBox-root", generateClassName: o - } = t, a = jn("div")(Co); + } = t, a = Sn("div")(vo); return T.exports.forwardRef((function(t, i) { - const l = Lo(n), - s = Ro(t), + const l = Po(n), + s = bo(t), { className: u$1, component: d = "div" } = s, - p = u(s, Io); - return wn.exports.jsx(a, f({ + p = u(s, Mo); + return fn.exports.jsx(a, c({ as: d, ref: i, - className: Mo(u$1, o ? o(r) : r), + className: xo(u$1, o ? o(r) : r), theme: l }, p)) })) } -var $o = Fo(); -const Ao = ["variant"]; +var To = Oo(); +const jo = ["variant"]; -function Bo(e) { +function zo(e) { return 0 === e.length } -function Do(e) { +function No(e) { const { variant: t - } = e, n = u(e, Ao); + } = e, n = u(e, jo); let r = t || ""; return Object.keys(n).sort().forEach((t => { - r += "color" === t ? Bo(r) ? e[t] : g(e[t]) : `${Bo(r)?t:g(t)}${g(e[t].toString())}`; + r += "color" === t ? zo(r) ? e[t] : g(e[t]) : `${zo(r)?t:g(t)}${g(e[t].toString())}`; })), r } -const Wo = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"], - Uo = ["theme"], - Ho = ["theme"]; +const _o = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"], + Lo = ["theme"], + Io = ["theme"]; -function Vo(e) { +function Fo(e) { return 0 === Object.keys(e).length } -function qo(e) { +function $o(e) { return "ownerState" !== e && "theme" !== e && "sx" !== e && "as" !== e } -const Ko = L$1(); +const Ao = L$1(); -function Xo({ +function Bo({ props: e, name: t, defaultTheme: n @@ -2171,53 +2104,53 @@ function Xo({ name: n, props: r } = e; - return t && t.components && t.components[n] && t.components[n].defaultProps ? Nr(t.components[n].defaultProps, r) : r + return t && t.components && t.components[n] && t.components[n].defaultProps ? Er(t.components[n].defaultProps, r) : r }({ - theme: Lo(n), + theme: Po(n), name: t, props: e }); return r } -function Yo(e) { - const t = Lo(); - return wn.exports.jsx(un.Provider, { +function Do(e) { + const t = Po(); + return fn.exports.jsx(tn.Provider, { value: "object" == typeof t ? t : {}, children: e.children }) } -function Qo(e) { +function Wo(e) { return "string" == typeof e } -function Go(t, n = {}, r) { - return Qo(t) ? n : f({}, n, { - ownerState: f({}, n.ownerState, r) +function Uo(t, n = {}, r) { + return Wo(t) ? n : c({}, n, { + ownerState: c({}, n.ownerState, r) }) } -function Zo(e, t, n) { +function Ho(e, t, n) { const r = {}; return Object.keys(e).forEach((o => { r[o] = e[o].reduce(((e, r) => (r && (n && n[r] && e.push(n[r]), e.push(t(r))), e)), []).join(" "); })), r } -const Jo = e => e; -var ea = (() => { - let e = Jo; +const Vo = e => e; +var qo = (() => { + let e = Vo; return { configure(t) { e = t; }, generate: t => e(t), reset() { - e = Jo; + e = Vo; } } })(); -const ta = { +const Ko = { active: "Mui-active", checked: "Mui-checked", completed: "Mui-completed", @@ -2230,23 +2163,23 @@ const ta = { selected: "Mui-selected" }; -function na(e, t) { - return ta[t] || `${ea.generate(e)}-${t}` +function Xo(e, t) { + return Ko[t] || `${qo.generate(e)}-${t}` } -function ra(e, t) { +function Yo(e, t) { const n = {}; return t.forEach((t => { - n[t] = na(e, t); + n[t] = Xo(e, t); })), n } -function oa(e) { - return na("MuiBackdrop", e) +function Qo(e) { + return Xo("MuiBackdrop", e) } -ra("MuiBackdrop", ["root", "invisible"]); -const aa = ["classes", "className", "invisible", "component", "components", "componentsProps", "theme"]; -var ia = T.exports.forwardRef((function(t, n) { +Yo("MuiBackdrop", ["root", "invisible"]); +const Go = ["classes", "className", "invisible", "component", "components", "componentsProps", "theme"]; +var Zo = T.exports.forwardRef((function(t, n) { const { classes: r, className: o, @@ -2255,38 +2188,38 @@ var ia = T.exports.forwardRef((function(t, n) { components: l = {}, componentsProps: s = {}, theme: u$1 - } = t, d = u(t, aa), p = f({}, t, { + } = t, d = u(t, Go), p = c({}, t, { classes: r, invisible: a - }), f$1 = (e => { + }), f = (e => { const { classes: t, invisible: n } = e; - return Zo({ + return Ho({ root: ["root", n && "invisible"] - }, oa, t) + }, Qo, t) })(p), h = l.Root || i, m = s.root || {}; - return wn.exports.jsx(h, f({ + return fn.exports.jsx(h, c({ "aria-hidden": !0 - }, m, !Qo(h) && { + }, m, !Wo(h) && { as: i, - ownerState: f({}, p, m.ownerState), + ownerState: c({}, p, m.ownerState), theme: u$1 }, { ref: n }, d, { - className: Mo(f$1.root, m.className, o) + className: xo(f.root, m.className, o) })) })), - la = { + Jo = { exports: {} }, - sa = {}, - ua = { + ea = {}, + ta = { exports: {} }, - ca = {}; + na = {}; /** @license React v0.20.2 * scheduler.production.min.js * @@ -2545,7 +2478,7 @@ var ia = T.exports.forwardRef((function(t, n) { } } }; -}(ca), ua.exports = ca; +}(na), ta.exports = na; /** @license React v17.0.2 * react-dom.production.min.js * @@ -2554,37 +2487,37 @@ var ia = T.exports.forwardRef((function(t, n) { * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var da = T.exports, - pa = I, - fa = ua.exports; +var ra = T.exports, + oa = I, + aa = ta.exports; -function ha(e) { +function ia(e) { for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]); return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." } -if (!da) throw Error(ha(227)); -var ma = new Set, - va = {}; +if (!ra) throw Error(ia(227)); +var la = new Set, + sa = {}; -function ga(e, t) { - ba(e, t), ba(e + "Capture", t); +function ua(e, t) { + ca(e, t), ca(e + "Capture", t); } -function ba(e, t) { - for (va[e] = t, e = 0; e < t.length; e++) ma.add(t[e]); +function ca(e, t) { + for (sa[e] = t, e = 0; e < t.length; e++) la.add(t[e]); } -var ya = !("undefined" == typeof window || void 0 === window.document || void 0 === window.document.createElement), - xa = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, - wa = Object.prototype.hasOwnProperty, - ka = {}, - Sa = {}; +var da = !("undefined" == typeof window || void 0 === window.document || void 0 === window.document.createElement), + pa = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, + fa = Object.prototype.hasOwnProperty, + ha = {}, + ma = {}; -function Ca(e, t, n, r, o, a, i) { +function va(e, t, n, r, o, a, i) { this.acceptsBooleans = 2 === t || 3 === t || 4 === t, this.attributeName = r, this.attributeNamespace = o, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = a, this.removeEmptyString = i; } -var Ea = {}; +var ga = {}; "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e) { - Ea[e] = new Ca(e, 0, !1, e, null, !1, !1); + ga[e] = new va(e, 0, !1, e, null, !1, !1); })), [ ["acceptCharset", "accept-charset"], ["className", "class"], @@ -2592,30 +2525,30 @@ var Ea = {}; ["httpEquiv", "http-equiv"] ].forEach((function(e) { var t = e[0]; - Ea[t] = new Ca(t, 1, !1, e[1], null, !1, !1); + ga[t] = new va(t, 1, !1, e[1], null, !1, !1); })), ["contentEditable", "draggable", "spellCheck", "value"].forEach((function(e) { - Ea[e] = new Ca(e, 2, !1, e.toLowerCase(), null, !1, !1); + ga[e] = new va(e, 2, !1, e.toLowerCase(), null, !1, !1); })), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach((function(e) { - Ea[e] = new Ca(e, 2, !1, e, null, !1, !1); + ga[e] = new va(e, 2, !1, e, null, !1, !1); })), "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e) { - Ea[e] = new Ca(e, 3, !1, e.toLowerCase(), null, !1, !1); + ga[e] = new va(e, 3, !1, e.toLowerCase(), null, !1, !1); })), ["checked", "multiple", "muted", "selected"].forEach((function(e) { - Ea[e] = new Ca(e, 3, !0, e, null, !1, !1); + ga[e] = new va(e, 3, !0, e, null, !1, !1); })), ["capture", "download"].forEach((function(e) { - Ea[e] = new Ca(e, 4, !1, e, null, !1, !1); + ga[e] = new va(e, 4, !1, e, null, !1, !1); })), ["cols", "rows", "size", "span"].forEach((function(e) { - Ea[e] = new Ca(e, 6, !1, e, null, !1, !1); + ga[e] = new va(e, 6, !1, e, null, !1, !1); })), ["rowSpan", "start"].forEach((function(e) { - Ea[e] = new Ca(e, 5, !1, e.toLowerCase(), null, !1, !1); + ga[e] = new va(e, 5, !1, e.toLowerCase(), null, !1, !1); })); -var Ra = /[\-:]([a-z])/g; +var ba = /[\-:]([a-z])/g; -function Pa(e) { +function ya(e) { return e[1].toUpperCase() } -function Ma(e, t, n, r) { - var o = Ea.hasOwnProperty(t) ? Ea[t] : null; +function xa(e, t, n, r) { + var o = ga.hasOwnProperty(t) ? ga[t] : null; (null !== o ? 0 === o.type : !r && (2 < t.length && ("o" === t[0] || "O" === t[0]) && ("n" === t[1] || "N" === t[1]))) || (function(e, t, n, r) { if (null == t || function(e, t, n, r) { if (null !== n && 0 === n.type) return !1; @@ -2642,65 +2575,65 @@ function Ma(e, t, n, r) { } return !1 }(t, n, o, r) && (n = null), r || null === o ? function(e) { - return !!wa.call(Sa, e) || !wa.call(ka, e) && (xa.test(e) ? Sa[e] = !0 : (ka[e] = !0, !1)) + return !!fa.call(ma, e) || !fa.call(ha, e) && (pa.test(e) ? ma[e] = !0 : (ha[e] = !0, !1)) }(t) && (null === n ? e.removeAttribute(t) : e.setAttribute(t, "" + n)) : o.mustUseProperty ? e[o.propertyName] = null === n ? 3 !== o.type && "" : n : (t = o.attributeName, r = o.attributeNamespace, null === n ? e.removeAttribute(t) : (n = 3 === (o = o.type) || 4 === o && !0 === n ? "" : "" + n, r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n)))); } "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e) { - var t = e.replace(Ra, Pa); - Ea[t] = new Ca(t, 1, !1, e, null, !1, !1); + var t = e.replace(ba, ya); + ga[t] = new va(t, 1, !1, e, null, !1, !1); })), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e) { - var t = e.replace(Ra, Pa); - Ea[t] = new Ca(t, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1); + var t = e.replace(ba, ya); + ga[t] = new va(t, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1); })), ["xml:base", "xml:lang", "xml:space"].forEach((function(e) { - var t = e.replace(Ra, Pa); - Ea[t] = new Ca(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1); + var t = e.replace(ba, ya); + ga[t] = new va(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1); })), ["tabIndex", "crossOrigin"].forEach((function(e) { - Ea[e] = new Ca(e, 1, !1, e.toLowerCase(), null, !1, !1); -})), Ea.xlinkHref = new Ca("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), ["src", "href", "action", "formAction"].forEach((function(e) { - Ea[e] = new Ca(e, 1, !1, e.toLowerCase(), null, !0, !0); + ga[e] = new va(e, 1, !1, e.toLowerCase(), null, !1, !1); +})), ga.xlinkHref = new va("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), ["src", "href", "action", "formAction"].forEach((function(e) { + ga[e] = new va(e, 1, !1, e.toLowerCase(), null, !0, !0); })); -var Oa = da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, - Ta = 60103, - ja = 60106, - za = 60107, - Na = 60108, - _a = 60114, - La = 60109, - Ia = 60110, - Fa = 60112, - $a = 60113, - Aa = 60120, - Ba = 60115, - Da = 60116, - Wa = 60121, - Ua = 60128, - Ha = 60129, - Va = 60130, - qa = 60131; +var wa = ra.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, + ka = 60103, + Sa = 60106, + Ca = 60107, + Ea = 60108, + Ra = 60114, + Pa = 60109, + Ma = 60110, + Oa = 60112, + Ta = 60113, + ja = 60120, + za = 60115, + Na = 60116, + _a = 60121, + La = 60128, + Ia = 60129, + Fa = 60130, + $a = 60131; if ("function" == typeof Symbol && Symbol.for) { - var Ka = Symbol.for; - Ta = Ka("react.element"), ja = Ka("react.portal"), za = Ka("react.fragment"), Na = Ka("react.strict_mode"), _a = Ka("react.profiler"), La = Ka("react.provider"), Ia = Ka("react.context"), Fa = Ka("react.forward_ref"), $a = Ka("react.suspense"), Aa = Ka("react.suspense_list"), Ba = Ka("react.memo"), Da = Ka("react.lazy"), Wa = Ka("react.block"), Ka("react.scope"), Ua = Ka("react.opaque.id"), Ha = Ka("react.debug_trace_mode"), Va = Ka("react.offscreen"), qa = Ka("react.legacy_hidden"); + var Aa = Symbol.for; + ka = Aa("react.element"), Sa = Aa("react.portal"), Ca = Aa("react.fragment"), Ea = Aa("react.strict_mode"), Ra = Aa("react.profiler"), Pa = Aa("react.provider"), Ma = Aa("react.context"), Oa = Aa("react.forward_ref"), Ta = Aa("react.suspense"), ja = Aa("react.suspense_list"), za = Aa("react.memo"), Na = Aa("react.lazy"), _a = Aa("react.block"), Aa("react.scope"), La = Aa("react.opaque.id"), Ia = Aa("react.debug_trace_mode"), Fa = Aa("react.offscreen"), $a = Aa("react.legacy_hidden"); } -var Xa, Ya = "function" == typeof Symbol && Symbol.iterator; +var Ba, Da = "function" == typeof Symbol && Symbol.iterator; -function Qa(e) { - return null === e || "object" != typeof e ? null : "function" == typeof(e = Ya && e[Ya] || e["@@iterator"]) ? e : null +function Wa(e) { + return null === e || "object" != typeof e ? null : "function" == typeof(e = Da && e[Da] || e["@@iterator"]) ? e : null } -function Ga(e) { - if (void 0 === Xa) try { +function Ua(e) { + if (void 0 === Ba) try { throw Error() } catch (e) { var t = e.stack.trim().match(/\n( *(at )?)/); - Xa = t && t[1] || ""; + Ba = t && t[1] || ""; } - return "\n" + Xa + e + return "\n" + Ba + e } -var Za = !1; +var Ha = !1; -function Ja(e, t) { - if (!e || Za) return ""; - Za = !0; +function Va(e, t) { + if (!e || Ha) return ""; + Ha = !0; var n = Error.prepareStackTrace; Error.prepareStackTrace = void 0; try { @@ -2747,76 +2680,76 @@ function Ja(e, t) { } } } finally { - Za = !1, Error.prepareStackTrace = n; + Ha = !1, Error.prepareStackTrace = n; } - return (e = e ? e.displayName || e.name : "") ? Ga(e) : "" + return (e = e ? e.displayName || e.name : "") ? Ua(e) : "" } -function ei(e) { +function qa(e) { switch (e.tag) { case 5: - return Ga(e.type); + return Ua(e.type); case 16: - return Ga("Lazy"); + return Ua("Lazy"); case 13: - return Ga("Suspense"); + return Ua("Suspense"); case 19: - return Ga("SuspenseList"); + return Ua("SuspenseList"); case 0: case 2: case 15: - return e = Ja(e.type, !1); + return e = Va(e.type, !1); case 11: - return e = Ja(e.type.render, !1); + return e = Va(e.type.render, !1); case 22: - return e = Ja(e.type._render, !1); + return e = Va(e.type._render, !1); case 1: - return e = Ja(e.type, !0); + return e = Va(e.type, !0); default: return "" } } -function ti(e) { +function Ka(e) { if (null == e) return null; if ("function" == typeof e) return e.displayName || e.name || null; if ("string" == typeof e) return e; switch (e) { - case za: + case Ca: return "Fragment"; - case ja: + case Sa: return "Portal"; - case _a: + case Ra: return "Profiler"; - case Na: + case Ea: return "StrictMode"; - case $a: + case Ta: return "Suspense"; - case Aa: + case ja: return "SuspenseList" } if ("object" == typeof e) switch (e.$$typeof) { - case Ia: + case Ma: return (e.displayName || "Context") + ".Consumer"; - case La: + case Pa: return (e._context.displayName || "Context") + ".Provider"; - case Fa: + case Oa: var t = e.render; return t = t.displayName || t.name || "", e.displayName || ("" !== t ? "ForwardRef(" + t + ")" : "ForwardRef"); - case Ba: - return ti(e.type); - case Wa: - return ti(e._render); - case Da: + case za: + return Ka(e.type); + case _a: + return Ka(e._render); + case Na: t = e._payload, e = e._init; try { - return ti(e(t)) + return Ka(e(t)) } catch (e) {} } return null } -function ni(e) { +function Xa(e) { switch (typeof e) { case "boolean": case "number": @@ -2829,14 +2762,14 @@ function ni(e) { } } -function ri(e) { +function Ya(e) { var t = e.type; return (e = e.nodeName) && "input" === e.toLowerCase() && ("checkbox" === t || "radio" === t) } -function oi(e) { +function Qa(e) { e._valueTracker || (e._valueTracker = function(e) { - var t = ri(e) ? "checked" : "value", + var t = Ya(e) ? "checked" : "value", n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t), r = "" + e[t]; if (!e.hasOwnProperty(t) && void 0 !== n && "function" == typeof n.get && "function" == typeof n.set) { @@ -2867,16 +2800,16 @@ function oi(e) { }(e)); } -function ai(e) { +function Ga(e) { if (!e) return !1; var t = e._valueTracker; if (!t) return !0; var n = t.getValue(), r = ""; - return e && (r = ri(e) ? e.checked ? "true" : "false" : e.value), (e = r) !== n && (t.setValue(e), !0) + return e && (r = Ya(e) ? e.checked ? "true" : "false" : e.value), (e = r) !== n && (t.setValue(e), !0) } -function ii(e) { +function Za(e) { if (void 0 === (e = e || ("undefined" != typeof document ? document : void 0))) return null; try { return e.activeElement || e.body @@ -2885,9 +2818,9 @@ function ii(e) { } } -function li(e, t) { +function Ja(e, t) { var n = t.checked; - return pa({}, t, { + return oa({}, t, { defaultChecked: void 0, defaultValue: void 0, value: void 0, @@ -2895,30 +2828,30 @@ function li(e, t) { }) } -function si(e, t) { +function ei(e, t) { var n = null == t.defaultValue ? "" : t.defaultValue, r = null != t.checked ? t.checked : t.defaultChecked; - n = ni(null != t.value ? t.value : n), e._wrapperState = { + n = Xa(null != t.value ? t.value : n), e._wrapperState = { initialChecked: r, initialValue: n, controlled: "checkbox" === t.type || "radio" === t.type ? null != t.checked : null != t.value }; } -function ui(e, t) { - null != (t = t.checked) && Ma(e, "checked", t, !1); +function ti(e, t) { + null != (t = t.checked) && xa(e, "checked", t, !1); } -function ci(e, t) { - ui(e, t); - var n = ni(t.value), +function ni(e, t) { + ti(e, t); + var n = Xa(t.value), r = t.type; if (null != n) "number" === r ? (0 === n && "" === e.value || e.value != n) && (e.value = "" + n) : e.value !== "" + n && (e.value = "" + n); else if ("submit" === r || "reset" === r) return void e.removeAttribute("value"); - t.hasOwnProperty("value") ? pi(e, t.type, n) : t.hasOwnProperty("defaultValue") && pi(e, t.type, ni(t.defaultValue)), null == t.checked && null != t.defaultChecked && (e.defaultChecked = !!t.defaultChecked); + t.hasOwnProperty("value") ? oi(e, t.type, n) : t.hasOwnProperty("defaultValue") && oi(e, t.type, Xa(t.defaultValue)), null == t.checked && null != t.defaultChecked && (e.defaultChecked = !!t.defaultChecked); } -function di(e, t, n) { +function ri(e, t, n) { if (t.hasOwnProperty("value") || t.hasOwnProperty("defaultValue")) { var r = t.type; if (!("submit" !== r && "reset" !== r || void 0 !== t.value && null !== t.value)) return; @@ -2927,28 +2860,28 @@ function di(e, t, n) { "" !== (n = e.name) && (e.name = ""), e.defaultChecked = !!e._wrapperState.initialChecked, "" !== n && (e.name = n); } -function pi(e, t, n) { - "number" === t && ii(e.ownerDocument) === e || (null == n ? e.defaultValue = "" + e._wrapperState.initialValue : e.defaultValue !== "" + n && (e.defaultValue = "" + n)); +function oi(e, t, n) { + "number" === t && Za(e.ownerDocument) === e || (null == n ? e.defaultValue = "" + e._wrapperState.initialValue : e.defaultValue !== "" + n && (e.defaultValue = "" + n)); } -function fi(e, t) { - return e = pa({ +function ai(e, t) { + return e = oa({ children: void 0 }, t), (t = function(e) { var t = ""; - return da.Children.forEach(e, (function(e) { + return ra.Children.forEach(e, (function(e) { null != e && (t += e); })), t }(t.children)) && (e.children = t), e } -function hi(e, t, n, r) { +function ii(e, t, n, r) { if (e = e.options, t) { t = {}; for (var o = 0; o < n.length; o++) t["$" + n[o]] = !0; for (n = 0; n < e.length; n++) o = t.hasOwnProperty("$" + e[n].value), e[n].selected !== o && (e[n].selected = o), o && r && (e[n].defaultSelected = !0); } else { - for (n = "" + ni(n), t = null, o = 0; o < e.length; o++) { + for (n = "" + Xa(n), t = null, o = 0; o < e.length; o++) { if (e[o].value === n) return e[o].selected = !0, void(r && (e[o].defaultSelected = !0)); null !== t || e[o].disabled || (t = e[o]); } @@ -2956,22 +2889,22 @@ function hi(e, t, n, r) { } } -function mi(e, t) { - if (null != t.dangerouslySetInnerHTML) throw Error(ha(91)); - return pa({}, t, { +function li(e, t) { + if (null != t.dangerouslySetInnerHTML) throw Error(ia(91)); + return oa({}, t, { value: void 0, defaultValue: void 0, children: "" + e._wrapperState.initialValue }) } -function vi(e, t) { +function si(e, t) { var n = t.value; if (null == n) { if (n = t.children, t = t.defaultValue, null != n) { - if (null != t) throw Error(ha(92)); + if (null != t) throw Error(ia(92)); if (Array.isArray(n)) { - if (!(1 >= n.length)) throw Error(ha(93)); + if (!(1 >= n.length)) throw Error(ia(93)); n = n[0]; } t = n; @@ -2979,24 +2912,24 @@ function vi(e, t) { null == t && (t = ""), n = t; } e._wrapperState = { - initialValue: ni(n) + initialValue: Xa(n) }; } -function gi(e, t) { - var n = ni(t.value), - r = ni(t.defaultValue); +function ui(e, t) { + var n = Xa(t.value), + r = Xa(t.defaultValue); null != n && ((n = "" + n) !== e.value && (e.value = n), null == t.defaultValue && e.defaultValue !== n && (e.defaultValue = n)), null != r && (e.defaultValue = "" + r); } -function bi(e) { +function ci(e) { var t = e.textContent; t === e._wrapperState.initialValue && "" !== t && null !== t && (e.value = t); } -var yi = "http://www.w3.org/1999/xhtml", - xi = "http://www.w3.org/2000/svg"; +var di = "http://www.w3.org/1999/xhtml", + pi = "http://www.w3.org/2000/svg"; -function wi(e) { +function fi(e) { switch (e) { case "svg": return "http://www.w3.org/2000/svg"; @@ -3007,29 +2940,29 @@ function wi(e) { } } -function ki(e, t) { - return null == e || "http://www.w3.org/1999/xhtml" === e ? wi(t) : "http://www.w3.org/2000/svg" === e && "foreignObject" === t ? "http://www.w3.org/1999/xhtml" : e +function hi(e, t) { + return null == e || "http://www.w3.org/1999/xhtml" === e ? fi(t) : "http://www.w3.org/2000/svg" === e && "foreignObject" === t ? "http://www.w3.org/1999/xhtml" : e } -var Si, Ci, Ei = (Ci = function(e, t) { - if (e.namespaceURI !== xi || "innerHTML" in e) e.innerHTML = t; +var mi, vi, gi = (vi = function(e, t) { + if (e.namespaceURI !== pi || "innerHTML" in e) e.innerHTML = t; else { - for ((Si = Si || document.createElement("div")).innerHTML = "" + t.valueOf().toString() + "", t = Si.firstChild; e.firstChild;) e.removeChild(e.firstChild); + for ((mi = mi || document.createElement("div")).innerHTML = "" + t.valueOf().toString() + "", t = mi.firstChild; e.firstChild;) e.removeChild(e.firstChild); for (; t.firstChild;) e.appendChild(t.firstChild); } }, "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function(e, t, n, r) { MSApp.execUnsafeLocalFunction((function() { - return Ci(e, t) + return vi(e, t) })); -} : Ci); +} : vi); -function Ri(e, t) { +function bi(e, t) { if (t) { var n = e.firstChild; if (n && n === e.lastChild && 3 === n.nodeType) return void(n.nodeValue = t) } e.textContent = t; } -var Pi = { +var yi = { animationIterationCount: !0, borderImageOutset: !0, borderImageSlice: !0, @@ -3073,26 +3006,26 @@ var Pi = { strokeOpacity: !0, strokeWidth: !0 }, - Mi = ["Webkit", "ms", "Moz", "O"]; + xi = ["Webkit", "ms", "Moz", "O"]; -function Oi(e, t, n) { - return null == t || "boolean" == typeof t || "" === t ? "" : n || "number" != typeof t || 0 === t || Pi.hasOwnProperty(e) && Pi[e] ? ("" + t).trim() : t + "px" +function wi(e, t, n) { + return null == t || "boolean" == typeof t || "" === t ? "" : n || "number" != typeof t || 0 === t || yi.hasOwnProperty(e) && yi[e] ? ("" + t).trim() : t + "px" } -function Ti(e, t) { +function ki(e, t) { for (var n in e = e.style, t) if (t.hasOwnProperty(n)) { var r = 0 === n.indexOf("--"), - o = Oi(n, t[n], r); + o = wi(n, t[n], r); "float" === n && (n = "cssFloat"), r ? e.setProperty(n, o) : e[n] = o; } } -Object.keys(Pi).forEach((function(e) { - Mi.forEach((function(t) { - t = t + e.charAt(0).toUpperCase() + e.substring(1), Pi[t] = Pi[e]; +Object.keys(yi).forEach((function(e) { + xi.forEach((function(t) { + t = t + e.charAt(0).toUpperCase() + e.substring(1), yi[t] = yi[e]; })); })); -var ji = pa({ +var Si = oa({ menuitem: !0 }, { area: !0, @@ -3112,18 +3045,18 @@ var ji = pa({ wbr: !0 }); -function zi(e, t) { +function Ci(e, t) { if (t) { - if (ji[e] && (null != t.children || null != t.dangerouslySetInnerHTML)) throw Error(ha(137, e)); + if (Si[e] && (null != t.children || null != t.dangerouslySetInnerHTML)) throw Error(ia(137, e)); if (null != t.dangerouslySetInnerHTML) { - if (null != t.children) throw Error(ha(60)); - if ("object" != typeof t.dangerouslySetInnerHTML || !("__html" in t.dangerouslySetInnerHTML)) throw Error(ha(61)) + if (null != t.children) throw Error(ia(60)); + if ("object" != typeof t.dangerouslySetInnerHTML || !("__html" in t.dangerouslySetInnerHTML)) throw Error(ia(61)) } - if (null != t.style && "object" != typeof t.style) throw Error(ha(62)) + if (null != t.style && "object" != typeof t.style) throw Error(ia(62)) } } -function Ni(e, t) { +function Ei(e, t) { if (-1 === e.indexOf("-")) return "string" == typeof t.is; switch (e) { case "annotation-xml": @@ -3140,55 +3073,55 @@ function Ni(e, t) { } } -function _i(e) { +function Ri(e) { return (e = e.target || e.srcElement || window).correspondingUseElement && (e = e.correspondingUseElement), 3 === e.nodeType ? e.parentNode : e } -var Li = null, - Ii = null, - Fi = null; +var Pi = null, + Mi = null, + Oi = null; -function $i(e) { - if (e = cc(e)) { - if ("function" != typeof Li) throw Error(ha(280)); +function Ti(e) { + if (e = nc(e)) { + if ("function" != typeof Pi) throw Error(ia(280)); var t = e.stateNode; - t && (t = pc(t), Li(e.stateNode, e.type, t)); + t && (t = oc(t), Pi(e.stateNode, e.type, t)); } } -function Ai(e) { - Ii ? Fi ? Fi.push(e) : Fi = [e] : Ii = e; +function ji(e) { + Mi ? Oi ? Oi.push(e) : Oi = [e] : Mi = e; } -function Bi() { - if (Ii) { - var e = Ii, - t = Fi; - if (Fi = Ii = null, $i(e), t) - for (e = 0; e < t.length; e++) $i(t[e]); +function zi() { + if (Mi) { + var e = Mi, + t = Oi; + if (Oi = Mi = null, Ti(e), t) + for (e = 0; e < t.length; e++) Ti(t[e]); } } -function Di(e, t) { +function Ni(e, t) { return e(t) } -function Wi(e, t, n, r, o) { +function _i(e, t, n, r, o) { return e(t, n, r, o) } -function Ui() {} -var Hi = Di, - Vi = !1, - qi = !1; +function Li() {} +var Ii = Ni, + Fi = !1, + $i = !1; -function Ki() { - null === Ii && null === Fi || (Ui(), Bi()); +function Ai() { + null === Mi && null === Oi || (Li(), zi()); } -function Xi(e, t) { +function Bi(e, t) { var n = e.stateNode; if (null === n) return null; - var r = pc(n); + var r = oc(n); if (null === r) return null; n = r[t]; e: switch (t) { @@ -3209,22 +3142,22 @@ function Xi(e, t) { e = !1; } if (e) return null; - if (n && "function" != typeof n) throw Error(ha(231, t, typeof n)); + if (n && "function" != typeof n) throw Error(ia(231, t, typeof n)); return n } -var Yi = !1; -if (ya) try { - var Qi = {}; - Object.defineProperty(Qi, "passive", { +var Di = !1; +if (da) try { + var Wi = {}; + Object.defineProperty(Wi, "passive", { get: function() { - Yi = !0; + Di = !0; } - }), window.addEventListener("test", Qi, Qi), window.removeEventListener("test", Qi, Qi); -} catch (Ci) { - Yi = !1; + }), window.addEventListener("test", Wi, Wi), window.removeEventListener("test", Wi, Wi); +} catch (vi) { + Di = !1; } -function Gi(e, t, n, r, o, a, i, l, s) { +function Ui(e, t, n, r, o, a, i, l, s) { var u = Array.prototype.slice.call(arguments, 3); try { t.apply(n, u); @@ -3232,21 +3165,21 @@ function Gi(e, t, n, r, o, a, i, l, s) { this.onError(e); } } -var Zi = !1, - Ji = null, - el = !1, - tl = null, - nl = { +var Hi = !1, + Vi = null, + qi = !1, + Ki = null, + Xi = { onError: function(e) { - Zi = !0, Ji = e; + Hi = !0, Vi = e; } }; -function rl(e, t, n, r, o, a, i, l, s) { - Zi = !1, Ji = null, Gi.apply(nl, arguments); +function Yi(e, t, n, r, o, a, i, l, s) { + Hi = !1, Vi = null, Ui.apply(Xi, arguments); } -function ol(e) { +function Qi(e) { var t = e, n = e; if (e.alternate) @@ -3260,7 +3193,7 @@ function ol(e) { return 3 === t.tag ? n : null } -function al(e) { +function Gi(e) { if (13 === e.tag) { var t = e.memoizedState; if (null === t && (null !== (e = e.alternate) && (t = e.memoizedState)), null !== t) return t.dehydrated @@ -3268,15 +3201,15 @@ function al(e) { return null } -function il(e) { - if (ol(e) !== e) throw Error(ha(188)) +function Zi(e) { + if (Qi(e) !== e) throw Error(ia(188)) } -function ll(e) { +function Ji(e) { if (e = function(e) { var t = e.alternate; if (!t) { - if (null === (t = ol(e))) throw Error(ha(188)); + if (null === (t = Qi(e))) throw Error(ia(188)); return t !== e ? null : e } for (var n = e, r = t;;) { @@ -3292,11 +3225,11 @@ function ll(e) { } if (o.child === a.child) { for (a = o.child; a;) { - if (a === n) return il(o), e; - if (a === r) return il(o), t; + if (a === n) return Zi(o), e; + if (a === r) return Zi(o), t; a = a.sibling; } - throw Error(ha(188)) + throw Error(ia(188)) } if (n.return !== r.return) n = o, r = a; else { @@ -3323,12 +3256,12 @@ function ll(e) { } l = l.sibling; } - if (!i) throw Error(ha(189)) + if (!i) throw Error(ia(189)) } } - if (n.alternate !== r) throw Error(ha(190)) + if (n.alternate !== r) throw Error(ia(190)) } - if (3 !== n.tag) throw Error(ha(188)); + if (3 !== n.tag) throw Error(ia(188)); return n.stateNode.current === n ? e : t }(e), !e) return null; for (var t = e;;) { @@ -3346,24 +3279,24 @@ function ll(e) { return null } -function sl(e, t) { +function el(e, t) { for (var n = e.alternate; null !== t;) { if (t === e || t === n) return !0; t = t.return; } return !1 } -var ul, cl, dl, pl, fl = !1, - hl = [], - ml = null, - vl = null, - gl = null, - bl = new Map, - yl = new Map, - xl = [], - wl = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "); +var tl, nl, rl, ol, al = !1, + il = [], + ll = null, + sl = null, + ul = null, + cl = new Map, + dl = new Map, + pl = [], + fl = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "); -function kl(e, t, n, r, o) { +function hl(e, t, n, r, o) { return { blockedOn: e, domEventName: t, @@ -3373,43 +3306,43 @@ function kl(e, t, n, r, o) { } } -function Sl(e, t) { +function ml(e, t) { switch (e) { case "focusin": case "focusout": - ml = null; + ll = null; break; case "dragenter": case "dragleave": - vl = null; + sl = null; break; case "mouseover": case "mouseout": - gl = null; + ul = null; break; case "pointerover": case "pointerout": - bl.delete(t.pointerId); + cl.delete(t.pointerId); break; case "gotpointercapture": case "lostpointercapture": - yl.delete(t.pointerId); + dl.delete(t.pointerId); } } -function Cl(e, t, n, r, o, a) { - return null === e || e.nativeEvent !== a ? (e = kl(t, n, r, o, a), null !== t && (null !== (t = cc(t)) && cl(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, null !== o && -1 === t.indexOf(o) && t.push(o), e) +function vl(e, t, n, r, o, a) { + return null === e || e.nativeEvent !== a ? (e = hl(t, n, r, o, a), null !== t && (null !== (t = nc(t)) && nl(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, null !== o && -1 === t.indexOf(o) && t.push(o), e) } -function El(e) { - var t = uc(e.target); +function gl(e) { + var t = tc(e.target); if (null !== t) { - var n = ol(t); + var n = Qi(t); if (null !== n) if (13 === (t = n.tag)) { - if (null !== (t = al(n))) return e.blockedOn = t, void pl(e.lanePriority, (function() { - fa.unstable_runWithPriority(e.priority, (function() { - dl(n); + if (null !== (t = Gi(n))) return e.blockedOn = t, void ol(e.lanePriority, (function() { + aa.unstable_runWithPriority(e.priority, (function() { + rl(n); })); })) } else if (3 === t && n.stateNode.hydrate) return void(e.blockedOn = 3 === n.tag ? n.stateNode.containerInfo : null) @@ -3417,232 +3350,232 @@ function El(e) { e.blockedOn = null; } -function Rl(e) { +function bl(e) { if (null !== e.blockedOn) return !1; for (var t = e.targetContainers; 0 < t.length;) { - var n = ls(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent); - if (null !== n) return null !== (t = cc(n)) && cl(t), e.blockedOn = n, !1; + var n = Jl(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent); + if (null !== n) return null !== (t = nc(n)) && nl(t), e.blockedOn = n, !1; t.shift(); } return !0 } -function Pl(e, t, n) { - Rl(e) && n.delete(t); +function yl(e, t, n) { + bl(e) && n.delete(t); } -function Ml() { - for (fl = !1; 0 < hl.length;) { - var e = hl[0]; +function xl() { + for (al = !1; 0 < il.length;) { + var e = il[0]; if (null !== e.blockedOn) { - null !== (e = cc(e.blockedOn)) && ul(e); + null !== (e = nc(e.blockedOn)) && tl(e); break } for (var t = e.targetContainers; 0 < t.length;) { - var n = ls(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent); + var n = Jl(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent); if (null !== n) { e.blockedOn = n; break } t.shift(); } - null === e.blockedOn && hl.shift(); + null === e.blockedOn && il.shift(); } - null !== ml && Rl(ml) && (ml = null), null !== vl && Rl(vl) && (vl = null), null !== gl && Rl(gl) && (gl = null), bl.forEach(Pl), yl.forEach(Pl); + null !== ll && bl(ll) && (ll = null), null !== sl && bl(sl) && (sl = null), null !== ul && bl(ul) && (ul = null), cl.forEach(yl), dl.forEach(yl); } -function Ol(e, t) { - e.blockedOn === t && (e.blockedOn = null, fl || (fl = !0, fa.unstable_scheduleCallback(fa.unstable_NormalPriority, Ml))); +function wl(e, t) { + e.blockedOn === t && (e.blockedOn = null, al || (al = !0, aa.unstable_scheduleCallback(aa.unstable_NormalPriority, xl))); } -function Tl(e) { +function kl(e) { function t(t) { - return Ol(t, e) + return wl(t, e) } - if (0 < hl.length) { - Ol(hl[0], e); - for (var n = 1; n < hl.length; n++) { - var r = hl[n]; + if (0 < il.length) { + wl(il[0], e); + for (var n = 1; n < il.length; n++) { + var r = il[n]; r.blockedOn === e && (r.blockedOn = null); } } - for (null !== ml && Ol(ml, e), null !== vl && Ol(vl, e), null !== gl && Ol(gl, e), bl.forEach(t), yl.forEach(t), n = 0; n < xl.length; n++)(r = xl[n]).blockedOn === e && (r.blockedOn = null); - for (; 0 < xl.length && null === (n = xl[0]).blockedOn;) El(n), null === n.blockedOn && xl.shift(); + for (null !== ll && wl(ll, e), null !== sl && wl(sl, e), null !== ul && wl(ul, e), cl.forEach(t), dl.forEach(t), n = 0; n < pl.length; n++)(r = pl[n]).blockedOn === e && (r.blockedOn = null); + for (; 0 < pl.length && null === (n = pl[0]).blockedOn;) gl(n), null === n.blockedOn && pl.shift(); } -function jl(e, t) { +function Sl(e, t) { var n = {}; return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n } -var zl = { - animationend: jl("Animation", "AnimationEnd"), - animationiteration: jl("Animation", "AnimationIteration"), - animationstart: jl("Animation", "AnimationStart"), - transitionend: jl("Transition", "TransitionEnd") +var Cl = { + animationend: Sl("Animation", "AnimationEnd"), + animationiteration: Sl("Animation", "AnimationIteration"), + animationstart: Sl("Animation", "AnimationStart"), + transitionend: Sl("Transition", "TransitionEnd") }, - Nl = {}, - _l = {}; + El = {}, + Rl = {}; -function Ll(e) { - if (Nl[e]) return Nl[e]; - if (!zl[e]) return e; - var t, n = zl[e]; +function Pl(e) { + if (El[e]) return El[e]; + if (!Cl[e]) return e; + var t, n = Cl[e]; for (t in n) - if (n.hasOwnProperty(t) && t in _l) return Nl[e] = n[t]; + if (n.hasOwnProperty(t) && t in Rl) return El[e] = n[t]; return e } -ya && (_l = document.createElement("div").style, "AnimationEvent" in window || (delete zl.animationend.animation, delete zl.animationiteration.animation, delete zl.animationstart.animation), "TransitionEvent" in window || delete zl.transitionend.transition); -var Il = Ll("animationend"), - Fl = Ll("animationiteration"), - $l = Ll("animationstart"), - Al = Ll("transitionend"), - Bl = new Map, - Dl = new Map, - Wl = ["abort", "abort", Il, "animationEnd", Fl, "animationIteration", $l, "animationStart", "canplay", "canPlay", "canplaythrough", "canPlayThrough", "durationchange", "durationChange", "emptied", "emptied", "encrypted", "encrypted", "ended", "ended", "error", "error", "gotpointercapture", "gotPointerCapture", "load", "load", "loadeddata", "loadedData", "loadedmetadata", "loadedMetadata", "loadstart", "loadStart", "lostpointercapture", "lostPointerCapture", "playing", "playing", "progress", "progress", "seeking", "seeking", "stalled", "stalled", "suspend", "suspend", "timeupdate", "timeUpdate", Al, "transitionEnd", "waiting", "waiting"]; +da && (Rl = document.createElement("div").style, "AnimationEvent" in window || (delete Cl.animationend.animation, delete Cl.animationiteration.animation, delete Cl.animationstart.animation), "TransitionEvent" in window || delete Cl.transitionend.transition); +var Ml = Pl("animationend"), + Ol = Pl("animationiteration"), + Tl = Pl("animationstart"), + jl = Pl("transitionend"), + zl = new Map, + Nl = new Map, + _l = ["abort", "abort", Ml, "animationEnd", Ol, "animationIteration", Tl, "animationStart", "canplay", "canPlay", "canplaythrough", "canPlayThrough", "durationchange", "durationChange", "emptied", "emptied", "encrypted", "encrypted", "ended", "ended", "error", "error", "gotpointercapture", "gotPointerCapture", "load", "load", "loadeddata", "loadedData", "loadedmetadata", "loadedMetadata", "loadstart", "loadStart", "lostpointercapture", "lostPointerCapture", "playing", "playing", "progress", "progress", "seeking", "seeking", "stalled", "stalled", "suspend", "suspend", "timeupdate", "timeUpdate", jl, "transitionEnd", "waiting", "waiting"]; -function Ul(e, t) { +function Ll(e, t) { for (var n = 0; n < e.length; n += 2) { var r = e[n], o = e[n + 1]; - o = "on" + (o[0].toUpperCase() + o.slice(1)), Dl.set(r, t), Bl.set(r, o), ga(o, [r]); + o = "on" + (o[0].toUpperCase() + o.slice(1)), Nl.set(r, t), zl.set(r, o), ua(o, [r]); } -}(0, fa.unstable_now)(); -var Hl = 8; +}(0, aa.unstable_now)(); +var Il = 8; -function Vl(e) { - if (0 != (1 & e)) return Hl = 15, 1; - if (0 != (2 & e)) return Hl = 14, 2; - if (0 != (4 & e)) return Hl = 13, 4; +function Fl(e) { + if (0 != (1 & e)) return Il = 15, 1; + if (0 != (2 & e)) return Il = 14, 2; + if (0 != (4 & e)) return Il = 13, 4; var t = 24 & e; - return 0 !== t ? (Hl = 12, t) : 0 != (32 & e) ? (Hl = 11, 32) : 0 !== (t = 192 & e) ? (Hl = 10, t) : 0 != (256 & e) ? (Hl = 9, 256) : 0 !== (t = 3584 & e) ? (Hl = 8, t) : 0 != (4096 & e) ? (Hl = 7, 4096) : 0 !== (t = 4186112 & e) ? (Hl = 6, t) : 0 !== (t = 62914560 & e) ? (Hl = 5, t) : 67108864 & e ? (Hl = 4, 67108864) : 0 != (134217728 & e) ? (Hl = 3, 134217728) : 0 !== (t = 805306368 & e) ? (Hl = 2, t) : 0 != (1073741824 & e) ? (Hl = 1, 1073741824) : (Hl = 8, e) + return 0 !== t ? (Il = 12, t) : 0 != (32 & e) ? (Il = 11, 32) : 0 !== (t = 192 & e) ? (Il = 10, t) : 0 != (256 & e) ? (Il = 9, 256) : 0 !== (t = 3584 & e) ? (Il = 8, t) : 0 != (4096 & e) ? (Il = 7, 4096) : 0 !== (t = 4186112 & e) ? (Il = 6, t) : 0 !== (t = 62914560 & e) ? (Il = 5, t) : 67108864 & e ? (Il = 4, 67108864) : 0 != (134217728 & e) ? (Il = 3, 134217728) : 0 !== (t = 805306368 & e) ? (Il = 2, t) : 0 != (1073741824 & e) ? (Il = 1, 1073741824) : (Il = 8, e) } -function ql(e, t) { +function $l(e, t) { var n = e.pendingLanes; - if (0 === n) return Hl = 0; + if (0 === n) return Il = 0; var r = 0, o = 0, a = e.expiredLanes, i = e.suspendedLanes, l = e.pingedLanes; - if (0 !== a) r = a, o = Hl = 15; + if (0 !== a) r = a, o = Il = 15; else if (0 !== (a = 134217727 & n)) { var s = a & ~i; - 0 !== s ? (r = Vl(s), o = Hl) : 0 !== (l &= a) && (r = Vl(l), o = Hl); - } else 0 !== (a = n & ~i) ? (r = Vl(a), o = Hl) : 0 !== l && (r = Vl(l), o = Hl); + 0 !== s ? (r = Fl(s), o = Il) : 0 !== (l &= a) && (r = Fl(l), o = Il); + } else 0 !== (a = n & ~i) ? (r = Fl(a), o = Il) : 0 !== l && (r = Fl(l), o = Il); if (0 === r) return 0; - if (r = n & ((0 > (r = 31 - Zl(r)) ? 0 : 1 << r) << 1) - 1, 0 !== t && t !== r && 0 == (t & i)) { - if (Vl(t), o <= Hl) return t; - Hl = o; + if (r = n & ((0 > (r = 31 - Hl(r)) ? 0 : 1 << r) << 1) - 1, 0 !== t && t !== r && 0 == (t & i)) { + if (Fl(t), o <= Il) return t; + Il = o; } if (0 !== (t = e.entangledLanes)) - for (e = e.entanglements, t &= r; 0 < t;) o = 1 << (n = 31 - Zl(t)), r |= e[n], t &= ~o; + for (e = e.entanglements, t &= r; 0 < t;) o = 1 << (n = 31 - Hl(t)), r |= e[n], t &= ~o; return r } -function Kl(e) { +function Al(e) { return 0 !== (e = -1073741825 & e.pendingLanes) ? e : 1073741824 & e ? 1073741824 : 0 } -function Xl(e, t) { +function Bl(e, t) { switch (e) { case 15: return 1; case 14: return 2; case 12: - return 0 === (e = Yl(24 & ~t)) ? Xl(10, t) : e; + return 0 === (e = Dl(24 & ~t)) ? Bl(10, t) : e; case 10: - return 0 === (e = Yl(192 & ~t)) ? Xl(8, t) : e; + return 0 === (e = Dl(192 & ~t)) ? Bl(8, t) : e; case 8: - return 0 === (e = Yl(3584 & ~t)) && (0 === (e = Yl(4186112 & ~t)) && (e = 512)), e; + return 0 === (e = Dl(3584 & ~t)) && (0 === (e = Dl(4186112 & ~t)) && (e = 512)), e; case 2: - return 0 === (t = Yl(805306368 & ~t)) && (t = 268435456), t + return 0 === (t = Dl(805306368 & ~t)) && (t = 268435456), t } - throw Error(ha(358, e)) + throw Error(ia(358, e)) } -function Yl(e) { +function Dl(e) { return e & -e } -function Ql(e) { +function Wl(e) { for (var t = [], n = 0; 31 > n; n++) t.push(e); return t } -function Gl(e, t, n) { +function Ul(e, t, n) { e.pendingLanes |= t; var r = t - 1; - e.suspendedLanes &= r, e.pingedLanes &= r, (e = e.eventTimes)[t = 31 - Zl(t)] = n; + e.suspendedLanes &= r, e.pingedLanes &= r, (e = e.eventTimes)[t = 31 - Hl(t)] = n; } -var Zl = Math.clz32 ? Math.clz32 : function(e) { - return 0 === e ? 32 : 31 - (Jl(e) / es | 0) | 0 +var Hl = Math.clz32 ? Math.clz32 : function(e) { + return 0 === e ? 32 : 31 - (Vl(e) / ql | 0) | 0 }, - Jl = Math.log, - es = Math.LN2; -var ts = fa.unstable_UserBlockingPriority, - ns = fa.unstable_runWithPriority, - rs = !0; + Vl = Math.log, + ql = Math.LN2; +var Kl = aa.unstable_UserBlockingPriority, + Xl = aa.unstable_runWithPriority, + Yl = !0; -function os(e, t, n, r) { - Vi || Ui(); - var o = is, - a = Vi; - Vi = !0; +function Ql(e, t, n, r) { + Fi || Li(); + var o = Zl, + a = Fi; + Fi = !0; try { - Wi(o, e, t, n, r); + _i(o, e, t, n, r); } finally { - (Vi = a) || Ki(); + (Fi = a) || Ai(); } } -function as(e, t, n, r) { - ns(ts, is.bind(null, e, t, n, r)); +function Gl(e, t, n, r) { + Xl(Kl, Zl.bind(null, e, t, n, r)); } -function is(e, t, n, r) { +function Zl(e, t, n, r) { var o; - if (rs) - if ((o = 0 == (4 & t)) && 0 < hl.length && -1 < wl.indexOf(e)) e = kl(null, e, t, n, r), hl.push(e); + if (Yl) + if ((o = 0 == (4 & t)) && 0 < il.length && -1 < fl.indexOf(e)) e = hl(null, e, t, n, r), il.push(e); else { - var a = ls(e, t, n, r); - if (null === a) o && Sl(e, r); + var a = Jl(e, t, n, r); + if (null === a) o && ml(e, r); else { if (o) { - if (-1 < wl.indexOf(e)) return e = kl(a, e, t, n, r), void hl.push(e); + if (-1 < fl.indexOf(e)) return e = hl(a, e, t, n, r), void il.push(e); if (function(e, t, n, r, o) { switch (t) { case "focusin": - return ml = Cl(ml, e, t, n, r, o), !0; + return ll = vl(ll, e, t, n, r, o), !0; case "dragenter": - return vl = Cl(vl, e, t, n, r, o), !0; + return sl = vl(sl, e, t, n, r, o), !0; case "mouseover": - return gl = Cl(gl, e, t, n, r, o), !0; + return ul = vl(ul, e, t, n, r, o), !0; case "pointerover": var a = o.pointerId; - return bl.set(a, Cl(bl.get(a) || null, e, t, n, r, o)), !0; + return cl.set(a, vl(cl.get(a) || null, e, t, n, r, o)), !0; case "gotpointercapture": - return a = o.pointerId, yl.set(a, Cl(yl.get(a) || null, e, t, n, r, o)), !0 + return a = o.pointerId, dl.set(a, vl(dl.get(a) || null, e, t, n, r, o)), !0 } return !1 }(a, e, t, n, r)) return; - Sl(e, r); + ml(e, r); } - Wu(e, t, r, null, n); + _u(e, t, r, null, n); } } } -function ls(e, t, n, r) { - var o = _i(r); - if (null !== (o = uc(o))) { - var a = ol(o); +function Jl(e, t, n, r) { + var o = Ri(r); + if (null !== (o = tc(o))) { + var a = Qi(o); if (null === a) o = null; else { var i = a.tag; if (13 === i) { - if (null !== (o = al(a))) return o; + if (null !== (o = Gi(a))) return o; o = null; } else if (3 === i) { if (a.stateNode.hydrate) return 3 === a.tag ? a.stateNode.containerInfo : null; @@ -3650,57 +3583,57 @@ function ls(e, t, n, r) { } else a !== o && (o = null); } } - return Wu(e, t, r, o, n), null + return _u(e, t, r, o, n), null } -var ss = null, - us = null, - cs = null; +var es = null, + ts = null, + ns = null; -function ds() { - if (cs) return cs; - var e, t, n = us, +function rs() { + if (ns) return ns; + var e, t, n = ts, r = n.length, - o = "value" in ss ? ss.value : ss.textContent, + o = "value" in es ? es.value : es.textContent, a = o.length; for (e = 0; e < r && n[e] === o[e]; e++); var i = r - e; for (t = 1; t <= i && n[r - t] === o[a - t]; t++); - return cs = o.slice(e, 1 < t ? 1 - t : void 0) + return ns = o.slice(e, 1 < t ? 1 - t : void 0) } -function ps(e) { +function os(e) { var t = e.keyCode; return "charCode" in e ? 0 === (e = e.charCode) && 13 === t && (e = 13) : e = t, 10 === e && (e = 13), 32 <= e || 13 === e ? e : 0 } -function fs() { +function as() { return !0 } -function hs() { +function is() { return !1 } -function ms(e) { +function ls(e) { function t(t, n, r, o, a) { for (var i in this._reactName = t, this._targetInst = r, this.type = n, this.nativeEvent = o, this.target = a, this.currentTarget = null, e) e.hasOwnProperty(i) && (t = e[i], this[i] = t ? t(o) : o[i]); - return this.isDefaultPrevented = (null != o.defaultPrevented ? o.defaultPrevented : !1 === o.returnValue) ? fs : hs, this.isPropagationStopped = hs, this + return this.isDefaultPrevented = (null != o.defaultPrevented ? o.defaultPrevented : !1 === o.returnValue) ? as : is, this.isPropagationStopped = is, this } - return pa(t.prototype, { + return oa(t.prototype, { preventDefault: function() { this.defaultPrevented = !0; var e = this.nativeEvent; - e && (e.preventDefault ? e.preventDefault() : "unknown" != typeof e.returnValue && (e.returnValue = !1), this.isDefaultPrevented = fs); + e && (e.preventDefault ? e.preventDefault() : "unknown" != typeof e.returnValue && (e.returnValue = !1), this.isDefaultPrevented = as); }, stopPropagation: function() { var e = this.nativeEvent; - e && (e.stopPropagation ? e.stopPropagation() : "unknown" != typeof e.cancelBubble && (e.cancelBubble = !0), this.isPropagationStopped = fs); + e && (e.stopPropagation ? e.stopPropagation() : "unknown" != typeof e.cancelBubble && (e.cancelBubble = !0), this.isPropagationStopped = as); }, persist: function() {}, - isPersistent: fs + isPersistent: as }), t } -var vs, gs, bs, ys = { +var ss, us, cs, ds = { eventPhase: 0, bubbles: 0, cancelable: 0, @@ -3710,13 +3643,13 @@ var vs, gs, bs, ys = { defaultPrevented: 0, isTrusted: 0 }, - xs = ms(ys), - ws = pa({}, ys, { + ps = ls(ds), + fs = oa({}, ds, { view: 0, detail: 0 }), - ks = ms(ws), - Ss = pa({}, ws, { + hs = ls(fs), + ms = oa({}, fs, { screenX: 0, screenY: 0, clientX: 0, @@ -3727,41 +3660,41 @@ var vs, gs, bs, ys = { shiftKey: 0, altKey: 0, metaKey: 0, - getModifierState: Ls, + getModifierState: Ps, button: 0, buttons: 0, relatedTarget: function(e) { return void 0 === e.relatedTarget ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget }, movementX: function(e) { - return "movementX" in e ? e.movementX : (e !== bs && (bs && "mousemove" === e.type ? (vs = e.screenX - bs.screenX, gs = e.screenY - bs.screenY) : gs = vs = 0, bs = e), vs) + return "movementX" in e ? e.movementX : (e !== cs && (cs && "mousemove" === e.type ? (ss = e.screenX - cs.screenX, us = e.screenY - cs.screenY) : us = ss = 0, cs = e), ss) }, movementY: function(e) { - return "movementY" in e ? e.movementY : gs + return "movementY" in e ? e.movementY : us } }), - Cs = ms(Ss), - Es = ms(pa({}, Ss, { + vs = ls(ms), + gs = ls(oa({}, ms, { dataTransfer: 0 })), - Rs = ms(pa({}, ws, { + bs = ls(oa({}, fs, { relatedTarget: 0 })), - Ps = ms(pa({}, ys, { + ys = ls(oa({}, ds, { animationName: 0, elapsedTime: 0, pseudoElement: 0 })), - Ms = pa({}, ys, { + xs = oa({}, ds, { clipboardData: function(e) { return "clipboardData" in e ? e.clipboardData : window.clipboardData } }), - Os = ms(Ms), - Ts = ms(pa({}, ys, { + ws = ls(xs), + ks = ls(oa({}, ds, { data: 0 })), - js = { + Ss = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", @@ -3775,7 +3708,7 @@ var vs, gs, bs, ys = { Scroll: "ScrollLock", MozPrintableKey: "Unidentified" }, - zs = { + Cs = { 8: "Backspace", 9: "Tab", 12: "Clear", @@ -3813,28 +3746,28 @@ var vs, gs, bs, ys = { 145: "ScrollLock", 224: "Meta" }, - Ns = { + Es = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; -function _s(e) { +function Rs(e) { var t = this.nativeEvent; - return t.getModifierState ? t.getModifierState(e) : !!(e = Ns[e]) && !!t[e] + return t.getModifierState ? t.getModifierState(e) : !!(e = Es[e]) && !!t[e] } -function Ls() { - return _s +function Ps() { + return Rs } -var Is = pa({}, ws, { +var Ms = oa({}, fs, { key: function(e) { if (e.key) { - var t = js[e.key] || e.key; + var t = Ss[e.key] || e.key; if ("Unidentified" !== t) return t } - return "keypress" === e.type ? 13 === (e = ps(e)) ? "Enter" : String.fromCharCode(e) : "keydown" === e.type || "keyup" === e.type ? zs[e.keyCode] || "Unidentified" : "" + return "keypress" === e.type ? 13 === (e = os(e)) ? "Enter" : String.fromCharCode(e) : "keydown" === e.type || "keyup" === e.type ? Cs[e.keyCode] || "Unidentified" : "" }, code: 0, location: 0, @@ -3844,19 +3777,19 @@ var Is = pa({}, ws, { metaKey: 0, repeat: 0, locale: 0, - getModifierState: Ls, + getModifierState: Ps, charCode: function(e) { - return "keypress" === e.type ? ps(e) : 0 + return "keypress" === e.type ? os(e) : 0 }, keyCode: function(e) { return "keydown" === e.type || "keyup" === e.type ? e.keyCode : 0 }, which: function(e) { - return "keypress" === e.type ? ps(e) : "keydown" === e.type || "keyup" === e.type ? e.keyCode : 0 + return "keypress" === e.type ? os(e) : "keydown" === e.type || "keyup" === e.type ? e.keyCode : 0 } }), - Fs = ms(Is), - $s = ms(pa({}, Ss, { + Os = ls(Ms), + Ts = ls(oa({}, ms, { pointerId: 0, width: 0, height: 0, @@ -3868,7 +3801,7 @@ var Is = pa({}, ws, { pointerType: 0, isPrimary: 0 })), - As = ms(pa({}, ws, { + js = ls(oa({}, fs, { touches: 0, targetTouches: 0, changedTouches: 0, @@ -3876,14 +3809,14 @@ var Is = pa({}, ws, { metaKey: 0, ctrlKey: 0, shiftKey: 0, - getModifierState: Ls + getModifierState: Ps })), - Bs = ms(pa({}, ys, { + zs = ls(oa({}, ds, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 })), - Ds = pa({}, Ss, { + Ns = oa({}, ms, { deltaX: function(e) { return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0 }, @@ -3893,20 +3826,20 @@ var Is = pa({}, ws, { deltaZ: 0, deltaMode: 0 }), - Ws = ms(Ds), - Us = [9, 13, 27, 32], - Hs = ya && "CompositionEvent" in window, - Vs = null; -ya && "documentMode" in document && (Vs = document.documentMode); -var qs = ya && "TextEvent" in window && !Vs, - Ks = ya && (!Hs || Vs && 8 < Vs && 11 >= Vs), - Xs = String.fromCharCode(32), - Ys = !1; + _s = ls(Ns), + Ls = [9, 13, 27, 32], + Is = da && "CompositionEvent" in window, + Fs = null; +da && "documentMode" in document && (Fs = document.documentMode); +var $s = da && "TextEvent" in window && !Fs, + As = da && (!Is || Fs && 8 < Fs && 11 >= Fs), + Bs = String.fromCharCode(32), + Ds = !1; -function Qs(e, t) { +function Ws(e, t) { switch (e) { case "keyup": - return -1 !== Us.indexOf(t.keyCode); + return -1 !== Ls.indexOf(t.keyCode); case "keydown": return 229 !== t.keyCode; case "keypress": @@ -3918,11 +3851,11 @@ function Qs(e, t) { } } -function Gs(e) { +function Us(e) { return "object" == typeof(e = e.detail) && "data" in e ? e.data : null } -var Zs = !1; -var Js = { +var Hs = !1; +var Vs = { color: !0, date: !0, datetime: !0, @@ -3940,102 +3873,102 @@ var Js = { week: !0 }; -function eu(e) { +function qs(e) { var t = e && e.nodeName && e.nodeName.toLowerCase(); - return "input" === t ? !!Js[e.type] : "textarea" === t + return "input" === t ? !!Vs[e.type] : "textarea" === t } -function tu(e, t, n, r) { - Ai(r), 0 < (t = Hu(t, "onChange")).length && (n = new xs("onChange", "change", null, n, r), e.push({ +function Ks(e, t, n, r) { + ji(r), 0 < (t = Iu(t, "onChange")).length && (n = new ps("onChange", "change", null, n, r), e.push({ event: n, listeners: t })); } -var nu = null, - ru = null; +var Xs = null, + Ys = null; -function ou(e) { - Iu(e, 0); +function Qs(e) { + Mu(e, 0); } -function au(e) { - if (ai(dc(e))) return e +function Gs(e) { + if (Ga(rc(e))) return e } -function iu(e, t) { +function Zs(e, t) { if ("change" === e) return t } -var lu = !1; -if (ya) { - var su; - if (ya) { - var uu = "oninput" in document; - if (!uu) { - var cu = document.createElement("div"); - cu.setAttribute("oninput", "return;"), uu = "function" == typeof cu.oninput; +var Js = !1; +if (da) { + var eu; + if (da) { + var tu = "oninput" in document; + if (!tu) { + var nu = document.createElement("div"); + nu.setAttribute("oninput", "return;"), tu = "function" == typeof nu.oninput; } - su = uu; - } else su = !1; - lu = su && (!document.documentMode || 9 < document.documentMode); + eu = tu; + } else eu = !1; + Js = eu && (!document.documentMode || 9 < document.documentMode); } -function du() { - nu && (nu.detachEvent("onpropertychange", pu), ru = nu = null); +function ru() { + Xs && (Xs.detachEvent("onpropertychange", ou), Ys = Xs = null); } -function pu(e) { - if ("value" === e.propertyName && au(ru)) { +function ou(e) { + if ("value" === e.propertyName && Gs(Ys)) { var t = []; - if (tu(t, ru, e, _i(e)), e = ou, Vi) e(t); + if (Ks(t, Ys, e, Ri(e)), e = Qs, Fi) e(t); else { - Vi = !0; + Fi = !0; try { - Di(e, t); + Ni(e, t); } finally { - Vi = !1, Ki(); + Fi = !1, Ai(); } } } } -function fu(e, t, n) { - "focusin" === e ? (du(), ru = n, (nu = t).attachEvent("onpropertychange", pu)) : "focusout" === e && du(); +function au(e, t, n) { + "focusin" === e ? (ru(), Ys = n, (Xs = t).attachEvent("onpropertychange", ou)) : "focusout" === e && ru(); } -function hu(e) { - if ("selectionchange" === e || "keyup" === e || "keydown" === e) return au(ru) +function iu(e) { + if ("selectionchange" === e || "keyup" === e || "keydown" === e) return Gs(Ys) } -function mu(e, t) { - if ("click" === e) return au(t) +function lu(e, t) { + if ("click" === e) return Gs(t) } -function vu(e, t) { - if ("input" === e || "change" === e) return au(t) +function su(e, t) { + if ("input" === e || "change" === e) return Gs(t) } -var gu = "function" == typeof Object.is ? Object.is : function(e, t) { +var uu = "function" == typeof Object.is ? Object.is : function(e, t) { return e === t && (0 !== e || 1 / e == 1 / t) || e != e && t != t }, - bu = Object.prototype.hasOwnProperty; + cu = Object.prototype.hasOwnProperty; -function yu(e, t) { - if (gu(e, t)) return !0; +function du(e, t) { + if (uu(e, t)) return !0; if ("object" != typeof e || null === e || "object" != typeof t || null === t) return !1; var n = Object.keys(e), r = Object.keys(t); if (n.length !== r.length) return !1; for (r = 0; r < n.length; r++) - if (!bu.call(t, n[r]) || !gu(e[n[r]], t[n[r]])) return !1; + if (!cu.call(t, n[r]) || !uu(e[n[r]], t[n[r]])) return !1; return !0 } -function xu(e) { +function pu(e) { for (; e && e.firstChild;) e = e.firstChild; return e } -function wu(e, t) { - var n, r = xu(e); +function fu(e, t) { + var n, r = pu(e); for (e = 0; r;) { if (3 === r.nodeType) { if (n = e + r.textContent.length, e <= t && n >= t) return { @@ -4054,40 +3987,40 @@ function wu(e, t) { } r = void 0; } - r = xu(r); + r = pu(r); } } -function ku(e, t) { - return !(!e || !t) && (e === t || (!e || 3 !== e.nodeType) && (t && 3 === t.nodeType ? ku(e, t.parentNode) : "contains" in e ? e.contains(t) : !!e.compareDocumentPosition && !!(16 & e.compareDocumentPosition(t)))) +function hu(e, t) { + return !(!e || !t) && (e === t || (!e || 3 !== e.nodeType) && (t && 3 === t.nodeType ? hu(e, t.parentNode) : "contains" in e ? e.contains(t) : !!e.compareDocumentPosition && !!(16 & e.compareDocumentPosition(t)))) } -function Su() { - for (var e = window, t = ii(); t instanceof e.HTMLIFrameElement;) { +function mu() { + for (var e = window, t = Za(); t instanceof e.HTMLIFrameElement;) { try { var n = "string" == typeof t.contentWindow.location.href; } catch (e) { n = !1; } if (!n) break; - t = ii((e = t.contentWindow).document); + t = Za((e = t.contentWindow).document); } return t } -function Cu(e) { +function vu(e) { var t = e && e.nodeName && e.nodeName.toLowerCase(); return t && ("input" === t && ("text" === e.type || "search" === e.type || "tel" === e.type || "url" === e.type || "password" === e.type) || "textarea" === t || "true" === e.contentEditable) } -var Eu = ya && "documentMode" in document && 11 >= document.documentMode, - Ru = null, - Pu = null, - Mu = null, - Ou = !1; +var gu = da && "documentMode" in document && 11 >= document.documentMode, + bu = null, + yu = null, + xu = null, + wu = !1; -function Tu(e, t, n) { +function ku(e, t, n) { var r = n.window === n ? n.document : 9 === n.nodeType ? n : n.ownerDocument; - Ou || null == Ru || Ru !== ii(r) || ("selectionStart" in (r = Ru) && Cu(r) ? r = { + wu || null == bu || bu !== Za(r) || ("selectionStart" in (r = bu) && vu(r) ? r = { start: r.selectionStart, end: r.selectionEnd } : r = { @@ -4095,30 +4028,30 @@ function Tu(e, t, n) { anchorOffset: r.anchorOffset, focusNode: r.focusNode, focusOffset: r.focusOffset - }, Mu && yu(Mu, r) || (Mu = r, 0 < (r = Hu(Pu, "onSelect")).length && (t = new xs("onSelect", "select", null, t, n), e.push({ + }, xu && du(xu, r) || (xu = r, 0 < (r = Iu(yu, "onSelect")).length && (t = new ps("onSelect", "select", null, t, n), e.push({ event: t, listeners: r - }), t.target = Ru))); + }), t.target = bu))); } -Ul("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "), 0), Ul("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "), 1), Ul(Wl, 2); -for (var ju = "change selectionchange textInput compositionstart compositionend compositionupdate".split(" "), zu = 0; zu < ju.length; zu++) Dl.set(ju[zu], 0); -ba("onMouseEnter", ["mouseout", "mouseover"]), ba("onMouseLeave", ["mouseout", "mouseover"]), ba("onPointerEnter", ["pointerout", "pointerover"]), ba("onPointerLeave", ["pointerout", "pointerover"]), ga("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), ga("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), ga("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]), ga("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), ga("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), ga("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); -var Nu = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), - _u = new Set("cancel close invalid load scroll toggle".split(" ").concat(Nu)); +Ll("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "), 0), Ll("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "), 1), Ll(_l, 2); +for (var Su = "change selectionchange textInput compositionstart compositionend compositionupdate".split(" "), Cu = 0; Cu < Su.length; Cu++) Nl.set(Su[Cu], 0); +ca("onMouseEnter", ["mouseout", "mouseover"]), ca("onMouseLeave", ["mouseout", "mouseover"]), ca("onPointerEnter", ["pointerout", "pointerover"]), ca("onPointerLeave", ["pointerout", "pointerover"]), ua("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), ua("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), ua("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]), ua("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), ua("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), ua("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); +var Eu = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), + Ru = new Set("cancel close invalid load scroll toggle".split(" ").concat(Eu)); -function Lu(e, t, n) { +function Pu(e, t, n) { var r = e.type || "unknown-event"; e.currentTarget = n, function(e, t, n, r, o, a, i, l, s) { - if (rl.apply(this, arguments), Zi) { - if (!Zi) throw Error(ha(198)); - var u = Ji; - Zi = !1, Ji = null, el || (el = !0, tl = u); + if (Yi.apply(this, arguments), Hi) { + if (!Hi) throw Error(ia(198)); + var u = Vi; + Hi = !1, Vi = null, qi || (qi = !0, Ki = u); } }(r, t, void 0, e), e.currentTarget = null; } -function Iu(e, t) { +function Mu(e, t) { t = 0 != (4 & t); for (var n = 0; n < e.length; n++) { var r = e[n], @@ -4132,55 +4065,55 @@ function Iu(e, t) { s = l.instance, u = l.currentTarget; if (l = l.listener, s !== a && o.isPropagationStopped()) break e; - Lu(o, l, u), a = s; + Pu(o, l, u), a = s; } else for (i = 0; i < r.length; i++) { if (s = (l = r[i]).instance, u = l.currentTarget, l = l.listener, s !== a && o.isPropagationStopped()) break e; - Lu(o, l, u), a = s; + Pu(o, l, u), a = s; } } } - if (el) throw e = tl, el = !1, tl = null, e + if (qi) throw e = Ki, qi = !1, Ki = null, e } -function Fu(e, t) { - var n = fc(t), +function Ou(e, t) { + var n = ac(t), r = e + "__bubble"; - n.has(r) || (Du(t, e, 2, !1), n.add(r)); + n.has(r) || (Nu(t, e, 2, !1), n.add(r)); } -var $u = "_reactListening" + Math.random().toString(36).slice(2); +var Tu = "_reactListening" + Math.random().toString(36).slice(2); -function Au(e) { - e[$u] || (e[$u] = !0, ma.forEach((function(t) { - _u.has(t) || Bu(t, !1, e, null), Bu(t, !0, e, null); +function ju(e) { + e[Tu] || (e[Tu] = !0, la.forEach((function(t) { + Ru.has(t) || zu(t, !1, e, null), zu(t, !0, e, null); }))); } -function Bu(e, t, n, r) { +function zu(e, t, n, r) { var o = 4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 0, a = n; - if ("selectionchange" === e && 9 !== n.nodeType && (a = n.ownerDocument), null !== r && !t && _u.has(e)) { + if ("selectionchange" === e && 9 !== n.nodeType && (a = n.ownerDocument), null !== r && !t && Ru.has(e)) { if ("scroll" !== e) return; o |= 2, a = r; } - var i = fc(a), + var i = ac(a), l = e + "__" + (t ? "capture" : "bubble"); - i.has(l) || (t && (o |= 4), Du(a, e, o, t), i.add(l)); + i.has(l) || (t && (o |= 4), Nu(a, e, o, t), i.add(l)); } -function Du(e, t, n, r) { - var o = Dl.get(t); +function Nu(e, t, n, r) { + var o = Nl.get(t); switch (void 0 === o ? 2 : o) { case 0: - o = os; + o = Ql; break; case 1: - o = as; + o = Gl; break; default: - o = is; + o = Zl; } - n = o.bind(null, t, n, e), o = void 0, !Yi || "touchstart" !== t && "touchmove" !== t && "wheel" !== t || (o = !0), r ? void 0 !== o ? e.addEventListener(t, n, { + n = o.bind(null, t, n, e), o = void 0, !Di || "touchstart" !== t && "touchmove" !== t && "wheel" !== t || (o = !0), r ? void 0 !== o ? e.addEventListener(t, n, { capture: !0, passive: o }) : e.addEventListener(t, n, !0) : void 0 !== o ? e.addEventListener(t, n, { @@ -4188,7 +4121,7 @@ function Du(e, t, n, r) { }) : e.addEventListener(t, n, !1); } -function Wu(e, t, n, r, o) { +function _u(e, t, n, r, o) { var a = r; if (0 == (1 & t) && 0 == (2 & t) && null !== r) e: for (;;) { if (null === r) return; @@ -4203,7 +4136,7 @@ function Wu(e, t, n, r, o) { i = i.return; } for (; null !== l;) { - if (null === (i = uc(l))) return; + if (null === (i = tc(l))) return; if (5 === (s = i.tag) || 6 === s) { r = a = i; continue e @@ -4213,38 +4146,38 @@ function Wu(e, t, n, r, o) { } r = r.return; }! function(e, t, n) { - if (qi) return e(t, n); - qi = !0; + if ($i) return e(t, n); + $i = !0; try { - Hi(e, t, n); + Ii(e, t, n); } finally { - qi = !1, Ki(); + $i = !1, Ai(); } }((function() { var r = a, - o = _i(n), + o = Ri(n), i = []; e: { - var l = Bl.get(e); + var l = zl.get(e); if (void 0 !== l) { - var s = xs, + var s = ps, u = e; switch (e) { case "keypress": - if (0 === ps(n)) break e; + if (0 === os(n)) break e; case "keydown": case "keyup": - s = Fs; + s = Os; break; case "focusin": - u = "focus", s = Rs; + u = "focus", s = bs; break; case "focusout": - u = "blur", s = Rs; + u = "blur", s = bs; break; case "beforeblur": case "afterblur": - s = Rs; + s = bs; break; case "click": if (2 === n.button) break e; @@ -4256,7 +4189,7 @@ function Wu(e, t, n, r, o) { case "mouseout": case "mouseover": case "contextmenu": - s = Cs; + s = vs; break; case "drag": case "dragend": @@ -4266,32 +4199,32 @@ function Wu(e, t, n, r, o) { case "dragover": case "dragstart": case "drop": - s = Es; + s = gs; break; case "touchcancel": case "touchend": case "touchmove": case "touchstart": - s = As; + s = js; break; - case Il: - case Fl: - case $l: - s = Ps; + case Ml: + case Ol: + case Tl: + s = ys; break; - case Al: - s = Bs; + case jl: + s = zs; break; case "scroll": - s = ks; + s = hs; break; case "wheel": - s = Ws; + s = _s; break; case "copy": case "cut": case "paste": - s = Os; + s = ws; break; case "gotpointercapture": case "lostpointercapture": @@ -4301,7 +4234,7 @@ function Wu(e, t, n, r, o) { case "pointerout": case "pointerover": case "pointerup": - s = $s; + s = Ts; } var c = 0 != (4 & t), d = !c && "scroll" === e, @@ -4309,7 +4242,7 @@ function Wu(e, t, n, r, o) { c = []; for (var f, h = r; null !== h;) { var m = (f = h).stateNode; - if (5 === f.tag && null !== m && (f = m, null !== p && (null != (m = Xi(h, p)) && c.push(Uu(h, m, f)))), d) break; + if (5 === f.tag && null !== m && (f = m, null !== p && (null != (m = Bi(h, p)) && c.push(Lu(h, m, f)))), d) break; h = h.return; } 0 < c.length && (l = new s(l, u, null, n, o), i.push({ @@ -4319,54 +4252,54 @@ function Wu(e, t, n, r, o) { } } if (0 == (7 & t)) { - if (s = "mouseout" === e || "pointerout" === e, (!(l = "mouseover" === e || "pointerover" === e) || 0 != (16 & t) || !(u = n.relatedTarget || n.fromElement) || !uc(u) && !u[lc]) && (s || l) && (l = o.window === o ? o : (l = o.ownerDocument) ? l.defaultView || l.parentWindow : window, s ? (s = r, null !== (u = (u = n.relatedTarget || n.toElement) ? uc(u) : null) && (u !== (d = ol(u)) || 5 !== u.tag && 6 !== u.tag) && (u = null)) : (s = null, u = r), s !== u)) { - if (c = Cs, m = "onMouseLeave", p = "onMouseEnter", h = "mouse", "pointerout" !== e && "pointerover" !== e || (c = $s, m = "onPointerLeave", p = "onPointerEnter", h = "pointer"), d = null == s ? l : dc(s), f = null == u ? l : dc(u), (l = new c(m, h + "leave", s, n, o)).target = d, l.relatedTarget = f, m = null, uc(o) === r && ((c = new c(p, h + "enter", u, n, o)).target = f, c.relatedTarget = d, m = c), d = m, s && u) e: { - for (p = u, h = 0, f = c = s; f; f = Vu(f)) h++; - for (f = 0, m = p; m; m = Vu(m)) f++; - for (; 0 < h - f;) c = Vu(c), + if (s = "mouseout" === e || "pointerout" === e, (!(l = "mouseover" === e || "pointerover" === e) || 0 != (16 & t) || !(u = n.relatedTarget || n.fromElement) || !tc(u) && !u[Ju]) && (s || l) && (l = o.window === o ? o : (l = o.ownerDocument) ? l.defaultView || l.parentWindow : window, s ? (s = r, null !== (u = (u = n.relatedTarget || n.toElement) ? tc(u) : null) && (u !== (d = Qi(u)) || 5 !== u.tag && 6 !== u.tag) && (u = null)) : (s = null, u = r), s !== u)) { + if (c = vs, m = "onMouseLeave", p = "onMouseEnter", h = "mouse", "pointerout" !== e && "pointerover" !== e || (c = Ts, m = "onPointerLeave", p = "onPointerEnter", h = "pointer"), d = null == s ? l : rc(s), f = null == u ? l : rc(u), (l = new c(m, h + "leave", s, n, o)).target = d, l.relatedTarget = f, m = null, tc(o) === r && ((c = new c(p, h + "enter", u, n, o)).target = f, c.relatedTarget = d, m = c), d = m, s && u) e: { + for (p = u, h = 0, f = c = s; f; f = Fu(f)) h++; + for (f = 0, m = p; m; m = Fu(m)) f++; + for (; 0 < h - f;) c = Fu(c), h--; - for (; 0 < f - h;) p = Vu(p), + for (; 0 < f - h;) p = Fu(p), f--; for (; h--;) { if (c === p || null !== p && c === p.alternate) break e; - c = Vu(c), p = Vu(p); + c = Fu(c), p = Fu(p); } c = null; } else c = null; - null !== s && qu(i, l, s, c, !1), null !== u && null !== d && qu(i, d, u, c, !0); + null !== s && $u(i, l, s, c, !1), null !== u && null !== d && $u(i, d, u, c, !0); } - if ("select" === (s = (l = r ? dc(r) : window).nodeName && l.nodeName.toLowerCase()) || "input" === s && "file" === l.type) var v = iu; - else if (eu(l)) - if (lu) v = vu; + if ("select" === (s = (l = r ? rc(r) : window).nodeName && l.nodeName.toLowerCase()) || "input" === s && "file" === l.type) var v = Zs; + else if (qs(l)) + if (Js) v = su; else { - v = hu; - var g = fu; + v = iu; + var g = au; } - else(s = l.nodeName) && "input" === s.toLowerCase() && ("checkbox" === l.type || "radio" === l.type) && (v = mu); - switch (v && (v = v(e, r)) ? tu(i, v, n, o) : (g && g(e, l, r), "focusout" === e && (g = l._wrapperState) && g.controlled && "number" === l.type && pi(l, "number", l.value)), g = r ? dc(r) : window, e) { + else(s = l.nodeName) && "input" === s.toLowerCase() && ("checkbox" === l.type || "radio" === l.type) && (v = lu); + switch (v && (v = v(e, r)) ? Ks(i, v, n, o) : (g && g(e, l, r), "focusout" === e && (g = l._wrapperState) && g.controlled && "number" === l.type && oi(l, "number", l.value)), g = r ? rc(r) : window, e) { case "focusin": - (eu(g) || "true" === g.contentEditable) && (Ru = g, Pu = r, Mu = null); + (qs(g) || "true" === g.contentEditable) && (bu = g, yu = r, xu = null); break; case "focusout": - Mu = Pu = Ru = null; + xu = yu = bu = null; break; case "mousedown": - Ou = !0; + wu = !0; break; case "contextmenu": case "mouseup": case "dragend": - Ou = !1, Tu(i, n, o); + wu = !1, ku(i, n, o); break; case "selectionchange": - if (Eu) break; + if (gu) break; case "keydown": case "keyup": - Tu(i, n, o); + ku(i, n, o); } var b; - if (Hs) e: { + if (Is) e: { switch (e) { case "compositionstart": var y = "onCompositionStart"; @@ -4380,23 +4313,23 @@ function Wu(e, t, n, r, o) { } y = void 0; } - else Zs ? Qs(e, n) && (y = "onCompositionEnd") : "keydown" === e && 229 === n.keyCode && (y = "onCompositionStart"); - y && (Ks && "ko" !== n.locale && (Zs || "onCompositionStart" !== y ? "onCompositionEnd" === y && Zs && (b = ds()) : (us = "value" in (ss = o) ? ss.value : ss.textContent, Zs = !0)), 0 < (g = Hu(r, y)).length && (y = new Ts(y, e, null, n, o), i.push({ + else Hs ? Ws(e, n) && (y = "onCompositionEnd") : "keydown" === e && 229 === n.keyCode && (y = "onCompositionStart"); + y && (As && "ko" !== n.locale && (Hs || "onCompositionStart" !== y ? "onCompositionEnd" === y && Hs && (b = rs()) : (ts = "value" in (es = o) ? es.value : es.textContent, Hs = !0)), 0 < (g = Iu(r, y)).length && (y = new ks(y, e, null, n, o), i.push({ event: y, listeners: g - }), b ? y.data = b : null !== (b = Gs(n)) && (y.data = b))), (b = qs ? function(e, t) { + }), b ? y.data = b : null !== (b = Us(n)) && (y.data = b))), (b = $s ? function(e, t) { switch (e) { case "compositionend": - return Gs(t); + return Us(t); case "keypress": - return 32 !== t.which ? null : (Ys = !0, Xs); + return 32 !== t.which ? null : (Ds = !0, Bs); case "textInput": - return (e = t.data) === Xs && Ys ? null : e; + return (e = t.data) === Bs && Ds ? null : e; default: return null } }(e, n) : function(e, t) { - if (Zs) return "compositionend" === e || !Hs && Qs(e, t) ? (e = ds(), cs = us = ss = null, Zs = !1, e) : null; + if (Hs) return "compositionend" === e || !Is && Ws(e, t) ? (e = rs(), ns = ts = es = null, Hs = !1, e) : null; switch (e) { case "paste": default: @@ -4408,18 +4341,18 @@ function Wu(e, t, n, r, o) { } return null; case "compositionend": - return Ks && "ko" !== t.locale ? null : t.data + return As && "ko" !== t.locale ? null : t.data } - }(e, n)) && (0 < (r = Hu(r, "onBeforeInput")).length && (o = new Ts("onBeforeInput", "beforeinput", null, n, o), i.push({ + }(e, n)) && (0 < (r = Iu(r, "onBeforeInput")).length && (o = new ks("onBeforeInput", "beforeinput", null, n, o), i.push({ event: o, listeners: r }), o.data = b)); } - Iu(i, t); + Mu(i, t); })); } -function Uu(e, t, n) { +function Lu(e, t, n) { return { instance: e, listener: t, @@ -4427,16 +4360,16 @@ function Uu(e, t, n) { } } -function Hu(e, t) { +function Iu(e, t) { for (var n = t + "Capture", r = []; null !== e;) { var o = e, a = o.stateNode; - 5 === o.tag && null !== a && (o = a, null != (a = Xi(e, n)) && r.unshift(Uu(e, a, o)), null != (a = Xi(e, t)) && r.push(Uu(e, a, o))), e = e.return; + 5 === o.tag && null !== a && (o = a, null != (a = Bi(e, n)) && r.unshift(Lu(e, a, o)), null != (a = Bi(e, t)) && r.push(Lu(e, a, o))), e = e.return; } return r } -function Vu(e) { +function Fu(e) { if (null === e) return null; do { e = e.return; @@ -4444,13 +4377,13 @@ function Vu(e) { return e || null } -function qu(e, t, n, r, o) { +function $u(e, t, n, r, o) { for (var a = t._reactName, i = []; null !== n && n !== r;) { var l = n, s = l.alternate, u = l.stateNode; if (null !== s && s === r) break; - 5 === l.tag && null !== u && (l = u, o ? null != (s = Xi(n, a)) && i.unshift(Uu(n, s, l)) : o || null != (s = Xi(n, a)) && i.push(Uu(n, s, l))), n = n.return; + 5 === l.tag && null !== u && (l = u, o ? null != (s = Bi(n, a)) && i.unshift(Lu(n, s, l)) : o || null != (s = Bi(n, a)) && i.push(Lu(n, s, l))), n = n.return; } 0 !== i.length && e.push({ event: t, @@ -4458,11 +4391,11 @@ function qu(e, t, n, r, o) { }); } -function Ku() {} -var Xu = null, - Yu = null; +function Au() {} +var Bu = null, + Du = null; -function Qu(e, t) { +function Wu(e, t) { switch (e) { case "button": case "input": @@ -4473,17 +4406,17 @@ function Qu(e, t) { return !1 } -function Gu(e, t) { +function Uu(e, t) { return "textarea" === e || "option" === e || "noscript" === e || "string" == typeof t.children || "number" == typeof t.children || "object" == typeof t.dangerouslySetInnerHTML && null !== t.dangerouslySetInnerHTML && null != t.dangerouslySetInnerHTML.__html } -var Zu = "function" == typeof setTimeout ? setTimeout : void 0, - Ju = "function" == typeof clearTimeout ? clearTimeout : void 0; +var Hu = "function" == typeof setTimeout ? setTimeout : void 0, + Vu = "function" == typeof clearTimeout ? clearTimeout : void 0; -function ec(e) { +function qu(e) { 1 === e.nodeType ? e.textContent = "" : 9 === e.nodeType && (null != (e = e.body) && (e.textContent = "")); } -function tc(e) { +function Ku(e) { for (; null != e; e = e.nextSibling) { var t = e.nodeType; if (1 === t || 3 === t) break @@ -4491,7 +4424,7 @@ function tc(e) { return e } -function nc(e) { +function Xu(e) { e = e.previousSibling; for (var t = 0; e;) { if (8 === e.nodeType) { @@ -4505,22 +4438,22 @@ function nc(e) { } return null } -var rc = 0; -var oc = Math.random().toString(36).slice(2), - ac = "__reactFiber$" + oc, - ic = "__reactProps$" + oc, - lc = "__reactContainer$" + oc, - sc = "__reactEvents$" + oc; +var Yu = 0; +var Qu = Math.random().toString(36).slice(2), + Gu = "__reactFiber$" + Qu, + Zu = "__reactProps$" + Qu, + Ju = "__reactContainer$" + Qu, + ec = "__reactEvents$" + Qu; -function uc(e) { - var t = e[ac]; +function tc(e) { + var t = e[Gu]; if (t) return t; for (var n = e.parentNode; n;) { - if (t = n[lc] || n[ac]) { + if (t = n[Ju] || n[Gu]) { if (n = t.alternate, null !== t.child || null !== n && null !== n.child) - for (e = nc(e); null !== e;) { - if (n = e[ac]) return n; - e = nc(e); + for (e = Xu(e); null !== e;) { + if (n = e[Gu]) return n; + e = Xu(e); } return t } @@ -4529,47 +4462,47 @@ function uc(e) { return null } -function cc(e) { - return !(e = e[ac] || e[lc]) || 5 !== e.tag && 6 !== e.tag && 13 !== e.tag && 3 !== e.tag ? null : e +function nc(e) { + return !(e = e[Gu] || e[Ju]) || 5 !== e.tag && 6 !== e.tag && 13 !== e.tag && 3 !== e.tag ? null : e } -function dc(e) { +function rc(e) { if (5 === e.tag || 6 === e.tag) return e.stateNode; - throw Error(ha(33)) + throw Error(ia(33)) } -function pc(e) { - return e[ic] || null +function oc(e) { + return e[Zu] || null } -function fc(e) { - var t = e[sc]; - return void 0 === t && (t = e[sc] = new Set), t +function ac(e) { + var t = e[ec]; + return void 0 === t && (t = e[ec] = new Set), t } -var hc = [], - mc = -1; +var ic = [], + lc = -1; -function vc(e) { +function sc(e) { return { current: e } } -function gc(e) { - 0 > mc || (e.current = hc[mc], hc[mc] = null, mc--); +function uc(e) { + 0 > lc || (e.current = ic[lc], ic[lc] = null, lc--); } -function bc(e, t) { - mc++, hc[mc] = e.current, e.current = t; +function cc(e, t) { + lc++, ic[lc] = e.current, e.current = t; } -var yc = {}, - xc = vc(yc), - wc = vc(!1), - kc = yc; +var dc = {}, + pc = sc(dc), + fc = sc(!1), + hc = dc; -function Sc(e, t) { +function mc(e, t) { var n = e.type.contextTypes; - if (!n) return yc; + if (!n) return dc; var r = e.stateNode; if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) return r.__reactInternalMemoizedMaskedChildContext; var o, a = {}; @@ -4577,155 +4510,155 @@ function Sc(e, t) { return r && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = t, e.__reactInternalMemoizedMaskedChildContext = a), a } -function Cc(e) { +function vc(e) { return null != (e = e.childContextTypes) } -function Ec() { - gc(wc), gc(xc); +function gc() { + uc(fc), uc(pc); } -function Rc(e, t, n) { - if (xc.current !== yc) throw Error(ha(168)); - bc(xc, t), bc(wc, n); +function bc(e, t, n) { + if (pc.current !== dc) throw Error(ia(168)); + cc(pc, t), cc(fc, n); } -function Pc(e, t, n) { +function yc(e, t, n) { var r = e.stateNode; if (e = t.childContextTypes, "function" != typeof r.getChildContext) return n; for (var o in r = r.getChildContext()) - if (!(o in e)) throw Error(ha(108, ti(t) || "Unknown", o)); - return pa({}, n, r) + if (!(o in e)) throw Error(ia(108, Ka(t) || "Unknown", o)); + return oa({}, n, r) } -function Mc(e) { - return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || yc, kc = xc.current, bc(xc, e), bc(wc, wc.current), !0 +function xc(e) { + return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || dc, hc = pc.current, cc(pc, e), cc(fc, fc.current), !0 } -function Oc(e, t, n) { +function wc(e, t, n) { var r = e.stateNode; - if (!r) throw Error(ha(169)); - n ? (e = Pc(e, t, kc), r.__reactInternalMemoizedMergedChildContext = e, gc(wc), gc(xc), bc(xc, e)) : gc(wc), bc(wc, n); + if (!r) throw Error(ia(169)); + n ? (e = yc(e, t, hc), r.__reactInternalMemoizedMergedChildContext = e, uc(fc), uc(pc), cc(pc, e)) : uc(fc), cc(fc, n); } -var Tc = null, - jc = null, - zc = fa.unstable_runWithPriority, - Nc = fa.unstable_scheduleCallback, - _c = fa.unstable_cancelCallback, - Lc = fa.unstable_shouldYield, - Ic = fa.unstable_requestPaint, - Fc = fa.unstable_now, - $c = fa.unstable_getCurrentPriorityLevel, - Ac = fa.unstable_ImmediatePriority, - Bc = fa.unstable_UserBlockingPriority, - Dc = fa.unstable_NormalPriority, - Wc = fa.unstable_LowPriority, - Uc = fa.unstable_IdlePriority, - Hc = {}, - Vc = void 0 !== Ic ? Ic : function() {}, - qc = null, - Kc = null, - Xc = !1, - Yc = Fc(), - Qc = 1e4 > Yc ? Fc : function() { - return Fc() - Yc +var kc = null, + Sc = null, + Cc = aa.unstable_runWithPriority, + Ec = aa.unstable_scheduleCallback, + Rc = aa.unstable_cancelCallback, + Pc = aa.unstable_shouldYield, + Mc = aa.unstable_requestPaint, + Oc = aa.unstable_now, + Tc = aa.unstable_getCurrentPriorityLevel, + jc = aa.unstable_ImmediatePriority, + zc = aa.unstable_UserBlockingPriority, + Nc = aa.unstable_NormalPriority, + _c = aa.unstable_LowPriority, + Lc = aa.unstable_IdlePriority, + Ic = {}, + Fc = void 0 !== Mc ? Mc : function() {}, + $c = null, + Ac = null, + Bc = !1, + Dc = Oc(), + Wc = 1e4 > Dc ? Oc : function() { + return Oc() - Dc }; -function Gc() { - switch ($c()) { - case Ac: +function Uc() { + switch (Tc()) { + case jc: return 99; - case Bc: + case zc: return 98; - case Dc: + case Nc: return 97; - case Wc: + case _c: return 96; - case Uc: + case Lc: return 95; default: - throw Error(ha(332)) + throw Error(ia(332)) } } -function Zc(e) { +function Hc(e) { switch (e) { case 99: - return Ac; + return jc; case 98: - return Bc; + return zc; case 97: - return Dc; + return Nc; case 96: - return Wc; + return _c; case 95: - return Uc; + return Lc; default: - throw Error(ha(332)) + throw Error(ia(332)) } } -function Jc(e, t) { - return e = Zc(e), zc(e, t) +function Vc(e, t) { + return e = Hc(e), Cc(e, t) } -function ed(e, t, n) { - return e = Zc(e), Nc(e, t, n) +function qc(e, t, n) { + return e = Hc(e), Ec(e, t, n) } -function td() { - if (null !== Kc) { - var e = Kc; - Kc = null, _c(e); +function Kc() { + if (null !== Ac) { + var e = Ac; + Ac = null, Rc(e); } - nd(); + Xc(); } -function nd() { - if (!Xc && null !== qc) { - Xc = !0; +function Xc() { + if (!Bc && null !== $c) { + Bc = !0; var e = 0; try { - var t = qc; - Jc(99, (function() { + var t = $c; + Vc(99, (function() { for (; e < t.length; e++) { var n = t[e]; do { n = n(!0); } while (null !== n) } - })), qc = null; + })), $c = null; } catch (t) { - throw null !== qc && (qc = qc.slice(e + 1)), Nc(Ac, td), t + throw null !== $c && ($c = $c.slice(e + 1)), Ec(jc, Kc), t } finally { - Xc = !1; + Bc = !1; } } } -var rd = Oa.ReactCurrentBatchConfig; +var Yc = wa.ReactCurrentBatchConfig; -function od(e, t) { +function Qc(e, t) { if (e && e.defaultProps) { - for (var n in t = pa({}, t), e = e.defaultProps) void 0 === t[n] && (t[n] = e[n]); + for (var n in t = oa({}, t), e = e.defaultProps) void 0 === t[n] && (t[n] = e[n]); return t } return t } -var ad = vc(null), - id = null, - ld = null, - sd = null; +var Gc = sc(null), + Zc = null, + Jc = null, + ed = null; -function ud() { - sd = ld = id = null; +function td() { + ed = Jc = Zc = null; } -function cd(e) { - var t = ad.current; - gc(ad), e.type._context._currentValue = t; +function nd(e) { + var t = Gc.current; + uc(Gc), e.type._context._currentValue = t; } -function dd(e, t) { +function rd(e, t) { for (; null !== e;) { var n = e.alternate; if ((e.childLanes & t) === t) { @@ -4736,29 +4669,29 @@ function dd(e, t) { } } -function pd(e, t) { - id = e, sd = ld = null, null !== (e = e.dependencies) && null !== e.firstContext && (0 != (e.lanes & t) && (Up = !0), e.firstContext = null); +function od(e, t) { + Zc = e, ed = Jc = null, null !== (e = e.dependencies) && null !== e.firstContext && (0 != (e.lanes & t) && (Lp = !0), e.firstContext = null); } -function fd(e, t) { - if (sd !== e && !1 !== t && 0 !== t) - if ("number" == typeof t && 1073741823 !== t || (sd = e, t = 1073741823), t = { +function ad(e, t) { + if (ed !== e && !1 !== t && 0 !== t) + if ("number" == typeof t && 1073741823 !== t || (ed = e, t = 1073741823), t = { context: e, observedBits: t, next: null - }, null === ld) { - if (null === id) throw Error(ha(308)); - ld = t, id.dependencies = { + }, null === Jc) { + if (null === Zc) throw Error(ia(308)); + Jc = t, Zc.dependencies = { lanes: 0, firstContext: t, responders: null }; - } else ld = ld.next = t; + } else Jc = Jc.next = t; return e._currentValue } -var hd = !1; +var id = !1; -function md(e) { +function ld(e) { e.updateQueue = { baseState: e.memoizedState, firstBaseUpdate: null, @@ -4770,7 +4703,7 @@ function md(e) { }; } -function vd(e, t) { +function sd(e, t) { e = e.updateQueue, t.updateQueue === e && (t.updateQueue = { baseState: e.baseState, firstBaseUpdate: e.firstBaseUpdate, @@ -4780,7 +4713,7 @@ function vd(e, t) { }); } -function gd(e, t) { +function ud(e, t) { return { eventTime: e, lane: t, @@ -4791,14 +4724,14 @@ function gd(e, t) { } } -function bd(e, t) { +function cd(e, t) { if (null !== (e = e.updateQueue)) { var n = (e = e.shared).pending; null === n ? t.next = t : (t.next = n.next, n.next = t), e.pending = t; } } -function yd(e, t) { +function dd(e, t) { var n = e.updateQueue, r = e.alternate; if (null !== r && n === (r = r.updateQueue)) { @@ -4829,9 +4762,9 @@ function yd(e, t) { null === (e = n.lastBaseUpdate) ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t; } -function xd(e, t, n, r) { +function pd(e, t, n, r) { var o = e.updateQueue; - hd = !1; + id = !1; var a = o.firstBaseUpdate, i = o.lastBaseUpdate, l = o.shared.pending; @@ -4874,10 +4807,10 @@ function xd(e, t, n, r) { f.flags = -4097 & f.flags | 64; case 0: if (null == (l = "function" == typeof(f = h.payload) ? f.call(p, d, l) : f)) break e; - d = pa({}, d, l); + d = oa({}, d, l); break e; case 2: - hd = !0; + id = !0; } } null !== a.callback && (e.flags |= 32, null === (l = o.effects) ? o.effects = [a] : l.push(a)); @@ -4894,101 +4827,101 @@ function xd(e, t, n, r) { a = l.next, l.next = null, o.lastBaseUpdate = l, o.shared.pending = null; } } - null === c && (s = d), o.baseState = s, o.firstBaseUpdate = u, o.lastBaseUpdate = c, Xf |= i, e.lanes = i, e.memoizedState = d; + null === c && (s = d), o.baseState = s, o.firstBaseUpdate = u, o.lastBaseUpdate = c, Bf |= i, e.lanes = i, e.memoizedState = d; } } -function wd(e, t, n) { +function fd(e, t, n) { if (e = t.effects, t.effects = null, null !== e) for (t = 0; t < e.length; t++) { var r = e[t], o = r.callback; if (null !== o) { - if (r.callback = null, r = n, "function" != typeof o) throw Error(ha(191, o)); + if (r.callback = null, r = n, "function" != typeof o) throw Error(ia(191, o)); o.call(r); } } } -var kd = (new da.Component).refs; +var hd = (new ra.Component).refs; -function Sd(e, t, n, r) { - n = null == (n = n(r, t = e.memoizedState)) ? t : pa({}, t, n), e.memoizedState = n, 0 === e.lanes && (e.updateQueue.baseState = n); +function md(e, t, n, r) { + n = null == (n = n(r, t = e.memoizedState)) ? t : oa({}, t, n), e.memoizedState = n, 0 === e.lanes && (e.updateQueue.baseState = n); } -var Cd = { +var vd = { isMounted: function(e) { - return !!(e = e._reactInternals) && ol(e) === e + return !!(e = e._reactInternals) && Qi(e) === e }, enqueueSetState: function(e, t, n) { e = e._reactInternals; - var r = yh(), - o = xh(e), - a = gd(r, o); - a.payload = t, null != n && (a.callback = n), bd(e, a), wh(e, o, r); + var r = dh(), + o = ph(e), + a = ud(r, o); + a.payload = t, null != n && (a.callback = n), cd(e, a), fh(e, o, r); }, enqueueReplaceState: function(e, t, n) { e = e._reactInternals; - var r = yh(), - o = xh(e), - a = gd(r, o); - a.tag = 1, a.payload = t, null != n && (a.callback = n), bd(e, a), wh(e, o, r); + var r = dh(), + o = ph(e), + a = ud(r, o); + a.tag = 1, a.payload = t, null != n && (a.callback = n), cd(e, a), fh(e, o, r); }, enqueueForceUpdate: function(e, t) { e = e._reactInternals; - var n = yh(), - r = xh(e), - o = gd(n, r); - o.tag = 2, null != t && (o.callback = t), bd(e, o), wh(e, r, n); + var n = dh(), + r = ph(e), + o = ud(n, r); + o.tag = 2, null != t && (o.callback = t), cd(e, o), fh(e, r, n); } }; -function Ed(e, t, n, r, o, a, i) { - return "function" == typeof(e = e.stateNode).shouldComponentUpdate ? e.shouldComponentUpdate(r, a, i) : !t.prototype || !t.prototype.isPureReactComponent || (!yu(n, r) || !yu(o, a)) +function gd(e, t, n, r, o, a, i) { + return "function" == typeof(e = e.stateNode).shouldComponentUpdate ? e.shouldComponentUpdate(r, a, i) : !t.prototype || !t.prototype.isPureReactComponent || (!du(n, r) || !du(o, a)) } -function Rd(e, t, n) { +function bd(e, t, n) { var r = !1, - o = yc, + o = dc, a = t.contextType; - return "object" == typeof a && null !== a ? a = fd(a) : (o = Cc(t) ? kc : xc.current, a = (r = null != (r = t.contextTypes)) ? Sc(e, o) : yc), t = new t(n, a), e.memoizedState = null !== t.state && void 0 !== t.state ? t.state : null, t.updater = Cd, e.stateNode = t, t._reactInternals = e, r && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = o, e.__reactInternalMemoizedMaskedChildContext = a), t + return "object" == typeof a && null !== a ? a = ad(a) : (o = vc(t) ? hc : pc.current, a = (r = null != (r = t.contextTypes)) ? mc(e, o) : dc), t = new t(n, a), e.memoizedState = null !== t.state && void 0 !== t.state ? t.state : null, t.updater = vd, e.stateNode = t, t._reactInternals = e, r && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = o, e.__reactInternalMemoizedMaskedChildContext = a), t } -function Pd(e, t, n, r) { - e = t.state, "function" == typeof t.componentWillReceiveProps && t.componentWillReceiveProps(n, r), "function" == typeof t.UNSAFE_componentWillReceiveProps && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && Cd.enqueueReplaceState(t, t.state, null); +function yd(e, t, n, r) { + e = t.state, "function" == typeof t.componentWillReceiveProps && t.componentWillReceiveProps(n, r), "function" == typeof t.UNSAFE_componentWillReceiveProps && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && vd.enqueueReplaceState(t, t.state, null); } -function Md(e, t, n, r) { +function xd(e, t, n, r) { var o = e.stateNode; - o.props = n, o.state = e.memoizedState, o.refs = kd, md(e); + o.props = n, o.state = e.memoizedState, o.refs = hd, ld(e); var a = t.contextType; - "object" == typeof a && null !== a ? o.context = fd(a) : (a = Cc(t) ? kc : xc.current, o.context = Sc(e, a)), xd(e, n, o, r), o.state = e.memoizedState, "function" == typeof(a = t.getDerivedStateFromProps) && (Sd(e, t, a, n), o.state = e.memoizedState), "function" == typeof t.getDerivedStateFromProps || "function" == typeof o.getSnapshotBeforeUpdate || "function" != typeof o.UNSAFE_componentWillMount && "function" != typeof o.componentWillMount || (t = o.state, "function" == typeof o.componentWillMount && o.componentWillMount(), "function" == typeof o.UNSAFE_componentWillMount && o.UNSAFE_componentWillMount(), t !== o.state && Cd.enqueueReplaceState(o, o.state, null), xd(e, n, o, r), o.state = e.memoizedState), "function" == typeof o.componentDidMount && (e.flags |= 4); + "object" == typeof a && null !== a ? o.context = ad(a) : (a = vc(t) ? hc : pc.current, o.context = mc(e, a)), pd(e, n, o, r), o.state = e.memoizedState, "function" == typeof(a = t.getDerivedStateFromProps) && (md(e, t, a, n), o.state = e.memoizedState), "function" == typeof t.getDerivedStateFromProps || "function" == typeof o.getSnapshotBeforeUpdate || "function" != typeof o.UNSAFE_componentWillMount && "function" != typeof o.componentWillMount || (t = o.state, "function" == typeof o.componentWillMount && o.componentWillMount(), "function" == typeof o.UNSAFE_componentWillMount && o.UNSAFE_componentWillMount(), t !== o.state && vd.enqueueReplaceState(o, o.state, null), pd(e, n, o, r), o.state = e.memoizedState), "function" == typeof o.componentDidMount && (e.flags |= 4); } -var Od = Array.isArray; +var wd = Array.isArray; -function Td(e, t, n) { +function kd(e, t, n) { if (null !== (e = n.ref) && "function" != typeof e && "object" != typeof e) { if (n._owner) { if (n = n._owner) { - if (1 !== n.tag) throw Error(ha(309)); + if (1 !== n.tag) throw Error(ia(309)); var r = n.stateNode; } - if (!r) throw Error(ha(147, e)); + if (!r) throw Error(ia(147, e)); var o = "" + e; return null !== t && null !== t.ref && "function" == typeof t.ref && t.ref._stringRef === o ? t.ref : (t = function(e) { var t = r.refs; - t === kd && (t = r.refs = {}), null === e ? delete t[o] : t[o] = e; + t === hd && (t = r.refs = {}), null === e ? delete t[o] : t[o] = e; }, t._stringRef = o, t) } - if ("string" != typeof e) throw Error(ha(284)); - if (!n._owner) throw Error(ha(290, e)) + if ("string" != typeof e) throw Error(ia(284)); + if (!n._owner) throw Error(ia(290, e)) } return e } -function jd(e, t) { - if ("textarea" !== e.type) throw Error(ha(31, "[object Object]" === Object.prototype.toString.call(t) ? "object with keys {" + Object.keys(t).join(", ") + "}" : t)) +function Sd(e, t) { + if ("textarea" !== e.type) throw Error(ia(31, "[object Object]" === Object.prototype.toString.call(t) ? "object with keys {" + Object.keys(t).join(", ") + "}" : t)) } -function zd(e) { +function Cd(e) { function t(t, n) { if (e) { var r = t.lastEffect; @@ -5008,7 +4941,7 @@ function zd(e) { } function o(e, t) { - return (e = Jh(e, t)).index = 0, e.sibling = null, e + return (e = Vh(e, t)).index = 0, e.sibling = null, e } function a(t, n, r) { @@ -5020,32 +4953,32 @@ function zd(e) { } function l(e, t, n, r) { - return null === t || 6 !== t.tag ? ((t = rm(n, e.mode, r)).return = e, t) : ((t = o(t, n)).return = e, t) + return null === t || 6 !== t.tag ? ((t = Yh(n, e.mode, r)).return = e, t) : ((t = o(t, n)).return = e, t) } function s(e, t, n, r) { - return null !== t && t.elementType === n.type ? ((r = o(t, n.props)).ref = Td(e, t, n), r.return = e, r) : ((r = em(n.type, n.key, n.props, null, e.mode, r)).ref = Td(e, t, n), r.return = e, r) + return null !== t && t.elementType === n.type ? ((r = o(t, n.props)).ref = kd(e, t, n), r.return = e, r) : ((r = qh(n.type, n.key, n.props, null, e.mode, r)).ref = kd(e, t, n), r.return = e, r) } function u(e, t, n, r) { - return null === t || 4 !== t.tag || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? ((t = om(n, e.mode, r)).return = e, t) : ((t = o(t, n.children || [])).return = e, t) + return null === t || 4 !== t.tag || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? ((t = Qh(n, e.mode, r)).return = e, t) : ((t = o(t, n.children || [])).return = e, t) } function c(e, t, n, r, a) { - return null === t || 7 !== t.tag ? ((t = tm(n, e.mode, r, a)).return = e, t) : ((t = o(t, n)).return = e, t) + return null === t || 7 !== t.tag ? ((t = Kh(n, e.mode, r, a)).return = e, t) : ((t = o(t, n)).return = e, t) } function d(e, t, n) { - if ("string" == typeof t || "number" == typeof t) return (t = rm("" + t, e.mode, n)).return = e, t; + if ("string" == typeof t || "number" == typeof t) return (t = Yh("" + t, e.mode, n)).return = e, t; if ("object" == typeof t && null !== t) { switch (t.$$typeof) { - case Ta: - return (n = em(t.type, t.key, t.props, null, e.mode, n)).ref = Td(e, null, t), n.return = e, n; - case ja: - return (t = om(t, e.mode, n)).return = e, t + case ka: + return (n = qh(t.type, t.key, t.props, null, e.mode, n)).ref = kd(e, null, t), n.return = e, n; + case Sa: + return (t = Qh(t, e.mode, n)).return = e, t } - if (Od(t) || Qa(t)) return (t = tm(t, e.mode, n, null)).return = e, t; - jd(e, t); + if (wd(t) || Wa(t)) return (t = Kh(t, e.mode, n, null)).return = e, t; + Sd(e, t); } return null } @@ -5055,13 +4988,13 @@ function zd(e) { if ("string" == typeof n || "number" == typeof n) return null !== o ? null : l(e, t, "" + n, r); if ("object" == typeof n && null !== n) { switch (n.$$typeof) { - case Ta: - return n.key === o ? n.type === za ? c(e, t, n.props.children, r, o) : s(e, t, n, r) : null; - case ja: + case ka: + return n.key === o ? n.type === Ca ? c(e, t, n.props.children, r, o) : s(e, t, n, r) : null; + case Sa: return n.key === o ? u(e, t, n, r) : null } - if (Od(n) || Qa(n)) return null !== o ? null : c(e, t, n, r, null); - jd(e, n); + if (wd(n) || Wa(n)) return null !== o ? null : c(e, t, n, r, null); + Sd(e, n); } return null } @@ -5070,13 +5003,13 @@ function zd(e) { if ("string" == typeof r || "number" == typeof r) return l(t, e = e.get(n) || null, "" + r, o); if ("object" == typeof r && null !== r) { switch (r.$$typeof) { - case Ta: - return e = e.get(null === r.key ? n : r.key) || null, r.type === za ? c(t, e, r.props.children, o, r.key) : s(t, e, r, o); - case ja: + case ka: + return e = e.get(null === r.key ? n : r.key) || null, r.type === Ca ? c(t, e, r.props.children, o, r.key) : s(t, e, r, o); + case Sa: return u(t, e = e.get(null === r.key ? n : r.key) || null, r, o) } - if (Od(r) || Qa(r)) return c(t, e = e.get(n) || null, r, o, null); - jd(t, r); + if (wd(r) || Wa(r)) return c(t, e = e.get(n) || null, r, o, null); + Sd(t, r); } return null } @@ -5103,9 +5036,9 @@ function zd(e) { } function m(o, i, l, s) { - var u = Qa(l); - if ("function" != typeof u) throw Error(ha(150)); - if (null == (l = u.call(l))) throw Error(ha(151)); + var u = Wa(l); + if ("function" != typeof u) throw Error(ia(150)); + if (null == (l = u.call(l))) throw Error(ia(151)); for (var c = u = null, h = i, m = i = 0, v = null, g = l.next(); null !== h && !g.done; m++, g = l.next()) { h.index > m ? (v = h, h = null) : v = h.sibling; var b = p(o, h, g.value, s); @@ -5126,21 +5059,21 @@ function zd(e) { })), u } return function(e, r, a, l) { - var s = "object" == typeof a && null !== a && a.type === za && null === a.key; + var s = "object" == typeof a && null !== a && a.type === Ca && null === a.key; s && (a = a.props.children); var u = "object" == typeof a && null !== a; if (u) switch (a.$$typeof) { - case Ta: + case ka: e: { for (u = a.key, s = r; null !== s;) { if (s.key === u) { if (7 === s.tag) { - if (a.type === za) { + if (a.type === Ca) { n(e, s.sibling), (r = o(s, a.props.children)).return = e, e = r; break e } } else if (s.elementType === a.type) { - n(e, s.sibling), (r = o(s, a.props)).ref = Td(e, s, a), r.return = e, e = r; + n(e, s.sibling), (r = o(s, a.props)).ref = kd(e, s, a), r.return = e, e = r; break e } n(e, s); @@ -5148,10 +5081,10 @@ function zd(e) { } t(e, s), s = s.sibling; } - a.type === za ? ((r = tm(a.props.children, e.mode, l, a.key)).return = e, e = r) : ((l = em(a.type, a.key, a.props, null, e.mode, l)).ref = Td(e, r, a), l.return = e, e = l); + a.type === Ca ? ((r = Kh(a.props.children, e.mode, l, a.key)).return = e, e = r) : ((l = qh(a.type, a.key, a.props, null, e.mode, l)).ref = kd(e, r, a), l.return = e, e = l); } return i(e); - case ja: + case Sa: e: { for (s = a.key; null !== r;) { if (r.key === s) { @@ -5163,66 +5096,66 @@ function zd(e) { break } t(e, r), r = r.sibling; - }(r = om(a, e.mode, l)).return = e, + }(r = Qh(a, e.mode, l)).return = e, e = r; } return i(e) } - if ("string" == typeof a || "number" == typeof a) return a = "" + a, null !== r && 6 === r.tag ? (n(e, r.sibling), (r = o(r, a)).return = e, e = r) : (n(e, r), (r = rm(a, e.mode, l)).return = e, e = r), i(e); - if (Od(a)) return h(e, r, a, l); - if (Qa(a)) return m(e, r, a, l); - if (u && jd(e, a), void 0 === a && !s) switch (e.tag) { + if ("string" == typeof a || "number" == typeof a) return a = "" + a, null !== r && 6 === r.tag ? (n(e, r.sibling), (r = o(r, a)).return = e, e = r) : (n(e, r), (r = Yh(a, e.mode, l)).return = e, e = r), i(e); + if (wd(a)) return h(e, r, a, l); + if (Wa(a)) return m(e, r, a, l); + if (u && Sd(e, a), void 0 === a && !s) switch (e.tag) { case 1: case 22: case 0: case 11: case 15: - throw Error(ha(152, ti(e.type) || "Component")) + throw Error(ia(152, Ka(e.type) || "Component")) } return n(e, r) } } -var Nd = zd(!0), - _d = zd(!1), - Ld = {}, - Id = vc(Ld), - Fd = vc(Ld), - $d = vc(Ld); +var Ed = Cd(!0), + Rd = Cd(!1), + Pd = {}, + Md = sc(Pd), + Od = sc(Pd), + Td = sc(Pd); -function Ad(e) { - if (e === Ld) throw Error(ha(174)); +function jd(e) { + if (e === Pd) throw Error(ia(174)); return e } -function Bd(e, t) { - switch (bc($d, t), bc(Fd, e), bc(Id, Ld), e = t.nodeType) { +function zd(e, t) { + switch (cc(Td, t), cc(Od, e), cc(Md, Pd), e = t.nodeType) { case 9: case 11: - t = (t = t.documentElement) ? t.namespaceURI : ki(null, ""); + t = (t = t.documentElement) ? t.namespaceURI : hi(null, ""); break; default: - t = ki(t = (e = 8 === e ? t.parentNode : t).namespaceURI || null, e = e.tagName); + t = hi(t = (e = 8 === e ? t.parentNode : t).namespaceURI || null, e = e.tagName); } - gc(Id), bc(Id, t); + uc(Md), cc(Md, t); } -function Dd() { - gc(Id), gc(Fd), gc($d); +function Nd() { + uc(Md), uc(Od), uc(Td); } -function Wd(e) { - Ad($d.current); - var t = Ad(Id.current), - n = ki(t, e.type); - t !== n && (bc(Fd, e), bc(Id, n)); +function _d(e) { + jd(Td.current); + var t = jd(Md.current), + n = hi(t, e.type); + t !== n && (cc(Od, e), cc(Md, n)); } -function Ud(e) { - Fd.current === e && (gc(Id), gc(Fd)); +function Ld(e) { + Od.current === e && (uc(Md), uc(Od)); } -var Hd = vc(0); +var Id = sc(0); -function Vd(e) { +function Fd(e) { for (var t = e; null !== t;) { if (13 === t.tag) { var n = t.memoizedState; @@ -5242,16 +5175,16 @@ function Vd(e) { } return null } -var qd = null, - Kd = null, - Xd = !1; +var $d = null, + Ad = null, + Bd = !1; -function Yd(e, t) { - var n = Gh(5, null, null, 0); +function Dd(e, t) { + var n = Uh(5, null, null, 0); n.elementType = "DELETED", n.type = "DELETED", n.stateNode = t, n.return = e, n.flags = 8, null !== e.lastEffect ? (e.lastEffect.nextEffect = n, e.lastEffect = n) : e.firstEffect = e.lastEffect = n; } -function Qd(e, t) { +function Wd(e, t) { switch (e.tag) { case 5: var n = e.type; @@ -5263,40 +5196,40 @@ function Qd(e, t) { } } -function Gd(e) { - if (Xd) { - var t = Kd; +function Ud(e) { + if (Bd) { + var t = Ad; if (t) { var n = t; - if (!Qd(e, t)) { - if (!(t = tc(n.nextSibling)) || !Qd(e, t)) return e.flags = -1025 & e.flags | 2, Xd = !1, void(qd = e); - Yd(qd, n); + if (!Wd(e, t)) { + if (!(t = Ku(n.nextSibling)) || !Wd(e, t)) return e.flags = -1025 & e.flags | 2, Bd = !1, void($d = e); + Dd($d, n); } - qd = e, Kd = tc(t.firstChild); - } else e.flags = -1025 & e.flags | 2, Xd = !1, qd = e; + $d = e, Ad = Ku(t.firstChild); + } else e.flags = -1025 & e.flags | 2, Bd = !1, $d = e; } } -function Zd(e) { +function Hd(e) { for (e = e.return; null !== e && 5 !== e.tag && 3 !== e.tag && 13 !== e.tag;) e = e.return; - qd = e; + $d = e; } -function Jd(e) { - if (e !== qd) return !1; - if (!Xd) return Zd(e), Xd = !0, !1; +function Vd(e) { + if (e !== $d) return !1; + if (!Bd) return Hd(e), Bd = !0, !1; var t = e.type; - if (5 !== e.tag || "head" !== t && "body" !== t && !Gu(t, e.memoizedProps)) - for (t = Kd; t;) Yd(e, t), t = tc(t.nextSibling); - if (Zd(e), 13 === e.tag) { - if (!(e = null !== (e = e.memoizedState) ? e.dehydrated : null)) throw Error(ha(317)); + if (5 !== e.tag || "head" !== t && "body" !== t && !Uu(t, e.memoizedProps)) + for (t = Ad; t;) Dd(e, t), t = Ku(t.nextSibling); + if (Hd(e), 13 === e.tag) { + if (!(e = null !== (e = e.memoizedState) ? e.dehydrated : null)) throw Error(ia(317)); e: { for (e = e.nextSibling, t = 0; e;) { if (8 === e.nodeType) { var n = e.data; if ("/$" === n) { if (0 === t) { - Kd = tc(e.nextSibling); + Ad = Ku(e.nextSibling); break e } t--; @@ -5304,54 +5237,54 @@ function Jd(e) { } e = e.nextSibling; } - Kd = null; + Ad = null; } - } else Kd = qd ? tc(e.stateNode.nextSibling) : null; + } else Ad = $d ? Ku(e.stateNode.nextSibling) : null; return !0 } -function ep() { - Kd = qd = null, Xd = !1; +function qd() { + Ad = $d = null, Bd = !1; } -var tp = []; +var Kd = []; -function np() { - for (var e = 0; e < tp.length; e++) tp[e]._workInProgressVersionPrimary = null; - tp.length = 0; +function Xd() { + for (var e = 0; e < Kd.length; e++) Kd[e]._workInProgressVersionPrimary = null; + Kd.length = 0; } -var rp = Oa.ReactCurrentDispatcher, - op = Oa.ReactCurrentBatchConfig, - ap = 0, - ip = null, - lp = null, - sp = null, - up = !1, - cp = !1; +var Yd = wa.ReactCurrentDispatcher, + Qd = wa.ReactCurrentBatchConfig, + Gd = 0, + Zd = null, + Jd = null, + ep = null, + tp = !1, + np = !1; -function dp() { - throw Error(ha(321)) +function rp() { + throw Error(ia(321)) } -function pp(e, t) { +function op(e, t) { if (null === t) return !1; for (var n = 0; n < t.length && n < e.length; n++) - if (!gu(e[n], t[n])) return !1; + if (!uu(e[n], t[n])) return !1; return !0 } -function fp(e, t, n, r, o, a) { - if (ap = a, ip = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, rp.current = null === e || null === e.memoizedState ? Ap : Bp, e = n(r, o), cp) { +function ap(e, t, n, r, o, a) { + if (Gd = a, Zd = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, Yd.current = null === e || null === e.memoizedState ? jp : zp, e = n(r, o), np) { a = 0; do { - if (cp = !1, !(25 > a)) throw Error(ha(301)); - a += 1, sp = lp = null, t.updateQueue = null, rp.current = Dp, e = n(r, o); - } while (cp) + if (np = !1, !(25 > a)) throw Error(ia(301)); + a += 1, ep = Jd = null, t.updateQueue = null, Yd.current = Np, e = n(r, o); + } while (np) } - if (rp.current = $p, t = null !== lp && null !== lp.next, ap = 0, sp = lp = ip = null, up = !1, t) throw Error(ha(300)); + if (Yd.current = Tp, t = null !== Jd && null !== Jd.next, Gd = 0, ep = Jd = Zd = null, tp = !1, t) throw Error(ia(300)); return e } -function hp() { +function ip() { var e = { memoizedState: null, baseState: null, @@ -5359,39 +5292,39 @@ function hp() { queue: null, next: null }; - return null === sp ? ip.memoizedState = sp = e : sp = sp.next = e, sp + return null === ep ? Zd.memoizedState = ep = e : ep = ep.next = e, ep } -function mp() { - if (null === lp) { - var e = ip.alternate; +function lp() { + if (null === Jd) { + var e = Zd.alternate; e = null !== e ? e.memoizedState : null; - } else e = lp.next; - var t = null === sp ? ip.memoizedState : sp.next; - if (null !== t) sp = t, lp = e; + } else e = Jd.next; + var t = null === ep ? Zd.memoizedState : ep.next; + if (null !== t) ep = t, Jd = e; else { - if (null === e) throw Error(ha(310)); + if (null === e) throw Error(ia(310)); e = { - memoizedState: (lp = e).memoizedState, - baseState: lp.baseState, - baseQueue: lp.baseQueue, - queue: lp.queue, + memoizedState: (Jd = e).memoizedState, + baseState: Jd.baseState, + baseQueue: Jd.baseQueue, + queue: Jd.queue, next: null - }, null === sp ? ip.memoizedState = sp = e : sp = sp.next = e; + }, null === ep ? Zd.memoizedState = ep = e : ep = ep.next = e; } - return sp + return ep } -function vp(e, t) { +function sp(e, t) { return "function" == typeof t ? t(e) : t } -function gp(e) { - var t = mp(), +function up(e) { + var t = lp(), n = t.queue; - if (null === n) throw Error(ha(311)); + if (null === n) throw Error(ia(311)); n.lastRenderedReducer = e; - var r = lp, + var r = Jd, o = r.baseQueue, a = n.pending; if (null !== a) { @@ -5407,7 +5340,7 @@ function gp(e) { s = o; do { var u = s.lane; - if ((ap & u) === u) null !== l && (l = l.next = { + if ((Gd & u) === u) null !== l && (l = l.next = { lane: 0, action: s.action, eagerReducer: s.eagerReducer, @@ -5422,19 +5355,19 @@ function gp(e) { eagerState: s.eagerState, next: null }; - null === l ? (i = l = c, a = r) : l = l.next = c, ip.lanes |= u, Xf |= u; + null === l ? (i = l = c, a = r) : l = l.next = c, Zd.lanes |= u, Bf |= u; } s = s.next; } while (null !== s && s !== o); - null === l ? a = r : l.next = i, gu(r, t.memoizedState) || (Up = !0), t.memoizedState = r, t.baseState = a, t.baseQueue = l, n.lastRenderedState = r; + null === l ? a = r : l.next = i, uu(r, t.memoizedState) || (Lp = !0), t.memoizedState = r, t.baseState = a, t.baseQueue = l, n.lastRenderedState = r; } return [t.memoizedState, n.dispatch] } -function bp(e) { - var t = mp(), +function cp(e) { + var t = lp(), n = t.queue; - if (null === n) throw Error(ha(311)); + if (null === n) throw Error(ia(311)); n.lastRenderedReducer = e; var r = n.dispatch, o = n.pending, @@ -5445,37 +5378,37 @@ function bp(e) { do { a = e(a, i.action), i = i.next; } while (i !== o); - gu(a, t.memoizedState) || (Up = !0), t.memoizedState = a, null === t.baseQueue && (t.baseState = a), n.lastRenderedState = a; + uu(a, t.memoizedState) || (Lp = !0), t.memoizedState = a, null === t.baseQueue && (t.baseState = a), n.lastRenderedState = a; } return [a, r] } -function yp(e, t, n) { +function dp(e, t, n) { var r = t._getVersion; r = r(t._source); var o = t._workInProgressVersionPrimary; - if (null !== o ? e = o === r : (e = e.mutableReadLanes, (e = (ap & e) === e) && (t._workInProgressVersionPrimary = r, tp.push(t))), e) return n(t._source); - throw tp.push(t), Error(ha(350)) + if (null !== o ? e = o === r : (e = e.mutableReadLanes, (e = (Gd & e) === e) && (t._workInProgressVersionPrimary = r, Kd.push(t))), e) return n(t._source); + throw Kd.push(t), Error(ia(350)) } -function xp(e, t, n, r) { - var o = Bf; - if (null === o) throw Error(ha(349)); +function pp(e, t, n, r) { + var o = zf; + if (null === o) throw Error(ia(349)); var a = t._getVersion, i = a(t._source), - l = rp.current, + l = Yd.current, s = l.useState((function() { - return yp(o, t, n) + return dp(o, t, n) })), u = s[1], c = s[0]; - s = sp; + s = ep; var d = e.memoizedState, p = d.refs, f = p.getSnapshot, h = d.source; d = d.subscribe; - var m = ip; + var m = Zd; return e.memoizedState = { refs: p, source: t, @@ -5483,10 +5416,10 @@ function xp(e, t, n, r) { }, l.useEffect((function() { p.getSnapshot = n, p.setSnapshot = u; var e = a(t._source); - if (!gu(i, e)) { - e = n(t._source), gu(c, e) || (u(e), e = xh(m), o.mutableReadLanes |= e & o.pendingLanes), e = o.mutableReadLanes, o.entangledLanes |= e; + if (!uu(i, e)) { + e = n(t._source), uu(c, e) || (u(e), e = ph(m), o.mutableReadLanes |= e & o.pendingLanes), e = o.mutableReadLanes, o.entangledLanes |= e; for (var r = o.entanglements, l = e; 0 < l;) { - var s = 31 - Zl(l), + var s = 31 - Hl(l), d = 1 << s; r[s] |= e, l &= ~d; } @@ -5497,7 +5430,7 @@ function xp(e, t, n, r) { n = p.setSnapshot; try { n(e(t._source)); - var r = xh(m); + var r = ph(m); o.mutableReadLanes |= r & o.pendingLanes; } catch (e) { n((function() { @@ -5505,79 +5438,79 @@ function xp(e, t, n, r) { })); } })) - }), [t, r]), gu(f, n) && gu(h, t) && gu(d, r) || ((e = { + }), [t, r]), uu(f, n) && uu(h, t) && uu(d, r) || ((e = { pending: null, dispatch: null, - lastRenderedReducer: vp, + lastRenderedReducer: sp, lastRenderedState: c - }).dispatch = u = Fp.bind(null, ip, e), s.queue = e, s.baseQueue = null, c = yp(o, t, n), s.memoizedState = s.baseState = c), c + }).dispatch = u = Op.bind(null, Zd, e), s.queue = e, s.baseQueue = null, c = dp(o, t, n), s.memoizedState = s.baseState = c), c } -function wp(e, t, n) { - return xp(mp(), e, t, n) +function fp(e, t, n) { + return pp(lp(), e, t, n) } -function kp(e) { - var t = hp(); +function hp(e) { + var t = ip(); return "function" == typeof e && (e = e()), t.memoizedState = t.baseState = e, e = (e = t.queue = { pending: null, dispatch: null, - lastRenderedReducer: vp, + lastRenderedReducer: sp, lastRenderedState: e - }).dispatch = Fp.bind(null, ip, e), [t.memoizedState, e] + }).dispatch = Op.bind(null, Zd, e), [t.memoizedState, e] } -function Sp(e, t, n, r) { +function mp(e, t, n, r) { return e = { tag: e, create: t, destroy: n, deps: r, next: null - }, null === (t = ip.updateQueue) ? (t = { + }, null === (t = Zd.updateQueue) ? (t = { lastEffect: null - }, ip.updateQueue = t, t.lastEffect = e.next = e) : null === (n = t.lastEffect) ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e + }, Zd.updateQueue = t, t.lastEffect = e.next = e) : null === (n = t.lastEffect) ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e } -function Cp(e) { +function vp(e) { return e = { current: e - }, hp().memoizedState = e + }, ip().memoizedState = e } -function Ep() { - return mp().memoizedState +function gp() { + return lp().memoizedState } -function Rp(e, t, n, r) { - var o = hp(); - ip.flags |= e, o.memoizedState = Sp(1 | t, n, void 0, void 0 === r ? null : r); +function bp(e, t, n, r) { + var o = ip(); + Zd.flags |= e, o.memoizedState = mp(1 | t, n, void 0, void 0 === r ? null : r); } -function Pp(e, t, n, r) { - var o = mp(); +function yp(e, t, n, r) { + var o = lp(); r = void 0 === r ? null : r; var a = void 0; - if (null !== lp) { - var i = lp.memoizedState; - if (a = i.destroy, null !== r && pp(r, i.deps)) return void Sp(t, n, a, r) + if (null !== Jd) { + var i = Jd.memoizedState; + if (a = i.destroy, null !== r && op(r, i.deps)) return void mp(t, n, a, r) } - ip.flags |= e, o.memoizedState = Sp(1 | t, n, a, r); + Zd.flags |= e, o.memoizedState = mp(1 | t, n, a, r); } -function Mp(e, t) { - return Rp(516, 4, e, t) +function xp(e, t) { + return bp(516, 4, e, t) } -function Op(e, t) { - return Pp(516, 4, e, t) +function wp(e, t) { + return yp(516, 4, e, t) } -function Tp(e, t) { - return Pp(4, 2, e, t) +function kp(e, t) { + return yp(4, 2, e, t) } -function jp(e, t) { +function Sp(e, t) { return "function" == typeof t ? (e = e(), t(e), function() { t(null); }) : null != t ? (e = e(), t.current = e, function() { @@ -5585,44 +5518,44 @@ function jp(e, t) { }) : void 0 } -function zp(e, t, n) { - return n = null != n ? n.concat([e]) : null, Pp(4, 2, jp.bind(null, t, e), n) +function Cp(e, t, n) { + return n = null != n ? n.concat([e]) : null, yp(4, 2, Sp.bind(null, t, e), n) } -function Np() {} +function Ep() {} -function _p(e, t) { - var n = mp(); +function Rp(e, t) { + var n = lp(); t = void 0 === t ? null : t; var r = n.memoizedState; - return null !== r && null !== t && pp(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e) + return null !== r && null !== t && op(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e) } -function Lp(e, t) { - var n = mp(); +function Pp(e, t) { + var n = lp(); t = void 0 === t ? null : t; var r = n.memoizedState; - return null !== r && null !== t && pp(t, r[1]) ? r[0] : (e = e(), n.memoizedState = [e, t], e) + return null !== r && null !== t && op(t, r[1]) ? r[0] : (e = e(), n.memoizedState = [e, t], e) } -function Ip(e, t) { - var n = Gc(); - Jc(98 > n ? 98 : n, (function() { +function Mp(e, t) { + var n = Uc(); + Vc(98 > n ? 98 : n, (function() { e(!0); - })), Jc(97 < n ? 97 : n, (function() { - var n = op.transition; - op.transition = 1; + })), Vc(97 < n ? 97 : n, (function() { + var n = Qd.transition; + Qd.transition = 1; try { e(!1), t(); } finally { - op.transition = n; + Qd.transition = n; } })); } -function Fp(e, t, n) { - var r = yh(), - o = xh(e), +function Op(e, t, n) { + var r = dh(), + o = ph(e), a = { lane: o, action: n, @@ -5631,84 +5564,84 @@ function Fp(e, t, n) { next: null }, i = t.pending; - if (null === i ? a.next = a : (a.next = i.next, i.next = a), t.pending = a, i = e.alternate, e === ip || null !== i && i === ip) cp = up = !0; + if (null === i ? a.next = a : (a.next = i.next, i.next = a), t.pending = a, i = e.alternate, e === Zd || null !== i && i === Zd) np = tp = !0; else { if (0 === e.lanes && (null === i || 0 === i.lanes) && null !== (i = t.lastRenderedReducer)) try { var l = t.lastRenderedState, s = i(l, n); - if (a.eagerReducer = i, a.eagerState = s, gu(s, l)) return + if (a.eagerReducer = i, a.eagerState = s, uu(s, l)) return } catch (e) {} - wh(e, o, r); + fh(e, o, r); } } -var $p = { - readContext: fd, - useCallback: dp, - useContext: dp, - useEffect: dp, - useImperativeHandle: dp, - useLayoutEffect: dp, - useMemo: dp, - useReducer: dp, - useRef: dp, - useState: dp, - useDebugValue: dp, - useDeferredValue: dp, - useTransition: dp, - useMutableSource: dp, - useOpaqueIdentifier: dp, +var Tp = { + readContext: ad, + useCallback: rp, + useContext: rp, + useEffect: rp, + useImperativeHandle: rp, + useLayoutEffect: rp, + useMemo: rp, + useReducer: rp, + useRef: rp, + useState: rp, + useDebugValue: rp, + useDeferredValue: rp, + useTransition: rp, + useMutableSource: rp, + useOpaqueIdentifier: rp, unstable_isNewReconciler: !1 }, - Ap = { - readContext: fd, + jp = { + readContext: ad, useCallback: function(e, t) { - return hp().memoizedState = [e, void 0 === t ? null : t], e + return ip().memoizedState = [e, void 0 === t ? null : t], e }, - useContext: fd, - useEffect: Mp, + useContext: ad, + useEffect: xp, useImperativeHandle: function(e, t, n) { - return n = null != n ? n.concat([e]) : null, Rp(4, 2, jp.bind(null, t, e), n) + return n = null != n ? n.concat([e]) : null, bp(4, 2, Sp.bind(null, t, e), n) }, useLayoutEffect: function(e, t) { - return Rp(4, 2, e, t) + return bp(4, 2, e, t) }, useMemo: function(e, t) { - var n = hp(); + var n = ip(); return t = void 0 === t ? null : t, e = e(), n.memoizedState = [e, t], e }, useReducer: function(e, t, n) { - var r = hp(); + var r = ip(); return t = void 0 !== n ? n(t) : t, r.memoizedState = r.baseState = t, e = (e = r.queue = { pending: null, dispatch: null, lastRenderedReducer: e, lastRenderedState: t - }).dispatch = Fp.bind(null, ip, e), [r.memoizedState, e] + }).dispatch = Op.bind(null, Zd, e), [r.memoizedState, e] }, - useRef: Cp, - useState: kp, - useDebugValue: Np, + useRef: vp, + useState: hp, + useDebugValue: Ep, useDeferredValue: function(e) { - var t = kp(e), + var t = hp(e), n = t[0], r = t[1]; - return Mp((function() { - var t = op.transition; - op.transition = 1; + return xp((function() { + var t = Qd.transition; + Qd.transition = 1; try { r(e); } finally { - op.transition = t; + Qd.transition = t; } }), [e]), n }, useTransition: function() { - var e = kp(!1), + var e = hp(!1), t = e[0]; - return Cp(e = Ip.bind(null, e[1])), [e, t] + return vp(e = Mp.bind(null, e[1])), [e, t] }, useMutableSource: function(e, t, n) { - var r = hp(); + var r = ip(); return r.memoizedState = { refs: { getSnapshot: t, @@ -5716,246 +5649,246 @@ var $p = { }, source: e, subscribe: n - }, xp(r, e, t, n) + }, pp(r, e, t, n) }, useOpaqueIdentifier: function() { - if (Xd) { + if (Bd) { var e = !1, t = function(e) { return { - $$typeof: Ua, + $$typeof: La, toString: e, valueOf: e } }((function() { - throw e || (e = !0, n("r:" + (rc++).toString(36))), Error(ha(355)) + throw e || (e = !0, n("r:" + (Yu++).toString(36))), Error(ia(355)) })), - n = kp(t)[1]; - return 0 == (2 & ip.mode) && (ip.flags |= 516, Sp(5, (function() { - n("r:" + (rc++).toString(36)); + n = hp(t)[1]; + return 0 == (2 & Zd.mode) && (Zd.flags |= 516, mp(5, (function() { + n("r:" + (Yu++).toString(36)); }), void 0, null)), t } - return kp(t = "r:" + (rc++).toString(36)), t + return hp(t = "r:" + (Yu++).toString(36)), t }, unstable_isNewReconciler: !1 }, - Bp = { - readContext: fd, - useCallback: _p, - useContext: fd, - useEffect: Op, - useImperativeHandle: zp, - useLayoutEffect: Tp, - useMemo: Lp, - useReducer: gp, - useRef: Ep, + zp = { + readContext: ad, + useCallback: Rp, + useContext: ad, + useEffect: wp, + useImperativeHandle: Cp, + useLayoutEffect: kp, + useMemo: Pp, + useReducer: up, + useRef: gp, useState: function() { - return gp(vp) + return up(sp) }, - useDebugValue: Np, + useDebugValue: Ep, useDeferredValue: function(e) { - var t = gp(vp), + var t = up(sp), n = t[0], r = t[1]; - return Op((function() { - var t = op.transition; - op.transition = 1; + return wp((function() { + var t = Qd.transition; + Qd.transition = 1; try { r(e); } finally { - op.transition = t; + Qd.transition = t; } }), [e]), n }, useTransition: function() { - var e = gp(vp)[0]; - return [Ep().current, e] + var e = up(sp)[0]; + return [gp().current, e] }, - useMutableSource: wp, + useMutableSource: fp, useOpaqueIdentifier: function() { - return gp(vp)[0] + return up(sp)[0] }, unstable_isNewReconciler: !1 }, - Dp = { - readContext: fd, - useCallback: _p, - useContext: fd, - useEffect: Op, - useImperativeHandle: zp, - useLayoutEffect: Tp, - useMemo: Lp, - useReducer: bp, - useRef: Ep, + Np = { + readContext: ad, + useCallback: Rp, + useContext: ad, + useEffect: wp, + useImperativeHandle: Cp, + useLayoutEffect: kp, + useMemo: Pp, + useReducer: cp, + useRef: gp, useState: function() { - return bp(vp) + return cp(sp) }, - useDebugValue: Np, + useDebugValue: Ep, useDeferredValue: function(e) { - var t = bp(vp), + var t = cp(sp), n = t[0], r = t[1]; - return Op((function() { - var t = op.transition; - op.transition = 1; + return wp((function() { + var t = Qd.transition; + Qd.transition = 1; try { r(e); } finally { - op.transition = t; + Qd.transition = t; } }), [e]), n }, useTransition: function() { - var e = bp(vp)[0]; - return [Ep().current, e] + var e = cp(sp)[0]; + return [gp().current, e] }, - useMutableSource: wp, + useMutableSource: fp, useOpaqueIdentifier: function() { - return bp(vp)[0] + return cp(sp)[0] }, unstable_isNewReconciler: !1 }, - Wp = Oa.ReactCurrentOwner, - Up = !1; + _p = wa.ReactCurrentOwner, + Lp = !1; -function Hp(e, t, n, r) { - t.child = null === e ? _d(t, null, n, r) : Nd(t, e.child, n, r); +function Ip(e, t, n, r) { + t.child = null === e ? Rd(t, null, n, r) : Ed(t, e.child, n, r); } -function Vp(e, t, n, r, o) { +function Fp(e, t, n, r, o) { n = n.render; var a = t.ref; - return pd(t, o), r = fp(e, t, n, r, a, o), null === e || Up ? (t.flags |= 1, Hp(e, t, r, o), t.child) : (t.updateQueue = e.updateQueue, t.flags &= -517, e.lanes &= ~o, pf(e, t, o)) + return od(t, o), r = ap(e, t, n, r, a, o), null === e || Lp ? (t.flags |= 1, Ip(e, t, r, o), t.child) : (t.updateQueue = e.updateQueue, t.flags &= -517, e.lanes &= ~o, rf(e, t, o)) } -function qp(e, t, n, r, o, a) { +function $p(e, t, n, r, o, a) { if (null === e) { var i = n.type; - return "function" != typeof i || Zh(i) || void 0 !== i.defaultProps || null !== n.compare || void 0 !== n.defaultProps ? ((e = em(n.type, null, r, t, t.mode, a)).ref = t.ref, e.return = t, t.child = e) : (t.tag = 15, t.type = i, Kp(e, t, i, r, o, a)) + return "function" != typeof i || Hh(i) || void 0 !== i.defaultProps || null !== n.compare || void 0 !== n.defaultProps ? ((e = qh(n.type, null, r, t, t.mode, a)).ref = t.ref, e.return = t, t.child = e) : (t.tag = 15, t.type = i, Ap(e, t, i, r, o, a)) } - return i = e.child, 0 == (o & a) && (o = i.memoizedProps, (n = null !== (n = n.compare) ? n : yu)(o, r) && e.ref === t.ref) ? pf(e, t, a) : (t.flags |= 1, (e = Jh(i, r)).ref = t.ref, e.return = t, t.child = e) + return i = e.child, 0 == (o & a) && (o = i.memoizedProps, (n = null !== (n = n.compare) ? n : du)(o, r) && e.ref === t.ref) ? rf(e, t, a) : (t.flags |= 1, (e = Vh(i, r)).ref = t.ref, e.return = t, t.child = e) } -function Kp(e, t, n, r, o, a) { - if (null !== e && yu(e.memoizedProps, r) && e.ref === t.ref) { - if (Up = !1, 0 == (a & o)) return t.lanes = e.lanes, pf(e, t, a); - 0 != (16384 & e.flags) && (Up = !0); +function Ap(e, t, n, r, o, a) { + if (null !== e && du(e.memoizedProps, r) && e.ref === t.ref) { + if (Lp = !1, 0 == (a & o)) return t.lanes = e.lanes, rf(e, t, a); + 0 != (16384 & e.flags) && (Lp = !0); } - return Qp(e, t, n, r, a) + return Wp(e, t, n, r, a) } -function Xp(e, t, n) { +function Bp(e, t, n) { var r = t.pendingProps, o = r.children, a = null !== e ? e.memoizedState : null; if ("hidden" === r.mode || "unstable-defer-without-hiding" === r.mode) if (0 == (4 & t.mode)) t.memoizedState = { baseLanes: 0 - }, Oh(t, n); + }, wh(t, n); else { if (0 == (1073741824 & n)) return e = null !== a ? a.baseLanes | n : n, t.lanes = t.childLanes = 1073741824, t.memoizedState = { baseLanes: e - }, Oh(t, e), null; + }, wh(t, e), null; t.memoizedState = { baseLanes: 0 - }, Oh(t, null !== a ? a.baseLanes : n); + }, wh(t, null !== a ? a.baseLanes : n); } - else null !== a ? (r = a.baseLanes | n, t.memoizedState = null) : r = n, Oh(t, r); - return Hp(e, t, o, n), t.child + else null !== a ? (r = a.baseLanes | n, t.memoizedState = null) : r = n, wh(t, r); + return Ip(e, t, o, n), t.child } -function Yp(e, t) { +function Dp(e, t) { var n = t.ref; (null === e && null !== n || null !== e && e.ref !== n) && (t.flags |= 128); } -function Qp(e, t, n, r, o) { - var a = Cc(n) ? kc : xc.current; - return a = Sc(t, a), pd(t, o), n = fp(e, t, n, r, a, o), null === e || Up ? (t.flags |= 1, Hp(e, t, n, o), t.child) : (t.updateQueue = e.updateQueue, t.flags &= -517, e.lanes &= ~o, pf(e, t, o)) +function Wp(e, t, n, r, o) { + var a = vc(n) ? hc : pc.current; + return a = mc(t, a), od(t, o), n = ap(e, t, n, r, a, o), null === e || Lp ? (t.flags |= 1, Ip(e, t, n, o), t.child) : (t.updateQueue = e.updateQueue, t.flags &= -517, e.lanes &= ~o, rf(e, t, o)) } -function Gp(e, t, n, r, o) { - if (Cc(n)) { +function Up(e, t, n, r, o) { + if (vc(n)) { var a = !0; - Mc(t); + xc(t); } else a = !1; - if (pd(t, o), null === t.stateNode) null !== e && (e.alternate = null, t.alternate = null, t.flags |= 2), Rd(t, n, r), Md(t, n, r, o), r = !0; + if (od(t, o), null === t.stateNode) null !== e && (e.alternate = null, t.alternate = null, t.flags |= 2), bd(t, n, r), xd(t, n, r, o), r = !0; else if (null === e) { var i = t.stateNode, l = t.memoizedProps; i.props = l; var s = i.context, u = n.contextType; - "object" == typeof u && null !== u ? u = fd(u) : u = Sc(t, u = Cc(n) ? kc : xc.current); + "object" == typeof u && null !== u ? u = ad(u) : u = mc(t, u = vc(n) ? hc : pc.current); var c = n.getDerivedStateFromProps, d = "function" == typeof c || "function" == typeof i.getSnapshotBeforeUpdate; - d || "function" != typeof i.UNSAFE_componentWillReceiveProps && "function" != typeof i.componentWillReceiveProps || (l !== r || s !== u) && Pd(t, i, r, u), hd = !1; + d || "function" != typeof i.UNSAFE_componentWillReceiveProps && "function" != typeof i.componentWillReceiveProps || (l !== r || s !== u) && yd(t, i, r, u), id = !1; var p = t.memoizedState; - i.state = p, xd(t, r, i, o), s = t.memoizedState, l !== r || p !== s || wc.current || hd ? ("function" == typeof c && (Sd(t, n, c, r), s = t.memoizedState), (l = hd || Ed(t, n, l, r, p, s, u)) ? (d || "function" != typeof i.UNSAFE_componentWillMount && "function" != typeof i.componentWillMount || ("function" == typeof i.componentWillMount && i.componentWillMount(), "function" == typeof i.UNSAFE_componentWillMount && i.UNSAFE_componentWillMount()), "function" == typeof i.componentDidMount && (t.flags |= 4)) : ("function" == typeof i.componentDidMount && (t.flags |= 4), t.memoizedProps = r, t.memoizedState = s), i.props = r, i.state = s, i.context = u, r = l) : ("function" == typeof i.componentDidMount && (t.flags |= 4), r = !1); + i.state = p, pd(t, r, i, o), s = t.memoizedState, l !== r || p !== s || fc.current || id ? ("function" == typeof c && (md(t, n, c, r), s = t.memoizedState), (l = id || gd(t, n, l, r, p, s, u)) ? (d || "function" != typeof i.UNSAFE_componentWillMount && "function" != typeof i.componentWillMount || ("function" == typeof i.componentWillMount && i.componentWillMount(), "function" == typeof i.UNSAFE_componentWillMount && i.UNSAFE_componentWillMount()), "function" == typeof i.componentDidMount && (t.flags |= 4)) : ("function" == typeof i.componentDidMount && (t.flags |= 4), t.memoizedProps = r, t.memoizedState = s), i.props = r, i.state = s, i.context = u, r = l) : ("function" == typeof i.componentDidMount && (t.flags |= 4), r = !1); } else { - i = t.stateNode, vd(e, t), l = t.memoizedProps, u = t.type === t.elementType ? l : od(t.type, l), i.props = u, d = t.pendingProps, p = i.context, "object" == typeof(s = n.contextType) && null !== s ? s = fd(s) : s = Sc(t, s = Cc(n) ? kc : xc.current); + i = t.stateNode, sd(e, t), l = t.memoizedProps, u = t.type === t.elementType ? l : Qc(t.type, l), i.props = u, d = t.pendingProps, p = i.context, "object" == typeof(s = n.contextType) && null !== s ? s = ad(s) : s = mc(t, s = vc(n) ? hc : pc.current); var f = n.getDerivedStateFromProps; - (c = "function" == typeof f || "function" == typeof i.getSnapshotBeforeUpdate) || "function" != typeof i.UNSAFE_componentWillReceiveProps && "function" != typeof i.componentWillReceiveProps || (l !== d || p !== s) && Pd(t, i, r, s), hd = !1, p = t.memoizedState, i.state = p, xd(t, r, i, o); + (c = "function" == typeof f || "function" == typeof i.getSnapshotBeforeUpdate) || "function" != typeof i.UNSAFE_componentWillReceiveProps && "function" != typeof i.componentWillReceiveProps || (l !== d || p !== s) && yd(t, i, r, s), id = !1, p = t.memoizedState, i.state = p, pd(t, r, i, o); var h = t.memoizedState; - l !== d || p !== h || wc.current || hd ? ("function" == typeof f && (Sd(t, n, f, r), h = t.memoizedState), (u = hd || Ed(t, n, u, r, p, h, s)) ? (c || "function" != typeof i.UNSAFE_componentWillUpdate && "function" != typeof i.componentWillUpdate || ("function" == typeof i.componentWillUpdate && i.componentWillUpdate(r, h, s), "function" == typeof i.UNSAFE_componentWillUpdate && i.UNSAFE_componentWillUpdate(r, h, s)), "function" == typeof i.componentDidUpdate && (t.flags |= 4), "function" == typeof i.getSnapshotBeforeUpdate && (t.flags |= 256)) : ("function" != typeof i.componentDidUpdate || l === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), "function" != typeof i.getSnapshotBeforeUpdate || l === e.memoizedProps && p === e.memoizedState || (t.flags |= 256), t.memoizedProps = r, t.memoizedState = h), i.props = r, i.state = h, i.context = s, r = u) : ("function" != typeof i.componentDidUpdate || l === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), "function" != typeof i.getSnapshotBeforeUpdate || l === e.memoizedProps && p === e.memoizedState || (t.flags |= 256), r = !1); + l !== d || p !== h || fc.current || id ? ("function" == typeof f && (md(t, n, f, r), h = t.memoizedState), (u = id || gd(t, n, u, r, p, h, s)) ? (c || "function" != typeof i.UNSAFE_componentWillUpdate && "function" != typeof i.componentWillUpdate || ("function" == typeof i.componentWillUpdate && i.componentWillUpdate(r, h, s), "function" == typeof i.UNSAFE_componentWillUpdate && i.UNSAFE_componentWillUpdate(r, h, s)), "function" == typeof i.componentDidUpdate && (t.flags |= 4), "function" == typeof i.getSnapshotBeforeUpdate && (t.flags |= 256)) : ("function" != typeof i.componentDidUpdate || l === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), "function" != typeof i.getSnapshotBeforeUpdate || l === e.memoizedProps && p === e.memoizedState || (t.flags |= 256), t.memoizedProps = r, t.memoizedState = h), i.props = r, i.state = h, i.context = s, r = u) : ("function" != typeof i.componentDidUpdate || l === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), "function" != typeof i.getSnapshotBeforeUpdate || l === e.memoizedProps && p === e.memoizedState || (t.flags |= 256), r = !1); } - return Zp(e, t, n, r, a, o) + return Hp(e, t, n, r, a, o) } -function Zp(e, t, n, r, o, a) { - Yp(e, t); +function Hp(e, t, n, r, o, a) { + Dp(e, t); var i = 0 != (64 & t.flags); - if (!r && !i) return o && Oc(t, n, !1), pf(e, t, a); - r = t.stateNode, Wp.current = t; + if (!r && !i) return o && wc(t, n, !1), rf(e, t, a); + r = t.stateNode, _p.current = t; var l = i && "function" != typeof n.getDerivedStateFromError ? null : r.render(); - return t.flags |= 1, null !== e && i ? (t.child = Nd(t, e.child, null, a), t.child = Nd(t, null, l, a)) : Hp(e, t, l, a), t.memoizedState = r.state, o && Oc(t, n, !0), t.child + return t.flags |= 1, null !== e && i ? (t.child = Ed(t, e.child, null, a), t.child = Ed(t, null, l, a)) : Ip(e, t, l, a), t.memoizedState = r.state, o && wc(t, n, !0), t.child } -function Jp(e) { +function Vp(e) { var t = e.stateNode; - t.pendingContext ? Rc(0, t.pendingContext, t.pendingContext !== t.context) : t.context && Rc(0, t.context, !1), Bd(e, t.containerInfo); + t.pendingContext ? bc(0, t.pendingContext, t.pendingContext !== t.context) : t.context && bc(0, t.context, !1), zd(e, t.containerInfo); } -var ef, tf, nf, rf = { +var qp, Kp, Xp, Yp = { dehydrated: null, retryLane: 0 }; -function of (e, t, n) { +function Qp(e, t, n) { var r, o = t.pendingProps, - a = Hd.current, + a = Id.current, i = !1; - return (r = 0 != (64 & t.flags)) || (r = (null === e || null !== e.memoizedState) && 0 != (2 & a)), r ? (i = !0, t.flags &= -65) : null !== e && null === e.memoizedState || void 0 === o.fallback || !0 === o.unstable_avoidThisFallback || (a |= 1), bc(Hd, 1 & a), null === e ? (void 0 !== o.fallback && Gd(t), e = o.children, a = o.fallback, i ? (e = af(t, e, a, n), t.child.memoizedState = { + return (r = 0 != (64 & t.flags)) || (r = (null === e || null !== e.memoizedState) && 0 != (2 & a)), r ? (i = !0, t.flags &= -65) : null !== e && null === e.memoizedState || void 0 === o.fallback || !0 === o.unstable_avoidThisFallback || (a |= 1), cc(Id, 1 & a), null === e ? (void 0 !== o.fallback && Ud(t), e = o.children, a = o.fallback, i ? (e = Gp(t, e, a, n), t.child.memoizedState = { baseLanes: n - }, t.memoizedState = rf, e) : "number" == typeof o.unstable_expectedLoadTime ? (e = af(t, e, a, n), t.child.memoizedState = { + }, t.memoizedState = Yp, e) : "number" == typeof o.unstable_expectedLoadTime ? (e = Gp(t, e, a, n), t.child.memoizedState = { baseLanes: n - }, t.memoizedState = rf, t.lanes = 33554432, e) : ((n = nm({ + }, t.memoizedState = Yp, t.lanes = 33554432, e) : ((n = Xh({ mode: "visible", children: e - }, t.mode, n, null)).return = t, t.child = n)) : (e.memoizedState, i ? (o = sf(e, t, o.children, o.fallback, n), i = t.child, a = e.child.memoizedState, i.memoizedState = null === a ? { + }, t.mode, n, null)).return = t, t.child = n)) : (e.memoizedState, i ? (o = Jp(e, t, o.children, o.fallback, n), i = t.child, a = e.child.memoizedState, i.memoizedState = null === a ? { baseLanes: n } : { baseLanes: a.baseLanes | n - }, i.childLanes = e.childLanes & ~n, t.memoizedState = rf, o) : (n = lf(e, t, o.children, n), t.memoizedState = null, n)) + }, i.childLanes = e.childLanes & ~n, t.memoizedState = Yp, o) : (n = Zp(e, t, o.children, n), t.memoizedState = null, n)) } -function af(e, t, n, r) { +function Gp(e, t, n, r) { var o = e.mode, a = e.child; return t = { mode: "hidden", children: t - }, 0 == (2 & o) && null !== a ? (a.childLanes = 0, a.pendingProps = t) : a = nm(t, o, 0, null), n = tm(n, o, r, null), a.return = e, n.return = e, a.sibling = n, e.child = a, n + }, 0 == (2 & o) && null !== a ? (a.childLanes = 0, a.pendingProps = t) : a = Xh(t, o, 0, null), n = Kh(n, o, r, null), a.return = e, n.return = e, a.sibling = n, e.child = a, n } -function lf(e, t, n, r) { +function Zp(e, t, n, r) { var o = e.child; - return e = o.sibling, n = Jh(o, { + return e = o.sibling, n = Vh(o, { mode: "visible", children: n }), 0 == (2 & t.mode) && (n.lanes = r), n.return = t, n.sibling = null, null !== e && (e.nextEffect = null, e.flags = 8, t.firstEffect = t.lastEffect = e), t.child = n } -function sf(e, t, n, r, o) { +function Jp(e, t, n, r, o) { var a = t.mode, i = e.child; e = i.sibling; @@ -5963,16 +5896,16 @@ function sf(e, t, n, r, o) { mode: "hidden", children: n }; - return 0 == (2 & a) && t.child !== i ? ((n = t.child).childLanes = 0, n.pendingProps = l, null !== (i = n.lastEffect) ? (t.firstEffect = n.firstEffect, t.lastEffect = i, i.nextEffect = null) : t.firstEffect = t.lastEffect = null) : n = Jh(i, l), null !== e ? r = Jh(e, r) : (r = tm(r, a, o, null)).flags |= 2, r.return = t, n.return = t, n.sibling = r, t.child = n, r + return 0 == (2 & a) && t.child !== i ? ((n = t.child).childLanes = 0, n.pendingProps = l, null !== (i = n.lastEffect) ? (t.firstEffect = n.firstEffect, t.lastEffect = i, i.nextEffect = null) : t.firstEffect = t.lastEffect = null) : n = Vh(i, l), null !== e ? r = Vh(e, r) : (r = Kh(r, a, o, null)).flags |= 2, r.return = t, n.return = t, n.sibling = r, t.child = n, r } -function uf(e, t) { +function ef(e, t) { e.lanes |= t; var n = e.alternate; - null !== n && (n.lanes |= t), dd(e.return, t); + null !== n && (n.lanes |= t), rd(e.return, t); } -function cf(e, t, n, r, o, a) { +function tf(e, t, n, r, o, a) { var i = e.memoizedState; null === i ? e.memoizedState = { isBackwards: t, @@ -5985,15 +5918,15 @@ function cf(e, t, n, r, o, a) { } : (i.isBackwards = t, i.rendering = null, i.renderingStartTime = 0, i.last = r, i.tail = n, i.tailMode = o, i.lastEffect = a); } -function df(e, t, n) { +function nf(e, t, n) { var r = t.pendingProps, o = r.revealOrder, a = r.tail; - if (Hp(e, t, r.children, n), 0 != (2 & (r = Hd.current))) r = 1 & r | 2, t.flags |= 64; + if (Ip(e, t, r.children, n), 0 != (2 & (r = Id.current))) r = 1 & r | 2, t.flags |= 64; else { if (null !== e && 0 != (64 & e.flags)) e: for (e = t.child; null !== e;) { - if (13 === e.tag) null !== e.memoizedState && uf(e, n); - else if (19 === e.tag) uf(e, n); + if (13 === e.tag) null !== e.memoizedState && ef(e, n); + else if (19 === e.tag) ef(e, n); else if (null !== e.child) { e.child.return = e, e = e.child; continue @@ -6007,24 +5940,24 @@ function df(e, t, n) { } r &= 1; } - if (bc(Hd, r), 0 == (2 & t.mode)) t.memoizedState = null; + if (cc(Id, r), 0 == (2 & t.mode)) t.memoizedState = null; else switch (o) { case "forwards": - for (n = t.child, o = null; null !== n;) null !== (e = n.alternate) && null === Vd(e) && (o = n), n = n.sibling; - null === (n = o) ? (o = t.child, t.child = null) : (o = n.sibling, n.sibling = null), cf(t, !1, o, n, a, t.lastEffect); + for (n = t.child, o = null; null !== n;) null !== (e = n.alternate) && null === Fd(e) && (o = n), n = n.sibling; + null === (n = o) ? (o = t.child, t.child = null) : (o = n.sibling, n.sibling = null), tf(t, !1, o, n, a, t.lastEffect); break; case "backwards": for (n = null, o = t.child, t.child = null; null !== o;) { - if (null !== (e = o.alternate) && null === Vd(e)) { + if (null !== (e = o.alternate) && null === Fd(e)) { t.child = o; break } e = o.sibling, o.sibling = n, n = o, o = e; } - cf(t, !0, n, null, a, t.lastEffect); + tf(t, !0, n, null, a, t.lastEffect); break; case "together": - cf(t, !1, null, null, void 0, t.lastEffect); + tf(t, !1, null, null, void 0, t.lastEffect); break; default: t.memoizedState = null; @@ -6032,11 +5965,11 @@ function df(e, t, n) { return t.child } -function pf(e, t, n) { - if (null !== e && (t.dependencies = e.dependencies), Xf |= t.lanes, 0 != (n & t.childLanes)) { - if (null !== e && t.child !== e.child) throw Error(ha(153)); +function rf(e, t, n) { + if (null !== e && (t.dependencies = e.dependencies), Bf |= t.lanes, 0 != (n & t.childLanes)) { + if (null !== e && t.child !== e.child) throw Error(ia(153)); if (null !== t.child) { - for (n = Jh(e = t.child, e.pendingProps), t.child = n, n.return = t; null !== e.sibling;) e = e.sibling, (n = n.sibling = Jh(e, e.pendingProps)).return = t; + for (n = Vh(e = t.child, e.pendingProps), t.child = n, n.return = t; null !== e.sibling;) e = e.sibling, (n = n.sibling = Vh(e, e.pendingProps)).return = t; n.sibling = null; } return t.child @@ -6044,8 +5977,8 @@ function pf(e, t, n) { return null } -function ff(e, t) { - if (!Xd) switch (e.tailMode) { +function of (e, t) { + if (!Bd) switch (e.tailMode) { case "hidden": t = e.tail; for (var n = null; null !== t;) null !== t.alternate && (n = t), t = t.sibling; @@ -6058,7 +5991,7 @@ function ff(e, t) { } } -function hf(e, t, n) { +function af(e, t, n) { var r = t.pendingProps; switch (t.tag) { case 2: @@ -6074,224 +6007,224 @@ function hf(e, t, n) { return null; case 1: case 17: - return Cc(t.type) && Ec(), null; + return vc(t.type) && gc(), null; case 3: - return Dd(), gc(wc), gc(xc), np(), (r = t.stateNode).pendingContext && (r.context = r.pendingContext, r.pendingContext = null), null !== e && null !== e.child || (Jd(t) ? t.flags |= 4 : r.hydrate || (t.flags |= 256)), null; + return Nd(), uc(fc), uc(pc), Xd(), (r = t.stateNode).pendingContext && (r.context = r.pendingContext, r.pendingContext = null), null !== e && null !== e.child || (Vd(t) ? t.flags |= 4 : r.hydrate || (t.flags |= 256)), null; case 5: - Ud(t); - var o = Ad($d.current); - if (n = t.type, null !== e && null != t.stateNode) tf(e, t, n, r), e.ref !== t.ref && (t.flags |= 128); + Ld(t); + var o = jd(Td.current); + if (n = t.type, null !== e && null != t.stateNode) Kp(e, t, n, r), e.ref !== t.ref && (t.flags |= 128); else { if (!r) { - if (null === t.stateNode) throw Error(ha(166)); + if (null === t.stateNode) throw Error(ia(166)); return null } - if (e = Ad(Id.current), Jd(t)) { + if (e = jd(Md.current), Vd(t)) { r = t.stateNode, n = t.type; var a = t.memoizedProps; - switch (r[ac] = t, r[ic] = a, n) { + switch (r[Gu] = t, r[Zu] = a, n) { case "dialog": - Fu("cancel", r), Fu("close", r); + Ou("cancel", r), Ou("close", r); break; case "iframe": case "object": case "embed": - Fu("load", r); + Ou("load", r); break; case "video": case "audio": - for (e = 0; e < Nu.length; e++) Fu(Nu[e], r); + for (e = 0; e < Eu.length; e++) Ou(Eu[e], r); break; case "source": - Fu("error", r); + Ou("error", r); break; case "img": case "image": case "link": - Fu("error", r), Fu("load", r); + Ou("error", r), Ou("load", r); break; case "details": - Fu("toggle", r); + Ou("toggle", r); break; case "input": - si(r, a), Fu("invalid", r); + ei(r, a), Ou("invalid", r); break; case "select": r._wrapperState = { wasMultiple: !!a.multiple - }, Fu("invalid", r); + }, Ou("invalid", r); break; case "textarea": - vi(r, a), Fu("invalid", r); + si(r, a), Ou("invalid", r); } - for (var i in zi(n, a), e = null, a) a.hasOwnProperty(i) && (o = a[i], "children" === i ? "string" == typeof o ? r.textContent !== o && (e = ["children", o]) : "number" == typeof o && r.textContent !== "" + o && (e = ["children", "" + o]) : va.hasOwnProperty(i) && null != o && "onScroll" === i && Fu("scroll", r)); + for (var i in Ci(n, a), e = null, a) a.hasOwnProperty(i) && (o = a[i], "children" === i ? "string" == typeof o ? r.textContent !== o && (e = ["children", o]) : "number" == typeof o && r.textContent !== "" + o && (e = ["children", "" + o]) : sa.hasOwnProperty(i) && null != o && "onScroll" === i && Ou("scroll", r)); switch (n) { case "input": - oi(r), di(r, a, !0); + Qa(r), ri(r, a, !0); break; case "textarea": - oi(r), bi(r); + Qa(r), ci(r); break; case "select": case "option": break; default: - "function" == typeof a.onClick && (r.onclick = Ku); + "function" == typeof a.onClick && (r.onclick = Au); } r = e, t.updateQueue = r, null !== r && (t.flags |= 4); } else { - switch (i = 9 === o.nodeType ? o : o.ownerDocument, e === yi && (e = wi(n)), e === yi ? "script" === n ? ((e = i.createElement("div")).innerHTML = "