From 07f303321d545ff9b859df69234868bbb5301bed Mon Sep 17 00:00:00 2001 From: hykilpikonna <22280294+hykilpikonna@users.noreply.github.com> Date: Mon, 27 Oct 2025 11:03:14 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20hykilpik?= =?UTF-8?q?onna/corner@495e106e4cc86a06cb3cb1334879f5492a8490ab=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/{About-CfVt_oPj.js => About-2uilXuKS.js} | 2 +- assets/{Blog-BX1cKO1m.js => Blog-bVOlGgKw.js} | 2 +- assets/{Friends-BlIjppTA.js => Friends-COTbMEUJ.js} | 2 +- assets/{Life-BVlDglso.js => Life-DgbMfal1.js} | 6 +++--- assets/{Loading-CAj8gvPR.js => Loading-DLeNagsH.js} | 2 +- ...n-78416ba3-BooSv_9a.js => Location-78416ba3-D_B0GOUh.js} | 2 +- assets/{Menu-BFbdEqRN.js => Menu-U0gohnQH.js} | 2 +- assets/{Others-Bz7iziut.js => Others-DXBcJtg0.js} | 2 +- assets/Photo-Bh5VFsqt.css | 1 - assets/Photo-C3B0RSVd.js | 1 - assets/Photo-Ctr50G8y.js | 1 + assets/Photo-Dy5ieP_G.css | 1 + ...{Poll-aeb298b2-CmAHaRvX.js => Poll-aeb298b2-CHoU9q7j.js} | 2 +- assets/{Projects-BWtvtQ3K.js => Projects-DxScKbaw.js} | 2 +- ...28c0f9f-BuPfpDYc.js => VideoPlayer-328c0f9f-DQl9Ox4H.js} | 2 +- assets/{index-B2-0DWq1.js => index-CSLMAwfP.js} | 4 ++-- assets/{utils-Bxugc6wL.js => utils-9s8KIpJA.js} | 2 +- index.html | 2 +- 18 files changed, 19 insertions(+), 19 deletions(-) rename assets/{About-CfVt_oPj.js => About-2uilXuKS.js} (99%) rename assets/{Blog-BX1cKO1m.js => Blog-bVOlGgKw.js} (99%) rename assets/{Friends-BlIjppTA.js => Friends-COTbMEUJ.js} (96%) rename assets/{Life-BVlDglso.js => Life-DgbMfal1.js} (99%) rename assets/{Loading-CAj8gvPR.js => Loading-DLeNagsH.js} (99%) rename assets/{Location-78416ba3-BooSv_9a.js => Location-78416ba3-D_B0GOUh.js} (99%) rename assets/{Menu-BFbdEqRN.js => Menu-U0gohnQH.js} (97%) rename assets/{Others-Bz7iziut.js => Others-DXBcJtg0.js} (92%) delete mode 100644 assets/Photo-Bh5VFsqt.css delete mode 100644 assets/Photo-C3B0RSVd.js create mode 100644 assets/Photo-Ctr50G8y.js create mode 100644 assets/Photo-Dy5ieP_G.css rename assets/{Poll-aeb298b2-CmAHaRvX.js => Poll-aeb298b2-CHoU9q7j.js} (92%) rename assets/{Projects-BWtvtQ3K.js => Projects-DxScKbaw.js} (66%) rename assets/{VideoPlayer-328c0f9f-BuPfpDYc.js => VideoPlayer-328c0f9f-DQl9Ox4H.js} (99%) rename assets/{index-B2-0DWq1.js => index-CSLMAwfP.js} (99%) rename assets/{utils-Bxugc6wL.js => utils-9s8KIpJA.js} (69%) diff --git a/assets/About-CfVt_oPj.js b/assets/About-2uilXuKS.js similarity index 99% rename from assets/About-CfVt_oPj.js rename to assets/About-2uilXuKS.js index a12d5a3..ca2a90a 100644 --- a/assets/About-CfVt_oPj.js +++ b/assets/About-2uilXuKS.js @@ -1,4 +1,4 @@ -import{d as decorator,t as toNative,B as Base,C as ComponentBase,_ as _export_sfc,c as createElementBlock,o as openBlock,F as Fragment,r as renderList,a as createBaseVNode,b as toDisplayString,$,e as resolveComponent,f as createVNode,g as createCommentVNode,h as hosts,i as createBlock,w as withCtx}from"./index-B2-0DWq1.js";import{g as getDefaultExportFromCjs,m as marked,L as Loading}from"./Loading-CAj8gvPR.js";import{c as capitalize}from"./utils-Bxugc6wL.js";const emojiRegex=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,re={command://g,hashes:/^#+/g};RegExp.prototype.find=function(e){const t=this.exec(e);return this.lastIndex=0,t};function parseExtensions(raw){let lines=raw.replace(`\r +import{d as decorator,t as toNative,B as Base,C as ComponentBase,_ as _export_sfc,c as createElementBlock,o as openBlock,F as Fragment,r as renderList,a as createBaseVNode,b as toDisplayString,$,e as resolveComponent,f as createVNode,g as createCommentVNode,h as hosts,i as createBlock,w as withCtx}from"./index-CSLMAwfP.js";import{g as getDefaultExportFromCjs,m as marked,L as Loading}from"./Loading-DLeNagsH.js";import{c as capitalize}from"./utils-9s8KIpJA.js";const emojiRegex=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,re={command://g,hashes:/^#+/g};RegExp.prototype.find=function(e){const t=this.exec(e);return this.lastIndex=0,t};function parseExtensions(raw){let lines=raw.replace(`\r `,` `).split(` `),i=0;function findSectionEnd(){const e=re.hashes.find(lines[i]);if(!e)return-1;const t=e[0].length;let a=i+1;for(;a`,lines.splice(e,0,` diff --git a/assets/Blog-BX1cKO1m.js b/assets/Blog-bVOlGgKw.js similarity index 99% rename from assets/Blog-BX1cKO1m.js rename to assets/Blog-bVOlGgKw.js index f5e3e76..53416ee 100644 --- a/assets/Blog-BX1cKO1m.js +++ b/assets/Blog-bVOlGgKw.js @@ -1,4 +1,4 @@ -import{A as As,E as Vs,$ as Cs,G as $i,H as It,h as Gs,e as zi,c as F,o as N,n as Zi,g as ae,a as j,b as de,D as rt,F as Ut,r as Ht,i as at,T as Ls,w as Is,l as Us,f as Bi,I as Hs,_ as js,s as qi,J as Ji}from"./index-B2-0DWq1.js";import{g as Qi,m as Xi,L as Ki}from"./Loading-CAj8gvPR.js";function eo(S){throw new Error('Could not dynamically require "'+S+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var st={exports:{}},to=st.exports,Es;function so(){return Es||(Es=1,(function(S,T){(function(W,l){S.exports=l()})(to,(function(){var W;function l(){return W.apply(null,arguments)}function _e(e){W=e}function x(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function D(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function H(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(f(e,t))return!1;return!0}function Y(e){return e===void 0}function E(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function he(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function ne(e,t){var s=[],r,a=e.length;for(r=0;r>>0,r;for(r=0;r0)for(s=0;s>>0,r;for(r=0;r0)for(s=0;s=0;return(n?s?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var ft=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Le=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ct={},ye={};function h(e,t,s,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(ye[e]=a),t&&(ye[t[0]]=function(){return Z(a.apply(this,arguments),t[1],t[2])}),s&&(ye[s]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function qs(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Js(e){var t=e.match(ft),s,r;for(s=0,r=t.length;s=0&&Le.test(e);)e=e.replace(Le,r),Le.lastIndex=0,s-=1;return e}var Qs={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Xs(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(ft).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Ks="Invalid date";function er(){return this._invalidDate}var tr="%d",sr=/\d{1,2}/;function rr(e){return this._ordinal.replace("%d",e)}var ar={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function nr(e,t,s,r){var a=this._relativeTime[s];return z(a)?a(e,t,s,r):a.replace(/%d/i,e)}function ir(e,t){var s=this._relativeTime[e>0?"future":"past"];return z(s)?s(t):s.replace(/%s/i,t)}var $t={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function I(e){return typeof e=="string"?$t[e]||$t[e.toLowerCase()]:void 0}function mt(e){var t={},s,r;for(r in e)f(e,r)&&(s=I(r),s&&(t[s]=e[r]));return t}var or={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function lr(e){var t=[],s;for(s in e)f(e,s)&&t.push({unit:s,priority:or[s]});return t.sort(function(r,a){return r.priority-a.priority}),t}var zt=/\d/,C=/\d\d/,Zt=/\d{3}/,_t=/\d{4}/,Ue=/[+-]?\d{6}/,v=/\d\d?/,Bt=/\d\d\d\d?/,qt=/\d\d\d\d\d\d?/,He=/\d{1,3}/,yt=/\d{1,4}/,Ee=/[+-]?\d{1,6}/,ge=/\d+/,Ae=/[+-]?\d+/,ur=/Z|[+-]\d\d:?\d\d/gi,Ve=/Z|[+-]\d\d(?::?\d\d)?/gi,dr=/[+-]?\d+(\.\d{1,3})?/,Oe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,we=/^[1-9]\d?/,gt=/^([1-9]\d|\d)/,Ge;Ge={};function d(e,t,s){Ge[e]=z(t)?t:function(r,a){return r&&s?s:t}}function hr(e,t){return f(Ge,e)?Ge[e](t._strict,t._locale):new RegExp(fr(e))}function fr(e){return q(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,a,n){return s||r||a||n}))}function q(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function U(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=U(t)),s}var wt={};function k(e,t){var s,r=t,a;for(typeof e=="string"&&(e=[e]),E(t)&&(r=function(n,i){i[t]=_(n)}),a=e.length,s=0;s68?1900:2e3)};var Jt=ke("FullYear",!0);function yr(){return je(this.year())}function ke(e,t){return function(s){return s!=null?(Qt(this,e,s),l.updateOffset(this,t),this):xe(this,e)}}function xe(e,t){if(!e.isValid())return NaN;var s=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function Qt(e,t,s){var r,a,n,i,u;if(!(!e.isValid()||isNaN(s))){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(a?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(a?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(a?r.setUTCHours(s):r.setHours(s));case"Date":return void(a?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}n=s,i=e.month(),u=e.date(),u=u===29&&i===1&&!je(n)?28:u,a?r.setUTCFullYear(n,i,u):r.setFullYear(n,i,u)}}function gr(e){return e=I(e),z(this[e])?this[e]():this}function wr(e,t){if(typeof e=="object"){e=mt(e);var s=lr(e),r,a=s.length;for(r=0;r=0?(u=new Date(e+400,t,s,r,a,n,i),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,s,r,a,n,i),u}function Ne(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function $e(e,t,s){var r=7+t-s,a=(7+Ne(e,0,r).getUTCDay()-t)%7;return-a+r-1}function rs(e,t,s,r,a){var n=(7+s-r)%7,i=$e(e,r,a),u=1+7*(t-1)+n+i,c,y;return u<=0?(c=e-1,y=be(c)+u):u>be(e)?(c=e+1,y=u-be(e)):(c=e,y=u),{year:c,dayOfYear:y}}function Pe(e,t,s){var r=$e(e.year(),t,s),a=Math.floor((e.dayOfYear()-r-1)/7)+1,n,i;return a<1?(i=e.year()-1,n=a+X(i,t,s)):a>X(e.year(),t,s)?(n=a-X(e.year(),t,s),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function X(e,t,s){var r=$e(e,t,s),a=$e(e+1,t,s);return(be(e)-r+a)/7}h("w",["ww",2],"wo","week"),h("W",["WW",2],"Wo","isoWeek"),d("w",v,we),d("ww",v,C),d("W",v,we),d("WW",v,C),Te(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=_(e)});function Pr(e){return Pe(e,this._week.dow,this._week.doy).week}var Wr={dow:0,doy:6};function Rr(){return this._week.dow}function Fr(){return this._week.doy}function Cr(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Lr(e){var t=Pe(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}h("d",0,"do","day"),h("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),h("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),h("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),h("e",0,0,"weekday"),h("E",0,0,"isoWeekday"),d("d",v),d("e",v),d("E",v),d("dd",function(e,t){return t.weekdaysMinRegex(e)}),d("ddd",function(e,t){return t.weekdaysShortRegex(e)}),d("dddd",function(e,t){return t.weekdaysRegex(e)}),Te(["dd","ddd","dddd"],function(e,t,s,r){var a=s._locale.weekdaysParse(e,r,s._strict);a!=null?t.d=a:m(s).invalidWeekday=e}),Te(["d","e","E"],function(e,t,s,r){t[r]=_(e)});function Ir(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Ur(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function vt(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Hr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),as="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Er="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ar=Oe,Vr=Oe,Gr=Oe;function jr(e,t){var s=x(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?vt(s,this._week.dow):e?s[e.day()]:s}function $r(e){return e===!0?vt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function zr(e){return e===!0?vt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Zr(e,t,s){var r,a,n,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)n=$([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(n,"").toLocaleLowerCase();return s?t==="dddd"?(a=O.call(this._weekdaysParse,i),a!==-1?a:null):t==="ddd"?(a=O.call(this._shortWeekdaysParse,i),a!==-1?a:null):(a=O.call(this._minWeekdaysParse,i),a!==-1?a:null):t==="dddd"?(a=O.call(this._weekdaysParse,i),a!==-1||(a=O.call(this._shortWeekdaysParse,i),a!==-1)?a:(a=O.call(this._minWeekdaysParse,i),a!==-1?a:null)):t==="ddd"?(a=O.call(this._shortWeekdaysParse,i),a!==-1||(a=O.call(this._weekdaysParse,i),a!==-1)?a:(a=O.call(this._minWeekdaysParse,i),a!==-1?a:null)):(a=O.call(this._minWeekdaysParse,i),a!==-1||(a=O.call(this._weekdaysParse,i),a!==-1)?a:(a=O.call(this._shortWeekdaysParse,i),a!==-1?a:null))}function Br(e,t,s){var r,a,n;if(this._weekdaysParseExact)return Zr.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=$([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function qr(e){if(!this.isValid())return e!=null?this:NaN;var t=xe(this,"Day");return e!=null?(e=Ir(e,this.localeData()),this.add(e-t,"d")):t}function Jr(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Qr(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Ur(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Xr(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Mt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Ar),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Kr(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Mt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Vr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ea(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Mt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Gr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Mt(){function e(R,re){return re.length-R.length}var t=[],s=[],r=[],a=[],n,i,u,c,y;for(n=0;n<7;n++)i=$([2e3,1]).day(n),u=q(this.weekdaysMin(i,"")),c=q(this.weekdaysShort(i,"")),y=q(this.weekdays(i,"")),t.push(u),s.push(c),r.push(y),a.push(u),a.push(c),a.push(y);t.sort(e),s.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function St(){return this.hours()%12||12}function ta(){return this.hours()||24}h("H",["HH",2],0,"hour"),h("h",["hh",2],0,St),h("k",["kk",2],0,ta),h("hmm",0,0,function(){return""+St.apply(this)+Z(this.minutes(),2)}),h("hmmss",0,0,function(){return""+St.apply(this)+Z(this.minutes(),2)+Z(this.seconds(),2)}),h("Hmm",0,0,function(){return""+this.hours()+Z(this.minutes(),2)}),h("Hmmss",0,0,function(){return""+this.hours()+Z(this.minutes(),2)+Z(this.seconds(),2)});function ns(e,t){h(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ns("a",!0),ns("A",!1);function is(e,t){return t._meridiemParse}d("a",is),d("A",is),d("H",v,gt),d("h",v,we),d("k",v,we),d("HH",v,C),d("hh",v,C),d("kk",v,C),d("hmm",Bt),d("hmmss",qt),d("Hmm",Bt),d("Hmmss",qt),k(["H","HH"],b),k(["k","kk"],function(e,t,s){var r=_(e);t[b]=r===24?0:r}),k(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e}),k(["h","hh"],function(e,t,s){t[b]=_(e),m(s).bigHour=!0}),k("hmm",function(e,t,s){var r=e.length-2;t[b]=_(e.substr(0,r)),t[V]=_(e.substr(r)),m(s).bigHour=!0}),k("hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[b]=_(e.substr(0,r)),t[V]=_(e.substr(r,2)),t[Q]=_(e.substr(a)),m(s).bigHour=!0}),k("Hmm",function(e,t,s){var r=e.length-2;t[b]=_(e.substr(0,r)),t[V]=_(e.substr(r))}),k("Hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[b]=_(e.substr(0,r)),t[V]=_(e.substr(r,2)),t[Q]=_(e.substr(a))});function sa(e){return(e+"").toLowerCase().charAt(0)==="p"}var ra=/[ap]\.?m?\.?/i,aa=ke("Hours",!0);function na(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var os={calendar:Zs,longDateFormat:Qs,invalidDate:Ks,ordinal:tr,dayOfMonthOrdinalParse:sr,relativeTime:ar,months:vr,monthsShort:Xt,week:Wr,weekdays:Hr,weekdaysMin:Er,weekdaysShort:as,meridiemParse:ra},p={},We={},Re;function ia(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s0;){if(a=ze(n.slice(0,s).join("-")),a)return a;if(r&&r.length>=s&&ia(n,r)>=s-1)break;s--}t++}return Re}function la(e){return!!(e&&e.match("^[^/\\\\]*$"))}function ze(e){var t=null,s;if(p[e]===void 0&&S&&S.exports&&la(e))try{t=Re._abbr,s=eo,s("./locale/"+e),oe(t)}catch{p[e]=null}return p[e]}function oe(e,t){var s;return e&&(Y(t)?s=K(e):s=pt(e,t),s?Re=s:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Re._abbr}function pt(e,t){if(t!==null){var s,r=os;if(t.abbr=e,p[e]!=null)Gt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=p[e]._config;else if(t.parentLocale!=null)if(p[t.parentLocale]!=null)r=p[t.parentLocale]._config;else if(s=ze(t.parentLocale),s!=null)r=s._config;else return We[t.parentLocale]||(We[t.parentLocale]=[]),We[t.parentLocale].push({name:e,config:t}),null;return p[e]=new dt(ut(r,t)),We[e]&&We[e].forEach(function(a){pt(a.name,a.config)}),oe(e),p[e]}else return delete p[e],null}function ua(e,t){if(t!=null){var s,r,a=os;p[e]!=null&&p[e].parentLocale!=null?p[e].set(ut(p[e]._config,t)):(r=ze(e),r!=null&&(a=r._config),t=ut(a,t),r==null&&(t.abbr=e),s=new dt(t),s.parentLocale=p[e],p[e]=s),oe(e)}else p[e]!=null&&(p[e].parentLocale!=null?(p[e]=p[e].parentLocale,e===oe()&&oe(e)):p[e]!=null&&delete p[e]);return p[e]}function K(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Re;if(!x(e)){if(t=ze(e),t)return t;e=[e]}return oa(e)}function da(){return ht(p)}function Dt(e){var t,s=e._a;return s&&m(e).overflow===-2&&(t=s[J]<0||s[J]>11?J:s[B]<1||s[B]>kt(s[P],s[J])?B:s[b]<0||s[b]>24||s[b]===24&&(s[V]!==0||s[Q]!==0||s[fe]!==0)?b:s[V]<0||s[V]>59?V:s[Q]<0||s[Q]>59?Q:s[fe]<0||s[fe]>999?fe:-1,m(e)._overflowDayOfYear&&(tB)&&(t=B),m(e)._overflowWeeks&&t===-1&&(t=mr),m(e)._overflowWeekday&&t===-1&&(t=_r),m(e).overflow=t),e}var ha=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fa=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ca=/Z|[+-]\d\d(?::?\d\d)?/,Ze=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Yt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ma=/^\/?Date\((-?\d+)/i,_a=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ya={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function us(e){var t,s,r=e._i,a=ha.exec(r)||fa.exec(r),n,i,u,c,y=Ze.length,R=Yt.length;if(a){for(m(e).iso=!0,t=0,s=y;tbe(i)||e._dayOfYear===0)&&(m(e)._overflowDayOfYear=!0),s=Ne(i,0,e._dayOfYear),e._a[J]=s.getUTCMonth(),e._a[B]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[b]===24&&e._a[V]===0&&e._a[Q]===0&&e._a[fe]===0&&(e._nextDay=!0,e._a[b]=0),e._d=(e._useUTC?Ne:Nr).apply(null,r),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[b]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==n&&(m(e).weekdayMismatch=!0)}}function Da(e){var t,s,r,a,n,i,u,c,y;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,i=4,s=ve(t.GG,e._a[P],Pe(M(),1,4).year),r=ve(t.W,1),a=ve(t.E,1),(a<1||a>7)&&(c=!0)):(n=e._locale._week.dow,i=e._locale._week.doy,y=Pe(M(),n,i),s=ve(t.gg,e._a[P],y.year),r=ve(t.w,y.week),t.d!=null?(a=t.d,(a<0||a>6)&&(c=!0)):t.e!=null?(a=t.e+n,(t.e<0||t.e>6)&&(c=!0)):a=n),r<1||r>X(s,n,i)?m(e)._overflowWeeks=!0:c!=null?m(e)._overflowWeekday=!0:(u=rs(s,r,a,n,i),e._a[P]=u.year,e._dayOfYear=u.dayOfYear)}l.ISO_8601=function(){},l.RFC_2822=function(){};function Tt(e){if(e._f===l.ISO_8601){us(e);return}if(e._f===l.RFC_2822){ds(e);return}e._a=[],m(e).empty=!0;var t=""+e._i,s,r,a,n,i,u=t.length,c=0,y,R;for(a=jt(e._f,e._locale).match(ft)||[],R=a.length,s=0;s0&&m(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),c+=r.length),ye[n]?(r?m(e).empty=!1:m(e).unusedTokens.push(n),cr(n,r,e)):e._strict&&!r&&m(e).unusedTokens.push(n);m(e).charsLeftOver=u-c,t.length>0&&m(e).unusedInput.push(t),e._a[b]<=12&&m(e).bigHour===!0&&e._a[b]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[b]=Ya(e._locale,e._a[b],e._meridiem),y=m(e).era,y!==null&&(e._a[P]=e._locale.erasConvertYear(y,e._a[P])),Ot(e),Dt(e)}function Ya(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Oa(e){var t,s,r,a,n,i,u=!1,c=e._f.length;if(c===0){m(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;athis?this:e:Ce()});function cs(e,t){var s,r;if(t.length===1&&x(t[0])&&(t=t[0]),!t.length)return M();for(s=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Za(){if(!Y(this._isDSTShifted))return this._isDSTShifted;var e={},t;return lt(e,this),e=hs(e),e._a?(t=e._isUTC?$(e._a):M(e._a),this._isDSTShifted=this.isValid()&&Ua(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ba(){return this.isValid()?!this._isUTC:!1}function qa(){return this.isValid()?this._isUTC:!1}function _s(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ja=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Qa=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function G(e,t){var s=e,r=null,a,n,i;return qe(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:E(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=Ja.exec(e))?(a=r[1]==="-"?-1:1,s={y:0,d:_(r[B])*a,h:_(r[b])*a,m:_(r[V])*a,s:_(r[Q])*a,ms:_(bt(r[fe]*1e3))*a}):(r=Qa.exec(e))?(a=r[1]==="-"?-1:1,s={y:ce(r[2],a),M:ce(r[3],a),w:ce(r[4],a),d:ce(r[5],a),h:ce(r[6],a),m:ce(r[7],a),s:ce(r[8],a)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(i=Xa(M(s.from),M(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),n=new Be(s),qe(e)&&f(e,"_locale")&&(n._locale=e._locale),qe(e)&&f(e,"_isValid")&&(n._isValid=e._isValid),n}G.fn=Be.prototype,G.invalid=Ia;function ce(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function ys(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function Xa(e,t){var s;return e.isValid()&&t.isValid()?(t=Nt(t,e),e.isBefore(t)?s=ys(e,t):(s=ys(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function gs(e,t){return function(s,r){var a,n;return r!==null&&!isNaN(+r)&&(Gt(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=s,s=r,r=n),a=G(s,r),ws(this,a,e),this}}function ws(e,t,s,r){var a=t._milliseconds,n=bt(t._days),i=bt(t._months);e.isValid()&&(r=r??!0,i&&es(e,xe(e,"Month")+i*s),n&&Qt(e,"Date",xe(e,"Date")+n*s),a&&e._d.setTime(e._d.valueOf()+a*s),r&&l.updateOffset(e,n||i))}var Ka=gs(1,"add"),en=gs(-1,"subtract");function ks(e){return typeof e=="string"||e instanceof String}function tn(e){return A(e)||he(e)||ks(e)||E(e)||rn(e)||sn(e)||e===null||e===void 0}function sn(e){var t=D(e)&&!H(e),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,n,i=r.length;for(a=0;as.valueOf():s.valueOf()9999?Ie(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ie(s,"Z")):Ie(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function wn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,a,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",n=t+'[")]',this.format(s+r+a+n)}function kn(e){e||(e=this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var t=Ie(this,e);return this.localeData().postformat(t)}function vn(e,t){return this.isValid()&&(A(e)&&e.isValid()||M(e).isValid())?G({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Mn(e){return this.from(M(),e)}function Sn(e,t){return this.isValid()&&(A(e)&&e.isValid()||M(e).isValid())?G({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pn(e){return this.to(M(),e)}function vs(e){var t;return e===void 0?this._locale._abbr:(t=K(e),t!=null&&(this._locale=t),this)}var Ms=L("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Ss(){return this._locale}var Qe=1e3,Me=60*Qe,Xe=60*Me,ps=(365*400+97)*24*Xe;function Se(e,t){return(e%t+t)%t}function Ds(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-ps:new Date(e,t,s).valueOf()}function Ys(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-ps:Date.UTC(e,t,s)}function Dn(e){var t,s;if(e=I(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Ys:Ds,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Se(t+(this._isUTC?0:this.utcOffset()*Me),Xe);break;case"minute":t=this._d.valueOf(),t-=Se(t,Me);break;case"second":t=this._d.valueOf(),t-=Se(t,Qe);break}return this._d.setTime(t),l.updateOffset(this,!0),this}function Yn(e){var t,s;if(e=I(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Ys:Ds,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Xe-Se(t+(this._isUTC?0:this.utcOffset()*Me),Xe)-1;break;case"minute":t=this._d.valueOf(),t+=Me-Se(t,Me)-1;break;case"second":t=this._d.valueOf(),t+=Qe-Se(t,Qe)-1;break}return this._d.setTime(t),l.updateOffset(this,!0),this}function On(){return this._d.valueOf()-(this._offset||0)*6e4}function Tn(){return Math.floor(this.valueOf()/1e3)}function bn(){return new Date(this.valueOf())}function xn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Nn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Pn(){return this.isValid()?this.toISOString():null}function Wn(){return it(this)}function Rn(){return ie({},m(this))}function Fn(){return m(this).overflow}function Cn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}h("N",0,0,"eraAbbr"),h("NN",0,0,"eraAbbr"),h("NNN",0,0,"eraAbbr"),h("NNNN",0,0,"eraName"),h("NNNNN",0,0,"eraNarrow"),h("y",["y",1],"yo","eraYear"),h("y",["yy",2],0,"eraYear"),h("y",["yyy",3],0,"eraYear"),h("y",["yyyy",4],0,"eraYear"),d("N",Wt),d("NN",Wt),d("NNN",Wt),d("NNNN",zn),d("NNNNN",Zn),k(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var a=s._locale.erasParse(e,r,s._strict);a?m(s).era=a:m(s).invalidEra=e}),d("y",ge),d("yy",ge),d("yyy",ge),d("yyyy",ge),d("yo",Bn),k(["y","yy","yyy","yyyy"],P),k(["yo"],function(e,t,s,r){var a;s._locale._eraYearOrdinalRegex&&(a=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[P]=s._locale.eraYearOrdinalParse(e,a):t[P]=parseInt(e,10)});function Ln(e,t){var s,r,a,n=this._eras||K("en")._eras;for(s=0,r=n.length;s=0)return n[r]}function Un(e,t){var s=e.since<=e.until?1:-1;return t===void 0?l(e.since).year():l(e.since).year()+(t-e.offset)*s}function Hn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;en&&(t=n),ti.call(this,e,t,s,r,a))}function ti(e,t,s,r,a){var n=rs(e,t,s,r,a),i=Ne(n.year,0,n.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}h("Q",0,"Qo","quarter"),d("Q",zt),k("Q",function(e,t){t[J]=(_(e)-1)*3});function si(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}h("D",["DD",2],"Do","date"),d("D",v,we),d("DD",v,C),d("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),k(["D","DD"],B),k("Do",function(e,t){t[B]=_(e.match(v)[0])});var Ts=ke("Date",!0);h("DDD",["DDDD",3],"DDDo","dayOfYear"),d("DDD",He),d("DDDD",Zt),k(["DDD","DDDD"],function(e,t,s){s._dayOfYear=_(e)});function ri(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}h("m",["mm",2],0,"minute"),d("m",v,gt),d("mm",v,C),k(["m","mm"],V);var ai=ke("Minutes",!1);h("s",["ss",2],0,"second"),d("s",v,gt),d("ss",v,C),k(["s","ss"],Q);var ni=ke("Seconds",!1);h("S",0,0,function(){return~~(this.millisecond()/100)}),h(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),h(0,["SSS",3],0,"millisecond"),h(0,["SSSS",4],0,function(){return this.millisecond()*10}),h(0,["SSSSS",5],0,function(){return this.millisecond()*100}),h(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),h(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),h(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),h(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),d("S",He,zt),d("SS",He,C),d("SSS",He,Zt);var le,bs;for(le="SSSS";le.length<=9;le+="S")d(le,ge);function ii(e,t){t[fe]=_(("0."+e)*1e3)}for(le="S";le.length<=9;le+="S")k(le,ii);bs=ke("Milliseconds",!1),h("z",0,0,"zoneAbbr"),h("zz",0,0,"zoneName");function oi(){return this._isUTC?"UTC":""}function li(){return this._isUTC?"Coordinated Universal Time":""}var o=Ye.prototype;o.add=Ka,o.calendar=on,o.clone=ln,o.diff=_n,o.endOf=Yn,o.format=kn,o.from=vn,o.fromNow=Mn,o.to=Sn,o.toNow=pn,o.get=gr,o.invalidAt=Fn,o.isAfter=un,o.isBefore=dn,o.isBetween=hn,o.isSame=fn,o.isSameOrAfter=cn,o.isSameOrBefore=mn,o.isValid=Wn,o.lang=Ms,o.locale=vs,o.localeData=Ss,o.max=Pa,o.min=Na,o.parsingFlags=Rn,o.set=wr,o.startOf=Dn,o.subtract=en,o.toArray=xn,o.toObject=Nn,o.toDate=bn,o.toISOString=gn,o.inspect=wn,typeof Symbol<"u"&&Symbol.for!=null&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),o.toJSON=Pn,o.toString=yn,o.unix=Tn,o.valueOf=On,o.creationData=Cn,o.eraName=Hn,o.eraNarrow=En,o.eraAbbr=An,o.eraYear=Vn,o.year=Jt,o.isLeapYear=yr,o.weekYear=qn,o.isoWeekYear=Jn,o.quarter=o.quarters=si,o.month=ts,o.daysInMonth=Tr,o.week=o.weeks=Cr,o.isoWeek=o.isoWeeks=Lr,o.weeksInYear=Kn,o.weeksInWeekYear=ei,o.isoWeeksInYear=Qn,o.isoWeeksInISOWeekYear=Xn,o.date=Ts,o.day=o.days=qr,o.weekday=Jr,o.isoWeekday=Qr,o.dayOfYear=ri,o.hour=o.hours=aa,o.minute=o.minutes=ai,o.second=o.seconds=ni,o.millisecond=o.milliseconds=bs,o.utcOffset=Ea,o.utc=Va,o.local=Ga,o.parseZone=ja,o.hasAlignedHourOffset=$a,o.isDST=za,o.isLocal=Ba,o.isUtcOffset=qa,o.isUtc=_s,o.isUTC=_s,o.zoneAbbr=oi,o.zoneName=li,o.dates=L("dates accessor is deprecated. Use date instead.",Ts),o.months=L("months accessor is deprecated. Use month instead",ts),o.years=L("years accessor is deprecated. Use year instead",Jt),o.zone=L("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Aa),o.isDSTShifted=L("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Za);function ui(e){return M(e*1e3)}function di(){return M.apply(null,arguments).parseZone()}function xs(e){return e}var w=dt.prototype;w.calendar=Bs,w.longDateFormat=Xs,w.invalidDate=er,w.ordinal=rr,w.preparse=xs,w.postformat=xs,w.relativeTime=nr,w.pastFuture=ir,w.set=zs,w.eras=Ln,w.erasParse=In,w.erasConvertYear=Un,w.erasAbbrRegex=jn,w.erasNameRegex=Gn,w.erasNarrowRegex=$n,w.months=pr,w.monthsShort=Dr,w.monthsParse=Or,w.monthsRegex=xr,w.monthsShortRegex=br,w.week=Pr,w.firstDayOfYear=Fr,w.firstDayOfWeek=Rr,w.weekdays=jr,w.weekdaysMin=zr,w.weekdaysShort=$r,w.weekdaysParse=Br,w.weekdaysRegex=Xr,w.weekdaysShortRegex=Kr,w.weekdaysMinRegex=ea,w.isPM=sa,w.meridiem=na;function et(e,t,s,r){var a=K(),n=$().set(r,t);return a[s](n,e)}function Ns(e,t,s){if(E(e)&&(t=e,e=void 0),e=e||"",t!=null)return et(e,t,s,"month");var r,a=[];for(r=0;r<12;r++)a[r]=et(e,r,s,"month");return a}function Ft(e,t,s,r){typeof e=="boolean"?(E(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,E(t)&&(s=t,t=void 0),t=t||"");var a=K(),n=e?a._week.dow:0,i,u=[];if(s!=null)return et(t,(s+n)%7,r,"day");for(i=0;i<7;i++)u[i]=et(t,(i+n)%7,r,"day");return u}function hi(e,t){return Ns(e,t,"months")}function fi(e,t){return Ns(e,t,"monthsShort")}function ci(e,t,s){return Ft(e,t,s,"weekdays")}function mi(e,t,s){return Ft(e,t,s,"weekdaysShort")}function _i(e,t,s){return Ft(e,t,s,"weekdaysMin")}oe("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,s=_(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}}),l.lang=L("moment.lang is deprecated. Use moment.locale instead.",oe),l.langData=L("moment.langData is deprecated. Use moment.localeData instead.",K);var ee=Math.abs;function yi(){var e=this._data;return this._milliseconds=ee(this._milliseconds),this._days=ee(this._days),this._months=ee(this._months),e.milliseconds=ee(e.milliseconds),e.seconds=ee(e.seconds),e.minutes=ee(e.minutes),e.hours=ee(e.hours),e.months=ee(e.months),e.years=ee(e.years),this}function Ps(e,t,s,r){var a=G(t,s);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function gi(e,t){return Ps(this,e,t,1)}function wi(e,t){return Ps(this,e,t,-1)}function Ws(e){return e<0?Math.floor(e):Math.ceil(e)}function ki(){var e=this._milliseconds,t=this._days,s=this._months,r=this._data,a,n,i,u,c;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=Ws(Ct(s)+t)*864e5,t=0,s=0),r.milliseconds=e%1e3,a=U(e/1e3),r.seconds=a%60,n=U(a/60),r.minutes=n%60,i=U(n/60),r.hours=i%24,t+=U(i/24),c=U(Rs(t)),s+=c,t-=Ws(Ct(c)),u=U(s/12),s%=12,r.days=t,r.months=s,r.years=u,this}function Rs(e){return e*4800/146097}function Ct(e){return e*146097/4800}function vi(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if(e=I(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,s=this._months+Rs(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(Ct(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function te(e){return function(){return this.as(e)}}var Fs=te("ms"),Mi=te("s"),Si=te("m"),pi=te("h"),Di=te("d"),Yi=te("w"),Oi=te("M"),Ti=te("Q"),bi=te("y"),xi=Fs;function Ni(){return G(this)}function Pi(e){return e=I(e),this.isValid()?this[e+"s"]():NaN}function me(e){return function(){return this.isValid()?this._data[e]:NaN}}var Wi=me("milliseconds"),Ri=me("seconds"),Fi=me("minutes"),Ci=me("hours"),Li=me("days"),Ii=me("months"),Ui=me("years");function Hi(){return U(this.days()/7)}var se=Math.round,pe={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ei(e,t,s,r,a){return a.relativeTime(t||1,!!s,e,r)}function Ai(e,t,s,r){var a=G(e).abs(),n=se(a.as("s")),i=se(a.as("m")),u=se(a.as("h")),c=se(a.as("d")),y=se(a.as("M")),R=se(a.as("w")),re=se(a.as("y")),ue=n<=s.ss&&["s",n]||n0,ue[4]=r,Ei.apply(null,ue)}function Vi(e){return e===void 0?se:typeof e=="function"?(se=e,!0):!1}function Gi(e,t){return pe[e]===void 0?!1:t===void 0?pe[e]:(pe[e]=t,e==="s"&&(pe.ss=t-1),!0)}function ji(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=pe,a,n;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},pe,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),n=Ai(this,!s,r,a),s&&(n=a.pastFuture(+this,n)),a.postformat(n)}var Lt=Math.abs;function De(e){return(e>0)-(e<0)||+e}function tt(){if(!this.isValid())return this.localeData().invalidDate();var e=Lt(this._milliseconds)/1e3,t=Lt(this._days),s=Lt(this._months),r,a,n,i,u=this.asSeconds(),c,y,R,re;return u?(r=U(e/60),a=U(r/60),e%=60,r%=60,n=U(s/12),s%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=u<0?"-":"",y=De(this._months)!==De(u)?"-":"",R=De(this._days)!==De(u)?"-":"",re=De(this._milliseconds)!==De(u)?"-":"",c+"P"+(n?y+n+"Y":"")+(s?y+s+"M":"")+(t?R+t+"D":"")+(a||r||e?"T":"")+(a?re+a+"H":"")+(r?re+r+"M":"")+(e?re+i+"S":"")):"P0D"}var g=Be.prototype;g.isValid=La,g.abs=yi,g.add=gi,g.subtract=wi,g.as=vi,g.asMilliseconds=Fs,g.asSeconds=Mi,g.asMinutes=Si,g.asHours=pi,g.asDays=Di,g.asWeeks=Yi,g.asMonths=Oi,g.asQuarters=Ti,g.asYears=bi,g.valueOf=xi,g._bubble=ki,g.clone=Ni,g.get=Pi,g.milliseconds=Wi,g.seconds=Ri,g.minutes=Fi,g.hours=Ci,g.days=Li,g.weeks=Hi,g.months=Ii,g.years=Ui,g.humanize=ji,g.toISOString=tt,g.toString=tt,g.toJSON=tt,g.locale=vs,g.localeData=Ss,g.toIsoString=L("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",tt),g.lang=Ms,h("X",0,0,"unix"),h("x",0,0,"valueOf"),d("x",Ae),d("X",dr),k("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)}),k("x",function(e,t,s){s._d=new Date(_(e))});//! moment.js diff --git a/assets/Friends-BlIjppTA.js b/assets/Friends-COTbMEUJ.js similarity index 96% rename from assets/Friends-BlIjppTA.js rename to assets/Friends-COTbMEUJ.js index dc1e6ec..f526d2a 100644 --- a/assets/Friends-BlIjppTA.js +++ b/assets/Friends-COTbMEUJ.js @@ -1 +1 @@ -import{t as m,B as g,h as c,K as p,C as $,_ as k,c as r,o as i,a as n,g as y,l as h,F as _,r as v,z as F,b as B,n as S}from"./index-B2-0DWq1.js";import{s as w}from"./utils-Bxugc6wL.js";var C=Object.getOwnPropertyDescriptor,j=(t,e,s,d)=>{for(var o=d>1?void 0:d?C(e,s):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(o=a(o)||o);return o};const N=new Set(["name","avatar","banner","desc"]),b={blog:"fas fa-book"};let u=class extends g{friends=[];async created(){this.friends=await(await fetch(`${c.content}/content/generated/friends/friends.json`)).json(),this.friends.forEach(e=>{e.avatar.startsWith("http")||(e.avatar=`${c.content}/${e.avatar}`),e.banner&&!e.banner.startsWith("http")&&(e.banner=`${c.content}/${e.banner}`)}),this.friends=w(this.friends)}bgStyle(e){return e.banner?{"background-image":`url("${e.banner}")`}:{}}getFriendLinks(e){return Object.entries(e).filter(s=>!N.has(s[0].toString())).map(s=>({link:s[1],icon:p.includes(s[0])?`fab fa-${s[0]}`:s[0]in b?b[s[0]]:s[0]}))}};u=j([$],u);const O=m(u),z={id:"Friends",class:"general-page"},D={key:0,class:"friends"},L=["src"],V={class:"info"},x={class:"name unselectable"},E={class:"links"},P=["href"];function W(t,e,s,d,o,l){return i(),r("div",z,[e[0]||(e[0]=n("div",{class:"title"},[n("h2",null,"朋友们"),n("div",{class:"subtitle"},[h(" 是小桂桂的朋友们(欢迎补充"),n("br"),h(" 每次刷新都会打乱顺序! ")])],-1)),t.friends?(i(),r("div",D,[(i(!0),r(_,null,v(t.friends,a=>(i(),r("div",{class:"friend card",key:a.name},[n("div",{class:"banner",style:F(t.bgStyle(a))},null,4),n("img",{class:"avatar",src:a.avatar,alt:""},null,8,L),n("div",V,[n("div",x,B(a.name),1),n("div",E,[(i(!0),r(_,null,v(t.getFriendLinks(a),f=>(i(),r("a",{href:f.link},[n("i",{class:S(f.icon)},null,2)],8,P))),256))])])]))),128))])):y("",!0)])}const q=k(O,[["render",W],["__scopeId","data-v-617ad8d4"]]);export{q as default}; +import{t as m,B as g,h as c,K as p,C as $,_ as k,c as r,o as i,a as n,g as y,l as h,F as _,r as v,z as F,b as B,n as S}from"./index-CSLMAwfP.js";import{s as w}from"./utils-9s8KIpJA.js";var C=Object.getOwnPropertyDescriptor,j=(t,e,s,d)=>{for(var o=d>1?void 0:d?C(e,s):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(o=a(o)||o);return o};const N=new Set(["name","avatar","banner","desc"]),b={blog:"fas fa-book"};let u=class extends g{friends=[];async created(){this.friends=await(await fetch(`${c.content}/content/generated/friends/friends.json`)).json(),this.friends.forEach(e=>{e.avatar.startsWith("http")||(e.avatar=`${c.content}/${e.avatar}`),e.banner&&!e.banner.startsWith("http")&&(e.banner=`${c.content}/${e.banner}`)}),this.friends=w(this.friends)}bgStyle(e){return e.banner?{"background-image":`url("${e.banner}")`}:{}}getFriendLinks(e){return Object.entries(e).filter(s=>!N.has(s[0].toString())).map(s=>({link:s[1],icon:p.includes(s[0])?`fab fa-${s[0]}`:s[0]in b?b[s[0]]:s[0]}))}};u=j([$],u);const O=m(u),z={id:"Friends",class:"general-page"},D={key:0,class:"friends"},L=["src"],V={class:"info"},x={class:"name unselectable"},E={class:"links"},P=["href"];function W(t,e,s,d,o,l){return i(),r("div",z,[e[0]||(e[0]=n("div",{class:"title"},[n("h2",null,"朋友们"),n("div",{class:"subtitle"},[h(" 是小桂桂的朋友们(欢迎补充"),n("br"),h(" 每次刷新都会打乱顺序! ")])],-1)),t.friends?(i(),r("div",D,[(i(!0),r(_,null,v(t.friends,a=>(i(),r("div",{class:"friend card",key:a.name},[n("div",{class:"banner",style:F(t.bgStyle(a))},null,4),n("img",{class:"avatar",src:a.avatar,alt:""},null,8,L),n("div",V,[n("div",x,B(a.name),1),n("div",E,[(i(!0),r(_,null,v(t.getFriendLinks(a),f=>(i(),r("a",{href:f.link},[n("i",{class:S(f.icon)},null,2)],8,P))),256))])])]))),128))])):y("",!0)])}const q=k(O,[["render",W],["__scopeId","data-v-617ad8d4"]]);export{q as default}; diff --git a/assets/Life-BVlDglso.js b/assets/Life-DgbMfal1.js similarity index 99% rename from assets/Life-BVlDglso.js rename to assets/Life-DgbMfal1.js index ab1da8b..7d0ab14 100644 --- a/assets/Life-BVlDglso.js +++ b/assets/Life-DgbMfal1.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Location-78416ba3-BooSv_9a.js","assets/index-B2-0DWq1.js","assets/index-CTy3jf06.css","assets/Poll-aeb298b2-CmAHaRvX.js","assets/VideoPlayer-328c0f9f-BuPfpDYc.js"])))=>i.map(i=>d[i]); -import{e as _t,c as H,o as L,j as tc,a as N,g as ee,k as Ps,i as Ae,f as mt,v as rc,l as nr,b as ge,F as sn,r as fi,n as je,p as On,m as En,q as Ls,s as nc,u as Rs,x as Zr,y as ei,z as pi,A as ic,w as sc,D as oc,_ as ac}from"./index-B2-0DWq1.js";var lc=Object.defineProperty,cc=(e,t,r)=>t in e?lc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,J=(e,t,r)=>(cc(e,typeof t!="symbol"?t+"":t,r),r),js;const Cn=typeof window<"u";Cn&&(js=window?.navigator)!=null&&js.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const qs=e=>{let t=0,r=e;for(;r;)t+=r.offsetTop,r=r.offsetParent;return t},uc=(e,t)=>Math.abs(qs(e)-qs(t)),hc=e=>typeof e=="function",dc=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},fc=/-(\w)/g,pc=dc(e=>e.replace(fc,(t,r)=>r?r.toUpperCase():""));var mc=typeof global=="object"&&global&&global.Object===Object&&global;const gc=mc;var yc=typeof self=="object"&&self&&self.Object===Object&&self,bc=gc||yc||Function("return this")();const jo=bc;var wc=jo.Symbol;const on=wc;var qo=Object.prototype,vc=qo.hasOwnProperty,xc=qo.toString,Jt=on?on.toStringTag:void 0;function kc(e){var t=vc.call(e,Jt),r=e[Jt];try{e[Jt]=void 0;var n=!0}catch{}var i=xc.call(e);return n&&(t?e[Jt]=r:delete e[Jt]),i}var _c=Object.prototype,Sc=_c.toString;function Tc(e){return Sc.call(e)}var Oc="[object Null]",Ec="[object Undefined]",Us=on?on.toStringTag:void 0;function Cc(e){return e==null?e===void 0?Ec:Oc:Us&&Us in Object(e)?kc(e):Tc(e)}function Ac(e){return e!=null&&typeof e=="object"}var Dc="[object Symbol]";function Mc(e){return typeof e=="symbol"||Ac(e)&&Cc(e)==Dc}var Nc=/\s/;function Ic(e){for(var t=e.length;t--&&Nc.test(e.charAt(t)););return t}var Pc=/^\s+/;function Lc(e){return e&&e.slice(0,Ic(e)+1).replace(Pc,"")}function an(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Bs=NaN,Rc=/^[-+]0x[0-9a-f]+$/i,jc=/^0b[01]+$/i,qc=/^0o[0-7]+$/i,Uc=parseInt;function Ys(e){if(typeof e=="number")return e;if(Mc(e))return Bs;if(an(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=an(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lc(e);var r=jc.test(e);return r||qc.test(e)?Uc(e.slice(2),r?2:8):Rc.test(e)?Bs:+e}var Bc=function(){return jo.Date.now()};const ti=Bc;var Yc="Expected a function",Hc=Math.max,zc=Math.min;function Vc(e,t,r){var n,i,s,o,a,l,u=0,d=!1,f=!1,c=!0;if(typeof e!="function")throw new TypeError(Yc);t=Ys(t)||0,an(r)&&(d=!!r.leading,f="maxWait"in r,s=f?Hc(Ys(r.maxWait)||0,t):s,c="trailing"in r?!!r.trailing:c);function h(P){var $=n,G=i;return n=i=void 0,u=P,o=e.apply(G,$),o}function b(P){return u=P,a=setTimeout(S,t),d?h(P):o}function g(P){var $=P-l,G=P-u,de=t-$;return f?zc(de,s-G):de}function y(P){var $=P-l,G=P-u;return l===void 0||$>=t||$<0||f&&G>=s}function S(){var P=ti();if(y(P))return C(P);a=setTimeout(S,g(P))}function C(P){return a=void 0,c&&n?h(P):(n=i=void 0,o)}function k(){a!==void 0&&clearTimeout(a),u=0,n=l=i=a=void 0}function T(){return a===void 0?o:C(ti())}function M(){var P=ti(),$=y(P);if(n=arguments,i=this,l=P,$){if(a===void 0)return b(l);if(f)return clearTimeout(a),a=setTimeout(S,t),h(l)}return a===void 0&&(a=setTimeout(S,t)),o}return M.cancel=k,M.flush=T,M}var Fc="Expected a function";function Hs(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(Fc);return an(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Vc(e,t,{leading:n,maxWait:t,trailing:i})}class $c extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Wc(e,t){throw new $c(`[${e}] ${t}`)}const Gc=(e,t)=>{var r;if(!Cn||!e||!t)return"";let n=pc(t);n==="float"&&(n="cssFloat");try{const i=e.style[n];if(i)return i;const s=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return s?s[n]:""}catch{return e.style[n]}},Zc=(e,t)=>{if(!Cn)return!1;const r={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],n=Gc(e,r);return["scroll","auto","overlay"].some(i=>n.includes(i))},Qc=(e,t)=>{if(!Cn)return;let r=e;for(;r;){if([window,document,document.documentElement].includes(r))return window;if(Zc(r,t))return r;r=r.parentNode}return r};var Y=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){if(this instanceof n){var i=[null];i.push.apply(i,arguments);var s=Function.bind.apply(t,i);return new s}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}const qe="ElInfiniteScroll",Kc=50,eu=200,tu=0,ru={delay:{type:Number,default:eu},distance:{type:Number,default:tu},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Fi=(e,t)=>Object.entries(ru).reduce((r,[n,i])=>{var s,o;const{type:a,default:l}=i,u=e.getAttribute(`infinite-scroll-${n}`);let d=(o=(s=t[u])!=null?s:u)!=null?o:l;return d=d==="false"?!1:d,d=a(d),r[n]=Number.isNaN(d)?l:d,r},{}),Uo=e=>{const{observer:t}=e[qe];t&&(t.disconnect(),delete e[qe].observer)},nu=(e,t)=>{const{container:r,containerEl:n,instance:i,observer:s,lastScrollTop:o}=e[qe],{disabled:a,distance:l}=Fi(e,i),{clientHeight:u,scrollHeight:d,scrollTop:f}=n,c=f-o;if(e[qe].lastScrollTop=f,s||a||c<0)return;let h=!1;if(r===e)h=d-(u+f)<=l;else{const{clientTop:b,scrollHeight:g}=e,y=uc(e,n);h=f+u>=y+b+g-l}h&&t.call(i)};function ri(e,t){const{containerEl:r,instance:n}=e[qe],{disabled:i}=Fi(e,n);i||r.clientHeight===0||(r.scrollHeight<=r.clientHeight?t.call(n):Uo(e))}const iu={async mounted(e,t){const{instance:r,value:n}=t;hc(n)||Wc(qe,"'v-infinite-scroll' binding value must be a function"),await Ls();const{delay:i,immediate:s}=Fi(e,r),o=Qc(e,!0),a=o===window?document.documentElement:o,l=Hs(nu.bind(null,e,n),i);if(o){if(e[qe]={instance:r,container:o,containerEl:a,delay:i,cb:n,onScroll:l,lastScrollTop:a.scrollTop},s){const u=new MutationObserver(Hs(ri.bind(null,e,n),Kc));e[qe].observer=u,u.observe(e,{childList:!0,subtree:!0}),ri(e,n)}o.addEventListener("scroll",l)}},unmounted(e){const{container:t,onScroll:r}=e[qe];t?.removeEventListener("scroll",r),Uo(e)},async updated(e){if(!e[qe])await Ls();else{const{containerEl:t,cb:r,observer:n}=e[qe];t.clientHeight&&n&&ri(e,r)}}},mi=iu;mi.install=e=>{e.directive("InfiniteScroll",mi)};const su=mi,ou={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},au=N("path",{fill:"currentColor",d:"M15.5 14h-.79l-.28-.27a6.5 6.5 0 0 0 1.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 0 0-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 0 0 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0c.41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5S14 7.01 14 9.5S11.99 14 9.5 14z"},null,-1),lu=[au];function cu(e,t){return L(),H("svg",ou,lu)}const uu={name:"ic-round-search",render:cu};/** +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Location-78416ba3-D_B0GOUh.js","assets/index-CSLMAwfP.js","assets/index-CTy3jf06.css","assets/Poll-aeb298b2-CHoU9q7j.js","assets/VideoPlayer-328c0f9f-DQl9Ox4H.js"])))=>i.map(i=>d[i]); +import{e as _t,c as H,o as L,j as tc,a as N,g as ee,k as Ps,i as Ae,f as mt,v as rc,l as nr,b as ge,F as sn,r as fi,n as je,p as On,m as En,q as Ls,s as nc,u as Rs,x as Zr,y as ei,z as pi,A as ic,w as sc,D as oc,_ as ac}from"./index-CSLMAwfP.js";var lc=Object.defineProperty,cc=(e,t,r)=>t in e?lc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,J=(e,t,r)=>(cc(e,typeof t!="symbol"?t+"":t,r),r),js;const Cn=typeof window<"u";Cn&&(js=window?.navigator)!=null&&js.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const qs=e=>{let t=0,r=e;for(;r;)t+=r.offsetTop,r=r.offsetParent;return t},uc=(e,t)=>Math.abs(qs(e)-qs(t)),hc=e=>typeof e=="function",dc=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},fc=/-(\w)/g,pc=dc(e=>e.replace(fc,(t,r)=>r?r.toUpperCase():""));var mc=typeof global=="object"&&global&&global.Object===Object&&global;const gc=mc;var yc=typeof self=="object"&&self&&self.Object===Object&&self,bc=gc||yc||Function("return this")();const jo=bc;var wc=jo.Symbol;const on=wc;var qo=Object.prototype,vc=qo.hasOwnProperty,xc=qo.toString,Jt=on?on.toStringTag:void 0;function kc(e){var t=vc.call(e,Jt),r=e[Jt];try{e[Jt]=void 0;var n=!0}catch{}var i=xc.call(e);return n&&(t?e[Jt]=r:delete e[Jt]),i}var _c=Object.prototype,Sc=_c.toString;function Tc(e){return Sc.call(e)}var Oc="[object Null]",Ec="[object Undefined]",Us=on?on.toStringTag:void 0;function Cc(e){return e==null?e===void 0?Ec:Oc:Us&&Us in Object(e)?kc(e):Tc(e)}function Ac(e){return e!=null&&typeof e=="object"}var Dc="[object Symbol]";function Mc(e){return typeof e=="symbol"||Ac(e)&&Cc(e)==Dc}var Nc=/\s/;function Ic(e){for(var t=e.length;t--&&Nc.test(e.charAt(t)););return t}var Pc=/^\s+/;function Lc(e){return e&&e.slice(0,Ic(e)+1).replace(Pc,"")}function an(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Bs=NaN,Rc=/^[-+]0x[0-9a-f]+$/i,jc=/^0b[01]+$/i,qc=/^0o[0-7]+$/i,Uc=parseInt;function Ys(e){if(typeof e=="number")return e;if(Mc(e))return Bs;if(an(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=an(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lc(e);var r=jc.test(e);return r||qc.test(e)?Uc(e.slice(2),r?2:8):Rc.test(e)?Bs:+e}var Bc=function(){return jo.Date.now()};const ti=Bc;var Yc="Expected a function",Hc=Math.max,zc=Math.min;function Vc(e,t,r){var n,i,s,o,a,l,u=0,d=!1,f=!1,c=!0;if(typeof e!="function")throw new TypeError(Yc);t=Ys(t)||0,an(r)&&(d=!!r.leading,f="maxWait"in r,s=f?Hc(Ys(r.maxWait)||0,t):s,c="trailing"in r?!!r.trailing:c);function h(P){var $=n,G=i;return n=i=void 0,u=P,o=e.apply(G,$),o}function b(P){return u=P,a=setTimeout(S,t),d?h(P):o}function g(P){var $=P-l,G=P-u,de=t-$;return f?zc(de,s-G):de}function y(P){var $=P-l,G=P-u;return l===void 0||$>=t||$<0||f&&G>=s}function S(){var P=ti();if(y(P))return C(P);a=setTimeout(S,g(P))}function C(P){return a=void 0,c&&n?h(P):(n=i=void 0,o)}function k(){a!==void 0&&clearTimeout(a),u=0,n=l=i=a=void 0}function T(){return a===void 0?o:C(ti())}function M(){var P=ti(),$=y(P);if(n=arguments,i=this,l=P,$){if(a===void 0)return b(l);if(f)return clearTimeout(a),a=setTimeout(S,t),h(l)}return a===void 0&&(a=setTimeout(S,t)),o}return M.cancel=k,M.flush=T,M}var Fc="Expected a function";function Hs(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(Fc);return an(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Vc(e,t,{leading:n,maxWait:t,trailing:i})}class $c extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Wc(e,t){throw new $c(`[${e}] ${t}`)}const Gc=(e,t)=>{var r;if(!Cn||!e||!t)return"";let n=pc(t);n==="float"&&(n="cssFloat");try{const i=e.style[n];if(i)return i;const s=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return s?s[n]:""}catch{return e.style[n]}},Zc=(e,t)=>{if(!Cn)return!1;const r={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],n=Gc(e,r);return["scroll","auto","overlay"].some(i=>n.includes(i))},Qc=(e,t)=>{if(!Cn)return;let r=e;for(;r;){if([window,document,document.documentElement].includes(r))return window;if(Zc(r,t))return r;r=r.parentNode}return r};var Y=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){if(this instanceof n){var i=[null];i.push.apply(i,arguments);var s=Function.bind.apply(t,i);return new s}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}const qe="ElInfiniteScroll",Kc=50,eu=200,tu=0,ru={delay:{type:Number,default:eu},distance:{type:Number,default:tu},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Fi=(e,t)=>Object.entries(ru).reduce((r,[n,i])=>{var s,o;const{type:a,default:l}=i,u=e.getAttribute(`infinite-scroll-${n}`);let d=(o=(s=t[u])!=null?s:u)!=null?o:l;return d=d==="false"?!1:d,d=a(d),r[n]=Number.isNaN(d)?l:d,r},{}),Uo=e=>{const{observer:t}=e[qe];t&&(t.disconnect(),delete e[qe].observer)},nu=(e,t)=>{const{container:r,containerEl:n,instance:i,observer:s,lastScrollTop:o}=e[qe],{disabled:a,distance:l}=Fi(e,i),{clientHeight:u,scrollHeight:d,scrollTop:f}=n,c=f-o;if(e[qe].lastScrollTop=f,s||a||c<0)return;let h=!1;if(r===e)h=d-(u+f)<=l;else{const{clientTop:b,scrollHeight:g}=e,y=uc(e,n);h=f+u>=y+b+g-l}h&&t.call(i)};function ri(e,t){const{containerEl:r,instance:n}=e[qe],{disabled:i}=Fi(e,n);i||r.clientHeight===0||(r.scrollHeight<=r.clientHeight?t.call(n):Uo(e))}const iu={async mounted(e,t){const{instance:r,value:n}=t;hc(n)||Wc(qe,"'v-infinite-scroll' binding value must be a function"),await Ls();const{delay:i,immediate:s}=Fi(e,r),o=Qc(e,!0),a=o===window?document.documentElement:o,l=Hs(nu.bind(null,e,n),i);if(o){if(e[qe]={instance:r,container:o,containerEl:a,delay:i,cb:n,onScroll:l,lastScrollTop:a.scrollTop},s){const u=new MutationObserver(Hs(ri.bind(null,e,n),Kc));e[qe].observer=u,u.observe(e,{childList:!0,subtree:!0}),ri(e,n)}o.addEventListener("scroll",l)}},unmounted(e){const{container:t,onScroll:r}=e[qe];t?.removeEventListener("scroll",r),Uo(e)},async updated(e){if(!e[qe])await Ls();else{const{containerEl:t,cb:r,observer:n}=e[qe];t.clientHeight&&n&&ri(e,r)}}},mi=iu;mi.install=e=>{e.directive("InfiniteScroll",mi)};const su=mi,ou={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},au=N("path",{fill:"currentColor",d:"M15.5 14h-.79l-.28-.27a6.5 6.5 0 0 0 1.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 0 0-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 0 0 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0c.41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5S14 7.01 14 9.5S11.99 14 9.5 14z"},null,-1),lu=[au];function cu(e,t){return L(),H("svg",ou,lu)}const uu={name:"ic-round-search",render:cu};/** * vue-class-component v8.0.0-rc.1 * (c) 2015-present Evan You * @license MIT @@ -13,7 +13,7 @@ var Yo;function O(){return Yo.apply(null,arguments)}function Ou(e){Yo=e}function [`+s+"] ";for(o in arguments[0])Z(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[s];n.push(i)}zo(e+` Arguments: `+Array.prototype.slice.call(n).join("")+` `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var $s={};function Vo(e,t){O.deprecationHandler!=null&&O.deprecationHandler(e,t),$s[e]||(zo(t),$s[e]=!0)}O.suppressDeprecationWarnings=!1;O.deprecationHandler=null;function Ze(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Cu(e){var t,r;for(r in e)Z(e,r)&&(t=e[r],Ze(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function wi(e,t){var r=ht({},e),n;for(n in t)Z(t,n)&&(St(e[n])&&St(t[n])?(r[n]={},ht(r[n],e[n]),ht(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)Z(e,n)&&!Z(t,n)&&St(e[n])&&(r[n]=ht({},r[n]));return r}function Zi(e){e!=null&&this.set(e)}var vi;Object.keys?vi=Object.keys:vi=function(e){var t,r=[];for(t in e)Z(e,t)&&r.push(t);return r};var Au={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Du(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return Ze(n)?n.call(t,r):n}function We(e,t,r){var n=""+Math.abs(e),i=t-n.length,s=e>=0;return(s?r?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+n}var Qi=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Lr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,si={},Ut={};function R(e,t,r,n){var i=n;typeof n=="string"&&(i=function(){return this[n]()}),e&&(Ut[e]=i),t&&(Ut[t[0]]=function(){return We(i.apply(this,arguments),t[1],t[2])}),r&&(Ut[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Mu(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Nu(e){var t=e.match(Qi),r,n;for(r=0,n=t.length;r=0&&Lr.test(e);)e=e.replace(Lr,n),Lr.lastIndex=0,r-=1;return e}var Iu={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Pu(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Qi).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var Lu="Invalid date";function Ru(){return this._invalidDate}var ju="%d",qu=/\d{1,2}/;function Uu(e){return this._ordinal.replace("%d",e)}var Bu={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Yu(e,t,r,n){var i=this._relativeTime[r];return Ze(i)?i(e,t,r,n):i.replace(/%d/i,e)}function Hu(e,t){var r=this._relativeTime[e>0?"future":"past"];return Ze(r)?r(t):r.replace(/%s/i,t)}var ir={};function ve(e,t){var r=e.toLowerCase();ir[r]=ir[r+"s"]=ir[t]=e}function Le(e){return typeof e=="string"?ir[e]||ir[e.toLowerCase()]:void 0}function Ji(e){var t={},r,n;for(n in e)Z(e,n)&&(r=Le(n),r&&(t[r]=e[n]));return t}var $o={};function xe(e,t){$o[e]=t}function zu(e){var t=[],r;for(r in e)Z(e,r)&&t.push({unit:r,priority:$o[r]});return t.sort(function(n,i){return n.priority-i.priority}),t}function Mn(e){return e%4===0&&e%100!==0||e%400===0}function Ie(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function V(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Ie(t)),r}function Gt(e,t){return function(r){return r!=null?(Wo(this,e,r),O.updateOffset(this,t),this):cn(this,e)}}function cn(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Wo(e,t,r){e.isValid()&&!isNaN(r)&&(t==="FullYear"&&Mn(e.year())&&e.month()===1&&e.date()===29?(r=V(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),jn(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}function Vu(e){return e=Le(e),Ze(this[e])?this[e]():this}function Fu(e,t){if(typeof e=="object"){e=Ji(e);var r=zu(e),n,i=r.length;for(n=0;n68?1900:2e3)};var na=Gt("FullYear",!0);function uh(){return Mn(this.year())}function hh(e,t,r,n,i,s,o){var a;return e<100&&e>=0?(a=new Date(e+400,t,r,n,i,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,r,n,i,s,o),a}function ar(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function hn(e,t,r){var n=7+t-r,i=(7+ar(e,0,n).getUTCDay()-t)%7;return-i+n-1}function ia(e,t,r,n,i){var s=(7+r-n)%7,o=hn(e,n,i),a=1+7*(t-1)+s+o,l,u;return a<=0?(l=e-1,u=sr(l)+a):a>sr(e)?(l=e+1,u=a-sr(e)):(l=e,u=a),{year:l,dayOfYear:u}}function lr(e,t,r){var n=hn(e.year(),t,r),i=Math.floor((e.dayOfYear()-n-1)/7)+1,s,o;return i<1?(o=e.year()-1,s=i+it(o,t,r)):i>it(e.year(),t,r)?(s=i-it(e.year(),t,r),o=e.year()+1):(o=e.year(),s=i),{week:s,year:o}}function it(e,t,r){var n=hn(e,t,r),i=hn(e+1,t,r);return(sr(e)-n+i)/7}R("w",["ww",2],"wo","week");R("W",["WW",2],"Wo","isoWeek");ve("week","w");ve("isoWeek","W");xe("week",5);xe("isoWeek",5);A("w",ce);A("ww",ce,Ne);A("W",ce);A("WW",ce,Ne);xr(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=V(e)});function dh(e){return lr(e,this._week.dow,this._week.doy).week}var fh={dow:0,doy:6};function ph(){return this._week.dow}function mh(){return this._week.doy}function gh(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function yh(e){var t=lr(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}R("d",0,"do","day");R("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});R("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});R("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});R("e",0,0,"weekday");R("E",0,0,"isoWeekday");ve("day","d");ve("weekday","e");ve("isoWeekday","E");xe("day",11);xe("weekday",11);xe("isoWeekday",11);A("d",ce);A("e",ce);A("E",ce);A("dd",function(e,t){return t.weekdaysMinRegex(e)});A("ddd",function(e,t){return t.weekdaysShortRegex(e)});A("dddd",function(e,t){return t.weekdaysRegex(e)});xr(["dd","ddd","dddd"],function(e,t,r,n){var i=r._locale.weekdaysParse(e,n,r._strict);i!=null?t.d=i:z(r).invalidWeekday=e});xr(["d","e","E"],function(e,t,r,n){t[n]=V(e)});function bh(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function wh(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function es(e,t){return e.slice(t,7).concat(e.slice(0,t))}var vh="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sa="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),xh="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),kh=vr,_h=vr,Sh=vr;function Th(e,t){var r=Be(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?es(r,this._week.dow):e?r[e.day()]:r}function Oh(e){return e===!0?es(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Eh(e){return e===!0?es(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ch(e,t,r){var n,i,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=Ge([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return r?t==="dddd"?(i=he.call(this._weekdaysParse,o),i!==-1?i:null):t==="ddd"?(i=he.call(this._shortWeekdaysParse,o),i!==-1?i:null):(i=he.call(this._minWeekdaysParse,o),i!==-1?i:null):t==="dddd"?(i=he.call(this._weekdaysParse,o),i!==-1||(i=he.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=he.call(this._minWeekdaysParse,o),i!==-1?i:null)):t==="ddd"?(i=he.call(this._shortWeekdaysParse,o),i!==-1||(i=he.call(this._weekdaysParse,o),i!==-1)?i:(i=he.call(this._minWeekdaysParse,o),i!==-1?i:null)):(i=he.call(this._minWeekdaysParse,o),i!==-1||(i=he.call(this._weekdaysParse,o),i!==-1)?i:(i=he.call(this._shortWeekdaysParse,o),i!==-1?i:null))}function Ah(e,t,r){var n,i,s;if(this._weekdaysParseExact)return Ch.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++)if(i=Ge([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(s="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(s.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e)||r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e)||r&&t==="dd"&&this._minWeekdaysParse[n].test(e)||!r&&this._weekdaysParse[n].test(e))return n}function Dh(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=bh(e,this.localeData()),this.add(e-t,"d")):t}function Mh(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Nh(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=wh(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Ih(e){return this._weekdaysParseExact?(Z(this,"_weekdaysRegex")||ts.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Z(this,"_weekdaysRegex")||(this._weekdaysRegex=kh),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ph(e){return this._weekdaysParseExact?(Z(this,"_weekdaysRegex")||ts.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Z(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=_h),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Lh(e){return this._weekdaysParseExact?(Z(this,"_weekdaysRegex")||ts.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Z(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Sh),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ts(){function e(d,f){return f.length-d.length}var t=[],r=[],n=[],i=[],s,o,a,l,u;for(s=0;s<7;s++)o=Ge([2e3,1]).day(s),a=Ce(this.weekdaysMin(o,"")),l=Ce(this.weekdaysShort(o,"")),u=Ce(this.weekdays(o,"")),t.push(a),r.push(l),n.push(u),i.push(a),i.push(l),i.push(u);t.sort(e),r.sort(e),n.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function rs(){return this.hours()%12||12}function Rh(){return this.hours()||24}R("H",["HH",2],0,"hour");R("h",["hh",2],0,rs);R("k",["kk",2],0,Rh);R("hmm",0,0,function(){return""+rs.apply(this)+We(this.minutes(),2)});R("hmmss",0,0,function(){return""+rs.apply(this)+We(this.minutes(),2)+We(this.seconds(),2)});R("Hmm",0,0,function(){return""+this.hours()+We(this.minutes(),2)});R("Hmmss",0,0,function(){return""+this.hours()+We(this.minutes(),2)+We(this.seconds(),2)});function oa(e,t){R(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}oa("a",!0);oa("A",!1);ve("hour","h");xe("hour",13);function aa(e,t){return t._meridiemParse}A("a",aa);A("A",aa);A("H",ce);A("h",ce);A("k",ce);A("HH",ce,Ne);A("hh",ce,Ne);A("kk",ce,Ne);A("hmm",Qo);A("hmmss",Jo);A("Hmm",Qo);A("Hmmss",Jo);te(["H","HH"],pe);te(["k","kk"],function(e,t,r){var n=V(e);t[pe]=n===24?0:n});te(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});te(["h","hh"],function(e,t,r){t[pe]=V(e),z(r).bigHour=!0});te("hmm",function(e,t,r){var n=e.length-2;t[pe]=V(e.substr(0,n)),t[Ue]=V(e.substr(n)),z(r).bigHour=!0});te("hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[pe]=V(e.substr(0,n)),t[Ue]=V(e.substr(n,2)),t[nt]=V(e.substr(i)),z(r).bigHour=!0});te("Hmm",function(e,t,r){var n=e.length-2;t[pe]=V(e.substr(0,n)),t[Ue]=V(e.substr(n))});te("Hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[pe]=V(e.substr(0,n)),t[Ue]=V(e.substr(n,2)),t[nt]=V(e.substr(i))});function jh(e){return(e+"").toLowerCase().charAt(0)==="p"}var qh=/[ap]\.?m?\.?/i,Uh=Gt("Hours",!0);function Bh(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var la={calendar:Au,longDateFormat:Iu,invalidDate:Lu,ordinal:ju,dayOfMonthOrdinalParse:qu,relativeTime:Bu,months:eh,monthsShort:Xo,week:fh,weekdays:vh,weekdaysMin:xh,weekdaysShort:sa,meridiemParse:qh},ue={},Xt={},cr;function Yh(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r0;){if(i=qn(s.slice(0,r).join("-")),i)return i;if(n&&n.length>=r&&Yh(s,n)>=r-1)break;r--}t++}return cr}function zh(e){return e.match("^[^/\\\\]*$")!=null}function qn(e){var t=null,r;if(ue[e]===void 0&&typeof module<"u"&&module&&module.exports&&zh(e))try{t=cr._abbr,r=require,r("./locale/"+e),pt(t)}catch{ue[e]=null}return ue[e]}function pt(e,t){var r;return e&&(_e(t)?r=ct(e):r=ns(e,t),r?cr=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),cr._abbr}function ns(e,t){if(t!==null){var r,n=la;if(t.abbr=e,ue[e]!=null)Vo("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ue[e]._config;else if(t.parentLocale!=null)if(ue[t.parentLocale]!=null)n=ue[t.parentLocale]._config;else if(r=qn(t.parentLocale),r!=null)n=r._config;else return Xt[t.parentLocale]||(Xt[t.parentLocale]=[]),Xt[t.parentLocale].push({name:e,config:t}),null;return ue[e]=new Zi(wi(n,t)),Xt[e]&&Xt[e].forEach(function(i){ns(i.name,i.config)}),pt(e),ue[e]}else return delete ue[e],null}function Vh(e,t){if(t!=null){var r,n,i=la;ue[e]!=null&&ue[e].parentLocale!=null?ue[e].set(wi(ue[e]._config,t)):(n=qn(e),n!=null&&(i=n._config),t=wi(i,t),n==null&&(t.abbr=e),r=new Zi(t),r.parentLocale=ue[e],ue[e]=r),pt(e)}else ue[e]!=null&&(ue[e].parentLocale!=null?(ue[e]=ue[e].parentLocale,e===pt()&&pt(e)):ue[e]!=null&&delete ue[e]);return ue[e]}function ct(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return cr;if(!Be(e)){if(t=qn(e),t)return t;e=[e]}return Hh(e)}function Fh(){return vi(ue)}function is(e){var t,r=e._a;return r&&z(e).overflow===-2&&(t=r[rt]<0||r[rt]>11?rt:r[Fe]<1||r[Fe]>jn(r[we],r[rt])?Fe:r[pe]<0||r[pe]>24||r[pe]===24&&(r[Ue]!==0||r[nt]!==0||r[kt]!==0)?pe:r[Ue]<0||r[Ue]>59?Ue:r[nt]<0||r[nt]>59?nt:r[kt]<0||r[kt]>999?kt:-1,z(e)._overflowDayOfYear&&(tFe)&&(t=Fe),z(e)._overflowWeeks&&t===-1&&(t=Ju),z(e)._overflowWeekday&&t===-1&&(t=Xu),z(e).overflow=t),e}var $h=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Wh=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Gh=/Z|[+-]\d\d(?::?\d\d)?/,Rr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],oi=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Zh=/^\/?Date\((-?\d+)/i,Qh=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Jh={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ca(e){var t,r,n=e._i,i=$h.exec(n)||Wh.exec(n),s,o,a,l,u=Rr.length,d=oi.length;if(i){for(z(e).iso=!0,t=0,r=u;tsr(o)||e._dayOfYear===0)&&(z(e)._overflowDayOfYear=!0),r=ar(o,0,e._dayOfYear),e._a[rt]=r.getUTCMonth(),e._a[Fe]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=i[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[pe]===24&&e._a[Ue]===0&&e._a[nt]===0&&e._a[kt]===0&&(e._nextDay=!0,e._a[pe]=0),e._d=(e._useUTC?ar:hh).apply(null,n),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[pe]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==s&&(z(e).weekdayMismatch=!0)}}function sd(e){var t,r,n,i,s,o,a,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(s=1,o=4,r=Rt(t.GG,e._a[we],lr(le(),1,4).year),n=Rt(t.W,1),i=Rt(t.E,1),(i<1||i>7)&&(l=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,u=lr(le(),s,o),r=Rt(t.gg,e._a[we],u.year),n=Rt(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+s,(t.e<0||t.e>6)&&(l=!0)):i=s),n<1||n>it(r,s,o)?z(e)._overflowWeeks=!0:l!=null?z(e)._overflowWeekday=!0:(a=ia(r,n,i,s,o),e._a[we]=a.year,e._dayOfYear=a.dayOfYear)}O.ISO_8601=function(){};O.RFC_2822=function(){};function os(e){if(e._f===O.ISO_8601){ca(e);return}if(e._f===O.RFC_2822){ua(e);return}e._a=[],z(e).empty=!0;var t=""+e._i,r,n,i,s,o,a=t.length,l=0,u,d;for(i=Fo(e._f,e._locale).match(Qi)||[],d=i.length,r=0;r0&&z(e).unusedInput.push(o),t=t.slice(t.indexOf(n)+n.length),l+=n.length),Ut[s]?(n?z(e).empty=!1:z(e).unusedTokens.push(s),Qu(s,n,e)):e._strict&&!n&&z(e).unusedTokens.push(s);z(e).charsLeftOver=a-l,t.length>0&&z(e).unusedInput.push(t),e._a[pe]<=12&&z(e).bigHour===!0&&e._a[pe]>0&&(z(e).bigHour=void 0),z(e).parsedDateParts=e._a.slice(0),z(e).meridiem=e._meridiem,e._a[pe]=od(e._locale,e._a[pe],e._meridiem),u=z(e).era,u!==null&&(e._a[we]=e._locale.erasConvertYear(u,e._a[we])),ss(e),is(e)}function od(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function ad(e){var t,r,n,i,s,o,a=!1,l=e._f.length;if(l===0){z(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:Dn()});function fa(e,t){var r,n;if(t.length===1&&Be(t[0])&&(t=t[0]),!t.length)return le();for(r=t[0],n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Cd(){if(!_e(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Gi(e,this),e=ha(e),e._a?(t=e._isUTC?Ge(e._a):le(e._a),this._isDSTShifted=this.isValid()&&wd(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ad(){return this.isValid()?!this._isUTC:!1}function Dd(){return this.isValid()?this._isUTC:!1}function ma(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Md=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Nd=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function He(e,t){var r=e,n=null,i,s,o;return Jr(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:st(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=Md.exec(e))?(i=n[1]==="-"?-1:1,r={y:0,d:V(n[Fe])*i,h:V(n[pe])*i,m:V(n[Ue])*i,s:V(n[nt])*i,ms:V(ki(n[kt]*1e3))*i}):(n=Nd.exec(e))?(i=n[1]==="-"?-1:1,r={y:vt(n[2],i),M:vt(n[3],i),w:vt(n[4],i),d:vt(n[5],i),h:vt(n[6],i),m:vt(n[7],i),s:vt(n[8],i)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=Id(le(r.from),le(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),s=new Un(r),Jr(e)&&Z(e,"_locale")&&(s._locale=e._locale),Jr(e)&&Z(e,"_isValid")&&(s._isValid=e._isValid),s}He.fn=Un.prototype;He.invalid=bd;function vt(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Gs(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Id(e,t){var r;return e.isValid()&&t.isValid()?(t=ls(t,e),e.isBefore(t)?r=Gs(e,t):(r=Gs(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function ga(e,t){return function(r,n){var i,s;return n!==null&&!isNaN(+n)&&(Vo(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=r,r=n,n=s),i=He(r,n),ya(this,i,e),this}}function ya(e,t,r,n){var i=t._milliseconds,s=ki(t._days),o=ki(t._months);e.isValid()&&(n=n??!0,o&&ea(e,cn(e,"Month")+o*r),s&&Wo(e,"Date",cn(e,"Date")+s*r),i&&e._d.setTime(e._d.valueOf()+i*r),n&&O.updateOffset(e,s||o))}var Pd=ga(1,"add"),Ld=ga(-1,"subtract");function ba(e){return typeof e=="string"||e instanceof String}function Rd(e){return Ye(e)||br(e)||ba(e)||st(e)||qd(e)||jd(e)||e===null||e===void 0}function jd(e){var t=St(e)&&!$i(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,s,o=n.length;for(i=0;ir.valueOf():r.valueOf()9999?Qr(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ze(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Qr(r,"Z")):Qr(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Xd(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,i,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",s=t+'[")]',this.format(r+n+i+s)}function Kd(e){e||(e=this.isUtc()?O.defaultFormatUtc:O.defaultFormat);var t=Qr(this,e);return this.localeData().postformat(t)}function ef(e,t){return this.isValid()&&(Ye(e)&&e.isValid()||le(e).isValid())?He({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function tf(e){return this.from(le(),e)}function rf(e,t){return this.isValid()&&(Ye(e)&&e.isValid()||le(e).isValid())?He({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function nf(e){return this.to(le(),e)}function wa(e){var t;return e===void 0?this._locale._abbr:(t=ct(e),t!=null&&(this._locale=t),this)}var va=Pe("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function xa(){return this._locale}var dn=1e3,Bt=60*dn,fn=60*Bt,ka=(365*400+97)*24*fn;function Yt(e,t){return(e%t+t)%t}function _a(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-ka:new Date(e,t,r).valueOf()}function Sa(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-ka:Date.UTC(e,t,r)}function sf(e){var t,r;if(e=Le(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Sa:_a,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Yt(t+(this._isUTC?0:this.utcOffset()*Bt),fn);break;case"minute":t=this._d.valueOf(),t-=Yt(t,Bt);break;case"second":t=this._d.valueOf(),t-=Yt(t,dn);break}return this._d.setTime(t),O.updateOffset(this,!0),this}function of(e){var t,r;if(e=Le(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Sa:_a,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=fn-Yt(t+(this._isUTC?0:this.utcOffset()*Bt),fn)-1;break;case"minute":t=this._d.valueOf(),t+=Bt-Yt(t,Bt)-1;break;case"second":t=this._d.valueOf(),t+=dn-Yt(t,dn)-1;break}return this._d.setTime(t),O.updateOffset(this,!0),this}function af(){return this._d.valueOf()-(this._offset||0)*6e4}function lf(){return Math.floor(this.valueOf()/1e3)}function cf(){return new Date(this.valueOf())}function uf(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function hf(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function df(){return this.isValid()?this.toISOString():null}function ff(){return Wi(this)}function pf(){return ht({},z(this))}function mf(){return z(this).overflow}function gf(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}R("N",0,0,"eraAbbr");R("NN",0,0,"eraAbbr");R("NNN",0,0,"eraAbbr");R("NNNN",0,0,"eraName");R("NNNNN",0,0,"eraNarrow");R("y",["y",1],"yo","eraYear");R("y",["yy",2],0,"eraYear");R("y",["yyy",3],0,"eraYear");R("y",["yyyy",4],0,"eraYear");A("N",cs);A("NN",cs);A("NNN",cs);A("NNNN",Ef);A("NNNNN",Cf);te(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var i=r._locale.erasParse(e,n,r._strict);i?z(r).era=i:z(r).invalidEra=e});A("y",Zt);A("yy",Zt);A("yyy",Zt);A("yyyy",Zt);A("yo",Af);te(["y","yy","yyy","yyyy"],we);te(["yo"],function(e,t,r,n){var i;r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[we]=r._locale.eraYearOrdinalParse(e,i):t[we]=parseInt(e,10)});function yf(e,t){var r,n,i,s=this._eras||ct("en")._eras;for(r=0,n=s.length;r=0)return s[n]}function wf(e,t){var r=e.since<=e.until?1:-1;return t===void 0?O(e.since).year():O(e.since).year()+(t-e.offset)*r}function vf(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;es&&(t=s),Rf.call(this,e,t,r,n,i))}function Rf(e,t,r,n,i){var s=ia(e,t,r,n,i),o=ar(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}R("Q",0,"Qo","quarter");ve("quarter","Q");xe("quarter",7);A("Q",Go);te("Q",function(e,t){t[rt]=(V(e)-1)*3});function jf(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}R("D",["DD",2],"Do","date");ve("date","D");xe("date",9);A("D",ce);A("DD",ce,Ne);A("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});te(["D","DD"],Fe);te("Do",function(e,t){t[Fe]=V(e.match(ce)[0])});var Oa=Gt("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear");ve("dayOfYear","DDD");xe("dayOfYear",4);A("DDD",In);A("DDDD",Zo);te(["DDD","DDDD"],function(e,t,r){r._dayOfYear=V(e)});function qf(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}R("m",["mm",2],0,"minute");ve("minute","m");xe("minute",14);A("m",ce);A("mm",ce,Ne);te(["m","mm"],Ue);var Uf=Gt("Minutes",!1);R("s",["ss",2],0,"second");ve("second","s");xe("second",15);A("s",ce);A("ss",ce,Ne);te(["s","ss"],nt);var Bf=Gt("Seconds",!1);R("S",0,0,function(){return~~(this.millisecond()/100)});R(0,["SS",2],0,function(){return~~(this.millisecond()/10)});R(0,["SSS",3],0,"millisecond");R(0,["SSSS",4],0,function(){return this.millisecond()*10});R(0,["SSSSS",5],0,function(){return this.millisecond()*100});R(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});R(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});R(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});R(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ve("millisecond","ms");xe("millisecond",16);A("S",In,Go);A("SS",In,Ne);A("SSS",In,Zo);var dt,Ea;for(dt="SSSS";dt.length<=9;dt+="S")A(dt,Zt);function Yf(e,t){t[kt]=V(("0."+e)*1e3)}for(dt="S";dt.length<=9;dt+="S")te(dt,Yf);Ea=Gt("Milliseconds",!1);R("z",0,0,"zoneAbbr");R("zz",0,0,"zoneName");function Hf(){return this._isUTC?"UTC":""}function zf(){return this._isUTC?"Coordinated Universal Time":""}var w=wr.prototype;w.add=Pd;w.calendar=Yd;w.clone=Hd;w.diff=Zd;w.endOf=of;w.format=Kd;w.from=ef;w.fromNow=tf;w.to=rf;w.toNow=nf;w.get=Vu;w.invalidAt=mf;w.isAfter=zd;w.isBefore=Vd;w.isBetween=Fd;w.isSame=$d;w.isSameOrAfter=Wd;w.isSameOrBefore=Gd;w.isValid=ff;w.lang=va;w.locale=wa;w.localeData=xa;w.max=dd;w.min=hd;w.parsingFlags=pf;w.set=Fu;w.startOf=sf;w.subtract=Ld;w.toArray=uf;w.toObject=hf;w.toDate=cf;w.toISOString=Jd;w.inspect=Xd;typeof Symbol<"u"&&Symbol.for!=null&&(w[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});w.toJSON=df;w.toString=Qd;w.unix=lf;w.valueOf=af;w.creationData=gf;w.eraName=vf;w.eraNarrow=xf;w.eraAbbr=kf;w.eraYear=_f;w.year=na;w.isLeapYear=uh;w.weekYear=Df;w.isoWeekYear=Mf;w.quarter=w.quarters=jf;w.month=ta;w.daysInMonth=ah;w.week=w.weeks=gh;w.isoWeek=w.isoWeeks=yh;w.weeksInYear=Pf;w.weeksInWeekYear=Lf;w.isoWeeksInYear=Nf;w.isoWeeksInISOWeekYear=If;w.date=Oa;w.day=w.days=Dh;w.weekday=Mh;w.isoWeekday=Nh;w.dayOfYear=qf;w.hour=w.hours=Uh;w.minute=w.minutes=Uf;w.second=w.seconds=Bf;w.millisecond=w.milliseconds=Ea;w.utcOffset=xd;w.utc=_d;w.local=Sd;w.parseZone=Td;w.hasAlignedHourOffset=Od;w.isDST=Ed;w.isLocal=Ad;w.isUtcOffset=Dd;w.isUtc=ma;w.isUTC=ma;w.zoneAbbr=Hf;w.zoneName=zf;w.dates=Pe("dates accessor is deprecated. Use date instead.",Oa);w.months=Pe("months accessor is deprecated. Use month instead",ta);w.years=Pe("years accessor is deprecated. Use year instead",na);w.zone=Pe("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",kd);w.isDSTShifted=Pe("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Cd);function Vf(e){return le(e*1e3)}function Ff(){return le.apply(null,arguments).parseZone()}function Ca(e){return e}var Q=Zi.prototype;Q.calendar=Du;Q.longDateFormat=Pu;Q.invalidDate=Ru;Q.ordinal=Uu;Q.preparse=Ca;Q.postformat=Ca;Q.relativeTime=Yu;Q.pastFuture=Hu;Q.set=Cu;Q.eras=yf;Q.erasParse=bf;Q.erasConvertYear=wf;Q.erasAbbrRegex=Tf;Q.erasNameRegex=Sf;Q.erasNarrowRegex=Of;Q.months=nh;Q.monthsShort=ih;Q.monthsParse=oh;Q.monthsRegex=ch;Q.monthsShortRegex=lh;Q.week=dh;Q.firstDayOfYear=mh;Q.firstDayOfWeek=ph;Q.weekdays=Th;Q.weekdaysMin=Eh;Q.weekdaysShort=Oh;Q.weekdaysParse=Ah;Q.weekdaysRegex=Ih;Q.weekdaysShortRegex=Ph;Q.weekdaysMinRegex=Lh;Q.isPM=jh;Q.meridiem=Bh;function pn(e,t,r,n){var i=ct(),s=Ge().set(n,t);return i[r](s,e)}function Aa(e,t,r){if(st(e)&&(t=e,e=void 0),e=e||"",t!=null)return pn(e,t,r,"month");var n,i=[];for(n=0;n<12;n++)i[n]=pn(e,n,r,"month");return i}function hs(e,t,r,n){typeof e=="boolean"?(st(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,st(t)&&(r=t,t=void 0),t=t||"");var i=ct(),s=e?i._week.dow:0,o,a=[];if(r!=null)return pn(t,(r+s)%7,n,"day");for(o=0;o<7;o++)a[o]=pn(t,(o+s)%7,n,"day");return a}function $f(e,t){return Aa(e,t,"months")}function Wf(e,t){return Aa(e,t,"monthsShort")}function Gf(e,t,r){return hs(e,t,r,"weekdays")}function Zf(e,t,r){return hs(e,t,r,"weekdaysShort")}function Qf(e,t,r){return hs(e,t,r,"weekdaysMin")}pt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=V(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});O.lang=Pe("moment.lang is deprecated. Use moment.locale instead.",pt);O.langData=Pe("moment.langData is deprecated. Use moment.localeData instead.",ct);var Xe=Math.abs;function Jf(){var e=this._data;return this._milliseconds=Xe(this._milliseconds),this._days=Xe(this._days),this._months=Xe(this._months),e.milliseconds=Xe(e.milliseconds),e.seconds=Xe(e.seconds),e.minutes=Xe(e.minutes),e.hours=Xe(e.hours),e.months=Xe(e.months),e.years=Xe(e.years),this}function Da(e,t,r,n){var i=He(t,r);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function Xf(e,t){return Da(this,e,t,1)}function Kf(e,t){return Da(this,e,t,-1)}function Zs(e){return e<0?Math.floor(e):Math.ceil(e)}function ep(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,i,s,o,a,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Zs(Si(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,i=Ie(e/1e3),n.seconds=i%60,s=Ie(i/60),n.minutes=s%60,o=Ie(s/60),n.hours=o%24,t+=Ie(o/24),l=Ie(Ma(t)),r+=l,t-=Zs(Si(l)),a=Ie(r/12),r%=12,n.days=t,n.months=r,n.years=a,this}function Ma(e){return e*4800/146097}function Si(e){return e*146097/4800}function tp(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=Le(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+Ma(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Si(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function rp(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+V(this._months/12)*31536e6:NaN}function ut(e){return function(){return this.as(e)}}var np=ut("ms"),ip=ut("s"),sp=ut("m"),op=ut("h"),ap=ut("d"),lp=ut("w"),cp=ut("M"),up=ut("Q"),hp=ut("y");function dp(){return He(this)}function fp(e){return e=Le(e),this.isValid()?this[e+"s"]():NaN}function Dt(e){return function(){return this.isValid()?this._data[e]:NaN}}var pp=Dt("milliseconds"),mp=Dt("seconds"),gp=Dt("minutes"),yp=Dt("hours"),bp=Dt("days"),wp=Dt("months"),vp=Dt("years");function xp(){return Ie(this.days()/7)}var tt=Math.round,jt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kp(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}function _p(e,t,r,n){var i=He(e).abs(),s=tt(i.as("s")),o=tt(i.as("m")),a=tt(i.as("h")),l=tt(i.as("d")),u=tt(i.as("M")),d=tt(i.as("w")),f=tt(i.as("y")),c=s<=r.ss&&["s",s]||s0,c[4]=n,kp.apply(null,c)}function Sp(e){return e===void 0?tt:typeof e=="function"?(tt=e,!0):!1}function Tp(e,t){return jt[e]===void 0?!1:t===void 0?jt[e]:(jt[e]=t,e==="s"&&(jt.ss=t-1),!0)}function Op(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=jt,i,s;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},jt,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),i=this.localeData(),s=_p(this,!r,n,i),r&&(s=i.pastFuture(+this,s)),i.postformat(s)}var ai=Math.abs;function Pt(e){return(e>0)-(e<0)||+e}function Yn(){if(!this.isValid())return this.localeData().invalidDate();var e=ai(this._milliseconds)/1e3,t=ai(this._days),r=ai(this._months),n,i,s,o,a=this.asSeconds(),l,u,d,f;return a?(n=Ie(e/60),i=Ie(n/60),e%=60,n%=60,s=Ie(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",u=Pt(this._months)!==Pt(a)?"-":"",d=Pt(this._days)!==Pt(a)?"-":"",f=Pt(this._milliseconds)!==Pt(a)?"-":"",l+"P"+(s?u+s+"Y":"")+(r?u+r+"M":"")+(t?d+t+"D":"")+(i||n||e?"T":"")+(i?f+i+"H":"")+(n?f+n+"M":"")+(e?f+o+"S":"")):"P0D"}var W=Un.prototype;W.isValid=yd;W.abs=Jf;W.add=Xf;W.subtract=Kf;W.as=tp;W.asMilliseconds=np;W.asSeconds=ip;W.asMinutes=sp;W.asHours=op;W.asDays=ap;W.asWeeks=lp;W.asMonths=cp;W.asQuarters=up;W.asYears=hp;W.valueOf=rp;W._bubble=ep;W.clone=dp;W.get=fp;W.milliseconds=pp;W.seconds=mp;W.minutes=gp;W.hours=yp;W.days=bp;W.weeks=xp;W.months=wp;W.years=vp;W.humanize=Op;W.toISOString=Yn;W.toString=Yn;W.toJSON=Yn;W.locale=wa;W.localeData=xa;W.toIsoString=Pe("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Yn);W.lang=va;R("X",0,0,"unix");R("x",0,0,"valueOf");A("x",Ln);A("X",Wu);te("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});te("x",function(e,t,r){r._d=new Date(V(e))});//! moment.js -O.version="2.29.4";Ou(le);O.fn=w;O.min=fd;O.max=pd;O.now=md;O.utc=Ge;O.unix=Vf;O.months=$f;O.isDate=br;O.locale=pt;O.invalid=Dn;O.duration=He;O.isMoment=Ye;O.weekdays=Gf;O.parseZone=Ff;O.localeData=ct;O.isDuration=Jr;O.monthsShort=Wf;O.weekdaysMin=Qf;O.defineLocale=ns;O.updateLocale=Vh;O.locales=Fh;O.weekdaysShort=Zf;O.normalizeUnits=Le;O.relativeTimeRounding=Sp;O.relativeTimeThreshold=Tp;O.calendarFormat=Bd;O.prototype=w;O.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Ep=/\B([A-Z])/g,Cp=e=>e.replace(Ep,"-$1").toLowerCase();function yt(e){return An((t,r)=>{const n=e||Cp(r);t.emits||(t.emits=[]),t.emits.push(n);const i=t.methods[r];t.methods[r]=function(...s){const o=l=>{l===void 0?s.length===0?this.$emit(n):s.length===1?this.$emit(n,s[0]):this.$emit(n,...s):(s.unshift(l),this.$emit(n,...s))},a=i.apply(this,s);return Ap(a)?a.then(o):o(a),a}})}function Ap(e){return e instanceof Promise||e&&typeof e.then=="function"}function Qe(e){return An((t,r)=>{t.props||(t.props=Object.create(null)),t.props[r]=e})}function ds(e){return An((t,r)=>{t.computed||(t.computed=Object.create(null)),t.computed[r]={cache:!1,get(){return this.$refs[e||r]}}})}function Dp(e,t){return An((r,n)=>{r.watch||(r.watch=Object.create(null));const i=r.watch;typeof i[e]=="object"&&!Array.isArray(i[e])?i[e]=[i[e]]:typeof i[e]>"u"&&(i[e]=[]),i[e].push(Object.assign({handler:n},t))})}const Mp={viewBox:"0 0 576 512",width:"1.2em",height:"1.2em"},Np=N("path",{fill:"currentColor",d:"M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0a144 144 0 1 1-288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"},null,-1),Ip=[Np];function Pp(e,t){return L(),H("svg",Mp,Ip)}const Lp={name:"fa6-solid-eye",render:Pp},Rp={viewBox:"0 0 512 512",width:"1.2em",height:"1.2em"},jp=N("path",{fill:"currentColor",d:"M96 0C60.7 0 32 28.7 32 64v384c0 35.3 28.7 64 64 64h288c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H96zm112 288h64c44.2 0 80 35.8 80 80c0 8.8-7.2 16-16 16H144c-8.8 0-16-7.2-16-16c0-44.2 35.8-80 80-80zm-32-96a64 64 0 1 1 128 0a64 64 0 1 1-128 0zM512 80c0-8.8-7.2-16-16-16s-16 7.2-16 16v64c0 8.8 7.2 16 16 16s16-7.2 16-16V80zm-16 112c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16s16-7.2 16-16v-64c0-8.8-7.2-16-16-16zm16 144c0-8.8-7.2-16-16-16s-16 7.2-16 16v64c0 8.8 7.2 16 16 16s16-7.2 16-16v-64z"},null,-1),qp=[jp];function Up(e,t){return L(),H("svg",Rp,qp)}const Bp={name:"fa6-solid-address-book",render:Up},Yp={viewBox:"0 0 384 512",width:"1.2em",height:"1.2em"},Hp=N("path",{fill:"currentColor",d:"M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80v352c0 17.4 9.4 33.4 24.5 41.9S58.2 482 73 473l288-176c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"},null,-1),zp=[Hp];function Vp(e,t){return L(),H("svg",Yp,zp)}const Na={name:"fa6-solid-play",render:Vp},Fp={viewBox:"0 0 512 512",width:"1.2em",height:"1.2em"},$p=N("path",{fill:"currentColor",d:"M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32v242.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64h384c35.3 0 64-28.7 64-64v-32c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48a24 24 0 1 1 0-48z"},null,-1),Wp=[$p];function Gp(e,t){return L(),H("svg",Fp,Wp)}const Zp={name:"fa6-solid-download",render:Gp};function Ti(e){return O.utc(O.duration(e,"seconds").asMilliseconds()).format("mm:ss")}function Qp(e){for(const t of["B","KiB","MiB","GiB","TiB","PiB"]){if(Math.abs(e)<1024)return`${e.toFixed(1)} ${t}`;e/=1024}return"> 1024 PiB"}var Jp=Object.defineProperty,Xp=Object.getOwnPropertyDescriptor,kr=(e,t,r,n)=>{for(var i=n>1?void 0:n?Xp(t,r):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Jp(t,r,i),i};function Kp(e,t){let r=document.createElement("a");r.download=t,r.href=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}let Tt=class extends Wt{constructor(){super(...arguments),J(this,"f"),J(this,"hasHead"),J(this,"gif")}get pollFile(){return this.f}get locationFile(){return this.f}get spoilerClasses(){return{media_spoiler:this.f.spoiler,clickable:this.f.spoiler}}fileThumbClick(){if(!this.f.media_type)return console.log(`Downloading file: ${this.f.url}`),Kp(this.f.url,this.f.url.split("/").slice(-1)[0]);this.play()}play(){return this.f}get shouldDisplayDetail(){return!this.f.media_type||this.isAudioOrVoice||this.f.media_type=="contact"}get isAudioOrVoice(){return this.f.media_type=="audio_file"||this.f.media_type=="voice_message"}get fileTitle(){const e=this.f;if(!e.media_type)return e.original_name??e.url.split("/").slice(-1)[0];if(e.media_type=="voice_message")return"Voice Message";if(e.media_type=="audio_file"){let t="";return e.performer&&(t+=e.performer+" - "),e.title&&(t+=e.title),t}if(e.media_type=="contact"){let t=e.first_name??"";return e.last_name&&(t+=" "+e.last_name),t}}get duration(){return Ti(this.f.duration)}get size(){return Qp(this.f.size)}};kr([Qe({required:!0})],Tt.prototype,"f",2);kr([Qe({required:!0})],Tt.prototype,"hasHead",2);kr([ds()],Tt.prototype,"gif",2);kr([yt("play-file")],Tt.prototype,"play",1);Tt=kr([yr({components:{Location:Zr(()=>ei(()=>import("./Location-78416ba3-BooSv_9a.js"),__vite__mapDeps([0,1,2]))),Poll:Zr(()=>ei(()=>import("./Poll-aeb298b2-CmAHaRvX.js"),__vite__mapDeps([3,1,2]))),VideoPlayer:Zr(()=>ei(()=>import("./VideoPlayer-328c0f9f-BuPfpDYc.js"),__vite__mapDeps([4,1,2])))}})],Tt);const _r=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},em={key:0,class:"file"},tm=["src"],rm={class:"icon fbox-center"},nm={class:"detail fbox-vcenter"},im={key:0,class:"title"},sm={class:"file-detail"},om={key:0,class:"duration"},am={key:1,class:"size"},lm={key:2,class:"phone"},cm={key:1,class:"sticker"},um=["src"],hm=["src"],dm=["src"],fm=["src"],pm=["src"];function mm(e,t,r,n,i,s){const o=Zp,a=Na,l=Bp,u=_t("VideoPlayer"),d=_t("Poll"),f=_t("Location");return L(),H(sn,null,[e.shouldDisplayDetail?(L(),H("div",em,[N("div",{class:"thumb clickable",onClick:t[0]||(t[0]=(...c)=>e.fileThumbClick&&e.fileThumbClick(...c))},[N("img",{src:e.f.thumb??"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",alt:""},null,8,tm),N("div",rm,[e.f.media_type?e.isAudioOrVoice?(L(),Ae(a,{key:1})):e.f.media_type==="contact"?(L(),Ae(l,{key:2})):ee("",!0):(L(),Ae(o,{key:0}))])]),N("div",nm,[e.fileTitle?(L(),H("div",im,ge(e.fileTitle),1)):ee("",!0),N("div",sm,[e.f.duration?(L(),H("span",om,ge(e.duration),1)):ee("",!0),e.f.size?(L(),H("span",am,ge(e.size),1)):ee("",!0),e.f.phone_number?(L(),H("span",lm,ge(e.f.phone_number),1)):ee("",!0)])])])):ee("",!0),e.f.media_type==="sticker"?(L(),H("div",cm,[e.f.url.toLowerCase().endsWith("webm")?(L(),H("video",{key:0,src:e.f.url,preload:"auto",muted:"",autoplay:"",loop:"",playsinline:"",disablepictureinpicture:""},[e.f.thumb?(L(),H("img",{key:0,src:e.f.thumb,alt:""},null,8,hm)):ee("",!0)],8,um)):(L(),H("img",{key:1,src:e.f.url,alt:""},null,8,dm))])):ee("",!0),e.f.media_type==="video_file"?(L(),H("div",{key:2,class:je(["video no-head",{"has-head":e.hasHead}])},[N("div",{onClick:t[1]||(t[1]=c=>e.f.spoiler=!1),class:je({clickable:e.f.spoiler})},[mt(u,{f:e.f,class:je(e.spoilerClasses)},null,8,["f","class"])],2)],2)):ee("",!0),e.f.media_type==="animation"?(L(),H("div",{key:3,class:je(["video no-head",{"has-head":e.hasHead}])},[N("video",{src:e.f.url,preload:"auto",muted:"",loop:"",playsinline:"",disablepictureinpicture:"",ref:"gif",class:je(e.spoilerClasses),onClick:t[2]||(t[2]=c=>{e.f.spoiler=!1,e.gif.play()})},[e.f.thumb?(L(),H("img",{key:0,src:e.f.thumb,alt:""},null,8,pm)):ee("",!0)],10,fm)],2)):ee("",!0),e.f.media_type==="poll"?(L(),Ae(d,{key:4,f:e.pollFile},null,8,["f"])):ee("",!0),e.f.media_type==="location"?(L(),Ae(f,{key:5,class:je(["location no-head",{"has-head":e.hasHead}]),f:e.locationFile},null,8,["class","f"])):ee("",!0)],64)}const gm=_r(Tt,[["render",mm],["__scopeId","data-v-9944bade"]]);parseInt(getComputedStyle(document.documentElement).fontSize,10);const Qs=(e,t,r)=>Math.min(r,Math.max(t,e)),I={None:0,Top:1,Right:2,Bottom:4,Left:8};function ym(e){return e.map(t=>t>1.2?"w":t<.8?"n":"q").join("")}function bm(e){return e.reduce((t,r)=>r+t,1)/e.length}function Js(e,t){return e.reduce((r,n)=>r+n,t)}function wm(e,t){return e.map(r=>t>1.1?Qs(r,1,2.75):Qs(r,.6667,1))}function vm(e){const t={width:0,height:0};return e.forEach(({dimensions:r,sides:n})=>{n&I.Right&&(t.width=r.width+r.x),n&I.Bottom&&(t.height=r.height+r.y)}),t}function xm(e,t,r){const n=e.map(d=>d.width/d.height),i=ym(n),s=bm(n),o=n.length,a=n.some(d=>d>2);let l;const u={ratios:n,proportions:i,averageRatio:s,maxWidth:t,minWidth:100,maxHeight:r,spacing:2};if(o===1){const d=n[0];l=[{dimensions:{x:0,y:0,width:t,height:d>1?r/d:r},sides:4}]}else o>=5||a?l=km(u):o===2?l=_m(u):o===3?l=Em(u):l=Dm(u);return{layout:l,containerStyle:vm(l)}}function km({ratios:e,averageRatio:t,maxWidth:r,minWidth:n,spacing:i,maxHeight:s=4*r/3}){const o=wm(e,t),a=e.length,l=new Array(a),u=[],d=(k,T)=>{const M=o.slice(k,k+T),P=Js(M,0);return(r-(T-1)*i)/P},f=k=>{const T=[];let M=0;k.forEach(P=>{T.push(d(M,P)),M+=P}),u.push({lineCounts:k,heights:T})};for(let k=1;k!==a;++k){const T=a-k;k<=3&&T<=3&&f([k,T])}for(let k=1;k!==a-1;++k)for(let T=1;T!==a-k;++T){const M=a-k-T;k<=3&&T<=(t<.85?4:3)&&M<=3&&f([k,T,M])}for(let k=1;k!==a-1;++k)for(let T=1;T!==a-k;++T)for(let M=1;M!==a-k-T;++M){const P=a-k-T-M;k<=3&&T<=3&&M<=3&&P<=4&&f([k,T,M,P])}let c,h=0;for(let k=0;k{for(let m=1;m!==P;++m)if(M[m-1]>M[m])return 1.5;return 1})(),ye=Math.abs($-s)*G*de;(!c||ye1.4&&t[1]-t[0]<.2?Sm(e):r==="ww"||r==="qq"?Tm(e):Om(e)}function Sm(e){const{ratios:t,maxWidth:r,spacing:n,maxHeight:i}=e,s=Math.round(Math.min(r/t[0],Math.min(r/t[1],(i-n)/2)));return[{dimensions:{x:0,y:0,width:r,height:s},sides:I.Left|I.Top|I.Right},{dimensions:{x:0,y:s+n,width:r,height:s},sides:I.Left|I.Bottom|I.Right}]}function Tm(e){const{ratios:t,maxWidth:r,spacing:n,maxHeight:i}=e,s=(r-n)/2,o=Math.round(Math.min(s/t[0],Math.min(s/t[1],i)));return[{dimensions:{x:0,y:0,width:s,height:o},sides:I.Top|I.Left|I.Bottom},{dimensions:{x:s+n,y:0,width:s,height:o},sides:I.Top|I.Right|I.Bottom}]}function Om(e){const{ratios:t,minWidth:r,maxWidth:n,spacing:i,maxHeight:s}=e,o=Math.round(1.5*r),a=Math.min(Math.round(Math.max(.4*(n-i),(n-i)/t[0]/(1/t[0]+1/t[1]))),n-i-o),l=n-a-i,u=Math.min(s,Math.round(Math.min(l/t[0],a/t[1])));return[{dimensions:{x:0,y:0,width:l,height:u},sides:I.Top|I.Left|I.Bottom},{dimensions:{x:l+i,y:0,width:a,height:u},sides:I.Top|I.Right|I.Bottom}]}function Em(e){const{proportions:t}=e;return t[0]==="n"?Cm(e):Am(e)}function Cm(e){const{maxHeight:t,spacing:r,ratios:n,maxWidth:i,minWidth:s}=e,o=t,a=Math.round(Math.min((t-r)/2,n[1]*(i-r)/(n[2]+n[1]))),l=o-a-r,u=Math.max(s,Math.round(Math.min((i-r)/2,Math.min(a*n[2],l*n[1])))),d=Math.min(Math.round(o*n[0]),i-r-u);return[{dimensions:{x:0,y:0,width:d,height:o},sides:I.Top|I.Left|I.Bottom},{dimensions:{x:d+r,y:0,width:u,height:l},sides:I.Top|I.Right},{dimensions:{x:d+r,y:l+r,width:u,height:a},sides:I.Bottom|I.Right}]}function Am(e){const{maxWidth:t,ratios:r,maxHeight:n,spacing:i}=e,s=t,o=Math.round(Math.min(s/r[0],.66*(n-i))),a=(t-i)/2,l=Math.min(n-o-i,Math.round(Math.min(a/r[1],a/r[2]))),u=s-a-i;return[{dimensions:{x:0,y:0,width:s,height:o},sides:I.Left|I.Top|I.Right},{dimensions:{x:0,y:o+i,width:a,height:l},sides:I.Bottom|I.Left},{dimensions:{x:a+i,y:o+i,width:u,height:l},sides:I.Bottom|I.Right}]}function Dm(e){const{proportions:t}=e;return t[0]==="w"?Mm(e):Nm(e)}function Mm({maxWidth:e,ratios:t,spacing:r,maxHeight:n,minWidth:i}){const s=e,o=Math.round(Math.min(s/t[0],.66*(n-r))),a=Math.round((e-2*r)/(t[1]+t[2]+t[3])),l=Math.max(i,Math.round(Math.min(.4*(e-2*r),a*t[1]))),u=Math.round(Math.max(Math.max(i,.33*(e-2*r)),a*t[3])),d=s-l-u-2*r,f=Math.min(n-o-r,a);return[{dimensions:{x:0,y:0,width:s,height:o},sides:I.Left|I.Top|I.Right},{dimensions:{x:0,y:o+r,width:l,height:f},sides:I.Bottom|I.Left},{dimensions:{x:l+r,y:o+r,width:d,height:f},sides:I.Bottom},{dimensions:{x:l+r+d+r,y:o+r,width:u,height:f},sides:I.Right|I.Bottom}]}function Nm({maxHeight:e,ratios:t,maxWidth:r,spacing:n,minWidth:i}){const s=e,o=Math.round(Math.min(s*t[0],.6*(r-n))),a=Math.round((e-2*n)/(1/t[1]+1/t[2]+1/t[3])),l=Math.round(a/t[1]),u=Math.round(a/t[2]),d=s-l-u-2*n,f=Math.max(i,Math.min(r-o-n,a));return[{dimensions:{x:0,y:0,width:o,height:s},sides:I.Top|I.Left|I.Bottom},{dimensions:{x:o+n,y:0,width:f,height:l},sides:I.Top|I.Right},{dimensions:{x:o+n,y:l+n,width:f,height:u},sides:I.Right},{dimensions:{x:o+n,y:l+u+2*n,width:f,height:d},sides:I.Bottom|I.Right}]}var Im=Object.defineProperty,Pm=Object.getOwnPropertyDescriptor,Sr=(e,t,r,n)=>{for(var i=n>1?void 0:n?Pm(t,r):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Im(t,r,i),i};let Ot=class extends Wt{constructor(){super(...arguments),J(this,"p"),J(this,"postsUrl"),J(this,"el"),J(this,"sizeScale",1)}get text(){if(this.p.text)return this.p.text}get fwdUrl(){return typeof this.p.forwarded_from=="string"?void 0:this.p.forwarded_from.url}get fwdName(){return typeof this.p.forwarded_from=="string"?this.p.forwarded_from:this.p.forwarded_from.name}get dims(){return console.log(`Calculating dimensions for ${this.p.id}...`),xm(this.p.images,450,450)}get containerStyle(){const e=this.sizeScale,t=this.dims.containerStyle;return{width:t.width*e+"px",height:t.height*e+"px"}}getImageStyle(e){const t=this.sizeScale,r=this.dims.layout[e].dimensions;return{left:r.x*t+"px",top:r.y*t+"px",width:r.width*t+"px",height:r.height*t+"px"}}clickReply(){return this.p.reply.id}refreshSize(){this.sizeScale=this.el.clientWidth/450}mounted(){this.initEmoji(),this.refreshSize(),window.addEventListener("resize",this.refreshSize)}unmounted(){window.removeEventListener("resize",this.refreshSize)}replaceUrl(e){return new URL(e,this.postsUrl).toString()}initEmoji(){document.querySelectorAll("i.custom-emoji:not(.init)").forEach(e=>{const t=this.replaceUrl(e.getAttribute("emoji-src"));e.classList.add("init"),t.endsWith("webm")?e.innerHTML=``:e.innerHTML=``})}clickImg(e,t){if(e.spoiler){e.spoiler=!1;return}this.$emit("click-img",t)}};Sr([Qe({required:!0})],Ot.prototype,"p",2);Sr([Qe({required:!0})],Ot.prototype,"postsUrl",2);Sr([ds("post")],Ot.prototype,"el",2);Sr([yt("click-reply")],Ot.prototype,"clickReply",1);Ot=Sr([yr({components:{FileView:gm}})],Ot);const Ia=e=>(On("data-v-95a034ba"),e=e(),En(),e),Lm=["id"],Rm={class:"head unselectable"},jm={key:0,class:"forward"},qm=["href"],Um={key:0,class:"thumb-wrap"},Bm=["src"],Ym={class:"mtext"},Hm=Ia(()=>N("div",{class:"reply-to"},"Reply to:",-1)),zm=["innerHTML"],Vm=["src","onClick"],Fm={key:2,class:"files"},$m=["innerHTML"],Wm={class:"info font-code unselectable"},Gm={class:"id"},Zm=Ia(()=>N("div",{class:"f-grow1"},null,-1)),Qm={key:0,class:"author"},Jm={class:"date"},Xm={key:1,class:"views"};function Km(e,t,r,n,i,s){const o=_t("FileView"),a=Lp;return L(),H("div",{class:je(["post tgb-card",{service:e.p.type==="service"}]),id:`message-${e.p.id}`,ref:"post"},[N("div",Rm,[e.p.forwarded_from?(L(),H("div",jm,[nr(" Forwarded from: "),N("a",{href:e.fwdUrl},ge(e.fwdName),9,qm)])):ee("",!0)]),e.p.reply?(L(),H("div",{key:0,class:"reply undraggable clickable",onClick:t[0]||(t[0]=(...l)=>e.clickReply&&e.clickReply(...l))},[e.p.reply.thumb?(L(),H("div",Um,[N("img",{class:"thumb",src:e.p.reply.thumb,alt:"",loading:"lazy"},null,8,Bm)])):ee("",!0),N("div",Ym,[Hm,N("div",{class:"reply-text",innerHTML:e.p.reply.text},null,8,zm)])])):ee("",!0),e.p.images?(L(),H("div",{key:1,class:je(["images",{"has-head":e.p.reply||e.p.forwarded_from}]),style:pi(e.containerStyle)},[(L(!0),H(sn,null,fi(e.p.images,(l,u)=>(L(),H("div",{class:"image_container",key:u,style:pi(e.getImageStyle(u))},[N("img",{src:l.url,alt:"image",loading:"lazy",class:je(["clickable",{media_spoiler:l.spoiler}]),onClick:d=>e.clickImg(l,u),style:{inset:"0"}},null,10,Vm)],4))),128))],6)):ee("",!0),e.p.files?(L(),H("div",Fm,[(L(!0),H(sn,null,fi(e.p.files,l=>(L(),Ae(o,{f:l,"has-head":!!(e.p.reply||e.p.forwarded_from||e.p.images),onPlayFile:t[1]||(t[1]=u=>e.$emit("play-file",u))},null,8,["f","has-head"]))),256))])):ee("",!0),N("div",{class:"text",innerHTML:e.text},null,8,$m),N("div",Wm,[N("div",Gm,"#"+ge(e.p.id),1),Zm,e.p.author?(L(),H("div",Qm,ge(e.p.author),1)):ee("",!0),N("div",Jm,ge(e.p.date),1),e.p.views?(L(),H("div",Xm,[nr(ge(e.p.views)+" ",1),mt(a)])):ee("",!0)])],10,Lm)}const e0=_r(Ot,[["render",Km],["__scopeId","data-v-95a034ba"]]);function t0(e,t){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}function r0(e,t){for(;(t=t.parentElement)&&t.tagName.toLowerCase()!=e;);return t}function Xs(){const e=document.querySelectorAll(".spoiler");console.log("Spoilers initialized."),e.forEach(t=>{if(t.classList.contains("spoiler-init"))return;t.classList.add("spoiler-init");const r=t0("post",t),n=r?.querySelectorAll(".spoiler");function i(){t.classList.toggle("spoiler-visible"),console.log(`Spoiler clicked: ${t}`),r&&n?.forEach(o=>{o!=t&&o.classList.toggle("spoiler-visible")})}const s=r0("a",t);if(s){s.addEventListener("click",o=>{t.classList.contains("spoiler-visible")||(i(),o.preventDefault())});return}t.addEventListener("click",i)})}const n0={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},i0=N("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512L340.864 831.872a30.592 30.592 0 0 0 0 42.752a29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),s0=[i0];function o0(e,t){return L(),H("svg",n0,s0)}const a0={name:"ep-arrow-right",render:o0},l0={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},c0=N("path",{fill:"currentColor",d:"M609.408 149.376L277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0a30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688a29.12 29.12 0 0 0-41.728 0z"},null,-1),u0=[c0];function h0(e,t){return L(),H("svg",l0,u0)}const d0={name:"ep-arrow-left",render:h0},f0={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},p0=N("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-253.696l236.288-236.352l45.248 45.248L508.8 704L192 387.2l45.248-45.248L480 584.704V128h64v450.304z"},null,-1),m0=[p0];function g0(e,t){return L(),H("svg",f0,m0)}const y0={name:"ep-download",render:g0},b0={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},w0=N("path",{fill:"currentColor",d:"M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),v0=[w0];function x0(e,t){return L(),H("svg",b0,v0)}const k0={name:"ep-close",render:x0};var Ks="Control",eo="Meta",_0="Escape",S0="ArrowLeft",T0="ArrowRight",O0=function(e,t,r,n){var i=typeof n<"u"?[n,e]:[e],s=new Blob(i,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob<"u")window.navigator.msSaveBlob(s,t);else{var o=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(s):window.webkitURL.createObjectURL(s),a=document.createElement("a");a.style.display="none",a.href=o,a.setAttribute("download",t),typeof a.download>"u"&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),setTimeout(function(){document.body.removeChild(a),window.URL.revokeObjectURL(o)},200)}};const E0=Jc(O0);var C0=Object.defineProperty,A0=Object.getOwnPropertyDescriptor,Tr=(e,t,r,n)=>{for(var i=n>1?void 0:n?A0(t,r):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&C0(t,r,i),i};let Et=class extends Wt{constructor(){super(...arguments),J(this,"imgs"),J(this,"index"),J(this,"ctrlDown",!1),J(this,"zoom",1)}get img(){if(this.imgs)return this.imgs[this.index]}get isOpen(){return!!this.img}get hasPrev(){return this.index>0}get hasNext(){return this.index+1=this.imgs.length||(this.zoom=1,this._rawUpdateIndex(t))}_rawUpdateIndex(e){return e}keydown(e){if(this.isOpen){if(e.code===_0)return this.close();if(e.code===S0)return this.updateIndex(-1);if(e.code===T0)return this.updateIndex(1);if(e.key==Ks||e.key===eo)return this.ctrlDown=!0}}keyup(e){if(e.key==Ks||e.key===eo)return this.ctrlDown=!1}wheel(e){if(!this.isOpen)return;e.preventDefault();const t=Math.sign(e.deltaY);this.ctrlDown?this.zoom=Math.min(Math.max(this.zoom*=1+t*-.1,.1),5):this.updateIndex(t)}get imgStyle(){return{transform:`scale(${this.zoom.toFixed(2)})`}}mounted(){document.addEventListener("keydown",this.keydown),document.addEventListener("keyup",this.keyup),document.addEventListener("wheel",this.wheel,{passive:!1})}unmounted(){document.removeEventListener("keydown",this.keydown),document.removeEventListener("keyup",this.keyup),document.removeEventListener("wheel",this.wheel)}};Tr([Qe({required:!0})],Et.prototype,"imgs",2);Tr([Qe({required:!0})],Et.prototype,"index",2);Tr([yt("close")],Et.prototype,"close",1);Tr([yt("update:index")],Et.prototype,"_rawUpdateIndex",1);Et=Tr([yr({components:{}})],Et);const D0=e=>(On("data-v-8d7ec9da"),e=e(),En(),e),M0={key:0,id:"ImageViewer"},N0={class:"img-container"},I0=["src"],P0={class:"top"},L0=D0(()=>N("span",{class:"f-grow1"},null,-1)),R0={class:"bottom"},j0={class:"left unselectable"},q0={class:"index"},U0={class:"detail"},B0={key:0,class:"date"},Y0={class:"right"},H0={class:"description unselectable"},z0={key:0,class:"text"},V0=["innerHTML"],F0={class:"arrows"};function $0(e,t,r,n,i,s){const o=k0,a=y0,l=d0,u=a0;return e.img?(L(),H("div",M0,[N("div",N0,[N("img",{src:e.img.url,alt:"Photo",class:"undraggable",style:pi(e.imgStyle)},null,12,I0)]),N("div",P0,[L0,mt(o,{class:"icn close clickable",onClick:e.close},null,8,["onClick"])]),N("div",R0,[N("div",j0,[N("div",q0,"Photo "+ge(e.index+1)+" of "+ge(e.imgs.length),1),N("div",U0,[e.img.date?(L(),H("span",B0,ge(e.img.date),1)):ee("",!0)])]),N("div",Y0,[mt(a,{class:"icn download clickable",onClick:e.download},null,8,["onClick"])]),N("div",H0,[e.img.text?(L(),H("div",z0,[N("div",{innerHTML:e.textHtml},null,8,V0)])):ee("",!0)])]),N("div",F0,[e.hasPrev?(L(),Ae(l,{key:0,class:"icn left clickable",onClick:t[0]||(t[0]=d=>e.updateIndex(-1))})):ee("",!0),e.hasNext?(L(),Ae(u,{key:1,class:"icn right clickable",onClick:t[1]||(t[1]=d=>e.updateIndex(1))})):ee("",!0)])])):ee("",!0)}const W0=_r(Et,[["render",$0],["__scopeId","data-v-8d7ec9da"]]);var G0=Object.defineProperty,Z0=Object.getOwnPropertyDescriptor,Or=(e,t,r,n)=>{for(var i=n>1?void 0:n?Z0(t,r):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&G0(t,r,i),i};let Ct=class extends Wt{constructor(){super(...arguments),J(this,"postsUrl"),J(this,"postsData"),J(this,"margins"),J(this,"searchEl"),J(this,"search",""),J(this,"posts",[]),J(this,"imgList",null),J(this,"postImgIndex"),J(this,"count",20),J(this,"audio",null),J(this,"img",-1),J(this,"replyShake",[]),J(this,"replyLoading",!1),J(this,"fail",null)}get purl(){return new URL(this.postsUrl,document.location.href).href}get audios(){return this.posts.filter(e=>{var t,r;return((r=(t=e.files)==null?void 0:t.at(0))==null?void 0:r.media_type)=="audio_file"}).flatMap(e=>e.files)}audioNext(e){this.audio=this.audios.at(this.audios.indexOf(this.audio)+e)}get searchedPosts(){let e=this.search.toLowerCase();if(!e)return this.posts;let t=this.posts;function r(n){let i;return[i,e]=e.split(" ",2),i.substring(n)}for(;e;){if(e.startsWith("id:")){let n=r(3);console.log(n),t=t.filter(i=>i.id+""==n);continue}if(e.startsWith("author:")){let n=r(7);t=t.filter(i=>i.author.toLowerCase().startsWith(n));continue}if(e.startsWith("date:")){let n=r(5);t=t.filter(i=>i.date.includes(n));continue}break}return e?t.filter(n=>n.text&&n.text.toLowerCase().includes(e)):t}get searchedCount(){return Math.min(this.count,this.searchedPosts.length)}onKey(e){(e.ctrlKey||e.metaKey)&&e.code=="KeyF"&&(this.searchEl.focus(),this.searchEl.scrollIntoView({block:"center"}),e.stopPropagation(),e.preventDefault())}onHashChange(e){const t=window.location.hash;console.log("Hash change",e.newURL,t),t&&(this.search=decodeURIComponent(t),window.location.hash="",this.searchEl.scrollIntoView({block:"center"}),e.preventDefault(),e.stopPropagation())}mounted(){document.addEventListener("keydown",this.onKey),window.addEventListener("hashchange",this.onHashChange)}unmounted(){document.removeEventListener("keydown",this.onKey),window.removeEventListener("hashchange",this.onHashChange)}replaceUrl(e){return new URL(e,this.purl).toString()}infiniteScroll(){console.log("Infinite Scroll - Load more"),this.count=Math.min(this.count+10,this.posts.length)}get postIdIndex(){return Object.fromEntries(this.posts.map((e,t)=>[e.id,t]))}clickReply(e){if(this.replyLoading)return;const t=this.postIdIndex[e];t>this.count&&(this.replyLoading=!0,this.count=Math.min(t+10,this.posts.length)),this.jumpToReply(e,t)}jumpToReply(e,t){const r=document.getElementById(`message-${e}`);if(!r)return setTimeout(()=>this.jumpToReply(e,t),50);r.scrollIntoView({behavior:"smooth",block:"center"}),this.replyLoading=!1;const n=()=>{this.replyShake=[...this.replyShake,t],setTimeout(()=>this.replyShake=this.replyShake.filter(a=>a!=t),1500)};let i;const s=setTimeout(()=>{n(),window.removeEventListener("scroll",i)},1e3);let o;i=a=>{clearTimeout(o),o=setTimeout(()=>{clearTimeout(s),n(),window.removeEventListener("scroll",i)},100)},window.addEventListener("scroll",i)}async created(){try{this.postsData?this.posts=this.postsData:this.posts=await(await fetch(this.purl)).json(),this.posts.forEach(e=>e.date=O(e.date).format("YYYY-MM-DD H:mm")),this.posts.reverse(),this.posts=this.posts.filter(e=>e.type!=="service"),this.count=Math.min(this.count,this.posts.length),this.posts.forEach(e=>{var t,r,n;(t=e.images)==null||t.forEach(i=>i.url=this.replaceUrl(i.url)),(r=e.reply)!=null&&r.thumb&&(e.reply.thumb=this.replaceUrl(e.reply.thumb)),(n=e.files)==null||n.forEach(i=>{i.url=this.replaceUrl(i.url),i.thumb&&(i.thumb=this.replaceUrl(i.thumb))})}),this.imgList=this.posts.flatMap((e,t)=>(e.images??[]).map(r=>{var n;return{url:r.url,text:e.text,author:e.author??(typeof e.forwarded_from=="string"?e.forwarded_from:(n=e.forwarded_from)==null?void 0:n.name),date:e.date,postIndex:t}})),this.postImgIndex=new Array(this.posts.length).fill(null),this.imgList.forEach((e,t)=>{this.postImgIndex[e.postIndex]===null&&(this.postImgIndex[e.postIndex]=t)}),console.log(this.imgList),console.log(this.postImgIndex),setTimeout(()=>Xs(),100)}catch(e){console.log(e),this.fail=e}}updated(){Xs()}};Or([Qe({required:!0})],Ct.prototype,"postsUrl",2);Or([Qe()],Ct.prototype,"postsData",2);Or([Qe({default:!0})],Ct.prototype,"margins",2);Or([ds("searchEl")],Ct.prototype,"searchEl",2);Ct=Or([yr({components:{PostView:e0,ImageViewer:W0,AudioPlayer:Zr(()=>Promise.resolve().then(()=>Cg))}})],Ct);const Q0=e=>(On("data-v-a88c9662"),e=e(),En(),e),J0={class:"search"},X0={key:0,class:"error tgb-card"},K0=Q0(()=>N("br",null,null,-1)),eg={key:1,"infinite-scroll-distance":50};function tg(e,t,r,n,i,s){const o=uu,a=_t("PostView"),l=_t("AudioPlayer"),u=_t("ImageViewer"),d=su;return L(),H("div",{class:je(["tg-blog",{margins:e.margins}])},[tc(e.$slots,"default",{},void 0,!0),N("div",J0,[Ps(N("input",{"onUpdate:modelValue":t[0]||(t[0]=f=>e.search=f),ref:"searchEl",placeholder:"Search..."},null,512),[[rc,e.search]]),mt(o)]),e.fail?(L(),H("div",X0,[N("h2",null,[nr("Failed loading posts from: "),K0,nr(ge(e.purl),1)]),nr(" "+ge(e.fail),1)])):ee("",!0),e.posts.length!==0?Ps((L(),H("div",eg,[(L(!0),H(sn,null,fi(e.searchedCount,(f,c)=>(L(),Ae(a,{p:e.searchedPosts[c],postsUrl:e.purl,key:e.searchedPosts[c].id,onPlayFile:t[1]||(t[1]=h=>e.audio=h),onClickImg:h=>e.img=e.postImgIndex[c]+h,onClickReply:e.clickReply,class:je({shake:e.replyShake.includes(c)})},null,8,["p","postsUrl","onClickImg","onClickReply","class"]))),128))])),[[d,e.infiniteScroll]]):ee("",!0),e.audio?(L(),Ae(l,{key:2,audio:e.audio,onPrev:t[2]||(t[2]=f=>e.audioNext(-1)),onNext:t[3]||(t[3]=f=>e.audioNext(1))},null,8,["audio"])):ee("",!0),mt(u,{imgs:e.imgList,index:e.img,"onUpdate:index":t[4]||(t[4]=f=>e.img=f)},null,8,["imgs","index"])],2)}const rg=_r(Ct,[["render",tg],["__scopeId","data-v-a88c9662"]]),ng={viewBox:"0 0 512 512",width:"1.2em",height:"1.2em"},ig=N("path",{fill:"currentColor",d:"M52.5 440.6c-9.5 7.9-22.8 9.7-34.1 4.4S0 428.4 0 416V96c0-12.4 7.2-23.7 18.4-29s24.5-3.6 34.1 4.4L224 214.3v83.4L52.5 440.6zM256 352V96c0-12.4 7.2-23.7 18.4-29s24.5-3.6 34.1 4.4l192 160c7.3 6.1 11.5 15.1 11.5 24.6s-4.2 18.5-11.5 24.6l-192 160c-9.5 7.9-22.8 9.7-34.1 4.4S256 428.4 256 416v-64z"},null,-1),sg=[ig];function og(e,t){return L(),H("svg",ng,sg)}const ag={name:"fa6-solid-forward",render:og},lg={viewBox:"0 0 320 512",width:"1.2em",height:"1.2em"},cg=N("path",{fill:"currentColor",d:"M48 64C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H48zm192 0c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48h-32z"},null,-1),ug=[cg];function hg(e,t){return L(),H("svg",lg,ug)}const dg={name:"fa6-solid-pause",render:hg},fg={viewBox:"0 0 512 512",width:"1.2em",height:"1.2em"},pg=N("path",{fill:"currentColor",d:"M459.5 440.6c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4L288 214.3v83.4l171.5 142.9zM256 352V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4l-192 160C4.2 237.5 0 246.5 0 256s4.2 18.5 11.5 24.6l192 160c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29v-64z"},null,-1),mg=[pg];function gg(e,t){return L(),H("svg",fg,mg)}const yg={name:"fa6-solid-backward",render:gg};var bg=Object.defineProperty,wg=Object.getOwnPropertyDescriptor,Mt=(e,t,r,n)=>{for(var i=n>1?void 0:n?wg(t,r):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&bg(t,r,i),i};let ot=class extends Wt{constructor(){super(...arguments),J(this,"audio"),J(this,"playing",null),J(this,"duration","00:00"),J(this,"time","00:00")}mounted(){this.init()}pause(){this.playing.pause(),this.$forceUpdate()}play(){this.playing.play(),this.$forceUpdate()}next(){}prev(){}unmounted(){this.playing&&this.playing.pause()}init(){this.playing&&!this.playing.paused&&this.playing.pause(),this.playing=new Audio,this.playing.src=this.audio.url,this.playing.onloadedmetadata=()=>{this.duration=Ti(this.playing.duration)},this.playing.ontimeupdate=()=>{this.time=Ti(this.playing.currentTime)},this.playing.onended=()=>{this.$forceUpdate(),this.next()},this.playing.play()}};Mt([Qe({required:!0})],ot.prototype,"audio",2);Mt([yt("pause")],ot.prototype,"pause",1);Mt([yt("play")],ot.prototype,"play",1);Mt([yt("next")],ot.prototype,"next",1);Mt([yt("prev")],ot.prototype,"prev",1);Mt([Dp("audio")],ot.prototype,"init",1);ot=Mt([yr({components:{}})],ot);const Pa=e=>(On("data-v-dcaa915d"),e=e(),En(),e),vg={id:"AudioPlayer"},xg={class:"wrap"},kg={class:"unselectable"},_g={class:"control"},Sg=Pa(()=>N("span",{class:"f-grow1"},null,-1)),Tg=Pa(()=>N("span",{class:"f-grow1"},null,-1));function Og(e,t,r,n,i,s){var o;const a=yg,l=Na,u=dg,d=ag;return L(),H("div",vg,[N("div",xg,[N("div",kg,ge(e.audio.performer)+" - "+ge(e.audio.title),1),N("div",_g,[N("span",null,ge(this.time),1),Sg,mt(a,{class:"clickable",onClick:e.prev},null,8,["onClick"]),(o=e.playing)!=null&&o.paused?(L(),Ae(l,{key:0,onClick:e.play},null,8,["onClick"])):(L(),Ae(u,{key:1,onClick:e.pause},null,8,["onClick"])),mt(d,{class:"clickable",onClick:e.next},null,8,["onClick"]),Tg,N("span",null,ge(this.duration),1)])])])}const Eg=_r(ot,[["render",Og],["__scopeId","data-v-dcaa915d"]]),Cg=Object.freeze(Object.defineProperty({__proto__:null,default:Eg},Symbol.toStringTag,{value:"Module"}));function La(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let Nt=La();function Ag(e){Nt=e}const Ra=/[&<>"']/,Dg=new RegExp(Ra.source,"g"),ja=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Mg=new RegExp(ja.source,"g"),Ng={"&":"&","<":"<",">":">",'"':""","'":"'"},to=e=>Ng[e];function be(e,t){if(t){if(Ra.test(e))return e.replace(Dg,to)}else if(ja.test(e))return e.replace(Mg,to);return e}const Ig=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function qa(e){return e.replace(Ig,(t,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}const Pg=/(^|[^\[])\^/g;function ie(e,t){e=typeof e=="string"?e:e.source,t=t||"";const r={replace:(n,i)=>(i=i.source||i,i=i.replace(Pg,"$1"),e=e.replace(n,i),r),getRegex:()=>new RegExp(e,t)};return r}const Lg=/[^\w:]/g,Rg=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ro(e,t,r){if(e){let n;try{n=decodeURIComponent(qa(r)).replace(Lg,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}t&&!Rg.test(r)&&(r=Bg(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}const jr={},jg=/^[^:]+:\/*[^/]*$/,qg=/^([^:]+:)[\s\S]*$/,Ug=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Bg(e,t){jr[" "+e]||(jg.test(e)?jr[" "+e]=e+"/":jr[" "+e]=Kr(e,"/",!0)),e=jr[" "+e];const r=e.indexOf(":")===-1;return t.substring(0,2)==="//"?r?t:e.replace(qg,"$1")+t:t.charAt(0)==="/"?r?t:e.replace(Ug,"$1")+t:e+t}const mn={exec:function(){}};function no(e,t){const r=e.replace(/\|/g,(s,o,a)=>{let l=!1,u=o;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),n=r.split(/ \|/);let i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length1;)t&1&&(r+=e),t>>=1,e+=e;return r+e}function so(e,t,r,n){const i=t.href,s=t.title?be(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){n.state.inLink=!0;const a={type:"link",raw:r,href:i,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,a}return{type:"image",raw:r,href:i,title:s,text:be(o)}}function zg(e,t){const r=e.match(/^(\s+)(?:```)/);if(r===null)return t;const n=r[1];return t.split(` +O.version="2.29.4";Ou(le);O.fn=w;O.min=fd;O.max=pd;O.now=md;O.utc=Ge;O.unix=Vf;O.months=$f;O.isDate=br;O.locale=pt;O.invalid=Dn;O.duration=He;O.isMoment=Ye;O.weekdays=Gf;O.parseZone=Ff;O.localeData=ct;O.isDuration=Jr;O.monthsShort=Wf;O.weekdaysMin=Qf;O.defineLocale=ns;O.updateLocale=Vh;O.locales=Fh;O.weekdaysShort=Zf;O.normalizeUnits=Le;O.relativeTimeRounding=Sp;O.relativeTimeThreshold=Tp;O.calendarFormat=Bd;O.prototype=w;O.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Ep=/\B([A-Z])/g,Cp=e=>e.replace(Ep,"-$1").toLowerCase();function yt(e){return An((t,r)=>{const n=e||Cp(r);t.emits||(t.emits=[]),t.emits.push(n);const i=t.methods[r];t.methods[r]=function(...s){const o=l=>{l===void 0?s.length===0?this.$emit(n):s.length===1?this.$emit(n,s[0]):this.$emit(n,...s):(s.unshift(l),this.$emit(n,...s))},a=i.apply(this,s);return Ap(a)?a.then(o):o(a),a}})}function Ap(e){return e instanceof Promise||e&&typeof e.then=="function"}function Qe(e){return An((t,r)=>{t.props||(t.props=Object.create(null)),t.props[r]=e})}function ds(e){return An((t,r)=>{t.computed||(t.computed=Object.create(null)),t.computed[r]={cache:!1,get(){return this.$refs[e||r]}}})}function Dp(e,t){return An((r,n)=>{r.watch||(r.watch=Object.create(null));const i=r.watch;typeof i[e]=="object"&&!Array.isArray(i[e])?i[e]=[i[e]]:typeof i[e]>"u"&&(i[e]=[]),i[e].push(Object.assign({handler:n},t))})}const Mp={viewBox:"0 0 576 512",width:"1.2em",height:"1.2em"},Np=N("path",{fill:"currentColor",d:"M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0a144 144 0 1 1-288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"},null,-1),Ip=[Np];function Pp(e,t){return L(),H("svg",Mp,Ip)}const Lp={name:"fa6-solid-eye",render:Pp},Rp={viewBox:"0 0 512 512",width:"1.2em",height:"1.2em"},jp=N("path",{fill:"currentColor",d:"M96 0C60.7 0 32 28.7 32 64v384c0 35.3 28.7 64 64 64h288c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H96zm112 288h64c44.2 0 80 35.8 80 80c0 8.8-7.2 16-16 16H144c-8.8 0-16-7.2-16-16c0-44.2 35.8-80 80-80zm-32-96a64 64 0 1 1 128 0a64 64 0 1 1-128 0zM512 80c0-8.8-7.2-16-16-16s-16 7.2-16 16v64c0 8.8 7.2 16 16 16s16-7.2 16-16V80zm-16 112c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16s16-7.2 16-16v-64c0-8.8-7.2-16-16-16zm16 144c0-8.8-7.2-16-16-16s-16 7.2-16 16v64c0 8.8 7.2 16 16 16s16-7.2 16-16v-64z"},null,-1),qp=[jp];function Up(e,t){return L(),H("svg",Rp,qp)}const Bp={name:"fa6-solid-address-book",render:Up},Yp={viewBox:"0 0 384 512",width:"1.2em",height:"1.2em"},Hp=N("path",{fill:"currentColor",d:"M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80v352c0 17.4 9.4 33.4 24.5 41.9S58.2 482 73 473l288-176c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"},null,-1),zp=[Hp];function Vp(e,t){return L(),H("svg",Yp,zp)}const Na={name:"fa6-solid-play",render:Vp},Fp={viewBox:"0 0 512 512",width:"1.2em",height:"1.2em"},$p=N("path",{fill:"currentColor",d:"M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32v242.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64h384c35.3 0 64-28.7 64-64v-32c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48a24 24 0 1 1 0-48z"},null,-1),Wp=[$p];function Gp(e,t){return L(),H("svg",Fp,Wp)}const Zp={name:"fa6-solid-download",render:Gp};function Ti(e){return O.utc(O.duration(e,"seconds").asMilliseconds()).format("mm:ss")}function Qp(e){for(const t of["B","KiB","MiB","GiB","TiB","PiB"]){if(Math.abs(e)<1024)return`${e.toFixed(1)} ${t}`;e/=1024}return"> 1024 PiB"}var Jp=Object.defineProperty,Xp=Object.getOwnPropertyDescriptor,kr=(e,t,r,n)=>{for(var i=n>1?void 0:n?Xp(t,r):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Jp(t,r,i),i};function Kp(e,t){let r=document.createElement("a");r.download=t,r.href=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}let Tt=class extends Wt{constructor(){super(...arguments),J(this,"f"),J(this,"hasHead"),J(this,"gif")}get pollFile(){return this.f}get locationFile(){return this.f}get spoilerClasses(){return{media_spoiler:this.f.spoiler,clickable:this.f.spoiler}}fileThumbClick(){if(!this.f.media_type)return console.log(`Downloading file: ${this.f.url}`),Kp(this.f.url,this.f.url.split("/").slice(-1)[0]);this.play()}play(){return this.f}get shouldDisplayDetail(){return!this.f.media_type||this.isAudioOrVoice||this.f.media_type=="contact"}get isAudioOrVoice(){return this.f.media_type=="audio_file"||this.f.media_type=="voice_message"}get fileTitle(){const e=this.f;if(!e.media_type)return e.original_name??e.url.split("/").slice(-1)[0];if(e.media_type=="voice_message")return"Voice Message";if(e.media_type=="audio_file"){let t="";return e.performer&&(t+=e.performer+" - "),e.title&&(t+=e.title),t}if(e.media_type=="contact"){let t=e.first_name??"";return e.last_name&&(t+=" "+e.last_name),t}}get duration(){return Ti(this.f.duration)}get size(){return Qp(this.f.size)}};kr([Qe({required:!0})],Tt.prototype,"f",2);kr([Qe({required:!0})],Tt.prototype,"hasHead",2);kr([ds()],Tt.prototype,"gif",2);kr([yt("play-file")],Tt.prototype,"play",1);Tt=kr([yr({components:{Location:Zr(()=>ei(()=>import("./Location-78416ba3-D_B0GOUh.js"),__vite__mapDeps([0,1,2]))),Poll:Zr(()=>ei(()=>import("./Poll-aeb298b2-CHoU9q7j.js"),__vite__mapDeps([3,1,2]))),VideoPlayer:Zr(()=>ei(()=>import("./VideoPlayer-328c0f9f-DQl9Ox4H.js"),__vite__mapDeps([4,1,2])))}})],Tt);const _r=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},em={key:0,class:"file"},tm=["src"],rm={class:"icon fbox-center"},nm={class:"detail fbox-vcenter"},im={key:0,class:"title"},sm={class:"file-detail"},om={key:0,class:"duration"},am={key:1,class:"size"},lm={key:2,class:"phone"},cm={key:1,class:"sticker"},um=["src"],hm=["src"],dm=["src"],fm=["src"],pm=["src"];function mm(e,t,r,n,i,s){const o=Zp,a=Na,l=Bp,u=_t("VideoPlayer"),d=_t("Poll"),f=_t("Location");return L(),H(sn,null,[e.shouldDisplayDetail?(L(),H("div",em,[N("div",{class:"thumb clickable",onClick:t[0]||(t[0]=(...c)=>e.fileThumbClick&&e.fileThumbClick(...c))},[N("img",{src:e.f.thumb??"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",alt:""},null,8,tm),N("div",rm,[e.f.media_type?e.isAudioOrVoice?(L(),Ae(a,{key:1})):e.f.media_type==="contact"?(L(),Ae(l,{key:2})):ee("",!0):(L(),Ae(o,{key:0}))])]),N("div",nm,[e.fileTitle?(L(),H("div",im,ge(e.fileTitle),1)):ee("",!0),N("div",sm,[e.f.duration?(L(),H("span",om,ge(e.duration),1)):ee("",!0),e.f.size?(L(),H("span",am,ge(e.size),1)):ee("",!0),e.f.phone_number?(L(),H("span",lm,ge(e.f.phone_number),1)):ee("",!0)])])])):ee("",!0),e.f.media_type==="sticker"?(L(),H("div",cm,[e.f.url.toLowerCase().endsWith("webm")?(L(),H("video",{key:0,src:e.f.url,preload:"auto",muted:"",autoplay:"",loop:"",playsinline:"",disablepictureinpicture:""},[e.f.thumb?(L(),H("img",{key:0,src:e.f.thumb,alt:""},null,8,hm)):ee("",!0)],8,um)):(L(),H("img",{key:1,src:e.f.url,alt:""},null,8,dm))])):ee("",!0),e.f.media_type==="video_file"?(L(),H("div",{key:2,class:je(["video no-head",{"has-head":e.hasHead}])},[N("div",{onClick:t[1]||(t[1]=c=>e.f.spoiler=!1),class:je({clickable:e.f.spoiler})},[mt(u,{f:e.f,class:je(e.spoilerClasses)},null,8,["f","class"])],2)],2)):ee("",!0),e.f.media_type==="animation"?(L(),H("div",{key:3,class:je(["video no-head",{"has-head":e.hasHead}])},[N("video",{src:e.f.url,preload:"auto",muted:"",loop:"",playsinline:"",disablepictureinpicture:"",ref:"gif",class:je(e.spoilerClasses),onClick:t[2]||(t[2]=c=>{e.f.spoiler=!1,e.gif.play()})},[e.f.thumb?(L(),H("img",{key:0,src:e.f.thumb,alt:""},null,8,pm)):ee("",!0)],10,fm)],2)):ee("",!0),e.f.media_type==="poll"?(L(),Ae(d,{key:4,f:e.pollFile},null,8,["f"])):ee("",!0),e.f.media_type==="location"?(L(),Ae(f,{key:5,class:je(["location no-head",{"has-head":e.hasHead}]),f:e.locationFile},null,8,["class","f"])):ee("",!0)],64)}const gm=_r(Tt,[["render",mm],["__scopeId","data-v-9944bade"]]);parseInt(getComputedStyle(document.documentElement).fontSize,10);const Qs=(e,t,r)=>Math.min(r,Math.max(t,e)),I={None:0,Top:1,Right:2,Bottom:4,Left:8};function ym(e){return e.map(t=>t>1.2?"w":t<.8?"n":"q").join("")}function bm(e){return e.reduce((t,r)=>r+t,1)/e.length}function Js(e,t){return e.reduce((r,n)=>r+n,t)}function wm(e,t){return e.map(r=>t>1.1?Qs(r,1,2.75):Qs(r,.6667,1))}function vm(e){const t={width:0,height:0};return e.forEach(({dimensions:r,sides:n})=>{n&I.Right&&(t.width=r.width+r.x),n&I.Bottom&&(t.height=r.height+r.y)}),t}function xm(e,t,r){const n=e.map(d=>d.width/d.height),i=ym(n),s=bm(n),o=n.length,a=n.some(d=>d>2);let l;const u={ratios:n,proportions:i,averageRatio:s,maxWidth:t,minWidth:100,maxHeight:r,spacing:2};if(o===1){const d=n[0];l=[{dimensions:{x:0,y:0,width:t,height:d>1?r/d:r},sides:4}]}else o>=5||a?l=km(u):o===2?l=_m(u):o===3?l=Em(u):l=Dm(u);return{layout:l,containerStyle:vm(l)}}function km({ratios:e,averageRatio:t,maxWidth:r,minWidth:n,spacing:i,maxHeight:s=4*r/3}){const o=wm(e,t),a=e.length,l=new Array(a),u=[],d=(k,T)=>{const M=o.slice(k,k+T),P=Js(M,0);return(r-(T-1)*i)/P},f=k=>{const T=[];let M=0;k.forEach(P=>{T.push(d(M,P)),M+=P}),u.push({lineCounts:k,heights:T})};for(let k=1;k!==a;++k){const T=a-k;k<=3&&T<=3&&f([k,T])}for(let k=1;k!==a-1;++k)for(let T=1;T!==a-k;++T){const M=a-k-T;k<=3&&T<=(t<.85?4:3)&&M<=3&&f([k,T,M])}for(let k=1;k!==a-1;++k)for(let T=1;T!==a-k;++T)for(let M=1;M!==a-k-T;++M){const P=a-k-T-M;k<=3&&T<=3&&M<=3&&P<=4&&f([k,T,M,P])}let c,h=0;for(let k=0;k{for(let m=1;m!==P;++m)if(M[m-1]>M[m])return 1.5;return 1})(),ye=Math.abs($-s)*G*de;(!c||ye1.4&&t[1]-t[0]<.2?Sm(e):r==="ww"||r==="qq"?Tm(e):Om(e)}function Sm(e){const{ratios:t,maxWidth:r,spacing:n,maxHeight:i}=e,s=Math.round(Math.min(r/t[0],Math.min(r/t[1],(i-n)/2)));return[{dimensions:{x:0,y:0,width:r,height:s},sides:I.Left|I.Top|I.Right},{dimensions:{x:0,y:s+n,width:r,height:s},sides:I.Left|I.Bottom|I.Right}]}function Tm(e){const{ratios:t,maxWidth:r,spacing:n,maxHeight:i}=e,s=(r-n)/2,o=Math.round(Math.min(s/t[0],Math.min(s/t[1],i)));return[{dimensions:{x:0,y:0,width:s,height:o},sides:I.Top|I.Left|I.Bottom},{dimensions:{x:s+n,y:0,width:s,height:o},sides:I.Top|I.Right|I.Bottom}]}function Om(e){const{ratios:t,minWidth:r,maxWidth:n,spacing:i,maxHeight:s}=e,o=Math.round(1.5*r),a=Math.min(Math.round(Math.max(.4*(n-i),(n-i)/t[0]/(1/t[0]+1/t[1]))),n-i-o),l=n-a-i,u=Math.min(s,Math.round(Math.min(l/t[0],a/t[1])));return[{dimensions:{x:0,y:0,width:l,height:u},sides:I.Top|I.Left|I.Bottom},{dimensions:{x:l+i,y:0,width:a,height:u},sides:I.Top|I.Right|I.Bottom}]}function Em(e){const{proportions:t}=e;return t[0]==="n"?Cm(e):Am(e)}function Cm(e){const{maxHeight:t,spacing:r,ratios:n,maxWidth:i,minWidth:s}=e,o=t,a=Math.round(Math.min((t-r)/2,n[1]*(i-r)/(n[2]+n[1]))),l=o-a-r,u=Math.max(s,Math.round(Math.min((i-r)/2,Math.min(a*n[2],l*n[1])))),d=Math.min(Math.round(o*n[0]),i-r-u);return[{dimensions:{x:0,y:0,width:d,height:o},sides:I.Top|I.Left|I.Bottom},{dimensions:{x:d+r,y:0,width:u,height:l},sides:I.Top|I.Right},{dimensions:{x:d+r,y:l+r,width:u,height:a},sides:I.Bottom|I.Right}]}function Am(e){const{maxWidth:t,ratios:r,maxHeight:n,spacing:i}=e,s=t,o=Math.round(Math.min(s/r[0],.66*(n-i))),a=(t-i)/2,l=Math.min(n-o-i,Math.round(Math.min(a/r[1],a/r[2]))),u=s-a-i;return[{dimensions:{x:0,y:0,width:s,height:o},sides:I.Left|I.Top|I.Right},{dimensions:{x:0,y:o+i,width:a,height:l},sides:I.Bottom|I.Left},{dimensions:{x:a+i,y:o+i,width:u,height:l},sides:I.Bottom|I.Right}]}function Dm(e){const{proportions:t}=e;return t[0]==="w"?Mm(e):Nm(e)}function Mm({maxWidth:e,ratios:t,spacing:r,maxHeight:n,minWidth:i}){const s=e,o=Math.round(Math.min(s/t[0],.66*(n-r))),a=Math.round((e-2*r)/(t[1]+t[2]+t[3])),l=Math.max(i,Math.round(Math.min(.4*(e-2*r),a*t[1]))),u=Math.round(Math.max(Math.max(i,.33*(e-2*r)),a*t[3])),d=s-l-u-2*r,f=Math.min(n-o-r,a);return[{dimensions:{x:0,y:0,width:s,height:o},sides:I.Left|I.Top|I.Right},{dimensions:{x:0,y:o+r,width:l,height:f},sides:I.Bottom|I.Left},{dimensions:{x:l+r,y:o+r,width:d,height:f},sides:I.Bottom},{dimensions:{x:l+r+d+r,y:o+r,width:u,height:f},sides:I.Right|I.Bottom}]}function Nm({maxHeight:e,ratios:t,maxWidth:r,spacing:n,minWidth:i}){const s=e,o=Math.round(Math.min(s*t[0],.6*(r-n))),a=Math.round((e-2*n)/(1/t[1]+1/t[2]+1/t[3])),l=Math.round(a/t[1]),u=Math.round(a/t[2]),d=s-l-u-2*n,f=Math.max(i,Math.min(r-o-n,a));return[{dimensions:{x:0,y:0,width:o,height:s},sides:I.Top|I.Left|I.Bottom},{dimensions:{x:o+n,y:0,width:f,height:l},sides:I.Top|I.Right},{dimensions:{x:o+n,y:l+n,width:f,height:u},sides:I.Right},{dimensions:{x:o+n,y:l+u+2*n,width:f,height:d},sides:I.Bottom|I.Right}]}var Im=Object.defineProperty,Pm=Object.getOwnPropertyDescriptor,Sr=(e,t,r,n)=>{for(var i=n>1?void 0:n?Pm(t,r):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Im(t,r,i),i};let Ot=class extends Wt{constructor(){super(...arguments),J(this,"p"),J(this,"postsUrl"),J(this,"el"),J(this,"sizeScale",1)}get text(){if(this.p.text)return this.p.text}get fwdUrl(){return typeof this.p.forwarded_from=="string"?void 0:this.p.forwarded_from.url}get fwdName(){return typeof this.p.forwarded_from=="string"?this.p.forwarded_from:this.p.forwarded_from.name}get dims(){return console.log(`Calculating dimensions for ${this.p.id}...`),xm(this.p.images,450,450)}get containerStyle(){const e=this.sizeScale,t=this.dims.containerStyle;return{width:t.width*e+"px",height:t.height*e+"px"}}getImageStyle(e){const t=this.sizeScale,r=this.dims.layout[e].dimensions;return{left:r.x*t+"px",top:r.y*t+"px",width:r.width*t+"px",height:r.height*t+"px"}}clickReply(){return this.p.reply.id}refreshSize(){this.sizeScale=this.el.clientWidth/450}mounted(){this.initEmoji(),this.refreshSize(),window.addEventListener("resize",this.refreshSize)}unmounted(){window.removeEventListener("resize",this.refreshSize)}replaceUrl(e){return new URL(e,this.postsUrl).toString()}initEmoji(){document.querySelectorAll("i.custom-emoji:not(.init)").forEach(e=>{const t=this.replaceUrl(e.getAttribute("emoji-src"));e.classList.add("init"),t.endsWith("webm")?e.innerHTML=``:e.innerHTML=``})}clickImg(e,t){if(e.spoiler){e.spoiler=!1;return}this.$emit("click-img",t)}};Sr([Qe({required:!0})],Ot.prototype,"p",2);Sr([Qe({required:!0})],Ot.prototype,"postsUrl",2);Sr([ds("post")],Ot.prototype,"el",2);Sr([yt("click-reply")],Ot.prototype,"clickReply",1);Ot=Sr([yr({components:{FileView:gm}})],Ot);const Ia=e=>(On("data-v-95a034ba"),e=e(),En(),e),Lm=["id"],Rm={class:"head unselectable"},jm={key:0,class:"forward"},qm=["href"],Um={key:0,class:"thumb-wrap"},Bm=["src"],Ym={class:"mtext"},Hm=Ia(()=>N("div",{class:"reply-to"},"Reply to:",-1)),zm=["innerHTML"],Vm=["src","onClick"],Fm={key:2,class:"files"},$m=["innerHTML"],Wm={class:"info font-code unselectable"},Gm={class:"id"},Zm=Ia(()=>N("div",{class:"f-grow1"},null,-1)),Qm={key:0,class:"author"},Jm={class:"date"},Xm={key:1,class:"views"};function Km(e,t,r,n,i,s){const o=_t("FileView"),a=Lp;return L(),H("div",{class:je(["post tgb-card",{service:e.p.type==="service"}]),id:`message-${e.p.id}`,ref:"post"},[N("div",Rm,[e.p.forwarded_from?(L(),H("div",jm,[nr(" Forwarded from: "),N("a",{href:e.fwdUrl},ge(e.fwdName),9,qm)])):ee("",!0)]),e.p.reply?(L(),H("div",{key:0,class:"reply undraggable clickable",onClick:t[0]||(t[0]=(...l)=>e.clickReply&&e.clickReply(...l))},[e.p.reply.thumb?(L(),H("div",Um,[N("img",{class:"thumb",src:e.p.reply.thumb,alt:"",loading:"lazy"},null,8,Bm)])):ee("",!0),N("div",Ym,[Hm,N("div",{class:"reply-text",innerHTML:e.p.reply.text},null,8,zm)])])):ee("",!0),e.p.images?(L(),H("div",{key:1,class:je(["images",{"has-head":e.p.reply||e.p.forwarded_from}]),style:pi(e.containerStyle)},[(L(!0),H(sn,null,fi(e.p.images,(l,u)=>(L(),H("div",{class:"image_container",key:u,style:pi(e.getImageStyle(u))},[N("img",{src:l.url,alt:"image",loading:"lazy",class:je(["clickable",{media_spoiler:l.spoiler}]),onClick:d=>e.clickImg(l,u),style:{inset:"0"}},null,10,Vm)],4))),128))],6)):ee("",!0),e.p.files?(L(),H("div",Fm,[(L(!0),H(sn,null,fi(e.p.files,l=>(L(),Ae(o,{f:l,"has-head":!!(e.p.reply||e.p.forwarded_from||e.p.images),onPlayFile:t[1]||(t[1]=u=>e.$emit("play-file",u))},null,8,["f","has-head"]))),256))])):ee("",!0),N("div",{class:"text",innerHTML:e.text},null,8,$m),N("div",Wm,[N("div",Gm,"#"+ge(e.p.id),1),Zm,e.p.author?(L(),H("div",Qm,ge(e.p.author),1)):ee("",!0),N("div",Jm,ge(e.p.date),1),e.p.views?(L(),H("div",Xm,[nr(ge(e.p.views)+" ",1),mt(a)])):ee("",!0)])],10,Lm)}const e0=_r(Ot,[["render",Km],["__scopeId","data-v-95a034ba"]]);function t0(e,t){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}function r0(e,t){for(;(t=t.parentElement)&&t.tagName.toLowerCase()!=e;);return t}function Xs(){const e=document.querySelectorAll(".spoiler");console.log("Spoilers initialized."),e.forEach(t=>{if(t.classList.contains("spoiler-init"))return;t.classList.add("spoiler-init");const r=t0("post",t),n=r?.querySelectorAll(".spoiler");function i(){t.classList.toggle("spoiler-visible"),console.log(`Spoiler clicked: ${t}`),r&&n?.forEach(o=>{o!=t&&o.classList.toggle("spoiler-visible")})}const s=r0("a",t);if(s){s.addEventListener("click",o=>{t.classList.contains("spoiler-visible")||(i(),o.preventDefault())});return}t.addEventListener("click",i)})}const n0={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},i0=N("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512L340.864 831.872a30.592 30.592 0 0 0 0 42.752a29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),s0=[i0];function o0(e,t){return L(),H("svg",n0,s0)}const a0={name:"ep-arrow-right",render:o0},l0={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},c0=N("path",{fill:"currentColor",d:"M609.408 149.376L277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0a30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688a29.12 29.12 0 0 0-41.728 0z"},null,-1),u0=[c0];function h0(e,t){return L(),H("svg",l0,u0)}const d0={name:"ep-arrow-left",render:h0},f0={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},p0=N("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-253.696l236.288-236.352l45.248 45.248L508.8 704L192 387.2l45.248-45.248L480 584.704V128h64v450.304z"},null,-1),m0=[p0];function g0(e,t){return L(),H("svg",f0,m0)}const y0={name:"ep-download",render:g0},b0={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},w0=N("path",{fill:"currentColor",d:"M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),v0=[w0];function x0(e,t){return L(),H("svg",b0,v0)}const k0={name:"ep-close",render:x0};var Ks="Control",eo="Meta",_0="Escape",S0="ArrowLeft",T0="ArrowRight",O0=function(e,t,r,n){var i=typeof n<"u"?[n,e]:[e],s=new Blob(i,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob<"u")window.navigator.msSaveBlob(s,t);else{var o=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(s):window.webkitURL.createObjectURL(s),a=document.createElement("a");a.style.display="none",a.href=o,a.setAttribute("download",t),typeof a.download>"u"&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),setTimeout(function(){document.body.removeChild(a),window.URL.revokeObjectURL(o)},200)}};const E0=Jc(O0);var C0=Object.defineProperty,A0=Object.getOwnPropertyDescriptor,Tr=(e,t,r,n)=>{for(var i=n>1?void 0:n?A0(t,r):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&C0(t,r,i),i};let Et=class extends Wt{constructor(){super(...arguments),J(this,"imgs"),J(this,"index"),J(this,"ctrlDown",!1),J(this,"zoom",1)}get img(){if(this.imgs)return this.imgs[this.index]}get isOpen(){return!!this.img}get hasPrev(){return this.index>0}get hasNext(){return this.index+1=this.imgs.length||(this.zoom=1,this._rawUpdateIndex(t))}_rawUpdateIndex(e){return e}keydown(e){if(this.isOpen){if(e.code===_0)return this.close();if(e.code===S0)return this.updateIndex(-1);if(e.code===T0)return this.updateIndex(1);if(e.key==Ks||e.key===eo)return this.ctrlDown=!0}}keyup(e){if(e.key==Ks||e.key===eo)return this.ctrlDown=!1}wheel(e){if(!this.isOpen)return;e.preventDefault();const t=Math.sign(e.deltaY);this.ctrlDown?this.zoom=Math.min(Math.max(this.zoom*=1+t*-.1,.1),5):this.updateIndex(t)}get imgStyle(){return{transform:`scale(${this.zoom.toFixed(2)})`}}mounted(){document.addEventListener("keydown",this.keydown),document.addEventListener("keyup",this.keyup),document.addEventListener("wheel",this.wheel,{passive:!1})}unmounted(){document.removeEventListener("keydown",this.keydown),document.removeEventListener("keyup",this.keyup),document.removeEventListener("wheel",this.wheel)}};Tr([Qe({required:!0})],Et.prototype,"imgs",2);Tr([Qe({required:!0})],Et.prototype,"index",2);Tr([yt("close")],Et.prototype,"close",1);Tr([yt("update:index")],Et.prototype,"_rawUpdateIndex",1);Et=Tr([yr({components:{}})],Et);const D0=e=>(On("data-v-8d7ec9da"),e=e(),En(),e),M0={key:0,id:"ImageViewer"},N0={class:"img-container"},I0=["src"],P0={class:"top"},L0=D0(()=>N("span",{class:"f-grow1"},null,-1)),R0={class:"bottom"},j0={class:"left unselectable"},q0={class:"index"},U0={class:"detail"},B0={key:0,class:"date"},Y0={class:"right"},H0={class:"description unselectable"},z0={key:0,class:"text"},V0=["innerHTML"],F0={class:"arrows"};function $0(e,t,r,n,i,s){const o=k0,a=y0,l=d0,u=a0;return e.img?(L(),H("div",M0,[N("div",N0,[N("img",{src:e.img.url,alt:"Photo",class:"undraggable",style:pi(e.imgStyle)},null,12,I0)]),N("div",P0,[L0,mt(o,{class:"icn close clickable",onClick:e.close},null,8,["onClick"])]),N("div",R0,[N("div",j0,[N("div",q0,"Photo "+ge(e.index+1)+" of "+ge(e.imgs.length),1),N("div",U0,[e.img.date?(L(),H("span",B0,ge(e.img.date),1)):ee("",!0)])]),N("div",Y0,[mt(a,{class:"icn download clickable",onClick:e.download},null,8,["onClick"])]),N("div",H0,[e.img.text?(L(),H("div",z0,[N("div",{innerHTML:e.textHtml},null,8,V0)])):ee("",!0)])]),N("div",F0,[e.hasPrev?(L(),Ae(l,{key:0,class:"icn left clickable",onClick:t[0]||(t[0]=d=>e.updateIndex(-1))})):ee("",!0),e.hasNext?(L(),Ae(u,{key:1,class:"icn right clickable",onClick:t[1]||(t[1]=d=>e.updateIndex(1))})):ee("",!0)])])):ee("",!0)}const W0=_r(Et,[["render",$0],["__scopeId","data-v-8d7ec9da"]]);var G0=Object.defineProperty,Z0=Object.getOwnPropertyDescriptor,Or=(e,t,r,n)=>{for(var i=n>1?void 0:n?Z0(t,r):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&G0(t,r,i),i};let Ct=class extends Wt{constructor(){super(...arguments),J(this,"postsUrl"),J(this,"postsData"),J(this,"margins"),J(this,"searchEl"),J(this,"search",""),J(this,"posts",[]),J(this,"imgList",null),J(this,"postImgIndex"),J(this,"count",20),J(this,"audio",null),J(this,"img",-1),J(this,"replyShake",[]),J(this,"replyLoading",!1),J(this,"fail",null)}get purl(){return new URL(this.postsUrl,document.location.href).href}get audios(){return this.posts.filter(e=>{var t,r;return((r=(t=e.files)==null?void 0:t.at(0))==null?void 0:r.media_type)=="audio_file"}).flatMap(e=>e.files)}audioNext(e){this.audio=this.audios.at(this.audios.indexOf(this.audio)+e)}get searchedPosts(){let e=this.search.toLowerCase();if(!e)return this.posts;let t=this.posts;function r(n){let i;return[i,e]=e.split(" ",2),i.substring(n)}for(;e;){if(e.startsWith("id:")){let n=r(3);console.log(n),t=t.filter(i=>i.id+""==n);continue}if(e.startsWith("author:")){let n=r(7);t=t.filter(i=>i.author.toLowerCase().startsWith(n));continue}if(e.startsWith("date:")){let n=r(5);t=t.filter(i=>i.date.includes(n));continue}break}return e?t.filter(n=>n.text&&n.text.toLowerCase().includes(e)):t}get searchedCount(){return Math.min(this.count,this.searchedPosts.length)}onKey(e){(e.ctrlKey||e.metaKey)&&e.code=="KeyF"&&(this.searchEl.focus(),this.searchEl.scrollIntoView({block:"center"}),e.stopPropagation(),e.preventDefault())}onHashChange(e){const t=window.location.hash;console.log("Hash change",e.newURL,t),t&&(this.search=decodeURIComponent(t),window.location.hash="",this.searchEl.scrollIntoView({block:"center"}),e.preventDefault(),e.stopPropagation())}mounted(){document.addEventListener("keydown",this.onKey),window.addEventListener("hashchange",this.onHashChange)}unmounted(){document.removeEventListener("keydown",this.onKey),window.removeEventListener("hashchange",this.onHashChange)}replaceUrl(e){return new URL(e,this.purl).toString()}infiniteScroll(){console.log("Infinite Scroll - Load more"),this.count=Math.min(this.count+10,this.posts.length)}get postIdIndex(){return Object.fromEntries(this.posts.map((e,t)=>[e.id,t]))}clickReply(e){if(this.replyLoading)return;const t=this.postIdIndex[e];t>this.count&&(this.replyLoading=!0,this.count=Math.min(t+10,this.posts.length)),this.jumpToReply(e,t)}jumpToReply(e,t){const r=document.getElementById(`message-${e}`);if(!r)return setTimeout(()=>this.jumpToReply(e,t),50);r.scrollIntoView({behavior:"smooth",block:"center"}),this.replyLoading=!1;const n=()=>{this.replyShake=[...this.replyShake,t],setTimeout(()=>this.replyShake=this.replyShake.filter(a=>a!=t),1500)};let i;const s=setTimeout(()=>{n(),window.removeEventListener("scroll",i)},1e3);let o;i=a=>{clearTimeout(o),o=setTimeout(()=>{clearTimeout(s),n(),window.removeEventListener("scroll",i)},100)},window.addEventListener("scroll",i)}async created(){try{this.postsData?this.posts=this.postsData:this.posts=await(await fetch(this.purl)).json(),this.posts.forEach(e=>e.date=O(e.date).format("YYYY-MM-DD H:mm")),this.posts.reverse(),this.posts=this.posts.filter(e=>e.type!=="service"),this.count=Math.min(this.count,this.posts.length),this.posts.forEach(e=>{var t,r,n;(t=e.images)==null||t.forEach(i=>i.url=this.replaceUrl(i.url)),(r=e.reply)!=null&&r.thumb&&(e.reply.thumb=this.replaceUrl(e.reply.thumb)),(n=e.files)==null||n.forEach(i=>{i.url=this.replaceUrl(i.url),i.thumb&&(i.thumb=this.replaceUrl(i.thumb))})}),this.imgList=this.posts.flatMap((e,t)=>(e.images??[]).map(r=>{var n;return{url:r.url,text:e.text,author:e.author??(typeof e.forwarded_from=="string"?e.forwarded_from:(n=e.forwarded_from)==null?void 0:n.name),date:e.date,postIndex:t}})),this.postImgIndex=new Array(this.posts.length).fill(null),this.imgList.forEach((e,t)=>{this.postImgIndex[e.postIndex]===null&&(this.postImgIndex[e.postIndex]=t)}),console.log(this.imgList),console.log(this.postImgIndex),setTimeout(()=>Xs(),100)}catch(e){console.log(e),this.fail=e}}updated(){Xs()}};Or([Qe({required:!0})],Ct.prototype,"postsUrl",2);Or([Qe()],Ct.prototype,"postsData",2);Or([Qe({default:!0})],Ct.prototype,"margins",2);Or([ds("searchEl")],Ct.prototype,"searchEl",2);Ct=Or([yr({components:{PostView:e0,ImageViewer:W0,AudioPlayer:Zr(()=>Promise.resolve().then(()=>Cg))}})],Ct);const Q0=e=>(On("data-v-a88c9662"),e=e(),En(),e),J0={class:"search"},X0={key:0,class:"error tgb-card"},K0=Q0(()=>N("br",null,null,-1)),eg={key:1,"infinite-scroll-distance":50};function tg(e,t,r,n,i,s){const o=uu,a=_t("PostView"),l=_t("AudioPlayer"),u=_t("ImageViewer"),d=su;return L(),H("div",{class:je(["tg-blog",{margins:e.margins}])},[tc(e.$slots,"default",{},void 0,!0),N("div",J0,[Ps(N("input",{"onUpdate:modelValue":t[0]||(t[0]=f=>e.search=f),ref:"searchEl",placeholder:"Search..."},null,512),[[rc,e.search]]),mt(o)]),e.fail?(L(),H("div",X0,[N("h2",null,[nr("Failed loading posts from: "),K0,nr(ge(e.purl),1)]),nr(" "+ge(e.fail),1)])):ee("",!0),e.posts.length!==0?Ps((L(),H("div",eg,[(L(!0),H(sn,null,fi(e.searchedCount,(f,c)=>(L(),Ae(a,{p:e.searchedPosts[c],postsUrl:e.purl,key:e.searchedPosts[c].id,onPlayFile:t[1]||(t[1]=h=>e.audio=h),onClickImg:h=>e.img=e.postImgIndex[c]+h,onClickReply:e.clickReply,class:je({shake:e.replyShake.includes(c)})},null,8,["p","postsUrl","onClickImg","onClickReply","class"]))),128))])),[[d,e.infiniteScroll]]):ee("",!0),e.audio?(L(),Ae(l,{key:2,audio:e.audio,onPrev:t[2]||(t[2]=f=>e.audioNext(-1)),onNext:t[3]||(t[3]=f=>e.audioNext(1))},null,8,["audio"])):ee("",!0),mt(u,{imgs:e.imgList,index:e.img,"onUpdate:index":t[4]||(t[4]=f=>e.img=f)},null,8,["imgs","index"])],2)}const rg=_r(Ct,[["render",tg],["__scopeId","data-v-a88c9662"]]),ng={viewBox:"0 0 512 512",width:"1.2em",height:"1.2em"},ig=N("path",{fill:"currentColor",d:"M52.5 440.6c-9.5 7.9-22.8 9.7-34.1 4.4S0 428.4 0 416V96c0-12.4 7.2-23.7 18.4-29s24.5-3.6 34.1 4.4L224 214.3v83.4L52.5 440.6zM256 352V96c0-12.4 7.2-23.7 18.4-29s24.5-3.6 34.1 4.4l192 160c7.3 6.1 11.5 15.1 11.5 24.6s-4.2 18.5-11.5 24.6l-192 160c-9.5 7.9-22.8 9.7-34.1 4.4S256 428.4 256 416v-64z"},null,-1),sg=[ig];function og(e,t){return L(),H("svg",ng,sg)}const ag={name:"fa6-solid-forward",render:og},lg={viewBox:"0 0 320 512",width:"1.2em",height:"1.2em"},cg=N("path",{fill:"currentColor",d:"M48 64C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H48zm192 0c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48h-32z"},null,-1),ug=[cg];function hg(e,t){return L(),H("svg",lg,ug)}const dg={name:"fa6-solid-pause",render:hg},fg={viewBox:"0 0 512 512",width:"1.2em",height:"1.2em"},pg=N("path",{fill:"currentColor",d:"M459.5 440.6c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4L288 214.3v83.4l171.5 142.9zM256 352V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4l-192 160C4.2 237.5 0 246.5 0 256s4.2 18.5 11.5 24.6l192 160c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29v-64z"},null,-1),mg=[pg];function gg(e,t){return L(),H("svg",fg,mg)}const yg={name:"fa6-solid-backward",render:gg};var bg=Object.defineProperty,wg=Object.getOwnPropertyDescriptor,Mt=(e,t,r,n)=>{for(var i=n>1?void 0:n?wg(t,r):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&bg(t,r,i),i};let ot=class extends Wt{constructor(){super(...arguments),J(this,"audio"),J(this,"playing",null),J(this,"duration","00:00"),J(this,"time","00:00")}mounted(){this.init()}pause(){this.playing.pause(),this.$forceUpdate()}play(){this.playing.play(),this.$forceUpdate()}next(){}prev(){}unmounted(){this.playing&&this.playing.pause()}init(){this.playing&&!this.playing.paused&&this.playing.pause(),this.playing=new Audio,this.playing.src=this.audio.url,this.playing.onloadedmetadata=()=>{this.duration=Ti(this.playing.duration)},this.playing.ontimeupdate=()=>{this.time=Ti(this.playing.currentTime)},this.playing.onended=()=>{this.$forceUpdate(),this.next()},this.playing.play()}};Mt([Qe({required:!0})],ot.prototype,"audio",2);Mt([yt("pause")],ot.prototype,"pause",1);Mt([yt("play")],ot.prototype,"play",1);Mt([yt("next")],ot.prototype,"next",1);Mt([yt("prev")],ot.prototype,"prev",1);Mt([Dp("audio")],ot.prototype,"init",1);ot=Mt([yr({components:{}})],ot);const Pa=e=>(On("data-v-dcaa915d"),e=e(),En(),e),vg={id:"AudioPlayer"},xg={class:"wrap"},kg={class:"unselectable"},_g={class:"control"},Sg=Pa(()=>N("span",{class:"f-grow1"},null,-1)),Tg=Pa(()=>N("span",{class:"f-grow1"},null,-1));function Og(e,t,r,n,i,s){var o;const a=yg,l=Na,u=dg,d=ag;return L(),H("div",vg,[N("div",xg,[N("div",kg,ge(e.audio.performer)+" - "+ge(e.audio.title),1),N("div",_g,[N("span",null,ge(this.time),1),Sg,mt(a,{class:"clickable",onClick:e.prev},null,8,["onClick"]),(o=e.playing)!=null&&o.paused?(L(),Ae(l,{key:0,onClick:e.play},null,8,["onClick"])):(L(),Ae(u,{key:1,onClick:e.pause},null,8,["onClick"])),mt(d,{class:"clickable",onClick:e.next},null,8,["onClick"]),Tg,N("span",null,ge(this.duration),1)])])])}const Eg=_r(ot,[["render",Og],["__scopeId","data-v-dcaa915d"]]),Cg=Object.freeze(Object.defineProperty({__proto__:null,default:Eg},Symbol.toStringTag,{value:"Module"}));function La(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let Nt=La();function Ag(e){Nt=e}const Ra=/[&<>"']/,Dg=new RegExp(Ra.source,"g"),ja=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Mg=new RegExp(ja.source,"g"),Ng={"&":"&","<":"<",">":">",'"':""","'":"'"},to=e=>Ng[e];function be(e,t){if(t){if(Ra.test(e))return e.replace(Dg,to)}else if(ja.test(e))return e.replace(Mg,to);return e}const Ig=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function qa(e){return e.replace(Ig,(t,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}const Pg=/(^|[^\[])\^/g;function ie(e,t){e=typeof e=="string"?e:e.source,t=t||"";const r={replace:(n,i)=>(i=i.source||i,i=i.replace(Pg,"$1"),e=e.replace(n,i),r),getRegex:()=>new RegExp(e,t)};return r}const Lg=/[^\w:]/g,Rg=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ro(e,t,r){if(e){let n;try{n=decodeURIComponent(qa(r)).replace(Lg,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}t&&!Rg.test(r)&&(r=Bg(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}const jr={},jg=/^[^:]+:\/*[^/]*$/,qg=/^([^:]+:)[\s\S]*$/,Ug=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Bg(e,t){jr[" "+e]||(jg.test(e)?jr[" "+e]=e+"/":jr[" "+e]=Kr(e,"/",!0)),e=jr[" "+e];const r=e.indexOf(":")===-1;return t.substring(0,2)==="//"?r?t:e.replace(qg,"$1")+t:t.charAt(0)==="/"?r?t:e.replace(Ug,"$1")+t:e+t}const mn={exec:function(){}};function no(e,t){const r=e.replace(/\|/g,(s,o,a)=>{let l=!1,u=o;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),n=r.split(/ \|/);let i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length1;)t&1&&(r+=e),t>>=1,e+=e;return r+e}function so(e,t,r,n){const i=t.href,s=t.title?be(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){n.state.inLink=!0;const a={type:"link",raw:r,href:i,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,a}return{type:"image",raw:r,href:i,title:s,text:be(o)}}function zg(e,t){const r=e.match(/^(\s+)(?:```)/);if(r===null)return t;const n=r[1];return t.split(` `).map(i=>{const s=i.match(/^\s+/);if(s===null)return i;const[o]=s;return o.length>=n.length?i.slice(n.length):i}).join(` `)}let fs=class{constructor(e){this.options=e||Nt}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Kr(r,` `)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],n=zg(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(/#$/.test(r)){const n=Kr(r,"#");(this.options.pedantic||!n||/ $/.test(n))&&(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const r=t[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(r);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r,n,i,s,o,a,l,u,d,f,c,h,b=t[1].trim();const g=b.length>1,y={type:"list",raw:"",ordered:g,start:g?+b.slice(0,-1):"",loose:!1,items:[]};b=g?`\\d{1,9}\\${b.slice(-1)}`:`\\${b}`,this.options.pedantic&&(b=g?b:"[*+-]");const S=new RegExp(`^( {0,3}${b})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,!(!(t=S.exec(e))||this.rules.block.hr.test(e)));){if(r=t[0],e=e.substring(r.length),u=t[2].split(` diff --git a/assets/Loading-CAj8gvPR.js b/assets/Loading-DLeNagsH.js similarity index 99% rename from assets/Loading-CAj8gvPR.js rename to assets/Loading-DLeNagsH.js index 80bdf03..af51d08 100644 --- a/assets/Loading-CAj8gvPR.js +++ b/assets/Loading-DLeNagsH.js @@ -1,4 +1,4 @@ -import{_ as Y,c as ee,o as te,a as U}from"./index-B2-0DWq1.js";function H(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let I=H();function ne(o){I=o}const X=/[&<>"']/,ie=new RegExp(X.source,"g"),V=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,se=new RegExp(V.source,"g"),re={"&":"&","<":"<",">":">",'"':""","'":"'"},M=o=>re[o];function b(o,t){if(t){if(X.test(o))return o.replace(ie,M)}else if(V.test(o))return o.replace(se,M);return o}const le=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function W(o){return o.replace(le,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const oe=/(^|[^\[])\^/g;function m(o,t){o=typeof o=="string"?o:o.source,t=t||"";const n={replace:(e,i)=>(i=i.source||i,i=i.replace(oe,"$1"),o=o.replace(e,i),n),getRegex:()=>new RegExp(o,t)};return n}const ae=/[^\w:]/g,ce=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(o,t,n){if(o){let e;try{e=decodeURIComponent(W(n)).replace(ae,"").toLowerCase()}catch{return null}if(e.indexOf("javascript:")===0||e.indexOf("vbscript:")===0||e.indexOf("data:")===0)return null}t&&!ce.test(n)&&(n=fe(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const L={},he=/^[^:]+:\/*[^/]*$/,ue=/^([^:]+:)[\s\S]*$/,pe=/^([^:]+:\/*[^/]*)[\s\S]*$/;function fe(o,t){L[" "+o]||(he.test(o)?L[" "+o]=o+"/":L[" "+o]=B(o,"/",!0)),o=L[" "+o];const n=o.indexOf(":")===-1;return t.substring(0,2)==="//"?n?t:o.replace(ue,"$1")+t:t.charAt(0)==="/"?n?t:o.replace(pe,"$1")+t:o+t}const Z={exec:function(){}};function j(o,t){const n=o.replace(/\|/g,(s,r,l)=>{let c=!1,d=r;for(;--d>=0&&l[d]==="\\";)c=!c;return c?"|":" |"}),e=n.split(/ \|/);let i=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),e.length>t)e.splice(t);else for(;e.length1;)t&1&&(n+=o),t>>=1,o+=o;return n+o}function N(o,t,n,e){const i=t.href,s=t.title?b(t.title):null,r=o[1].replace(/\\([\[\]])/g,"$1");if(o[0].charAt(0)!=="!"){e.state.inLink=!0;const l={type:"link",raw:n,href:i,title:s,text:r,tokens:e.inlineTokens(r)};return e.state.inLink=!1,l}return{type:"image",raw:n,href:i,title:s,text:b(r)}}function ke(o,t){const n=o.match(/^(\s+)(?:```)/);if(n===null)return t;const e=n[1];return t.split(` +import{_ as Y,c as ee,o as te,a as U}from"./index-CSLMAwfP.js";function H(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let I=H();function ne(o){I=o}const X=/[&<>"']/,ie=new RegExp(X.source,"g"),V=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,se=new RegExp(V.source,"g"),re={"&":"&","<":"<",">":">",'"':""","'":"'"},M=o=>re[o];function b(o,t){if(t){if(X.test(o))return o.replace(ie,M)}else if(V.test(o))return o.replace(se,M);return o}const le=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function W(o){return o.replace(le,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const oe=/(^|[^\[])\^/g;function m(o,t){o=typeof o=="string"?o:o.source,t=t||"";const n={replace:(e,i)=>(i=i.source||i,i=i.replace(oe,"$1"),o=o.replace(e,i),n),getRegex:()=>new RegExp(o,t)};return n}const ae=/[^\w:]/g,ce=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(o,t,n){if(o){let e;try{e=decodeURIComponent(W(n)).replace(ae,"").toLowerCase()}catch{return null}if(e.indexOf("javascript:")===0||e.indexOf("vbscript:")===0||e.indexOf("data:")===0)return null}t&&!ce.test(n)&&(n=fe(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const L={},he=/^[^:]+:\/*[^/]*$/,ue=/^([^:]+:)[\s\S]*$/,pe=/^([^:]+:\/*[^/]*)[\s\S]*$/;function fe(o,t){L[" "+o]||(he.test(o)?L[" "+o]=o+"/":L[" "+o]=B(o,"/",!0)),o=L[" "+o];const n=o.indexOf(":")===-1;return t.substring(0,2)==="//"?n?t:o.replace(ue,"$1")+t:t.charAt(0)==="/"?n?t:o.replace(pe,"$1")+t:o+t}const Z={exec:function(){}};function j(o,t){const n=o.replace(/\|/g,(s,r,l)=>{let c=!1,d=r;for(;--d>=0&&l[d]==="\\";)c=!c;return c?"|":" |"}),e=n.split(/ \|/);let i=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),e.length>t)e.splice(t);else for(;e.length1;)t&1&&(n+=o),t>>=1,o+=o;return n+o}function N(o,t,n,e){const i=t.href,s=t.title?b(t.title):null,r=o[1].replace(/\\([\[\]])/g,"$1");if(o[0].charAt(0)!=="!"){e.state.inLink=!0;const l={type:"link",raw:n,href:i,title:s,text:r,tokens:e.inlineTokens(r)};return e.state.inLink=!1,l}return{type:"image",raw:n,href:i,title:s,text:b(r)}}function ke(o,t){const n=o.match(/^(\s+)(?:```)/);if(n===null)return t;const e=n[1];return t.split(` `).map(i=>{const s=i.match(/^\s+/);if(s===null)return i;const[r]=s;return r.length>=e.length?i.slice(e.length):i}).join(` `)}class D{constructor(t){this.options=t||I}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const e=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?e:B(e,` `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const e=n[0],i=ke(e,n[3]||"");return{type:"code",raw:e,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let e=n[2].trim();if(/#$/.test(e)){const i=B(e,"#");(this.options.pedantic||!i||/ $/.test(i))&&(e=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){const e=n[0].replace(/^ *>[ \t]?/gm,""),i=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(e);return this.lexer.state.top=i,{type:"blockquote",raw:n[0],tokens:s,text:e}}}list(t){let n=this.rules.block.list.exec(t);if(n){let e,i,s,r,l,c,d,f,g,k,h,z,_=n[1].trim();const R=_.length>1,x={type:"list",raw:"",ordered:R,start:R?+_.slice(0,-1):"",loose:!1,items:[]};_=R?`\\d{1,9}\\${_.slice(-1)}`:`\\${_}`,this.options.pedantic&&(_=R?_:"[*+-]");const w=new RegExp(`^( {0,3}${_})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;t&&(z=!1,!(!(n=w.exec(t))||this.rules.block.hr.test(t)));){if(e=n[0],t=t.substring(e.length),f=n[2].split(` diff --git a/assets/Location-78416ba3-BooSv_9a.js b/assets/Location-78416ba3-D_B0GOUh.js similarity index 99% rename from assets/Location-78416ba3-BooSv_9a.js rename to assets/Location-78416ba3-D_B0GOUh.js index 9a9a244..c20132e 100644 --- a/assets/Location-78416ba3-BooSv_9a.js +++ b/assets/Location-78416ba3-D_B0GOUh.js @@ -1,4 +1,4 @@ -import{e as fi,c as Se,o as Ze,a as Ss,g as gi,f as vi,w as Zs,b as Wn,s as re,L as Ht,M as xt,E as bi,y as jt,N as wi,q as Li,O as Gn,P as qn,Q as Es,H as Fn,G as Vn,R as ks}from"./index-B2-0DWq1.js";import{k as Os,W as As,B as Bs,Q as Is,y as Rs,U as Ns}from"./Life-BVlDglso.js";var Ds=Object.defineProperty,js=(c,d,h)=>d in c?Ds(c,d,{enumerable:!0,configurable:!0,writable:!0,value:h}):c[d]=h,yi=(c,d,h)=>(js(c,typeof d!="symbol"?d+"":d,h),h);function Hs(c,d){for(var h=0;h_[m]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var xi={exports:{}};/* @preserve +import{e as fi,c as Se,o as Ze,a as Ss,g as gi,f as vi,w as Zs,b as Wn,s as re,L as Ht,M as xt,E as bi,y as jt,N as wi,q as Li,O as Gn,P as qn,Q as Es,H as Fn,G as Vn,R as ks}from"./index-CSLMAwfP.js";import{k as Os,W as As,B as Bs,Q as Is,y as Rs,U as Ns}from"./Life-DgbMfal1.js";var Ds=Object.defineProperty,js=(c,d,h)=>d in c?Ds(c,d,{enumerable:!0,configurable:!0,writable:!0,value:h}):c[d]=h,yi=(c,d,h)=>(js(c,typeof d!="symbol"?d+"":d,h),h);function Hs(c,d){for(var h=0;h_[m]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var xi={exports:{}};/* @preserve * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade */(function(c,d){(function(h,_){_(d)})(Bs,function(h){var _="1.9.4";function m(t){var e,i,n,o;for(i=1,n=arguments.length;i"u"||!L||!L.Mixin)){t=tt(t)?t:[t];for(var e=0;e0?Math.floor(t):Math.ceil(t)};w.prototype={clone:function(){return new w(this.x,this.y)},add:function(t){return this.clone()._add(x(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(x(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new w(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new w(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Zi(this.x),this.y=Zi(this.y),this},distanceTo:function(t){t=x(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return t=x(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=x(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+Y(this.x)+", "+Y(this.y)+")"}};function x(t,e,i){return t instanceof w?t:tt(t)?new w(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new w(t.x,t.y):new w(t,e,i)}function R(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=X(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>=e.x&&n.x<=i.x,r=o.y>=e.y&&n.y<=i.y;return s&&r},overlaps:function(t){t=X(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>e.x&&n.xe.y&&n.y=e.lat&&o.lat<=i.lat&&n.lng>=e.lng&&o.lng<=i.lng},intersects:function(t){t=H(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=e.lat&&n.lat<=i.lat,r=o.lng>=e.lng&&n.lng<=i.lng;return s&&r},overlaps:function(t){t=H(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>e.lat&&n.late.lng&&n.lng1,vo=(function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",C,e),window.removeEventListener("testPassiveEventSupport",C,e)}catch{}return t})(),yo=(function(){return!!document.createElement("canvas").getContext})(),Fe=!!(document.createElementNS&&ki("svg").createSVGRect),xo=!!Fe&&(function(){var t=document.createElement("div");return t.innerHTML="",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),bo=!Fe&&(function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&typeof e.adj=="object"}catch{return!1}})(),wo=navigator.platform.indexOf("Mac")===0,Lo=navigator.platform.indexOf("Linux")===0;function ht(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var f={ie:ue,ielt9:so,edge:Ai,webkit:je,android:Bi,android23:Ii,androidStock:ao,opera:He,chrome:Ri,gecko:Ni,safari:ho,phantom:Di,opera12:ji,win:lo,ie3d:Hi,webkit3d:We,gecko3d:Wi,any3d:uo,mobile:Gt,mobileWebkit:co,mobileWebkit3d:_o,msPointer:Fi,pointer:Vi,touch:po,touchNative:Ui,mobileOpera:mo,mobileGecko:fo,retina:go,passiveEvents:vo,canvas:yo,svg:Fe,vml:bo,inlineSvg:xo,mac:wo,linux:Lo},Gi=f.msPointer?"MSPointerDown":"pointerdown",qi=f.msPointer?"MSPointerMove":"pointermove",Ki=f.msPointer?"MSPointerUp":"pointerup",Yi=f.msPointer?"MSPointerCancel":"pointercancel",Ve={touchstart:Gi,touchmove:qi,touchend:Ki,touchcancel:Yi},Ji={touchstart:So,touchmove:ce,touchend:ce,touchcancel:ce},Et={},Xi=!1;function Po(t,e,i){return e==="touchstart"&&Co(),Ji[e]?(i=Ji[e].bind(this,i),t.addEventListener(Ve[e],i,!1),i):(console.warn("wrong event specified:",e),C)}function To(t,e,i){if(!Ve[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(Ve[e],i,!1)}function Mo(t){Et[t.pointerId]=t}function zo(t){Et[t.pointerId]&&(Et[t.pointerId]=t)}function $i(t){delete Et[t.pointerId]}function Co(){Xi||(document.addEventListener(Gi,Mo,!0),document.addEventListener(qi,zo,!0),document.addEventListener(Ki,$i,!0),document.addEventListener(Yi,$i,!0),Xi=!0)}function ce(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){e.touches=[];for(var i in Et)e.touches.push(Et[i]);e.changedTouches=[e],t(e)}}function So(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&G(e),ce(t,e)}function Zo(t){var e={},i,n;for(n in t)i=t[n],e[n]=i&&i.bind?i.bind(t):i;return t=e,e.type="dblclick",e.detail=2,e.isTrusted=!1,e._simulated=!0,e}var Eo=200;function ko(t,e){t.addEventListener("dblclick",e);var i=0,n;function o(s){if(s.detail!==1){n=s.detail;return}if(!(s.pointerType==="mouse"||s.sourceCapabilities&&!s.sourceCapabilities.firesTouchEvents)){var r=on(s);if(!(r.some(function(l){return l instanceof HTMLLabelElement&&l.attributes.for})&&!r.some(function(l){return l instanceof HTMLInputElement||l instanceof HTMLSelectElement}))){var a=Date.now();a-i<=Eo?(n++,n===2&&e(Zo(s))):n=1,i=a}}}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}function Oo(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var Ue=pe(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),qt=pe(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Qi=qt==="webkitTransition"||qt==="OTransition"?qt+"End":"transitionend";function tn(t){return typeof t=="string"?document.getElementById(t):t}function Kt(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||i==="auto")&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return i==="auto"?null:i}function E(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function N(t){var e=t.parentNode;e&&e.removeChild(t)}function de(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function kt(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function Ot(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function Ge(t,e){if(t.classList!==void 0)return t.classList.contains(e);var i=_e(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function M(t,e){if(t.classList!==void 0)for(var i=q(e),n=0,o=i.length;n0?2*window.devicePixelRatio:1;function rn(t){return f.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Io:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function oi(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch{return!1}return i!==t}var Ro={__proto__:null,on:P,off:A,stopPropagation:Mt,disableScrollPropagation:ni,disableClickPropagation:$t,preventDefault:G,stop:zt,getPropagationPath:on,getMousePosition:sn,getWheelDelta:rn,isExternalTarget:oi,addListener:P,removeListener:A},an=Vt.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=Tt(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=J(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=this._duration*1e3;ethis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,H(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var i=x(e.paddingTopLeft||e.padding||[0,0]),n=x(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),s=this.project(t),r=this.getPixelBounds(),a=X([r.min.add(i),r.max.subtract(n)]),l=a.getSize();if(!a.contains(s)){this._enforcingBounds=!0;var u=s.subtract(a.getCenter()),p=a.extend(s).getSize().subtract(l);o.x+=u.x<0?-p.x:p.x,o.y+=u.y<0?-p.y:p.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=m({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),n=e.divideBy(2).round(),o=i.divideBy(2).round(),s=n.subtract(o);return!s.x&&!s.y?this:(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(g(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=m({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=g(this._handleGeolocationResponse,this),i=g(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,i=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,i=t.coords.longitude,n=new O(e,i),o=n.toBounds(t.coords.accuracy*2),s=this._locateOptions;if(s.setView){var r=this.getBoundsZoom(o);this.setView(n,s.maxZoom?Math.min(r,s.maxZoom):r)}var a={latlng:n,bounds:o,timestamp:t.timestamp};for(var l in t.coords)typeof t.coords[l]=="number"&&(a[l]=t.coords[l]);this.fire("locationfound",a)}},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),N(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(it(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)N(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),n=E("div",i,e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new $(e,i)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=H(t),i=x(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),l=this.getSize().subtract(i),u=X(this.project(a,n),this.project(r,n)).getSize(),p=f.any3d?this.options.zoomSnap:1,y=l.x/u.x,z=l.y/u.y,K=e?Math.max(y,z):Math.min(y,z);return n=this.getScaleZoom(K,n),p&&(n=Math.round(n/(p/100))*(p/100),n=e?Math.ceil(n/p)*p:Math.floor(n/p)*p),Math.max(o,Math.min(s,n))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new w(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new R(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=e===void 0?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=e===void 0?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.latLngToPoint(S(t),e)},unproject:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.pointToLatLng(x(t),e)},layerPointToLatLng:function(t){var e=x(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(S(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(S(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(H(t))},distance:function(t,e){return this.options.crs.distance(S(t),S(e))},containerPointToLayerPoint:function(t){return x(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return x(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(x(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(S(t)))},mouseEventToContainerPoint:function(t){return sn(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=tn(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");P(e,"scroll",this._onScroll,this),this._containerId=v(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&f.any3d,M(t,"leaflet-container"+(f.touch?" leaflet-touch":"")+(f.retina?" leaflet-retina":"")+(f.ielt9?" leaflet-oldie":"")+(f.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=Kt(t,"position");e!=="absolute"&&e!=="relative"&&e!=="fixed"&&e!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),W(this._mapPane,new w(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(M(t.markerPane,"leaflet-zoom-hide"),M(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){W(this._mapPane,new w(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,i)._move(t,e)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){e===void 0&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((o||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return it(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){W(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[v(this._container)]=this;var e=t?A:P;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),f.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){it(this._resizeRequest),this._resizeRequest=J(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i=[],n,o=e==="mouseout"||e==="mouseover",s=t.target||t.srcElement,r=!1;s;){if(n=this._targets[v(s)],n&&(e==="click"||e==="preclick")&&this._draggableMoved(n)){r=!0;break}if(n&&n.listens(e,!0)&&(o&&!oi(s,t)||(i.push(n),o))||s===this._container)break;s=s.parentNode}return!i.length&&!r&&!o&&this.listens(e,!0)&&(i=[this]),i},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(e))){var i=t.type;i==="mousedown"&&$e(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if(t.type==="click"){var n=m({},t);n.type="preclick",this._fireDOMEvent(n,n.type,i)}var o=this._findEventTargets(t,e);if(i){for(var s=[],r=0;r0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=f.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){D(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return(e&&e.animate)!==!0&&!this.getSize().contains(i)?!1:(this.panBy(i,e),!0)},_createAnimProxy:function(){var t=this._proxy=E("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(e){var i=Ue,n=this._proxy.style[i];Pt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){N(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Pt(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||i.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);return i.animate!==!0&&!this.getSize().contains(o)?!1:(J(function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,M(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(g(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&D(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function No(t,e){return new Z(t,e)}var rt=pt.extend({options:{position:"topright"},initialize:function(t){k(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return M(e,"leaflet-control"),i.indexOf("bottom")!==-1?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(N(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Qt=function(t){return new rt(t)};Z.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=E("div",e+"control-container",this._container);function n(o,s){var r=e+o+" "+e+s;t[o+s]=E("div",r,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)N(this._controlCorners[t]);N(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var hn=rt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(v(t.target)),i=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e=document.createElement("label"),i=this._map.hasLayer(t.layer),n;t.overlay?(n=document.createElement("input"),n.type="checkbox",n.className="leaflet-control-layers-selector",n.defaultChecked=i):n=this._createRadioElement("leaflet-base-layers_"+v(this),i),this._layerControlInputs.push(n),n.layerId=v(t.layer),P(n,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("span");e.appendChild(s),s.appendChild(n),s.appendChild(o);var r=t.overlay?this._overlaysList:this._baseLayersList;return r.appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,e,i,n=[],o=[];this._handlingClick=!0;for(var s=t.length-1;s>=0;s--)e=t[s],i=this._getLayer(e.layerId).layer,e.checked?n.push(i):e.checked||o.push(i);for(s=0;s=0;o--)e=t[o],i=this._getLayer(e.layerId).layer,e.disabled=i.options.minZoom!==void 0&&ni.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,P(t,"click",G),this.expand();var e=this;setTimeout(function(){A(t,"click",G),e._preventClick=!1})}}),Do=function(t,e,i){return new hn(t,e,i)},si=rt.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=E("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){var s=E("a",i,n);return s.innerHTML=t,s.href="#",s.title=e,s.setAttribute("role","button"),s.setAttribute("aria-label",e),$t(s),P(s,"click",zt),P(s,"click",o,this),P(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";D(this._zoomInButton,e),D(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(M(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(M(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});Z.mergeOptions({zoomControl:!0}),Z.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new si,this.addControl(this.zoomControl))});var jo=function(t){return new si(t)},ln=rt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=E("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=E("div",e,i)),t.imperial&&(this._iScale=E("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e=t*3.2808399,i,n,o;e>5280?(i=e/5280,n=this._getRoundNum(i),this._updateScale(this._iScale,n+" mi",n/i)):(o=this._getRoundNum(e),this._updateScale(this._iScale,o+" ft",o/e))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1,e*i}}),Ho=function(t){return new ln(t)},Wo='',ri=rt.extend({options:{position:"bottomright",prefix:''+(f.inlineSvg?Wo+" ":"")+"Leaflet"},initialize:function(t){k(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=E("div","leaflet-control-attribution"),$t(this._container);for(var e in t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' ')}}});Z.mergeOptions({attributionControl:!0}),Z.addInitHook(function(){this.options.attributionControl&&new ri().addTo(this)});var Fo=function(t){return new ri(t)};rt.Layers=hn,rt.Zoom=si,rt.Scale=ln,rt.Attribution=ri,Qt.layers=Do,Qt.zoom=jo,Qt.scale=Ho,Qt.attribution=Fo;var ut=pt.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ut.addTo=function(t,e){return t.addHandler(e,this),this};var Vo={Events:et},un=f.touch?"touchstart mousedown":"mousedown",wt=Vt.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){k(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(P(this._dragStartTarget,un,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(wt._dragging===this&&this.finishDrag(!0),A(this._dragStartTarget,un,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!Ge(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){wt._dragging===this&&this.finishDrag();return}if(!(wt._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(wt._dragging=this,this._preventOutline&&$e(this._element),Ye(),Yt(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,i=en(this._element);this._startPoint=new w(e.clientX,e.clientY),this._startPos=Tt(this._element),this._parentScale=Qe(i);var n=t.type==="mousedown";P(document,n?"mousemove":"touchmove",this._onMove,this),P(document,n?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,i=new w(e.clientX,e.clientY)._subtract(this._startPoint);!i.x&&!i.y||Math.abs(i.x)+Math.abs(i.y)s&&(r=a,s=l);s>i&&(e[r]=1,hi(t,e,i,n,r),hi(t,e,i,r,o))}function Ko(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;ne&&(i.push(t[n]),o=n);return oe.max.x&&(i|=2),t.ye.max.y&&(i|=8),i}function Yo(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function te(t,e,i,n){var o=e.x,s=e.y,r=i.x-o,a=i.y-s,l=r*r+a*a,u;return l>0&&(u=((t.x-o)*r+(t.y-s)*a)/l,u>1?(o=i.x,s=i.y):u>0&&(o+=r*u,s+=a*u)),r=t.x-o,a=t.y-s,n?r*r+a*a:new w(o,s)}function ot(t){return!tt(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function gn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),ot(t)}function vn(t,e){var i,n,o,s,r,a,l,u;if(!t||t.length===0)throw new Error("latlngs not passed");ot(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var p=S([0,0]),y=H(t),z=y.getNorthWest().distanceTo(y.getSouthWest())*y.getNorthEast().distanceTo(y.getNorthWest());z<1700&&(p=ai(t));var K=t.length,U=[];for(i=0;in){l=(s-n)/o,u=[a.x-l*(a.x-r.x),a.y-l*(a.y-r.y)];break}var Q=e.unproject(x(u));return S([Q.lat+p.lat,Q.lng+p.lng])}var Jo={__proto__:null,simplify:_n,pointToSegmentDistance:pn,closestPointOnSegment:Go,clipSegment:fn,_getEdgeIntersection:ge,_getBitCode:Ct,_sqClosestPointOnSegment:te,isFlat:ot,_flat:gn,polylineCenter:vn},li={project:function(t){return new w(t.lng,t.lat)},unproject:function(t){return new O(t.y,t.x)},bounds:new R([-180,-90],[180,90])},ui={R:6378137,R_MINOR:6356752314245179e-9,bounds:new R([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,s=Math.sqrt(1-o*o),r=s*Math.sin(n),a=Math.tan(Math.PI/4-n/2)/Math.pow((1-r)/(1+r),s/2);return n=-i*Math.log(Math.max(a,1e-10)),new w(t.lng*e*i,n)},unproject:function(t){for(var e=180/Math.PI,i=this.R,n=this.R_MINOR/i,o=Math.sqrt(1-n*n),s=Math.exp(-t.y/i),r=Math.PI/2-2*Math.atan(s),a=0,l=.1,u;a<15&&Math.abs(l)>1e-7;a++)u=o*Math.sin(r),u=Math.pow((1-u)/(1+u),o/2),l=Math.PI/2-2*Math.atan(s*u)-r,r+=l;return new O(r*e,t.x*e/i)}},Xo={__proto__:null,LonLat:li,Mercator:ui,SphericalMercator:Ie},$o=m({},bt,{code:"EPSG:3395",projection:ui,transformation:(function(){var t=.5/(Math.PI*ui.R);return Ut(t,.5,-t,.5)})()}),yn=m({},bt,{code:"EPSG:4326",projection:li,transformation:Ut(1/180,1,-1/180,.5)}),Qo=m({},mt,{projection:li,transformation:Ut(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});mt.Earth=bt,mt.EPSG3395=$o,mt.EPSG3857=Ne,mt.EPSG900913=oo,mt.EPSG4326=yn,mt.Simple=Qo;var at=Vt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[v(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[v(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",function(){e.off(i,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});Z.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=v(t);return this._layers[e]?this:(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var e=v(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return v(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){t=t?tt(t)?t:[t]:[];for(var e=0,i=t.length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&e[0]instanceof O&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){gt.prototype._setLatLngs.call(this,t),ot(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return ot(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new w(e,e);if(t=new R(t.min.subtract(i),t.max.add(i)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var n=0,o=this._rings.length,s;nt.y!=o.y>t.y&&t.x<(o.x-n.x)*(t.y-n.y)/(o.y-n.y)+n.x&&(e=!e);return e||gt.prototype._containsPoint.call(this,t,!0)}});function as(t,e){return new It(t,e)}var vt=ft.extend({initialize:function(t,e){k(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e=tt(t)?t:t.features,i,n,o;if(e){for(i=0,n=e.length;i0&&o.push(o[0].slice()),o}function Rt(t,e){return t.feature?m({},t.feature,{geometry:e}):Le(e)}function Le(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var pi={toGeoJSON:function(t){return Rt(this,{type:"Point",coordinates:_i(this.getLatLng(),t)})}};ve.include(pi),ci.include(pi),ye.include(pi),gt.include({toGeoJSON:function(t){var e=!ot(this._latlngs),i=we(this._latlngs,e?1:0,!1,t);return Rt(this,{type:(e?"Multi":"")+"LineString",coordinates:i})}}),It.include({toGeoJSON:function(t){var e=!ot(this._latlngs),i=e&&!ot(this._latlngs[0]),n=we(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),Rt(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),At.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}),Rt(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(e==="MultiPoint")return this.toMultiPoint(t);var i=e==="GeometryCollection",n=[];return this.eachLayer(function(o){if(o.toGeoJSON){var s=o.toGeoJSON(t);if(i)n.push(s.geometry);else{var r=Le(s);r.type==="FeatureCollection"?n.push.apply(n,r.features):n.push(r)}}}),i?Rt(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});function wn(t,e){return new vt(t,e)}var hs=wn,Pe=at.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=H(e),k(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(M(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){N(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&kt(this._image),this},bringToBack:function(){return this._map&&Ot(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=H(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG",e=this._image=t?this._url:E("img");if(M(e,"leaflet-image-layer"),this._zoomAnimated&&M(e,"leaflet-zoom-animated"),this.options.className&&M(e,this.options.className),e.onselectstart=C,e.onmousemove=C,e.onload=g(this.fire,this,"load"),e.onerror=g(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(e.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=e.src;return}e.src=this._url,e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Pt(this._image,i,e)},_reset:function(){var t=this._image,e=new R(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();W(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){nt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),ls=function(t,e,i){return new Pe(t,e,i)},Ln=Pe.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",e=this._image=t?this._url:E("video");if(M(e,"leaflet-image-layer"),this._zoomAnimated&&M(e,"leaflet-zoom-animated"),this.options.className&&M(e,this.options.className),e.onselectstart=C,e.onmousemove=C,e.onloadeddata=g(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],o=0;o0?n:[e.src];return}tt(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var s=0;so?(e.height=o+"px",M(t,s)):D(t,s),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();W(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,e=parseInt(Kt(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new w(this._containerLeft,-i-this._containerBottom);o._add(Tt(this._container));var s=t.layerPointToContainerPoint(o),r=x(this.options.autoPanPadding),a=x(this.options.autoPanPaddingTopLeft||r),l=x(this.options.autoPanPaddingBottomRight||r),u=t.getSize(),p=0,y=0;s.x+n+l.x>u.x&&(p=s.x+n-u.x+l.x),s.x-p-a.x<0&&(p=s.x-a.x),s.y+i+l.y>u.y&&(y=s.y+i-u.y+l.y),s.y-y-a.y<0&&(y=s.y-a.y),(p||y)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([p,y]))}},_getAnchor:function(){return x(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),ds=function(t,e){return new Te(t,e)};Z.mergeOptions({closePopupOnClick:!0}),Z.include({openPopup:function(t,e,i){return this._initOverlay(Te,t,e,i).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),at.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Te,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof ft||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){zt(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof Lt)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=e,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var Me=ct.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){ct.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){ct.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=ct.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=E("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+v(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,o=this._container,s=n.latLngToContainerPoint(n.getCenter()),r=n.layerPointToContainerPoint(t),a=this.options.direction,l=o.offsetWidth,u=o.offsetHeight,p=x(this.options.offset),y=this._getAnchor();a==="top"?(e=l/2,i=u):a==="bottom"?(e=l/2,i=0):a==="center"?(e=l/2,i=u/2):a==="right"?(e=0,i=u/2):a==="left"?(e=l,i=u/2):r.xthis.options.maxZoom||in?this._retainParent(o,s,r,n):!1)},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*e;s<2*e+2;s++){var r=new w(o,s);r.z=i+1;var a=this._tileCoordsToKey(r),l=this._tiles[a];if(l&&l.active){l.retain=!0;continue}else l&&l.loaded&&(l.retain=!0);i+1this.options.maxZoom||this.options.minZoom!==void 0&&o1){this._setView(t,i);return}for(var y=o.min.y;y<=o.max.y;y++)for(var z=o.min.x;z<=o.max.x;z++){var K=new w(z,y);if(K.z=this._tileZoom,!!this._isValidTile(K)){var U=this._tiles[this._tileCoordsToKey(K)];U?U.current=!0:r.push(K)}}if(r.sort(function(Q,Dt){return Q.distanceTo(s)-Dt.distanceTo(s)}),r.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var st=document.createDocumentFragment();for(z=0;zi.max.x)||!e.wrapLat&&(t.yi.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return H(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i),s=e.unproject(n,t.z),r=e.unproject(o,t.z);return[s,r]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new $(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new w(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(N(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){M(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=C,t.onmousemove=C,f.ielt9&&this.options.opacity<1&&nt(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),g(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&J(g(this._tileReady,this,t,null,o)),W(o,i),this._tiles[n]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);i=this._tiles[n],i&&(i.loaded=+new Date,this._map._fadeAnimated?(nt(i.el,0),it(this._fadeFrame),this._fadeFrame=J(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(M(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),f.ielt9||!this._map._fadeAnimated?J(this._pruneTiles,this):setTimeout(g(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new w(this._wrapX?j(t.x,this._wrapX):t.x,this._wrapY?j(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new R(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function ms(t){return new ie(t)}var Nt=ie.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,e=k(this,e),e.detectRetina&&f.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),typeof e.subdomains=="string"&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&e===void 0&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return P(i,"load",g(this._tileOnLoad,this,e,i)),P(i,"error",g(this._tileOnError,this,e,i)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(i.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var e={r:f.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=i),e["-y"]=i}return le(this._url,m(e,this.options))},_tileOnLoad:function(t,e){f.ielt9?setTimeout(g(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,i=this.options.zoomReverse,n=this.options.zoomOffset;return i&&(t=e-t),t+n},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(e=this._tiles[t].el,e.onload=C,e.onerror=C,!e.complete)){e.src=Zt;var i=this._tiles[t].coords;N(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",Zt),ie.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(!(!this._map||i&&i.getAttribute("src")===Zt))return ie.prototype._tileReady.call(this,t,e,i)}});function Mn(t,e){return new Nt(t,e)}var zn=Nt.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var i=m({},this.defaultWmsParams);for(var n in e)n in this.options||(i[n]=e[n]);e=k(this,e);var o=e.detectRetina&&f.retina?2:1,s=this.getTileSize();i.width=s.x*o,i.height=s.y*o,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Nt.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=X(i.project(e[0]),i.project(e[1])),o=n.min,s=n.max,r=(this._wmsVersion>=1.3&&this._crs===yn?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),a=Nt.prototype.getTileUrl.call(this,t);return a+he(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,e){return m(this.wmsParams,t),e||this.redraw(),this}});function fs(t,e){return new zn(t,e)}Nt.WMS=zn,Mn.wms=fs;var yt=at.extend({options:{padding:.1},initialize:function(t){k(this,t),v(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),M(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),s=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));f.any3d?Pt(this._container,s,i):W(this._container,s)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new R(i,i.add(e.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Cn=yt.extend({options:{tolerance:0},getEvents:function(){var t=yt.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){yt.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");P(t,"mousemove",this._onMouseMove,this),P(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),P(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){it(this._redrawRequest),delete this._ctx,N(this._container),A(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var e in this._layers)t=this._layers[e],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){yt.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=f.retina?2:1;W(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",f.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){yt.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[v(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[v(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray=="string"){var e=t.options.dashArray.split(/[, ]+/),i=[],n,o;for(o=0;o')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),gs={_initContainer:function(){this._container=E("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(yt.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=ne("shape");M(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=ne("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[v(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;N(e),t.removeInteractiveTarget(e),delete this._layers[v(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e||(e=t._stroke=ne("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=tt(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=ne("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){kt(t._container)},_bringToBack:function(t){Ot(t._container)}},ze=f.vml?ne:ki,oe=yt.extend({_initContainer:function(){this._container=ze("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ze("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){N(this._container),A(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){yt.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;(!this._svgSize||!this._svgSize.equals(e))&&(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),W(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=ze("path");t.options.className&&M(e,t.options.className),t.options.interactive&&M(e,"leaflet-interactive"),this._updateStyle(t),this._layers[v(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){N(t._path),t.removeInteractiveTarget(t._path),delete this._layers[v(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Oi(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n=Math.max(Math.round(t._radiusY),1)||i,o="a"+i+","+n+" 0 1,0 ",s=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+o+i*2+",0 "+o+-i*2+",0 ";this._setPath(t,s)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){kt(t._path)},_bringToBack:function(t){Ot(t._path)}});f.vml&&oe.include(gs);function Zn(t){return f.svg||f.vml?new oe(t):null}Z.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var e=this._paneRenderers[t];return e===void 0&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Sn(t)||Zn(t)}});var En=It.extend({initialize:function(t,e){It.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=H(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function vs(t,e){return new En(t,e)}oe.create=ze,oe.pointsToPath=Oi,vt.geometryToLayer=xe,vt.coordsToLatLng=di,vt.coordsToLatLngs=be,vt.latLngToCoords=_i,vt.latLngsToCoords=we,vt.getFeature=Rt,vt.asFeature=Le,Z.mergeOptions({boxZoom:!0});var kn=ut.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){P(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){A(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){N(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Yt(),Ye(),this._startPoint=this._map.mouseEventToContainerPoint(t),P(document,{contextmenu:zt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=E("div","leaflet-zoom-box",this._container),M(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new R(this._point,this._startPoint),i=e.getSize();W(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(N(this._box),D(this._container,"leaflet-crosshair")),Jt(),Je(),A(document,{contextmenu:zt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(g(this._resetState,this),0);var e=new $(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Z.addInitHook("addHandler","boxZoom",kn),Z.mergeOptions({doubleClickZoom:!0});var On=ut.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;e.options.doubleClickZoom==="center"?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});Z.addInitHook("addHandler","doubleClickZoom",On),Z.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var An=ut.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new wt(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}M(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){D(this._map._container,"leaflet-grab"),D(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=H(this._map.options.maxBounds);this._offsetLimit=X(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,s=(n+e+i)%t-e-i,r=Math.abs(o+i)0?s:-s))-e;this._delta=0,this._startTime=null,r&&(t.options.scrollWheelZoom==="center"?t.setZoom(e+r):t.setZoomAround(this._lastMousePos,e+r))}});Z.addInitHook("addHandler","scrollWheelZoom",In);var ys=600;Z.mergeOptions({tapHold:f.touchNative&&f.safari&&f.mobile,tapTolerance:15});var Rn=ut.extend({addHooks:function(){P(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){A(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var e=t.touches[0];this._startPos=this._newPos=new w(e.clientX,e.clientY),this._holdTimeout=setTimeout(g(function(){this._cancel(),this._isTapValid()&&(P(document,"touchend",G),P(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),ys),P(document,"touchend touchcancel contextmenu",this._cancel,this),P(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){A(document,"touchend",G),A(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),A(document,"touchend touchcancel contextmenu",this._cancel,this),A(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new w(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});Z.addInitHook("addHandler","tapHold",Rn),Z.mergeOptions({touchZoom:f.touch,bounceAtZoomLimits:!0});var Nn=ut.extend({addHooks:function(){M(this._map._container,"leaflet-touch-zoom"),P(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){D(this._map._container,"leaflet-touch-zoom"),A(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming)){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),e.options.touchZoom!=="center"&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),P(document,"touchmove",this._onTouchMove,this),P(document,"touchend touchcancel",this._onTouchEnd,this),G(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),o=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),e.options.touchZoom==="center"){if(this._center=this._startLatLng,o===1)return}else{var s=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(o===1&&s.x===0&&s.y===0)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),it(this._animRequest);var r=g(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=J(r,this,!0),G(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,it(this._animRequest),A(document,"touchmove",this._onTouchMove,this),A(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Z.addInitHook("addHandler","touchZoom",Nn),Z.BoxZoom=kn,Z.DoubleClickZoom=On,Z.Drag=An,Z.Keyboard=Bn,Z.ScrollWheelZoom=In,Z.TapHold=Rn,Z.TouchZoom=Nn,h.Bounds=R,h.Browser=f,h.CRS=mt,h.Canvas=Cn,h.Circle=ci,h.CircleMarker=ye,h.Class=pt,h.Control=rt,h.DivIcon=Tn,h.DivOverlay=ct,h.DomEvent=Ro,h.DomUtil=Bo,h.Draggable=wt,h.Evented=Vt,h.FeatureGroup=ft,h.GeoJSON=vt,h.GridLayer=ie,h.Handler=ut,h.Icon=Bt,h.ImageOverlay=Pe,h.LatLng=O,h.LatLngBounds=$,h.Layer=at,h.LayerGroup=At,h.LineUtil=Jo,h.Map=Z,h.Marker=ve,h.Mixin=Vo,h.Path=Lt,h.Point=w,h.PolyUtil=Uo,h.Polygon=It,h.Polyline=gt,h.Popup=Te,h.PosAnimation=an,h.Projection=Xo,h.Rectangle=En,h.Renderer=yt,h.SVG=oe,h.SVGOverlay=Pn,h.TileLayer=Nt,h.Tooltip=Me,h.Transformation=Re,h.Util=io,h.VideoOverlay=Ln,h.bind=g,h.bounds=X,h.canvas=Sn,h.circle=ss,h.circleMarker=os,h.control=Qt,h.divIcon=ps,h.extend=m,h.featureGroup=es,h.geoJSON=wn,h.geoJson=hs,h.gridLayer=ms,h.icon=is,h.imageOverlay=ls,h.latLng=S,h.latLngBounds=H,h.layerGroup=ts,h.map=No,h.marker=ns,h.point=x,h.polygon=as,h.polyline=rs,h.popup=ds,h.rectangle=vs,h.setOptions=k,h.stamp=v,h.svg=Zn,h.svgOverlay=cs,h.tileLayer=Mn,h.tooltip=_s,h.transformation=Ut,h.version=_,h.videoOverlay=us;var xs=window.L;h.noConflict=function(){return window.L=xs,this},window.L=h})})(xi,xi.exports);var Kn=xi.exports;const Ws=Ns(Kn),Fs=Hs({__proto__:null,default:Ws},[Kn]),Yn=(c,d=100)=>{let h;const _=function(...m){const T=this;h&&clearTimeout(h),h=setTimeout(()=>{c.apply(T,m),h=null},d)};return _.cancel=function(){h&&clearTimeout(h)},_},Jn=function(c){for(const d of Object.values(c))d&&St(d.cancel)&&d.cancel()},Vs=c=>!c||typeof c.charAt!="function"?c:c.charAt(0).toUpperCase()+c.slice(1),St=c=>typeof c=="function",Pi=(c,d,h)=>{for(const _ in h){const m="set"+Vs(_);c[m]?Vn(()=>h[_],(T,g)=>{c[m](T,g)}):d[m]&&Vn(()=>h[_],T=>{d[m](T)})}},ae=(c,d,h={})=>{const _={...h};for(const m in c){const T=d[m],g=c[m];T&&(T&&T.custom===!0||g!==void 0&&(_[m]=g))}return _},Ti=c=>{const d={};for(const h in c)if(h.startsWith("on")&&!h.startsWith("onUpdate")&&h!=="onReady"){const _=h.slice(2).toLocaleLowerCase();d[_]=c[h]}return d},Us=async c=>{const d=await Promise.all([jt(()=>import("./marker-icon-2x-b9d2094a-D4k_ikNW.js"),[]),jt(()=>import("./marker-icon-b2ca459f-C2eJqgqv.js"),[]),jt(()=>import("./marker-shadow-eea80fe0-DU6CIJ0p.js"),[])]);delete c.Default.prototype._getIconUrl,c.Default.mergeOptions({iconRetinaUrl:d[0].default,iconUrl:d[1].default,shadowUrl:d[2].default})},Ee=c=>{const d=re(()=>console.warn(`Method ${c} has been invoked without being replaced`)),h=(..._)=>d.value(..._);return h.wrapped=d,xt(c,h),h},ke=(c,d)=>c.wrapped.value=d,se=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0,Mi="useGlobalLeaflet",Xn={options:{type:Object,default:()=>({}),custom:!0}},$n=c=>({options:c.options,methods:{}}),Wt={...Xn,pane:{type:String},attribution:{type:String},name:{type:String,custom:!0},layerType:{type:String,custom:!0},visible:{type:Boolean,custom:!0,default:!0}},Qn=(c,d,h)=>{const _=Ht("addLayer"),m=Ht("removeLayer"),{options:T,methods:g}=$n(c),I=ae(c,Wt,T),v=()=>_({leafletObject:d.value}),V=()=>m({leafletObject:d.value}),j={...g,setAttribution(C){V(),d.value.options.attribution=C,c.visible&&v()},setName(){V(),c.visible&&v()},setLayerType(){V(),c.visible&&v()},setVisible(C){d.value&&(C?v():V())},bindPopup({leafletObject:C}){if(!d.value||!St(d.value.bindPopup)){console.warn("Attempt to bind popup before bindPopup method available on layer.");return}d.value.bindPopup(C)},bindTooltip({leafletObject:C}){if(!d.value||!St(d.value.bindTooltip)){console.warn("Attempt to bind tooltip before bindTooltip method available on layer.");return}d.value.bindTooltip(C)},unbindTooltip(){d.value&&(St(d.value.closeTooltip)&&d.value.closeTooltip(),St(d.value.unbindTooltip)&&d.value.unbindTooltip())},unbindPopup(){d.value&&(St(d.value.closePopup)&&d.value.closePopup(),St(d.value.unbindPopup)&&d.value.unbindPopup())},updateVisibleProp(C){h.emit("update:visible",C)}};return xt("bindPopup",j.bindPopup),xt("bindTooltip",j.bindTooltip),xt("unbindTooltip",j.unbindTooltip),xt("unbindPopup",j.unbindPopup),ks(()=>{j.unbindPopup(),j.unbindTooltip(),V()}),{options:I,methods:j}},Gs=(c,d)=>{if(c&&d.default)return qn("div",{style:{display:"none"}},d.default())},qs={...Wt,interactive:{type:Boolean,default:void 0},bubblingMouseEvents:{type:Boolean,default:void 0}},Ks={...qs,stroke:{type:Boolean,default:void 0},color:{type:String},weight:{type:Number},opacity:{type:Number},lineCap:{type:String},lineJoin:{type:String},dashArray:{type:String},dashOffset:{type:String},fill:{type:Boolean,default:void 0},fillColor:{type:String},fillOpacity:{type:Number},fillRule:{type:String},className:{type:String}};({...Wt});const zi={...Wt,opacity:{type:Number},zIndex:{type:Number},tileSize:{type:Number},noWrap:{type:Boolean,default:void 0},minZoom:{type:Number},maxZoom:{type:Number}},Ys=(c,d,h)=>{const{options:_,methods:m}=Qn(c,d,h);return{options:ae(c,zi,_),methods:{...m}}};({...zi});({...Wt});const Un={...Xn,center:{type:[Object,Array]},bounds:{type:[Array,Object]},maxBounds:{type:[Array,Object]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},paddingBottomRight:{type:Array},paddingTopLeft:{type:Array},padding:{type:Array},worldCopyJump:{type:Boolean,default:void 0},crs:{type:[String,Object]},maxBoundsViscosity:{type:Number},inertia:{type:Boolean,default:void 0},inertiaDeceleration:{type:Number},inertiaMaxSpeed:{type:Number},easeLinearity:{type:Number},zoomAnimation:{type:Boolean,default:void 0},zoomAnimationThreshold:{type:Number},fadeAnimation:{type:Boolean,default:void 0},markerZoomAnimation:{type:Boolean,default:void 0},noBlockingAnimations:{type:Boolean,default:void 0},useGlobalLeaflet:{type:Boolean,default:!0,custom:!0}},Js={emits:["ready","update:zoom","update:center","update:bounds"],props:Un,setup(c,d){const h=re(null),_=Es({ready:!1,leafletRef:{},layersToAdd:[],layersInControl:[]}),{options:m}=$n(c),T=ae(c,Un,m),g=Ee("addLayer"),I=Ee("removeLayer"),v=Ee("registerControl"),V=Ee("registerLayerControl");xt(Mi,c.useGlobalLeaflet);const j={moveEndHandler:Yn(()=>{d.emit("update:zoom",_.leafletRef.getZoom()),d.emit("update:center",_.leafletRef.getCenter()),d.emit("update:bounds",_.leafletRef.getBounds())}),overlayAddHandler(dt){const q=_.layersInControl.find(k=>k.name===dt.name);q&&q.updateVisibleProp(!0)},overlayRemoveHandler(dt){const q=_.layersInControl.find(k=>k.name===dt.name);q&&q.updateVisibleProp(!1)}};bi(async()=>{c.useGlobalLeaflet&&(se.L=se.L||await Promise.resolve().then(()=>Fs));const{map:dt,CRS:q,Icon:k,latLngBounds:he,latLng:Ae,DomEvent:le}=c.useGlobalLeaflet?se.L:await jt(()=>import("./leaflet-src.esm-a9ea7d3e-CqpI0R3Z.js"),[]);try{T.beforeMapMount&&await T.beforeMapMount()}catch(b){console.error(`The following error occurred running the provided beforeMapMount hook ${b.message}`)}await Us(k);const tt=typeof T.crs=="string"?q[T.crs]:T.crs;T.crs=tt||q.EPSG3857;const _t={addLayer(b){b.layerType!==void 0&&(_.layerControl===void 0?_.layersToAdd.push(b):_.layersInControl.find(B=>B.leafletObject._leaflet_id===b.leafletObject._leaflet_id)||(_.layerControl.addLayer(b),_.layersInControl.push(b))),b.visible!==!1&&_.leafletRef.addLayer(b.leafletObject)},removeLayer(b){b.layerType!==void 0&&(_.layerControl===void 0?_.layersToAdd=_.layersToAdd.filter(B=>B.name!==b.name):(_.layerControl.removeLayer(b.leafletObject),_.layersInControl=_.layersInControl.filter(B=>B.leafletObject._leaflet_id!==b.leafletObject._leaflet_id))),_.leafletRef.removeLayer(b.leafletObject)},registerLayerControl(b){_.layerControl=b,_.layersToAdd.forEach(B=>{_.layerControl.addLayer(B)}),_.layersToAdd=[],v(b)},registerControl(b){_.leafletRef.addControl(b.leafletObject)},setZoom(b){const B=_.leafletRef.getZoom();b!==B&&_.leafletRef.setZoom(b,{animate:c.noBlockingAnimations?!1:null})},setPaddingBottomRight(b){_.paddingBottomRight=b},setPaddingTopLeft(b){_.paddingTopLeft=b},setPadding(b){_.padding=b},setCrs(b){const B=_.leafletRef.getBounds();_.leafletRef.options.crs=b,_.leafletRef.fitBounds(B,{animate:!1,padding:[0,0]})},fitBounds(b){_.leafletRef.fitBounds(b,{animate:this.noBlockingAnimations?!1:null})},setBounds(b){if(!b)return;const B=he(b);B.isValid()&&!(_.lastSetBounds||_.leafletRef.getBounds()).equals(B,0)&&(_.lastSetBounds=B,_.leafletRef.fitBounds(B,this.fitBoundsOptions))},setCenter(b){if(b==null)return;const B=Ae(b),Ft=_.lastSetCenter||_.leafletRef.getCenter();(Ft.lat!==B.lat||Ft.lng!==B.lng)&&(_.lastSetCenter=B,_.leafletRef.panTo(B,{animate:this.noBlockingAnimations?!1:null}))}};ke(g,_t.addLayer),ke(I,_t.removeLayer),ke(v,_t.registerControl),ke(V,_t.registerLayerControl),_.leafletRef=wi(dt(h.value,T)),Pi(_t,_.leafletRef,c);const Zt=Ti(d.attrs);_.leafletRef.on("moveend",j.moveEndHandler),_.leafletRef.on("overlayadd",j.overlayAddHandler),_.leafletRef.on("overlayremove",j.overlayRemoveHandler),le.on(_.leafletRef,Zt),_.ready=!0,Li(()=>d.emit("ready",_.leafletRef))}),Gn(()=>{Jn(j),_.leafletRef&&(_.leafletRef.off(),_.leafletRef.remove())});const C=Fn(()=>_.leafletRef),Y=Fn(()=>_.ready);return{root:h,ready:Y,leafletObject:C}},render(){return qn("div",{style:{width:"100%",height:"100%"},ref:"root"},this.ready&&this.$slots.default?this.$slots.default():{})}},Xs=Js,$s=["Symbol(Comment)","Symbol(Text)"],Qs=["LTooltip","LPopup"],to={...Wt,draggable:{type:Boolean,default:void 0},icon:{type:[Object]},zIndexOffset:{type:Number},latLng:{type:[Object,Array],custom:!0,required:!0}},tr=(c,d,h)=>{const{options:_,methods:m}=Qn(c,d,h),T=ae(c,to,_),g={...m,setDraggable(I){d.value.dragging&&(I?d.value.dragging.enable():d.value.dragging.disable())},latLngSync(I){h.emit("update:latLng",I.latlng),h.emit("update:lat-lng",I.latlng)},setLatLng(I){if(I!=null&&d.value){const v=d.value.getLatLng();(!v||!v.equals(I))&&d.value.setLatLng(I)}}};return{options:T,methods:g}},er=(c,d)=>{const h=d.slots.default&&d.slots.default();return h&&h.length&&h.some(ir)};function ir(c){return!($s.includes(c.type.toString())||Qs.includes(c.type.name))}const nr={name:"LMarker",props:to,setup(c,d){const h=re({}),_=re(!1),m=Ht(Mi),T=Ht("addLayer");xt("canSetParentHtml",()=>!!h.value.getElement()),xt("setParentHtml",V=>h.value.getElement().innerHTML=V),xt("setIcon",V=>h.value.setIcon&&h.value.setIcon(V));const{options:g,methods:I}=tr(c,h,d),v={moveHandler:Yn(I.latLngSync)};return bi(async()=>{const{marker:V,DomEvent:j,divIcon:C}=m?se.L:await jt(()=>import("./leaflet-src.esm-a9ea7d3e-CqpI0R3Z.js"),[]);er(g,d)&&(g.icon=C({className:""})),h.value=wi(V(c.latLng,g));const Y=Ti(d.attrs);j.on(h.value,Y),h.value.on("move",v.moveHandler),Pi(I,h.value,c),T({...c,...I,leafletObject:h.value}),_.value=!0,Li(()=>d.emit("ready",h.value))}),Gn(()=>Jn(v)),{ready:_,leafletObject:h}},render(){return Gs(this.ready,this.$slots)}},or=nr,sr={...Ks,smoothFactor:{type:Number},noClip:{type:Boolean,default:void 0},latLngs:{type:Array,required:!0,custom:!0}},rr={...sr};rr.latLngs.required=!1;const Ci={...zi,tms:{type:Boolean,default:void 0},subdomains:{type:[String,Array],validator:c=>typeof c=="string"?!0:Array.isArray(c)?c.every(d=>typeof d=="string"):!1},detectRetina:{type:Boolean,default:void 0},url:{type:String,required:!0,custom:!0}},ar=(c,d,h)=>{const{options:_,methods:m}=Ys(c,d,h),T=ae(c,Ci,_),g={...m};return{options:T,methods:g}},hr={props:Ci,setup(c,d){const h=re({}),_=Ht(Mi),m=Ht("addLayer"),{options:T,methods:g}=ar(c,h,d);return bi(async()=>{const{tileLayer:I,DomEvent:v}=_?se.L:await jt(()=>import("./leaflet-src.esm-a9ea7d3e-CqpI0R3Z.js"),[]);h.value=wi(I(c.url,T));const V=Ti(d.attrs);v.on(h.value,V),Pi(g,h.value,c),m({...c,...g,leafletObject:h.value}),Li(()=>d.emit("ready",h.value))}),{leafletObject:h}},render(){return null}},lr=hr;({...Ci});var ur=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,eo=(c,d,h,_)=>{for(var m=_>1?void 0:_?cr(d,h):d,T=c.length-1,g;T>=0;T--)(g=c[T])&&(m=(_?g(d,h,m):g(m))||m);return _&&m&&ur(d,h,m),m};let Oe=class extends As{constructor(){super(...arguments),yi(this,"f"),yi(this,"marker"),yi(this,"zoom",14)}get options(){return{scrollWheelZoom:!1}}get center(){return[this.f.latitude,this.f.longitude]}created(){this.marker=this.center}};eo([Is({required:!0})],Oe.prototype,"f",2);Oe=eo([Rs({components:{LMap:Xs,LTileLayer:lr,LMarker:or}})],Oe);const dr={id:"Location"},_r={class:"map"},pr={key:0,class:"info"},mr={key:0,class:"title"},fr={key:1,class:"address"};function gr(c,d,h,_,m,T){const g=fi("LMarker"),I=fi("LTileLayer"),v=fi("LMap");return Ze(),Se("div",dr,[Ss("div",_r,[vi(v,{options:c.options,zoom:c.zoom,center:c.center,minZoom:3,maxZoom:16},{default:Zs(()=>[vi(g,{"lat-lng":c.marker},null,8,["lat-lng"]),vi(I,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png","layer-type":"base",name:"OpenStreetMap"})]),_:1},8,["options","zoom","center"])]),c.f.title?(Ze(),Se("div",pr,[c.f.title?(Ze(),Se("div",mr,Wn(c.f.title),1)):gi("",!0),c.f.address?(Ze(),Se("div",fr,Wn(c.f.address),1)):gi("",!0)])):gi("",!0)])}const xr=Os(Oe,[["render",gr],["__scopeId","data-v-0a3cfff1"]]);export{xr as default}; diff --git a/assets/Menu-BFbdEqRN.js b/assets/Menu-U0gohnQH.js similarity index 97% rename from assets/Menu-BFbdEqRN.js rename to assets/Menu-U0gohnQH.js index 7a8eb57..34db625 100644 --- a/assets/Menu-BFbdEqRN.js +++ b/assets/Menu-U0gohnQH.js @@ -1 +1 @@ -import{t as b,B as g,C as y,_ as x,c as n,o as m,a as t,F as _,r as h,b as u,n as B,g as k}from"./index-B2-0DWq1.js";var w=Object.getOwnPropertyDescriptor,C=(l,a,o,i)=>{for(var e=i>1?void 0:i?w(a,o):a,s=l.length-1,c;s>=0;s--)(c=l[s])&&(e=c(e)||e);return e};const f=[{cat:"🍖 猪肉",items:[{name:"玉米排骨汤",recommend:!0},{name:"红烧蜜汁五花肉",sub:"+卤蛋",recommend:!0},{name:"蒜香炸排骨"},{name:"椒盐排骨"},{name:"酱香排骨"},{name:"四川回锅肉"},{name:"蒜蓉粉丝蒸排骨"}]},{cat:"🍗 鸡肉",items:[{name:"土豆炖鸡腿",recommend:!0},{name:"香烤鸡腿",recommend:!0},{name:"可乐鸡翅"},{name:"照烧鸡翅"}]},{cat:"🥩 牛肉",items:[{name:"煎牛排"},{name:"牛肉粉丝汤"}]},{cat:"🐟 海鲜",items:[{name:"煎三文鱼皮"}]},{cat:"🥗 菜",items:[{name:"肉丁炒芹菜",recommend:!0},{name:"干锅菜花",recommend:!0},{name:"韭菜炒蛋"},{name:"红烧土豆"},{name:"葱花鸡蛋"},{name:"白菜炖粉条"},{name:"素炒绿叶菜",sub:"大白菜/小油菜"}]},{cat:"🍜 面条",items:[{name:"味噌叉烧豚骨面"},{name:"番茄牛肉面"},{name:"黑椒炒意面"},{name:"炒面",sub:"挂面/乌冬/意面/方便面"}]},{cat:"🍥 其他的",items:[{name:"鸡蛋火腿吐司",recommend:!0},{name:"茶叶蛋"}]},{cat:"🍛 主食",items:[{name:"照烧肥牛饭",sub:"肥牛片/五花肉",recommend:!0},{name:"咖喱饭",sub:"牛肉块/肥牛片/五花肉"},{name:"炒饭"}]},{cat:"🍰 蛋糕",subtitle:"(要提前几天预定哦! qwq",items:[{name:"提拉米苏",recommend:!0}]},{cat:"🍸 饮料",items:[{name:"白桃奶油鸡尾酒",recommend:!0,original:!0},{name:"火龙果葡萄酒",original:!0},{name:"水果宾治鸡尾酒"}]}];let p=class extends g{max_cols=2;cols=new Array(this.max_cols);created(){const a=Array.from(f);a.sort((e,s)=>s.items.length-e.items.length);let o=new Array(this.max_cols).fill(0);for(const e of a){let s=o.indexOf(Math.min(...o));e.column=s,o[s]+=e.items.length}for(let e=0;es.column==e);let i=0;this.cols.forEach(e=>e.forEach(s=>s.items.forEach(c=>c.id=i++)))}};p=C([y],p);const M=b(p),$={id:"Menu",class:"general-page"},E={class:"columns"},O={class:"cat"},A={class:"subtitle"},D={class:"items"},N={class:"number"},q={class:"name"},F={key:0,class:"sub"};function P(l,a,o,i,e,s){return m(),n("div",$,[a[0]||(a[0]=t("div",{class:"title"},[t("h2",null,"小桂桂的私房菜 菜单"),t("div",{class:"subtitle"},"在桂桂家里可以吃到这些哦")],-1)),t("div",E,[(m(!0),n(_,null,h(l.cols,(c,v)=>(m(),n("div",{class:"column",key:v},[(m(!0),n(_,null,h(c,d=>(m(),n("div",{class:"category",key:d.cat},[t("div",O,u(d.cat)+"!",1),t("div",A,u(d.subtitle),1),t("div",D,[(m(!0),n(_,null,h(d.items,r=>(m(),n("div",{class:B(["item",{recommend:r.recommend,original:r.original}]),key:r.name},[t("span",N,u(r.id)+". ",1),t("span",q,u(r.name),1),r.sub?(m(),n("span",F,"("+u(r.sub)+")",1)):k("",!0)],2))),128))])]))),128))]))),128))])])}const z=x(M,[["render",P],["__scopeId","data-v-0c57c677"]]);export{z as default,f as menu}; +import{t as b,B as g,C as y,_ as x,c as n,o as m,a as t,F as _,r as h,b as u,n as B,g as k}from"./index-CSLMAwfP.js";var w=Object.getOwnPropertyDescriptor,C=(l,a,o,i)=>{for(var e=i>1?void 0:i?w(a,o):a,s=l.length-1,c;s>=0;s--)(c=l[s])&&(e=c(e)||e);return e};const f=[{cat:"🍖 猪肉",items:[{name:"玉米排骨汤",recommend:!0},{name:"红烧蜜汁五花肉",sub:"+卤蛋",recommend:!0},{name:"蒜香炸排骨"},{name:"椒盐排骨"},{name:"酱香排骨"},{name:"四川回锅肉"},{name:"蒜蓉粉丝蒸排骨"}]},{cat:"🍗 鸡肉",items:[{name:"土豆炖鸡腿",recommend:!0},{name:"香烤鸡腿",recommend:!0},{name:"可乐鸡翅"},{name:"照烧鸡翅"}]},{cat:"🥩 牛肉",items:[{name:"煎牛排"},{name:"牛肉粉丝汤"}]},{cat:"🐟 海鲜",items:[{name:"煎三文鱼皮"}]},{cat:"🥗 菜",items:[{name:"肉丁炒芹菜",recommend:!0},{name:"干锅菜花",recommend:!0},{name:"韭菜炒蛋"},{name:"红烧土豆"},{name:"葱花鸡蛋"},{name:"白菜炖粉条"},{name:"素炒绿叶菜",sub:"大白菜/小油菜"}]},{cat:"🍜 面条",items:[{name:"味噌叉烧豚骨面"},{name:"番茄牛肉面"},{name:"黑椒炒意面"},{name:"炒面",sub:"挂面/乌冬/意面/方便面"}]},{cat:"🍥 其他的",items:[{name:"鸡蛋火腿吐司",recommend:!0},{name:"茶叶蛋"}]},{cat:"🍛 主食",items:[{name:"照烧肥牛饭",sub:"肥牛片/五花肉",recommend:!0},{name:"咖喱饭",sub:"牛肉块/肥牛片/五花肉"},{name:"炒饭"}]},{cat:"🍰 蛋糕",subtitle:"(要提前几天预定哦! qwq",items:[{name:"提拉米苏",recommend:!0}]},{cat:"🍸 饮料",items:[{name:"白桃奶油鸡尾酒",recommend:!0,original:!0},{name:"火龙果葡萄酒",original:!0},{name:"水果宾治鸡尾酒"}]}];let p=class extends g{max_cols=2;cols=new Array(this.max_cols);created(){const a=Array.from(f);a.sort((e,s)=>s.items.length-e.items.length);let o=new Array(this.max_cols).fill(0);for(const e of a){let s=o.indexOf(Math.min(...o));e.column=s,o[s]+=e.items.length}for(let e=0;es.column==e);let i=0;this.cols.forEach(e=>e.forEach(s=>s.items.forEach(c=>c.id=i++)))}};p=C([y],p);const M=b(p),$={id:"Menu",class:"general-page"},E={class:"columns"},O={class:"cat"},A={class:"subtitle"},D={class:"items"},N={class:"number"},q={class:"name"},F={key:0,class:"sub"};function P(l,a,o,i,e,s){return m(),n("div",$,[a[0]||(a[0]=t("div",{class:"title"},[t("h2",null,"小桂桂的私房菜 菜单"),t("div",{class:"subtitle"},"在桂桂家里可以吃到这些哦")],-1)),t("div",E,[(m(!0),n(_,null,h(l.cols,(c,v)=>(m(),n("div",{class:"column",key:v},[(m(!0),n(_,null,h(c,d=>(m(),n("div",{class:"category",key:d.cat},[t("div",O,u(d.cat)+"!",1),t("div",A,u(d.subtitle),1),t("div",D,[(m(!0),n(_,null,h(d.items,r=>(m(),n("div",{class:B(["item",{recommend:r.recommend,original:r.original}]),key:r.name},[t("span",N,u(r.id)+". ",1),t("span",q,u(r.name),1),r.sub?(m(),n("span",F,"("+u(r.sub)+")",1)):k("",!0)],2))),128))])]))),128))]))),128))])])}const z=x(M,[["render",P],["__scopeId","data-v-0c57c677"]]);export{z as default,f as menu}; diff --git a/assets/Others-Bz7iziut.js b/assets/Others-DXBcJtg0.js similarity index 92% rename from assets/Others-Bz7iziut.js rename to assets/Others-DXBcJtg0.js index 05384f7..74087bc 100644 --- a/assets/Others-Bz7iziut.js +++ b/assets/Others-DXBcJtg0.js @@ -1 +1 @@ -import{_ as a,c as l,o as d,a as s,f as o,w as r,l as n,e as i}from"./index-B2-0DWq1.js";const f={},u={id:"Others",class:"general-page"},c={class:"links"};function p(_,t){const e=i("router-link");return d(),l("div",u,[t[4]||(t[4]=s("div",{class:"title"},[s("h2",null,"更多链接"),s("div",{class:"subtitle"},"欢迎点进来看看")],-1)),s("div",c,[o(e,{class:"rlink",to:"/kitchen-menu"},{default:r(()=>[...t[0]||(t[0]=[n("🍳 小桂桂的私房菜 菜单",-1)])]),_:1}),o(e,{class:"rlink",to:"/friends"},{default:r(()=>[...t[1]||(t[1]=[n("🎎 朋友们",-1)])]),_:1}),t[2]||(t[2]=s("a",{href:"https://cast.hydev.org"},"📹 公开直播间",-1)),t[3]||(t[3]=s("a",{href:"https://status.hydev.org/"},"🔌 看看服务器们过得怎么样",-1))])])}const v=a(f,[["render",p],["__scopeId","data-v-798cfa55"]]);export{v as default}; +import{_ as a,c as l,o as d,a as s,f as o,w as r,l as n,e as i}from"./index-CSLMAwfP.js";const f={},u={id:"Others",class:"general-page"},c={class:"links"};function p(_,t){const e=i("router-link");return d(),l("div",u,[t[4]||(t[4]=s("div",{class:"title"},[s("h2",null,"更多链接"),s("div",{class:"subtitle"},"欢迎点进来看看")],-1)),s("div",c,[o(e,{class:"rlink",to:"/kitchen-menu"},{default:r(()=>[...t[0]||(t[0]=[n("🍳 小桂桂的私房菜 菜单",-1)])]),_:1}),o(e,{class:"rlink",to:"/friends"},{default:r(()=>[...t[1]||(t[1]=[n("🎎 朋友们",-1)])]),_:1}),t[2]||(t[2]=s("a",{href:"https://cast.hydev.org"},"📹 公开直播间",-1)),t[3]||(t[3]=s("a",{href:"https://status.hydev.org/"},"🔌 看看服务器们过得怎么样",-1))])])}const v=a(f,[["render",p],["__scopeId","data-v-798cfa55"]]);export{v as default}; diff --git a/assets/Photo-Bh5VFsqt.css b/assets/Photo-Bh5VFsqt.css deleted file mode 100644 index ed4e028..0000000 --- a/assets/Photo-Bh5VFsqt.css +++ /dev/null @@ -1 +0,0 @@ -.general-page[data-v-617868e5]{text-align:left;width:600px;margin:2em auto 0}.title[data-v-617868e5]{margin-bottom:2em}.title h2[data-v-617868e5]{margin-bottom:0}.title .subtitle[data-v-617868e5]{color:#a68659d6}@media screen and (max-width:640px){.general-page[data-v-617868e5]{margin:2em 20px 0;width:unset}}.blur[data-v-617868e5]{z-index:2500}.title[data-v-617868e5]{margin-top:8rem;margin-bottom:6rem}.bold[data-v-617868e5]{font-size:3em}.img-container[data-v-617868e5]{margin:-.5rem;max-width:50%;position:relative}.img-container.active[data-v-617868e5]{position:unset}.img-container.active img.pin[data-v-617868e5]{display:none}.img-container.active .photo-abs-container[data-v-617868e5]{position:fixed;z-index:3000}.img-container.active .photo-wrapper[data-v-617868e5]{transform:rotate(0)!important}.img-container.active img.photo[data-v-617868e5]{z-index:3001;pointer-events:auto}img.photo[data-v-617868e5]{clip-path:inset(2.8% 1.8% 2.4%);pointer-events:none}div.photo-abs-container[data-v-617868e5]{position:absolute;inset:0;z-index:1000}div.photo-wrapper[data-v-617868e5]{filter:drop-shadow(0px 1px 2px rgba(0,0,0,.3))}img.pin[data-v-617868e5]{width:40px;height:40px;z-index:2000} diff --git a/assets/Photo-C3B0RSVd.js b/assets/Photo-C3B0RSVd.js deleted file mode 100644 index 37b3d0d..0000000 --- a/assets/Photo-C3B0RSVd.js +++ /dev/null @@ -1 +0,0 @@ -import{t as g,B as w,C as y,_ as v,c as r,o as c,a as i,F as h,r as p,n as b,z as _}from"./index-B2-0DWq1.js";var C=Object.getOwnPropertyDescriptor,k=(e,t,o,s)=>{for(var n=s>1?void 0:s?C(t,o):t,d=e.length-1,l;d>=0;d--)(l=e[d])&&(n=l(n)||n);return n};function m(e){return Array.from(e).reduce((t,o)=>(t+o.charCodeAt(0)*65535)%22859,0)/22859}async function $(e,t=100){return new Promise(o=>{const s=()=>{let n=e();n?o(n):setTimeout(s,t)};s()})}let u=class extends w{photos;photoRows;async created(){this.photos=await(await fetch("https://p.aza.moe/photos")).json(),this.photos.sort((o,s)=>o.exif.DateTime{t.length===0?t.push(o):t.length>=3?(this.photoRows.push(t),t=[o]):m(o.original_photo)0&&this.photoRows.push(t)}async mounted(){this.$route.params.id&&(await $(()=>document.getElementById(`photo-${this.$route.params.id}`))).click()}url(e){return e=e.replace("data/photos","static").replace("./",""),`https://p.aza.moe/${e}`}randomRotation(e){return`rotate(${m(e)*20-10}deg)`}async clickPhoto(e,t){console.log("Clicked photo:",e.id);const o=t.currentTarget,s=o.querySelector(".photo-wrapper");s.style.viewTransitionName=`photo-${e.id}`,await document.startViewTransition(()=>{o.classList.toggle("active"),document.getElementsByClassName("blur")[0].toggleAttribute("hidden")}).finished,s.style.viewTransitionName=""}};u=k([y({})],u);const R=g(u),T="/thumb%20tack%202%20plain.png",B={class:"outer-grid"},P=["onClickCapture","id"],j=["src","alt"],E={class:"photo-abs-container",absolute:"","inset-0":"",flex:"","justify-center":"","items-center":""},z=["src","alt"];function x(e,t,o,s,n,d){return c(),r(h,null,[t[1]||(t[1]=i("div",{class:"title"},[i("div",{class:"font-script-en bold"},"The Wandering Gallery"),i("div",{class:"subtitle (c(),r("div",{key:l[0].id,flex:"","justify-center":"",class:b(`grid-cols-${l.length}`)},[(c(!0),r(h,null,p(l,a=>(c(),r("div",{key:a.id,onClickCapture:async f=>await e.clickPhoto(a,f),class:"img-container","cursor-pointer":"",id:`photo-${a.id}`},[i("img",{class:"photo","w-full":"","h-full":"","object-contain":"","opacity-0":"",src:e.url(a.thumbnail_edited),alt:a.id},null,8,j),i("div",E,[i("div",{class:"photo-wrapper",style:_({transform:e.randomRotation(a.id)})},[i("img",{class:"photo","w-full":"","object-contain":"",src:e.url(a.thumbnail_edited),alt:a.id},null,8,z)],4)]),t[0]||(t[0]=i("div",{flex:"","w-full":"","justify-center":"",absolute:"","position-top-none":""},[i("img",{class:"pin",src:T,alt:""})],-1))],40,P))),128))],2))),128))]),t[2]||(t[2]=i("div",{class:"blur",hidden:"","pos-fixed":"","inset-0":"","backdrop-blur-sm":"","z-5":""},null,-1))],64)}const D=v(R,[["render",x],["__scopeId","data-v-617868e5"]]);export{D as default}; diff --git a/assets/Photo-Ctr50G8y.js b/assets/Photo-Ctr50G8y.js new file mode 100644 index 0000000..6af77d8 --- /dev/null +++ b/assets/Photo-Ctr50G8y.js @@ -0,0 +1 @@ +import{t as g,B as w,C as y,_ as v,c as l,o as c,a as i,F as h,r as p,n as _,z as b}from"./index-CSLMAwfP.js";var C=Object.getOwnPropertyDescriptor,$=(e,t,o,s)=>{for(var a=s>1?void 0:s?C(t,o):t,d=e.length-1,r;d>=0;d--)(r=e[d])&&(a=r(a)||a);return a};function m(e){return Array.from(e).reduce((t,o)=>(t+o.charCodeAt(0)*65535)%22859,0)/22859}async function k(e,t=100){return new Promise(o=>{const s=()=>{let a=e();a?o(a):setTimeout(s,t)};s()})}let u=class extends w{photos;photoRows;async created(){this.photos=await(await fetch("https://p.aza.moe/photos")).json(),this.photos.sort((o,s)=>o.exif.DateTime{t.length===0?t.push(o):t.length>=3?(this.photoRows.push(t),t=[o]):m(o.original_photo)0&&this.photoRows.push(t)}async mounted(){this.$route.params.id&&(await k(()=>document.getElementById(`photo-${this.$route.params.id}`))).click()}url(e){return e=e.replace("data/photos","static").replace("./",""),`https://p.aza.moe/${e}`}randomRotation(e){return`rotate(${m(e)*20-10}deg)`}async clickPhoto(e,t){console.log("Clicked photo:",e.id);const o=t.currentTarget,s=o.querySelector(".photo-wrapper");s.style.viewTransitionName=`photo-${e.id}`,await document.startViewTransition(()=>{o.classList.toggle("active"),document.getElementsByClassName("blur")[0].toggleAttribute("hidden")}).finished,s.style.viewTransitionName=""}};u=$([y({})],u);const R=g(u),T={class:"outer-grid"},B=["onClickCapture","id"],P=["src","alt"],E={class:"photo-abs-container",absolute:"","inset-0":"",flex:"","justify-center":"","items-center":""},j=["src","alt"];function z(e,t,o,s,a,d){return c(),l(h,null,[t[0]||(t[0]=i("div",{class:"title"},[i("div",{class:"font-script-en bold"},"The Wandering Gallery"),i("div",{class:"subtitle (c(),l("div",{key:r[0].id,flex:"","justify-center":"",class:_(`grid-cols-${r.length}`)},[(c(!0),l(h,null,p(r,n=>(c(),l("div",{key:n.id,onClickCapture:async f=>await e.clickPhoto(n,f),class:"img-container","cursor-pointer":"",id:`photo-${n.id}`},[i("img",{class:"photo","w-full":"","h-full":"","object-contain":"","opacity-0":"",src:e.url(n.thumbnail_edited),alt:n.id},null,8,P),i("div",E,[i("div",{class:"photo-wrapper",style:b({transform:e.randomRotation(n.id)})},[i("img",{class:"photo","w-full":"","object-contain":"",src:e.url(n.thumbnail_edited),alt:n.id},null,8,j)],4)])],40,B))),128))],2))),128))]),t[1]||(t[1]=i("div",{class:"blur",hidden:"","pos-fixed":"","inset-0":"","backdrop-blur-sm":"","z-5":""},null,-1))],64)}const x=v(R,[["render",z],["__scopeId","data-v-9d7df607"]]);export{x as default}; diff --git a/assets/Photo-Dy5ieP_G.css b/assets/Photo-Dy5ieP_G.css new file mode 100644 index 0000000..edb95a0 --- /dev/null +++ b/assets/Photo-Dy5ieP_G.css @@ -0,0 +1 @@ +.general-page[data-v-9d7df607]{text-align:left;width:600px;margin:2em auto 0}.title[data-v-9d7df607]{margin-bottom:2em}.title h2[data-v-9d7df607]{margin-bottom:0}.title .subtitle[data-v-9d7df607]{color:#a68659d6}@media screen and (max-width:640px){.general-page[data-v-9d7df607]{margin:2em 20px 0;width:unset}}.blur[data-v-9d7df607]{z-index:2500}.title[data-v-9d7df607]{margin-top:8rem;margin-bottom:6rem}.bold[data-v-9d7df607]{font-size:3em}.img-container[data-v-9d7df607]{margin:-.5rem;max-width:50%;position:relative}.img-container.active[data-v-9d7df607]{position:unset}.img-container.active img.pin[data-v-9d7df607]{display:none}.img-container.active .photo-abs-container[data-v-9d7df607]{position:fixed;z-index:3000}.img-container.active .photo-wrapper[data-v-9d7df607]{transform:rotate(0)!important}.img-container.active img.photo[data-v-9d7df607]{z-index:3001;pointer-events:auto}img.photo[data-v-9d7df607]{clip-path:inset(2.8% 1.8% 2.4%);pointer-events:none}div.photo-abs-container[data-v-9d7df607]{position:absolute;inset:0;z-index:1000}div.photo-wrapper[data-v-9d7df607]{filter:drop-shadow(0px 1px 2px rgba(0,0,0,.3))}img.pin[data-v-9d7df607]{width:40px;height:40px;z-index:2000} diff --git a/assets/Poll-aeb298b2-CmAHaRvX.js b/assets/Poll-aeb298b2-CHoU9q7j.js similarity index 92% rename from assets/Poll-aeb298b2-CmAHaRvX.js rename to assets/Poll-aeb298b2-CHoU9q7j.js index 4d6b3f8..fef35cf 100644 --- a/assets/Poll-aeb298b2-CmAHaRvX.js +++ b/assets/Poll-aeb298b2-CHoU9q7j.js @@ -1 +1 @@ -import{k as v,W as f,Q as m,y}from"./Life-BVlDglso.js";import{c as u,o as p,a as o,b as i,F as _,r as b,n as g,z as h,p as x,m as z}from"./index-B2-0DWq1.js";var F=Object.defineProperty,P=(e,t,s)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,R=(e,t,s)=>(P(e,t+"",s),s),j=Object.defineProperty,k=Object.getOwnPropertyDescriptor,d=(e,t,s,n)=>{for(var r=n>1?void 0:n?k(t,s):t,l=e.length-1,a;l>=0;l--)(a=e[l])&&(r=(n?a(t,s,r):a(r))||r);return n&&r&&j(t,s,r),r};let c=class extends f{constructor(){super(...arguments),R(this,"f")}get max(){return Math.max(...this.f.options.map(e=>e.voter_count))}percent(e){return this.f.total_voter_count==0?"0%":(e.voter_count/this.f.total_voter_count*100).toFixed(0)+"%"}get subtitle(){let e=this.f.type=="REGULAR"?"Poll":"Quiz";return this.f.is_anonymous&&(e="Anonymous "+e),e}};d([m({required:!0})],c.prototype,"f",2);c=d([y({components:{}})],c);const q=e=>(x("data-v-c8a557d5"),e=e(),z(),e),w={id:"Poll"},I={class:"question"},O={class:"subtitle"},S={class:"text"},A=q(()=>o("span",{class:"f-grow1"},null,-1)),B={class:"percentage"},D={class:"tail"};function E(e,t,s,n,r,l){return p(),u("div",w,[o("div",I,i(e.f.question),1),o("div",O,i(e.subtitle),1),(p(!0),u(_,null,b(e.f.options,a=>(p(),u("div",{class:g(["options",{dominant:a.voter_count===e.max&&e.max!==0}])},[o("span",S,i(a.text),1),A,o("span",B,i(e.percent(a)),1),o("div",{class:"bar",style:h({width:e.percent(a)})},null,4)],2))),256)),o("div",D,"Final Results - "+i(e.f.total_voter_count)+" Responses",1)])}const M=v(c,[["render",E],["__scopeId","data-v-c8a557d5"]]);export{M as default}; +import{k as v,W as f,Q as m,y}from"./Life-DgbMfal1.js";import{c as u,o as p,a as o,b as i,F as _,r as b,n as g,z as h,p as x,m as z}from"./index-CSLMAwfP.js";var F=Object.defineProperty,P=(e,t,s)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,R=(e,t,s)=>(P(e,t+"",s),s),j=Object.defineProperty,k=Object.getOwnPropertyDescriptor,d=(e,t,s,n)=>{for(var r=n>1?void 0:n?k(t,s):t,l=e.length-1,a;l>=0;l--)(a=e[l])&&(r=(n?a(t,s,r):a(r))||r);return n&&r&&j(t,s,r),r};let c=class extends f{constructor(){super(...arguments),R(this,"f")}get max(){return Math.max(...this.f.options.map(e=>e.voter_count))}percent(e){return this.f.total_voter_count==0?"0%":(e.voter_count/this.f.total_voter_count*100).toFixed(0)+"%"}get subtitle(){let e=this.f.type=="REGULAR"?"Poll":"Quiz";return this.f.is_anonymous&&(e="Anonymous "+e),e}};d([m({required:!0})],c.prototype,"f",2);c=d([y({components:{}})],c);const q=e=>(x("data-v-c8a557d5"),e=e(),z(),e),w={id:"Poll"},I={class:"question"},O={class:"subtitle"},S={class:"text"},A=q(()=>o("span",{class:"f-grow1"},null,-1)),B={class:"percentage"},D={class:"tail"};function E(e,t,s,n,r,l){return p(),u("div",w,[o("div",I,i(e.f.question),1),o("div",O,i(e.subtitle),1),(p(!0),u(_,null,b(e.f.options,a=>(p(),u("div",{class:g(["options",{dominant:a.voter_count===e.max&&e.max!==0}])},[o("span",S,i(a.text),1),A,o("span",B,i(e.percent(a)),1),o("div",{class:"bar",style:h({width:e.percent(a)})},null,4)],2))),256)),o("div",D,"Final Results - "+i(e.f.total_voter_count)+" Responses",1)])}const M=v(c,[["render",E],["__scopeId","data-v-c8a557d5"]]);export{M as default}; diff --git a/assets/Projects-BWtvtQ3K.js b/assets/Projects-DxScKbaw.js similarity index 66% rename from assets/Projects-BWtvtQ3K.js rename to assets/Projects-DxScKbaw.js index 80a8833..4bfcc9d 100644 --- a/assets/Projects-BWtvtQ3K.js +++ b/assets/Projects-DxScKbaw.js @@ -1 +1 @@ -import{t as _,B as p,C as l,_ as f,c as i,o as d}from"./index-B2-0DWq1.js";var v=Object.getOwnPropertyDescriptor,u=(t,o,a,r)=>{for(var e=r>1?void 0:r?v(o,a):o,s=t.length-1,n;s>=0;s--)(n=t[s])&&(e=n(e)||e);return e};let c=class extends p{};c=u([l],c);const P=_(c),j={id:"Projects"};function m(t,o,a,r,e,s){return d(),i("div",j)}const x=f(P,[["render",m]]);export{x as default}; +import{t as _,B as p,C as l,_ as f,c as i,o as d}from"./index-CSLMAwfP.js";var v=Object.getOwnPropertyDescriptor,u=(t,o,a,r)=>{for(var e=r>1?void 0:r?v(o,a):o,s=t.length-1,n;s>=0;s--)(n=t[s])&&(e=n(e)||e);return e};let c=class extends p{};c=u([l],c);const P=_(c),j={id:"Projects"};function m(t,o,a,r,e,s){return d(),i("div",j)}const x=f(P,[["render",m]]);export{x as default}; diff --git a/assets/VideoPlayer-328c0f9f-BuPfpDYc.js b/assets/VideoPlayer-328c0f9f-DQl9Ox4H.js similarity index 99% rename from assets/VideoPlayer-328c0f9f-BuPfpDYc.js rename to assets/VideoPlayer-328c0f9f-DQl9Ox4H.js index 042f99a..fa4bb42 100644 --- a/assets/VideoPlayer-328c0f9f-BuPfpDYc.js +++ b/assets/VideoPlayer-328c0f9f-DQl9Ox4H.js @@ -1,2 +1,2 @@ -import{A as gt,s as ft,c as Ie,E as yt,o as $e,g as bt}from"./index-B2-0DWq1.js";function m(e,i,t){return(i=wt(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}function vt(e,i){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var s=t.call(e,i);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(e)}function wt(e){var i=vt(e,"string");return typeof i=="symbol"?i:String(i)}function kt(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}function Oe(e,i){for(var t=0;ti){var t=It(i);return parseFloat(e.toFixed(t))}return Math.round(e/i)*i}var Ot=(function(){function e(i,t){kt(this,e),_.element(i)?this.element=i:_.string(i)&&(this.element=document.querySelector(i)),_.element(this.element)&&_.empty(this.element.rangeTouch)&&(this.config=je({},qe,{},t),this.init())}return Tt(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(i){var t=this,s=i?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(n){t.element[s](n,function(a){return t.set(a)},!1)})}},{key:"get",value:function(i){if(!e.enabled||!_.event(i))return null;var t,s=i.target,n=i.changedTouches[0],a=parseFloat(s.getAttribute("min"))||0,r=parseFloat(s.getAttribute("max"))||100,o=parseFloat(s.getAttribute("step"))||1,c=s.getBoundingClientRect(),u=100/c.width*(this.config.thumbWidth/2)/100;return 0>(t=100/c.width*(n.clientX-c.left))?t=0:100t?t-=(100-2*t)*u:50e!=null?e.constructor:null,U=(e,i)=>!!(e&&i&&e instanceof i),Pe=e=>e==null,Ye=e=>se(e)===Object,_t=e=>se(e)===Number&&!Number.isNaN(e),de=e=>se(e)===String,jt=e=>se(e)===Boolean,Qe=e=>typeof e=="function",Xe=e=>Array.isArray(e),qt=e=>U(e,WeakMap),Je=e=>U(e,NodeList),Ht=e=>se(e)===Text,Dt=e=>U(e,Event),Ft=e=>U(e,KeyboardEvent),Rt=e=>U(e,window.TextTrackCue)||U(e,window.VTTCue),Vt=e=>U(e,TextTrack)||!Pe(e)&&de(e.kind),Ut=e=>U(e,Promise)&&Qe(e.then),Wt=e=>e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object",Ge=e=>Pe(e)||(de(e)||Xe(e)||Je(e))&&!e.length||Ye(e)&&!Object.keys(e).length,Bt=e=>{if(U(e,window.URL))return!0;if(!de(e))return!1;let i=e;e.startsWith("http://")&&e.startsWith("https://")||(i=`http://${e}`);try{return!Ge(new URL(i).hostname)}catch{return!1}};var l={nullOrUndefined:Pe,object:Ye,number:_t,string:de,boolean:jt,function:Qe,array:Xe,weakMap:qt,nodeList:Je,element:Wt,textNode:Ht,event:Dt,keyboardEvent:Ft,cue:Rt,track:Vt,promise:Ut,url:Bt,empty:Ge};const ve=(()=>{const e=document.createElement("span"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},t=Object.keys(i).find(s=>e.style[s]!==void 0);return!!l.string(t)&&i[t]})();function Ze(e,i){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},i)}const zt=!!window.document.documentMode,Kt=/Edge/g.test(navigator.userAgent),Yt="WebkitAppearance"in document.documentElement.style&&!/Edge/g.test(navigator.userAgent),Qt=/iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1,Xt=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,Jt=/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1;var O={isIE:zt,isEdge:Kt,isWebKit:Yt,isIPhone:Qt,isIPadOS:Xt,isIos:Jt};function Gt(e){return JSON.parse(JSON.stringify(e))}function et(e,i){return i.split(".").reduce((t,s)=>t&&t[s],e)}function N(e={},...i){if(!i.length)return e;const t=i.shift();return l.object(t)?(Object.keys(t).forEach(s=>{l.object(t[s])?(Object.keys(e).includes(s)||Object.assign(e,{[s]:{}}),N(e[s],t[s])):Object.assign(e,{[s]:t[s]})}),N(e,...i)):e}function tt(e,i){const t=e.length?e:[e];Array.from(t).reverse().forEach((s,n)=>{const a=n>0?i.cloneNode(!0):i,r=s.parentNode,o=s.nextSibling;a.appendChild(s),o?r.insertBefore(a,o):r.appendChild(a)})}function we(e,i){l.element(e)&&!l.empty(i)&&Object.entries(i).filter(([,t])=>!l.nullOrUndefined(t)).forEach(([t,s])=>e.setAttribute(t,s))}function y(e,i,t){const s=document.createElement(e);return l.object(i)&&we(s,i),l.string(t)&&(s.innerText=t),s}function Zt(e,i){l.element(e)&&l.element(i)&&i.parentNode.insertBefore(e,i.nextSibling)}function He(e,i,t,s){l.element(i)&&i.appendChild(y(e,t,s))}function V(e){l.nodeList(e)||l.array(e)?Array.from(e).forEach(V):l.element(e)&&l.element(e.parentNode)&&e.parentNode.removeChild(e)}function le(e){if(!l.element(e))return;let{length:i}=e.childNodes;for(;i>0;)e.removeChild(e.lastChild),i-=1}function ce(e,i){return l.element(i)&&l.element(i.parentNode)&&l.element(e)?(i.parentNode.replaceChild(e,i),e):null}function F(e,i){if(!l.string(e)||l.empty(e))return{};const t={},s=N({},i);return e.split(",").forEach(n=>{const a=n.trim(),r=a.replace(".",""),o=a.replace(/[[\]]/g,"").split("="),[c]=o,u=o.length>1?o[1].replace(/["']/g,""):"";switch(a.charAt(0)){case".":l.string(s.class)?t.class=`${s.class} ${r}`:t.class=r;break;case"#":t.id=a.replace("#","");break;case"[":t[c]=u}}),N(s,t)}function z(e,i){if(!l.element(e))return;let t=i;l.boolean(t)||(t=!e.hidden),e.hidden=t}function E(e,i,t){if(l.nodeList(e))return Array.from(e).map(s=>E(s,i,t));if(l.element(e)){let s="toggle";return t!==void 0&&(s=t?"add":"remove"),e.classList[s](i),e.classList.contains(i)}return!1}function ue(e,i){return l.element(e)&&e.classList.contains(i)}function K(e,i){const{prototype:t}=Element;return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||function(){return Array.from(document.querySelectorAll(i)).includes(this)}).call(e,i)}function ei(e,i){const{prototype:t}=Element;return(t.closest||function(){let s=this;do{if(K.matches(s,i))return s;s=s.parentElement||s.parentNode}while(s!==null&&s.nodeType===1);return null}).call(e,i)}function G(e){return this.elements.container.querySelectorAll(e)}function I(e){return this.elements.container.querySelector(e)}function ge(e=null,i=!1){l.element(e)&&e.focus({preventScroll:!0,focusVisible:i})}const De={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},x={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,i){const t=x[e]||i!=="html5";return{api:t,ui:t&&x.rangeInput}},pip:!(O.isIPhone||!l.function(y("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||y("video").disablePictureInPicture)),airplay:l.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(l.empty(e))return!1;const[i]=e.split("/");let t=e;if(!this.isHTML5||i!==this.type)return!1;Object.keys(De).includes(t)&&(t+=`; codecs="${De[e]}"`);try{return!!(t&&this.media.canPlayType(t).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range",e.type==="range"})(),touch:"ontouchstart"in document.documentElement,transitions:ve!==!1,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},ti=(()=>{let e=!1;try{const i=Object.defineProperty({},"passive",{get:()=>(e=!0,null)});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}return e})();function Z(e,i,t,s=!1,n=!0,a=!1){if(!e||!("addEventListener"in e)||l.empty(i)||!l.function(t))return;const r=i.split(" ");let o=a;ti&&(o={passive:n,capture:a}),r.forEach(c=>{this&&this.eventListeners&&s&&this.eventListeners.push({element:e,type:c,callback:t,options:o}),e[s?"addEventListener":"removeEventListener"](c,t,o)})}function A(e,i="",t,s=!0,n=!1){Z.call(this,e,i,t,!0,s,n)}function me(e,i="",t,s=!0,n=!1){Z.call(this,e,i,t,!1,s,n)}function Me(e,i="",t,s=!0,n=!1){const a=(...r)=>{me(e,i,a,s,n),t.apply(this,r)};Z.call(this,e,i,a,!0,s,n)}function b(e,i="",t=!1,s={}){if(!l.element(e)||l.empty(i))return;const n=new CustomEvent(i,{bubbles:t,detail:{...s,plyr:this}});e.dispatchEvent(n)}function ii(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:i,type:t,callback:s,options:n}=e;i.removeEventListener(t,s,n)}),this.eventListeners=[])}function si(){return new Promise(e=>this.ready?setTimeout(e,0):A.call(this,this.elements.container,"ready",e)).then(()=>{})}function R(e){l.promise(e)&&e.then(null,()=>{})}function ke(e){return l.array(e)?e.filter((i,t)=>e.indexOf(i)===t):e}function it(e,i){return l.array(e)&&e.length?e.reduce((t,s)=>Math.abs(s-i)({...e,[i/t]:[i,t]}),{});function nt(e){return l.array(e)||l.string(e)&&e.includes(":")?(l.array(e)?e:e.split(":")).map(Number).every(l.number):!1}function he(e){if(!l.array(e)||!e.every(l.number))return null;const[i,t]=e,s=(a,r)=>r===0?a:s(r,a%r),n=s(i,t);return[i/n,t/n]}function Ne(e){const i=s=>nt(s)?s.split(":").map(Number):null;let t=i(e);if(t===null&&(t=i(this.config.ratio)),t===null&&!l.empty(this.embed)&&l.array(this.embed.ratio)&&({ratio:t}=this.embed),t===null&&this.isHTML5){const{videoWidth:s,videoHeight:n}=this.media;t=[s,n]}return he(t)}function Y(e){if(!this.isVideo)return{};const{wrapper:i}=this.elements,t=Ne.call(this,e);if(!l.array(t))return{};const[s,n]=he(t),a=100/s*n;if(st(`aspect-ratio: ${s}/${n}`)?i.style.aspectRatio=`${s}/${n}`:i.style.paddingBottom=`${a}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const r=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),o=(r-a)/(r/50);this.fullscreen.active?i.style.paddingBottom=null:this.media.style.transform=`translateY(-${o}%)`}else this.isHTML5&&i.classList.add(this.config.classNames.videoFixedRatio);return{padding:a,ratio:t}}function at(e,i,t=.05){const s=e/i,n=it(Object.keys(Fe),s);return Math.abs(n-s)<=t?Fe[n]:[e,i]}function ni(){return[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)]}const B={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(e=>{const i=e.getAttribute("type");return!!l.empty(i)||x.mime.call(this,i)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:B.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,l.empty(this.config.ratio)||Y.call(e),Object.defineProperty(e.media,"quality",{get(){const i=B.getSources.call(e).find(t=>t.getAttribute("src")===e.source);return i&&Number(i.getAttribute("size"))},set(i){if(e.quality!==i){if(e.config.quality.forced&&l.function(e.config.quality.onChange))e.config.quality.onChange(i);else{const t=B.getSources.call(e).find(c=>Number(c.getAttribute("size"))===i);if(!t)return;const{currentTime:s,paused:n,preload:a,readyState:r,playbackRate:o}=e.media;e.media.src=t.getAttribute("src"),(a!=="none"||r)&&(e.once("loadedmetadata",()=>{e.speed=o,e.currentTime=s,n||R(e.play())}),e.media.load())}b.call(e,e.media,"qualitychange",!1,{quality:i})}}})},cancelRequests(){this.isHTML5&&(V(B.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function ai(e){return`${e}-${Math.floor(1e4*Math.random())}`}function Te(e,...i){return l.empty(e)?e:e.toString().replace(/{(\d+)}/g,(t,s)=>i[s].toString())}function li(e,i){return e===0||i===0||Number.isNaN(e)||Number.isNaN(i)?0:(e/i*100).toFixed(2)}const J=(e="",i="",t="")=>e.replace(new RegExp(i.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),t.toString()),lt=(e="")=>e.toString().replace(/\w\S*/g,i=>i.charAt(0).toUpperCase()+i.slice(1).toLowerCase());function ri(e=""){let i=e.toString();return i=J(i,"-"," "),i=J(i,"_"," "),i=lt(i),J(i," ","")}function oi(e=""){let i=e.toString();return i=ri(i),i.charAt(0).toLowerCase()+i.slice(1)}function ci(e){const i=document.createDocumentFragment(),t=document.createElement("div");return i.appendChild(t),t.innerHTML=e,i.firstChild.innerText}function ui(e){const i=document.createElement("div");return i.appendChild(e),i.innerHTML}const Re={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},$={get(e="",i={}){if(l.empty(e)||l.empty(i))return"";let t=et(i.i18n,e);if(l.empty(t))return Object.keys(Re).includes(e)?Re[e]:"";const s={"{seektime}":i.seekTime,"{title}":i.title};return Object.entries(s).forEach(([n,a])=>{t=J(t,n,a)}),t}};class ee{constructor(i){m(this,"get",t=>{if(!ee.supported||!this.enabled)return null;const s=window.localStorage.getItem(this.key);if(l.empty(s))return null;const n=JSON.parse(s);return l.string(t)&&t.length?n[t]:n}),m(this,"set",t=>{if(!ee.supported||!this.enabled||!l.object(t))return;let s=this.get();l.empty(s)&&(s={}),N(s,t);try{window.localStorage.setItem(this.key,JSON.stringify(s))}catch{}}),this.enabled=i.config.storage.enabled,this.key=i.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const i="___test";return window.localStorage.setItem(i,i),window.localStorage.removeItem(i),!0}catch{return!1}}}function ne(e,i="text"){return new Promise((t,s)=>{try{const n=new XMLHttpRequest;if(!("withCredentials"in n))return;n.addEventListener("load",()=>{if(i==="text")try{t(JSON.parse(n.responseText))}catch{t(n.responseText)}else t(n.response)}),n.addEventListener("error",()=>{throw new Error(n.status)}),n.open("GET",e,!0),n.responseType=i,n.send()}catch(n){s(n)}})}function rt(e,i){if(!l.string(e))return;const t="cache",s=l.string(i);let n=!1;const a=()=>document.getElementById(i)!==null,r=(o,c)=>{o.innerHTML=c,s&&a()||document.body.insertAdjacentElement("afterbegin",o)};if(!s||!a()){const o=ee.supported,c=document.createElement("div");if(c.setAttribute("hidden",""),s&&c.setAttribute("id",i),o){const u=window.localStorage.getItem(`${t}-${i}`);if(n=u!==null,n){const g=JSON.parse(u);r(c,g.content)}}ne(e).then(u=>{if(!l.empty(u)){if(o)try{window.localStorage.setItem(`${t}-${i}`,JSON.stringify({content:u}))}catch{}r(c,u)}}).catch(()=>{})}}const ot=e=>Math.trunc(e/60/60%60,10),hi=e=>Math.trunc(e/60%60,10),di=e=>Math.trunc(e%60,10);function pe(e=0,i=!1,t=!1){if(!l.number(e))return pe(void 0,i,t);const s=o=>`0${o}`.slice(-2);let n=ot(e);const a=hi(e),r=di(e);return n=i||n>0?`${n}:`:"",`${t&&e>0?"-":""}${n}${s(a)}:${s(r)}`}const h={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),i=window.location.host?window.location.host:window.top.location.host,t=e.host!==i||O.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements(){try{return this.elements.controls=I.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:G.call(this,this.config.selectors.buttons.play),pause:I.call(this,this.config.selectors.buttons.pause),restart:I.call(this,this.config.selectors.buttons.restart),rewind:I.call(this,this.config.selectors.buttons.rewind),fastForward:I.call(this,this.config.selectors.buttons.fastForward),mute:I.call(this,this.config.selectors.buttons.mute),pip:I.call(this,this.config.selectors.buttons.pip),airplay:I.call(this,this.config.selectors.buttons.airplay),settings:I.call(this,this.config.selectors.buttons.settings),captions:I.call(this,this.config.selectors.buttons.captions),fullscreen:I.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=I.call(this,this.config.selectors.progress),this.elements.inputs={seek:I.call(this,this.config.selectors.inputs.seek),volume:I.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:I.call(this,this.config.selectors.display.buffer),currentTime:I.call(this,this.config.selectors.display.currentTime),duration:I.call(this,this.config.selectors.display.duration)},l.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,i){const t="http://www.w3.org/2000/svg",s=h.getIconUrl.call(this),n=`${s.cors?"":s.url}#${this.config.iconPrefix}`,a=document.createElementNS(t,"svg");we(a,N(i,{"aria-hidden":"true",focusable:"false"}));const r=document.createElementNS(t,"use"),o=`${n}-${e}`;return"href"in r&&r.setAttributeNS("http://www.w3.org/1999/xlink","href",o),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),a.appendChild(r),a},createLabel(e,i={}){const t=$.get(e,this.config);return y("span",{...i,class:[i.class,this.config.classNames.hidden].filter(Boolean).join(" ")},t)},createBadge(e){if(l.empty(e))return null;const i=y("span",{class:this.config.classNames.menu.value});return i.appendChild(y("span",{class:this.config.classNames.menu.badge},e)),i},createButton(e,i){const t=N({},i);let s=oi(e);const n={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(r=>{Object.keys(t).includes(r)&&(n[r]=t[r],delete t[r])}),n.element!=="button"||Object.keys(t).includes("type")||(t.type="button"),Object.keys(t).includes("class")?t.class.split(" ").some(r=>r===this.config.classNames.control)||N(t,{class:`${t.class} ${this.config.classNames.control}`}):t.class=this.config.classNames.control,e){case"play":n.toggle=!0,n.label="play",n.labelPressed="pause",n.icon="play",n.iconPressed="pause";break;case"mute":n.toggle=!0,n.label="mute",n.labelPressed="unmute",n.icon="volume",n.iconPressed="muted";break;case"captions":n.toggle=!0,n.label="enableCaptions",n.labelPressed="disableCaptions",n.icon="captions-off",n.iconPressed="captions-on";break;case"fullscreen":n.toggle=!0,n.label="enterFullscreen",n.labelPressed="exitFullscreen",n.icon="enter-fullscreen",n.iconPressed="exit-fullscreen";break;case"play-large":t.class+=` ${this.config.classNames.control}--overlaid`,s="play",n.label="play",n.icon="play";break;default:l.empty(n.label)&&(n.label=s),l.empty(n.icon)&&(n.icon=e)}const a=y(n.element);return n.toggle?(a.appendChild(h.createIcon.call(this,n.iconPressed,{class:"icon--pressed"})),a.appendChild(h.createIcon.call(this,n.icon,{class:"icon--not-pressed"})),a.appendChild(h.createLabel.call(this,n.labelPressed,{class:"label--pressed"})),a.appendChild(h.createLabel.call(this,n.label,{class:"label--not-pressed"}))):(a.appendChild(h.createIcon.call(this,n.icon)),a.appendChild(h.createLabel.call(this,n.label))),N(t,F(this.config.selectors.buttons[s],t)),we(a,t),s==="play"?(l.array(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(a)):this.elements.buttons[s]=a,a},createRange(e,i){const t=y("input",N(F(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":$.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},i));return this.elements.inputs[e]=t,h.updateRangeFill.call(this,t),Ot.setup(t),t},createProgress(e,i){const t=y("progress",N(F(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},i));if(e!=="volume"){t.appendChild(y("span",null,"0"));const s={played:"played",buffer:"buffered"}[e],n=s?$.get(s,this.config):"";t.innerText=`% ${n.toLowerCase()}`}return this.elements.display[e]=t,t},createTime(e,i){const t=F(this.config.selectors.display[e],i),s=y("div",N(t,{class:`${t.class?t.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":$.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=s,s},bindMenuItemShortcuts(e,i){A.call(this,e,"keydown keyup",t=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(t.key)||(t.preventDefault(),t.stopPropagation(),t.type==="keydown"))return;const s=K(e,'[role="menuitemradio"]');if(!s&&[" ","ArrowRight"].includes(t.key))h.showMenuPanel.call(this,i,!0);else{let n;t.key!==" "&&(t.key==="ArrowDown"||s&&t.key==="ArrowRight"?(n=e.nextElementSibling,l.element(n)||(n=e.parentNode.firstElementChild)):(n=e.previousElementSibling,l.element(n)||(n=e.parentNode.lastElementChild)),ge.call(this,n,!0))}},!1),A.call(this,e,"keyup",t=>{t.key==="Return"&&h.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:i,type:t,title:s,badge:n=null,checked:a=!1}){const r=F(this.config.selectors.inputs[t]),o=y("button",N(r,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${r.class?r.class:""}`.trim(),"aria-checked":a,value:e})),c=y("span");c.innerHTML=s,l.element(n)&&c.appendChild(n),o.appendChild(c),Object.defineProperty(o,"checked",{enumerable:!0,get:()=>o.getAttribute("aria-checked")==="true",set(u){u&&Array.from(o.parentNode.children).filter(g=>K(g,'[role="menuitemradio"]')).forEach(g=>g.setAttribute("aria-checked","false")),o.setAttribute("aria-checked",u?"true":"false")}}),this.listeners.bind(o,"click keyup",u=>{if(!l.keyboardEvent(u)||u.key===" "){switch(u.preventDefault(),u.stopPropagation(),o.checked=!0,t){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=parseFloat(e)}h.showMenuPanel.call(this,"home",l.keyboardEvent(u))}},t,!1),h.bindMenuItemShortcuts.call(this,o,t),i.appendChild(o)},formatTime(e=0,i=!1){return l.number(e)?pe(e,ot(this.duration)>0,i):e},updateTimeDisplay(e=null,i=0,t=!1){l.element(e)&&l.number(i)&&(e.innerText=h.formatTime(i,t))},updateVolume(){this.supported.ui&&(l.element(this.elements.inputs.volume)&&h.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),l.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(e,i=0){l.element(e)&&(e.value=i,h.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!l.event(e))return;let i=0;const t=(s,n)=>{const a=l.number(n)?n:0,r=l.element(s)?s:this.elements.display.buffer;if(l.element(r)){r.value=a;const o=r.getElementsByTagName("span")[0];l.element(o)&&(o.childNodes[0].nodeValue=a)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":i=li(this.currentTime,this.duration),e.type==="timeupdate"&&h.setRange.call(this,this.elements.inputs.seek,i);break;case"playing":case"progress":t(this.elements.display.buffer,100*this.buffered)}},updateRangeFill(e){const i=l.event(e)?e.target:e;if(l.element(i)&&i.getAttribute("type")==="range"){if(K(i,this.config.selectors.inputs.seek)){i.setAttribute("aria-valuenow",this.currentTime);const t=h.formatTime(this.currentTime),s=h.formatTime(this.duration),n=$.get("seekLabel",this.config);i.setAttribute("aria-valuetext",n.replace("{currentTime}",t).replace("{duration}",s))}else if(K(i,this.config.selectors.inputs.volume)){const t=100*i.value;i.setAttribute("aria-valuenow",t),i.setAttribute("aria-valuetext",`${t.toFixed(1)}%`)}else i.setAttribute("aria-valuenow",i.value);(O.isWebKit||O.isIPadOS)&&i.style.setProperty("--value",i.value/i.max*100+"%")}},updateSeekTooltip(e){var i,t;if(!this.config.tooltips.seek||!l.element(this.elements.inputs.seek)||!l.element(this.elements.display.seekTooltip)||this.duration===0)return;const s=this.elements.display.seekTooltip,n=`${this.config.classNames.tooltip}--visible`,a=g=>E(s,n,g);if(this.touch)return void a(!1);let r=0;const o=this.elements.progress.getBoundingClientRect();if(l.event(e))r=100/o.width*(e.pageX-o.left);else{if(!ue(s,n))return;r=parseFloat(s.style.left,10)}r<0?r=0:r>100&&(r=100);const c=this.duration/100*r;s.innerText=h.formatTime(c);const u=(i=this.config.markers)===null||i===void 0||(t=i.points)===null||t===void 0?void 0:t.find(({time:g})=>g===Math.round(c));u&&s.insertAdjacentHTML("afterbegin",`${u.label}
`),s.style.left=`${r}%`,l.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&a(e.type==="mouseenter")},timeUpdate(e){const i=!l.element(this.elements.display.duration)&&this.config.invertTime;h.updateTimeDisplay.call(this,this.elements.display.currentTime,i?this.duration-this.currentTime:this.currentTime,i),e&&e.type==="timeupdate"&&this.media.seeking||h.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return z(this.elements.display.currentTime,!0),void z(this.elements.progress,!0);l.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=l.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&h.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&h.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&h.setMarkers.call(this),h.updateSeekTooltip.call(this)},toggleMenuButton(e,i){z(this.elements.settings.buttons[e],!i)},updateSetting(e,i,t){const s=this.elements.settings.panels[e];let n=null,a=i;if(e==="captions")n=this.currentTrack;else{if(n=l.empty(t)?this[e]:t,l.empty(n)&&(n=this.config[e].default),!l.empty(this.options[e])&&!this.options[e].includes(n))return void this.debug.warn(`Unsupported value of '${n}' for ${e}`);if(!this.config[e].options.includes(n))return void this.debug.warn(`Disabled value of '${n}' for ${e}`)}if(l.element(a)||(a=s&&s.querySelector('[role="menu"]')),!l.element(a))return;this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=h.getLabel.call(this,e,n);const r=a&&a.querySelector(`[value="${n}"]`);l.element(r)&&(r.checked=!0)},getLabel(e,i){switch(e){case"speed":return i===1?$.get("normal",this.config):`${i}×`;case"quality":if(l.number(i)){const t=$.get(`qualityLabel.${i}`,this.config);return t.length?t:`${i}p`}return lt(i);case"captions":return S.getLabel.call(this);default:return null}},setQualityMenu(e){if(!l.element(this.elements.settings.panels.quality))return;const i="quality",t=this.elements.settings.panels.quality.querySelector('[role="menu"]');l.array(e)&&(this.options.quality=ke(e).filter(a=>this.config.quality.options.includes(a)));const s=!l.empty(this.options.quality)&&this.options.quality.length>1;if(h.toggleMenuButton.call(this,i,s),le(t),h.checkMenu.call(this),!s)return;const n=a=>{const r=$.get(`qualityBadge.${a}`,this.config);return r.length?h.createBadge.call(this,r):null};this.options.quality.sort((a,r)=>{const o=this.config.quality.options;return o.indexOf(a)>o.indexOf(r)?1:-1}).forEach(a=>{h.createMenuItem.call(this,{value:a,list:t,type:i,title:h.getLabel.call(this,"quality",a),badge:n(a)})}),h.updateSetting.call(this,i,t)},setCaptionsMenu(){if(!l.element(this.elements.settings.panels.captions))return;const e="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=S.getTracks.call(this),s=!!t.length;if(h.toggleMenuButton.call(this,e,s),le(i),h.checkMenu.call(this),!s)return;const n=t.map((a,r)=>({value:r,checked:this.captions.toggled&&this.currentTrack===r,title:S.getLabel.call(this,a),badge:a.language&&h.createBadge.call(this,a.language.toUpperCase()),list:i,type:"language"}));n.unshift({value:-1,checked:!this.captions.toggled,title:$.get("disabled",this.config),list:i,type:"language"}),n.forEach(h.createMenuItem.bind(this)),h.updateSetting.call(this,e,i)},setSpeedMenu(){if(!l.element(this.elements.settings.panels.speed))return;const e="speed",i=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(s=>s>=this.minimumSpeed&&s<=this.maximumSpeed);const t=!l.empty(this.options.speed)&&this.options.speed.length>1;h.toggleMenuButton.call(this,e,t),le(i),h.checkMenu.call(this),t&&(this.options.speed.forEach(s=>{h.createMenuItem.call(this,{value:s,list:i,type:e,title:h.getLabel.call(this,"speed",s)})}),h.updateSetting.call(this,e,i))},checkMenu(){const{buttons:e}=this.elements.settings,i=!l.empty(e)&&Object.values(e).some(t=>!t.hidden);z(this.elements.settings.menu,!i)},focusFirstMenuItem(e,i=!1){if(this.elements.settings.popup.hidden)return;let t=e;l.element(t)||(t=Object.values(this.elements.settings.panels).find(n=>!n.hidden));const s=t.querySelector('[role^="menuitem"]');ge.call(this,s,i)},toggleMenu(e){const{popup:i}=this.elements.settings,t=this.elements.buttons.settings;if(!l.element(i)||!l.element(t))return;const{hidden:s}=i;let n=s;if(l.boolean(e))n=e;else if(l.keyboardEvent(e)&&e.key==="Escape")n=!1;else if(l.event(e)){const a=l.function(e.composedPath)?e.composedPath()[0]:e.target,r=i.contains(a);if(r||!r&&e.target!==t&&n)return}t.setAttribute("aria-expanded",n),z(i,!n),E(this.elements.container,this.config.classNames.menu.open,n),n&&l.keyboardEvent(e)?h.focusFirstMenuItem.call(this,null,!0):n||s||ge.call(this,t,l.keyboardEvent(e))},getMenuSize(e){const i=e.cloneNode(!0);i.style.position="absolute",i.style.opacity=0,i.removeAttribute("hidden"),e.parentNode.appendChild(i);const t=i.scrollWidth,s=i.scrollHeight;return V(i),{width:t,height:s}},showMenuPanel(e="",i=!1){const t=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!l.element(t))return;const s=t.parentNode,n=Array.from(s.children).find(a=>!a.hidden);if(x.transitions&&!x.reducedMotion){s.style.width=`${n.scrollWidth}px`,s.style.height=`${n.scrollHeight}px`;const a=h.getMenuSize.call(this,t),r=o=>{o.target===s&&["width","height"].includes(o.propertyName)&&(s.style.width="",s.style.height="",me.call(this,s,ve,r))};A.call(this,s,ve,r),s.style.width=`${a.width}px`,s.style.height=`${a.height}px`}z(n,!0),z(t,!1),h.focusFirstMenuItem.call(this,t,i)},setDownloadUrl(){const e=this.elements.buttons.download;l.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:i,createButton:t,createProgress:s,createRange:n,createTime:a,setQualityMenu:r,setSpeedMenu:o,showMenuPanel:c}=h;this.elements.controls=null,l.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(t.call(this,"play-large"));const u=y("div",F(this.config.selectors.controls.wrapper));this.elements.controls=u;const g={class:"plyr__controls__item"};return ke(l.array(this.config.controls)?this.config.controls:[]).forEach(f=>{if(f==="restart"&&u.appendChild(t.call(this,"restart",g)),f==="rewind"&&u.appendChild(t.call(this,"rewind",g)),f==="play"&&u.appendChild(t.call(this,"play",g)),f==="fast-forward"&&u.appendChild(t.call(this,"fast-forward",g)),f==="progress"){const d=y("div",{class:`${g.class} plyr__progress__container`}),v=y("div",F(this.config.selectors.progress));if(v.appendChild(n.call(this,"seek",{id:`plyr-seek-${e.id}`})),v.appendChild(s.call(this,"buffer")),this.config.tooltips.seek){const k=y("span",{class:this.config.classNames.tooltip},"00:00");v.appendChild(k),this.elements.display.seekTooltip=k}this.elements.progress=v,d.appendChild(this.elements.progress),u.appendChild(d)}if(f==="current-time"&&u.appendChild(a.call(this,"currentTime",g)),f==="duration"&&u.appendChild(a.call(this,"duration",g)),f==="mute"||f==="volume"){let{volume:d}=this.elements;if(l.element(d)&&u.contains(d)||(d=y("div",N({},g,{class:`${g.class} plyr__volume`.trim()})),this.elements.volume=d,u.appendChild(d)),f==="mute"&&d.appendChild(t.call(this,"mute")),f==="volume"&&!O.isIos&&!O.isIPadOS){const v={max:1,step:.05,value:this.config.volume};d.appendChild(n.call(this,"volume",N(v,{id:`plyr-volume-${e.id}`})))}}if(f==="captions"&&u.appendChild(t.call(this,"captions",g)),f==="settings"&&!l.empty(this.config.settings)){const d=y("div",N({},g,{class:`${g.class} plyr__menu`.trim(),hidden:""}));d.appendChild(t.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const v=y("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),k=y("div"),T=y("div",{id:`plyr-settings-${e.id}-home`}),M=y("div",{role:"menu"});T.appendChild(M),k.appendChild(T),this.elements.settings.panels.home=T,this.config.settings.forEach(w=>{const p=y("button",N(F(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));i.call(this,p,w),A.call(this,p,"click",()=>{c.call(this,w,!1)});const C=y("span",null,$.get(w,this.config)),L=y("span",{class:this.config.classNames.menu.value});L.innerHTML=e[w],C.appendChild(L),p.appendChild(C),M.appendChild(p);const j=y("div",{id:`plyr-settings-${e.id}-${w}`,hidden:""}),q=y("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});q.appendChild(y("span",{"aria-hidden":!0},$.get(w,this.config))),q.appendChild(y("span",{class:this.config.classNames.hidden},$.get("menuBack",this.config))),A.call(this,j,"keydown",D=>{D.key==="ArrowLeft"&&(D.preventDefault(),D.stopPropagation(),c.call(this,"home",!0))},!1),A.call(this,q,"click",()=>{c.call(this,"home",!1)}),j.appendChild(q),j.appendChild(y("div",{role:"menu"})),k.appendChild(j),this.elements.settings.buttons[w]=p,this.elements.settings.panels[w]=j}),v.appendChild(k),d.appendChild(v),u.appendChild(d),this.elements.settings.popup=v,this.elements.settings.menu=d}if(f==="pip"&&x.pip&&u.appendChild(t.call(this,"pip",g)),f==="airplay"&&x.airplay&&u.appendChild(t.call(this,"airplay",g)),f==="download"){const d=N({},g,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(d.download="");const{download:v}=this.config.urls;!l.url(v)&&this.isEmbed&&N(d,{icon:`logo-${this.provider}`,label:this.provider}),u.appendChild(t.call(this,"download",d))}f==="fullscreen"&&u.appendChild(t.call(this,"fullscreen",g))}),this.isHTML5&&r.call(this,B.getQualityOptions.call(this)),o.call(this),u},inject(){if(this.config.loadSprite){const n=h.getIconUrl.call(this);n.cors&&rt(n.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let e=null;this.elements.controls=null;const i={id:this.id,seektime:this.config.seekTime,title:this.config.title};let t=!0;l.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),l.element(this.config.controls)||l.string(this.config.controls)?e=this.config.controls:(e=h.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:S.getLabel.call(this)}),t=!1);let s;if(t&&l.string(this.config.controls)&&(e=(n=>{let a=n;return Object.entries(i).forEach(([r,o])=>{a=J(a,`{${r}}`,o)}),a})(e)),l.string(this.config.selectors.controls.container)&&(s=document.querySelector(this.config.selectors.controls.container)),l.element(s)||(s=this.elements.container),s[l.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),l.element(this.elements.controls)||h.findElements.call(this),!l.empty(this.elements.buttons)){const n=a=>{const r=this.config.classNames.controlPressed;a.setAttribute("aria-pressed","false"),Object.defineProperty(a,"pressed",{configurable:!0,enumerable:!0,get:()=>ue(a,r),set(o=!1){E(a,r,o),a.setAttribute("aria-pressed",o?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(a=>{l.array(a)||l.nodeList(a)?Array.from(a).filter(Boolean).forEach(n):n(a)})}if(O.isEdge&&Ze(s),this.config.tooltips.controls){const{classNames:n,selectors:a}=this.config,r=`${a.controls.wrapper} ${a.labels} .${n.hidden}`,o=G.call(this,r);Array.from(o).forEach(c=>{E(c,this.config.classNames.hidden,!1),E(c,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch{}},setMarkers(){var e,i;if(!this.duration||this.elements.markers)return;const t=(e=this.config.markers)===null||e===void 0||(i=e.points)===null||i===void 0?void 0:i.filter(({time:c})=>c>0&&cE(a,r,c);t.forEach(c=>{const u=y("span",{class:this.config.classNames.marker},""),g=c.time/this.duration*100+"%";a&&(u.addEventListener("mouseenter",()=>{c.label||(a.style.left=g,a.innerHTML=c.label,o(!0))}),u.addEventListener("mouseleave",()=>{o(!1)})),u.addEventListener("click",()=>{this.currentTime=c.time}),u.style.left=g,n.appendChild(u)}),s.appendChild(n),this.config.tooltips.seek||(a=y("span",{class:this.config.classNames.tooltip},""),s.appendChild(a)),this.elements.markers={points:n,tip:a},this.elements.progress.appendChild(s)}};function ct(e,i=!0){let t=e;if(i){const s=document.createElement("a");s.href=t,t=s.href}try{return new URL(t)}catch{return null}}function ut(e){const i=new URLSearchParams;return l.object(e)&&Object.entries(e).forEach(([t,s])=>{i.set(t,s)}),i}const S={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!x.textTracks)return void(l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&h.setCaptionsMenu.call(this));if(l.element(this.elements.captions)||(this.elements.captions=y("div",F(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),Zt(this.elements.captions,this.elements.wrapper)),O.isIE&&window.URL){const s=this.media.querySelectorAll("track");Array.from(s).forEach(n=>{const a=n.getAttribute("src"),r=ct(a);r!==null&&r.hostname!==window.location.href.hostname&&["http:","https:"].includes(r.protocol)&&ne(a,"blob").then(o=>{n.setAttribute("src",window.URL.createObjectURL(o))}).catch(()=>{V(n)})})}const e=ke((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(s=>s.split("-")[0]));let i=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();i==="auto"&&([i]=e);let t=this.storage.get("captions");if(l.boolean(t)||({active:t}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:t,language:i,languages:e}),this.isHTML5){const s=this.config.captions.update?"addtrack removetrack":"removetrack";A.call(this,this.media.textTracks,s,S.update.bind(this))}setTimeout(S.update.bind(this),0)},update(){const e=S.getTracks.call(this,!0),{active:i,language:t,meta:s,currentTrackNode:n}=this.captions,a=!!e.find(r=>r.language===t);this.isHTML5&&this.isVideo&&e.filter(r=>!s.get(r)).forEach(r=>{this.debug.log("Track added",r),s.set(r,{default:r.mode==="showing"}),r.mode==="showing"&&(r.mode="hidden"),A.call(this,r,"cuechange",()=>S.updateCues.call(this))}),(a&&this.language!==t||!e.includes(n))&&(S.setLanguage.call(this,t),S.toggle.call(this,i&&a)),this.elements&&E(this.elements.container,this.config.classNames.captions.enabled,!l.empty(e)),l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&h.setCaptionsMenu.call(this)},toggle(e,i=!0){if(!this.supported.ui)return;const{toggled:t}=this.captions,s=this.config.classNames.captions.active,n=l.nullOrUndefined(e)?!t:e;if(n!==t){if(i||(this.captions.active=n,this.storage.set({captions:n})),!this.language&&n&&!i){const a=S.getTracks.call(this),r=S.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=r.language,void S.set.call(this,a.indexOf(r))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=n),E(this.elements.container,s,n),this.captions.toggled=n,h.updateSetting.call(this,"captions"),b.call(this,this.media,n?"captionsenabled":"captionsdisabled")}setTimeout(()=>{n&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,i=!0){const t=S.getTracks.call(this);if(e!==-1)if(l.number(e))if(e in t){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const s=t[e],{language:n}=s||{};this.captions.currentTrackNode=s,h.updateSetting.call(this,"captions"),i||(this.captions.language=n,this.storage.set({language:n})),this.isVimeo&&this.embed.enableTextTrack(n),b.call(this,this.media,"languagechange")}S.toggle.call(this,!0,i),this.isHTML5&&this.isVideo&&S.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else S.toggle.call(this,!1,i)},setLanguage(e,i=!0){if(!l.string(e))return void this.debug.warn("Invalid language argument",e);const t=e.toLowerCase();this.captions.language=t;const s=S.getTracks.call(this),n=S.findTrack.call(this,[t]);S.set.call(this,s.indexOf(n),i)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(i=>!this.isHTML5||e||this.captions.meta.has(i)).filter(i=>["captions","subtitles"].includes(i.kind))},findTrack(e,i=!1){const t=S.getTracks.call(this),s=r=>Number((this.captions.meta.get(r)||{}).default),n=Array.from(t).sort((r,o)=>s(o)-s(r));let a;return e.every(r=>(a=n.find(o=>o.language===r),!a)),a||(i?n[0]:void 0)},getCurrentTrack(){return S.getTracks.call(this)[this.currentTrack]},getLabel(e){let i=e;return!l.track(i)&&x.textTracks&&this.captions.toggled&&(i=S.getCurrentTrack.call(this)),l.track(i)?l.empty(i.label)?l.empty(i.language)?$.get("enabled",this.config):e.language.toUpperCase():i.label:$.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!l.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!l.nullOrUndefined(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let i=e;if(!i){const s=S.getCurrentTrack.call(this);i=Array.from((s||{}).activeCues||[]).map(n=>n.getCueAsHTML()).map(ui)}const t=i.map(s=>s.trim()).join(` +import{A as gt,s as ft,c as Ie,E as yt,o as $e,g as bt}from"./index-CSLMAwfP.js";function m(e,i,t){return(i=wt(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}function vt(e,i){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var s=t.call(e,i);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(e)}function wt(e){var i=vt(e,"string");return typeof i=="symbol"?i:String(i)}function kt(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}function Oe(e,i){for(var t=0;ti){var t=It(i);return parseFloat(e.toFixed(t))}return Math.round(e/i)*i}var Ot=(function(){function e(i,t){kt(this,e),_.element(i)?this.element=i:_.string(i)&&(this.element=document.querySelector(i)),_.element(this.element)&&_.empty(this.element.rangeTouch)&&(this.config=je({},qe,{},t),this.init())}return Tt(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(i){var t=this,s=i?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(n){t.element[s](n,function(a){return t.set(a)},!1)})}},{key:"get",value:function(i){if(!e.enabled||!_.event(i))return null;var t,s=i.target,n=i.changedTouches[0],a=parseFloat(s.getAttribute("min"))||0,r=parseFloat(s.getAttribute("max"))||100,o=parseFloat(s.getAttribute("step"))||1,c=s.getBoundingClientRect(),u=100/c.width*(this.config.thumbWidth/2)/100;return 0>(t=100/c.width*(n.clientX-c.left))?t=0:100t?t-=(100-2*t)*u:50e!=null?e.constructor:null,U=(e,i)=>!!(e&&i&&e instanceof i),Pe=e=>e==null,Ye=e=>se(e)===Object,_t=e=>se(e)===Number&&!Number.isNaN(e),de=e=>se(e)===String,jt=e=>se(e)===Boolean,Qe=e=>typeof e=="function",Xe=e=>Array.isArray(e),qt=e=>U(e,WeakMap),Je=e=>U(e,NodeList),Ht=e=>se(e)===Text,Dt=e=>U(e,Event),Ft=e=>U(e,KeyboardEvent),Rt=e=>U(e,window.TextTrackCue)||U(e,window.VTTCue),Vt=e=>U(e,TextTrack)||!Pe(e)&&de(e.kind),Ut=e=>U(e,Promise)&&Qe(e.then),Wt=e=>e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object",Ge=e=>Pe(e)||(de(e)||Xe(e)||Je(e))&&!e.length||Ye(e)&&!Object.keys(e).length,Bt=e=>{if(U(e,window.URL))return!0;if(!de(e))return!1;let i=e;e.startsWith("http://")&&e.startsWith("https://")||(i=`http://${e}`);try{return!Ge(new URL(i).hostname)}catch{return!1}};var l={nullOrUndefined:Pe,object:Ye,number:_t,string:de,boolean:jt,function:Qe,array:Xe,weakMap:qt,nodeList:Je,element:Wt,textNode:Ht,event:Dt,keyboardEvent:Ft,cue:Rt,track:Vt,promise:Ut,url:Bt,empty:Ge};const ve=(()=>{const e=document.createElement("span"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},t=Object.keys(i).find(s=>e.style[s]!==void 0);return!!l.string(t)&&i[t]})();function Ze(e,i){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},i)}const zt=!!window.document.documentMode,Kt=/Edge/g.test(navigator.userAgent),Yt="WebkitAppearance"in document.documentElement.style&&!/Edge/g.test(navigator.userAgent),Qt=/iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1,Xt=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,Jt=/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1;var O={isIE:zt,isEdge:Kt,isWebKit:Yt,isIPhone:Qt,isIPadOS:Xt,isIos:Jt};function Gt(e){return JSON.parse(JSON.stringify(e))}function et(e,i){return i.split(".").reduce((t,s)=>t&&t[s],e)}function N(e={},...i){if(!i.length)return e;const t=i.shift();return l.object(t)?(Object.keys(t).forEach(s=>{l.object(t[s])?(Object.keys(e).includes(s)||Object.assign(e,{[s]:{}}),N(e[s],t[s])):Object.assign(e,{[s]:t[s]})}),N(e,...i)):e}function tt(e,i){const t=e.length?e:[e];Array.from(t).reverse().forEach((s,n)=>{const a=n>0?i.cloneNode(!0):i,r=s.parentNode,o=s.nextSibling;a.appendChild(s),o?r.insertBefore(a,o):r.appendChild(a)})}function we(e,i){l.element(e)&&!l.empty(i)&&Object.entries(i).filter(([,t])=>!l.nullOrUndefined(t)).forEach(([t,s])=>e.setAttribute(t,s))}function y(e,i,t){const s=document.createElement(e);return l.object(i)&&we(s,i),l.string(t)&&(s.innerText=t),s}function Zt(e,i){l.element(e)&&l.element(i)&&i.parentNode.insertBefore(e,i.nextSibling)}function He(e,i,t,s){l.element(i)&&i.appendChild(y(e,t,s))}function V(e){l.nodeList(e)||l.array(e)?Array.from(e).forEach(V):l.element(e)&&l.element(e.parentNode)&&e.parentNode.removeChild(e)}function le(e){if(!l.element(e))return;let{length:i}=e.childNodes;for(;i>0;)e.removeChild(e.lastChild),i-=1}function ce(e,i){return l.element(i)&&l.element(i.parentNode)&&l.element(e)?(i.parentNode.replaceChild(e,i),e):null}function F(e,i){if(!l.string(e)||l.empty(e))return{};const t={},s=N({},i);return e.split(",").forEach(n=>{const a=n.trim(),r=a.replace(".",""),o=a.replace(/[[\]]/g,"").split("="),[c]=o,u=o.length>1?o[1].replace(/["']/g,""):"";switch(a.charAt(0)){case".":l.string(s.class)?t.class=`${s.class} ${r}`:t.class=r;break;case"#":t.id=a.replace("#","");break;case"[":t[c]=u}}),N(s,t)}function z(e,i){if(!l.element(e))return;let t=i;l.boolean(t)||(t=!e.hidden),e.hidden=t}function E(e,i,t){if(l.nodeList(e))return Array.from(e).map(s=>E(s,i,t));if(l.element(e)){let s="toggle";return t!==void 0&&(s=t?"add":"remove"),e.classList[s](i),e.classList.contains(i)}return!1}function ue(e,i){return l.element(e)&&e.classList.contains(i)}function K(e,i){const{prototype:t}=Element;return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||function(){return Array.from(document.querySelectorAll(i)).includes(this)}).call(e,i)}function ei(e,i){const{prototype:t}=Element;return(t.closest||function(){let s=this;do{if(K.matches(s,i))return s;s=s.parentElement||s.parentNode}while(s!==null&&s.nodeType===1);return null}).call(e,i)}function G(e){return this.elements.container.querySelectorAll(e)}function I(e){return this.elements.container.querySelector(e)}function ge(e=null,i=!1){l.element(e)&&e.focus({preventScroll:!0,focusVisible:i})}const De={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},x={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,i){const t=x[e]||i!=="html5";return{api:t,ui:t&&x.rangeInput}},pip:!(O.isIPhone||!l.function(y("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||y("video").disablePictureInPicture)),airplay:l.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(l.empty(e))return!1;const[i]=e.split("/");let t=e;if(!this.isHTML5||i!==this.type)return!1;Object.keys(De).includes(t)&&(t+=`; codecs="${De[e]}"`);try{return!!(t&&this.media.canPlayType(t).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range",e.type==="range"})(),touch:"ontouchstart"in document.documentElement,transitions:ve!==!1,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},ti=(()=>{let e=!1;try{const i=Object.defineProperty({},"passive",{get:()=>(e=!0,null)});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}return e})();function Z(e,i,t,s=!1,n=!0,a=!1){if(!e||!("addEventListener"in e)||l.empty(i)||!l.function(t))return;const r=i.split(" ");let o=a;ti&&(o={passive:n,capture:a}),r.forEach(c=>{this&&this.eventListeners&&s&&this.eventListeners.push({element:e,type:c,callback:t,options:o}),e[s?"addEventListener":"removeEventListener"](c,t,o)})}function A(e,i="",t,s=!0,n=!1){Z.call(this,e,i,t,!0,s,n)}function me(e,i="",t,s=!0,n=!1){Z.call(this,e,i,t,!1,s,n)}function Me(e,i="",t,s=!0,n=!1){const a=(...r)=>{me(e,i,a,s,n),t.apply(this,r)};Z.call(this,e,i,a,!0,s,n)}function b(e,i="",t=!1,s={}){if(!l.element(e)||l.empty(i))return;const n=new CustomEvent(i,{bubbles:t,detail:{...s,plyr:this}});e.dispatchEvent(n)}function ii(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:i,type:t,callback:s,options:n}=e;i.removeEventListener(t,s,n)}),this.eventListeners=[])}function si(){return new Promise(e=>this.ready?setTimeout(e,0):A.call(this,this.elements.container,"ready",e)).then(()=>{})}function R(e){l.promise(e)&&e.then(null,()=>{})}function ke(e){return l.array(e)?e.filter((i,t)=>e.indexOf(i)===t):e}function it(e,i){return l.array(e)&&e.length?e.reduce((t,s)=>Math.abs(s-i)({...e,[i/t]:[i,t]}),{});function nt(e){return l.array(e)||l.string(e)&&e.includes(":")?(l.array(e)?e:e.split(":")).map(Number).every(l.number):!1}function he(e){if(!l.array(e)||!e.every(l.number))return null;const[i,t]=e,s=(a,r)=>r===0?a:s(r,a%r),n=s(i,t);return[i/n,t/n]}function Ne(e){const i=s=>nt(s)?s.split(":").map(Number):null;let t=i(e);if(t===null&&(t=i(this.config.ratio)),t===null&&!l.empty(this.embed)&&l.array(this.embed.ratio)&&({ratio:t}=this.embed),t===null&&this.isHTML5){const{videoWidth:s,videoHeight:n}=this.media;t=[s,n]}return he(t)}function Y(e){if(!this.isVideo)return{};const{wrapper:i}=this.elements,t=Ne.call(this,e);if(!l.array(t))return{};const[s,n]=he(t),a=100/s*n;if(st(`aspect-ratio: ${s}/${n}`)?i.style.aspectRatio=`${s}/${n}`:i.style.paddingBottom=`${a}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const r=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),o=(r-a)/(r/50);this.fullscreen.active?i.style.paddingBottom=null:this.media.style.transform=`translateY(-${o}%)`}else this.isHTML5&&i.classList.add(this.config.classNames.videoFixedRatio);return{padding:a,ratio:t}}function at(e,i,t=.05){const s=e/i,n=it(Object.keys(Fe),s);return Math.abs(n-s)<=t?Fe[n]:[e,i]}function ni(){return[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)]}const B={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(e=>{const i=e.getAttribute("type");return!!l.empty(i)||x.mime.call(this,i)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:B.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,l.empty(this.config.ratio)||Y.call(e),Object.defineProperty(e.media,"quality",{get(){const i=B.getSources.call(e).find(t=>t.getAttribute("src")===e.source);return i&&Number(i.getAttribute("size"))},set(i){if(e.quality!==i){if(e.config.quality.forced&&l.function(e.config.quality.onChange))e.config.quality.onChange(i);else{const t=B.getSources.call(e).find(c=>Number(c.getAttribute("size"))===i);if(!t)return;const{currentTime:s,paused:n,preload:a,readyState:r,playbackRate:o}=e.media;e.media.src=t.getAttribute("src"),(a!=="none"||r)&&(e.once("loadedmetadata",()=>{e.speed=o,e.currentTime=s,n||R(e.play())}),e.media.load())}b.call(e,e.media,"qualitychange",!1,{quality:i})}}})},cancelRequests(){this.isHTML5&&(V(B.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function ai(e){return`${e}-${Math.floor(1e4*Math.random())}`}function Te(e,...i){return l.empty(e)?e:e.toString().replace(/{(\d+)}/g,(t,s)=>i[s].toString())}function li(e,i){return e===0||i===0||Number.isNaN(e)||Number.isNaN(i)?0:(e/i*100).toFixed(2)}const J=(e="",i="",t="")=>e.replace(new RegExp(i.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),t.toString()),lt=(e="")=>e.toString().replace(/\w\S*/g,i=>i.charAt(0).toUpperCase()+i.slice(1).toLowerCase());function ri(e=""){let i=e.toString();return i=J(i,"-"," "),i=J(i,"_"," "),i=lt(i),J(i," ","")}function oi(e=""){let i=e.toString();return i=ri(i),i.charAt(0).toLowerCase()+i.slice(1)}function ci(e){const i=document.createDocumentFragment(),t=document.createElement("div");return i.appendChild(t),t.innerHTML=e,i.firstChild.innerText}function ui(e){const i=document.createElement("div");return i.appendChild(e),i.innerHTML}const Re={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},$={get(e="",i={}){if(l.empty(e)||l.empty(i))return"";let t=et(i.i18n,e);if(l.empty(t))return Object.keys(Re).includes(e)?Re[e]:"";const s={"{seektime}":i.seekTime,"{title}":i.title};return Object.entries(s).forEach(([n,a])=>{t=J(t,n,a)}),t}};class ee{constructor(i){m(this,"get",t=>{if(!ee.supported||!this.enabled)return null;const s=window.localStorage.getItem(this.key);if(l.empty(s))return null;const n=JSON.parse(s);return l.string(t)&&t.length?n[t]:n}),m(this,"set",t=>{if(!ee.supported||!this.enabled||!l.object(t))return;let s=this.get();l.empty(s)&&(s={}),N(s,t);try{window.localStorage.setItem(this.key,JSON.stringify(s))}catch{}}),this.enabled=i.config.storage.enabled,this.key=i.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const i="___test";return window.localStorage.setItem(i,i),window.localStorage.removeItem(i),!0}catch{return!1}}}function ne(e,i="text"){return new Promise((t,s)=>{try{const n=new XMLHttpRequest;if(!("withCredentials"in n))return;n.addEventListener("load",()=>{if(i==="text")try{t(JSON.parse(n.responseText))}catch{t(n.responseText)}else t(n.response)}),n.addEventListener("error",()=>{throw new Error(n.status)}),n.open("GET",e,!0),n.responseType=i,n.send()}catch(n){s(n)}})}function rt(e,i){if(!l.string(e))return;const t="cache",s=l.string(i);let n=!1;const a=()=>document.getElementById(i)!==null,r=(o,c)=>{o.innerHTML=c,s&&a()||document.body.insertAdjacentElement("afterbegin",o)};if(!s||!a()){const o=ee.supported,c=document.createElement("div");if(c.setAttribute("hidden",""),s&&c.setAttribute("id",i),o){const u=window.localStorage.getItem(`${t}-${i}`);if(n=u!==null,n){const g=JSON.parse(u);r(c,g.content)}}ne(e).then(u=>{if(!l.empty(u)){if(o)try{window.localStorage.setItem(`${t}-${i}`,JSON.stringify({content:u}))}catch{}r(c,u)}}).catch(()=>{})}}const ot=e=>Math.trunc(e/60/60%60,10),hi=e=>Math.trunc(e/60%60,10),di=e=>Math.trunc(e%60,10);function pe(e=0,i=!1,t=!1){if(!l.number(e))return pe(void 0,i,t);const s=o=>`0${o}`.slice(-2);let n=ot(e);const a=hi(e),r=di(e);return n=i||n>0?`${n}:`:"",`${t&&e>0?"-":""}${n}${s(a)}:${s(r)}`}const h={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),i=window.location.host?window.location.host:window.top.location.host,t=e.host!==i||O.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements(){try{return this.elements.controls=I.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:G.call(this,this.config.selectors.buttons.play),pause:I.call(this,this.config.selectors.buttons.pause),restart:I.call(this,this.config.selectors.buttons.restart),rewind:I.call(this,this.config.selectors.buttons.rewind),fastForward:I.call(this,this.config.selectors.buttons.fastForward),mute:I.call(this,this.config.selectors.buttons.mute),pip:I.call(this,this.config.selectors.buttons.pip),airplay:I.call(this,this.config.selectors.buttons.airplay),settings:I.call(this,this.config.selectors.buttons.settings),captions:I.call(this,this.config.selectors.buttons.captions),fullscreen:I.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=I.call(this,this.config.selectors.progress),this.elements.inputs={seek:I.call(this,this.config.selectors.inputs.seek),volume:I.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:I.call(this,this.config.selectors.display.buffer),currentTime:I.call(this,this.config.selectors.display.currentTime),duration:I.call(this,this.config.selectors.display.duration)},l.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,i){const t="http://www.w3.org/2000/svg",s=h.getIconUrl.call(this),n=`${s.cors?"":s.url}#${this.config.iconPrefix}`,a=document.createElementNS(t,"svg");we(a,N(i,{"aria-hidden":"true",focusable:"false"}));const r=document.createElementNS(t,"use"),o=`${n}-${e}`;return"href"in r&&r.setAttributeNS("http://www.w3.org/1999/xlink","href",o),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),a.appendChild(r),a},createLabel(e,i={}){const t=$.get(e,this.config);return y("span",{...i,class:[i.class,this.config.classNames.hidden].filter(Boolean).join(" ")},t)},createBadge(e){if(l.empty(e))return null;const i=y("span",{class:this.config.classNames.menu.value});return i.appendChild(y("span",{class:this.config.classNames.menu.badge},e)),i},createButton(e,i){const t=N({},i);let s=oi(e);const n={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(r=>{Object.keys(t).includes(r)&&(n[r]=t[r],delete t[r])}),n.element!=="button"||Object.keys(t).includes("type")||(t.type="button"),Object.keys(t).includes("class")?t.class.split(" ").some(r=>r===this.config.classNames.control)||N(t,{class:`${t.class} ${this.config.classNames.control}`}):t.class=this.config.classNames.control,e){case"play":n.toggle=!0,n.label="play",n.labelPressed="pause",n.icon="play",n.iconPressed="pause";break;case"mute":n.toggle=!0,n.label="mute",n.labelPressed="unmute",n.icon="volume",n.iconPressed="muted";break;case"captions":n.toggle=!0,n.label="enableCaptions",n.labelPressed="disableCaptions",n.icon="captions-off",n.iconPressed="captions-on";break;case"fullscreen":n.toggle=!0,n.label="enterFullscreen",n.labelPressed="exitFullscreen",n.icon="enter-fullscreen",n.iconPressed="exit-fullscreen";break;case"play-large":t.class+=` ${this.config.classNames.control}--overlaid`,s="play",n.label="play",n.icon="play";break;default:l.empty(n.label)&&(n.label=s),l.empty(n.icon)&&(n.icon=e)}const a=y(n.element);return n.toggle?(a.appendChild(h.createIcon.call(this,n.iconPressed,{class:"icon--pressed"})),a.appendChild(h.createIcon.call(this,n.icon,{class:"icon--not-pressed"})),a.appendChild(h.createLabel.call(this,n.labelPressed,{class:"label--pressed"})),a.appendChild(h.createLabel.call(this,n.label,{class:"label--not-pressed"}))):(a.appendChild(h.createIcon.call(this,n.icon)),a.appendChild(h.createLabel.call(this,n.label))),N(t,F(this.config.selectors.buttons[s],t)),we(a,t),s==="play"?(l.array(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(a)):this.elements.buttons[s]=a,a},createRange(e,i){const t=y("input",N(F(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":$.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},i));return this.elements.inputs[e]=t,h.updateRangeFill.call(this,t),Ot.setup(t),t},createProgress(e,i){const t=y("progress",N(F(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},i));if(e!=="volume"){t.appendChild(y("span",null,"0"));const s={played:"played",buffer:"buffered"}[e],n=s?$.get(s,this.config):"";t.innerText=`% ${n.toLowerCase()}`}return this.elements.display[e]=t,t},createTime(e,i){const t=F(this.config.selectors.display[e],i),s=y("div",N(t,{class:`${t.class?t.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":$.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=s,s},bindMenuItemShortcuts(e,i){A.call(this,e,"keydown keyup",t=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(t.key)||(t.preventDefault(),t.stopPropagation(),t.type==="keydown"))return;const s=K(e,'[role="menuitemradio"]');if(!s&&[" ","ArrowRight"].includes(t.key))h.showMenuPanel.call(this,i,!0);else{let n;t.key!==" "&&(t.key==="ArrowDown"||s&&t.key==="ArrowRight"?(n=e.nextElementSibling,l.element(n)||(n=e.parentNode.firstElementChild)):(n=e.previousElementSibling,l.element(n)||(n=e.parentNode.lastElementChild)),ge.call(this,n,!0))}},!1),A.call(this,e,"keyup",t=>{t.key==="Return"&&h.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:i,type:t,title:s,badge:n=null,checked:a=!1}){const r=F(this.config.selectors.inputs[t]),o=y("button",N(r,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${r.class?r.class:""}`.trim(),"aria-checked":a,value:e})),c=y("span");c.innerHTML=s,l.element(n)&&c.appendChild(n),o.appendChild(c),Object.defineProperty(o,"checked",{enumerable:!0,get:()=>o.getAttribute("aria-checked")==="true",set(u){u&&Array.from(o.parentNode.children).filter(g=>K(g,'[role="menuitemradio"]')).forEach(g=>g.setAttribute("aria-checked","false")),o.setAttribute("aria-checked",u?"true":"false")}}),this.listeners.bind(o,"click keyup",u=>{if(!l.keyboardEvent(u)||u.key===" "){switch(u.preventDefault(),u.stopPropagation(),o.checked=!0,t){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=parseFloat(e)}h.showMenuPanel.call(this,"home",l.keyboardEvent(u))}},t,!1),h.bindMenuItemShortcuts.call(this,o,t),i.appendChild(o)},formatTime(e=0,i=!1){return l.number(e)?pe(e,ot(this.duration)>0,i):e},updateTimeDisplay(e=null,i=0,t=!1){l.element(e)&&l.number(i)&&(e.innerText=h.formatTime(i,t))},updateVolume(){this.supported.ui&&(l.element(this.elements.inputs.volume)&&h.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),l.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(e,i=0){l.element(e)&&(e.value=i,h.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!l.event(e))return;let i=0;const t=(s,n)=>{const a=l.number(n)?n:0,r=l.element(s)?s:this.elements.display.buffer;if(l.element(r)){r.value=a;const o=r.getElementsByTagName("span")[0];l.element(o)&&(o.childNodes[0].nodeValue=a)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":i=li(this.currentTime,this.duration),e.type==="timeupdate"&&h.setRange.call(this,this.elements.inputs.seek,i);break;case"playing":case"progress":t(this.elements.display.buffer,100*this.buffered)}},updateRangeFill(e){const i=l.event(e)?e.target:e;if(l.element(i)&&i.getAttribute("type")==="range"){if(K(i,this.config.selectors.inputs.seek)){i.setAttribute("aria-valuenow",this.currentTime);const t=h.formatTime(this.currentTime),s=h.formatTime(this.duration),n=$.get("seekLabel",this.config);i.setAttribute("aria-valuetext",n.replace("{currentTime}",t).replace("{duration}",s))}else if(K(i,this.config.selectors.inputs.volume)){const t=100*i.value;i.setAttribute("aria-valuenow",t),i.setAttribute("aria-valuetext",`${t.toFixed(1)}%`)}else i.setAttribute("aria-valuenow",i.value);(O.isWebKit||O.isIPadOS)&&i.style.setProperty("--value",i.value/i.max*100+"%")}},updateSeekTooltip(e){var i,t;if(!this.config.tooltips.seek||!l.element(this.elements.inputs.seek)||!l.element(this.elements.display.seekTooltip)||this.duration===0)return;const s=this.elements.display.seekTooltip,n=`${this.config.classNames.tooltip}--visible`,a=g=>E(s,n,g);if(this.touch)return void a(!1);let r=0;const o=this.elements.progress.getBoundingClientRect();if(l.event(e))r=100/o.width*(e.pageX-o.left);else{if(!ue(s,n))return;r=parseFloat(s.style.left,10)}r<0?r=0:r>100&&(r=100);const c=this.duration/100*r;s.innerText=h.formatTime(c);const u=(i=this.config.markers)===null||i===void 0||(t=i.points)===null||t===void 0?void 0:t.find(({time:g})=>g===Math.round(c));u&&s.insertAdjacentHTML("afterbegin",`${u.label}
`),s.style.left=`${r}%`,l.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&a(e.type==="mouseenter")},timeUpdate(e){const i=!l.element(this.elements.display.duration)&&this.config.invertTime;h.updateTimeDisplay.call(this,this.elements.display.currentTime,i?this.duration-this.currentTime:this.currentTime,i),e&&e.type==="timeupdate"&&this.media.seeking||h.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return z(this.elements.display.currentTime,!0),void z(this.elements.progress,!0);l.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=l.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&h.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&h.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&h.setMarkers.call(this),h.updateSeekTooltip.call(this)},toggleMenuButton(e,i){z(this.elements.settings.buttons[e],!i)},updateSetting(e,i,t){const s=this.elements.settings.panels[e];let n=null,a=i;if(e==="captions")n=this.currentTrack;else{if(n=l.empty(t)?this[e]:t,l.empty(n)&&(n=this.config[e].default),!l.empty(this.options[e])&&!this.options[e].includes(n))return void this.debug.warn(`Unsupported value of '${n}' for ${e}`);if(!this.config[e].options.includes(n))return void this.debug.warn(`Disabled value of '${n}' for ${e}`)}if(l.element(a)||(a=s&&s.querySelector('[role="menu"]')),!l.element(a))return;this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=h.getLabel.call(this,e,n);const r=a&&a.querySelector(`[value="${n}"]`);l.element(r)&&(r.checked=!0)},getLabel(e,i){switch(e){case"speed":return i===1?$.get("normal",this.config):`${i}×`;case"quality":if(l.number(i)){const t=$.get(`qualityLabel.${i}`,this.config);return t.length?t:`${i}p`}return lt(i);case"captions":return S.getLabel.call(this);default:return null}},setQualityMenu(e){if(!l.element(this.elements.settings.panels.quality))return;const i="quality",t=this.elements.settings.panels.quality.querySelector('[role="menu"]');l.array(e)&&(this.options.quality=ke(e).filter(a=>this.config.quality.options.includes(a)));const s=!l.empty(this.options.quality)&&this.options.quality.length>1;if(h.toggleMenuButton.call(this,i,s),le(t),h.checkMenu.call(this),!s)return;const n=a=>{const r=$.get(`qualityBadge.${a}`,this.config);return r.length?h.createBadge.call(this,r):null};this.options.quality.sort((a,r)=>{const o=this.config.quality.options;return o.indexOf(a)>o.indexOf(r)?1:-1}).forEach(a=>{h.createMenuItem.call(this,{value:a,list:t,type:i,title:h.getLabel.call(this,"quality",a),badge:n(a)})}),h.updateSetting.call(this,i,t)},setCaptionsMenu(){if(!l.element(this.elements.settings.panels.captions))return;const e="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=S.getTracks.call(this),s=!!t.length;if(h.toggleMenuButton.call(this,e,s),le(i),h.checkMenu.call(this),!s)return;const n=t.map((a,r)=>({value:r,checked:this.captions.toggled&&this.currentTrack===r,title:S.getLabel.call(this,a),badge:a.language&&h.createBadge.call(this,a.language.toUpperCase()),list:i,type:"language"}));n.unshift({value:-1,checked:!this.captions.toggled,title:$.get("disabled",this.config),list:i,type:"language"}),n.forEach(h.createMenuItem.bind(this)),h.updateSetting.call(this,e,i)},setSpeedMenu(){if(!l.element(this.elements.settings.panels.speed))return;const e="speed",i=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(s=>s>=this.minimumSpeed&&s<=this.maximumSpeed);const t=!l.empty(this.options.speed)&&this.options.speed.length>1;h.toggleMenuButton.call(this,e,t),le(i),h.checkMenu.call(this),t&&(this.options.speed.forEach(s=>{h.createMenuItem.call(this,{value:s,list:i,type:e,title:h.getLabel.call(this,"speed",s)})}),h.updateSetting.call(this,e,i))},checkMenu(){const{buttons:e}=this.elements.settings,i=!l.empty(e)&&Object.values(e).some(t=>!t.hidden);z(this.elements.settings.menu,!i)},focusFirstMenuItem(e,i=!1){if(this.elements.settings.popup.hidden)return;let t=e;l.element(t)||(t=Object.values(this.elements.settings.panels).find(n=>!n.hidden));const s=t.querySelector('[role^="menuitem"]');ge.call(this,s,i)},toggleMenu(e){const{popup:i}=this.elements.settings,t=this.elements.buttons.settings;if(!l.element(i)||!l.element(t))return;const{hidden:s}=i;let n=s;if(l.boolean(e))n=e;else if(l.keyboardEvent(e)&&e.key==="Escape")n=!1;else if(l.event(e)){const a=l.function(e.composedPath)?e.composedPath()[0]:e.target,r=i.contains(a);if(r||!r&&e.target!==t&&n)return}t.setAttribute("aria-expanded",n),z(i,!n),E(this.elements.container,this.config.classNames.menu.open,n),n&&l.keyboardEvent(e)?h.focusFirstMenuItem.call(this,null,!0):n||s||ge.call(this,t,l.keyboardEvent(e))},getMenuSize(e){const i=e.cloneNode(!0);i.style.position="absolute",i.style.opacity=0,i.removeAttribute("hidden"),e.parentNode.appendChild(i);const t=i.scrollWidth,s=i.scrollHeight;return V(i),{width:t,height:s}},showMenuPanel(e="",i=!1){const t=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!l.element(t))return;const s=t.parentNode,n=Array.from(s.children).find(a=>!a.hidden);if(x.transitions&&!x.reducedMotion){s.style.width=`${n.scrollWidth}px`,s.style.height=`${n.scrollHeight}px`;const a=h.getMenuSize.call(this,t),r=o=>{o.target===s&&["width","height"].includes(o.propertyName)&&(s.style.width="",s.style.height="",me.call(this,s,ve,r))};A.call(this,s,ve,r),s.style.width=`${a.width}px`,s.style.height=`${a.height}px`}z(n,!0),z(t,!1),h.focusFirstMenuItem.call(this,t,i)},setDownloadUrl(){const e=this.elements.buttons.download;l.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:i,createButton:t,createProgress:s,createRange:n,createTime:a,setQualityMenu:r,setSpeedMenu:o,showMenuPanel:c}=h;this.elements.controls=null,l.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(t.call(this,"play-large"));const u=y("div",F(this.config.selectors.controls.wrapper));this.elements.controls=u;const g={class:"plyr__controls__item"};return ke(l.array(this.config.controls)?this.config.controls:[]).forEach(f=>{if(f==="restart"&&u.appendChild(t.call(this,"restart",g)),f==="rewind"&&u.appendChild(t.call(this,"rewind",g)),f==="play"&&u.appendChild(t.call(this,"play",g)),f==="fast-forward"&&u.appendChild(t.call(this,"fast-forward",g)),f==="progress"){const d=y("div",{class:`${g.class} plyr__progress__container`}),v=y("div",F(this.config.selectors.progress));if(v.appendChild(n.call(this,"seek",{id:`plyr-seek-${e.id}`})),v.appendChild(s.call(this,"buffer")),this.config.tooltips.seek){const k=y("span",{class:this.config.classNames.tooltip},"00:00");v.appendChild(k),this.elements.display.seekTooltip=k}this.elements.progress=v,d.appendChild(this.elements.progress),u.appendChild(d)}if(f==="current-time"&&u.appendChild(a.call(this,"currentTime",g)),f==="duration"&&u.appendChild(a.call(this,"duration",g)),f==="mute"||f==="volume"){let{volume:d}=this.elements;if(l.element(d)&&u.contains(d)||(d=y("div",N({},g,{class:`${g.class} plyr__volume`.trim()})),this.elements.volume=d,u.appendChild(d)),f==="mute"&&d.appendChild(t.call(this,"mute")),f==="volume"&&!O.isIos&&!O.isIPadOS){const v={max:1,step:.05,value:this.config.volume};d.appendChild(n.call(this,"volume",N(v,{id:`plyr-volume-${e.id}`})))}}if(f==="captions"&&u.appendChild(t.call(this,"captions",g)),f==="settings"&&!l.empty(this.config.settings)){const d=y("div",N({},g,{class:`${g.class} plyr__menu`.trim(),hidden:""}));d.appendChild(t.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const v=y("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),k=y("div"),T=y("div",{id:`plyr-settings-${e.id}-home`}),M=y("div",{role:"menu"});T.appendChild(M),k.appendChild(T),this.elements.settings.panels.home=T,this.config.settings.forEach(w=>{const p=y("button",N(F(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));i.call(this,p,w),A.call(this,p,"click",()=>{c.call(this,w,!1)});const C=y("span",null,$.get(w,this.config)),L=y("span",{class:this.config.classNames.menu.value});L.innerHTML=e[w],C.appendChild(L),p.appendChild(C),M.appendChild(p);const j=y("div",{id:`plyr-settings-${e.id}-${w}`,hidden:""}),q=y("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});q.appendChild(y("span",{"aria-hidden":!0},$.get(w,this.config))),q.appendChild(y("span",{class:this.config.classNames.hidden},$.get("menuBack",this.config))),A.call(this,j,"keydown",D=>{D.key==="ArrowLeft"&&(D.preventDefault(),D.stopPropagation(),c.call(this,"home",!0))},!1),A.call(this,q,"click",()=>{c.call(this,"home",!1)}),j.appendChild(q),j.appendChild(y("div",{role:"menu"})),k.appendChild(j),this.elements.settings.buttons[w]=p,this.elements.settings.panels[w]=j}),v.appendChild(k),d.appendChild(v),u.appendChild(d),this.elements.settings.popup=v,this.elements.settings.menu=d}if(f==="pip"&&x.pip&&u.appendChild(t.call(this,"pip",g)),f==="airplay"&&x.airplay&&u.appendChild(t.call(this,"airplay",g)),f==="download"){const d=N({},g,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(d.download="");const{download:v}=this.config.urls;!l.url(v)&&this.isEmbed&&N(d,{icon:`logo-${this.provider}`,label:this.provider}),u.appendChild(t.call(this,"download",d))}f==="fullscreen"&&u.appendChild(t.call(this,"fullscreen",g))}),this.isHTML5&&r.call(this,B.getQualityOptions.call(this)),o.call(this),u},inject(){if(this.config.loadSprite){const n=h.getIconUrl.call(this);n.cors&&rt(n.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let e=null;this.elements.controls=null;const i={id:this.id,seektime:this.config.seekTime,title:this.config.title};let t=!0;l.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),l.element(this.config.controls)||l.string(this.config.controls)?e=this.config.controls:(e=h.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:S.getLabel.call(this)}),t=!1);let s;if(t&&l.string(this.config.controls)&&(e=(n=>{let a=n;return Object.entries(i).forEach(([r,o])=>{a=J(a,`{${r}}`,o)}),a})(e)),l.string(this.config.selectors.controls.container)&&(s=document.querySelector(this.config.selectors.controls.container)),l.element(s)||(s=this.elements.container),s[l.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),l.element(this.elements.controls)||h.findElements.call(this),!l.empty(this.elements.buttons)){const n=a=>{const r=this.config.classNames.controlPressed;a.setAttribute("aria-pressed","false"),Object.defineProperty(a,"pressed",{configurable:!0,enumerable:!0,get:()=>ue(a,r),set(o=!1){E(a,r,o),a.setAttribute("aria-pressed",o?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(a=>{l.array(a)||l.nodeList(a)?Array.from(a).filter(Boolean).forEach(n):n(a)})}if(O.isEdge&&Ze(s),this.config.tooltips.controls){const{classNames:n,selectors:a}=this.config,r=`${a.controls.wrapper} ${a.labels} .${n.hidden}`,o=G.call(this,r);Array.from(o).forEach(c=>{E(c,this.config.classNames.hidden,!1),E(c,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch{}},setMarkers(){var e,i;if(!this.duration||this.elements.markers)return;const t=(e=this.config.markers)===null||e===void 0||(i=e.points)===null||i===void 0?void 0:i.filter(({time:c})=>c>0&&cE(a,r,c);t.forEach(c=>{const u=y("span",{class:this.config.classNames.marker},""),g=c.time/this.duration*100+"%";a&&(u.addEventListener("mouseenter",()=>{c.label||(a.style.left=g,a.innerHTML=c.label,o(!0))}),u.addEventListener("mouseleave",()=>{o(!1)})),u.addEventListener("click",()=>{this.currentTime=c.time}),u.style.left=g,n.appendChild(u)}),s.appendChild(n),this.config.tooltips.seek||(a=y("span",{class:this.config.classNames.tooltip},""),s.appendChild(a)),this.elements.markers={points:n,tip:a},this.elements.progress.appendChild(s)}};function ct(e,i=!0){let t=e;if(i){const s=document.createElement("a");s.href=t,t=s.href}try{return new URL(t)}catch{return null}}function ut(e){const i=new URLSearchParams;return l.object(e)&&Object.entries(e).forEach(([t,s])=>{i.set(t,s)}),i}const S={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!x.textTracks)return void(l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&h.setCaptionsMenu.call(this));if(l.element(this.elements.captions)||(this.elements.captions=y("div",F(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),Zt(this.elements.captions,this.elements.wrapper)),O.isIE&&window.URL){const s=this.media.querySelectorAll("track");Array.from(s).forEach(n=>{const a=n.getAttribute("src"),r=ct(a);r!==null&&r.hostname!==window.location.href.hostname&&["http:","https:"].includes(r.protocol)&&ne(a,"blob").then(o=>{n.setAttribute("src",window.URL.createObjectURL(o))}).catch(()=>{V(n)})})}const e=ke((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(s=>s.split("-")[0]));let i=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();i==="auto"&&([i]=e);let t=this.storage.get("captions");if(l.boolean(t)||({active:t}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:t,language:i,languages:e}),this.isHTML5){const s=this.config.captions.update?"addtrack removetrack":"removetrack";A.call(this,this.media.textTracks,s,S.update.bind(this))}setTimeout(S.update.bind(this),0)},update(){const e=S.getTracks.call(this,!0),{active:i,language:t,meta:s,currentTrackNode:n}=this.captions,a=!!e.find(r=>r.language===t);this.isHTML5&&this.isVideo&&e.filter(r=>!s.get(r)).forEach(r=>{this.debug.log("Track added",r),s.set(r,{default:r.mode==="showing"}),r.mode==="showing"&&(r.mode="hidden"),A.call(this,r,"cuechange",()=>S.updateCues.call(this))}),(a&&this.language!==t||!e.includes(n))&&(S.setLanguage.call(this,t),S.toggle.call(this,i&&a)),this.elements&&E(this.elements.container,this.config.classNames.captions.enabled,!l.empty(e)),l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&h.setCaptionsMenu.call(this)},toggle(e,i=!0){if(!this.supported.ui)return;const{toggled:t}=this.captions,s=this.config.classNames.captions.active,n=l.nullOrUndefined(e)?!t:e;if(n!==t){if(i||(this.captions.active=n,this.storage.set({captions:n})),!this.language&&n&&!i){const a=S.getTracks.call(this),r=S.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=r.language,void S.set.call(this,a.indexOf(r))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=n),E(this.elements.container,s,n),this.captions.toggled=n,h.updateSetting.call(this,"captions"),b.call(this,this.media,n?"captionsenabled":"captionsdisabled")}setTimeout(()=>{n&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,i=!0){const t=S.getTracks.call(this);if(e!==-1)if(l.number(e))if(e in t){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const s=t[e],{language:n}=s||{};this.captions.currentTrackNode=s,h.updateSetting.call(this,"captions"),i||(this.captions.language=n,this.storage.set({language:n})),this.isVimeo&&this.embed.enableTextTrack(n),b.call(this,this.media,"languagechange")}S.toggle.call(this,!0,i),this.isHTML5&&this.isVideo&&S.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else S.toggle.call(this,!1,i)},setLanguage(e,i=!0){if(!l.string(e))return void this.debug.warn("Invalid language argument",e);const t=e.toLowerCase();this.captions.language=t;const s=S.getTracks.call(this),n=S.findTrack.call(this,[t]);S.set.call(this,s.indexOf(n),i)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(i=>!this.isHTML5||e||this.captions.meta.has(i)).filter(i=>["captions","subtitles"].includes(i.kind))},findTrack(e,i=!1){const t=S.getTracks.call(this),s=r=>Number((this.captions.meta.get(r)||{}).default),n=Array.from(t).sort((r,o)=>s(o)-s(r));let a;return e.every(r=>(a=n.find(o=>o.language===r),!a)),a||(i?n[0]:void 0)},getCurrentTrack(){return S.getTracks.call(this)[this.currentTrack]},getLabel(e){let i=e;return!l.track(i)&&x.textTracks&&this.captions.toggled&&(i=S.getCurrentTrack.call(this)),l.track(i)?l.empty(i.label)?l.empty(i.language)?$.get("enabled",this.config):e.language.toUpperCase():i.label:$.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!l.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!l.nullOrUndefined(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let i=e;if(!i){const s=S.getCurrentTrack.call(this);i=Array.from((s||{}).activeCues||[]).map(n=>n.getCueAsHTML()).map(ui)}const t=i.map(s=>s.trim()).join(` `);if(t!==this.elements.captions.innerHTML){le(this.elements.captions);const s=y("span",F(this.config.selectors.caption));s.innerHTML=t,this.elements.captions.appendChild(s),b.call(this,this.media,"cuechange")}}},ht={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.7.8/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},fe={active:"picture-in-picture",inactive:"inline"},W={html5:"html5",youtube:"youtube",vimeo:"vimeo"},ye={audio:"audio",video:"video"};function mi(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?W.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?W.vimeo:null}const be=()=>{};class pi{constructor(i=!1){this.enabled=window.console&&i,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):be}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):be}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):be}}class H{constructor(i){m(this,"onChange",()=>{if(!this.supported)return;const t=this.player.elements.buttons.fullscreen;l.element(t)&&(t.pressed=this.active);const s=this.target===this.player.media?this.target:this.player.elements.container;b.call(this.player,s,this.active?"enterfullscreen":"exitfullscreen",!0)}),m(this,"toggleFallback",(t=!1)=>{if(t?this.scrollPosition={x:window.scrollX??0,y:window.scrollY??0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=t?"hidden":"",E(this.target,this.player.config.classNames.fullscreen.fallback,t),O.isIos){let s=document.head.querySelector('meta[name="viewport"]');const n="viewport-fit=cover";s||(s=document.createElement("meta"),s.setAttribute("name","viewport"));const a=l.string(s.content)&&s.content.includes(n);t?(this.cleanupViewport=!a,a||(s.content+=`,${n}`)):this.cleanupViewport&&(s.content=s.content.split(",").filter(r=>r.trim()!==n).join(","))}this.onChange()}),m(this,"trapFocus",t=>{if(O.isIos||O.isIPadOS||!this.active||t.key!=="Tab")return;const s=document.activeElement,n=G.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[a]=n,r=n[n.length-1];s!==r||t.shiftKey?s===a&&t.shiftKey&&(r.focus(),t.preventDefault()):(a.focus(),t.preventDefault())}),m(this,"update",()=>{if(this.supported){let t;t=this.forceFallback?"Fallback (forced)":H.nativeSupported?"Native":"Fallback",this.player.debug.log(`${t} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");E(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported)}),m(this,"enter",()=>{this.supported&&(O.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!H.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?l.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),m(this,"exit",()=>{if(this.supported)if(O.isIos&&this.player.config.fullscreen.iosNative)this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),R(this.player.play());else if(!H.nativeSupported||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!l.empty(this.prefix)){const t=this.prefix==="moz"?"Cancel":"Exit";document[`${this.prefix}${t}${this.property}`]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}),m(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=i,this.prefix=H.prefix,this.property=H.property,this.scrollPosition={x:0,y:0},this.forceFallback=i.config.fullscreen.fallback==="force",this.player.elements.fullscreen=i.config.fullscreen.container&&ei(this.player.elements.container,i.config.fullscreen.container),A.call(this.player,document,this.prefix==="ms"?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),A.call(this.player,this.player.elements.container,"dblclick",t=>{l.element(this.player.elements.controls)&&this.player.elements.controls.contains(t.target)||this.player.listeners.proxy(t,this.toggle,"fullscreen")}),A.call(this,this.player.elements.container,"keydown",t=>this.trapFocus(t)),this.update()}static get nativeSupported(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get useNative(){return H.nativeSupported&&!this.forceFallback}static get prefix(){if(l.function(document.exitFullscreen))return"";let i="";return["webkit","moz","ms"].some(t=>!(!l.function(document[`${t}ExitFullscreen`])&&!l.function(document[`${t}CancelFullScreen`]))&&(i=t,!0)),i}static get property(){return this.prefix==="moz"?"FullScreen":"Fullscreen"}get supported(){return[this.player.config.fullscreen.enabled,this.player.isVideo,H.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||H.nativeSupported||!O.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}get active(){if(!this.supported)return!1;if(!H.nativeSupported||this.forceFallback)return ue(this.target,this.player.config.classNames.fullscreen.fallback);const i=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return i&&i.shadowRoot?i===this.target.getRootNode().host:i===this.target}get target(){return O.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen??this.player.elements.container}}function re(e,i=1){return new Promise((t,s)=>{const n=new Image,a=()=>{delete n.onload,delete n.onerror,(n.naturalWidth>=i?t:s)(n)};Object.assign(n,{onload:a,onerror:a,src:e})})}const P={addStyleHook(){E(this.elements.container,this.config.selectors.container.replace(".",""),!0),E(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),void P.toggleNativeControls.call(this,!0);l.element(this.elements.controls)||(h.inject.call(this),this.listeners.controls()),P.toggleNativeControls.call(this),this.isHTML5&&S.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,h.updateVolume.call(this),h.timeUpdate.call(this),h.durationUpdate.call(this),P.checkPlaying.call(this),E(this.elements.container,this.config.classNames.pip.supported,x.pip&&this.isHTML5&&this.isVideo),E(this.elements.container,this.config.classNames.airplay.supported,x.airplay&&this.isHTML5),E(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{b.call(this,this.media,"ready")},0),P.setTitle.call(this),this.poster&&P.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&h.durationUpdate.call(this),this.config.mediaMetadata&&h.setMediaMetadata.call(this)},setTitle(){let e=$.get("play",this.config);if(l.string(this.config.title)&&!l.empty(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(i=>{i.setAttribute("aria-label",e)}),this.isEmbed){const i=I.call(this,"iframe");if(!l.element(i))return;const t=l.empty(this.config.title)?"video":this.config.title,s=$.get("frameTitle",this.config);i.setAttribute("title",s.replace("{title}",t))}},togglePoster(e){E(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,i=!0){return i&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),si.call(this).then(()=>re(e)).catch(t=>{throw e===this.poster&&P.togglePoster.call(this,!1),t}).then(()=>{if(e!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:""}),P.togglePoster.call(this,!0),e)))},checkPlaying(e){E(this.elements.container,this.config.classNames.playing,this.playing),E(this.elements.container,this.config.classNames.paused,this.paused),E(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(i=>{Object.assign(i,{pressed:this.playing}),i.setAttribute("aria-label",$.get(this.playing?"pause":"play",this.config))}),l.event(e)&&e.type==="timeupdate"||P.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{E(this.elements.container,this.config.classNames.loading,this.loading),P.toggleControls.call(this)},this.loading?250:0)},toggleControls(e){const{controls:i}=this.elements;if(i&&this.config.hideControls){const t=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(!!(e||this.loading||this.paused||i.pressed||i.hover||t))}},migrateStyles(){Object.values({...this.media.style}).filter(e=>!l.empty(e)&&l.string(e)&&e.startsWith("--plyr")).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),l.empty(this.media.style)&&this.media.removeAttribute("style")}};class gi{constructor(i){m(this,"firstTouch",()=>{const{player:t}=this,{elements:s}=t;t.touch=!0,E(s.container,t.config.classNames.isTouch,!0)}),m(this,"global",(t=!0)=>{const{player:s}=this;s.config.keyboard.global&&Z.call(s,window,"keydown keyup",this.handleKey,t,!1),Z.call(s,document.body,"click",this.toggleMenu,t),Me.call(s,document.body,"touchstart",this.firstTouch)}),m(this,"container",()=>{const{player:t}=this,{config:s,elements:n,timers:a}=t;!s.keyboard.global&&s.keyboard.focused&&A.call(t,n.container,"keydown keyup",this.handleKey,!1),A.call(t,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",c=>{const{controls:u}=n;u&&c.type==="enterfullscreen"&&(u.pressed=!1,u.hover=!1);let g=0;["touchstart","touchmove","mousemove"].includes(c.type)&&(P.toggleControls.call(t,!0),g=t.touch?3e3:2e3),clearTimeout(a.controls),a.controls=setTimeout(()=>P.toggleControls.call(t,!1),g)});const r=()=>{if(!t.isVimeo||t.config.vimeo.premium)return;const c=n.wrapper,{active:u}=t.fullscreen,[g,f]=Ne.call(t),d=st(`aspect-ratio: ${g} / ${f}`);if(!u)return void(d?(c.style.width=null,c.style.height=null):(c.style.maxWidth=null,c.style.margin=null));const[v,k]=ni(),T=v/k>g/f;d?(c.style.width=T?"auto":"100%",c.style.height=T?"100%":"auto"):(c.style.maxWidth=T?k/f*g+"px":null,c.style.margin=T?"0 auto":null)},o=()=>{clearTimeout(a.resized),a.resized=setTimeout(r,50)};A.call(t,n.container,"enterfullscreen exitfullscreen",c=>{const{target:u}=t.fullscreen;u===n.container&&(!t.isEmbed&&l.empty(t.config.ratio)||(r(),(c.type==="enterfullscreen"?A:me).call(t,window,"resize",o)))})}),m(this,"media",()=>{const{player:t}=this,{elements:s}=t;if(A.call(t,t.media,"timeupdate seeking seeked",a=>h.timeUpdate.call(t,a)),A.call(t,t.media,"durationchange loadeddata loadedmetadata",a=>h.durationUpdate.call(t,a)),A.call(t,t.media,"ended",()=>{t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())}),A.call(t,t.media,"progress playing seeking seeked",a=>h.updateProgress.call(t,a)),A.call(t,t.media,"volumechange",a=>h.updateVolume.call(t,a)),A.call(t,t.media,"playing play pause ended emptied timeupdate",a=>P.checkPlaying.call(t,a)),A.call(t,t.media,"waiting canplay seeked playing",a=>P.checkLoading.call(t,a)),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){const a=I.call(t,`.${t.config.classNames.video}`);if(!l.element(a))return;A.call(t,s.container,"click",r=>{([s.container,a].includes(r.target)||a.contains(r.target))&&(t.touch&&t.config.hideControls||(t.ended?(this.proxy(r,t.restart,"restart"),this.proxy(r,()=>{R(t.play())},"play")):this.proxy(r,()=>{R(t.togglePlay())},"play")))})}t.supported.ui&&t.config.disableContextMenu&&A.call(t,s.wrapper,"contextmenu",a=>{a.preventDefault()},!1),A.call(t,t.media,"volumechange",()=>{t.storage.set({volume:t.volume,muted:t.muted})}),A.call(t,t.media,"ratechange",()=>{h.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})}),A.call(t,t.media,"qualitychange",a=>{h.updateSetting.call(t,"quality",null,a.detail.quality)}),A.call(t,t.media,"ready qualitychange",()=>{h.setDownloadUrl.call(t)});const n=t.config.events.concat(["keyup","keydown"]).join(" ");A.call(t,t.media,n,a=>{let{detail:r={}}=a;a.type==="error"&&(r=t.media.error),b.call(t,s.container,a.type,!0,r)})}),m(this,"proxy",(t,s,n)=>{const{player:a}=this,r=a.config.listeners[n];let o=!0;l.function(r)&&(o=r.call(a,t)),o!==!1&&l.function(s)&&s.call(a,t)}),m(this,"bind",(t,s,n,a,r=!0)=>{const{player:o}=this,c=o.config.listeners[a],u=l.function(c);A.call(o,t,s,g=>this.proxy(g,n,a),r&&!u)}),m(this,"controls",()=>{const{player:t}=this,{elements:s}=t,n=O.isIE?"change":"input";if(s.buttons.play&&Array.from(s.buttons.play).forEach(a=>{this.bind(a,"click",()=>{R(t.togglePlay())},"play")}),this.bind(s.buttons.restart,"click",t.restart,"restart"),this.bind(s.buttons.rewind,"click",()=>{t.lastSeekTime=Date.now(),t.rewind()},"rewind"),this.bind(s.buttons.fastForward,"click",()=>{t.lastSeekTime=Date.now(),t.forward()},"fastForward"),this.bind(s.buttons.mute,"click",()=>{t.muted=!t.muted},"mute"),this.bind(s.buttons.captions,"click",()=>t.toggleCaptions()),this.bind(s.buttons.download,"click",()=>{b.call(t,t.media,"download")},"download"),this.bind(s.buttons.fullscreen,"click",()=>{t.fullscreen.toggle()},"fullscreen"),this.bind(s.buttons.pip,"click",()=>{t.pip="toggle"},"pip"),this.bind(s.buttons.airplay,"click",t.airplay,"airplay"),this.bind(s.buttons.settings,"click",a=>{a.stopPropagation(),a.preventDefault(),h.toggleMenu.call(t,a)},null,!1),this.bind(s.buttons.settings,"keyup",a=>{[" ","Enter"].includes(a.key)&&(a.key!=="Enter"?(a.preventDefault(),a.stopPropagation(),h.toggleMenu.call(t,a)):h.focusFirstMenuItem.call(t,null,!0))},null,!1),this.bind(s.settings.menu,"keydown",a=>{a.key==="Escape"&&h.toggleMenu.call(t,a)}),this.bind(s.inputs.seek,"mousedown mousemove",a=>{const r=s.progress.getBoundingClientRect(),o=100/r.width*(a.pageX-r.left);a.currentTarget.setAttribute("seek-value",o)}),this.bind(s.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",a=>{const r=a.currentTarget,o="play-on-seeked";if(l.keyboardEvent(a)&&!["ArrowLeft","ArrowRight"].includes(a.key))return;t.lastSeekTime=Date.now();const c=r.hasAttribute(o),u=["mouseup","touchend","keyup"].includes(a.type);c&&u?(r.removeAttribute(o),R(t.play())):!u&&t.playing&&(r.setAttribute(o,""),t.pause())}),O.isIos){const a=G.call(t,'input[type="range"]');Array.from(a).forEach(r=>this.bind(r,n,o=>Ze(o.target)))}this.bind(s.inputs.seek,n,a=>{const r=a.currentTarget;let o=r.getAttribute("seek-value");l.empty(o)&&(o=r.value),r.removeAttribute("seek-value"),t.currentTime=o/r.max*t.duration},"seek"),this.bind(s.progress,"mouseenter mouseleave mousemove",a=>h.updateSeekTooltip.call(t,a)),this.bind(s.progress,"mousemove touchmove",a=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.startMove(a)}),this.bind(s.progress,"mouseleave touchend click",()=>{const{previewThumbnails:a}=t;a&&a.loaded&&a.endMove(!1,!0)}),this.bind(s.progress,"mousedown touchstart",a=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.startScrubbing(a)}),this.bind(s.progress,"mouseup touchend",a=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.endScrubbing(a)}),O.isWebKit&&Array.from(G.call(t,'input[type="range"]')).forEach(a=>{this.bind(a,"input",r=>h.updateRangeFill.call(t,r.target))}),t.config.toggleInvert&&!l.element(s.display.duration)&&this.bind(s.display.currentTime,"click",()=>{t.currentTime!==0&&(t.config.invertTime=!t.config.invertTime,h.timeUpdate.call(t))}),this.bind(s.inputs.volume,n,a=>{t.volume=a.target.value},"volume"),this.bind(s.controls,"mouseenter mouseleave",a=>{s.controls.hover=!t.touch&&a.type==="mouseenter"}),s.fullscreen&&Array.from(s.fullscreen.children).filter(a=>!a.contains(s.container)).forEach(a=>{this.bind(a,"mouseenter mouseleave",r=>{s.controls&&(s.controls.hover=!t.touch&&r.type==="mouseenter")})}),this.bind(s.controls,"mousedown mouseup touchstart touchend touchcancel",a=>{s.controls.pressed=["mousedown","touchstart"].includes(a.type)}),this.bind(s.controls,"focusin",()=>{const{config:a,timers:r}=t;E(s.controls,a.classNames.noTransition,!0),P.toggleControls.call(t,!0),setTimeout(()=>{E(s.controls,a.classNames.noTransition,!1)},0);const o=this.touch?3e3:4e3;clearTimeout(r.controls),r.controls=setTimeout(()=>P.toggleControls.call(t,!1),o)}),this.bind(s.inputs.volume,"wheel",a=>{const r=a.webkitDirectionInvertedFromDevice,[o,c]=[a.deltaX,-a.deltaY].map(f=>r?-f:f),u=Math.sign(Math.abs(o)>Math.abs(c)?o:c);t.increaseVolume(u/50);const{volume:g}=t.media;(u===1&&g<1||u===-1&&g>0)&&a.preventDefault()},"volume",!1)}),this.player=i,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(i){const{player:t}=this,{elements:s}=t,{key:n,type:a,altKey:r,ctrlKey:o,metaKey:c,shiftKey:u}=i,g=a==="keydown",f=g&&n===this.lastKey;if(!(r||o||c||u)&&n){if(g){const v=document.activeElement;if(l.element(v)){const{editable:k}=t.config.selectors,{seek:T}=s.inputs;if(v!==T&&K(v,k)||i.key===" "&&K(v,'button, [role^="menuitem"]'))return}switch([" ","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(n)&&(i.preventDefault(),i.stopPropagation()),n){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":f||(d=parseInt(n,10),t.currentTime=t.duration/10*d);break;case" ":case"k":f||R(t.togglePlay());break;case"ArrowUp":t.increaseVolume(.1);break;case"ArrowDown":t.decreaseVolume(.1);break;case"m":f||(t.muted=!t.muted);break;case"ArrowRight":t.forward();break;case"ArrowLeft":t.rewind();break;case"f":t.fullscreen.toggle();break;case"c":f||t.toggleCaptions();break;case"l":t.loop=!t.loop}n==="Escape"&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=n}else this.lastKey=null;var d}}toggleMenu(i){h.toggleMenu.call(this.player,i)}}function fi(e,i){return e(i={exports:{}},i.exports),i.exports}var yi=fi(function(e,i){e.exports=(function(){var t=function(){},s={},n={},a={};function r(d,v){d=d.push?d:[d];var k,T,M,w=[],p=d.length,C=p;for(k=function(L,j){j.length&&w.push(L),--C||v(w)};p--;)T=d[p],(M=n[T])?k(T,M):(a[T]=a[T]||[]).push(k)}function o(d,v){if(d){var k=a[d];if(n[d]=v,k)for(;k.length;)k[0](d,v),k.splice(0,1)}}function c(d,v){d.call&&(d={success:d}),v.length?(d.error||t)(v):(d.success||t)(d)}function u(d,v,k,T){var M,w,p=document,C=k.async,L=(k.numRetries||0)+1,j=k.before||t,q=d.replace(/[\?|#].*$/,""),D=d.replace(/^(css|img)!/,"");T=T||0,/(^css!|\.css$)/.test(q)?((w=p.createElement("link")).rel="stylesheet",w.href=D,(M="hideFocus"in w)&&w.relList&&(M=0,w.rel="preload",w.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(q)?(w=p.createElement("img")).src=D:((w=p.createElement("script")).src=d,w.async=C===void 0||C),w.onload=w.onerror=w.onbeforeload=function(Le){var ae=Le.type[0];if(M)try{w.sheet.cssText.length||(ae="e")}catch(pt){pt.code!=18&&(ae="e")}if(ae=="e"){if((T+=1){yi(e,{success:i,error:t})})}function bi(e){return l.empty(e)?null:l.number(Number(e))?e:e.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:e}function vi(e){const i=e.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return i&&i.length===5?i[4]:null}function Q(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,b.call(this,this.media,e?"play":"pause"))}const Ae={setup(){const e=this;E(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,Y.call(e),l.object(window.Vimeo)?Ae.ready.call(e):xe(e.config.urls.vimeo.sdk).then(()=>{Ae.ready.call(e)}).catch(i=>{e.debug.warn("Vimeo SDK (player.js) failed to load",i)})},ready(){const e=this,i=e.config.vimeo,{premium:t,referrerPolicy:s,...n}=i;let a=e.media.getAttribute("src"),r="";l.empty(a)?(a=e.media.getAttribute(e.config.attributes.embed.id),r=e.media.getAttribute(e.config.attributes.embed.hash)):r=vi(a);const o=r?{h:r}:{};t&&Object.assign(n,{controls:!1,sidedock:!1});const c=ut({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:e.config.playsinline,...o,...n}),u=bi(a),g=y("iframe"),f=Te(e.config.urls.vimeo.iframe,u,c);if(g.setAttribute("src",f),g.setAttribute("allowfullscreen",""),g.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),l.empty(s)||g.setAttribute("referrerPolicy",s),t||!i.customControls)g.setAttribute("data-poster",e.poster),e.media=ce(g,e.media);else{const p=y("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});p.appendChild(g),e.media=ce(p,e.media)}i.customControls||ne(Te(e.config.urls.vimeo.api,f)).then(p=>{!l.empty(p)&&p.thumbnail_url&&P.setPoster.call(e,p.thumbnail_url).catch(()=>{})}),e.embed=new window.Vimeo.Player(g,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(Q.call(e,!0),e.embed.play()),e.media.pause=()=>(Q.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:d}=e.media;Object.defineProperty(e.media,"currentTime",{get:()=>d,set(p){const{embed:C,media:L,paused:j,volume:q}=e,D=j&&!C.hasPlayed;L.seeking=!0,b.call(e,L,"seeking"),Promise.resolve(D&&C.setVolume(0)).then(()=>C.setCurrentTime(p)).then(()=>D&&C.pause()).then(()=>D&&C.setVolume(q)).catch(()=>{})}});let v=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:()=>v,set(p){e.embed.setPlaybackRate(p).then(()=>{v=p,b.call(e,e.media,"ratechange")}).catch(()=>{e.options.speed=[1]})}});let{volume:k}=e.config;Object.defineProperty(e.media,"volume",{get:()=>k,set(p){e.embed.setVolume(p).then(()=>{k=p,b.call(e,e.media,"volumechange")})}});let{muted:T}=e.config;Object.defineProperty(e.media,"muted",{get:()=>T,set(p){const C=!!l.boolean(p)&&p;e.embed.setMuted(!!C||e.config.muted).then(()=>{T=C,b.call(e,e.media,"volumechange")})}});let M,{loop:w}=e.config;Object.defineProperty(e.media,"loop",{get:()=>w,set(p){const C=l.boolean(p)?p:e.config.loop.active;e.embed.setLoop(C).then(()=>{w=C})}}),e.embed.getVideoUrl().then(p=>{M=p,h.setDownloadUrl.call(e)}).catch(p=>{this.debug.warn(p)}),Object.defineProperty(e.media,"currentSrc",{get:()=>M}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(p=>{const[C,L]=p;e.embed.ratio=at(C,L),Y.call(this)}),e.embed.setAutopause(e.config.autopause).then(p=>{e.config.autopause=p}),e.embed.getVideoTitle().then(p=>{e.config.title=p,P.setTitle.call(this)}),e.embed.getCurrentTime().then(p=>{d=p,b.call(e,e.media,"timeupdate")}),e.embed.getDuration().then(p=>{e.media.duration=p,b.call(e,e.media,"durationchange")}),e.embed.getTextTracks().then(p=>{e.media.textTracks=p,S.setup.call(e)}),e.embed.on("cuechange",({cues:p=[]})=>{const C=p.map(L=>ci(L.text));S.updateCues.call(e,C)}),e.embed.on("loaded",()=>{e.embed.getPaused().then(p=>{Q.call(e,!p),p||b.call(e,e.media,"playing")}),l.element(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)}),e.embed.on("bufferstart",()=>{b.call(e,e.media,"waiting")}),e.embed.on("bufferend",()=>{b.call(e,e.media,"playing")}),e.embed.on("play",()=>{Q.call(e,!0),b.call(e,e.media,"playing")}),e.embed.on("pause",()=>{Q.call(e,!1)}),e.embed.on("timeupdate",p=>{e.media.seeking=!1,d=p.seconds,b.call(e,e.media,"timeupdate")}),e.embed.on("progress",p=>{e.media.buffered=p.percent,b.call(e,e.media,"progress"),parseInt(p.percent,10)===1&&b.call(e,e.media,"canplaythrough"),e.embed.getDuration().then(C=>{C!==e.media.duration&&(e.media.duration=C,b.call(e,e.media,"durationchange"))})}),e.embed.on("seeked",()=>{e.media.seeking=!1,b.call(e,e.media,"seeked")}),e.embed.on("ended",()=>{e.media.paused=!0,b.call(e,e.media,"ended")}),e.embed.on("error",p=>{e.media.error=p,b.call(e,e.media,"error")}),i.customControls&&setTimeout(()=>P.build.call(e),0)}};function wi(e){return l.empty(e)?null:e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:e}function X(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,b.call(this,this.media,e?"play":"pause"))}function ki(e){return e.noCookie?"https://www.youtube-nocookie.com":window.location.protocol==="http:"?"http://www.youtube.com":void 0}const oe={setup(){if(E(this.elements.wrapper,this.config.classNames.embed,!0),l.object(window.YT)&&l.function(window.YT.Player))oe.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{l.function(e)&&e(),oe.ready.call(this)},xe(this.config.urls.youtube.sdk).catch(i=>{this.debug.warn("YouTube API failed to load",i)})}},getTitle(e){ne(Te(this.config.urls.youtube.api,e)).then(i=>{if(l.object(i)){const{title:t,height:s,width:n}=i;this.config.title=t,P.setTitle.call(this),this.embed.ratio=at(n,s)}Y.call(this)}).catch(()=>{Y.call(this)})},ready(){const e=this,i=e.config.youtube,t=e.media&&e.media.getAttribute("id");if(!l.empty(t)&&t.startsWith("youtube-"))return;let s=e.media.getAttribute("src");l.empty(s)&&(s=e.media.getAttribute(this.config.attributes.embed.id));const n=wi(s),a=y("div",{id:ai(e.provider),"data-poster":i.customControls?e.poster:void 0});if(e.media=ce(a,e.media),i.customControls){const r=o=>`https://i.ytimg.com/vi/${n}/${o}default.jpg`;re(r("maxres"),121).catch(()=>re(r("sd"),121)).catch(()=>re(r("hq"))).then(o=>P.setPoster.call(e,o.src)).then(o=>{o.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}e.embed=new window.YT.Player(e.media,{videoId:n,host:ki(i),playerVars:N({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&i.customControls?0:1,disablekb:1,playsinline:e.config.playsinline&&!e.config.fullscreen.iosNative?1:0,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},i),events:{onError(r){if(!e.media.error){const o=r.data,c={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[o]||"An unknown error occurred";e.media.error={code:o,message:c},b.call(e,e.media,"error")}},onPlaybackRateChange(r){const o=r.target;e.media.playbackRate=o.getPlaybackRate(),b.call(e,e.media,"ratechange")},onReady(r){if(l.function(e.media.play))return;const o=r.target;oe.getTitle.call(e,n),e.media.play=()=>{X.call(e,!0),o.playVideo()},e.media.pause=()=>{X.call(e,!1),o.pauseVideo()},e.media.stop=()=>{o.stopVideo()},e.media.duration=o.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:()=>Number(o.getCurrentTime()),set(f){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,b.call(e,e.media,"seeking"),o.seekTo(f)}}),Object.defineProperty(e.media,"playbackRate",{get:()=>o.getPlaybackRate(),set(f){o.setPlaybackRate(f)}});let{volume:c}=e.config;Object.defineProperty(e.media,"volume",{get:()=>c,set(f){c=f,o.setVolume(100*c),b.call(e,e.media,"volumechange")}});let{muted:u}=e.config;Object.defineProperty(e.media,"muted",{get:()=>u,set(f){const d=l.boolean(f)?f:u;u=d,o[d?"mute":"unMute"](),o.setVolume(100*c),b.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:()=>o.getVideoUrl()}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration});const g=o.getAvailablePlaybackRates();e.options.speed=g.filter(f=>e.config.speed.options.includes(f)),e.supported.ui&&i.customControls&&e.media.setAttribute("tabindex",-1),b.call(e,e.media,"timeupdate"),b.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(()=>{e.media.buffered=o.getVideoLoadedFraction(),(e.media.lastBuffered===null||e.media.lastBufferedP.build.call(e),50)},onStateChange(r){const o=r.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(r.data)&&(e.media.seeking=!1,b.call(e,e.media,"seeked")),r.data){case-1:b.call(e,e.media,"timeupdate"),e.media.buffered=o.getVideoLoadedFraction(),b.call(e,e.media,"progress");break;case 0:X.call(e,!1),e.media.loop?(o.stopVideo(),o.playVideo()):b.call(e,e.media,"ended");break;case 1:i.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(X.call(e,!0),b.call(e,e.media,"playing"),e.timers.playing=setInterval(()=>{b.call(e,e.media,"timeupdate")},50),e.media.duration!==o.getDuration()&&(e.media.duration=o.getDuration(),b.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),X.call(e,!1);break;case 3:b.call(e,e.media,"waiting")}b.call(e,e.elements.container,"statechange",!1,{code:r.data})}}})}},dt={setup(){this.media?(E(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),E(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&E(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=y("div",{class:this.config.classNames.video}),tt(this.media,this.elements.wrapper),this.elements.poster=y("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?B.setup.call(this):this.isYouTube?oe.setup.call(this):this.isVimeo&&Ae.setup.call(this)):this.debug.warn("No media element found!")}};class Ti{constructor(i){m(this,"load",()=>{this.enabled&&(l.object(window.google)&&l.object(window.google.ima)?this.ready():xe(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}))}),m(this,"ready",()=>{var t;this.enabled||((t=this).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),m(this,"setupIMA",()=>{this.elements.container=y("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,t=>this.onAdsManagerLoaded(t),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,t=>this.onAdError(t),!1),this.requestAds()}),m(this,"requestAds",()=>{const{container:t}=this.player.elements;try{const s=new google.ima.AdsRequest;s.adTagUrl=this.tagUrl,s.linearAdSlotWidth=t.offsetWidth,s.linearAdSlotHeight=t.offsetHeight,s.nonLinearAdSlotWidth=t.offsetWidth,s.nonLinearAdSlotHeight=t.offsetHeight,s.forceNonLinearFullSlot=!1,s.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(s)}catch(s){this.onAdError(s)}}),m(this,"pollCountdown",(t=!1)=>{if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(()=>{const s=pe(Math.max(this.manager.getRemainingTime(),0)),n=`${$.get("advertisement",this.player.config)} - ${s}`;this.elements.container.setAttribute("data-badge-text",n)},100)}),m(this,"onAdsManagerLoaded",t=>{if(!this.enabled)return;const s=new google.ima.AdsRenderingSettings;s.restoreCustomPlaybackStateOnAdBreakComplete=!0,s.enablePreloading=!0,this.manager=t.getAdsManager(this.player,s),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,n=>this.onAdError(n)),Object.keys(google.ima.AdEvent.Type).forEach(n=>{this.manager.addEventListener(google.ima.AdEvent.Type[n],a=>this.onAdEvent(a))}),this.trigger("loaded")}),m(this,"addCuePoints",()=>{l.empty(this.cuePoints)||this.cuePoints.forEach(t=>{if(t!==0&&t!==-1&&t{const{container:s}=this.player.elements,n=t.getAd(),a=t.getAdData();switch((r=>{b.call(this.player,this.player.media,`ads${r.replace(/_/g,"").toLowerCase()}`)})(t.type),t.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),n.isLinear()||(n.width=s.offsetWidth,n.height=s.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:a.adError&&this.player.debug.warn(`Non-fatal ad error: ${a.adError.getMessage()}`)}}),m(this,"onAdError",t=>{this.cancel(),this.player.debug.warn("Ads error",t)}),m(this,"listeners",()=>{const{container:t}=this.player.elements;let s;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{s=this.player.currentTime}),this.player.on("seeked",()=>{const n=this.player.currentTime;l.empty(this.cuePoints)||this.cuePoints.forEach((a,r)=>{s{this.manager&&this.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)})}),m(this,"play",()=>{const{container:t}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(s){this.onAdError(s)}}).catch(()=>{})}),m(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,R(this.player.media.play())}),m(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),m(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),m(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(t=>{this.on("loaded",t),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),m(this,"trigger",(t,...s)=>{const n=this.events[t];l.array(n)&&n.forEach(a=>{l.function(a)&&a.apply(this,s)})}),m(this,"on",(t,s)=>(l.array(this.events[t])||(this.events[t]=[]),this.events[t].push(s),this)),m(this,"startSafetyTimer",(t,s)=>{this.player.debug.log(`Safety timer invoked from: ${s}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},t)}),m(this,"clearSafetyTimer",t=>{l.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${t}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=i,this.config=i.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((t,s)=>{this.on("loaded",t),this.on("error",s)}),this.load()}get enabled(){const{config:i}=this;return this.player.isHTML5&&this.player.isVideo&&i.enabled&&(!l.empty(i.publisherId)||l.url(i.tagUrl))}get tagUrl(){const{config:i}=this;return l.url(i.tagUrl)?i.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${ut({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:i.publisherId})}`}}function mt(e=0,i=0,t=255){return Math.min(Math.max(e,i),t)}const Ai=e=>{const i=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(t=>{const s={};t.split(/\r\n|\n|\r/).forEach(n=>{if(l.number(s.startTime)){if(!l.empty(n.trim())&&l.empty(s.text)){const a=n.trim().split("#xywh=");[s.text]=a,a[1]&&([s.x,s.y,s.w,s.h]=a[1].split(","))}}else{const a=n.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);a&&(s.startTime=60*Number(a[1]||0)*60+60*Number(a[2])+Number(a[3])+ +`0.${a[4]}`,s.endTime=60*Number(a[6]||0)*60+60*Number(a[7])+Number(a[8])+ +`0.${a[9]}`)}}),s.text&&i.push(s)}),i},Ve=(e,i)=>{const t={};return e>i.width/i.height?(t.width=i.width,t.height=1/e*i.width):(t.height=i.height,t.width=e*i.height),t};class Ce{constructor(i){m(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.listeners(),this.loaded=!0)})}),m(this,"getThumbnails",()=>new Promise(t=>{const{src:s}=this.player.config.previewThumbnails;if(l.empty(s))throw new Error("Missing previewThumbnails.src config attribute");const n=()=>{this.thumbnails.sort((a,r)=>a.height-r.height),this.player.debug.log("Preview thumbnails",this.thumbnails),t()};if(l.function(s))s(a=>{this.thumbnails=a,n()});else{const a=(l.string(s)?[s]:s).map(r=>this.getThumbnail(r));Promise.all(a).then(n)}})),m(this,"getThumbnail",t=>new Promise(s=>{ne(t).then(n=>{const a={frames:Ai(n),height:null,urlPrefix:""};a.frames[0].text.startsWith("/")||a.frames[0].text.startsWith("http://")||a.frames[0].text.startsWith("https://")||(a.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));const r=new Image;r.onload=()=>{a.height=r.naturalHeight,a.width=r.naturalWidth,this.thumbnails.push(a),s()},r.src=a.urlPrefix+a.frames[0].text})})),m(this,"startMove",t=>{if(this.loaded&&l.event(t)&&["touchmove","mousemove"].includes(t.type)&&this.player.media.duration){if(t.type==="touchmove")this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var s,n;const a=this.player.elements.progress.getBoundingClientRect(),r=100/a.width*(t.pageX-a.left);this.seekTime=this.player.media.duration*(r/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=t.pageX,this.elements.thumb.time.innerText=pe(this.seekTime);const o=(s=this.player.config.markers)===null||s===void 0||(n=s.points)===null||n===void 0?void 0:n.find(({time:c})=>c===Math.round(this.seekTime));o&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${o.label}
`)}this.showImageAtCurrentTime()}}),m(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),m(this,"startScrubbing",t=>{(l.nullOrUndefined(t.button)||t.button===!1||t.button===0)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),m(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):Me.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),m(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),m(this,"render",()=>{this.elements.thumb.container=y("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=y("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const t=y("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=y("span",{},"00:00"),t.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(t),l.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=y("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),m(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),m(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const t=this.thumbnails[0].frames.findIndex(a=>this.seekTime>=a.startTime&&this.seekTime<=a.endTime),s=t>=0;let n=0;this.mouseDown||this.toggleThumbContainer(s),s&&(this.thumbnails.forEach((a,r)=>{this.loadedImages.includes(a.frames[t].text)&&(n=r)}),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(n)))}),m(this,"loadImage",(t=0)=>{const s=this.showingThumb,n=this.thumbnails[t],{urlPrefix:a}=n,r=n.frames[s],o=n.frames[s].text,c=a+o;if(this.currentImageElement&&this.currentImageElement.dataset.filename===o)this.showImage(this.currentImageElement,r,t,s,o,!1),this.currentImageElement.dataset.index=s,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const u=new Image;u.src=c,u.dataset.index=s,u.dataset.filename=o,this.showingThumbFilename=o,this.player.debug.log(`Loading image: ${c}`),u.onload=()=>this.showImage(u,r,t,s,o,!0),this.loadingImage=u,this.removeOldImages(u)}}),m(this,"showImage",(t,s,n,a,r,o=!0)=>{this.player.debug.log(`Showing thumb: ${r}. num: ${a}. qual: ${n}. newimg: ${o}`),this.setImageSizeAndOffset(t,s),o&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(r)||this.loadedImages.push(r)),this.preloadNearby(a,!0).then(this.preloadNearby(a,!1)).then(this.getHigherQuality(n,t,s,r))}),m(this,"removeOldImages",t=>{Array.from(this.currentImageContainer.children).forEach(s=>{if(s.tagName.toLowerCase()!=="img")return;const n=this.usingSprites?500:1e3;if(s.dataset.index!==t.dataset.index&&!s.dataset.deleting){s.dataset.deleting=!0;const{currentImageContainer:a}=this;setTimeout(()=>{a.removeChild(s),this.player.debug.log(`Removing thumb: ${s.dataset.filename}`)},n)}})}),m(this,"preloadNearby",(t,s=!0)=>new Promise(n=>{setTimeout(()=>{const a=this.thumbnails[0].frames[t].text;if(this.showingThumbFilename===a){let r;r=s?this.thumbnails[0].frames.slice(t):this.thumbnails[0].frames.slice(0,t).reverse();let o=!1;r.forEach(c=>{const u=c.text;if(u!==a&&!this.loadedImages.includes(u)){o=!0,this.player.debug.log(`Preloading thumb filename: ${u}`);const{urlPrefix:g}=this.thumbnails[0],f=g+u,d=new Image;d.src=f,d.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${u}`),this.loadedImages.includes(u)||this.loadedImages.push(u),n()}}}),o||n()}},300)})),m(this,"getHigherQuality",(t,s,n,a)=>{if(t{this.showingThumbFilename===a&&(this.player.debug.log(`Showing higher quality thumb for: ${a}`),this.loadImage(t+1))},300)}}),m(this,"toggleThumbContainer",(t=!1,s=!1)=>{const n=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(n,t),!t&&s&&(this.showingThumb=null,this.showingThumbFilename=null)}),m(this,"toggleScrubbingContainer",(t=!1)=>{const s=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(s,t),t||(this.showingThumb=null,this.showingThumbFilename=null)}),m(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),m(this,"setThumbContainerSizeAndPos",()=>{const{imageContainer:t}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(t.clientHeight>20&&t.clientWidth<20){const s=Math.floor(t.clientHeight*this.thumbAspectRatio);t.style.width=`${s}px`}else if(t.clientHeight<20&&t.clientWidth>20){const s=Math.floor(t.clientWidth/this.thumbAspectRatio);t.style.height=`${s}px`}}else{const s=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);t.style.height=`${this.thumbContainerHeight}px`,t.style.width=`${s}px`}this.setThumbContainerPos()}),m(this,"setThumbContainerPos",()=>{const t=this.player.elements.progress.getBoundingClientRect(),s=this.player.elements.container.getBoundingClientRect(),{container:n}=this.elements.thumb,a=s.left-t.left+10,r=s.right-t.left-n.clientWidth-10,o=this.mousePosX-t.left-n.clientWidth/2,c=mt(o,a,r);n.style.left=`${c}px`,n.style.setProperty("--preview-arrow-offset",o-c+"px")}),m(this,"setScrubbingContainerSize",()=>{const{width:t,height:s}=Ve(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${t}px`,this.elements.scrubbing.container.style.height=`${s}px`}),m(this,"setImageSizeAndOffset",(t,s)=>{if(!this.usingSprites)return;const n=this.thumbContainerHeight/s.h;t.style.height=t.naturalHeight*n+"px",t.style.width=t.naturalWidth*n+"px",t.style.left=`-${s.x*n}px`,t.style.top=`-${s.y*n}px`}),this.player=i,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:i}=Ve(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return i}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(i){this.mouseDown?this.currentScrubbingImageElement=i:this.currentThumbnailImageElement=i}}const Se={insertElements(e,i){l.string(i)?He(e,this.media,{src:i}):l.array(i)&&i.forEach(t=>{He(e,this.media,t)})},change(e){et(e,"sources.length")?(B.cancelRequests.call(this),this.destroy.call(this,()=>{this.options.quality=[],V(this.media),this.media=null,l.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:i,type:t}=e,[{provider:s=W.html5,src:n}]=i,a=s==="html5"?t:"div",r=s==="html5"?{}:{src:n};Object.assign(this,{provider:s,type:t,supported:x.check(t,s,this.config.playsinline),media:y(a,r)}),this.elements.container.appendChild(this.media),l.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),l.empty(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),P.addStyleHook.call(this),this.isHTML5&&Se.insertElements.call(this,"source",i),this.config.title=e.title,dt.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&Se.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&P.build.call(this),this.isHTML5&&this.media.load(),l.empty(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ce(this))),this.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};class te{constructor(i,t){if(m(this,"play",()=>l.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>R(this.media.play())),this.media.play()):null),m(this,"pause",()=>this.playing&&l.function(this.media.pause)?this.media.pause():null),m(this,"togglePlay",o=>(l.boolean(o)?o:!this.playing)?this.play():this.pause()),m(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):l.function(this.media.stop)&&this.media.stop()}),m(this,"restart",()=>{this.currentTime=0}),m(this,"rewind",o=>{this.currentTime-=l.number(o)?o:this.config.seekTime}),m(this,"forward",o=>{this.currentTime+=l.number(o)?o:this.config.seekTime}),m(this,"increaseVolume",o=>{const c=this.media.muted?0:this.volume;this.volume=c+(l.number(o)?o:0)}),m(this,"decreaseVolume",o=>{this.increaseVolume(-o)}),m(this,"airplay",()=>{x.airplay&&this.media.webkitShowPlaybackTargetPicker()}),m(this,"toggleControls",o=>{if(this.supported.ui&&!this.isAudio){const c=ue(this.elements.container,this.config.classNames.hideControls),u=o===void 0?void 0:!o,g=E(this.elements.container,this.config.classNames.hideControls,u);if(g&&l.array(this.config.controls)&&this.config.controls.includes("settings")&&!l.empty(this.config.settings)&&h.toggleMenu.call(this,!1),g!==c){const f=g?"controlshidden":"controlsshown";b.call(this,this.media,f)}return!g}return!1}),m(this,"on",(o,c)=>{A.call(this,this.elements.container,o,c)}),m(this,"once",(o,c)=>{Me.call(this,this.elements.container,o,c)}),m(this,"off",(o,c)=>{me(this.elements.container,o,c)}),m(this,"destroy",(o,c=!1)=>{if(!this.ready)return;const u=()=>{document.body.style.overflow="",this.embed=null,c?(Object.keys(this.elements).length&&(V(this.elements.buttons.play),V(this.elements.captions),V(this.elements.controls),V(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),l.function(o)&&o()):(ii.call(this),B.cancelRequests.call(this),ce(this.elements.original,this.elements.container),b.call(this,this.elements.original,"destroyed",!0),l.function(o)&&o.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(P.toggleNativeControls.call(this,!0),u()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),this.embed!==null&&l.function(this.embed.destroy)&&this.embed.destroy(),u()):this.isVimeo&&(this.embed!==null&&this.embed.unload().then(u),setTimeout(u,200))}),m(this,"supports",o=>x.mime.call(this,o)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=x.touch,this.media=i,l.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||l.nodeList(this.media)||l.array(this.media))&&(this.media=this.media[0]),this.config=N({},ht,te.defaults,t||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch{return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new pi(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",x),l.nullOrUndefined(this.media)||!l.element(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!x.check().api)return void this.debug.error("Setup failed: no support");const s=this.media.cloneNode(!0);s.autoplay=!1,this.elements.original=s;const n=this.media.tagName.toLowerCase();let a=null,r=null;switch(n){case"div":if(a=this.media.querySelector("iframe"),l.element(a)){if(r=ct(a.getAttribute("src")),this.provider=mi(r.toString()),this.elements.container=this.media,this.media=a,this.elements.container.className="",r.search.length){const o=["1","true"];o.includes(r.searchParams.get("autoplay"))&&(this.config.autoplay=!0),o.includes(r.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=o.includes(r.searchParams.get("playsinline")),this.config.youtube.hl=r.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(l.empty(this.provider)||!Object.values(W).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=ye.video;break;case"video":case"audio":this.type=n,this.provider=W.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=x.check(this.type,this.provider),this.supported.api?(this.eventListeners=[],this.listeners=new gi(this),this.storage=new ee(this),this.media.plyr=this,l.element(this.elements.container)||(this.elements.container=y("div"),tt(this.media,this.elements.container)),P.migrateStyles.call(this),P.addStyleHook.call(this),dt.setup.call(this),this.config.debug&&A.call(this,this.elements.container,this.config.events.join(" "),o=>{this.debug.log(`event: ${o.type}`)}),this.fullscreen=new H(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&P.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Ti(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>R(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ce(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===W.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===W.youtube}get isVimeo(){return this.provider===W.vimeo}get isVideo(){return this.type===ye.video}get isAudio(){return this.type===ye.audio}get playing(){return!!(this.ready&&!this.paused&&!this.ended)}get paused(){return!!this.media.paused}get stopped(){return!!(this.paused&&this.currentTime===0)}get ended(){return!!this.media.ended}set currentTime(i){if(!this.duration)return;const t=l.number(i)&&i>0;this.media.currentTime=t?Math.min(i,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:i}=this.media;return l.number(i)?i:i&&i.length&&this.duration>0?i.end(0)/this.duration:0}get seeking(){return!!this.media.seeking}get duration(){const i=parseFloat(this.config.duration),t=(this.media||{}).duration,s=l.number(t)&&t!==1/0?t:0;return i||s}set volume(i){let t=i;l.string(t)&&(t=Number(t)),l.number(t)||(t=this.storage.get("volume")),l.number(t)||({volume:t}=this.config),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!l.empty(i)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(i){let t=i;l.boolean(t)||(t=this.storage.get("muted")),l.boolean(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}get muted(){return!!this.media.muted}get hasAudio(){return!this.isHTML5||!!this.isAudio||!!this.media.mozHasAudio||!!this.media.webkitAudioDecodedByteCount||!!(this.media.audioTracks&&this.media.audioTracks.length)}set speed(i){let t=null;l.number(i)&&(t=i),l.number(t)||(t=this.storage.get("speed")),l.number(t)||(t=this.config.speed.selected);const{minimumSpeed:s,maximumSpeed:n}=this;t=mt(t,s,n),this.config.speed.selected=t,setTimeout(()=>{this.media&&(this.media.playbackRate=t)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(i){const t=this.config.quality,s=this.options.quality;if(!s.length)return;let n=[!l.empty(i)&&Number(i),this.storage.get("quality"),t.selected,t.default].find(l.number),a=!0;if(!s.includes(n)){const r=it(s,n);this.debug.warn(`Unsupported quality option: ${n}, using ${r} instead`),n=r,a=!1}t.selected=n,this.media.quality=n,a&&this.storage.set({quality:n})}get quality(){return this.media.quality}set loop(i){const t=l.boolean(i)?i:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}get loop(){return!!this.media.loop}set source(i){Se.change.call(this,i)}get source(){return this.media.currentSrc}get download(){const{download:i}=this.config.urls;return l.url(i)?i:this.source}set download(i){l.url(i)&&(this.config.urls.download=i,h.setDownloadUrl.call(this))}set poster(i){this.isVideo?P.setPoster.call(this,i,!1).catch(()=>{}):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const i=he(Ne.call(this));return l.array(i)?i.join(":"):i}set ratio(i){this.isVideo?l.string(i)&&nt(i)?(this.config.ratio=he(i),Y.call(this)):this.debug.error(`Invalid aspect ratio specified (${i})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(i){this.config.autoplay=l.boolean(i)?i:this.config.autoplay}get autoplay(){return!!this.config.autoplay}toggleCaptions(i){S.toggle.call(this,i,!1)}set currentTrack(i){S.set.call(this,i,!1),S.setup.call(this)}get currentTrack(){const{toggled:i,currentTrack:t}=this.captions;return i?t:-1}set language(i){S.setLanguage.call(this,i,!1)}get language(){return(S.getCurrentTrack.call(this)||{}).language}set pip(i){if(!x.pip)return;const t=l.boolean(i)?i:!this.pip;l.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?fe.active:fe.inactive),l.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return x.pip?l.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===fe.active:null}setPreviewThumbnails(i){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,i),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ce(this))}static supported(i,t){return x.check(i,t)}static loadSprite(i,t){return rt(i,t)}static setup(i,t={}){let s=null;return l.string(i)?s=Array.from(document.querySelectorAll(i)):l.nodeList(i)?s=Array.from(i):l.array(i)&&(s=i.filter(l.element)),l.empty(s)?null:s.map(n=>new te(n,t))}}te.defaults=Gt(ht);const Ci=["src"],Si=["src"],Pi=gt({__name:"VideoPlayer",props:{f:{}},setup(e){const i=ft();return yt(()=>{new te(i.value)}),(t,s)=>($e(),Ie("video",{ref_key:"vid",ref:i,src:t.f.url,preload:"auto",loop:"",playsinline:""},[t.f.thumb?($e(),Ie("img",{key:0,src:t.f.thumb,alt:""},null,8,Si)):bt("",!0)],8,Ci))}});export{Pi as default}; diff --git a/assets/index-B2-0DWq1.js b/assets/index-CSLMAwfP.js similarity index 99% rename from assets/index-B2-0DWq1.js rename to assets/index-CSLMAwfP.js index a70ede6..10fbc37 100644 --- a/assets/index-B2-0DWq1.js +++ b/assets/index-CSLMAwfP.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/About-CfVt_oPj.js","assets/Loading-CAj8gvPR.js","assets/Loading-Cm6NxNrB.css","assets/utils-Bxugc6wL.js","assets/About-DrbmM9z3.css","assets/Life-BVlDglso.js","assets/Life-QSvkRVKK.css","assets/Blog-BX1cKO1m.js","assets/Blog-BbTNvYs0.css","assets/Photo-C3B0RSVd.js","assets/Photo-Bh5VFsqt.css","assets/Others-Bz7iziut.js","assets/Others-CIqHXStz.css","assets/Menu-BFbdEqRN.js","assets/Menu-DamZ6pJq.css","assets/Friends-BlIjppTA.js","assets/Friends-DFQpoIEz.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/About-2uilXuKS.js","assets/Loading-DLeNagsH.js","assets/Loading-Cm6NxNrB.css","assets/utils-9s8KIpJA.js","assets/About-DrbmM9z3.css","assets/Life-DgbMfal1.js","assets/Life-QSvkRVKK.css","assets/Blog-bVOlGgKw.js","assets/Blog-BbTNvYs0.css","assets/Photo-Ctr50G8y.js","assets/Photo-Dy5ieP_G.css","assets/Others-DXBcJtg0.js","assets/Others-CIqHXStz.css","assets/Menu-U0gohnQH.js","assets/Menu-DamZ6pJq.css","assets/Friends-COTbMEUJ.js","assets/Friends-DFQpoIEz.css"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/** * @vue/shared v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors @@ -42,7 +42,7 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/About-CfVt_oPj. * vue-router v4.6.3 * (c) 2025 Eduardo San Martin Morote * @license MIT - */let wE=()=>location.protocol+"//"+location.host;function ip(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let o=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(o);return l[0]!=="/"&&(l="/"+l),ou(l,"")}return ou(n,e)+s+r}function kE(e,t,n,s){let r=[],i=[],o=null;const l=({state:d})=>{const h=ip(e,location),S=n.value,E=t.value;let I=0;if(d){if(n.value=h,t.value=d,o&&o===S){o=null;return}I=E?d.position-E.position:0}else s(h);r.forEach(_=>{_(n.value,S,{delta:I,type:El.pop,direction:I?I>0?Uo.forward:Uo.back:Uo.unknown})})};function a(){o=n.value}function c(d){r.push(d);const h=()=>{const S=r.indexOf(d);S>-1&&r.splice(S,1)};return i.push(h),h}function u(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(be({},d.state,{scroll:bo()}),"")}}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:a,listen:c,destroy:f}}function fu(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?bo():null}}function RE(e){const{history:t,location:n}=window,s={value:ip(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:wE()+e+a;try{t[u?"replaceState":"pushState"](c,"",d),r.value=c}catch(h){console.error(h),n[u?"replace":"assign"](d)}}function o(a,c){i(a,be({},t.state,fu(r.value.back,a,r.value.forward,!0),c,{position:r.value.position}),!0),s.value=a}function l(a,c){const u=be({},r.value,t.state,{forward:a,scroll:bo()});i(u.current,u,!0),i(a,be({},fu(s.value,a,null),{position:u.position+1},c),!1),s.value=a}return{location:s,state:r,push:l,replace:o}}function PE(e){e=mE(e);const t=RE(e),n=kE(e,t.state,t.location,t.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=be({location:"",base:e,go:s,createHref:_E.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let Zn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Be=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Be||{});const LE={type:Zn.Static,value:""},ME=/[a-zA-Z0-9_]/;function xE(e){if(!e)return[[]];if(e==="/")return[[LE]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=Be.Static,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let l=0,a,c="",u="";function f(){c&&(n===Be.Static?i.push({type:Zn.Static,value:c}):n===Be.Param||n===Be.ParamRegExp||n===Be.ParamRegExpEnd?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Zn.Param,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;lt.length?t.length===1&&t[0]===dt.Static+dt.Segment?1:-1:0}function op(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const UE={strict:!1,end:!0,sensitive:!1};function HE(e,t,n){const s=VE(xE(e.path),n),r=be(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function BE(e,t){const n=[],s=new Map;t=iu(UE,t);function r(f){return s.get(f)}function i(f,d,h){const S=!h,E=mu(f);E.aliasOf=h&&h.record;const I=iu(t,f),_=[E];if("alias"in f){const g=typeof f.alias=="string"?[f.alias]:f.alias;for(const C of g)_.push(mu(be({},E,{components:h?h.record.components:E.components,path:C,aliasOf:h?h.record:E})))}let v,m;for(const g of _){const{path:C}=g;if(d&&C[0]!=="/"){const w=d.record.path,O=w[w.length-1]==="/"?"":"/";g.path=d.record.path+(C&&O+C)}if(v=HE(g,d,I),h?h.alias.push(v):(m=m||v,m!==v&&m.alias.push(v),S&&f.name&&!gu(v)&&o(f.name)),lp(v)&&a(v),E.children){const w=E.children;for(let O=0;O{o(m)}:dr}function o(f){if(np(f)){const d=s.get(f);d&&(s.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&s.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function l(){return n}function a(f){const d=KE(f,n);n.splice(d,0,f),f.record.name&&!gu(f)&&s.set(f.record.name,f)}function c(f,d){let h,S={},E,I;if("name"in f&&f.name){if(h=s.get(f.name),!h)throw Us(Re.MATCHER_NOT_FOUND,{location:f});I=h.record.name,S=be(pu(d.params,h.keys.filter(m=>!m.optional).concat(h.parent?h.parent.keys.filter(m=>m.optional):[]).map(m=>m.name)),f.params&&pu(f.params,h.keys.map(m=>m.name))),E=h.stringify(S)}else if(f.path!=null)E=f.path,h=n.find(m=>m.re.test(E)),h&&(S=h.parse(E),I=h.record.name);else{if(h=d.name?s.get(d.name):n.find(m=>m.re.test(d.path)),!h)throw Us(Re.MATCHER_NOT_FOUND,{location:f,currentLocation:d});I=h.record.name,S=be({},d.params,f.params),E=h.stringify(S)}const _=[];let v=h;for(;v;)_.unshift(v.record),v=v.parent;return{name:I,path:E,params:S,matched:_,meta:WE(_)}}e.forEach(f=>i(f));function u(){n.length=0,s.clear()}return{addRoute:i,resolve:c,removeRoute:o,clearRoutes:u,getRoutes:l,getRecordMatcher:r}}function pu(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function mu(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:jE(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function jE(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function gu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function WE(e){return e.reduce((t,n)=>be(t,n.meta),{})}function KE(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;op(e,t[i])<0?s=i:n=i+1}const r=GE(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function GE(e){let t=e;for(;t=t.parent;)if(lp(t)&&op(e,t)===0)return t}function lp({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function _u(e){const t=Bt(La),n=Bt(rp),s=Xe(()=>{const a=vn(e.to);return t.resolve(a)}),r=Xe(()=>{const{matched:a}=s.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex($s.bind(null,u));if(d>-1)return d;const h=yu(a[c-2]);return c>1&&yu(u)===h&&f[f.length-1].path!==h?f.findIndex($s.bind(null,a[c-2])):d}),i=Xe(()=>r.value>-1&&QE(n.params,s.value.params)),o=Xe(()=>r.value>-1&&r.value===n.matched.length-1&&tp(n.params,s.value.params));function l(a={}){if(JE(a)){const c=t[vn(e.replace)?"replace":"push"](vn(e.to)).catch(dr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:s,href:Xe(()=>s.value.href),isActive:i,isExactActive:o,navigate:l}}function qE(e){return e.length===1?e[0]:e}const YE=rn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:_u,setup(e,{slots:t}){const n=xr(_u(e)),{options:s}=Bt(La),r=Xe(()=>({[bu(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[bu(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&qE(t.default(n));return e.custom?i:ps("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),XE=YE;function JE(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function QE(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Wt(r)||r.length!==s.length||s.some((i,o)=>i!==r[o]))return!1}return!0}function yu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const bu=(e,t,n)=>e??t??n,ZE=rn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Bt(Tl),r=Xe(()=>e.route||s.value),i=Bt(uu,0),o=Xe(()=>{let c=vn(i);const{matched:u}=r.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=Xe(()=>r.value.matched[o.value]);lr(uu,Xe(()=>o.value+1)),lr(IE,l),lr(Tl,r);const a=ts();return tn(()=>[a.value,l.value,e.name],([c,u,f],[d,h,S])=>{u&&(u.instances[f]=c,h&&h!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!$s(u,h)||!d)&&(u.enterCallbacks[f]||[]).forEach(E=>E(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,f=l.value,d=f&&f.components[u];if(!d)return vu(n.default,{Component:d,route:c});const h=f.props[u],S=h?h===!0?c.params:typeof h=="function"?h(c):h:null,I=ps(d,be({},S,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return vu(n.default,{Component:I,route:c})||I}}});function vu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const zE=ZE;function e0(e){const t=BE(e.routes,e),n=e.parseQuery||NE,s=e.stringifyQuery||cu,r=e.history,i=Zs(),o=Zs(),l=Zs(),a=so(Rn);let c=Rn;vs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Vo.bind(null,$=>""+$),f=Vo.bind(null,aE),d=Vo.bind(null,wr);function h($,X){let W,Z;return np($)?(W=t.getRecordMatcher($),Z=X):Z=$,t.addRoute(Z,W)}function S($){const X=t.getRecordMatcher($);X&&t.removeRoute(X)}function E(){return t.getRoutes().map($=>$.record)}function I($){return!!t.getRecordMatcher($)}function _($,X){if(X=be({},X||a.value),typeof $=="string"){const T=$o(n,$,X.path),P=t.resolve({path:T.path},X),U=r.createHref(T.fullPath);return be(T,P,{params:d(P.params),hash:wr(T.hash),redirectedFrom:void 0,href:U})}let W;if($.path!=null)W=be({},$,{path:$o(n,$.path,X.path).path});else{const T=be({},$.params);for(const P in T)T[P]==null&&delete T[P];W=be({},$,{params:f(T)}),X.params=f(X.params)}const Z=t.resolve(W,X),ie=$.hash||"";Z.params=u(d(Z.params));const Se=fE(s,be({},$,{hash:iE(ie),path:Z.path})),y=r.createHref(Se);return be({fullPath:Se,hash:ie,query:s===cu?AE($.query):$.query||{}},Z,{redirectedFrom:void 0,href:y})}function v($){return typeof $=="string"?$o(n,$,a.value.path):be({},$)}function m($,X){if(c!==$)return Us(Re.NAVIGATION_CANCELLED,{from:X,to:$})}function g($){return O($)}function C($){return g(be(v($),{replace:!0}))}function w($,X){const W=$.matched[$.matched.length-1];if(W&&W.redirect){const{redirect:Z}=W;let ie=typeof Z=="function"?Z($,X):Z;return typeof ie=="string"&&(ie=ie.includes("?")||ie.includes("#")?ie=v(ie):{path:ie},ie.params={}),be({query:$.query,hash:$.hash,params:ie.path!=null?{}:$.params},ie)}}function O($,X){const W=c=_($),Z=a.value,ie=$.state,Se=$.force,y=$.replace===!0,T=w(W,Z);if(T)return O(be(v(T),{state:typeof T=="object"?be({},ie,T.state):ie,force:Se,replace:y}),X||W);const P=W;P.redirectedFrom=X;let U;return!Se&&dE(s,Z,W)&&(U=Us(Re.NAVIGATION_DUPLICATED,{to:P,from:Z}),He(Z,Z,!0,!1)),(U?Promise.resolve(U):x(P,Z)).catch(F=>cn(F)?cn(F,Re.NAVIGATION_GUARD_REDIRECT)?F:Ue(F):Y(F,P,Z)).then(F=>{if(F){if(cn(F,Re.NAVIGATION_GUARD_REDIRECT))return O(be({replace:y},v(F.to),{state:typeof F.to=="object"?be({},ie,F.to.state):ie,force:Se}),X||P)}else F=R(P,Z,!0,y,ie);return H(P,Z,F),F})}function D($,X){const W=m($,X);return W?Promise.reject(W):Promise.resolve()}function k($){const X=Gt.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext($):$()}function x($,X){let W;const[Z,ie,Se]=OE($,X);W=Ho(Z.reverse(),"beforeRouteLeave",$,X);for(const T of Z)T.leaveGuards.forEach(P=>{W.push(Fn(P,$,X))});const y=D.bind(null,$,X);return W.push(y),nt(W).then(()=>{W=[];for(const T of i.list())W.push(Fn(T,$,X));return W.push(y),nt(W)}).then(()=>{W=Ho(ie,"beforeRouteUpdate",$,X);for(const T of ie)T.updateGuards.forEach(P=>{W.push(Fn(P,$,X))});return W.push(y),nt(W)}).then(()=>{W=[];for(const T of Se)if(T.beforeEnter)if(Wt(T.beforeEnter))for(const P of T.beforeEnter)W.push(Fn(P,$,X));else W.push(Fn(T.beforeEnter,$,X));return W.push(y),nt(W)}).then(()=>($.matched.forEach(T=>T.enterCallbacks={}),W=Ho(Se,"beforeRouteEnter",$,X,k),W.push(y),nt(W))).then(()=>{W=[];for(const T of o.list())W.push(Fn(T,$,X));return W.push(y),nt(W)}).catch(T=>cn(T,Re.NAVIGATION_CANCELLED)?T:Promise.reject(T))}function H($,X,W){l.list().forEach(Z=>k(()=>Z($,X,W)))}function R($,X,W,Z,ie){const Se=m($,X);if(Se)return Se;const y=X===Rn,T=vs?history.state:{};W&&(Z||y?r.replace($.fullPath,be({scroll:y&&T&&T.scroll},ie)):r.push($.fullPath,ie)),a.value=$,He($,X,W,y),Ue()}let B;function Q(){B||(B=r.listen(($,X,W)=>{if(!qt.listening)return;const Z=_($),ie=w(Z,qt.currentRoute.value);if(ie){O(be(ie,{replace:!0,force:!0}),Z).catch(dr);return}c=Z;const Se=a.value;vs&&vE(au(Se.fullPath,W.delta),bo()),x(Z,Se).catch(y=>cn(y,Re.NAVIGATION_ABORTED|Re.NAVIGATION_CANCELLED)?y:cn(y,Re.NAVIGATION_GUARD_REDIRECT)?(O(be(v(y.to),{force:!0}),Z).then(T=>{cn(T,Re.NAVIGATION_ABORTED|Re.NAVIGATION_DUPLICATED)&&!W.delta&&W.type===El.pop&&r.go(-1,!1)}).catch(dr),Promise.reject()):(W.delta&&r.go(-W.delta,!1),Y(y,Z,Se))).then(y=>{y=y||R(Z,Se,!1),y&&(W.delta&&!cn(y,Re.NAVIGATION_CANCELLED)?r.go(-W.delta,!1):W.type===El.pop&&cn(y,Re.NAVIGATION_ABORTED|Re.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),H(Z,Se,y)}).catch(dr)}))}let z=Zs(),K=Zs(),te;function Y($,X,W){Ue($);const Z=K.list();return Z.length?Z.forEach(ie=>ie($,X,W)):console.error($),Promise.reject($)}function ue(){return te&&a.value!==Rn?Promise.resolve():new Promise(($,X)=>{z.add([$,X])})}function Ue($){return te||(te=!$,Q(),z.list().forEach(([X,W])=>$?W($):X()),z.reset()),$}function He($,X,W,Z){const{scrollBehavior:ie}=e;if(!vs||!ie)return Promise.resolve();const Se=!W&&EE(au($.fullPath,0))||(Z||!W)&&history.state&&history.state.scroll||null;return Dr().then(()=>ie($,X,Se)).then(y=>y&&bE(y)).catch(y=>Y(y,$,X))}const qe=$=>r.go($);let Kt;const Gt=new Set,qt={currentRoute:a,listening:!0,addRoute:h,removeRoute:S,clearRoutes:t.clearRoutes,hasRoute:I,getRoutes:E,resolve:_,options:e,push:g,replace:C,go:qe,back:()=>qe(-1),forward:()=>qe(1),beforeEach:i.add,beforeResolve:o.add,afterEach:l.add,onError:K.add,isReady:ue,install($){$.component("RouterLink",XE),$.component("RouterView",zE),$.config.globalProperties.$router=qt,Object.defineProperty($.config.globalProperties,"$route",{enumerable:!0,get:()=>vn(a)}),vs&&!Kt&&a.value===Rn&&(Kt=!0,g(r.location).catch(Z=>{}));const X={};for(const Z in Rn)Object.defineProperty(X,Z,{get:()=>a.value[Z],enumerable:!0});$.provide(La,qt),$.provide(rp,jl(X)),$.provide(Tl,a);const W=$.unmount;Gt.add($),$.unmount=function(){Gt.delete($),Gt.size<1&&(c=Rn,B&&B(),B=null,a.value=Rn,Kt=!1,te=!1),W()}}};function nt($){return $.reduce((X,W)=>X.then(()=>k(W)),Promise.resolve())}return qt}const Wr=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},t0={},n0={id:"Home",class:"fbox-center f-grow1"};function s0(e,t){return at(),Vt("div",n0,[...t[0]||(t[0]=[Oe("div",{id:"box"},[Oe("div",{class:"font-script-en"},"Azalea's"),Oe("div",{class:"font-script-en bold"},"Road Less Traveled")],-1)])])}const r0=Wr(t0,[["render",s0],["__scopeId","data-v-b7716c04"]]),i0=[{path:"/",name:"Home",meta:{title:"Home",nav:!0},component:r0},{path:"/about",name:"About",meta:{title:"关于",nav:!0},component:()=>an(()=>import("./About-CfVt_oPj.js"),__vite__mapDeps([0,1,2,3,4]))},{path:"/life",name:"Life",meta:{title:"生活",nav:!0},component:()=>an(()=>import("./Life-BVlDglso.js").then(e=>e.L),__vite__mapDeps([5,6]))},{path:"/blog",name:"Blog",meta:{title:"记事本",nav:!0},component:()=>an(()=>import("./Blog-BX1cKO1m.js"),__vite__mapDeps([7,1,2,8])),props:e=>e.query},{path:"/photo",name:"Photo",meta:{title:"相册",nav:!0},component:()=>an(()=>import("./Photo-C3B0RSVd.js"),__vite__mapDeps([9,10]))},{path:"/photo/:id",name:"Photo ID",meta:{title:"相册",navBookmark:"Photo"},component:()=>an(()=>import("./Photo-C3B0RSVd.js"),__vite__mapDeps([9,10]))},{path:"/others",name:"Others",meta:{title:"更多",nav:!0},component:()=>an(()=>import("./Others-Bz7iziut.js"),__vite__mapDeps([11,12]))},{path:"/kitchen-menu",name:"Menu",meta:{title:"菜单",navBookmark:"Others"},component:()=>an(()=>import("./Menu-BFbdEqRN.js"),__vite__mapDeps([13,14]))},{path:"/friends",name:"Friends",meta:{title:"朋友们",navBookmark:"Others"},component:()=>an(()=>import("./Friends-BlIjppTA.js"),__vite__mapDeps([15,3,16]))},{path:"/projects",name:"Projects",meta:{title:"我做的",navBookmark:"Others"},component:()=>an(()=>import("./Projects-BWtvtQ3K.js"),[])}],Ki=e0({history:PE(),routes:i0});function Eu(e){const t={...Ki.currentRoute.value.query??{}};console.log(e);for(const n of Object.keys(e))e[n]==null?delete t[n]:t[n]=e[n];return Ki.push({query:t})}var o0=Object.getOwnPropertyDescriptor,l0=(e,t,n,s)=>{for(var r=s>1?void 0:s?o0(t,n):t,i=e.length-1,o;i>=0;i--)(o=e[i])&&(r=o(r)||r);return r};let Cl=class extends yo{currentRoute="";currentLink=null;bookmarkCss="";bookmarkUpdateIntervalId;lastTop=0;menuOpen=!1;showMenu(){this.menuOpen=!this.menuOpen,this.menuOpen&&setTimeout(()=>this.menuOpen=!1,2e3)}updateBookmark(t){this.$nextTick(()=>{t.name=="Blog"&&Object.keys(t.query).length!=0||(document.title=t.meta.title?`Aza - ${t.meta.title}`:"Aza - Home")}),console.log("AfterEach called",t),this.currentRoute=(t.meta?.navBookmark??t.name).toLowerCase(),this.calculateBookmarkCss(),this.menuOpen=!1}mounted(){console.log("Mounted called",this.$route),Ki.afterEach(this.updateBookmark),this.$route.name&&(this.currentRoute=(this.$route.meta?.navBookmark??this.$route.name).toLowerCase()),window.addEventListener("resize",this.calculateBookmarkCss,!0),this.bookmarkUpdateIntervalId=window.setInterval(this.calculateBookmarkCss,1e3)}unmounted(){window.removeEventListener("resize",this.calculateBookmarkCss),window.clearInterval(this.bookmarkUpdateIntervalId)}calculateBookmarkCss(){if(this.currentRoute in this.$refs)this.currentLink=this.$refs[this.currentRoute].$el;else return;let t=this.currentLink.getBoundingClientRect();if(t.top==this.lastTop)return;this.lastTop=t.top;let n=t.bottom-t.top,s=Math.round(n/2)+8;this.bookmarkCss=`top: ${t.top-8}px;border-width: ${s}px 20px ${s}px 50px;`}};Cl=l0([ka],Cl);const a0=Ra(Cl),c0="/meru_256px.png",u0={id:"items",class:"fbox-v"};function f0(e,t,n,s,r,i){const o=Ai("router-link"),l=Ai("router-view");return at(),Vt(ke,null,[e.currentRoute!=="colorpicker"?(at(),Vt("div",{key:0,id:"nav",class:ds(["fbox-v",e.currentRoute+" "+(e.menuOpen?"open":"")])},[Oe("div",{id:"menu",onClick:t[0]||(t[0]=(...a)=>e.showMenu&&e.showMenu(...a))},[...t[1]||(t[1]=[Oe("i",{class:"fas fa-bars"},null,-1)])]),Oe("div",u0,[pe(o,{class:"router-link",ref:"others",to:"/others"},{default:en(()=>[gn(Ft(e.$t("nav.others")),1)]),_:1},512),t[3]||(t[3]=Oe("div",{class:"dot"},"·",-1)),pe(o,{class:"router-link",ref:"photo",to:"/photo"},{default:en(()=>[gn(Ft(e.$t("nav.photo")),1)]),_:1},512),t[4]||(t[4]=Oe("div",{class:"dot"},"·",-1)),pe(o,{class:"router-link",ref:"blog",to:"/blog"},{default:en(()=>[gn(Ft(e.$t("nav.blog")),1)]),_:1},512),t[5]||(t[5]=Oe("div",{class:"dot"},"·",-1)),pe(o,{class:"router-link",ref:"life",to:"/life"},{default:en(()=>[gn(Ft(e.$t("nav.life")),1)]),_:1},512),t[6]||(t[6]=Oe("div",{class:"dot"},"·",-1)),pe(o,{class:"router-link",ref:"about",to:"/about"},{default:en(()=>[gn(Ft(e.$t("nav.about")),1)]),_:1},512),t[7]||(t[7]=Oe("div",{class:"dot"},"·",-1)),pe(o,{class:"router-link",ref:"home",to:"/"},{default:en(()=>[...t[2]||(t[2]=[Oe("svg",{focusable:"false","data-prefix":"fal","data-icon":"house-night",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",class:"svg-inline--fa fa-house-night fa-w-20"},[Oe("path",{fill:"currentColor",d:"M112,224a111.5,111.5,0,0,0,87-41.45,20.51,20.51,0,0,0-19.75-33.08A59.2,59.2,0,0,1,138.84,39.85a20.3,20.3,0,0,0,10.07-21.27,20.26,20.26,0,0,0-16.47-16.7A136,136,0,0,0,112,0a112,112,0,0,0,0,224ZM97.78,33.27a91.21,91.21,0,0,0,54.47,147.9A80,80,0,1,1,97.78,33.27Zm97.15,35.51,39.72,16.56,16.56,39.72a5.33,5.33,0,0,0,9.55,0l16.56-39.72L317,68.78a5.33,5.33,0,0,0,0-9.54L277.32,42.68,260.76,3a5.33,5.33,0,0,0-9.55,0L234.65,42.68,194.93,59.24a5.34,5.34,0,0,0,0,9.54ZM157,379.24l-39.72-16.57L100.76,323a5.34,5.34,0,0,0-9.55,0L74.65,362.67,34.93,379.24a5.34,5.34,0,0,0,0,9.54l39.72,16.56,16.56,39.72a5.33,5.33,0,0,0,9.55,0l16.56-39.72L157,388.78a5.33,5.33,0,0,0,0-9.54Zm179-101.9v85.33A21.39,21.39,0,0,0,357.36,384h85.31A21.39,21.39,0,0,0,464,362.67V277.34A21.4,21.4,0,0,0,442.67,256H357.36A21.4,21.4,0,0,0,336,277.34ZM368,288H432v64H368Zm266.49,8L576,244.75V144a16,16,0,0,0-32,0v72.75L410.53,100a16,16,0,0,0-21.07,0l-224,196a16,16,0,0,0,21.07,24.09L224,287.28V464a48.05,48.05,0,0,0,48,48H528a48.06,48.06,0,0,0,48-48V287.28l37.46,32.78A16,16,0,0,0,634.53,296ZM544,464a16,16,0,0,1-16,16H272a16,16,0,0,1-16-16V264a15.94,15.94,0,0,0-.81-4L400,133.27l144,126Z",class:""})],-1)])]),_:1},512)]),Oe("div",{id:"nav-bookmark",ref:"bookmark",style:Ws(e.bookmarkCss)},null,4),t[8]||(t[8]=Oe("div",{id:"nav-background"},null,-1)),t[9]||(t[9]=Oe("img",{id:"meru",src:c0,alt:""},null,-1))],2)):Ad("",!0),pe(l)],64)}const d0=Wr(a0,[["render",f0]]);/*! + */let wE=()=>location.protocol+"//"+location.host;function ip(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let o=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(o);return l[0]!=="/"&&(l="/"+l),ou(l,"")}return ou(n,e)+s+r}function kE(e,t,n,s){let r=[],i=[],o=null;const l=({state:d})=>{const h=ip(e,location),S=n.value,E=t.value;let I=0;if(d){if(n.value=h,t.value=d,o&&o===S){o=null;return}I=E?d.position-E.position:0}else s(h);r.forEach(_=>{_(n.value,S,{delta:I,type:El.pop,direction:I?I>0?Uo.forward:Uo.back:Uo.unknown})})};function a(){o=n.value}function c(d){r.push(d);const h=()=>{const S=r.indexOf(d);S>-1&&r.splice(S,1)};return i.push(h),h}function u(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(be({},d.state,{scroll:bo()}),"")}}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:a,listen:c,destroy:f}}function fu(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?bo():null}}function RE(e){const{history:t,location:n}=window,s={value:ip(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:wE()+e+a;try{t[u?"replaceState":"pushState"](c,"",d),r.value=c}catch(h){console.error(h),n[u?"replace":"assign"](d)}}function o(a,c){i(a,be({},t.state,fu(r.value.back,a,r.value.forward,!0),c,{position:r.value.position}),!0),s.value=a}function l(a,c){const u=be({},r.value,t.state,{forward:a,scroll:bo()});i(u.current,u,!0),i(a,be({},fu(s.value,a,null),{position:u.position+1},c),!1),s.value=a}return{location:s,state:r,push:l,replace:o}}function PE(e){e=mE(e);const t=RE(e),n=kE(e,t.state,t.location,t.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=be({location:"",base:e,go:s,createHref:_E.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let Zn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Be=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Be||{});const LE={type:Zn.Static,value:""},ME=/[a-zA-Z0-9_]/;function xE(e){if(!e)return[[]];if(e==="/")return[[LE]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=Be.Static,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let l=0,a,c="",u="";function f(){c&&(n===Be.Static?i.push({type:Zn.Static,value:c}):n===Be.Param||n===Be.ParamRegExp||n===Be.ParamRegExpEnd?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Zn.Param,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;lt.length?t.length===1&&t[0]===dt.Static+dt.Segment?1:-1:0}function op(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const UE={strict:!1,end:!0,sensitive:!1};function HE(e,t,n){const s=VE(xE(e.path),n),r=be(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function BE(e,t){const n=[],s=new Map;t=iu(UE,t);function r(f){return s.get(f)}function i(f,d,h){const S=!h,E=mu(f);E.aliasOf=h&&h.record;const I=iu(t,f),_=[E];if("alias"in f){const g=typeof f.alias=="string"?[f.alias]:f.alias;for(const C of g)_.push(mu(be({},E,{components:h?h.record.components:E.components,path:C,aliasOf:h?h.record:E})))}let v,m;for(const g of _){const{path:C}=g;if(d&&C[0]!=="/"){const w=d.record.path,O=w[w.length-1]==="/"?"":"/";g.path=d.record.path+(C&&O+C)}if(v=HE(g,d,I),h?h.alias.push(v):(m=m||v,m!==v&&m.alias.push(v),S&&f.name&&!gu(v)&&o(f.name)),lp(v)&&a(v),E.children){const w=E.children;for(let O=0;O{o(m)}:dr}function o(f){if(np(f)){const d=s.get(f);d&&(s.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&s.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function l(){return n}function a(f){const d=KE(f,n);n.splice(d,0,f),f.record.name&&!gu(f)&&s.set(f.record.name,f)}function c(f,d){let h,S={},E,I;if("name"in f&&f.name){if(h=s.get(f.name),!h)throw Us(Re.MATCHER_NOT_FOUND,{location:f});I=h.record.name,S=be(pu(d.params,h.keys.filter(m=>!m.optional).concat(h.parent?h.parent.keys.filter(m=>m.optional):[]).map(m=>m.name)),f.params&&pu(f.params,h.keys.map(m=>m.name))),E=h.stringify(S)}else if(f.path!=null)E=f.path,h=n.find(m=>m.re.test(E)),h&&(S=h.parse(E),I=h.record.name);else{if(h=d.name?s.get(d.name):n.find(m=>m.re.test(d.path)),!h)throw Us(Re.MATCHER_NOT_FOUND,{location:f,currentLocation:d});I=h.record.name,S=be({},d.params,f.params),E=h.stringify(S)}const _=[];let v=h;for(;v;)_.unshift(v.record),v=v.parent;return{name:I,path:E,params:S,matched:_,meta:WE(_)}}e.forEach(f=>i(f));function u(){n.length=0,s.clear()}return{addRoute:i,resolve:c,removeRoute:o,clearRoutes:u,getRoutes:l,getRecordMatcher:r}}function pu(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function mu(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:jE(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function jE(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function gu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function WE(e){return e.reduce((t,n)=>be(t,n.meta),{})}function KE(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;op(e,t[i])<0?s=i:n=i+1}const r=GE(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function GE(e){let t=e;for(;t=t.parent;)if(lp(t)&&op(e,t)===0)return t}function lp({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function _u(e){const t=Bt(La),n=Bt(rp),s=Xe(()=>{const a=vn(e.to);return t.resolve(a)}),r=Xe(()=>{const{matched:a}=s.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex($s.bind(null,u));if(d>-1)return d;const h=yu(a[c-2]);return c>1&&yu(u)===h&&f[f.length-1].path!==h?f.findIndex($s.bind(null,a[c-2])):d}),i=Xe(()=>r.value>-1&&QE(n.params,s.value.params)),o=Xe(()=>r.value>-1&&r.value===n.matched.length-1&&tp(n.params,s.value.params));function l(a={}){if(JE(a)){const c=t[vn(e.replace)?"replace":"push"](vn(e.to)).catch(dr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:s,href:Xe(()=>s.value.href),isActive:i,isExactActive:o,navigate:l}}function qE(e){return e.length===1?e[0]:e}const YE=rn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:_u,setup(e,{slots:t}){const n=xr(_u(e)),{options:s}=Bt(La),r=Xe(()=>({[bu(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[bu(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&qE(t.default(n));return e.custom?i:ps("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),XE=YE;function JE(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function QE(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Wt(r)||r.length!==s.length||s.some((i,o)=>i!==r[o]))return!1}return!0}function yu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const bu=(e,t,n)=>e??t??n,ZE=rn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Bt(Tl),r=Xe(()=>e.route||s.value),i=Bt(uu,0),o=Xe(()=>{let c=vn(i);const{matched:u}=r.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=Xe(()=>r.value.matched[o.value]);lr(uu,Xe(()=>o.value+1)),lr(IE,l),lr(Tl,r);const a=ts();return tn(()=>[a.value,l.value,e.name],([c,u,f],[d,h,S])=>{u&&(u.instances[f]=c,h&&h!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!$s(u,h)||!d)&&(u.enterCallbacks[f]||[]).forEach(E=>E(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,f=l.value,d=f&&f.components[u];if(!d)return vu(n.default,{Component:d,route:c});const h=f.props[u],S=h?h===!0?c.params:typeof h=="function"?h(c):h:null,I=ps(d,be({},S,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return vu(n.default,{Component:I,route:c})||I}}});function vu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const zE=ZE;function e0(e){const t=BE(e.routes,e),n=e.parseQuery||NE,s=e.stringifyQuery||cu,r=e.history,i=Zs(),o=Zs(),l=Zs(),a=so(Rn);let c=Rn;vs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Vo.bind(null,$=>""+$),f=Vo.bind(null,aE),d=Vo.bind(null,wr);function h($,X){let W,Z;return np($)?(W=t.getRecordMatcher($),Z=X):Z=$,t.addRoute(Z,W)}function S($){const X=t.getRecordMatcher($);X&&t.removeRoute(X)}function E(){return t.getRoutes().map($=>$.record)}function I($){return!!t.getRecordMatcher($)}function _($,X){if(X=be({},X||a.value),typeof $=="string"){const T=$o(n,$,X.path),P=t.resolve({path:T.path},X),U=r.createHref(T.fullPath);return be(T,P,{params:d(P.params),hash:wr(T.hash),redirectedFrom:void 0,href:U})}let W;if($.path!=null)W=be({},$,{path:$o(n,$.path,X.path).path});else{const T=be({},$.params);for(const P in T)T[P]==null&&delete T[P];W=be({},$,{params:f(T)}),X.params=f(X.params)}const Z=t.resolve(W,X),ie=$.hash||"";Z.params=u(d(Z.params));const Se=fE(s,be({},$,{hash:iE(ie),path:Z.path})),y=r.createHref(Se);return be({fullPath:Se,hash:ie,query:s===cu?AE($.query):$.query||{}},Z,{redirectedFrom:void 0,href:y})}function v($){return typeof $=="string"?$o(n,$,a.value.path):be({},$)}function m($,X){if(c!==$)return Us(Re.NAVIGATION_CANCELLED,{from:X,to:$})}function g($){return O($)}function C($){return g(be(v($),{replace:!0}))}function w($,X){const W=$.matched[$.matched.length-1];if(W&&W.redirect){const{redirect:Z}=W;let ie=typeof Z=="function"?Z($,X):Z;return typeof ie=="string"&&(ie=ie.includes("?")||ie.includes("#")?ie=v(ie):{path:ie},ie.params={}),be({query:$.query,hash:$.hash,params:ie.path!=null?{}:$.params},ie)}}function O($,X){const W=c=_($),Z=a.value,ie=$.state,Se=$.force,y=$.replace===!0,T=w(W,Z);if(T)return O(be(v(T),{state:typeof T=="object"?be({},ie,T.state):ie,force:Se,replace:y}),X||W);const P=W;P.redirectedFrom=X;let U;return!Se&&dE(s,Z,W)&&(U=Us(Re.NAVIGATION_DUPLICATED,{to:P,from:Z}),He(Z,Z,!0,!1)),(U?Promise.resolve(U):x(P,Z)).catch(F=>cn(F)?cn(F,Re.NAVIGATION_GUARD_REDIRECT)?F:Ue(F):Y(F,P,Z)).then(F=>{if(F){if(cn(F,Re.NAVIGATION_GUARD_REDIRECT))return O(be({replace:y},v(F.to),{state:typeof F.to=="object"?be({},ie,F.to.state):ie,force:Se}),X||P)}else F=R(P,Z,!0,y,ie);return H(P,Z,F),F})}function D($,X){const W=m($,X);return W?Promise.reject(W):Promise.resolve()}function k($){const X=Gt.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext($):$()}function x($,X){let W;const[Z,ie,Se]=OE($,X);W=Ho(Z.reverse(),"beforeRouteLeave",$,X);for(const T of Z)T.leaveGuards.forEach(P=>{W.push(Fn(P,$,X))});const y=D.bind(null,$,X);return W.push(y),nt(W).then(()=>{W=[];for(const T of i.list())W.push(Fn(T,$,X));return W.push(y),nt(W)}).then(()=>{W=Ho(ie,"beforeRouteUpdate",$,X);for(const T of ie)T.updateGuards.forEach(P=>{W.push(Fn(P,$,X))});return W.push(y),nt(W)}).then(()=>{W=[];for(const T of Se)if(T.beforeEnter)if(Wt(T.beforeEnter))for(const P of T.beforeEnter)W.push(Fn(P,$,X));else W.push(Fn(T.beforeEnter,$,X));return W.push(y),nt(W)}).then(()=>($.matched.forEach(T=>T.enterCallbacks={}),W=Ho(Se,"beforeRouteEnter",$,X,k),W.push(y),nt(W))).then(()=>{W=[];for(const T of o.list())W.push(Fn(T,$,X));return W.push(y),nt(W)}).catch(T=>cn(T,Re.NAVIGATION_CANCELLED)?T:Promise.reject(T))}function H($,X,W){l.list().forEach(Z=>k(()=>Z($,X,W)))}function R($,X,W,Z,ie){const Se=m($,X);if(Se)return Se;const y=X===Rn,T=vs?history.state:{};W&&(Z||y?r.replace($.fullPath,be({scroll:y&&T&&T.scroll},ie)):r.push($.fullPath,ie)),a.value=$,He($,X,W,y),Ue()}let B;function Q(){B||(B=r.listen(($,X,W)=>{if(!qt.listening)return;const Z=_($),ie=w(Z,qt.currentRoute.value);if(ie){O(be(ie,{replace:!0,force:!0}),Z).catch(dr);return}c=Z;const Se=a.value;vs&&vE(au(Se.fullPath,W.delta),bo()),x(Z,Se).catch(y=>cn(y,Re.NAVIGATION_ABORTED|Re.NAVIGATION_CANCELLED)?y:cn(y,Re.NAVIGATION_GUARD_REDIRECT)?(O(be(v(y.to),{force:!0}),Z).then(T=>{cn(T,Re.NAVIGATION_ABORTED|Re.NAVIGATION_DUPLICATED)&&!W.delta&&W.type===El.pop&&r.go(-1,!1)}).catch(dr),Promise.reject()):(W.delta&&r.go(-W.delta,!1),Y(y,Z,Se))).then(y=>{y=y||R(Z,Se,!1),y&&(W.delta&&!cn(y,Re.NAVIGATION_CANCELLED)?r.go(-W.delta,!1):W.type===El.pop&&cn(y,Re.NAVIGATION_ABORTED|Re.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),H(Z,Se,y)}).catch(dr)}))}let z=Zs(),K=Zs(),te;function Y($,X,W){Ue($);const Z=K.list();return Z.length?Z.forEach(ie=>ie($,X,W)):console.error($),Promise.reject($)}function ue(){return te&&a.value!==Rn?Promise.resolve():new Promise(($,X)=>{z.add([$,X])})}function Ue($){return te||(te=!$,Q(),z.list().forEach(([X,W])=>$?W($):X()),z.reset()),$}function He($,X,W,Z){const{scrollBehavior:ie}=e;if(!vs||!ie)return Promise.resolve();const Se=!W&&EE(au($.fullPath,0))||(Z||!W)&&history.state&&history.state.scroll||null;return Dr().then(()=>ie($,X,Se)).then(y=>y&&bE(y)).catch(y=>Y(y,$,X))}const qe=$=>r.go($);let Kt;const Gt=new Set,qt={currentRoute:a,listening:!0,addRoute:h,removeRoute:S,clearRoutes:t.clearRoutes,hasRoute:I,getRoutes:E,resolve:_,options:e,push:g,replace:C,go:qe,back:()=>qe(-1),forward:()=>qe(1),beforeEach:i.add,beforeResolve:o.add,afterEach:l.add,onError:K.add,isReady:ue,install($){$.component("RouterLink",XE),$.component("RouterView",zE),$.config.globalProperties.$router=qt,Object.defineProperty($.config.globalProperties,"$route",{enumerable:!0,get:()=>vn(a)}),vs&&!Kt&&a.value===Rn&&(Kt=!0,g(r.location).catch(Z=>{}));const X={};for(const Z in Rn)Object.defineProperty(X,Z,{get:()=>a.value[Z],enumerable:!0});$.provide(La,qt),$.provide(rp,jl(X)),$.provide(Tl,a);const W=$.unmount;Gt.add($),$.unmount=function(){Gt.delete($),Gt.size<1&&(c=Rn,B&&B(),B=null,a.value=Rn,Kt=!1,te=!1),W()}}};function nt($){return $.reduce((X,W)=>X.then(()=>k(W)),Promise.resolve())}return qt}const Wr=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},t0={},n0={id:"Home",class:"fbox-center f-grow1"};function s0(e,t){return at(),Vt("div",n0,[...t[0]||(t[0]=[Oe("div",{id:"box"},[Oe("div",{class:"font-script-en"},"Azalea's"),Oe("div",{class:"font-script-en bold"},"Road Less Traveled")],-1)])])}const r0=Wr(t0,[["render",s0],["__scopeId","data-v-b7716c04"]]),i0=[{path:"/",name:"Home",meta:{title:"Home",nav:!0},component:r0},{path:"/about",name:"About",meta:{title:"关于",nav:!0},component:()=>an(()=>import("./About-2uilXuKS.js"),__vite__mapDeps([0,1,2,3,4]))},{path:"/life",name:"Life",meta:{title:"生活",nav:!0},component:()=>an(()=>import("./Life-DgbMfal1.js").then(e=>e.L),__vite__mapDeps([5,6]))},{path:"/blog",name:"Blog",meta:{title:"记事本",nav:!0},component:()=>an(()=>import("./Blog-bVOlGgKw.js"),__vite__mapDeps([7,1,2,8])),props:e=>e.query},{path:"/photo",name:"Photo",meta:{title:"相册",nav:!0},component:()=>an(()=>import("./Photo-Ctr50G8y.js"),__vite__mapDeps([9,10]))},{path:"/photo/:id",name:"Photo ID",meta:{title:"相册",navBookmark:"Photo"},component:()=>an(()=>import("./Photo-Ctr50G8y.js"),__vite__mapDeps([9,10]))},{path:"/others",name:"Others",meta:{title:"更多",nav:!0},component:()=>an(()=>import("./Others-DXBcJtg0.js"),__vite__mapDeps([11,12]))},{path:"/kitchen-menu",name:"Menu",meta:{title:"菜单",navBookmark:"Others"},component:()=>an(()=>import("./Menu-U0gohnQH.js"),__vite__mapDeps([13,14]))},{path:"/friends",name:"Friends",meta:{title:"朋友们",navBookmark:"Others"},component:()=>an(()=>import("./Friends-COTbMEUJ.js"),__vite__mapDeps([15,3,16]))},{path:"/projects",name:"Projects",meta:{title:"我做的",navBookmark:"Others"},component:()=>an(()=>import("./Projects-DxScKbaw.js"),[])}],Ki=e0({history:PE(),routes:i0});function Eu(e){const t={...Ki.currentRoute.value.query??{}};console.log(e);for(const n of Object.keys(e))e[n]==null?delete t[n]:t[n]=e[n];return Ki.push({query:t})}var o0=Object.getOwnPropertyDescriptor,l0=(e,t,n,s)=>{for(var r=s>1?void 0:s?o0(t,n):t,i=e.length-1,o;i>=0;i--)(o=e[i])&&(r=o(r)||r);return r};let Cl=class extends yo{currentRoute="";currentLink=null;bookmarkCss="";bookmarkUpdateIntervalId;lastTop=0;menuOpen=!1;showMenu(){this.menuOpen=!this.menuOpen,this.menuOpen&&setTimeout(()=>this.menuOpen=!1,2e3)}updateBookmark(t){this.$nextTick(()=>{t.name=="Blog"&&Object.keys(t.query).length!=0||(document.title=t.meta.title?`Aza - ${t.meta.title}`:"Aza - Home")}),console.log("AfterEach called",t),this.currentRoute=(t.meta?.navBookmark??t.name).toLowerCase(),this.calculateBookmarkCss(),this.menuOpen=!1}mounted(){console.log("Mounted called",this.$route),Ki.afterEach(this.updateBookmark),this.$route.name&&(this.currentRoute=(this.$route.meta?.navBookmark??this.$route.name).toLowerCase()),window.addEventListener("resize",this.calculateBookmarkCss,!0),this.bookmarkUpdateIntervalId=window.setInterval(this.calculateBookmarkCss,1e3)}unmounted(){window.removeEventListener("resize",this.calculateBookmarkCss),window.clearInterval(this.bookmarkUpdateIntervalId)}calculateBookmarkCss(){if(this.currentRoute in this.$refs)this.currentLink=this.$refs[this.currentRoute].$el;else return;let t=this.currentLink.getBoundingClientRect();if(t.top==this.lastTop)return;this.lastTop=t.top;let n=t.bottom-t.top,s=Math.round(n/2)+8;this.bookmarkCss=`top: ${t.top-8}px;border-width: ${s}px 20px ${s}px 50px;`}};Cl=l0([ka],Cl);const a0=Ra(Cl),c0="/meru_256px.png",u0={id:"items",class:"fbox-v"};function f0(e,t,n,s,r,i){const o=Ai("router-link"),l=Ai("router-view");return at(),Vt(ke,null,[e.currentRoute!=="colorpicker"?(at(),Vt("div",{key:0,id:"nav",class:ds(["fbox-v",e.currentRoute+" "+(e.menuOpen?"open":"")])},[Oe("div",{id:"menu",onClick:t[0]||(t[0]=(...a)=>e.showMenu&&e.showMenu(...a))},[...t[1]||(t[1]=[Oe("i",{class:"fas fa-bars"},null,-1)])]),Oe("div",u0,[pe(o,{class:"router-link",ref:"others",to:"/others"},{default:en(()=>[gn(Ft(e.$t("nav.others")),1)]),_:1},512),t[3]||(t[3]=Oe("div",{class:"dot"},"·",-1)),pe(o,{class:"router-link",ref:"photo",to:"/photo"},{default:en(()=>[gn(Ft(e.$t("nav.photo")),1)]),_:1},512),t[4]||(t[4]=Oe("div",{class:"dot"},"·",-1)),pe(o,{class:"router-link",ref:"blog",to:"/blog"},{default:en(()=>[gn(Ft(e.$t("nav.blog")),1)]),_:1},512),t[5]||(t[5]=Oe("div",{class:"dot"},"·",-1)),pe(o,{class:"router-link",ref:"life",to:"/life"},{default:en(()=>[gn(Ft(e.$t("nav.life")),1)]),_:1},512),t[6]||(t[6]=Oe("div",{class:"dot"},"·",-1)),pe(o,{class:"router-link",ref:"about",to:"/about"},{default:en(()=>[gn(Ft(e.$t("nav.about")),1)]),_:1},512),t[7]||(t[7]=Oe("div",{class:"dot"},"·",-1)),pe(o,{class:"router-link",ref:"home",to:"/"},{default:en(()=>[...t[2]||(t[2]=[Oe("svg",{focusable:"false","data-prefix":"fal","data-icon":"house-night",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",class:"svg-inline--fa fa-house-night fa-w-20"},[Oe("path",{fill:"currentColor",d:"M112,224a111.5,111.5,0,0,0,87-41.45,20.51,20.51,0,0,0-19.75-33.08A59.2,59.2,0,0,1,138.84,39.85a20.3,20.3,0,0,0,10.07-21.27,20.26,20.26,0,0,0-16.47-16.7A136,136,0,0,0,112,0a112,112,0,0,0,0,224ZM97.78,33.27a91.21,91.21,0,0,0,54.47,147.9A80,80,0,1,1,97.78,33.27Zm97.15,35.51,39.72,16.56,16.56,39.72a5.33,5.33,0,0,0,9.55,0l16.56-39.72L317,68.78a5.33,5.33,0,0,0,0-9.54L277.32,42.68,260.76,3a5.33,5.33,0,0,0-9.55,0L234.65,42.68,194.93,59.24a5.34,5.34,0,0,0,0,9.54ZM157,379.24l-39.72-16.57L100.76,323a5.34,5.34,0,0,0-9.55,0L74.65,362.67,34.93,379.24a5.34,5.34,0,0,0,0,9.54l39.72,16.56,16.56,39.72a5.33,5.33,0,0,0,9.55,0l16.56-39.72L157,388.78a5.33,5.33,0,0,0,0-9.54Zm179-101.9v85.33A21.39,21.39,0,0,0,357.36,384h85.31A21.39,21.39,0,0,0,464,362.67V277.34A21.4,21.4,0,0,0,442.67,256H357.36A21.4,21.4,0,0,0,336,277.34ZM368,288H432v64H368Zm266.49,8L576,244.75V144a16,16,0,0,0-32,0v72.75L410.53,100a16,16,0,0,0-21.07,0l-224,196a16,16,0,0,0,21.07,24.09L224,287.28V464a48.05,48.05,0,0,0,48,48H528a48.06,48.06,0,0,0,48-48V287.28l37.46,32.78A16,16,0,0,0,634.53,296ZM544,464a16,16,0,0,1-16,16H272a16,16,0,0,1-16-16V264a15.94,15.94,0,0,0-.81-4L400,133.27l144,126Z",class:""})],-1)])]),_:1},512)]),Oe("div",{id:"nav-bookmark",ref:"bookmark",style:Ws(e.bookmarkCss)},null,4),t[8]||(t[8]=Oe("div",{id:"nav-background"},null,-1)),t[9]||(t[9]=Oe("img",{id:"meru",src:c0,alt:""},null,-1))],2)):Ad("",!0),pe(l)],64)}const d0=Wr(a0,[["render",f0]]);/*! * shared v11.1.12 * (c) 2025 kazuya kawaguchi * Released under the MIT License. diff --git a/assets/utils-Bxugc6wL.js b/assets/utils-9s8KIpJA.js similarity index 69% rename from assets/utils-Bxugc6wL.js rename to assets/utils-9s8KIpJA.js index faa9635..320185f 100644 --- a/assets/utils-Bxugc6wL.js +++ b/assets/utils-9s8KIpJA.js @@ -1 +1 @@ -import"./index-B2-0DWq1.js";function c(e){return e.charAt(0).toUpperCase()+e.slice(1)}function i(e){let t=e.length,n;for(;t!=0;)n=Math.floor(Math.random()*t),t--,[e[t],e[n]]=[e[n],e[t]];return e}export{c,i as s}; +import"./index-CSLMAwfP.js";function c(e){return e.charAt(0).toUpperCase()+e.slice(1)}function i(e){let t=e.length,n;for(;t!=0;)n=Math.floor(Math.random()*t),t--,[e[t],e[n]]=[e[n],e[t]];return e}export{c,i as s}; diff --git a/index.html b/index.html index 1cbfbdd..df94a16 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@ - +