1import{l as Ae,_ as st,m as $t}from"./useStrapiMeta.b3ac0bd2.js";import{e as Re,o as W,f as K,g as nt,h as ge,a as It,b as ee,p as xe,l as fe,E as Ot,x as jt,K as Dt,u as Rt,L as qt,d as Bt}from"./entry.422e26c6.js";function Cs(e){let{swiper:i,extendParams:t,on:s,emit:a,params:n}=e;i.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let l,o,c=n&&n.autoplay?n.autoplay.delay:3e3,u=n&&n.autoplay?n.autoplay.delay:3e3,h,f=new Date().getTime,d,v,C,k,P,w;function g(M){!i||i.destroyed||!i.wrapperEl||M.target===i.wrapperEl&&(i.wrapperEl.removeEventListener("transitionend",g),B())}const T=()=>{if(i.destroyed||!i.autoplay.running)return;i.autoplay.paused?d=!0:d&&(u=h,d=!1);const M=i.autoplay.paused?h:f+u-new Date().getTime();i.autoplay.timeLeft=M,a("autoplayTimeLeft",M,M/c),o=requestAnimationFrame(()=>{T()})},_=()=>{let M;return i.virtual&&i.params.virtual.enabled?M=i.slides.filter(q=>q.classList.contains("swiper-slide-active"))[0]:M=i.slides[i.activeIndex],M?parseInt(M.getAttribute("data-swiper-autoplay"),10):void 0},N=M=>{if(i.destroyed||!i.autoplay.running)return;cancelAnimationFrame(o),T();let z=typeof M>"u"?i.params.autoplay.delay:M;c=i.params.autoplay.delay,u=i.params.autoplay.delay;const q=_();!Number.isNaN(q)&&q>0&&typeof M>"u"&&(z=q,c=q,u=q),h=z;const ne=i.params.speed,Ze=()=>{!i||i.destroyed||(i.params.autoplay.reverseDirection?!i.isBeginning||i.params.loop||i.params.rewind?(i.slidePrev(ne,!0,!0),a("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(i.slides.length-1,ne,!0,!0),a("autoplay")):!i.isEnd||i.params.loop||i.params.rewind?(i.slideNext(ne,!0,!0),a("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(0,ne,!0,!0),a("autoplay")),i.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{N()})))};return z>0?(clearTimeout(l),l=setTimeout(()=>{Ze()},z)):requestAnimationFrame(()=>{Ze()}),z},R=()=>{i.autoplay.running=!0,N(),a("autoplayStart")},D=()=>{i.autoplay.running=!1,clearTimeout(l),cancelAnimationFrame(o),a("autoplayStop")},Q=(M,z)=>{if(i.destroyed||!i.autoplay.running)return;clearTimeout(l),M||(w=!0);const q=()=>{a("autoplayPause"),i.params.autoplay.waitForTransition?i.wrapperEl.addEventListener("transitionend",g):B()};if(i.autoplay.paused=!0,z){P&&(h=i.params.autoplay.delay),P=!1,q();return}h=(h||i.params.autoplay.delay)-(new Date().getTime()-f),!(i.isEnd&&h<0&&!i.params.loop)&&(h<0&&(h=0),q())},B=()=>{i.isEnd&&h<0&&!i.params.loop||i.destroyed||!i.autoplay.running||(f=new Date().getTime(),w?(w=!1,N(h)):N(),i.autoplay.paused=!1,a("autoplayResume"))},me=()=>{if(i.destroyed||!i.autoplay.running)return;const M=Ae();M.visibilityState==="hidden"&&(w=!0,Q(!0)),M.visibilityState==="visible"&&B()},We=M=>{M.pointerType==="mouse"&&(w=!0,!(i.animating||i.autoplay.paused)&&Q(!0))},ze=M=>{M.pointerType==="mouse"&&i.autoplay.paused&&B()},_t=()=>{i.params.autoplay.pauseOnMouseEnter&&(i.el.addEventListener("pointerenter",We),i.el.addEventListener("pointerleave",ze))},xt=()=>{i.el.removeEventListener("pointerenter",We),i.el.removeEventListener("pointerleave",ze)},Ft=()=>{Ae().addEventListener("visibilitychange",me)},Nt=()=>{Ae().removeEventListener("visibilitychange",me)};s("init",()=>{i.params.autoplay.enabled&&(_t(),Ft(),f=new Date().getTime(),R())}),s("destroy",()=>{xt(),Nt(),i.autoplay.running&&D()}),s("beforeTransitionStart",(M,z,q)=>{i.destroyed||!i.autoplay.running||(q||!i.params.autoplay.disableOnInteraction?Q(!0,!0):D())}),s("sliderFirstMove",()=>{if(!(i.destroyed||!i.autoplay.running)){if(i.params.autoplay.disableOnInteraction){D();return}v=!0,C=!1,w=!1,k=setTimeout(()=>{w=!0,C=!0,Q(!0)},200)}}),s("touchEnd",()=>{if(!(i.destroyed||!i.autoplay.running||!v)){if(clearTimeout(k),clearTimeout(l),i.params.autoplay.disableOnInteraction){C=!1,v=!1;return}C&&i.params.cssMode&&B(),C=!1,v=!1}}),s("slideChange",()=>{i.destroyed||!i.autoplay.running||(P=!0)}),Object.assign(i.autoplay,{start:R,stop:D,pause:Q,resume:B})}const Ht={},Vt={viewBox:"0 0 184 183",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"group rounded-full bg-black/20"},Ut=nt('<path d="M183.266 91.875C183.266 141.854 142.526 182.375 92.2656 182.375C42.0051 182.375 1.26562 141.854 1.26562 91.875C1.26562 41.8958 42.0051 1.375 92.2656 1.375C142.526 1.375 183.266 41.8958 183.266 91.875Z" stroke="#FFFBF3"></path><path class="origin-center duration-300 group-hover:scale-125" d="M105.157 89.279C106.495 90.0477 106.495 91.9791 105.157 92.7478L87.3061 102.997C85.9728 103.763 84.3102 102.801 84.3102 101.263L84.3102 80.7638C84.3102 79.2263 85.9728 78.2638 87.3061 79.0294L105.157 89.279Z" fill="#FFFBF3"></path><g class="animate-spin-slow origin-center"><path d="M26.4785 84.8016L15.1439 82.743L15.9847 78.1636C16.005 78.0534 16.0353 77.918 16.0756 77.7573C16.1107 77.5956 16.1549 77.4437 16.2081 77.3016C16.4234 76.6903 16.7348 76.2048 17.1425 75.8452C17.5511 75.4803 18.0266 75.2387 18.5688 75.1204C19.1111 75.002 19.6866 74.9982 20.2953 75.1087C20.9093 75.2202 21.4489 75.4266 21.9141 75.7279C22.3793 76.0293 22.7383 76.4224 22.9908 76.9073C23.2444 77.387 23.3632 77.9507 23.3473 78.5982C23.3413 78.7489 23.3282 78.9092 23.3078 79.0789C23.2885 79.2434 23.2692 79.3782 23.2499 79.4831L22.711 82.418L26.7804 83.1571L26.4785 84.8016ZM21.1525 82.135L21.6798 79.263C21.6991 79.1581 21.715 79.0417 21.7277 78.9139C21.7413 78.7808 21.7455 78.6542 21.7405 78.5341C21.7234 78.1841 21.6287 77.8877 21.4564 77.645C21.2788 77.4013 21.0591 77.2097 20.7974 77.07C20.5356 76.9303 20.2657 76.8352 19.9876 76.7847C19.7095 76.7342 19.4258 76.7287 19.1366 76.7683C18.8421 76.807 18.5711 76.9096 18.3236 77.076C18.0709 77.2415 17.8744 77.485 17.734 77.8064C1
17.6813 77.9161 17.6377 78.0356 17.6031 78.1648C17.5695 78.2888 17.5431 78.4032 17.5238 78.5082L16.9965 81.3801L21.1525 82.135Z" fill="#FFFBF3"></path><path d="M29.7652 71.0628L19.0557 66.8182L19.6776 65.2662L28.922 68.9301L30.8621 64.0883L32.3272 64.669L29.7652 71.0628Z" fill="#FFFBF3"></path><path d="M34.2922 60.8018L26.6795 51.4027L27.9998 49.3889L39.7182 52.5259L38.7663 53.9777L28.056 51.1416L28.2929 50.7804L35.2441 59.35L34.2922 60.8018ZM33.1767 57.7614L31.8611 56.9082L35.1596 51.8771L36.4752 52.7303L33.1767 57.7614Z" fill="#FFFBF3"></path><path d="M44.9301 46.8893L41.5471 43.5407L33.9868 41.539L35.3676 40.1592L40.7824 41.5906L39.3176 36.2122L40.6984 34.8324L42.7468 42.3419L46.1298 45.6905L44.9301 46.8893Z" fill="#FFFBF3"></path><path d="M61.2828 34.6301L53.4135 25.5589L55.0073 24.8313L60.863 31.735L59.421 22.8255L61.0187 22.0874L66.8744 28.9911L65.429 20.0742L67.03 19.3434L68.8079 31.1952L67.2941 31.8862L61.435 25.0895L62.7965 33.9392L61.2828 34.6301Z" fill="#FFFBF3"></path><path d="M76.532 28.9749L73.9476 17.7485L75.5778 17.3773L78.1623 28.6036L76.532 28.9749Z" fill="#FFFBF3"></path><path d="M87.7442 27.2496L87.1489 17.3234L83.3236 17.5503L83.2293 15.9772L92.5489 15.4243L92.6432 16.9975L88.818 17.2244L89.4133 27.1506L87.7442 27.2496Z" fill="#FFFBF3"></path><path d="M97.9613 27.1982L99.7179 15.8129L101.371 16.0651L100.613 20.975L106.307 21.844L107.065 16.9341L108.726 17.1875L106.969 28.5728L105.308 28.3194L106.067 23.4016L100.373 22.5326L99.6141 27.4504L97.9613 27.1982Z" fill="#FFFBF3"></path><path d="M123.478 35.1467C122.748 34.7594 122.155 34.285 121.699 33.7236C121.251 33.1599 120.961 32.5442 120.829 31.8765C120.704 31.2066 120.758 30.5196 120.99 29.8157L122.655 30.4001C122.478 31.103 122.544 31.7596 122.852 32.3698C123.163 32.9753 123.648 33.4529 124.308 33.8027C124.717 34.0201 125.128 34.1566 125.54 34.2121C125.955 34.2628 126.33 34.2234 126.666 34.0936C127.009 33.9616 127.271 33.7264 127.453 33.388C127.551 33.2047 127.605 33.025 127.615 32.849C127.629 32.6755 127.607 32.5071 127.55 32.3437C127.499 32.1781 127.414 32.0153 127.294 31.8551C127.182 31.6927 127.046 31.5334 126.888 31.377L124.692 29.2255C124.478 29.0153 124.27 28.7816 124.07 28.5241C123.871 28.262 123.713 27.9758 123.595 27.6657C123.484 27.3533 123.437 27.0176 123.454 26.6584C123.474 26.2945 123.594 25.9057 123.816 25.4921C124.151 24.867 124.595 24.4231 125.147 24.1606C125.707 23.8959 126.321 23.7992 126.991 23.8707C127.663 23.9374 128.341 24.1519 129.024 24.5142C129.707 24.8884 130.257 25.3367 130.672 25.8591C131.093 26.3839 131.364 26.9622 131.485 27.594C131.613 28.2235 131.578 28.8871 131.38 29.5847L129.653 29.0131C129.787 28.5949 129.811 28.1882 129.726 27.7932C129.644 27.3934 129.475 27.032 129.218 26.7088C128.964 26.381 128.643 26.1111 128.255 25.899C127.883 25.6897 127.506 25.5624 127.125 25.5172C126.748 25.4745 126.407 25.5137 126.1 25.6346C125.798 25.7581 125.57 25.9632 125.416 26.2499C125.265 26.5319 125.225 26.8036 125.297 27.065C125.368 27.3264 125.497 27.5725 125.681 27.8033C125.874 28.032 126.072 28.2429 126.277 28.4361L127.874 29.9619C128.074 30.1526 128.292 30.3831 128.529 30.6534C128.772 30.9214 128.98 31.2278 129.152 31.5726C129.329 31.92 129.421 32.3069 129.429 32.7334C129.438 33.1551 129.311 33.6128 129.046 34.1063C128.772 34.6187 128.426 35.0149 128.01 35.2951C127.596 35.5706 127.137 35.7438 126.633 35.8146C126.136 35.8832 125.617 35.8584 125.075 35.7401C124.533 35.6219 124.001 35.4241 123.478 35.1467Z" fill="#FFFBF3"></path><path d="M135.451 43.3495C134.574 42.6024 133.99 41.7761 133.7 40.8705C133.414 39.9609 133.4 39.0246 133.66 38.0615C133.923 37.1019 134.443 36.1715 135.219 35.2703C135.995 34.3692 136.84 33.7155 137.753 33.3093C138.67 32.9065 139.601 32.778 140.545 32.9239C141.493 33.0657 142.405 33.5102 143.282 34.2573C144.155 35.0009 144.734 35.8275 145.021 36.7371C145.315 37.6461 145.33 38.5805 145.067 39.5401C144.803 40.4997 144.283 41.4301 143.507 42.3312C142.731 43.2324 141.886 43.8861 140.973 44.2923C140.06 44.6985 139.128 44.829 138.176 44.6837C137.232 44.5379 136.323 44.0931 135.451 43.3495ZM136.49 42.1433C137.104 42.6805 137.736 42.9844 138.386 43.0549C139.044 43.1248 139.692 42.9974 140.331 42.6727C140.973 42.344 141.581 41.8463 142.155 41.1795C142.73 40.5127 143.127 39.8426 143.348 39.1692C143.573 38.4917 143.598 37.8372 143.424 37.2056C143.254 36.5774 142.861 35.9967 142.243 35.4635C141.629 34.9262 140.995 34.6206 140.34 34.5467C139.69 34.4762 139.044 34.6053
1138.402 34.934C137.76 35.2627 137.149 35.7588 136.571 36.4221C135.993 37.0854 135.591 37.7558 135.367 38.4332C135.146 39.1067 135.122 39.7592 135.296 40.3908C135.474 41.0259 135.872 41.61 136.49 42.1433Z" fill="#FFFBF3"></path><path d="M145.351 54.0039C144.813 53.281 144.485 52.5323 144.367 51.758C144.257 50.9848 144.354 50.2443 144.658 49.5367C144.966 48.826 145.486 48.2017 146.216 47.6641L152.071 43.3518L153.091 44.7074L147.299 48.9722C146.904 49.2632 146.606 49.5857 146.404 49.9397C146.202 50.2937 146.083 50.6562 146.047 51.0273C146.011 51.3984 146.043 51.7588 146.144 52.1085C146.248 52.4624 146.406 52.7827 146.62 53.0693C146.836 53.3602 147.098 53.6046 147.405 53.8025C147.719 54.0015 148.06 54.1379 148.428 54.2117C148.795 54.2855 149.177 54.2758 149.573 54.1828C149.973 54.094 150.368 53.9057 150.759 53.6179L156.55 49.3531L157.562 50.7134L151.701 55.0304C150.975 55.5649 150.225 55.8753 149.452 55.9615C148.678 56.0477 147.934 55.9235 147.219 55.5887C146.512 55.2551 145.889 54.7268 145.351 54.0039Z" fill="#FFFBF3"></path><path d="M151.109 62.4664L161.672 57.8711L162.355 59.4236L156.789 68.0302L164.639 64.6156L165.321 66.1681L154.758 70.7634L154.075 69.2109L159.648 60.6011L151.791 64.0189L151.109 62.4664Z" fill="#FFFBF3"></path><path d="M156.443 76.2926L167.764 74.1594L168.439 77.7036C168.459 77.8084 168.493 78.0028 168.542 78.2867C168.591 78.5758 168.623 78.8548 168.636 79.1237C168.695 80.0298 168.519 80.8335 168.11 81.5348C167.702 82.2413 167.123 82.8251 166.375 83.2863C165.632 83.7465 164.781 84.067 163.822 84.2477C162.858 84.4294 161.942 84.4418 161.076 84.2848C160.216 84.1268 159.465 83.7933 158.825 83.2843C158.192 82.7796 157.736 82.0949 157.457 81.2302C157.37 80.9751 157.297 80.704 157.237 80.4169C157.178 80.135 157.138 79.9416 157.118 79.8368L156.443 76.2926ZM158.328 77.6795L158.683 79.542C158.717 79.7202 158.762 79.9314 158.82 80.1756C158.877 80.4199 158.939 80.6334 159.007 80.816C159.227 81.3716 159.564 81.791 160.02 82.0741C160.482 82.3616 161.015 82.5353 161.618 82.5953C162.221 82.6553 162.845 82.6246 163.49 82.5031C164.155 82.3777 164.755 82.1752 165.288 81.8956C165.826 81.6151 166.252 81.258 166.566 80.8244C166.886 80.3951 167.044 79.8876 167.041 79.3021C167.042 79.1066 167.021 78.8826 166.978 78.6301C166.942 78.3819 166.907 78.1713 166.874 77.9984L166.52 76.1359L158.328 77.6795Z" fill="#FFFBF3"></path><path d="M156.522 102.599L167.857 104.658L167.016 109.237C166.996 109.347 166.965 109.483 166.925 109.643C166.89 109.805 166.846 109.957 166.793 110.099C166.577 110.71 166.266 111.196 165.858 111.555C165.45 111.92 164.974 112.162 164.432 112.28C163.89 112.399 163.314 112.402 162.705 112.292C162.091 112.18 161.552 111.974 161.087 111.673C160.621 111.371 160.262 110.978 160.01 110.493C159.756 110.014 159.638 109.45 159.653 108.802C159.659 108.652 159.673 108.491 159.693 108.322C159.712 108.157 159.732 108.022 159.751 107.918L160.29 104.983L156.22 104.244L156.522 102.599ZM161.848 105.266L161.321 108.138C161.302 108.243 161.286 108.359 161.273 108.487C161.259 108.62 161.255 108.746 161.26 108.867C161.277 109.217 161.372 109.513 161.544 109.756C161.722 109.999 161.942 110.191 162.203 110.331C162.465 110.47 162.735 110.565 163.013 110.616C163.291 110.666 163.575 110.672 163.864 110.632C164.159 110.594 164.43 110.491 164.677 110.325C164.93 110.159 165.126 109.916 165.267 109.594C165.319 109.485 165.363 109.365 165.398 109.236C165.431 109.112 165.458 108.997 165.477 108.892L166.004 106.02L161.848 105.266Z" fill="#FFFBF3"></path><path d="M153.309 116.025L164.018 120.27L163.396 121.822L154.152 118.158L152.212 122.999L150.747 122.419L153.309 116.025Z" fill="#FFFBF3"></path><path d="M148.9 126.023L156.512 135.422L155.192 137.436L143.474 134.299L144.425 132.847L155.136 135.683L154.899 136.045L147.948 127.475L148.9 126.023ZM150.015 129.064L151.331 129.917L148.032 134.948L146.717 134.095L150.015 129.064Z" fill="#FFFBF3"></path><path d="M138.451 139.674L141.834 143.022L149.395 145.024L148.014 146.404L142.599 144.973L144.064 150.351L142.683 151.731L140.635 144.221L137.252 140.873L138.451 139.674Z" fill="#FFFBF3"></path><path d="M122.485 151.618L130.354 160.689L128.76 161.416L122.904 154.513L124.347 163.422L122.749 164.16L116.893 157.257L118.339 166.174L116.737 166.904L114.96 155.053L116.473 154.3
162L122.332 161.158L120.971 152.309L122.485 151.618Z" fill="#FFFBF3"></path><path d="M107.616 157.125L110.201 168.351L108.571 168.723L105.986 157.496L107.616 157.125Z" fill="#FFFBF3"></path><path d="M96.6131 158.81L97.2084 168.736L101.034 168.509L101.128 170.082L91.8084 170.635L91.7141 169.062L95.5393 168.835L94.944 158.909L96.6131 158.81Z" fill="#FFFBF3"></path><path d="M86.7057 158.856L84.9491 170.241L83.2963 169.989L84.0538 165.079L78.3597 164.21L77.6022 169.12L75.9414 168.867L77.698 157.481L79.3588 157.735L78.6 162.653L84.2941 163.522L85.0529 158.604L86.7057 158.856Z" fill="#FFFBF3"></path><path d="M61.6986 151.042C62.429 151.429 63.0218 151.903 63.4772 152.465C63.9254 153.029 64.2156 153.644 64.3478 154.312C64.4727 154.982 64.4191 155.669 64.1869 156.373L62.5214 155.788C62.6986 155.085 62.633 154.429 62.3248 153.819C62.014 153.213 61.5288 152.736 60.8691 152.386C60.4592 152.168 60.0482 152.032 59.6362 151.976C59.2217 151.926 58.8465 151.965 58.5107 152.095C58.1676 152.227 57.9054 152.462 57.7239 152.801C57.6256 152.984 57.5717 153.163 57.562 153.339C57.5477 153.513 57.5693 153.681 57.627 153.845C57.6774 154.01 57.7625 154.173 57.8824 154.333C57.995 154.496 58.1305 154.655 58.2887 154.811L60.4846 156.963C60.6988 157.173 60.9062 157.407 61.1071 157.664C61.3054 157.926 61.4637 158.213 61.5818 158.523C61.6927 158.835 61.7396 159.171 61.7225 159.53C61.7029 159.894 61.5822 160.283 61.3605 160.696C61.0253 161.322 60.5816 161.765 60.0293 162.028C59.4698 162.293 58.8552 162.389 58.1855 162.318C57.5133 162.251 56.8355 162.037 56.1523 161.674C55.4694 161.3 54.9201 160.852 54.5042 160.329C54.0837 159.805 53.8128 159.226 53.6916 158.594C53.5631 157.965 53.5982 157.301 53.7967 156.604L55.5235 157.175C55.3901 157.594 55.3657 158 55.4504 158.395C55.5326 158.795 55.7019 159.157 55.9583 159.48C56.2122 159.807 56.5334 160.077 56.922 160.289C57.2939 160.499 57.6705 160.626 58.0517 160.671C58.4282 160.714 58.7699 160.675 59.0768 160.554C59.379 160.43 59.607 160.225 59.7607 159.939C59.9119 159.657 59.9517 159.385 59.88 159.123C59.8083 158.862 59.6801 158.616 59.4952 158.385C59.3031 158.157 59.1046 157.946 58.8996 157.752L57.3031 156.227C57.1028 156.036 56.8844 155.805 56.6481 155.535C56.4045 155.267 56.1966 154.961 56.0244 154.616C55.8476 154.268 55.7555 153.882 55.7481 153.455C55.7382 153.033 55.8656 152.576 56.1302 152.082C56.4049 151.57 56.7505 151.174 57.167 150.893C57.581 150.618 58.0399 150.445 58.5438 150.374C59.0406 150.305 59.5598 150.33 60.1015 150.448C60.6433 150.567 61.1756 150.764 61.6986 151.042Z" fill="#FFFBF3"></path><path d="M50.0086 143.005C50.8855 143.752 51.4689 144.579 51.7588 145.484C52.0452 146.394 52.0587 147.33 51.7994 148.293C51.5359 149.253 51.0161 150.183 50.2399 151.084C49.4638 151.986 48.6192 152.639 47.7062 153.045C46.7891 153.448 45.8584 153.577 44.9141 153.431C43.9664 153.289 43.0541 152.845 42.1772 152.097C41.3043 151.354 40.7247 150.527 40.4382 149.618C40.1443 148.709 40.129 147.774 40.3924 146.815C40.6559 145.855 41.1757 144.925 41.9519 144.023C42.7281 143.122 43.5726 142.469 44.4857 142.062C45.3987 141.656 46.3311 141.526 47.2829 141.671C48.2271 141.817 49.1357 142.262 50.0086 143.005ZM48.9696 144.211C48.3554 143.674 47.7232 143.37 47.073 143.3C46.4153 143.23 45.7671 143.357 45.1284 143.682C44.4863 144.011 43.8781 144.508 43.3038 145.175C42.7295 145.842 42.3318 146.512 42.1107 147.186C41.8862 147.863 41.8609 148.518 42.0348 149.149C42.2047 149.777 42.5985 150.358 43.2161 150.891C43.8303 151.429 44.4645 151.734 45.1188 151.808C45.769 151.879 46.4152 151.749 47.0573 151.421C47.6994 151.092 48.3097 150.596 48.888 149.933C49.4664 149.269 49.8678 148.599 50.0924 147.921C50.3135 147.248 50.337 146.596 50.1631 145.964C49.9851 145.329 49.5873 144.745 48.9696 144.211Z" fill="#FFFBF3"></path><path d="M40.3611 132.587C40.8994 133.31 41.2274 134.059 41.3451 134.833C41.4554 135.606 41.3584 136.347 41.0541 137.054C40.7455 137.765 40.2262 138.389 39.4961 138.927L33.6407 143.239L32.6214 141.884L38.4124 137.619C38.8075 137.328 39.106 137.005 39.3079 136.652C39.5097 136.298 39.6288 135.935 39.665 135.564C39.7012 135.193 39.6689 134.832 39.5681 134.483C39.4642 134.129 39.3055 133.808 39.0921 133.522C38.8755 133.231 38.6137 132.987 38.3068 132.789C37.9924 132.59 37.6515 132.453 37.284 132.38C36.9166 132.306 36.5347 132.315 36.1386 132.408C35.7392 132.497 35.3442 132.685 34.9534 132.973
1L29.1623 137.238L28.1495 135.878L34.0114 131.561C34.7371 131.026 35.4868 130.716 36.2604 130.63C37.034 130.543 37.7782 130.668 38.4928 131.002C39.2 131.336 39.8228 131.864 40.3611 132.587Z" fill="#FFFBF3"></path><path d="M34.7629 124.406L24.1991 129.001L23.5163 127.448L29.0824 118.842L21.2329 122.256L20.5501 120.704L31.1139 116.109L31.7967 117.661L26.2233 126.271L34.0801 122.853L34.7629 124.406Z" fill="#FFFBF3"></path><path d="M29.5526 110.902L18.2318 113.035L17.5566 109.491C17.5366 109.386 17.5023 109.192 17.4537 108.908C17.404 108.619 17.3726 108.34 17.3593 108.071C17.3007 107.165 17.4761 106.361 17.8854 105.66C18.2938 104.953 18.872 104.369 19.6203 103.908C20.3633 103.448 21.2143 103.127 22.1735 102.947C23.1378 102.765 24.053 102.753 24.919 102.91C25.7798 103.068 26.5301 103.401 27.17 103.91C27.8037 104.415 28.2599 105.099 28.5386 105.964C28.6252 106.219 28.6986 106.49 28.7587 106.777C28.8178 107.059 28.8574 107.253 28.8774 107.358L29.5526 110.902ZM27.6677 109.515L27.3129 107.652C27.279 107.474 27.2333 107.263 27.1759 107.019C27.1185 106.774 27.0561 106.561 26.9887 106.378C26.7689 105.823 26.4311 105.403 25.9754 105.12C25.5134 104.833 24.9809 104.659 24.3776 104.599C23.7744 104.539 23.1505 104.57 22.5058 104.691C21.8402 104.817 21.2409 105.019 20.7078 105.299C20.1694 105.579 19.7434 105.936 19.4296 106.37C19.1097 106.799 18.9512 107.307 18.9541 107.892C18.9534 108.088 18.9743 108.312 19.017 108.564C19.0534 108.812 19.0881 109.023 19.121 109.196L19.4759 111.058L27.6677 109.515Z" fill="#FFFBF3"></path></g>',3),Wt=[Ut];function zt(e,i){return W(),K("svg",Vt,Wt)}const Zt=Re(Ht,[["render",zt]]),Kt={class:"round relative h-full w-full overflow-hidden"},Yt={key:1,class:"round h-full w-full bg-red"},Qt={class:"absolute inset-0 flex items-center justify-center"},Xt={__name:"Poster",props:{image:{type:Object,required:!1,default:()=>{}}},setup(e,{expose:i}){const t=e,s=ge(null);return i({iconRef:s}),(a,n)=>{const l=st,o=Zt;return W(),K("div",Kt,[t.image?(W(),It(l,{key:0,min:"tiny",max:"large",image:t.image,classname:"h-full w-full object-cover origin-center group-hover:scale-105 duration-300 aspect-[2/1]"},null,8,["image"])):(W(),K("div",Yt)),ee("div",Qt,[xe(o,{ref_key:"iconRef",ref:s,class:"h-96 w-96 lg:h-180 lg:w-180"},null,512)])])}}},ks=Xt;function m(e,i,t){return(i=Gt(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}function Jt(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||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(e)}function Gt(e){var i=Jt(e,"string");return typeof i=="symbol"?i:String(i)}function ei(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}function Ke(e,i){for(var t=0;t<i.length;t++){var s=i[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function ti(e,i,t){return i&&Ke(e.prototype,i),t&&Ke(e,t),e}function ii(e,i,t){return i in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}function Ye(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);i&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,s)}return t}function Qe(e){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?Ye(Object(t),!0).forEach(function(s){ii(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ye(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}var Xe={addCSS:!0,thumbWidth:15,watch:!0};function si(e,i){return(function(){return Array.from(document.querySelectorAll(i)).includes(this)}).call(e,i)}function ni(e,i){if(e&&i){var t=new Event(i,{bubbles:!0});e.dispatchEvent(t)}}var de=function(e){return e!=null?e.constructor:null},qe=function(e,i){return!!(e&&i&&e instanceof i)},at=function(e){return e==null},rt=function(e){return de(e)===Object},ai=function(e){return de(e)===Number&&!Number.isNaN(e)},lt=function(e){return de(e)===String},ri=function(e){return de(e)===Boolean},li=function(e){return de(e)===Function},ot=function(e){return Array.isArray(e)},ct=function(e){return qe(e,NodeList)},oi=function(e){return qe(e,Element)},ci=function(e){return qe(e,Event)},ui=function(e){return at(e)||(lt(e)||ot(e)||ct(e))&&!e.length||rt(e)&&!Object.keys(e).length},j={nullOrUndefined:at,object:rt,number:ai,string:lt,boolean:ri,function:li,array:ot,nodeList:ct,element:oi,event:ci,empty:ui};function di(e){var i="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return i?Math.max(0,(i[1]?i[1].length:0)-(i[2]?+i[2]:0)):0}function hi(e,i){if(1>i){var t=di(i);return parseFloat(e.toFixed(t))}return Math.round(e/i)*i}
1var pi=function(){function e(i,t){ei(this,e),j.element(i)?this.element=i:j.string(i)&&(this.element=document.querySelector(i)),j.element(this.element)&&j.empty(this.element.rangeTouch)&&(this.config=Qe({},Xe,{},t),this.init())}return ti(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(a){t.element[s](a,function(n){return t.set(n)},!1)})}},{key:"get",value:function(i){if(!e.enabled||!j.event(i))return null;var t,s=i.target,a=i.changedTouches[0],n=parseFloat(s.getAttribute("min"))||0,l=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*(a.clientX-c.left))?t=0:100<t&&(t=100),50>t?t-=(100-2*t)*u:50<t&&(t+=2*(t-50)*u),n+hi(t/100*(l-n),o)}},{key:"set",value:function(i){e.enabled&&j.event(i)&&!i.target.disabled&&(i.preventDefault(),i.target.value=this.get(i),ni(i.target,i.type==="touchend"?"change":"input"))}}],[{key:"setup",value:function(i){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},s=null;if(j.empty(i)||j.string(i)?s=Array.from(document.querySelectorAll(j.string(i)?i:'input[type="range"]')):j.element(i)?s=[i]:j.nodeList(i)?s=Array.from(i):j.array(i)&&(s=i.filter(j.element)),j.empty(s))return null;var a=Qe({},Xe,{},t);if(j.string(i)&&a.watch){var n=new MutationObserver(function(l){Array.from(l).forEach(function(o){Array.from(o.addedNodes).forEach(function(c){j.element(c)&&si(c,i)&&new e(c,a)})})});n.observe(document.body,{childList:!0,subtree:!0})}return s.map(function(l){return new e(l,t)})}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}();const he=e=>e!=null?e.constructor:null,Y=(e,i)=>!!(e&&i&&e instanceof i),Be=e=>e==null,ut=e=>he(e)===Object,mi=e=>he(e)===Number&&!Number.isNaN(e),Te=e=>he(e)===String,gi=e=>he(e)===Boolean,dt=e=>typeof e=="function",ht=e=>Array.isArray(e),fi=e=>Y(e,WeakMap),pt=e=>Y(e,NodeList),yi=e=>he(e)===Text,bi=e=>Y(e,Event),vi=e=>Y(e,KeyboardEvent),wi=e=>Y(e,window.TextTrackCue)||Y(e,window.VTTCue),Ci=e=>Y(e,TextTrack)||!Be(e)&&Te(e.kind),ki=e=>Y(e,Promise)&&dt(e.then),Ti=e=>e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object",mt=e=>Be(e)||(Te(e)||ht(e)||pt(e))&&!e.length||ut(e)&&!Object.keys(e).length,Li=e=>{if(Y(e,window.URL))return!0;if(!Te(e))return!1;let i=e;e.startsWith("http://")&&e.startsWith("https://")||(i=`http://${e}`);try{return!mt(new URL(i).hostname)}catch{return!1}};var r={nullOrUndefined:Be,object:ut,number:mi,string:Te,boolean:gi,function:dt,array:ht,weakMap:fi,nodeList:pt,element:Ti,textNode:yi,event:bi,keyboardEvent:vi,cue:wi,track:Ci,promise:ki,url:Li,empty:mt};const Fe=(()=>{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!!r.string(t)&&i[t]})();
1function gt(e,i){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},i)}const Ei=!!window.document.documentMode,Ai=/Edge/g.test(navigator.userAgent),Si="WebkitAppearance"in document.documentElement.style&&!/Edge/g.test(navigator.userAgent),Pi=/iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1,Mi=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,_i=/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1;var O={isIE:Ei,isEdge:Ai,isWebKit:Si,isIPhone:Pi,isIPadOS:Mi,isIos:_i};function xi(e){return JSON.parse(JSON.stringify(e))}function ft(e,i){return i.split(".").reduce((t,s)=>t&&t[s],e)}function x(e={},...i){if(!i.length)return e;const t=i.shift();return r.object(t)?(Object.keys(t).forEach(s=>{r.object(t[s])?(Object.keys(e).includes(s)||Object.assign(e,{[s]:{}}),x(e[s],t[s])):Object.assign(e,{[s]:t[s]})}),x(e,...i)):e}function yt(e,i){const t=e.length?e:[e];Array.from(t).reverse().forEach((s,a)=>{const n=a>0?i.cloneNode(!0):i,l=s.parentNode,o=s.nextSibling;n.appendChild(s),o?l.insertBefore(n,o):l.appendChild(n)})}function Ne(e,i){r.element(e)&&!r.empty(i)&&Object.entries(i).filter(([,t])=>!r.nullOrUndefined(t)).forEach(([t,s])=>e.setAttribute(t,s))}function y(e,i,t){const s=document.createElement(e);return r.object(i)&&Ne(s,i),r.string(t)&&(s.innerText=t),s}function Fi(e,i){r.element(e)&&r.element(i)&&i.parentNode.insertBefore(e,i.nextSibling)}function Je(e,i,t,s){r.element(i)&&i.appendChild(y(e,t,s))}function Z(e){r.nodeList(e)||r.array(e)?Array.from(e).forEach(Z):r.element(e)&&r.element(e.parentNode)&&e.parentNode.removeChild(e)}function ye(e){if(!r.element(e))return;let{length:i}=e.childNodes;for(;i>0;)e.removeChild(e.lastChild),i-=1}function we(e,i){return r.element(i)&&r.element(i.parentNode)&&r.element(e)?(i.parentNode.replaceChild(e,i),e):null}function V(e,i){if(!r.string(e)||r.empty(e))return{};const t={},s=x({},i);return e.split(",").forEach(a=>{const n=a.trim(),l=n.replace(".",""),o=n.replace(/[[\]]/g,"").split("="),[c]=o,u=o.length>1?o[1].replace(/["']/g,""):"";switch(n.charAt(0)){case".":r.string(s.class)?t.class=`${s.class} ${l}`:t.class=l;break;case"#":t.id=n.replace("#","");break;case"[":t[c]=u}}),x(s,t)}function G(e,i){if(!r.element(e))return;let t=i;r.boolean(t)||(t=!e.hidden),e.hidden=t}function A(e,i,t){if(r.nodeList(e))return Array.from(e).map(s=>A(s,i,t));if(r.element(e)){let s="toggle";return t!==void 0&&(s=t?"add":"remove"),e.classList[s](i),e.classList.contains(i)}return!1}function Ce(e,i){return r.element(e)&&e.classList.contains(i)}function te(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 Ni(e,i){const{prototype:t}=Element;return(t.closest||function(){let s=this;do{if(te.matches(s,i))return s;s=s.parentElement||s.parentNode}while(s!==null&&s.nodeType===1);return null}).call(e,i)}function oe(e){return this.elements.container.querySelectorAll(e)}function $(e){return this.elements.container.querySelector(e)}function Se(e=null,i=!1){r.element(e)&&e.focus({preventScroll:!0,focusVisible:i})}const Ge={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},F={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,i){const t=F[e]||i!=="html5";return{api:t,ui:t&&F.rangeInput}},pip:!(O.isIPhone||!r.function(y("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||y("video").disablePictureInPicture)),airplay:r.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(r.empty(e))return!1;const[i]=e.split("/");let t=e;if(!this.isHTML5||i!==this.type)return!1;Object.keys(Ge).includes(t)&&(t+=`; codecs="${Ge[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:Fe!==!1,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},$i=(()=>{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 ce(e,i,t,s=!1,a=!0,n=!1){if(!e||!("addEventListener"in e)||r.empty(i)||!r.function(t))return;const l=i.split(" ");let o=n;$i&&(o={passive:a,capture:n}),l.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 L(e,i="",t,s=!0,a=!1){ce.call(this,e,i,t,!0,s,a)}function Le(e,i="",t,s=!0,a=!1){ce.call(this,e,i,t,!1,s,a)}function He(e,i="",t,s=!0,a=!1){const n=(...l)=>{Le(e,i,n,s,a),t.apply(this,l)};ce.call(this,e,i,n,!0,s,a)}function b(e,i="",t=!1,s={}){if(!r.element(e)||r.empty(i))return;
1const a=new CustomEvent(i,{bubbles:t,detail:{...s,plyr:this}});e.dispatchEvent(a)}function Ii(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:i,type:t,callback:s,options:a}=e;i.removeEventListener(t,s,a)}),this.eventListeners=[])}function Oi(){return new Promise(e=>this.ready?setTimeout(e,0):L.call(this,this.elements.container,"ready",e)).then(()=>{})}function U(e){r.promise(e)&&e.then(null,()=>{})}function $e(e){return r.array(e)?e.filter((i,t)=>e.indexOf(i)===t):e}function bt(e,i){return r.array(e)&&e.length?e.reduce((t,s)=>Math.abs(s-i)<Math.abs(t-i)?s:t):null}function vt(e){return!(!window||!window.CSS)&&window.CSS.supports(e)}const et=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((e,[i,t])=>({...e,[i/t]:[i,t]}),{});function wt(e){return r.array(e)||r.string(e)&&e.includes(":")?(r.array(e)?e:e.split(":")).map(Number).every(r.number):!1}function ke(e){if(!r.array(e)||!e.every(r.number))return null;const[i,t]=e,s=(n,l)=>l===0?n:s(l,n%l),a=s(i,t);return[i/a,t/a]}function Ve(e){const i=s=>wt(s)?s.split(":").map(Number):null;let t=i(e);if(t===null&&(t=i(this.config.ratio)),t===null&&!r.empty(this.embed)&&r.array(this.embed.ratio)&&({ratio:t}=this.embed),t===null&&this.isHTML5){const{videoWidth:s,videoHeight:a}=this.media;t=[s,a]}return ke(t)}function ie(e){if(!this.isVideo)return{};const{wrapper:i}=this.elements,t=Ve.call(this,e);if(!r.array(t))return{};const[s,a]=ke(t),n=100/s*a;if(vt(`aspect-ratio: ${s}/${a}`)?i.style.aspectRatio=`${s}/${a}`:i.style.paddingBottom=`${n}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const l=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),o=(l-n)/(l/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:n,ratio:t}}function Ct(e,i,t=.05){const s=e/i,a=bt(Object.keys(et),s);return Math.abs(a-s)<=t?et[a]:[e,i]}function ji(){return[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)]}const J={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(e=>{const i=e.getAttribute("type");return!!r.empty(i)||F.mime.call(this,i)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:J.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,r.empty(this.config.ratio)||ie.call(e),Object.defineProperty(e.media,"quality",{get(){const i=J.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&&r.function(e.config.quality.onChange))e.config.quality.onChange(i);else{const t=J.getSources.call(e).find(c=>Number(c.getAttribute("size"))===i);if(!t)return;const{currentTime:s,paused:a,preload:n,readyState:l,playbackRate:o}=e.media;e.media.src=t.getAttribute("src"),(n!=="none"||l)&&(e.once("loadedmetadata",()=>{e.speed=o,e.currentTime=s,a||U(e.play())}),e.media.load())}b.call(e,e.media,"qualitychange",!1,{quality:i})}}})},cancelRequests(){this.isHTML5&&(Z(J.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function Di(e){return`${e}-${Math.floor(1e4*Math.random())}`}function Ie(e,...i){return r.empty(e)?e:e.toString().replace(/{(\d+)}/g,(t,s)=>i[s].toString())}function Ri(e,i){return e===0||i===0||Number.isNaN(e)||Number.isNaN(i)?0:(e/i*100).toFixed(2)}const le=(e="",i="",t="")=>e.replace(new RegExp(i.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),t.toString()),kt=(e="")=>e.toString().replace(/\w\S*/g,i=>i.charAt(0).toUpperCase()+i.slice(1).toLowerCase());function qi(e=""){let i=e.toString();return i=le(i,"-"," "),i=le(i,"_"," "),i=kt(i),le(i," ","")}function Bi(e=""){let i=e.toString();return i=qi(i),i.charAt(0).toLowerCase()+i.slice(1)}function Hi(e){const i=document.createDocumentFragment(),t=document.createElement("div");return i.appendChild(t),t.innerHTML=e,i.firstChild.innerText}function Vi(e){const i=document.createElement("div");return i.appendChild(e),i.innerHTML}const tt={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},I={get(e="",i={}){if(r.empty(e)||r.empty(i))return"";let t=ft(i.i18n,e);if(r.empty(t))return Object.keys(tt).includes(e)?tt[e]:"";const s={"{seektime}":i.seekTime,"{title}":i.title};
vendor: 4,180 bytes, line 1
1return Object.entries(s).forEach(([a,n])=>{t=le(t,a,n)}),t}};class ue{constructor(i){m(this,"get",t=>{if(!ue.supported||!this.enabled)return null;const s=window.localStorage.getItem(this.key);if(r.empty(s))return null;const a=JSON.parse(s);return r.string(t)&&t.length?a[t]:a}),m(this,"set",t=>{if(!ue.supported||!this.enabled||!r.object(t))return;let s=this.get();r.empty(s)&&(s={}),x(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 pe(e,i="text"){return new Promise((t,s)=>{try{const a=new XMLHttpRequest;if(!("withCredentials"in a))return;a.addEventListener("load",()=>{if(i==="text")try{t(JSON.parse(a.responseText))}catch{t(a.responseText)}else t(a.response)}),a.addEventListener("error",()=>{throw new Error(a.status)}),a.open("GET",e,!0),a.responseType=i,a.send()}catch(a){s(a)}})}function Tt(e,i){if(!r.string(e))return;const t="cache",s=r.string(i);let a=!1;const n=()=>document.getElementById(i)!==null,l=(o,c)=>{o.innerHTML=c,s&&n()||document.body.insertAdjacentElement("afterbegin",o)};if(!s||!n()){const o=ue.supported,c=document.createElement("div");if(c.setAttribute("hidden",""),s&&c.setAttribute("id",i),o){const u=window.localStorage.getItem(`${t}-${i}`);if(a=u!==null,a){const h=JSON.parse(u);l(c,h.content)}}pe(e).then(u=>{if(!r.empty(u)){if(o)try{window.localStorage.setItem(`${t}-${i}`,JSON.stringify({content:u}))}catch{}l(c,u)}}).catch(()=>{})}}const Lt=e=>Math.trunc(e/60/60%60,10),Ui=e=>Math.trunc(e/60%60,10),Wi=e=>Math.trunc(e%60,10);function Ee(e=0,i=!1,t=!1){if(!r.number(e))return Ee(void 0,i,t);const s=o=>`0${o}`.slice(-2);let a=Lt(e);const n=Ui(e),l=Wi(e);return a=i||a>0?`${a}:`:"",`${t&&e>0?"-":""}${a}${s(n)}:${s(l)}`}const p={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=$.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:oe.call(this,this.config.selectors.buttons.play),pause:$.call(this,this.config.selectors.buttons.pause),restart:$.call(this,this.config.selectors.buttons.restart),rewind:$.call(this,this.config.selectors.buttons.rewind),fastForward:$.call(this,this.config.selectors.buttons.fastForward),mute:$.call(this,this.config.selectors.buttons.mute),pip:$.call(this,this.config.selectors.buttons.pip),airplay:$.call(this,this.config.selectors.buttons.airplay),settings:$.call(this,this.config.selectors.buttons.settings),captions:$.call(this,this.config.selectors.buttons.captions),fullscreen:$.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=$.call(this,this.config.selectors.progress),this.elements.inputs={seek:$.call(this,this.config.selectors.inputs.seek),volume:$.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:$.call(this,this.config.selectors.display.buffer),currentTime:$.call(this,this.config.selectors.display.currentTime),duration:$.call(this,this.config.selectors.display.duration)},r.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=p.getIconUrl.call(this),a=`${s.cors?"":s.url}#${this.config.iconPrefix}`,n=document.createElementNS(t,"svg");Ne(n,x(i,{"aria-hidden":"true",focusable:"false"}));const l=document.createElementNS(t,"use"),o=`${a}-${e}`;return"href"in l&&l.setAttributeNS("http://www.w3.org/1999/xlink","href",o),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),n.appendChild(l),n},createLabel(e,i={}){const t=I.get(e,this.config);return y("span",{...i,class:[i.class,this.config.classNames.hidden].filter(
1Boolean).join(" ")},t)},createBadge(e){if(r.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=x({},i);let s=Bi(e);const a={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(l=>{Object.keys(t).includes(l)&&(a[l]=t[l],delete t[l])}),a.element!=="button"||Object.keys(t).includes("type")||(t.type="button"),Object.keys(t).includes("class")?t.class.split(" ").some(l=>l===this.config.classNames.control)||x(t,{class:`${t.class} ${this.config.classNames.control}`}):t.class=this.config.classNames.control,e){case"play":a.toggle=!0,a.label="play",a.labelPressed="pause",a.icon="play",a.iconPressed="pause";break;case"mute":a.toggle=!0,a.label="mute",a.labelPressed="unmute",a.icon="volume",a.iconPressed="muted";break;case"captions":a.toggle=!0,a.label="enableCaptions",a.labelPressed="disableCaptions",a.icon="captions-off",a.iconPressed="captions-on";break;case"fullscreen":a.toggle=!0,a.label="enterFullscreen",a.labelPressed="exitFullscreen",a.icon="enter-fullscreen",a.iconPressed="exit-fullscreen";break;case"play-large":t.class+=` ${this.config.classNames.control}--overlaid`,s="play",a.label="play",a.icon="play";break;default:r.empty(a.label)&&(a.label=s),r.empty(a.icon)&&(a.icon=e)}const n=y(a.element);return a.toggle?(n.appendChild(p.createIcon.call(this,a.iconPressed,{class:"icon--pressed"})),n.appendChild(p.createIcon.call(this,a.icon,{class:"icon--not-pressed"})),n.appendChild(p.createLabel.call(this,a.labelPressed,{class:"label--pressed"})),n.appendChild(p.createLabel.call(this,a.label,{class:"label--not-pressed"}))):(n.appendChild(p.createIcon.call(this,a.icon)),n.appendChild(p.createLabel.call(this,a.label))),x(t,V(this.config.selectors.buttons[s],t)),Ne(n,t),s==="play"?(r.array(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(n)):this.elements.buttons[s]=n,n},createRange(e,i){const t=y("input",x(V(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":I.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},i));return this.elements.inputs[e]=t,p.updateRangeFill.call(this,t),pi.setup(t),t},createProgress(e,i){const t=y("progress",x(V(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],a=s?I.get(s,this.config):"";t.innerText=`% ${a.toLowerCase()}`}return this.elements.display[e]=t,t},createTime(e,i){const t=V(this.config.selectors.display[e],i),s=y("div",x(t,{class:`${t.class?t.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":I.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=s,s},bindMenuItemShortcuts(e,i){L.call(this,e,"keydown keyup",t=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(t.key)||(t.preventDefault(),t.stopPropagation(),t.type==="keydown"))return;const s=te(e,'[role="menuitemradio"]');if(!s&&[" ","ArrowRight"].includes(t.key))p.showMenuPanel.call(this,i,!0);else{let a;t.key!==" "&&(t.key==="ArrowDown"||s&&t.key==="ArrowRight"?(a=e.nextElementSibling,r.element(a)||(a=e.parentNode.firstElementChild)):(a=e.previousElementSibling,r.element(a)||(a=e.parentNode.lastElementChild)),Se.call(this,a,!0))}},!1),L.call(this,e,"keyup",t=>{t.key==="Return"&&p.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:i,type:t,title:s,badge:a=null,checked:n=!1}){const l=V(this.config.selectors.inputs[t]),o=y("button",x(l,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${l.class?l.class:""}`.trim(),"aria-checked":n,value:e})),c=y("span");c.innerHTML=s,r.element(a)&&c.appendChild(a),o.appendChild(c),Object.defineProperty(o,"checked",{enumerable:!0,get:()=>o.getAttribute("aria-checked")==="true",set(u){u&&Array.from(o.parentNode.children).filter(h=>
1te(h,'[role="menuitemradio"]')).forEach(h=>h.setAttribute("aria-checked","false")),o.setAttribute("aria-checked",u?"true":"false")}}),this.listeners.bind(o,"click keyup",u=>{if(!r.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)}p.showMenuPanel.call(this,"home",r.keyboardEvent(u))}},t,!1),p.bindMenuItemShortcuts.call(this,o,t),i.appendChild(o)},formatTime(e=0,i=!1){return r.number(e)?Ee(e,Lt(this.duration)>0,i):e},updateTimeDisplay(e=null,i=0,t=!1){r.element(e)&&r.number(i)&&(e.innerText=p.formatTime(i,t))},updateVolume(){this.supported.ui&&(r.element(this.elements.inputs.volume)&&p.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),r.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(e,i=0){r.element(e)&&(e.value=i,p.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!r.event(e))return;let i=0;const t=(s,a)=>{const n=r.number(a)?a:0,l=r.element(s)?s:this.elements.display.buffer;if(r.element(l)){l.value=n;const o=l.getElementsByTagName("span")[0];r.element(o)&&(o.childNodes[0].nodeValue=n)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":i=Ri(this.currentTime,this.duration),e.type==="timeupdate"&&p.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=r.event(e)?e.target:e;if(r.element(i)&&i.getAttribute("type")==="range"){if(te(i,this.config.selectors.inputs.seek)){i.setAttribute("aria-valuenow",this.currentTime);const t=p.formatTime(this.currentTime),s=p.formatTime(this.duration),a=I.get("seekLabel",this.config);i.setAttribute("aria-valuetext",a.replace("{currentTime}",t).replace("{duration}",s))}else if(te(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||!r.element(this.elements.inputs.seek)||!r.element(this.elements.display.seekTooltip)||this.duration===0)return;const s=this.elements.display.seekTooltip,a=`${this.config.classNames.tooltip}--visible`,n=h=>A(s,a,h);if(this.touch)return void n(!1);let l=0;const o=this.elements.progress.getBoundingClientRect();if(r.event(e))l=100/o.width*(e.pageX-o.left);else{if(!Ce(s,a))return;l=parseFloat(s.style.left,10)}l<0?l=0:l>100&&(l=100);const c=this.duration/100*l;s.innerText=p.formatTime(c);const u=(i=this.config.markers)===null||i===void 0||(t=i.points)===null||t===void 0?void 0:t.find(({time:h})=>h===Math.round(c));u&&s.insertAdjacentHTML("afterbegin",`${u.label}<br>`),s.style.left=`${l}%`,r.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&n(e.type==="mouseenter")},timeUpdate(e){const i=!r.element(this.elements.display.duration)&&this.config.invertTime;p.updateTimeDisplay.call(this,this.elements.display.currentTime,i?this.duration-this.currentTime:this.currentTime,i),e&&e.type==="timeupdate"&&this.media.seeking||p.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return G(this.elements.display.currentTime,!0),void G(this.elements.progress,!0);r.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=r.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&p.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&p.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&p.setMarkers.call(this),p.updateSeekTooltip.call(this)},toggleMenuButton(e,i){G(this.elements.settings.buttons[e],!i)},updateSetting(e,i,t){const s=this.elements.settings.panels[e];let a=null,n=i;if(e==="captions")a=this.currentTrack;else{if(a=r.empty(t)?this[e]:t,r.empty(a)&&(a=this.config[e].default),!r.empty(this.options[e])&&!this.options[e].includes(a))return void this.debug.warn(`Unsupported value of '${a}' for ${e}`);if(!this.config[e].options.includes(a))return void this.debug.warn(`Disabled value of '${a}' for ${e}`)}if(r.element(n)||(n=s&&s.querySelector('[role="menu"]')),!r.element(n))return;this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=p.getLabel.call(this,e,a);const l=n&&n.querySelector(`[value="${a}"]`);r.element(l)&&(l.checked=!0)},getLabel(e,i){switch(e){case"speed":return i===1?I.get("normal",this.config):`${i}×`;case"quality":if(r.number(i)){const t=I.get(`qualityLabel.${i}`,this.config);return t.length?t:`${i}p`}return kt(i);case"captions":return E.getLabel.call(this);default:return null}},setQualityMenu(e){if(!r.element(this.elements.settings.panels.quality))return;const i="quality",t=this.elements.settings.panels.quality.querySelector('[role="menu"]');r.array(e)&&(this.options.quality=$e(e).filter(n=>this.config.quality.options.includes(n)));const s=!r.empty(this.options.quality)&&this.options.quality.length>1;if(p.toggleMenuButton.call(this,i,s),ye(t),p.checkMenu.call(this),!s)return;const a=n=>{const l=I.get(`qualityBadge.${n}`,this.config);return l.length?p.createBadge.call(this,l):null};this.options.quality.sort((n,l)=>{const o=this.config.quality.options;return o.indexOf(n)>o.indexOf(l)?1:-1}
vendor: 3,097 bytes, line 1
1).forEach(n=>{p.createMenuItem.call(this,{value:n,list:t,type:i,title:p.getLabel.call(this,"quality",n),badge:a(n)})}),p.updateSetting.call(this,i,t)},setCaptionsMenu(){if(!r.element(this.elements.settings.panels.captions))return;const e="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=E.getTracks.call(this),s=!!t.length;if(p.toggleMenuButton.call(this,e,s),ye(i),p.checkMenu.call(this),!s)return;const a=t.map((n,l)=>({value:l,checked:this.captions.toggled&&this.currentTrack===l,title:E.getLabel.call(this,n),badge:n.language&&p.createBadge.call(this,n.language.toUpperCase()),list:i,type:"language"}));a.unshift({value:-1,checked:!this.captions.toggled,title:I.get("disabled",this.config),list:i,type:"language"}),a.forEach(p.createMenuItem.bind(this)),p.updateSetting.call(this,e,i)},setSpeedMenu(){if(!r.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=!r.empty(this.options.speed)&&this.options.speed.length>1;p.toggleMenuButton.call(this,e,t),ye(i),p.checkMenu.call(this),t&&(this.options.speed.forEach(s=>{p.createMenuItem.call(this,{value:s,list:i,type:e,title:p.getLabel.call(this,"speed",s)})}),p.updateSetting.call(this,e,i))},checkMenu(){const{buttons:e}=this.elements.settings,i=!r.empty(e)&&Object.values(e).some(t=>!t.hidden);G(this.elements.settings.menu,!i)},focusFirstMenuItem(e,i=!1){if(this.elements.settings.popup.hidden)return;let t=e;r.element(t)||(t=Object.values(this.elements.settings.panels).find(a=>!a.hidden));const s=t.querySelector('[role^="menuitem"]');Se.call(this,s,i)},toggleMenu(e){const{popup:i}=this.elements.settings,t=this.elements.buttons.settings;if(!r.element(i)||!r.element(t))return;const{hidden:s}=i;let a=s;if(r.boolean(e))a=e;else if(r.keyboardEvent(e)&&e.key==="Escape")a=!1;else if(r.event(e)){const n=r.function(e.composedPath)?e.composedPath()[0]:e.target,l=i.contains(n);if(l||!l&&e.target!==t&&a)return}t.setAttribute("aria-expanded",a),G(i,!a),A(this.elements.container,this.config.classNames.menu.open,a),a&&r.keyboardEvent(e)?p.focusFirstMenuItem.call(this,null,!0):a||s||Se.call(this,t,r.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 Z(i),{width:t,height:s}},showMenuPanel(e="",i=!1){const t=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!r.element(t))return;const s=t.parentNode,a=Array.from(s.children).find(n=>!n.hidden);if(F.transitions&&!F.reducedMotion){s.style.width=`${a.scrollWidth}px`,s.style.height=`${a.scrollHeight}px`;const n=p.getMenuSize.call(this,t),l=o=>{o.target===s&&["width","height"].includes(o.propertyName)&&(s.style.width="",s.style.height="",Le.call(this,s,Fe,l))};L.call(this,s,Fe,l),s.style.width=`${n.width}px`,s.style.height=`${n.height}px`}G(a,!0),G(t,!1),p.focusFirstMenuItem.call(this,t,i)}
1,setDownloadUrl(){const e=this.elements.buttons.download;r.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:i,createButton:t,createProgress:s,createRange:a,createTime:n,setQualityMenu:l,setSpeedMenu:o,showMenuPanel:c}=p;this.elements.controls=null,r.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(t.call(this,"play-large"));const u=y("div",V(this.config.selectors.controls.wrapper));this.elements.controls=u;const h={class:"plyr__controls__item"};return $e(r.array(this.config.controls)?this.config.controls:[]).forEach(f=>{if(f==="restart"&&u.appendChild(t.call(this,"restart",h)),f==="rewind"&&u.appendChild(t.call(this,"rewind",h)),f==="play"&&u.appendChild(t.call(this,"play",h)),f==="fast-forward"&&u.appendChild(t.call(this,"fast-forward",h)),f==="progress"){const d=y("div",{class:`${h.class} plyr__progress__container`}),v=y("div",V(this.config.selectors.progress));if(v.appendChild(a.call(this,"seek",{id:`plyr-seek-${e.id}`})),v.appendChild(s.call(this,"buffer")),this.config.tooltips.seek){const C=y("span",{class:this.config.classNames.tooltip},"00:00");v.appendChild(C),this.elements.display.seekTooltip=C}this.elements.progress=v,d.appendChild(this.elements.progress),u.appendChild(d)}if(f==="current-time"&&u.appendChild(n.call(this,"currentTime",h)),f==="duration"&&u.appendChild(n.call(this,"duration",h)),f==="mute"||f==="volume"){let{volume:d}=this.elements;if(r.element(d)&&u.contains(d)||(d=y("div",x({},h,{class:`${h.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(a.call(this,"volume",x(v,{id:`plyr-volume-${e.id}`})))}}if(f==="captions"&&u.appendChild(t.call(this,"captions",h)),f==="settings"&&!r.empty(this.config.settings)){const d=y("div",x({},h,{class:`${h.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:""}),C=y("div"),k=y("div",{id:`plyr-settings-${e.id}-home`}),P=y("div",{role:"menu"});k.appendChild(P),C.appendChild(k),this.elements.settings.panels.home=k,this.config.settings.forEach(w=>{const g=y("button",x(V(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,g,w),L.call(this,g,"click",()=>{c.call(this,w,!1)});const T=y("span",null,I.get(w,this.config)),_=y("span",{class:this.config.classNames.menu.value});_.innerHTML=e[w],T.appendChild(_),g.appendChild(T),P.appendChild(g);const N=y("div",{id:`plyr-settings-${e.id}-${w}`,hidden:""}),R=y("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});R.appendChild(y("span",{"aria-hidden":!0},I.get(w,this.config))),R.appendChild(y("span",{class:this.config.classNames.hidden},I.get("menuBack",this.config))),L.call(this,N,"keydown",D=>{D.key==="ArrowLeft"&&(D.preventDefault(),D.stopPropagation(),c.call(this,"home",!0))},!1),L.call(this,R,"click",()=>{c.call(this,"home",!1)}),N.appendChild(R),N.appendChild(y("div",{role:"menu"})),C.appendChild(N),this.elements.settings.buttons[w]=g,this.elements.settings.panels[w]=N}),v.appendChild(C),d.appendChild(v),u.appendChild(d),this.elements.settings.popup=v,this.elements.settings.menu=d}if(f==="pip"&&F.pip&&u.appendChild(t.call(this,"pip",h)),f==="airplay"&&F.airplay&&u.appendChild(t.call(this,"airplay",h)),f==="download"){const d=x({},h,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(d.download="");const{download:v}=this.config.urls;!r.url(v)&&this.isEmbed&&x(d,{icon:`logo-${this.provider}`,label:this.provider}),u.appendChild(t.call(this,"download",d))}f==="fullscreen"&&u.appendChild(t.call(this,"fullscreen",h))}),this.isHTML5&&l.call(this,J.getQualityOptions.call(this)),o.call(this),u},inject(){if(this.config.loadSprite){const a=p.getIconUrl.call(this);a.cors&&Tt(a.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;
vendor: 4,461 bytes, line 1
1r.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),r.element(this.config.controls)||r.string(this.config.controls)?e=this.config.controls:(e=p.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:E.getLabel.call(this)}),t=!1);let s;if(t&&r.string(this.config.controls)&&(e=(a=>{let n=a;return Object.entries(i).forEach(([l,o])=>{n=le(n,`{${l}}`,o)}),n})(e)),r.string(this.config.selectors.controls.container)&&(s=document.querySelector(this.config.selectors.controls.container)),r.element(s)||(s=this.elements.container),s[r.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),r.element(this.elements.controls)||p.findElements.call(this),!r.empty(this.elements.buttons)){const a=n=>{const l=this.config.classNames.controlPressed;n.setAttribute("aria-pressed","false"),Object.defineProperty(n,"pressed",{configurable:!0,enumerable:!0,get:()=>Ce(n,l),set(o=!1){A(n,l,o),n.setAttribute("aria-pressed",o?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(n=>{r.array(n)||r.nodeList(n)?Array.from(n).filter(Boolean).forEach(a):a(n)})}if(O.isEdge&>(s),this.config.tooltips.controls){const{classNames:a,selectors:n}=this.config,l=`${n.controls.wrapper} ${n.labels} .${a.hidden}`,o=oe.call(this,l);Array.from(o).forEach(c=>{A(c,this.config.classNames.hidden,!1),A(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&&c<this.duration);if(t==null||!t.length)return;const s=document.createDocumentFragment(),a=document.createDocumentFragment();let n=null;const l=`${this.config.classNames.tooltip}--visible`,o=c=>A(n,l,c);t.forEach(c=>{const u=y("span",{class:this.config.classNames.marker},""),h=c.time/this.duration*100+"%";n&&(u.addEventListener("mouseenter",()=>{c.label||(n.style.left=h,n.innerHTML=c.label,o(!0))}),u.addEventListener("mouseleave",()=>{o(!1)})),u.addEventListener("click",()=>{this.currentTime=c.time}),u.style.left=h,a.appendChild(u)}),s.appendChild(a),this.config.tooltips.seek||(n=y("span",{class:this.config.classNames.tooltip},""),s.appendChild(n)),this.elements.markers={points:a,tip:n},this.elements.progress.appendChild(s)}};function Et(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 At(e){const i=new URLSearchParams;return r.object(e)&&Object.entries(e).forEach(([t,s])=>{i.set(t,s)}),i}const E={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!F.textTracks)return void(r.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&p.setCaptionsMenu.call(this));if(r.element(this.elements.captions)||(this.elements.captions=y("div",V(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),Fi(this.elements.captions,this.elements.wrapper)),O.isIE&&window.URL){const s=this.media.querySelectorAll("track");Array.from(s).forEach(a=>{const n=a.getAttribute("src"),l=Et(n);l!==null&&l.hostname!==window.location.href.hostname&&["http:","https:"].includes(l.protocol)&&pe(n,"blob").then(o=>{a.setAttribute("src",window.URL.createObjectURL(o))}).catch(()=>{Z(a)})})}const e=$e((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(r.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";L.call(this,this.media.textTracks,s,E.update.bind(this))}setTimeout(E.update.bind(this),0)},update(){const e=E.getTracks.call(this,!0),{active:i,language:t,meta:s,currentTrackNode:a}=this.captions,n=!!e.find(l=>l.language===t);this.isHTML5&&this.isVideo&&e.filter(l=>
vendor: 1,864 bytes, line 1
1!s.get(l)).forEach(l=>{this.debug.log("Track added",l),s.set(l,{default:l.mode==="showing"}),l.mode==="showing"&&(l.mode="hidden"),L.call(this,l,"cuechange",()=>E.updateCues.call(this))}),(n&&this.language!==t||!e.includes(a))&&(E.setLanguage.call(this,t),E.toggle.call(this,i&&n)),this.elements&&A(this.elements.container,this.config.classNames.captions.enabled,!r.empty(e)),r.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&p.setCaptionsMenu.call(this)},toggle(e,i=!0){if(!this.supported.ui)return;const{toggled:t}=this.captions,s=this.config.classNames.captions.active,a=r.nullOrUndefined(e)?!t:e;if(a!==t){if(i||(this.captions.active=a,this.storage.set({captions:a})),!this.language&&a&&!i){const n=E.getTracks.call(this),l=E.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=l.language,void E.set.call(this,n.indexOf(l))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=a),A(this.elements.container,s,a),this.captions.toggled=a,p.updateSetting.call(this,"captions"),b.call(this,this.media,a?"captionsenabled":"captionsdisabled")}setTimeout(()=>{a&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,i=!0){const t=E.getTracks.call(this);if(e!==-1)if(r.number(e))if(e in t){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const s=t[e],{language:a}=s||{};this.captions.currentTrackNode=s,p.updateSetting.call(this,"captions"),i||(this.captions.language=a,this.storage.set({language:a})),this.isVimeo&&this.embed.enableTextTrack(a),b.call(this,this.media,"languagechange")}E.toggle.call(this,!0,i),this.isHTML5&&this.isVideo&&E.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else E.toggle.call(this,!1,i)}
vendor: 5,112 bytes, lines 1-2
1,setLanguage(e,i=!0){if(!r.string(e))return void this.debug.warn("Invalid language argument",e);const t=e.toLowerCase();this.captions.language=t;const s=E.getTracks.call(this),a=E.findTrack.call(this,[t]);E.set.call(this,s.indexOf(a),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=E.getTracks.call(this),s=l=>Number((this.captions.meta.get(l)||{}).default),a=Array.from(t).sort((l,o)=>s(o)-s(l));let n;return e.every(l=>(n=a.find(o=>o.language===l),!n)),n||(i?a[0]:void 0)},getCurrentTrack(){return E.getTracks.call(this)[this.currentTrack]},getLabel(e){let i=e;return!r.track(i)&&F.textTracks&&this.captions.toggled&&(i=E.getCurrentTrack.call(this)),r.track(i)?r.empty(i.label)?r.empty(i.language)?I.get("enabled",this.config):e.language.toUpperCase():i.label:I.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!r.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!r.nullOrUndefined(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let i=e;if(!i){const s=E.getCurrentTrack.call(this);i=Array.from((s||{}).activeCues||[]).map(a=>a.getCueAsHTML()).map(Vi)}const t=i.map(s=>s.trim()).join(` 2`);if(t!==this.elements.captions.innerHTML){ye(this.elements.captions);const s=y("span",V(this.config.selectors.caption));s.innerHTML=t,this.elements.captions.appendChild(s),b.call(this,this.media,"cuechange")}}},St={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="qual
2ity"]'},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:[]}},Pe={active:"picture-in-picture",inactive:"inline"},X={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Me={audio:"audio",video:"video"};function zi(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?X.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?X.vimeo:null}const _e=()=>{};class Zi{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):_e}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):_e}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):_e}}class H{constructor(i){m(this,"onChange",()=>{if(!this.supported)return;const t=this.player.elements.buttons.fullscreen;r.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":"",A(this.target,this.player.config.classNames.fullscreen.fallback,t),O.isIos){let s=document.head.querySelector('meta[name="viewport"]');const a="viewport-fit=cover";s||(s=document.createElement("meta"),s.setAttribute("name","viewport"));const n=r.string(s.content)&&s.content.includes(a);t?(this.cleanupViewport=!n,n||(s.content+=`,${a}`)):this.cleanupViewport&&(s.content=s.content.split(",").filter(l=>l.trim()!==a).join(","))}this.onChange()}),m(this,"trapFocus",t=>{if(O.isIos||O.isIPadOS||!this.active||t.key!=="Tab")return;const s=document.activeElement,a=oe.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[n]=a,l=a[a.length-1];s!==l||t.shiftKey?s===n&&t.shiftKey&&(l.focus(),t.preventDefault()):(n.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");A(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?r.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(),U(this.player.play());else if(!H.nativeSupported||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!r.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.
vendor: 7,966 bytes, line 2
2config.fullscreen.container&&Ni(this.player.elements.container,i.config.fullscreen.container),L.call(this.player,document,this.prefix==="ms"?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),L.call(this.player,this.player.elements.container,"dblclick",t=>{r.element(this.player.elements.controls)&&this.player.elements.controls.contains(t.target)||this.player.listeners.proxy(t,this.toggle,"fullscreen")}),L.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(r.function(document.exitFullscreen))return"";let i="";return["webkit","moz","ms"].some(t=>!(!r.function(document[`${t}ExitFullscreen`])&&!r.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 Ce(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 be(e,i=1){return new Promise((t,s)=>{const a=new Image,n=()=>{delete a.onload,delete a.onerror,(a.naturalWidth>=i?t:s)(a)};Object.assign(a,{onload:n,onerror:n,src:e})})}const S={addStyleHook(){A(this.elements.container,this.config.selectors.container.replace(".",""),!0),A(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 S.toggleNativeControls.call(this,!0);r.element(this.elements.controls)||(p.inject.call(this),this.listeners.controls()),S.toggleNativeControls.call(this),this.isHTML5&&E.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,p.updateVolume.call(this),p.timeUpdate.call(this),p.durationUpdate.call(this),S.checkPlaying.call(this),A(this.elements.container,this.config.classNames.pip.supported,F.pip&&this.isHTML5&&this.isVideo),A(this.elements.container,this.config.classNames.airplay.supported,F.airplay&&this.isHTML5),A(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{b.call(this,this.media,"ready")},0),S.setTitle.call(this),this.poster&&S.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&p.durationUpdate.call(this),this.config.mediaMetadata&&p.setMediaMetadata.call(this)},setTitle(){let e=I.get("play",this.config);if(r.string(this.config.title)&&!r.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=$.call(this,"iframe");if(!r.element(i))return;const t=r.empty(this.config.title)?"video":this.config.title,s=I.get("frameTitle",this.config);i.setAttribute("title",s.replace("{title}",t))}},togglePoster(e){A(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"),Oi.call(this).then(()=>be(e)).catch(t=>{throw e===this.poster&&S.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:""}),S.togglePoster.call(this,!0),e)))},checkPlaying(e){A(this.elements.container,this.config.classNames.playing,this.playing),A(this.elements.container,this.config.classNames.paused,this.paused),A(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",I.get(this.playing?"pause":"play",this.config))}),r.event(e)&&e.type==="timeupdate"||S.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{A(this.elements.container,this.config.classNames.loading,this.loading),S.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=>!r.empty(e)&&r.string(e)&&e.startsWith("--plyr")).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),r.empty(this.media.style)&&this.media.removeAttribute("style")}};class Ki{constructor(i){m(this,"firstTouch",()=>{const{player:t}=this,{elements:s}=t;t.touch=!0,A(s.container,t.config.classNames.isTouch,!0)}),m(this,"global",(t=!0)=>{const{player:s}=this;s.config.keyboard.global&&ce.call(s,window,"keydown keyup",this.handleKey,t,!1),ce.call(s,document.body,"click",this.toggleMenu,t),He.call(s,document.body,"touchstart",this.firstTouch)}),m(this,"container",()=>{const{player:t}=this,{config:s,elements:a,timers:n}=t;!s.keyboard.global&&s.keyboard.focused&&L.call(t,a.container,"keydown keyup",this.handleKey,!1),L.call(t,a.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",c=>{const{controls:u}=a;u&&c.type==="enterfullscreen"&&(u.pressed=!1,u.hover=!1);let h=0;["touchstart","touchmove","mousemove"].includes(c.type)&&(S.toggleControls.call(t,!0),h=t.touch?3e3:2e3),clearTimeout(n.controls),n.controls=setTimeout(()=>S.toggleControls.call(t,!1),h)});const l=()=>{if(!t.isVimeo||t.config.vimeo.premium)return;const c=a.wrapper,{active:u}=t.fullscreen,[h,f]=Ve.call(t),d=vt(`aspect-ratio: ${h} / ${f}`);if(!u)return void(d?(c.style.width=null,c.style.height=null):(c.style.maxWidth=null,c.style.margin=null));const[v,C]=ji(),k=v/C>h/f;d?(c.style.width=k?"auto":"100%",c.style.height=k?"100%":"auto"):(c.style.maxWidth=k?C/f*h+"px":null,c.style.margin=k?"0 auto":null)},o=()=>{clearTimeout(n.resized),n.resized=setTimeout(l,50)};L.call(t,a.container,"enterfullscreen exitfullscreen",c=>{const{target:u}=t.fullscreen;u===a.container&&(!t.isEmbed&&r.empty(t.config.ratio)||(l(),(c.type==="enterfullscreen"?L:Le).call(t,window,"resize",o)))})}),m(this,"media",()=>{const{player:t}=this,{elements:s}=t;if(L.call(t,t.media,"timeupdate seeking seeked",n=>p.timeUpdate.call(t,n)),L.call(t,t.media,"durationchange loadeddata loadedmetadata",n=>p.durationUpdate.call(t,n)),L.call(t,t.media,"ended",()=>{t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())}),L.call(t,t.media,"progress playing seeking seeked",n=>p.updateProgress.call(t,n)),L.call(t,t.media,"volumechange",n=>p.updateVolume.call(t,n)),L.call(t,t.media,"playing play pause ended emptied timeupdate",n=>S.checkPlaying.call(t,n)),L.call(t,t.media,"waiting canplay seeked playing",n=>S.checkLoading.call(t,n)),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){const n=$.call(t,`.${t.config.classNames.video}`);
vendor: 2,152 bytes, line 2
2if(!r.element(n))return;L.call(t,s.container,"click",l=>{([s.container,n].includes(l.target)||n.contains(l.target))&&(t.touch&&t.config.hideControls||(t.ended?(this.proxy(l,t.restart,"restart"),this.proxy(l,()=>{U(t.play())},"play")):this.proxy(l,()=>{U(t.togglePlay())},"play")))})}t.supported.ui&&t.config.disableContextMenu&&L.call(t,s.wrapper,"contextmenu",n=>{n.preventDefault()},!1),L.call(t,t.media,"volumechange",()=>{t.storage.set({volume:t.volume,muted:t.muted})}),L.call(t,t.media,"ratechange",()=>{p.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})}),L.call(t,t.media,"qualitychange",n=>{p.updateSetting.call(t,"quality",null,n.detail.quality)}),L.call(t,t.media,"ready qualitychange",()=>{p.setDownloadUrl.call(t)});const a=t.config.events.concat(["keyup","keydown"]).join(" ");L.call(t,t.media,a,n=>{let{detail:l={}}=n;n.type==="error"&&(l=t.media.error),b.call(t,s.container,n.type,!0,l)})}),m(this,"proxy",(t,s,a)=>{const{player:n}=this,l=n.config.listeners[a];let o=!0;r.function(l)&&(o=l.call(n,t)),o!==!1&&r.function(s)&&s.call(n,t)}),m(this,"bind",(t,s,a,n,l=!0)=>{const{player:o}=this,c=o.config.listeners[n],u=r.function(c);L.call(o,t,s,h=>this.proxy(h,a,n),l&&!u)}),m(this,"controls",()=>{const{player:t}=this,{elements:s}=t,a=O.isIE?"change":"input";if(s.buttons.play&&Array.from(s.buttons.play).forEach(n=>{this.bind(n,"click",()=>{U(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",n=>{n.stopPropagation(),n.preventDefault(),p.toggleMenu.call(t,n)}
2,null,!1),this.bind(s.buttons.settings,"keyup",n=>{[" ","Enter"].includes(n.key)&&(n.key!=="Enter"?(n.preventDefault(),n.stopPropagation(),p.toggleMenu.call(t,n)):p.focusFirstMenuItem.call(t,null,!0))},null,!1),this.bind(s.settings.menu,"keydown",n=>{n.key==="Escape"&&p.toggleMenu.call(t,n)}),this.bind(s.inputs.seek,"mousedown mousemove",n=>{const l=s.progress.getBoundingClientRect(),o=100/l.width*(n.pageX-l.left);n.currentTarget.setAttribute("seek-value",o)}),this.bind(s.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",n=>{const l=n.currentTarget,o="play-on-seeked";if(r.keyboardEvent(n)&&!["ArrowLeft","ArrowRight"].includes(n.key))return;t.lastSeekTime=Date.now();const c=l.hasAttribute(o),u=["mouseup","touchend","keyup"].includes(n.type);c&&u?(l.removeAttribute(o),U(t.play())):!u&&t.playing&&(l.setAttribute(o,""),t.pause())}),O.isIos){const n=oe.call(t,'input[type="range"]');Array.from(n).forEach(l=>this.bind(l,a,o=>gt(o.target)))}this.bind(s.inputs.seek,a,n=>{const l=n.currentTarget;let o=l.getAttribute("seek-value");r.empty(o)&&(o=l.value),l.removeAttribute("seek-value"),t.currentTime=o/l.max*t.duration},"seek"),this.bind(s.progress,"mouseenter mouseleave mousemove",n=>p.updateSeekTooltip.call(t,n)),this.bind(s.progress,"mousemove touchmove",n=>{const{previewThumbnails:l}=t;l&&l.loaded&&l.startMove(n)}),this.bind(s.progress,"mouseleave touchend click",()=>{const{previewThumbnails:n}=t;n&&n.loaded&&n.endMove(!1,!0)}),this.bind(s.progress,"mousedown touchstart",n=>{const{previewThumbnails:l}=t;l&&l.loaded&&l.startScrubbing(n)}),this.bind(s.progress,"mouseup touchend",n=>{const{previewThumbnails:l}=t;l&&l.loaded&&l.endScrubbing(n)}),O.isWebKit&&Array.from(oe.call(t,'input[type="range"]')).forEach(n=>{this.bind(n,"input",l=>p.updateRangeFill.call(t,l.target))}),t.config.toggleInvert&&!r.element(s.display.duration)&&this.bind(s.display.currentTime,"click",()=>{t.currentTime!==0&&(t.config.invertTime=!t.config.invertTime,p.timeUpdate.call(t))}),this.bind(s.inputs.volume,a,n=>{t.volume=n.target.value},"volume"),this.bind(s.controls,"mouseenter mouseleave",n=>{s.controls.hover=!t.touch&&n.type==="mouseenter"}),s.fullscreen&&Array.from(s.fullscreen.children).filter(n=>
2!n.contains(s.container)).forEach(n=>{this.bind(n,"mouseenter mouseleave",l=>{s.controls&&(s.controls.hover=!t.touch&&l.type==="mouseenter")})}),this.bind(s.controls,"mousedown mouseup touchstart touchend touchcancel",n=>{s.controls.pressed=["mousedown","touchstart"].includes(n.type)}),this.bind(s.controls,"focusin",()=>{const{config:n,timers:l}=t;A(s.controls,n.classNames.noTransition,!0),S.toggleControls.call(t,!0),setTimeout(()=>{A(s.controls,n.classNames.noTransition,!1)},0);const o=this.touch?3e3:4e3;clearTimeout(l.controls),l.controls=setTimeout(()=>S.toggleControls.call(t,!1),o)}),this.bind(s.inputs.volume,"wheel",n=>{const l=n.webkitDirectionInvertedFromDevice,[o,c]=[n.deltaX,-n.deltaY].map(f=>l?-f:f),u=Math.sign(Math.abs(o)>Math.abs(c)?o:c);t.increaseVolume(u/50);const{volume:h}=t.media;(u===1&&h<1||u===-1&&h>0)&&n.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:a,type:n,altKey:l,ctrlKey:o,metaKey:c,shiftKey:u}=i,h=n==="keydown",f=h&&a===this.lastKey;if(!(l||o||c||u)&&a){if(h){const v=document.activeElement;if(r.element(v)){const{editable:C}=t.config.selectors,{seek:k}=s.inputs;if(v!==k&&te(v,C)||i.key===" "&&te(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(a)&&(i.preventDefault(),i.stopPropagation()),a){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":f||(d=parseInt(a,10),t.currentTime=t.duration/10*d);break;case" ":case"k":f||U(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}a==="Escape"&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=a}else this.lastKey=null;var d}}toggleMenu(i){p.toggleMenu.call(this.player,i)}}function Yi(e,i){return e(i={exports:{}},i.exports),i.exports}var Qi=Yi(function(e,i){e.exports=function(){var t=function(){},s={},a={},n={};function l(d,v){d=d.push?d:[d];var C,k,P,w=[],g=d.length,T=g;for(C=function(_,N){N.length&&w.push(_),--T||v(w)};g--;)k=d[g],(P=a[k])?C(k,P):(n[k]=n[k]||[]).push(C)}function o(d,v){if(d){var C=n[d];if(a[d]=v,C)for(;C.length;)C[0](d,v),C.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,C,k){var P,w,g=document,T=C.async,_=(C.numRetries||0)+1,N=C.before||t,R=d.replace(/[\?|#].*$/,""),D=d.replace(/^(css|img)!/,"");k=k||0,/(^css!|\.css$)/.test(R)?((w=g.createElement("link")).rel="stylesheet",w.href=D,(P="hideFocus"in w)&&w.relList&&(P=0,w.rel="preload",w.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(R)?(w=g.createElement("img")).src=D:((w=g.createElement("script")).src=d,w.async=T===void 0||T),w.onload=w.onerror=w.onbeforeload=function(Q){var B=Q.type[0];if(P)try{w.sheet.cssText.length||(B="e")}catch(me){me.code!=18&&(B="e")}if(B=="e"){if((k+=1)<_)return u(d,v,C,k)}else if(w.rel=="preload"&&w.as=="style")return w.rel="stylesheet";v(d,B,Q.defaultPrevented)},N(d,w)!==!1&&g.head.appendChild(w)}function h(d,v,C){var k,P,w=(d=d.push?d:[d]).length,g=w,T=[];for(k=function(_,N,R){if(N=="e"&&T.push(_),N=="b"){if(!R)return;T.push(_)}--w||v(T)},P=0;P<g;P++)u(d[P],k,C)}function f(d,v,C){var k,P;if(v&&v.trim&&(k=v),P=(k?C:v)||{},k){if(k in s)throw"LoadJS";s[k]=!0}function w(g,T){h(d,function(_){c(P,_),g&&c({success:g,error:T},_),o(k,_)},P)}if(P.returnPromise)return new Promise(w);w()}return f.ready=function(d,v){return l(d,function(C){c(v,C)}),f},f.done=function(d){o(d,[])},f.reset=function(){s={},a={},n={}},f.isDefined=function(d){return d in s},f}()});function Ue(e){return new Promise((i,t)=>{Qi(e,{success:i,error:t})})}function Xi(e){return r.empty(e)?null:r.number(Number(e))?e:e.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:e}function Ji(e){const i=e.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return i&&i.length===5?i[4]:null}function ae(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 Oe={setup(){const e=this;A(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,ie.call(e),r.object(window.Vimeo)?Oe.ready.call(e):Ue(e.config.urls.vimeo.sdk).then(()=>{Oe.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,...a}=i;let n=e.media.getAttribute("src"),l="";r.empty(n)?(n=e.media.getAttribute(e.config.attributes.embed.id),l=e.media.getAttribute(e.config.attributes.embed.hash)):l=Ji(n);const o=l?{h:l}:{};t&&Object.assign(a,{controls:!1,sidedock:!1});const c=At({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:e.config.playsinline,...o,...a}),u=Xi(n),h=y("iframe"),f=Ie(e.config.urls.vimeo.iframe,u,c);if(h.setAttribute("src",f),h.setAttribute("allowfullscreen",""),h.setAttribute("allow",["auto
2play","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),r.empty(s)||h.setAttribute("referrerPolicy",s),t||!i.customControls)h.setAttribute("data-poster",e.poster),e.media=we(h,e.media);else{const g=y("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});g.appendChild(h),e.media=we(g,e.media)}i.customControls||pe(Ie(e.config.urls.vimeo.api,f)).then(g=>{!r.empty(g)&&g.thumbnail_url&&S.setPoster.call(e,g.thumbnail_url).catch(()=>{})}),e.embed=new window.Vimeo.Player(h,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(ae.call(e,!0),e.embed.play()),e.media.pause=()=>(ae.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(g){const{embed:T,media:_,paused:N,volume:R}=e,D=N&&!T.hasPlayed;_.seeking=!0,b.call(e,_,"seeking"),Promise.resolve(D&&T.setVolume(0)).then(()=>T.setCurrentTime(g)).then(()=>D&&T.pause()).then(()=>D&&T.setVolume(R)).catch(()=>{})}});let v=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:()=>v,set(g){e.embed.setPlaybackRate(g).then(()=>{v=g,b.call(e,e.media,"ratechange")}).catch(()=>{e.options.speed=[1]})}});let{volume:C}=e.config;Object.defineProperty(e.media,"volume",{get:()=>C,set(g){e.embed.setVolume(g).then(()=>{C=g,b.call(e,e.media,"volumechange")})}});let{muted:k}=e.config;Object.defineProperty(e.media,"muted",{get:()=>k,set(g){const T=!!r.boolean(g)&&g;e.embed.setMuted(!!T||e.config.muted).then(()=>{k=T,b.call(e,e.media,"volumechange")})}});let P,{loop:w}=e.config;Object.defineProperty(e.media,"loop",{get:()=>w,set(g){const T=r.boolean(g)?g:e.config.loop.active;e.embed.setLoop(T).then(()=>{w=T})}}),e.embed.getVideoUrl().then(g=>{P=g,p.setDownloadUrl.call(e)}).catch(g=>{this.debug.warn(g)}),Object.defineProperty(e.media,"currentSrc",{get:()=>P}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(g=>{const[T,_]=g;e.embed.ratio=Ct(T,_),ie.call(this)}),e.embed.setAutopause(e.config.autopause).then(g=>{e.config.autopause=g}),e.embed.getVideoTitle().then(g=>{e.config.title=g,S.setTitle.call(this)}),e.embed.getCurrentTime().then(g=>{d=g,b.call(e,e.media,"timeupdate")}),e.embed.getDuration().then(g=>{e.media.duration=g,b.call(e,e.media,"durationchange")}),e.embed.getTextTracks().then(g=>{e.media.textTracks=g,E.setup.call(e)}),e.embed.on("cuechange",({cues:g=[]})=>{const T=g.map(_=>Hi(_.text));E.updateCues.call(e,T)}),e.embed.on("loaded",()=>{e.embed.getPaused().then(g=>{ae.call(e,!g),g||b.call(e,e.media,"playing")}),r.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",()=>{ae.call(e,!0),b.call(e,e.media,"playing")}),e.embed.on("pause",()=>{ae.call(e,!1)}),e.embed.on("timeupdate",g=>{e.media.seeking=!1,d=g.seconds,b.call(e,e.media,"timeupdate")}),e.embed.on("progress",g=>{e.media.buffered=g.percent,b.call(e,e.media,"progress"),parseInt(g.percent,10)===1&&b.call(e,e.media,"canplaythrough"),e.embed.getDuration().then(T=>{T!==e.media.duration&&(e.media.duration=T,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",g=>{e.media.error=g,b.call(e,e.media,"error")}),i.customControls&&setTimeout(()=>S.build.call(e),0)}};function Gi(e){return r.empty(e)?null:e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:e}function re(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 es(e){return e.noCookie?"https://www.youtube-nocookie.com":window.location.protocol==="http:"?"http://www.youtube.com":void 0}const ve={setup(){if(A(this.elements.wrapper,this.config.classNames.embed,!0),r.object(window.YT)&&r.function(window.YT.Player))ve.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{r.function(e)&&e(),ve.ready.call(this)},Ue(this.config.urls.youtube.sdk).catch(i=>{this.debug.warn("YouTube API failed to load",i)})}},getTitle(e){pe(Ie(this.config.urls.youtube.api,e)).then(i=>{if(r.object(i)){const{title:t,height:s,width:a}=i;this.config.title=t,S.setTitle.call(this),this.embed.ratio=Ct(a,s)}ie.call(this)}).catch(()=>{ie.call(this)})},ready(){const e=this,i=e.config.youtube,t=e.media&&e.media.getAttribute("id");if(!r.empty(t)&&t.startsWith("youtube-"))return;let s=e.media.getAttribute("src");r.empty(s)&&(s=e.media.getAttribute(this.config.attributes.embed.id));const a=Gi(s),n=y("div",{id:Di(e.provider),"data-poster":i.customControls?e.poster:void 0});if(e.media=we(n,e.media),i.customControls){const l=o=>`https://i.ytimg.com/vi/${a}/${o}default.jpg`;be(l("maxres"),121).catch(()=>
vendor: 11,612 bytes, line 2
2be(l("sd"),121)).catch(()=>be(l("hq"))).then(o=>S.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:a,host:es(i),playerVars:x({},{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(l){if(!e.media.error){const o=l.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(l){const o=l.target;e.media.playbackRate=o.getPlaybackRate(),b.call(e,e.media,"ratechange")},onReady(l){if(r.function(e.media.play))return;const o=l.target;ve.getTitle.call(e,a),e.media.play=()=>{re.call(e,!0),o.playVideo()},e.media.pause=()=>{re.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=r.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 h=o.getAvailablePlaybackRates();e.options.speed=h.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.lastBuffered<e.media.buffered)&&b.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,e.media.buffered===1&&(clearInterval(e.timers.buffering),b.call(e,e.media,"canplaythrough"))},200),i.customControls&&setTimeout(()=>S.build.call(e),50)},onStateChange(l){const o=l.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(l.data)&&(e.media.seeking=!1,b.call(e,e.media,"seeked")),l.data){case-1:b.call(e,e.media,"timeupdate"),e.media.buffered=o.getVideoLoadedFraction(),b.call(e,e.media,"progress");break;case 0:re.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():(re.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(),re.call(e,!1);break;case 3:b.call(e,e.media,"waiting")}b.call(e,e.elements.container,"statechange",!1,{code:l.data})}}})}},Pt={setup(){this.media?(A(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),A(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&A(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=y("div",{class:this.config.classNames.video}),yt(this.media,this.elements.wrapper),this.elements.poster=y("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?J.setup.call(this):this.isYouTube?ve.setup.call(this):this.isVimeo&&Oe.setup.call(this)):this.debug.warn("No media element found!")}};class ts{constructor(i){m(this,"load",()=>{this.enabled&&(r.object(window.google)&&r.object(window.google.ima)?this.ready():Ue(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=Ee(Math.max(this.manager.getRemainingTime(),0)),a=`${I.get("advertisement",this.player.config)} - ${s}`;this.elements.container.setAttribute("data-badge-text",a)},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,a=>this.onAdError(a)),Object.keys(google.ima.AdEvent.Type).forEach(a=>{this.manager.addEventListener(google.ima.AdEvent.Type[a],n=>this.onAdEvent(n))}),this.trigger("loaded")}),m(this,"addCuePoints",()=>{r.empty(this.cuePoints)||this.cuePoints.forEach(t=>{if(t!==0&&t!==-1&&t<this.player.duration){const s=this.player.elements.progress;if(r.element(s)){const a=100/this.player.duration*t,n=y("span",{class:this.player.config.classNames.cues});n.style.left=`${a.toString()}%`,s.appendChild(n)}}})}),m(this,"onAdEvent",t=>{const{container:s}=this.player.elements,a=t.getAd(),n=t.getAdData();switch((l=>{b.call(this.player,this.player.media,`ads${l.replace(/_/g,"").toLowerCase()}`)})(t.type),t.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),a.isLinear()||(a.width=s.offsetWidth,a.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:n.adError&&this.player.debug.warn(`Non-fatal ad error: ${n.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 a=this.player.currentTime;r.empty(this.cuePoints)||this.cuePoints.forEach((n,l)=>{s<n&&n<a&&(this.manager.discardAdBreak(),this.cuePoints.splice(l,1))})}),window.addEventListener("resize",()=>{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,U(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 a=this.events[t];r.array(a)&&a.forEach(n=>{r.function(n)&&n.apply(this,s)})}),m(this,"on",(t,s)=>(r.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=>{r.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&&(!r.empty(i.publisherId)||r.url(i.tagUrl))}get tagUrl(){const{config:i}=this;return r.url(i.tagUrl)?i.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${At({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 is=e=>{const i=[];
2return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(t=>{const s={};t.split(/\r\n|\n|\r/).forEach(a=>{if(r.number(s.startTime)){if(!r.empty(a.trim())&&r.empty(s.text)){const n=a.trim().split("#xywh=");[s.text]=n,n[1]&&([s.x,s.y,s.w,s.h]=n[1].split(","))}}else{const n=a.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})/);n&&(s.startTime=60*Number(n[1]||0)*60+60*Number(n[2])+Number(n[3])+ +`0.${n[4]}`,s.endTime=60*Number(n[6]||0)*60+60*Number(n[7])+Number(n[8])+ +`0.${n[9]}`)}}),s.text&&i.push(s)}),i},it=(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 je{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(r.empty(s))throw new Error("Missing previewThumbnails.src config attribute");const a=()=>{this.thumbnails.sort((n,l)=>n.height-l.height),this.player.debug.log("Preview thumbnails",this.thumbnails),t()};if(r.function(s))s(n=>{this.thumbnails=n,a()});else{const n=(r.string(s)?[s]:s).map(l=>this.getThumbnail(l));Promise.all(n).then(a)}})),m(this,"getThumbnail",t=>new Promise(s=>{pe(t).then(a=>{const n={frames:is(a),height:null,urlPrefix:""};n.frames[0].text.startsWith("/")||n.frames[0].text.startsWith("http://")||n.frames[0].text.startsWith("https://")||(n.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));const l=new Image;l.onload=()=>{n.height=l.naturalHeight,n.width=l.naturalWidth,this.thumbnails.push(n),s()},l.src=n.urlPrefix+n.frames[0].text})})),m(this,"startMove",t=>{if(this.loaded&&r.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,a;const n=this.player.elements.progress.getBoundingClientRect(),l=100/n.width*(t.pageX-n.left);this.seekTime=this.player.media.duration*(l/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=Ee(this.seekTime);const o=(s=this.player.config.markers)===null||s===void 0||(a=s.points)===null||a===void 0?void 0:a.find(({time:c})=>c===Math.round(this.seekTime));o&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${o.label}<br>`)}this.showImageAtCurrentTime()}}),m(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),m(this,"startScrubbing",t=>{(r.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):He.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),r.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();
vendor: 9,173 bytes, line 2
2const t=this.thumbnails[0].frames.findIndex(n=>this.seekTime>=n.startTime&&this.seekTime<=n.endTime),s=t>=0;let a=0;this.mouseDown||this.toggleThumbContainer(s),s&&(this.thumbnails.forEach((n,l)=>{this.loadedImages.includes(n.frames[t].text)&&(a=l)}),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(a)))}),m(this,"loadImage",(t=0)=>{const s=this.showingThumb,a=this.thumbnails[t],{urlPrefix:n}=a,l=a.frames[s],o=a.frames[s].text,c=n+o;if(this.currentImageElement&&this.currentImageElement.dataset.filename===o)this.showImage(this.currentImageElement,l,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,l,t,s,o,!0),this.loadingImage=u,this.removeOldImages(u)}}),m(this,"showImage",(t,s,a,n,l,o=!0)=>{this.player.debug.log(`Showing thumb: ${l}. num: ${n}. qual: ${a}. newimg: ${o}`),this.setImageSizeAndOffset(t,s),o&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(l)||this.loadedImages.push(l)),this.preloadNearby(n,!0).then(this.preloadNearby(n,!1)).then(this.getHigherQuality(a,t,s,l))}),m(this,"removeOldImages",t=>{Array.from(this.currentImageContainer.children).forEach(s=>{if(s.tagName.toLowerCase()!=="img")return;const a=this.usingSprites?500:1e3;if(s.dataset.index!==t.dataset.index&&!s.dataset.deleting){s.dataset.deleting=!0;const{currentImageContainer:n}=this;setTimeout(()=>{n.removeChild(s),this.player.debug.log(`Removing thumb: ${s.dataset.filename}`)},a)}})}),m(this,"preloadNearby",(t,s=!0)=>new Promise(a=>{setTimeout(()=>{const n=this.thumbnails[0].frames[t].text;if(this.showingThumbFilename===n){let l;l=s?this.thumbnails[0].frames.slice(t):this.thumbnails[0].frames.slice(0,t).reverse();let o=!1;l.forEach(c=>{const u=c.text;if(u!==n&&!this.loadedImages.includes(u)){o=!0,this.player.debug.log(`Preloading thumb filename: ${u}`);const{urlPrefix:h}=this.thumbnails[0],f=h+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),a()}}}),o||a()}},300)})),m(this,"getHigherQuality",(t,s,a,n)=>{if(t<this.thumbnails.length-1){let l=s.naturalHeight;this.usingSprites&&(l=a.h),l<this.thumbContainerHeight&&setTimeout(()=>{this.showingThumbFilename===n&&(this.player.debug.log(`Showing higher quality thumb for: ${n}`),this.loadImage(t+1))},300)}}),m(this,"toggleThumbContainer",(t=!1,s=!1)=>{const a=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(a,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:a}=this.elements.thumb,n=s.left-t.left+10,l=s.right-t.left-a.clientWidth-10,o=this.mousePosX-t.left-a.clientWidth/2,c=Mt(o,n,l);a.style.left=`${c}px`,a.style.setProperty("--preview-arrow-offset",o-c+"px")}),m(this,"setScrubbingContainerSize",()=>{const{width:t,height:s}=it(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 a=this.thumbContainerHeight/s.h;t.style.height=t.naturalHeight*a+"px",t.style.width=t.naturalWidth*a+"px",t.style.left=`-${s.x*a}px`,t.style.top=`-${s.y*a}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}=it(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 De={insertElements(e,i){r.string(i)?Je(e,this.media,{src:i}):r.array(i)&&i.forEach(t=>{Je(e,this.media,t)})},change(e){ft(e,"sources.length")?(J.cancelRequests.call(this),this.destroy.call(this,()=>{this.options.quality=[],Z(this.media),this.media=null,r.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:i,type:t}=e,[{provider:s=X.html5,src:a}]=i,n=s==="html5"?t:"div",l=s==="html5"?{}:{src:a};Object.assign(this,{provider:s,type:t,supported:F.check(t,s,this.config.playsinline),media:y(n,l)}),this.elements.container.appendChild(this.media),r.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),r.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","")),S.addStyleHook.call(this),this.isHTML5&&De.insertElements.call(this,"source",i),this.config.title=e.title,Pt.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&De.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&S.build.call(this),this.isHTML5&&this.media.load(),r.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 je(this))),this.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};class se{constructor(i,t){if(m(this,"play",()=>r.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>U(this.media.play())),this.media.play()):null),m(this,"pause",()=>this.playing&&r.function(this.media.pause)?this.media.pause():null),m(this,"togglePlay",o=>(r.boolean(o)?o:!this.playing)?this.play():this.pause()),m(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):r.function(this.media.stop)&&this.media.stop()}),m(this,"restart",()=>{this.currentTime=0}),m(this,"rewind",o=>{this.currentTime-=r.number(o)?o:this.config.seekTime}),m(this,"forward",o=>{this.currentTime+=r.number(o)?o:this.config.seekTime}),m(this,"increaseVolume",o=>{const c=this.media.muted?0:this.volume;this.volume=c+(r.number(o)?o:0)}),m(this,"decreaseVolume",o=>{this.increaseVolume(-o)}),m(this,"airplay",()=>{F.airplay&&this.media.webkitShowPlaybackTargetPicker()}),m(this,"toggleControls",o=>{if(this.supported.ui&&!this.isAudio){const c=Ce(this.elements.container,this.config.classNames.hideControls),u=o===void 0?void 0:!o,h=A(this.elements.container,this.config.classNames.hideControls,u);if(h&&r.array(this.config.controls)&&this.config.controls.includes("settings")&&!r.empty(this.config.settings)&&p.toggleMenu.call(this,!1),h!==c){const f=h?"controlshidden":"controlsshown";b.call(this,this.media,f)}return!h}return!1}),m(this,"on",(o,c)=>{L.call(this,this.elements.container,o,c)}),m(this,"once",(o,c)=>{He.call(this,this.elements.container,o,c)}),m(this,"off",(o,c)=>{Le(this.elements.container,o,c)}),m(this,"destroy",(o,c=!1)=>
vendor: 9,264 bytes, line 2
2{if(!this.ready)return;const u=()=>{document.body.style.overflow="",this.embed=null,c?(Object.keys(this.elements).length&&(Z(this.elements.buttons.play),Z(this.elements.captions),Z(this.elements.controls),Z(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),r.function(o)&&o()):(Ii.call(this),J.cancelRequests.call(this),we(this.elements.original,this.elements.container),b.call(this,this.elements.original,"destroyed",!0),r.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?(S.toggleNativeControls.call(this,!0),u()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),this.embed!==null&&r.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=>F.mime.call(this,o)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=F.touch,this.media=i,r.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||r.nodeList(this.media)||r.array(this.media))&&(this.media=this.media[0]),this.config=x({},St,se.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 Zi(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",F),r.nullOrUndefined(this.media)||!r.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(!F.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 a=this.media.tagName.toLowerCase();let n=null,l=null;switch(a){case"div":if(n=this.media.querySelector("iframe"),r.element(n)){if(l=Et(n.getAttribute("src")),this.provider=zi(l.toString()),this.elements.container=this.media,this.media=n,this.elements.container.className="",l.search.length){const o=["1","true"];o.includes(l.searchParams.get("autoplay"))&&(this.config.autoplay=!0),o.includes(l.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=o.includes(l.searchParams.get("playsinline")),this.config.youtube.hl=l.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(r.empty(this.provider)||!Object.values(X).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=Me.video;break;case"video":case"audio":this.type=a,this.provider=X.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=F.check(this.type,this.provider),this.supported.api?(this.eventListeners=[],this.listeners=new Ki(this),this.storage=new ue(this),this.media.plyr=this,r.element(this.elements.container)||(this.elements.container=y("div"),yt(this.media,this.elements.container)),S.migrateStyles.call(this),S.addStyleHook.call(this),Pt.setup.call(this),this.config.debug&&L.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)&&S.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new ts(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>U(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new je(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===X.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===X.youtube}get isVimeo(){return this.provider===X.vimeo}get isVideo(){return this.type===Me.video}get isAudio(){return this.type===Me.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=r.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 r.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=r.number(t)&&t!==1/0?t:0;return i||s}set volume(i){let t=i;r.string(t)&&(t=Number(t)),r.number(t)||(t=this.storage.get("volume")),r.number(t)||({volume:t}=this.config),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!r.empty(i)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(i){let t=i;r.boolean(t)||(t=this.storage.get("muted")),r.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;r.number(i)&&(t=i),r.number(t)||(t=this.storage.get("speed")),r.number(t)||(t=this.config.speed.selected);const{minimumSpeed:s,maximumSpeed:a}=this;t=Mt(t,s,a),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 a=[!r.empty(i)&&Number(i),this.storage.get("quality"),t.selected,t.default].find(r.number),n=!0;if(!s.includes(a)){const l=bt(s,a);this.debug.warn(`Unsupported quality option: ${a}, using ${l} instead`),a=l,n=!1}t.selected=a,this.media.quality=a,n&&this.storage.set({quality:a})}get quality(){return this.media.quality}set loop(i){const t=r.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){De.change.call(this,i)}get source(){return this.media.currentSrc}get download(){const{download:i}=this.config.urls;return r.url(i)?i:this.source}set download(i){r.url(i)&&(this.config.urls.download=i,p.setDownloadUrl.call(this))}set poster(i){this.isVideo?S.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=ke(Ve.call(this));return r.array(i)?i.join(":"):i}set ratio(i){this.isVideo?r.string(i)&&wt(i)?(this.config.ratio=ke(i),ie.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=r.boolean(i)?i:this.config.autoplay}get autoplay(){return!!this.config.autoplay}toggleCaptions(i){E.toggle.call(this,i,!1)}set currentTrack(i){E.set.call(this,i,!1),E.setup.call(this)}get currentTrack(){const{toggled:i,currentTrack:t}=this.captions;return i?t:-1}set language(i){E.setLanguage.call(this,i,!1)}get language(){return(E.getCurrentTrack.call(this)||{}).language}set pip(i){if(!F.pip)return;const t=r.boolean(i)?i:!this.pip;r.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?Pe.active:Pe.inactive),r.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return F.pip?r.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Pe.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 je(this))}
2static supported(i,t){return F.check(i,t)}static loadSprite(i,t){return Tt(i,t)}static setup(i,t={}){let s=null;return r.string(i)?s=Array.from(document.querySelectorAll(i)):r.nodeList(i)?s=Array.from(i):r.array(i)&&(s=i.filter(r.element)),r.empty(s)?null:s.map(a=>new se(a,t))}}se.defaults=xi(St);const ss={name:"VideoLocal",props:{video:{type:Object,default:()=>{}}},setup(){const{setAssetDomain:e}=$t();return{setAssetDomain:e}},data(){return{player:null}},computed:{webmUrl(){return this.video.webm&&this.video.webm.data&&this.video.webm.data.attributes?this.setAssetDomain(this.video.webm.data.attributes.url):null},mp4Url(){return this.video.mp4&&this.video.mp4.data&&this.video.mp4.data.attributes?this.setAssetDomain(this.video.mp4.data.attributes.url):null}},mounted(){this.player=new se(this.$refs.playerRef),this.player.play()}},ns={key:0,class:"h-full"},as={ref:"playerRef"},rs=["src"],ls=["src"];function os(e,i,t,s,a,n){return t.video?(W(),K("div",ns,[ee("video",as,[n.webmUrl?(W(),K("source",{key:0,src:n.webmUrl,type:"video/webm"},null,8,rs)):fe("",!0),n.mp4Url?(W(),K("source",{key:1,src:n.mp4Url,type:"video/mp4"},null,8,ls)):fe("",!0)],512)])):fe("",!0)}const Ts=Re(ss,[["render",os]]),cs={props:{video:{type:Object,default:()=>{}}},aspect:{type:String,default:"16:9"},data(){return{player:null}},computed:{url(){let e="";if(this.video.source)switch(this.video.source.toLowerCase()){case"youtube":e=`https://www.youtube.com/embed/${this.video.embedCode}?iv_load_policy=3&modestbranding=1&showinfo=0&rel=0&enablejsapi=1`;break;case"vimeo":e=`https://player.vimeo.com/video/${this.video.embedCode}?loop=false&byline=false&portrait=false&title=false&speed=true&transparent=0&gesture=media`;break;default:e=`https://www.youtube.com/embed/${this.video.embedCode}?iv_load_policy=3&modestbranding=1&showinfo=0&rel=0&enablejsapi=1`;break}return e}},mounted(){this.player=new se(this.$refs.playerRef,{ratio:this.aspect}),this.player.on("ready",()=>{this.player.play()})}},us={class:"videoEmbed__embed h-full"},ds={ref:"playerRef",class:"plyr__video-embed"},hs=["src"];function ps(e,i,t,s,a,n){return W(),K("div",us,[ee("div",ds,[n.url?(W(),K("iframe",{key:0,src:n.url,allowfullscreen:"",allowtransparency:""},null,8,hs)):fe("",!0)],512)])}const Ls=Re(cs,[["render",ps]]),ms={class:"round relative aspect-[16/10] overflow-hidden"},gs={class:"absolute inset-0"},fs=nt('<div class="relative translate-y-6/12"><button class="absolute flex h-64 w-64 -translate-x-6/12 -translate-y-6/12 flex-col items-center justify-center gap-4 roun
2ded-full bg-white lg:h-108 lg:w-108"><span class="fatfrank-20-font">DRAG</span><div class="w-28 lg:w-48"><svg viewBox="0 0 45 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.1855 8.08545L2.67763 8.08545" stroke="#FF8702" stroke-width="2" stroke-linecap="round"></path><path d="M7.89648 1.86865L1.66626 8.08528L7.89648 14.3019" stroke="#FF8702" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M27.9854 8.08545L42.4933 8.08545" stroke="#FF8702" stroke-width="2" stroke-linecap="round"></path><path d="M37.2744 1.86865L43.5046 8.08528L37.2744 14.3019" stroke="#FF8702" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg></div></button></div>',1),ys=[fs],bs={__name:"ImageDragger",props:{before:{type:Object,required:!0},after:{type:Object,required:!0}},setup(e){const{$gsap:i}=Bt(),t=ge(50),s=ge(null),a=ge(null);return Ot(t,n=>{i.to(s.value,{clipPath:`polygon(0 0, ${n}% 0, ${n}% 100%, 0% 100%)`,duration:.1}),i.to(a.value,{left:`${n}%`,duration:.1})}),(n,l)=>{const o=st;return W(),K("div",ms,[xe(o,{image:e.before,classname:"h-full w-full object-cover"},null,8,["image"]),ee("div",{ref_key:"coverImageRef",ref:s,class:"absolute left-0 top-0 h-full w-full",style:{"clip-path":"polygon(0 0, 50% 0, 50% 100%, 0% 100%)"}},[xe(o,{image:e.after,classname:"h-full w-full object-cover object-left"},null,8,["image"])],512),ee("div",gs,[jt(ee("input",{"onUpdate:modelValue":l[0]||(l[0]=c=>qt(t)?t.value=c:null),type:"range",min:"0",max:"100",class:"h-full w-full cursor-grab opacity-0"},null,512),[[Dt,Rt(t)]])]),ee("div",{ref_key:"btnRef",ref:a,class:"pointer-events-none absolute inset-y-0 left-6/12 flex w-2 flex-col justify-center bg-white"},ys,512)])}}},Es=bs;export{Cs as A,Ls as E,Ts as L,ks as _,Es as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.