1/*! For license information please see frontend.js.LICENSE.txt */ 2!function(){var e={84:function(){document.addEventListener("DOMContentLoaded",()=>{const e=()=>{const e=window.innerWidth-document.documentElement.clientWidth;document.documentElement.style.setProperty("--scrollbar-width",`${e}px`)};e(),window.addEventListener("resize",e)})},105:function(){document.addEventListener("DOMContentLoaded",()=>{const{body:e}=document;if(!e.classList.contains("home"))return;const t=e.querySelector(".home-poll");if(!t)return;const{redirectLink:i}=t.dataset;if(!i)return;let n=!1;new PerformanceObserver(e=>{e.getEntries().forEach(e=>{const{initiatorType:s,name:a}=e;if(["xmlhttprequest","fetch"].includes(s)){if(a.includes("vote-js.php")){n=!0;const e=t.querySelector(".crowdsignal-poll-wrapper"),i=e.offsetHeight,s=t.querySelector(".home-poll__discuss"),a=document.createElement("div");a.className="crowdsignal-poll-wrapper",a.style.cssText=`\n\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\theight: 100%;\n\t\t\t\t\t\t\tmargin-block: var(--sp-small);\n\t\t\t\t\t\t\tmin-height: ${i}px;\n\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t`;const o=document.createElement("div");o.className="loading-icon";const r=document.createElement("div");r.className="crowdsignal-forms-poll__content";const l=document.createElement("div");l.className="crowdsignal-forms-poll",l.style.cssText="\n\t\t\t\t\t\t\tdisplay: grid;\n\t\t\t\t\t\t\tplace-items: center;\n\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t",r.appendChild(o),l.appendChild(r),a.appendChild(l),e.replaceWith(a),t.removeChild(s)}n&&a.includes("poll")&&a.includes("results")&&(window.location.href=(e=>{const t=new URL(e),i=new URL(window.location.origin);return i.pathname=t.pathname,i.hash="#single-comments-link",i.toString()})(i))}})}).observe({entryTypes:["resource"]})})},131:function(){document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll("lite-youtube").forEach(e=>{const t=e.getAttribute("videoid");if(!t)return;const i=e.querySelector(".lty-playbtn");i&&i.addEventListener("click",()=>{document.querySelectorAll(`lite-youtube:not([videoid="${t}"]) iframe`).forEach(e=>{e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})})})})},265:function(){(()=>{if(!window.matchMedia("(min-width: 60em)").matches)return;const e=document.querySelectorAll("aside.sidebar .author-affiliate-ad-wrapper");if(e.length<=1)return;if(!document.querySelector("body.single .post-content"))return;let t=0;setInterval(()=>{var i;t++,t>=e.length&&(t=0),e.forEach(e=>{e.setAttribute("aria-hidden","true")}),i=t,e.forEach((e,t)=>{t===i&&e.setAttribute("aria-hidden","false")})},3e4)})()},516:function(){document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelector(".home-poll");if(!e)return;const t=e.querySelector(".home-poll__discuss");t&&new MutationObserver((i,n)=>{const s=e.querySelector(".crowdsignal-forms-poll__submit-button"),a=e.querySelector(".crowdsignal-forms-poll__actions");s&&(a.appendChild(t),n.disconnect())}).observe(e,{childList:!0,subtree:!0})})},577:function(){document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("disqus_thread"),t=document.getElementById("openweb-comments");if((!e||void 0===e)&&(!t||void 0===t))return;const i=t||e,n=document.querySelector("#comments .expand-comments"),s=document.body.classList.contains("extended-comments"),a=document.getElementById("single-comments-link"),o=document.querySelectorAll(".top-comment a"),r=()=>{i.setAttribute("aria-hidden","false"),n.setAttribute("aria-expanded","true"),i.style.maxHeight="none"};s||(i.setAttribute("aria-hidden","true"),n.setAttribute("aria-expanded","false"),i.style.maxHeight="300px"),a.addEventListener("click",r),o.length&&o.forEach(function(e){e.addEventListener("click",r)}),n.addEventListener("click",()=>{const e=n.getAttribute("aria-expanded");i.style.transitionProperty="height",i.style.transitionDuration="500ms","true"===e?(i.setAttribute("aria-hidden","true"),n.setAttribute("aria-expanded","false"),i.style.maxHeight="300px",i.scrollIntoView()):r()})})},640:function(e,t,i){var n;!function(){"use strict";"object"!==typeof window.UtilityMove&&(window.UtilityMove={});var i=function(e){var t=document.createElement("div");t.setAttribute("id","move-helper-text"),t.innerHTML="Some areas of this page may shift around if you resize the browser window. Be sure to check heading and document order.",t.style.position="absolute",t.style.top="-999em",t.style.left="-999em",document.getElementById("move-helper-text")||document.body.appendChild(t),document.body.setAttribute("aria-describedby","move-helper-text");
2var i,n={el:null,before:null,after:null,appendTo:null,prependTo:null,minWidth:null,refreshRate:200,useMatchMedia:!1,mediaQuery:""},s=!1,a=e.el.parentNode,o=e.el.nextSibling,r=window.matchMedia(e.mediaQuery);for(i=0;i<n.length;i+=1)"undefined"===typeof e[i]&&(e[i]=n[i]);var l=function(){e.el&&(e.before?e.before.parentNode.insertBefore(e.el,e.before):e.after?e.after.parentNode.insertBefore(e.el,e.after.nextSibling):e.prependTo?e.prependTo.insertBefore(e.el,e.prependTo.firstChild):e.appendTo&&e.appendTo.appendChild(e.el)),s=!0},c=function(){o?a.insertBefore(e.el,o):a.appendChild(e.el),s=!1};e.useMatchMedia&&e.mediaQuery&&"not all"!==r.media?(r.matches&&l(),r.addListener(function(e){e.matches?l():c()})):e.minWidth&&!e.useMatchMedia?(document.documentElement.clientWidth>e.minWidth&&!1===s?l():document.documentElement.clientWidth<=e.minWidth&&c(),window.addEventListener("resize",function(e,t,i){var n;return function(){var s=this,a=arguments,o=i&&!n;clearTimeout(n),n=setTimeout(function(){n=null,i||e.apply(s,a)},t),o&&e.apply(s,a)}}(function(){document.documentElement.clientWidth>e.minWidth&&!1===s?l():document.documentElement.clientWidth<=e.minWidth&&!0===s&&c()},e.refreshRate))):l()};"undefined"!==typeof e.exports?e.exports=i:void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}("undefined"!==typeof i.g?i.g:window)},777:function(){const e={SELECTORS:".is-clickable-card",PRIMARY_LINK_SELECTOR:":where( h1, h2, h3, h4, h5, h6, .wp-block-button ) a",DATA_ATTRIBUTE:"data-is-clickable-card",DATA_ATTRIBUTE_SECONDARY_LINK:"data-is-clickable-card-secondary-link",MAX_ALLOWED_SCROLL_DISTANCE:5,MAX_ALLOWED_TIME_BETWEEN_EVENTS:200,getEventMetadata(e){return{timestamp:+new Date,verticalScrollPosition:window.scrollY,horizontalScrollPosition:e.scrollLeft}},setupIsClickableCard(e){const t=e.querySelector(this.PRIMARY_LINK_SELECTOR);if(!t)return;e.setAttribute(this.DATA_ATTRIBUTE,"");let i,n;e.querySelectorAll(':where(button, a, [role="button"])').forEach(e=>{e!==t&&e.setAttribute(this.DATA_ATTRIBUTE_SECONDARY_LINK,"")});const s=()=>{n=this.getEventMetadata(e)},a=s=>{i=this.getEventMetadata(e);const a=s.target.closest("button"),o=s.target.closest("a");if(a||o)return;if(i.timestamp-n.timestamp>this.MAX_ALLOWED_TIME_BETWEEN_EVENTS)return;if(Math.abs(i.verticalScrollPosition-n.verticalScrollPosition)>this.MAX_ALLOWED_SCROLL_DISTANCE)return;if(Math.abs(i.horizontalScrollPosition-n.horizontalScrollPosition)>this.MAX_ALLOWED_SCROLL_DISTANCE)return;const r=new MouseEvent("click",s);t.dispatchEvent(r)};e.addEventListener("mousedown",s),e.addEventListener("mouseup",a),e.addEventListener("touchstart",s,{passive:!0}),e.addEventListener("touchend",a,{passive:!0})},init(e){let t;t=e?e.querySelectorAll(`${this.SELECTORS}`):document.querySelectorAll(`${this.SELECTORS}`),t.length&&t.forEach(e=>{this.setupIsClickableCard(e)})},infiniteScrollInit(){document.body.addEventListener("is.post-load",e=>{const t=document.createElement("html");t.innerHTML=e.detail.html;const i=t.querySelector(".infinite-wrap");if(!i.id)return;const n=document.getElementById(i.id);n&&this.init(n)})}};document.addEventListener("DOMContentLoaded",()=>{e.init(),e.infiniteScrollInit()})},819:function(){document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelector(".guide-content__read-more-button"),t=document.getElementById("ninetofive-guide-body");e&&t&&e.addEventListener("click",()=>{t.classList.toggle("expanded"),e.setAttribute("aria-expanded",t.classList.contains("expanded")?"true":"false"),t.classList.contains("expanded")?(e.querySelector(".open").style.display="none",e.querySelector(".close").style.display="block"):(e.querySelector(".open").style.display="block",e.querySelector(".close").style.display="none")})})},930:function(){document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelectorAll(".wp-block-embed.is-type-video");e&&e.forEach(e=>{const t=e.querySelector("iframe");t&&t.getAttribute("data-src")&&t.setAttribute("src",t.getAttribute("data-src"))})})},985:function(){class e extends HTMLElement{connectedCallback(){this.videoId=this.getAttribute("videoid");let t=this.querySelector(".lyt-playbtn,.lty-playbtn");if(this.playLabel=t&&t.textContent.trim()||this.getAttribute("playlabel")||"Play",this.dataset.title=this.getAttribute("title")||"",this.style.backgroundImage||(this.style.backgroundImage=`url("https://i.ytimg.com/vi/${this.videoId}/hqdefault.jpg")`,this.upgradePosterImage()),t||(t=document.createElement("button"),t.type="button",t.classList.add("lyt-playbtn","lty-playbtn"),this.append(t)),!t.textContent){const e=document.createElement("span");e.className="lyt-visually-hidden",e.textContent=this.playLabel,t.append(e)}this.addNoscriptIframe(),"A"===t.nodeName&&(t.removeAttribute("href"),t.setAttribute("tabindex","0"),t.setAttribute("role","button"),t.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.activate())})),this.addEventListener("pointerover",e.warmConnections,{once:!0}),this.addEventListener("focusin",e.warmConnections,{once:!0}),this.addEventListener("click",this.activate),this.needsYTApi=this.hasAttribute("js-api")||navigator.vendor.includes("Apple")||navigator.userAgent.includes("Mobi")}static addPrefetch(e,t,i){const n=document.createElement("link");n.rel=e,n.href=t,i&&(n.as=i),document.head.append(n)}static warmConnections(){e.preconnected||(e.addPrefetch("preconnect","https://www.youtube-nocookie.com"),e.addPrefetch("preconnect","https://www.google.com"),e.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),e.addPrefetch("preconnect","https://static.doubleclick.net"),e.preconnected=!0)}fetchYTPlayerApi(){window.YT||window.YT&&window.YT.Player||(this.ytApiPromise=new Promise((e,t)=>
2{var i=document.createElement("script");i.src="https://www.youtube.com/iframe_api",i.async=!0,i.onload=t=>{YT.ready(e)},i.onerror=t,this.append(i)}))}async getYTPlayer(){return this.playerPromise||await this.activate(),this.playerPromise}async addYTPlayerIframe(){this.fetchYTPlayerApi(),await this.ytApiPromise;const e=document.createElement("div");this.append(e);const t=Object.fromEntries(this.getParams().entries());this.playerPromise=new Promise(i=>{let n=new YT.Player(e,{width:"100%",videoId:this.videoId,playerVars:t,events:{onReady:e=>{e.target.playVideo(),i(n)}}})})}addNoscriptIframe(){const e=this.createBasicIframe(),t=document.createElement("noscript");t.innerHTML=e.outerHTML,this.append(t)}getParams(){const e=new URLSearchParams(this.getAttribute("params")||[]);return e.append("autoplay","1"),e.append("playsinline","1"),e}async activate(){if(this.classList.contains("lyt-activated"))return;if(this.classList.add("lyt-activated"),this.needsYTApi)return this.addYTPlayerIframe(this.getParams());const e=this.createBasicIframe();this.append(e),e.focus()}createBasicIframe(){const e=document.createElement("iframe");return e.width=560,e.height=315,e.title=this.playLabel,e.allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",e.allowFullscreen=!0,e.src=`https://www.youtube-nocookie.com/embed/${encodeURIComponent(this.videoId)}?${this.getParams().toString()}`,e}upgradePosterImage(){setTimeout(()=>{const e=`https://i.ytimg.com/vi_webp/${this.videoId}/sddefault.webp`,t=new Image;t.fetchPriority="low",t.referrerpolicy="origin",t.src=e,t.onload=t=>{90==t.target.naturalHeight&&120==t.target.naturalWidth||(this.style.backgroundImage=`url("${e}")`)}},100)}}customElements.define("lite-youtube",e)}},t={};function i(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,i),a.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=i(640),t=i.n(e);const n=function(){const e=document.getElementsByTagName("a");for(let t=0;t<e.length;t++){const i=e[t];i.getAttribute("href")&&i.hostname!==location.hostname&&(i.target="_blank")}},s="(min-width: 60em)";document.addEventListener("DOMContentLoaded",()=>{const{body:e}=document,i=document.getElementById("js-button-switcher"),n=document.getElementById("js-site-switcher"),a=document.getElementById("js-search-toggle"),o=document.querySelector(".header-search"),r=document.querySelectorAll(".nav-primary .menu-item-has-children > button"),l=document.getElementById("js-social-toggle"),c=document.getElementById("nav-social"),u=document.getElementById("js-main-menu-toggle"),d=document.getElementById("header-bottom"),h=document.getElementById("nav-primary"),m=document.getElementById("nav-secondary"),p=document.querySelector(".site-header"),f=window.matchMedia(s);let g=[];m&&(g=Array.from(m?.querySelectorAll(".menu-item")),g&&g.forEach((e,t)=>{e.setAttribute("data-index",t)}));const y=e=>{const t=e.parentNode.querySelector(".sub-menu");t.classList.remove("active"),t.style.height="0px",e.setAttribute("aria-expanded",!1),t.setAttribute("aria-hidden",!0)},b=(e,t)=>{e.classList.remove("active"),e.style.height="0px",t.setAttribute("aria-expanded",!1),e.setAttribute("aria-hidden",!0)},v=()=>{for(let e=0;e<r.length;e+=1)y(r[e])},w=(e,i)=>{if(!e||!i)return;const n=e.querySelector(":scope > ul"),s=i.querySelector(":scope > ul");n&&s&&(f.matches?(g.sort((e,t)=>t.dataset.index-e.dataset.index),g.forEach(e=>{t()({el:e,prependTo:n})})):(g.sort((e,t)=>e.dataset.index-t.dataset.index),g.forEach(e=>{t()({el:e,appendTo:s})})))},T=(t,s)=>{if(t.classList.contains("active"))t.style.height="0px",t.addEventListener("transitionend",()=>{t.classList.remove("active"),t.setAttribute("aria-hidden","true")},{once:!0}),s.setAttribute("aria-expanded",!1),(t.classList.contains("header-bottom")||t.classList.contains("site-switcher"))&&e.classList.remove("mobile-menu-open");else{if(v(),t.classList.contains("header-bottom")){if(t.classList.remove("scroll-down"),n.classList.contains("active")){const{transitionDuration:e}=getComputedStyle(n);n.setAttribute("data-no-transition",!0),b(n,i),setTimeout(()=>{n.removeAttribute("data-no-transition")},e)}e.classList.add("mobile-menu-open")}t.classList.contains("site-switcher")&&(v(),f.matches||(b(d,u),e.classList.add("mobile-menu-open"))),t.classList.add("active"),t.style.height="auto",t.setAttribute("aria-hidden",!1),s.setAttribute("aria-expanded",!0);let a=`${t.offsetHeight}px`;
2const o=m?m.offsetHeight:0;t.classList.contains("header-bottom")&&(a=`${window.innerHeight-p.offsetHeight-(()=>{let e=getComputedStyle(document.documentElement).getPropertyValue("--wp-admin--admin-bar--height");return e=e?e.replace("px",""):0,e&&window.matchMedia("(min-width: 600px)").matches&&(e=parseInt(e,10)),e=Number(e),e})()+o}px`),t.style.height="0px",setTimeout(()=>{t.style.height=a},0)}},E=t=>{d&&t?(d.setAttribute("aria-hidden",!1),d.style.height="auto",document.documentElement.style.setProperty("--header-bottom-height",`${d.offsetHeight}px`),e.classList.remove("mobile-menu-open")):(p.classList.remove("scroll-down"),p.classList.remove("scroll-up"),d.setAttribute("aria-hidden",!0),d.style.height="0px")};f.addEventListener("change",()=>{E(f.matches),w(h,m)}),(()=>{if(r)for(let e=0;e<r.length;e+=1){const t=r[e];v(r[e]),t.setAttribute("aria-expanded",!1),t.addEventListener("click",e=>{e.preventDefault();const i=t.parentNode.querySelector(".sub-menu");T(i,t)}),document.addEventListener("keydown",function(e){"Escape"===e.key&&v()})}u&&d&&u.addEventListener("click",()=>{T(d,u)}),i&&n&&i.addEventListener("click",()=>{T(n,i)}),a&&o&&a.addEventListener("click",()=>{(e=>{e?(a.setAttribute("aria-expanded",!1),o.setAttribute("aria-hidden",!0),a.focus()):(a.setAttribute("aria-expanded",!0),o.setAttribute("aria-hidden",!1),o.querySelector("input").focus())})("true"===a.getAttribute("aria-expanded"))}),l&&c&&l.addEventListener("click",()=>{(e=>{e?(l.setAttribute("aria-expanded",!1),c.setAttribute("aria-hidden",!0),c.setAttribute("inert",!0)):(l.setAttribute("aria-expanded",!0),c.setAttribute("aria-hidden",!1),c.removeAttribute("inert"))})("true"===l.getAttribute("aria-expanded"))});const e="scroll-up",t="scroll-down";let s=0;window.addEventListener("scroll",((e,t)=>{let i=!1;return()=>{i||(e(),i=!0,setTimeout(()=>{i=!1},t))}})(()=>{const i=window.pageYOffset;i>200?!p.classList.contains(t)&&i>s+20?(p.classList.remove(e),p.classList.add(t)):i<s-20&&p.classList.contains(t)&&(p.classList.remove(t),p.classList.add(e)):(p.classList.remove(t),p.classList.remove(e)),s=i},300),!1),window.onscrollend=()=>{window.pageYOffset<200&&(p.classList.remove(t),p.classList.remove(e))}})(),E(f.matches),w(h,m)}),document.body.addEventListener("is.post-load",function(e){if(n(),"undefined"!==typeof _quantcastId&&"object"===typeof _qevents&&_qevents.push({qacct:_quantcastId}),"object"===typeof _comscore&&"string"===typeof _comscoreId&&_comscore.push({c1:"2",c2:_comscoreId,c4:window.location.pathname}),!e?.detail?.html)return;const t=document.createElement("html");t.innerHTML=e.detail.html;const i=t.querySelector(".infinite-wrap").dataset.pageNum;if("function"===typeof loadAds&&loadAds(i),"object"===typeof dataLayer&&infiniteScroll){const e=infiniteScroll.settings.history.path.replace(/%d/,i);dataLayer.push({event:"VirtualPageview",virtualPageURL:e,virtualPageTitle:document.title})}});const{entries:a,setPrototypeOf:o,isFrozen:r,getPrototypeOf:l,getOwnPropertyDescriptor:c}=Object;let{freeze:u,seal:d,create:h}=Object,{apply:m,construct:p}="undefined"!==typeof Reflect&&Reflect;u||(u=function(e){return e}),d||(d=function(e){return e}),m||(m=function(e,t){for(var i=arguments.length,n=new Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];return e.apply(t,n)}),p||(p=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return new e(...i)});const f=N(Array.prototype.forEach),g=N(Array.prototype.lastIndexOf),y=N(Array.prototype.pop),b=N(Array.prototype.push),v=N(Array.prototype.splice),w=N(String.prototype.toLowerCase),T=N(String.prototype.toString),E=N(String.prototype.match),A=N(String.prototype.replace),k=N(String.prototype.indexOf),S=N(String.prototype.trim),C=N(Object.prototype.hasOwnProperty),L=N(RegExp.prototype.test),x=(M=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return p(M,t)});var M;function N(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];return m(e,t,n)}}function _(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;o&&o(e,null);let n=t.length;for(;n--;){let s=t[n];if("string"===typeof s){const e=i(s);e!==s&&(r(t)||(t[n]=e),s=e)}e[s]=!0}return e}function P(e){for(let t=0;t<e.length;t++){C(e,t)||(e[t]=null)}return e}function I(e){const t=h(null);
vendor: 6,649 bytes, line 2
2for(const[i,n]of a(e)){C(e,i)&&(Array.isArray(n)?t[i]=P(n):n&&"object"===typeof n&&n.constructor===Object?t[i]=I(n):t[i]=n)}return t}function O(e,t){for(;null!==e;){const i=c(e,t);if(i){if(i.get)return N(i.get);if("function"===typeof i.value)return N(i.value)}e=l(e)}return function(){return null}}const D=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),R=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),q=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),H=u(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),j=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=u(["#text"]),F=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),U=u(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z=u(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","
2subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),W=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Y=d(/<%[\w\W]*|[\w\W]*%>/gm),G=d(/\$\{[\w\W]*/gm),K=d(/^data-[\-\w.\u00B7-\uFFFF]+$/),X=d(/^aria-[\-\w]+$/),Q=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=d(/^(?:\w+script|data):/i),Z=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=d(/^html$/i),te=d(/^[a-z][.\w]*(-[.\w]+)+$/i);var ie=Object.freeze({__proto__:null,ARIA_ATTR:X,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:te,DATA_ATTR:K,DOCTYPE_NAME:ee,ERB_EXPR:Y,IS_ALLOWED_URI:Q,IS_SCRIPT_OR_DATA:J,MUSTACHE_EXPR:V,TMPLIT_EXPR:G});const ne=1,se=3,ae=7,oe=8,re=9,le=function(){return"undefined"===typeof window?null:window};var ce=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:le();const i=t=>e(t);if(i.version="3.3.0",i.removed=[],!t||!t.document||t.document.nodeType!==re||!t.Element)return i.isSupported=!1,i;let{document:n}=t;const s=n,o=s.currentScript,{DocumentFragment:r,HTMLTemplateElement:l,Node:c,Element:d,NodeFilter:m,NamedNodeMap:p=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:M,DOMParser:N,trustedTypes:P}=t,V=d.prototype,Y=O(V,"cloneNode"),G=O(V,"remove"),K=O(V,"nextSibling"),X=O(V,"childNodes"),J=O(V,"parentNode");if("function"===typeof l){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let Z,te="";const{implementation:ce,createNodeIterator:ue,createDocumentFragment:de,getElementsByTagName:he}=n,{importNode:me}=s;let pe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"===typeof a&&"function"===typeof J&&ce&&void 0!==ce.createHTMLDocument;const{MUSTACHE_EXPR:fe,ERB_EXPR:ge,TMPLIT_EXPR:ye,DATA_ATTR:be,ARIA_ATTR:ve,IS_SCRIPT_OR_DATA:we,ATTR_WHITESPACE:Te,CUSTOM_ELEMENT:Ee}=ie;let{IS_ALLOWED_URI:Ae}=ie,ke=null;const Se=_({},[...D,...R,...q,...$,...B]);let Ce=null;const Le=_({},[...F,...U,...z,...W]);let xe=Object.seal(h(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Me=null,Ne=null;const _e=Object.seal(h(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Pe=!0,Ie=!0,Oe=!1,De=!0,Re=!1,qe=!0,He=!1,$e=!1,je=!1,Be=!1,Fe=!1,Ue=!1,ze=!0,We=!1,Ve=!0,Ye=!1,Ge={},Ke=null;const Xe=_({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qe=null;const Je=_({},["audio","video","img","source","image","track"]);let Ze=null;const et=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",it="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let st=nt,at=!1,ot=null;const rt=_({},[tt,it,nt],T);let lt=_({},["mi","mo","mn","ms","mtext"]),ct=_({},["annotation-xml"]);const ut=_({},["title","style","font","a","script"]);let dt=null;const ht=["application/xhtml+xml","text/html"];let mt=null,pt=null;const ft=n.createElement("form"),gt=function(e){return e instanceof RegExp||e instanceof Function},yt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!pt||pt!==e){if(e&&"object"===typeof e||(e={}),e=I(e),dt=-1===ht.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,mt="application/xhtml+xml"===dt?T:w,ke=C(e,"ALLOWED_TAGS")?_({},e.ALLOWED_TAGS,mt):Se,Ce=C(e,"ALLOWED_ATTR")?_({},e.ALLOWED_ATTR,mt):Le,ot=C(e,"ALLOWED_NAMESPACES")?_({},e.ALLOWED_NAMESPACES,T):rt,Ze=C(e,"ADD_URI_SAFE_ATTR")?_(I(et),e.ADD_URI_SAFE_ATTR,mt):et,Qe=C(e,"ADD_DATA_URI_TAGS")?_(I(Je),e.ADD_DATA_URI_TAGS,mt):Je,Ke=C(e,"FORBID_CONTENTS")?_({},e.FORBID_CONTENTS,mt):Xe,Me=C(e,"FORBID_TAGS")?_({},e.FORBID_TAGS,mt):I({}),Ne=C(e,"FORBID_ATTR")?_({},e.FORBID_ATTR,mt):I({}),Ge=!!C(e,"USE_PROFILES")&&e.USE_PROFILES,Pe=!1!==e.ALLOW_ARIA_ATTR,Ie=!1!==e.ALLOW_DATA_ATTR,Oe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Re=e.SAFE_FOR_TEMPLATES||!1,qe=!1!==e.SAFE_FOR_XML,He=e.WHOLE_DOCUMENT||!1,Be=e.RETURN_DOM||!1,Fe=e.RETURN_DOM_FRAGMENT||!1,Ue=e.RETURN_TRUSTED_TYPE||!1,je=e.FORCE_BODY||!1,ze=!1!==e.SANITIZE_DOM,We=e.SANITIZE_NAMED_PROPS||!1,Ve=!1!==e.KEEP_CONTENT,Ye=e.IN_PLACE||!1,Ae=e.ALLOWED_URI_REGEXP||Q,st=e.NAMESPACE||nt,lt=e.MATHML_TEXT_INTEGRATION_POINTS||lt,ct=e.HTML_INTEGRATION_POINTS||ct,xe=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&>(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(xe.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&>(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(xe.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(xe.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(Ie=!1),Fe&&(Be=!0),Ge&&(ke=_({},B),Ce=[],!0===Ge.html&&(_(ke,D),_(Ce,F)),!0===Ge.svg&&(_(ke,R),_(Ce,U),_(Ce,W)),!0===Ge.svgFilters&&
vendor: 5,295 bytes, line 2
2(_(ke,q),_(Ce,U),_(Ce,W)),!0===Ge.mathMl&&(_(ke,$),_(Ce,z),_(Ce,W))),e.ADD_TAGS&&("function"===typeof e.ADD_TAGS?_e.tagCheck=e.ADD_TAGS:(ke===Se&&(ke=I(ke)),_(ke,e.ADD_TAGS,mt))),e.ADD_ATTR&&("function"===typeof e.ADD_ATTR?_e.attributeCheck=e.ADD_ATTR:(Ce===Le&&(Ce=I(Ce)),_(Ce,e.ADD_ATTR,mt))),e.ADD_URI_SAFE_ATTR&&_(Ze,e.ADD_URI_SAFE_ATTR,mt),e.FORBID_CONTENTS&&(Ke===Xe&&(Ke=I(Ke)),_(Ke,e.FORBID_CONTENTS,mt)),Ve&&(ke["#text"]=!0),He&&_(ke,["html","head","body"]),ke.table&&(_(ke,["tbody"]),delete Me.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Z=e.TRUSTED_TYPES_POLICY,te=Z.createHTML("")}else void 0===Z&&(Z=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));const s="dompurify"+(i?"#"+i:"");try{return e.createPolicy(s,{createHTML(e){return e},createScriptURL(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+s+" could not be created."),null}}(P,o)),null!==Z&&"string"===typeof te&&(te=Z.createHTML(""));u&&u(e),pt=e}},bt=_({},[...R,...q,...H]),vt=_({},[...$,...j]),wt=function(e){b(i.removed,{element:e});try{J(e).removeChild(e)}catch(t){G(e)}},Tt=function(e,t){try{b(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Be||Fe)try{wt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Et=function(e){let t=null,i=null;if(je)e="<remove></remove>"+e;else{const t=E(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===dt&&st===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=Z?Z.createHTML(e):e;if(st===nt)try{t=(new N).parseFromString(s,dt)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(st,"template",null);try{t.documentElement.innerHTML=at?te:s}catch(e){}}const a=t.body||t.documentElement;return e&&i&&a.insertBefore(n.createTextNode(i),a.childNodes[0]||null),st===nt?he.call(t,He?"html":"body")[0]:He?t.documentElement:a},At=function(e){return ue.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},kt=function(e){return e instanceof M&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof p)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},St=function(e){return"function"===typeof c&&e instanceof c};function Ct(e,t,n){f(e,e=>{e.call(i,t,n,pt)})}const Lt=function(e){let t=null;if(Ct(pe.beforeSanitizeElements,e,null),kt(e))return wt(e),!0;const n=mt(e.nodeName);if(Ct(pe.uponSanitizeElement,e,{tagName:n,allowedTags:ke}),qe&&e.hasChildNodes()&&!St(e.firstElementChild)&&L(/<[/\w!]/g,e.innerHTML)&&L(/<[/\w!]/g,e.textContent))return wt(e),!0;if(e.nodeType===ae)return wt(e),!0;if(qe&&e.nodeType===oe&&L(/<[/\w]/g,e.data))return wt(e),!0;if(!(_e.tagCheck instanceof Function&&_e.tagCheck(n))&&(!ke[n]||Me[n])){if(!Me[n]&&Mt(n)){if(xe.tagNameCheck instanceof RegExp&&L(xe.tagNameCheck,n))return!1;if(xe.tagNameCheck instanceof Function&&xe.tagNameCheck(n))return!1}if(Ve&&!Ke[n]){const t=J(e)||e.parentNode,i=X(e)||e.childNodes;if(i&&t){for(let n=i.length-1;n>=0;--n){const s=Y(i[n],!0);s.__removalCount=(e.__removalCount||0)+1,t.insertBefore(s,K(e))}}}return wt(e),!0}return e instanceof d&&!function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:st,tagName:"template"});const i=w(e.tagName),n=w(t.tagName);return!!ot[e.namespaceURI]&&(e.namespaceURI===it?t.namespaceURI===nt?"svg"===i:t.namespaceURI===tt?"svg"===i&&("annotation-xml"===n||lt[n]):Boolean(bt[i]):e.namespaceURI===tt?t.namespaceURI===nt?"math"===i:t.namespaceURI===it?"math"===i&&ct[n]:Boolean(vt[i]):e.namespaceURI===nt?!(t.namespaceURI===it&&!ct[n])&&!(t.namespaceURI===tt&&!lt[n])&&!vt[i]&&(ut[i]||!bt[i]):!("application/xhtml+xml"!==dt||!ot[e.namespaceURI]))}(e)?(wt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!L(/<\/no(script|embed|frames)/i,e.innerHTML)?(Re&&e.nodeType===se&&(t=e.textContent,f([fe,ge,ye],e=>{t=A(t,e," ")}),e.textContent!==t&&(b(i.removed,{element:e.cloneNode()}),e.textContent=t)),Ct(pe.afterSanitizeElements,e,null),!1):(wt(e),!0)},xt=function(e,t,i){if(ze&&("id"===t||"name"===t)&&(i in n||i in ft))return!1;if(Ie&&!Ne[t]&&L(be,t));else if(Pe&&L(ve,t));else if(_e.attributeCheck instanceof Function&&_e.attributeCheck(t,e));else if(!Ce[t]||Ne[t]){if(!(Mt(e)&&(xe.tagNameCheck instanceof RegExp&&L(xe.tagNameCheck,e)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(e))&&(xe.attributeNameCheck instanceof RegExp&&L(xe.attributeNameCheck,t)||xe.attributeNameCheck instanceof Function&&xe.attributeNameCheck(t,e))||"is"===t&&xe.allowCustomizedBuiltInElements&&(xe.tagNameCheck instanceof RegExp&&L(xe.tagNameCheck,i)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(i))))return!1}else if(Ze[t]);else if(L(Ae,A(i,Te,"")));
2else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==k(i,"data:")||!Qe[e]){if(Oe&&!L(we,A(i,Te,"")));else if(i)return!1}else;return!0},Mt=function(e){return"annotation-xml"!==e&&E(e,Ee)},Nt=function(e){Ct(pe.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||kt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce,forceKeepAttr:void 0};let s=t.length;for(;s--;){const a=t[s],{name:o,namespaceURI:r,value:l}=a,c=mt(o),u=l;let d="value"===o?u:S(u);if(n.attrName=c,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,Ct(pe.uponSanitizeAttribute,e,n),d=n.attrValue,!We||"id"!==c&&"name"!==c||(Tt(o,e),d="user-content-"+d),qe&&L(/((--!?|])>)|<\/(style|title|textarea)/i,d)){Tt(o,e);continue}if("attributename"===c&&E(d,"href")){Tt(o,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Tt(o,e);continue}if(!De&&L(/\/>/i,d)){Tt(o,e);continue}Re&&f([fe,ge,ye],e=>{d=A(d,e," ")});const h=mt(e.nodeName);if(xt(h,c,d)){if(Z&&"object"===typeof P&&"function"===typeof P.getAttributeType)if(r);else switch(P.getAttributeType(h,c)){case"TrustedHTML":d=Z.createHTML(d);break;case"TrustedScriptURL":d=Z.createScriptURL(d)}if(d!==u)try{r?e.setAttributeNS(r,o,d):e.setAttribute(o,d),kt(e)?wt(e):y(i.removed)}catch(t){Tt(o,e)}}else Tt(o,e)}Ct(pe.afterSanitizeAttributes,e,null)},_t=function e(t){let i=null;const n=At(t);for(Ct(pe.beforeSanitizeShadowDOM,t,null);i=n.nextNode();)Ct(pe.uponSanitizeShadowNode,i,null),Lt(i),Nt(i),i.content instanceof r&&e(i.content);Ct(pe.afterSanitizeShadowDOM,t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,o=null,l=null;if(at=!e,at&&(e="\x3c!--\x3e"),"string"!==typeof e&&!St(e)){if("function"!==typeof e.toString)throw x("toString is not a function");if("string"!==typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!i.isSupported)return e;if($e||yt(t),i.removed=[],"string"===typeof e&&(Ye=!1),Ye){if(e.nodeName){const t=mt(e.nodeName);if(!ke[t]||Me[t])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)n=Et("\x3c!----\x3e"),a=n.ownerDocument.importNode(e,!0),a.nodeType===ne&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a);else{if(!Be&&!Re&&!He&&-1===e.indexOf("<"))return Z&&Ue?Z.createHTML(e):e;if(n=Et(e),!n)return Be?null:Ue?te:""}n&&je&&wt(n.firstChild);const u=At(Ye?e:n);for(;o=u.nextNode();)Lt(o),Nt(o),o.content instanceof r&&_t(o.content);if(Ye)return e;if(Be){if(Fe)for(l=de.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(Ce.shadowroot||Ce.shadowrootmode)&&(l=me.call(s,l,!0)),l}let d=He?n.outerHTML:n.innerHTML;return He&&ke["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&L(ee,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),Re&&f([fe,ge,ye],e=>{d=A(d,e," ")}),Z&&Ue?Z.createHTML(d):d},i.setConfig=function(){yt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),$e=!0},i.clearConfig=function(){pt=null,$e=!1},i.isValidAttribute=function(e,t,i){pt||yt({});const n=mt(e),s=mt(t);return xt(n,s,i)},i.addHook=function(e,t){"function"===typeof t&&b(pe[e],t)},i.removeHook=function(e,t){if(void 0!==t){const i=g(pe[e],t);return-1===i?void 0:v(pe[e],i,1)[0]}return y(pe[e])},i.removeHooks=function(e){pe[e]=[]},i.removeAllHooks=function(){pe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}();const ue="ninetofive_first_edition_unlocked",de="data-first-edition-initialized",he="data-ninetofive-ad-pushed",me="data-ninetofive-deferred-ad",pe="ninetofive:first-edition-unlocked";let fe=!1;const ge=e=>e?.closest(".extended, article, .article__content")||e?.parentElement||null,ye=e=>{if(!e?.querySelectorAll)return;(e=>{e.querySelectorAll(`ins[${me}]`).forEach(e=>{if(e.closest("[hidden]"))return;const t=e.getAttribute(me);e.classList.add(t),e.offsetWidth?e.removeAttribute(me):e.classList.remove(t)})})(e);const t=`ins.adsbygoogle:not([data-adsbygoogle-status]):not([${he}])`;
2e.querySelectorAll(t).forEach(e=>{if(e.offsetWidth){e.setAttribute(he,"true");try{window.adsbygoogle=window.adsbygoogle||[],window.adsbygoogle.push({})}catch{}}})},be=(e,t)=>{t&&(t.hidden=!1),e&&(e.hidden=!0),document.dispatchEvent(new CustomEvent(pe,{detail:{gate:e}})),t&&requestAnimationFrame(()=>ye(t))},ve=e=>{if(!e||e.hasAttribute(de))return;e.setAttribute(de,"true");const t=ge(e)?.querySelector(".first-edition-gated-content");if(!t)return;localStorage.getItem(ue)||document.body.classList.contains("logged-in")?be(e,t):(e=>{if(!e?.closest(".extended"))return;const t=e?.querySelector(".first-edition-gate__form");if(!t||t.querySelector("iframe"))return;const i=t.querySelectorAll('script[data-beehiiv-form], script[src*="beehiiv"]');if(!i.length){const e=t.dataset.beehiivForm;if(!e)return;const i=document.createElement("script");return i.async=!0,i.src="https://subscribe-forms.beehiiv.com/v3/loader.js",i.dataset.beehiivForm=e,void t.appendChild(i)}i.forEach(e=>{const t=document.createElement("script");[...e.attributes].forEach(e=>{t.setAttribute(e.name,e.value)}),t.textContent=e.textContent,e.replaceWith(t)})})(e)},we=(e=document)=>{e?.querySelectorAll&&(fe||(fe=!0,window.addEventListener("message",e=>{"https://subscribe-forms.beehiiv.com"===e.origin&&"beehiiv:success-toast"===e.data?.type&&document.querySelectorAll(".first-edition-gate").forEach(t=>{const i=t.querySelector("iframe");if(!i||e.source!==i.contentWindow)return;const n=ge(t)?.querySelector(".first-edition-gated-content");localStorage.setItem(ue,"1"),be(t,n)})})),e.querySelectorAll(".first-edition-gate").forEach(ve))};let Te;"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>we()):we();const Ee=function(e){try{let t=ce.sanitize(document.getElementsByTagName("title")[0].innerHTML);t=e}catch(e){console.error(e)}document.title=e},Ae=function(e){const t=document.createElement("a");return t.href=e,t.pathname},ke=function(){infiniteScroll.scroller.throttle=!infiniteScroll.scroller.throttle},Se=function(e,t=!1){const i=document.getElementById("opened");if(!i)return null;const n=i.querySelector(".extended"),s=i.querySelector(".more-link");return i.removeAttribute("id"),n.parentNode.removeChild(n),s.setAttribute("aria-expanded","false"),t&&("undefined"!==typeof infiniteScroll&&infiniteScroll?.scroller?.determineURL(!0),Ee(e),window.removeEventListener("scroll",ke)),i},Ce=function(){if(Te)return;const e=document.querySelector("#opened");Te=setTimeout(function(){(function(e){const{top:t,bottom:i}=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return(t>0||i>0)&&t<n})(e)||(Ee(window.previousTitle),delete window.previousTitle,window.removeEventListener("scroll",ke),window.removeEventListener("scroll",Ce)),Te=null},250)};document.addEventListener("DOMContentLoaded",()=>{if(!nineToFiveAjax||!nineToFiveAjax.posts_endpoint)return;const e=document.querySelector("#river");e&&e.addEventListener("click",function(e){if(!e.target.closest(".more-link"))return;const t=e.target.closest("article");if(t.classList.contains("distributed"))return;e.preventDefault();const i=e.target.closest(".more-link"),s=i.dataset.postId,a=document.title;if("true"===i.getAttribute("aria-expanded"))return window.removeEventListener("scroll",Ce),Se(a,a===document.title),void t.scrollIntoView(!0);i.classList.add("loading"),fetch(`${nineToFiveAjax.posts_endpoint}/${s}`,{method:"GET",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e?.content?.extended_content?(i.insertAdjacentHTML("beforebegin",e.content.extended_content.replace(/data-src/g,"src")),we(t)):window.open(i.getAttribute("href"),"_self"),i.classList.remove("loading");const s=e.title?.document_title||e.title.rendered;history.pushState({},s,e.link),Ee(s);const o=Se(a);if(t.setAttribute("id","opened"),i.setAttribute("aria-expanded","true"),o&&t.scrollIntoView(!0),n(),jQuery("body").trigger("post-load"),e?.content?.assets){const{styles:t,scripts:i}=e.content.assets;t?.length&&t.forEach(e=>{if(document.querySelector(`#${e.handle}`))return;if("string"!==typeof e.src)return;const t=new URL(e.src);t.searchParams.set("ver",e.ver);const i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("id",e.handle),i.setAttribute("href",t.toString()),i.setAttribute("media",e.args?e.args:"all"),document.head.appendChild(i)})}"function"===typeof loadAds&&loadAds(),ye(t);const r=t.querySelector(".comments");if(r&&r.addEventListener("click",function(e){const t=window.infiniteScroll||{},i=e.currentTarget.getAttribute("href").replace(/#.*$/,""),n=t.scroller.origURL.replace(/#.*$/,""),s=ce.sanitize(window.location.href),a=e.currentTarget.getAttribute("href");(t.settings.query_args.infinity_post_id&&n!==i&&i===s||!t.settings.query_args.infinity_post_id&&i===s)&&(e.preventDefault(),window.location.assign(a),window.location.reload())}),"undefined"!==typeof infiniteScroll&&window.addEventListener("scroll",ke),window.previousTitle=a,window.addEventListener("scroll",Ce),"undefined"!==typeof infiniteScroll&&infiniteScroll?.settings?.stats&&((new Image).src=`${document.location.protocol}
2//pixel.wp.com/g.gif?${infiniteScroll.settings.stats}&post=0&baba=${Math.random()}`),"object"===typeof _gaq){let t;t=""!==window.location.pathname?window.location.pathname:Ae(e.link),_gaq.push(["_trackPageview",t])}if("object"===typeof dataLayer){const t=""!==window.location.pathname?window.location.pathname:Ae(e.link);i.dataset,"undefined"!==typeof i.dataset?.layerPostcategory&&dataLayer.push({event:"postCategoryOnExpand",pageType:i.dataset.layerPagetype,postCategory:i.dataset.layerPostcategory.split(","),virtualPageURL:t}),dataLayer.push({event:"VirtualPageview",virtualPageURL:t,virtualPageTitle:a}),dataLayer.push({event:"ExpandArticle",sourcePageType:i.dataset?.layerViewtype||"unknown",virtualPageURL:t}),document.querySelectorAll(".single-custom-post-ad").forEach(function(e){dataLayer.push({event:"CustomPostAd",eventAction:"displayed",virtualPageURL:t}),e.querySelectorAll("a").forEach(function(e){const i=e.getAttribute("href");let n=e.getAttribute("target")||"_self";e.host!==window.location.host&&(n="_blank",e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer")),e.addEventListener("click",function(e){e.preventDefault(),dataLayer.push({event:"CustomPostAd",eventAction:"click",virtualPageURL:t}),window.open(i,n)})})})}"undefined"!==typeof _quantcastId&&"object"===typeof _qevents&&_qevents.push({qacct:_quantcastId}),"object"===typeof _comscore&&"string"===typeof _comscoreId&&_comscore.push({c1:"2",c2:_comscoreId,c4:window.location.pathname})}).catch(e=>{console.error("error fetching post content",e)})})});var Le=window,xe=Le.requestAnimationFrame||Le.webkitRequestAnimationFrame||Le.mozRequestAnimationFrame||Le.msRequestAnimationFrame||function(e){return setTimeout(e,16)},Me=window,Ne=Me.cancelAnimationFrame||Me.mozCancelAnimationFrame||function(e){clearTimeout(e)};function _e(){for(var e,t,i,n=arguments[0]||{},s=1,a=arguments.length;s<a;s++)if(null!==(e=arguments[s]))for(t in e)n!==(i=e[t])&&void 0!==i&&(n[t]=i);return n}function Pe(e){return["true","false"].indexOf(e)>=0?JSON.parse(e):e}function Ie(e,t,i,n){if(n)try{e.setItem(t,i)}catch(e){}return i}function Oe(){var e=document,t=e.body;return t||((t=e.createElement("body")).fake=!0),t}var De=document.documentElement;function Re(e){var t="";return e.fake&&(t=De.style.overflow,e.style.background="",e.style.overflow=De.style.overflow="hidden",De.appendChild(e)),t}function qe(e,t){e.fake&&(e.remove(),De.style.overflow=t,De.offsetHeight)}function He(e,t,i,n){"insertRule"in e?e.insertRule(t+"{"+i+"}",n):e.addRule(t,i,n)}function $e(e){return("insertRule"in e?e.cssRules:e.rules).length}function je(e,t,i){for(var n=0,s=e.length;n<s;n++)t.call(i,e[n],n)}var Be="classList"in document.createElement("_"),Fe=Be?function(e,t){return e.classList.contains(t)}:function(e,t){return e.className.indexOf(t)>=0},Ue=Be?function(e,t){Fe(e,t)||e.classList.add(t)}:function(e,t){Fe(e,t)||(e.className+=" "+t)},ze=Be?function(e,t){Fe(e,t)&&e.classList.remove(t)}:function(e,t){Fe(e,t)&&(e.className=e.className.replace(t,""))};function We(e,t){return e.hasAttribute(t)}function Ve(e,t){return e.getAttribute(t)}function Ye(e){return"undefined"!==typeof e.item}function Ge(e,t){if(e=Ye(e)||e instanceof Array?e:[e],"[object Object]"===Object.prototype.toString.call(t))for(var i=e.length;i--;)for(var n in t)e[i].setAttribute(n,t[n])}function Ke(e,t){e=Ye(e)||e instanceof Array?e:[e];for(var i=(t=t instanceof Array?t:[t]).length,n=e.length;n--;)for(var s=i;s--;)e[n].removeAttribute(t[s])}function Xe(e){for(var t=[],i=0,n=e.length;i<n;i++)t.push(e[i]);return t}function Qe(e,t){"none"!==e.style.display&&(e.style.display="none")}function Je(e,t){"none"===e.style.display&&(e.style.display="")}function Ze(e){return"none"!==window.getComputedStyle(e).display}function et(e){if("string"===typeof e){var t=[e],i=e.charAt(0).toUpperCase()+e.substr(1);["Webkit","Moz","ms","O"].forEach(function(n){"ms"===n&&"transform"!==e||t.push(n+i)}),e=t}for(var n=document.createElement("fakeelement"),s=(e.length,0);s<e.length;s++){var a=e[s];if(void 0!==n.style[a])return a}return!1}function tt(e,t){var i=!1;return/^Webkit/.test(e)?i="webkit"+t+"End":/^O/.test(e)?i="o"+t+"End":e&&(i=t.toLowerCase()+"end"),i}var it=!1;try{var nt=Object.defineProperty({},"passive",{get:function(){it=!0}});window.addEventListener("test",null,nt)}catch(e){}var st=!!it&&{passive:!0};function at(e,t,i){for(var n in t){var s=["touchstart","touchmove"].indexOf(n)>=0&&!i&&st;e.addEventListener(n,t[n],s)}}function ot(e,t){for(var i in t){var n=["touchstart","touchmove"].indexOf(i)>=0&&st;e.removeEventListener(i,t[i],n)}}function rt(){return{topics:{},on:function(e,t){this.topics[e]=this.topics[e]||[],this.topics[e].push(t)},off:function(e,t){if(this.topics[e])for(var i=0;i<this.topics[e].length;i++)if(this.topics[e][i]===t){this.topics[e].splice(i,1);break}},emit:function(e,t){t.type=e,this.topics[e]&&this.topics[e].forEach(function(i){i(t,e)})}}}Object.keys||(Object.keys=function(e){var t=[];
vendor: 23,020 bytes, line 2
2for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t}),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});var lt=function(e){e=_e({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:!1,prevButton:!1,nextButton:!1,nav:!0,navPosition:"top",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0,nonce:!1},e||{});var t=document,i=window,n={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},s={},a=e.useLocalStorage;if(a){var o=navigator.userAgent,r=new Date;try{(s=i.localStorage)?(s.setItem(r,r),a=s.getItem(r)==r,s.removeItem(r)):a=!1,a||(s={})}catch(e){a=!1}a&&(s.tnsApp&&s.tnsApp!==o&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach(function(e){s.removeItem(e)}),localStorage.tnsApp=o)}var l=s.tC?Pe(s.tC):Ie(s,"tC",function(){var e=document,t=Oe(),i=Re(t),n=e.createElement("div"),s=!1;t.appendChild(n);try{for(var a,o="(10px * 10)",r=["calc"+o,"-moz-calc"+o,"-webkit-calc"+o],l=0;l<3;l++)if(a=r[l],n.style.width=a,100===n.offsetWidth){s=a.replace(o,"");break}}catch(e){}return t.fake?qe(t,i):n.remove(),s}(),a),c=s.tPL?Pe(s.tPL):Ie(s,"tPL",function(){var e,t=document,i=Oe(),n=Re(i),s=t.createElement("div"),a=t.createElement("div"),o="";s.className="tns-t-subp2",a.className="tns-t-ct";for(var r=0;r<70;r++)o+="<div></div>";return a.innerHTML=o,s.appendChild(a),i.appendChild(s),e=Math.abs(s.getBoundingClientRect().left-a.children[67].getBoundingClientRect().left)<2,i.fake?qe(i,n):s.remove(),e}(),a),u=s.tMQ?Pe(s.tMQ):Ie(s,"tMQ",function(){if(window.matchMedia||window.msMatchMedia)return!0;var e,t=document,i=Oe(),n=Re(i),s=t.createElement("div"),a=t.createElement("style"),o="@media all and (min-width:1px){.tns-mq-test{position:absolute}}";return a.type="text/css",s.className="tns-mq-test",i.appendChild(a),i.appendChild(s),a.styleSheet?a.styleSheet.cssText=o:a.appendChild(t.createTextNode(o)),e=window.getComputedStyle?window.getComputedStyle(s).position:s.currentStyle.position,i.fake?qe(i,n):s.remove(),"absolute"===e}(),a),d=s.tTf?Pe(s.tTf):Ie(s,"tTf",et("transform"),a),h=s.t3D?Pe(s.t3D):Ie(s,"t3D",function(e){if(!e)return!1;if(!window.getComputedStyle)return!1;var t,i=document,n=Oe(),s=Re(n),a=i.createElement("p"),o=e.length>9?"-"+e.slice(0,-9).toLowerCase()+"-":"";return o+="transform",n.insertBefore(a,null),a.style[e]="translate3d(1px,1px,1px)",t=window.getComputedStyle(a).getPropertyValue(o),n.fake?qe(n,s):a.remove(),void 0!==t&&t.length>0&&"none"!==t}(d),a),m=s.tTDu?Pe(s.tTDu):Ie(s,"tTDu",et("transitionDuration"),a),p=s.tTDe?Pe(s.tTDe):Ie(s,"tTDe",et("transitionDelay"),a),f=s.tADu?Pe(s.tADu):Ie(s,"tADu",et("animationDuration"),a),g=s.tADe?Pe(s.tADe):Ie(s,"tADe",et("animationDelay"),a),y=s.tTE?Pe(s.tTE):Ie(s,"tTE",tt(m,"Transition"),a),b=s.tAE?Pe(s.tAE):Ie(s,"tAE",tt(f,"Animation"),a),v=i.console&&"function"===typeof i.console.warn,w=["container","controlsContainer","prevButton","nextButton","navContainer","autoplayButton"],T={};if(w.forEach(function(i){if("string"===typeof e[i]){var n=e[i],s=t.querySelector(n);if(T[i]=n,!s||!s.nodeName)return void(v&&console.warn("Can't find",e[i]));e[i]=s}}),!(e.container.children.length<1)){var E=e.responsive,A=e.nested,k="carousel"===e.mode;if(E){0 in E&&(e=_e(e,E[0]),delete E[0]);var S={};for(var C in E){var L=E[C];L="number"===typeof L?{items:L}:L,S[C]=L}E=S,S=null}if(k||function e(t){for(var i in t)k||("slideBy"===i&&(t[i]="page"),"edgePadding"===i&&(t[i]=!1),"autoHeight"===i&&(t[i]=!1)),"responsive"===i&&e(t[i])}(e),!k){e.axis="horizontal",e.slideBy="page",e.edgePadding=!1;var x=e.animateIn,M=e.animateOut,N=e.animateDelay,_=e.animateNormal}var P,I,O="horizontal"===e.axis,D=t.createElement("div"),R=t.createElement("div"),q=e.container,H=q.parentNode,$=q.outerHTML,j=q.children,B=j.length,F=Ci(),U=!1;E&&Yi(),k&&(q.className+=" tns-vpfix");var z,W,V,Y=e.autoWidth,G=_i("fixedWidth"),K=_i("edgePadding"),X=_i("gutter"),Q=Mi(),J=_i("center"),Z=Y?1:Math.floor(_i("items")),ee=_i("slideBy"),te=e.viewportMax||e.fixedWidthViewportWidth,ie=_i("arrowKeys"),ne=_i("speed"),se=e.rewind,ae=!se&&e.loop,oe=_i("autoHeight"),re=_i("controls"),le=_i("controlsText"),ce=_i("nav"),ue=_i("touch"),de=_i("mouseDrag"),he=_i("autoplay"),me=_i("autoplayTimeout"),pe=_i("autoplayText"),fe=_i("autoplayHoverPause"),ge=_i("autoplayResetOnVisibility"),ye=function(e,t){var i=document.createElement("style");return e&&i.setAttribute("media",e),t&&i.setAttribute("nonce",t),document.querySelector("head").appendChild(i),i.sheet?i.sheet:i.styleSheet}(null,_i("nonce")),be=e.lazyload,ve=e.lazyloadSelector,we=[],Te=ae?function(){var t=function(){if(Y||G&&!te)return B-1;var t=G?"fixedWidth":"items",i=[];if((G||e[t]<B)&&i.push(e[t]),E)for(var n in E){var s=E[n][t];s&&(G||s<B)&&i.push(s)}return i.length||i.push(0),Math.ceil(G?te/Math.min.apply(null,i):Math.max.apply(null,i))}(),i=k?Math.ceil((5*t-B)/2):4*t-B;return i=Math.max(t,i),Ni("edgePadding")?i+1:i}():0,Ee=k?B+2*Te:B+Te,Ae=!(!G&&!Y||ae),ke=G?wn():null,Se=!k||!ae,Ce=O?"left":"top",Le="",Me="",De=G?function(){return J&&!ae?B-1:Math.ceil(-ke/(G+X))}:Y?function(){for(var e=0;e<Ee;e++)if(z[e]>=-ke)return e}:function(){return J&&k&&!ae?B-1:ae||k?Math.max(0,Ee-Math.ceil(Z)):Ee-1},Be=Ai(_i("startIndex")),Ye=Be,it=(Ei(),0),nt=Y?null:De(),st=e.preventActionWhenRunning,ct=e.swipeAngle,ut=!ct||"?",dt=!1,ht=e.onInit,mt=new rt,pt=" tns-slider tns-"+e.mode,ft=q.id||function(){var e=window.tnsId;return window.tnsId=e?e+1:1,"tns"+window.tnsId}(),gt=_i("disable"),yt=!1,bt=e.freezable,vt=!(!bt||Y)&&Vi(),wt=!1,Tt={click:Mn,keydown:function(e){e=qn(e);var t=[n.LEFT,n.RIGHT].indexOf(e.keyCode);t>=0&&(0===t?Ut.disabled||Mn(e,-1):zt.disabled||Mn(e,1))}},Et={click:function(e){if(dt){if(st)return;Ln()}var t=Hn(e=qn(e));for(;t!==Gt&&!We(t,"data-nav");)t=t.parentNode;if(We(t,"data-nav")){var i=Jt=Number(Ve(t,"data-nav")),n=G||Y?i*B/Xt:i*Z;xn(Nt?i:Math.min(Math.ceil(n),B-1),e),Zt===i&&(ai&&On(),Jt=-1)}},keydown:function(e){e=qn(e);var i=t.activeElement;if(!We(i,"data-nav"))return;var s=[n.LEFT,n.RIGHT,n.ENTER,n.SPACE].indexOf(e.keyCode),a=Number(Ve(i,"data-nav"));s>=0&&(0===s?a>0&&Rn(Yt[a-1]):1===s?a<Xt-1&&Rn(Yt[a+1]):(Jt=a,xn(a,e)))}},At={mouseover:function(){ai&&(_n(),oi=!0)},mouseout:function(){oi&&(Nn(),oi=!1)}},kt={visibilitychange:function(){t.hidden?ai&&(_n(),li=!0):li&&(Nn(),li=!1)}},St={keydown:function(e){e=qn(e);var t=[n.LEFT,n.RIGHT].indexOf(e.keyCode);t>=0&&Mn(e,0===t?-1:1)}},Ct={touchstart:Fn,touchmove:Un,touchend:Wn,touchcancel:Wn},Lt={mousedown:Fn,mousemove:Un,mouseup:Wn,mouseleave:Wn},xt=Ni("controls"),Mt=Ni("nav"),Nt=!!Y||e.navAsThumbnails,_t=Ni("autoplay"),Pt=Ni("touch"),It=Ni("mouseDrag"),Ot="tns-slide-active",Dt="tns-slide-cloned",Rt="tns-complete",qt={load:function(e){nn(Hn(e))},error:function(e){t=Hn(e),Ue(t,"failed"),sn(t);var t}},Ht="force"===e.preventScrollOnTouch;if(xt)var $t,jt,Bt=e.controlsContainer,Ft=e.controlsContainer?e.controlsContainer.outerHTML:"",Ut=e.prevButton,zt=e.nextButton,Wt=e.prevButton?e.prevButton.outerHTML:"",Vt=e.nextButton?e.nextButton.outerHTML:"";if(Mt)var Yt,Gt=e.navContainer,Kt=e.navContainer?e.navContainer.outerHTML:"",Xt=Y?B:Yn(),Qt=0,Jt=-1,Zt=Si(),ei=Zt,ti="tns-nav-active",ii="Carousel Page ",ni=" (Current Slide)";if(_t)var si,ai,oi,ri,li,ci="forward"===e.autoplayDirection?1:-1,ui=e.autoplayButton,di=e.autoplayButton?e.autoplayButton.outerHTML:"",hi=["<span class='tns-visually-hidden'>"," animation</span>"];if(Pt||It)var mi,pi,fi={},gi={},yi=!1,bi=O?function(e,t){return e.x-t.x}:function(e,t){return e.y-t.y};Y||Ti(gt||vt),d&&(Ce=d,Le="translate",h?(Le+=O?"3d(":"3d(0px, ",Me=O?", 0px, 0px)":", 0px)"):(Le+=O?"X(":"Y(",Me=")")),k&&(q.className=q.className.replace("tns-vpfix","")),function(){Ni("gutter");D.className="tns-outer",R.className="tns-inner",D.id=ft+"-ow",R.id=ft+"-iw",""===q.id&&(q.id=ft);pt+=c||Y?" tns-subpixel":" tns-no-subpixel",pt+=l?" tns-calc":" tns-no-calc",Y&&(pt+=" tns-autowidth");pt+=" tns-"+e.axis,q.className+=pt,k?((P=t.createElement("div")).id=ft+"-mw",P.className="tns-ovh",D.appendChild(P),P.appendChild(R)):D.appendChild(R);if(oe){(P||R).className+=" tns-ah"}if(H.insertBefore(D,q),R.appendChild(q),je(j,function(e,t){Ue(e,"tns-item"),e.id||(e.id=ft+"-item"+t),!k&&_&&Ue(e,_),Ge(e,{"aria-hidden":"true",tabindex:"-1"})}),Te){for(var i=t.createDocumentFragment(),n=t.createDocumentFragment(),s=Te;s--;){var a=s%B,o=j[a].cloneNode(!0);if(Ue(o,Dt),Ke(o,"id"),n.insertBefore(o,n.firstChild),k){var r=j[B-1-a].cloneNode(!0);Ue(r,Dt),Ke(r,"id"),i.appendChild(r)}}q.insertBefore(i,q.firstChild),q.appendChild(n),j=q.children}}(),function(){if(!k)for(var t=Be,n=Be+Math.min(B,Z);t<n;t++){var s=j[t];s.style.left=100*(t-Be)/Z+"%",Ue(s,x),ze(s,_)}O&&(c||Y?(He(ye,"#"+ft+" > .tns-item","font-size:"+i.getComputedStyle(j[0]).fontSize+";",$e(ye)),He(ye,"#"+ft,"font-size:0;",$e(ye))):k&&je(j,function(e,t){e.style.marginLeft=function(e){return l?l+"("+100*e+"% / "+Ee+")":100*e/Ee+"%"}(t)}));if(u){if(m){var a=P&&e.autoHeight?qi(e.speed):"";He(ye,"#"+ft+"-mw",a,$e(ye))}a=Pi(e.edgePadding,e.gutter,e.fixedWidth,e.speed,e.autoHeight),He(ye,"#"+ft+"-iw",a,$e(ye)),k&&(a=O&&!Y?"width:"+Ii(e.fixedWidth,e.gutter,e.items)+";":"",m&&(a+=qi(ne)),He(ye,"#"+ft,a,$e(ye))),a=O&&!Y?Oi(e.fixedWidth,e.gutter,e.items):"",e.gutter&&(a+=Di(e.gutter)),k||(m&&(a+=qi(ne)),f&&(a+=Hi(ne))),a&&He(ye,"#"+ft+" > .tns-item",a,$e(ye))}else{k&&oe&&(P.style[m]=ne/1e3+"s"),R.style.cssText=Pi(K,X,G,oe),k&&O&&!Y&&(q.style.width=Ii(G,X,Z));a=O&&!Y?Oi(G,X,Z):"";X&&(a+=Di(X)),a&&He(ye,"#"+ft+" > .tns-item",a,$e(ye))}if(E&&u)for(var o in E){o=parseInt(o);var r=E[o],d=(a="",""),h="",p="",g="",y=Y?null:_i("items",o),b=_i("fixedWidth",o),v=_i("speed",o),w=_i("edgePadding",o),T=_i("autoHeight",o),A=_i("gutter",o);m&&P&&_i("autoHeight",o)&&"speed"in r&&(d="#"+ft+"-mw{"+qi(v)+"}"),("edgePadding"in r||"gutter"in r)&&(h="#"+ft+"-iw{"+Pi(w,A,b,v,T)+"}"),k&&O&&!Y&&("fixedWidth"in r||"items"in r||G&&"gutter"in r)&&(p="width:"+Ii(b,A,y)+";"),m&&"speed"in r&&(p+=qi(v)),p&&(p="#"+ft+"{"+p+"}"),("fixedWidth"in r||G&&"gutter"in r||!k&&"items"in r)&&(g+=Oi(b,A,y)),"gutter"in r&&(g+=Di(A)),!k&&"speed"in r&&(m&&(g+=qi(v)),f&&(g+=Hi(v))),g&&(g="#"+ft+" > .tns-item{"+g+"}"),(a=d+h+p+g)&&ye.insertRule("@media (min-width: "+o/16+"em) {"+a+"}",ye.cssRules.length)}}(),$i();var vi=ae?k?function(){var e=it,t=nt;e+=ee,t-=ee,K?(e+=1,t-=1):G&&(Q+X)%(G+X)&&(t-=1),Te&&(Be>t?Be-=B:Be<e&&(Be+=B))}:function(){if(Be>nt)for(;Be>=it+B;)Be-=B;else if(Be<it)for(;Be<=nt-B;)Be+=B}:function(){Be=Math.max(it,Math.min(nt,Be))},wi=k?function(){bn(q,""),m||!ne?(An(),ne&&Ze(q)||Ln()):function(e,t,i,n,s,a,o){var r=Math.min(a,10),l=s.indexOf("%")>=0?"%":"px",c=(s=s.replace(l,""),Number(e.style[t].replace(i,"").replace(n,"").replace(l,""))),u=(s-c)/a*r;setTimeout(function s(){a-=r,c+=u,e.style[t]=i+c+l+n,a>0?setTimeout(s,r):o()},r)}(q,Ce,Le,Me,Tn(),ne,Ln),O||Vn()}:function(){we=[];var e={};e[y]=e[b]=Ln,ot(j[Ye],e),at(j[Be],e),kn(Ye,x,M,!0),kn(Be,_,x),y&&b&&ne&&Ze(q)||Ln()};return{version:"2.9.4",getInfo:Kn,events:mt,goTo:xn,play:function(){he&&!ai&&(In(),ri=!1)},pause:function(){ai&&(On(),ri=!0)},isOn:U,updateSliderHeight:un,refresh:$i,destroy:function(){if(ye.disabled=!0,ye.ownerNode&&ye.ownerNode.remove(),ot(i,{resize:zi}),ie&&ot(t,St),Bt&&ot(Bt,Tt),Gt&&ot(Gt,Et),ot(q,At),ot(q,kt),ui&&ot(ui,{click:Dn}),he&&clearInterval(si),k&&y){var n={};n[y]=Ln,ot(q,n)}ue&&ot(q,Ct),de&&ot(q,Lt);var s=[$,Ft,Wt,Vt,Kt,di];for(var a in w.forEach(function(t,i){var n="container"===t?D:e[t];if("object"===typeof n&&n){var a=!!n.previousElementSibling&&n.previousElementSibling,o=n.parentNode;n.outerHTML=s[i],e[t]=a?a.nextElementSibling:o.firstElementChild}}),w=x=M=N=_=O=D=R=q=H=$=j=B=I=F=Y=G=K=X=Q=Z=ee=te=ie=ne=se=ae=oe=ye=be=z=we=Te=Ee=Ae=ke=Se=Ce=Le=Me=De=Be=Ye=it=nt=ct=ut=dt=ht=mt=pt=ft=gt=yt=bt=vt=wt=Tt=Et=At=kt=St=Ct=Lt=xt=Mt=Nt=_t=Pt=It=Ot=Rt=qt=W=re=le=Bt=Ft=Ut=zt=$t=jt=ce=Gt=Kt=Yt=Xt=Qt=Jt=Zt=ei=ti=ii=ni=he=me=ci=pe=fe=ui=di=ge=hi=si=ai=oi=ri=li=fi=gi=mi=yi=pi=bi=ue=de=null,this)"rebuild"!==a&&(this[a]=null);U=!1},rebuild:function(){return lt(_e(e,T))}}}function Ti(e){e&&(re=ce=ue=de=ie=he=fe=ge=!1)}function Ei(){for(var e=k?Be-Te:Be;e<0;)e+=B;return e%B+1}function Ai(e){return e=e?Math.max(0,Math.min(ae?B-1:B-Z,e)):0,k?e+Te:e}function ki(e){for(null==e&&(e=Be),k&&(e-=Te);e<0;)e+=B;return Math.floor(e%B)}function Si(){var e,t=ki();return e=Nt?t:G||Y?Math.ceil((t+1)*Xt/B-1):Math.floor(t/Z),!ae&&k&&Be===nt&&(e=Xt-1),e}function Ci(){return i.innerWidth||t.documentElement.clientWidth||t.body.clientWidth}function Li(e){return"top"===e?"afterbegin":"beforeend"}function xi(e){if(null!=e){var i,n,s=t.createElement("div");return e.appendChild(s),n=(i=s.getBoundingClientRect()).right-i.left,s.remove(),n||xi(e.parentNode)}}function Mi(){var e=K?2*K-X:0;return xi(H)-e}function Ni(t){if(e[t])return!0;if(E)for(var i in E)if(E[i][t])return!0;return!1}function _i(t,i){if(null==i&&(i=F),"items"===t&&G)return Math.floor((Q+X)/(G+X))||1;var n=e[t];if(E)for(var s in E)i>=parseInt(s)&&t in E[s]&&(n=E[s][t]);return"slideBy"===t&&"page"===n&&(n=_i("items")),k||"slideBy"!==t&&"items"!==t||(n=Math.floor(n)),n}function Pi(e,t,i,n,s){var a="";if(void 0!==e){var o=e;t&&(o-=t),a=O?"margin: 0 "+o+"px 0 "+e+"px;":"margin: "+e+"px 0 "+o+"px 0;"}else if(t&&!i){var r="-"+t+"px";a="margin: 0 "+(O?r+" 0 0":"0 "+r+" 0")+";"}return!k&&s&&m&&n&&(a+=qi(n)),a}function Ii(e,t,i){return e?(e+t)*Ee+"px":l?l+"("+100*Ee+"% / "+i+")":100*Ee/i+"%"}function Oi(e,t,i){var n;if(e)n=e+t+"px";else{k||(i=Math.floor(i));var s=k?Ee:i;n=l?l+"(100% / "+s+")":100/s+"%"}return n="width:"+n,"inner"!==A?n+";":n+" !important;"}function Di(e){var t="";!1!==e&&(t=(O?"padding-":"margin-")+(O?"right":"bottom")+": "+e+"px;");return t}function Ri(e,t){var i=e.substring(0,e.length-t).toLowerCase();return i&&(i="-"+i+"-"),i}function qi(e){return Ri(m,18)+"transition-duration:"+e/1e3+"s;"}function Hi(e){return Ri(f,17)+"animation-duration:"+e/1e3+"s;"}function $i(){if(Ni("autoHeight")||Y||!O){var e=q.querySelectorAll("img");je(e,function(e){var t=e.src;be||(t&&t.indexOf("data:image")<0?(e.src="",at(e,qt),Ue(e,"loading"),e.src=t):nn(e))}),xe(function(){rn(Xe(e),function(){W=!0})}),Ni("autoHeight")&&(e=an(Be,Math.min(Be+Z-1,Ee-1))),be?ji():xe(function(){rn(Xe(e),ji)})}else k&&En(),Fi(),Ui()}function ji(){if(Y&&B>1){var e=ae?Be:B-1;!function t(){var i=j[e].getBoundingClientRect().left,n=j[e-1].getBoundingClientRect().right;Math.abs(i-n)<=1?Bi():setTimeout(function(){t()},16)}()}else Bi()}function Bi(){O&&!Y||(dn(),Y?(ke=wn(),bt&&(vt=Vi()),nt=De(),Ti(gt||vt)):Vn()),k&&En(),Fi(),Ui()}function Fi(){if(hn(),D.insertAdjacentHTML("afterbegin",'<div class="tns-liveregion tns-visually-hidden" aria-live="polite" aria-atomic="true">slide <span class="current">'+Zi()+"</span> of "+B+"</div>"),V=D.querySelector(".tns-liveregion .current"),_t){var t=he?"stop":"start";ui?Ge(ui,{"data-action":t}):e.autoplayButtonOutput&&(D.insertAdjacentHTML(Li(e.autoplayPosition),'<button type="button" data-action="'+t+'">'+hi[0]+t+hi[1]+pe[0]+"</button>"),ui=D.querySelector("[data-action]")),ui&&at(ui,{click:Dn}),he&&(In(),fe&&at(q,At),ge&&at(q,kt))}if(Mt){if(Gt)Ge(Gt,{"aria-label":"Carousel Pagination"}),je(Yt=Gt.children,function(e,t){Ge(e,{"data-nav":t,tabindex:"-1","aria-label":ii+(t+1),"aria-controls":ft})});else{for(var i="",n=Nt?"":'style="display:none"',s=0;s<B;s++)i+='<button type="button" data-nav="'+s+'" tabindex="-1" aria-controls="'+ft+'" '+n+' aria-label="'+ii+(s+1)+'"></button>';i='<div class="tns-nav" aria-label="Carousel Pagination">'+i+"</div>",D.insertAdjacentHTML(Li(e.navPosition),i),Gt=D.querySelector(".tns-nav"),Yt=Gt.children}if(Gn(),m){var a=m.substring(0,m.length-18).toLowerCase(),o="transition: all "+ne/1e3+"s";a&&(o="-"+a+"-"+o),He(ye,"[aria-controls^="+ft+"-item]",o,$e(ye))}Ge(Yt[Zt],{"aria-label":ii+(Zt+1)+ni}),Ke(Yt[Zt],"tabindex"),Ue(Yt[Zt],ti),at(Gt,Et)}xt&&(Bt||Ut&&zt||(D.insertAdjacentHTML(Li(e.controlsPosition),'<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button type="button" data-controls="prev" tabindex="-1" aria-controls="'+ft+'">'+le[0]+'</button><button type="button" data-controls="next" tabindex="-1" aria-controls="'+ft+'">'+le[1]+"</button></div>"),Bt=D.querySelector(".tns-controls")),Ut&&zt||(Ut=Bt.children[0],zt=Bt.children[1]),e.controlsContainer&&Ge(Bt,{"aria-label":"Carousel Navigation",tabindex:"0"}),(e.controlsContainer||e.prevButton&&e.nextButton)&&Ge([Ut,zt],{"aria-controls":ft,tabindex:"-1"}),(e.controlsContainer||e.prevButton&&e.nextButton)&&(Ge(Ut,{"data-controls":"prev"}),Ge(zt,{"data-controls":"next"})),$t=pn(Ut),jt=pn(zt),yn(),Bt?at(Bt,Tt):(at(Ut,Tt),at(zt,Tt))),Gi()}function Ui(){if(k&&y){var n={};n[y]=Ln,at(q,n)}ue&&at(q,Ct,e.preventScrollOnTouch),de&&at(q,Lt),ie&&at(t,St),"inner"===A?mt.on("outerResized",function(){Wi(),mt.emit("innerLoaded",Kn())}):(E||G||Y||oe||!O)&&at(i,{resize:zi}),oe&&("outer"===A?mt.on("innerLoaded",on):gt||on()),tn(),gt?Qi():vt&&Xi(),mt.on("indexChanged",ln),"inner"===A&&mt.emit("innerLoaded",Kn()),"function"===typeof ht&&ht(Kn()),U=!0}function zi(e){xe(function(){Wi(qn(e))})}function Wi(i){if(U){"outer"===A&&mt.emit("outerResized",Kn(i)),F=Ci();var n,s=I,a=!1;E&&(Yi(),(n=s!==I)&&mt.emit("newBreakpointStart",Kn(i)));var o,r,l=Z,c=gt,d=vt,h=ie,m=re,p=ce,f=ue,g=de,y=he,b=fe,v=ge,w=Be;if(n){var T=G,S=oe,C=le,L=J,N=pe;if(!u)var P=X,D=K}if(ie=_i("arrowKeys"),re=_i("controls"),ce=_i("nav"),ue=_i("touch"),J=_i("center"),de=_i("mouseDrag"),he=_i("autoplay"),fe=_i("autoplayHoverPause"),ge=_i("autoplayResetOnVisibility"),n&&(gt=_i("disable"),G=_i("fixedWidth"),ne=_i("speed"),oe=_i("autoHeight"),le=_i("controlsText"),pe=_i("autoplayText"),me=_i("autoplayTimeout"),u||(K=_i("edgePadding"),X=_i("gutter"))),Ti(gt),Q=Mi(),O&&!Y||gt||(dn(),O||(Vn(),a=!0)),(G||Y)&&(ke=wn(),nt=De()),(n||G)&&(Z=_i("items"),ee=_i("slideBy"),(r=Z!==l)&&(G||Y||(nt=De()),vi())),n&>!==c&&(gt?Qi():function(){if(!yt)return;if(ye.disabled=!1,q.className+=pt,En(),ae)for(var e=Te;e--;)k&&Je(j[e]),Je(j[Ee-e-1]);if(!k)for(var t=Be,i=Be+B;t<i;t++){var n=j[t],s=t<Be+Z?x:_;n.style.left=100*(t-Be)/Z+"%",Ue(n,s)}Ki(),yt=!1}()),bt&&(n||G||Y)&&(vt=Vi())!==d&&(vt?(An(Tn(Ai(0))),Xi()):(!function(){if(!wt)return;K&&u&&(R.style.margin="");if(Te)for(var e="tns-transparent",t=Te;t--;)k&&ze(j[t],e),ze(j[Ee-t-1],e);Ki(),wt=!1}(),a=!0)),Ti(gt||vt),he||(fe=ge=!1),ie!==h&&(ie?at(t,St):ot(t,St)),re!==m&&(re?Bt?Je(Bt):(Ut&&Je(Ut),zt&&Je(zt)):Bt?Qe(Bt):(Ut&&Qe(Ut),zt&&Qe(zt))),ce!==p&&(ce?(Je(Gt),Gn()):Qe(Gt)),ue!==f&&(ue?at(q,Ct,e.preventScrollOnTouch):ot(q,Ct)),de!==g&&(de?at(q,Lt):ot(q,Lt)),he!==y&&(he?(ui&&Je(ui),ai||ri||In()):(ui&&Qe(ui),ai&&On())),fe!==b&&(fe?at(q,At):ot(q,At)),ge!==v&&(ge?at(t,kt):ot(t,kt)),n){if(G===T&&J===L||(a=!0),oe!==S&&(oe||(R.style.height="")),re&&le!==C&&(Ut.innerHTML=le[0],zt.innerHTML=le[1]),ui&&pe!==N){var H=he?1:0,$=ui.innerHTML,z=$.length-N[H].length;$.substring(z)===N[H]&&(ui.innerHTML=$.substring(0,z)+pe[H])}}else J&&(G||Y)&&(a=!0);if((r||G&&!Y)&&(Xt=Yn(),Gn()),(o=Be!==w)?(mt.emit("indexChanged",Kn()),a=!0):r?o||ln():(G||Y)&&(tn(),hn(),Ji()),r&&!k&&function(){for(var e=Be+Math.min(B,Z),t=Ee;t--;){var i=j[t];t>=Be&&t<e?(Ue(i,"tns-moving"),i.style.left=100*(t-Be)/Z+"%",Ue(i,x),ze(i,_)):i.style.left&&(i.style.left="",Ue(i,_),ze(i,x)),ze(i,M)}setTimeout(function(){je(j,function(e){ze(e,"tns-moving")})},300)}(),!gt&&!vt){if(n&&!u&&(K===D&&X===P||(R.style.cssText=Pi(K,X,G,ne,oe)),O)){k&&(q.style.width=Ii(G,X,Z));var W=Oi(G,X,Z)+Di(X);!function(e,t){"deleteRule"in e?e.deleteRule(t):e.removeRule(t)}(ye,$e(ye)-1),He(ye,"#"+ft+" > .tns-item",W,$e(ye))}oe&&on(),a&&(En(),Ye=Be)}n&&mt.emit("newBreakpointEnd",Kn(i))}}function Vi(){if(!G&&!Y)return B<=(J?Z-(Z-1)/2:Z);var e=G?(G+X)*B:z[B],t=K?Q+2*K:Q+X;return J&&(t-=G?(Q-G)/2:(Q-(z[Be+1]-z[Be]-X))/2),e<=t}function Yi(){for(var e in I=0,E)e=parseInt(e),F>=e&&(I=e)}function Gi(){!he&&ui&&Qe(ui),!ce&&Gt&&Qe(Gt),re||(Bt?Qe(Bt):(Ut&&Qe(Ut),zt&&Qe(zt)))}function Ki(){he&&ui&&Je(ui),ce&&Gt&&Je(Gt),re&&(Bt?Je(Bt):(Ut&&Je(Ut),zt&&Je(zt)))}function Xi(){if(!wt){if(K&&(R.style.margin="0px"),Te)for(var e="tns-transparent",t=Te;t--;)k&&Ue(j[t],e),Ue(j[Ee-t-1],e);Gi(),wt=!0}}function Qi(){if(!yt){if(ye.disabled=!0,q.className=q.className.replace(pt.substring(1),""),Ke(q,["style"]),ae)for(var e=Te;e--;)k&&Qe(j[e]),Qe(j[Ee-e-1]);if(O&&k||Ke(R,["style"]),!k)for(var t=Be,i=Be+B;t<i;t++){var n=j[t];Ke(n,["style"]),ze(n,x),ze(n,_)}Gi(),yt=!0}}function Ji(){var e=Zi();V.innerHTML!==e&&(V.innerHTML=e)}function Zi(){var e=en(),t=e[0]+1,i=e[1]+1;return t===i?t+"":t+" to "+i}function en(e){null==e&&(e=Tn());var t,i,n,s=Be;if(J||K?(Y||G)&&(i=-(parseFloat(e)+K),n=i+Q+2*K):Y&&(i=z[Be],n=i+Q),Y)z.forEach(function(e,a){a<Ee&&((J||K)&&e<=i+.5&&(s=a),n-e>=.5&&(t=a))});else{if(G){var a=G+X;J||K?(s=Math.floor(i/a),t=Math.ceil(n/a-1)):t=s+Math.ceil(Q/a)-1}else if(J||K){var o=Z-1;if(J?(s-=o/2,t=Be+o/2):t=Be+o,K){var r=K*Z/Q;s-=r,t+=r}s=Math.floor(s),t=Math.ceil(t)}else t=s+Z-1;s=Math.max(s,0),t=Math.min(t,Ee-1)}return[s,t]}function tn(){if(be&&!gt){var e=en();e.push(ve),an.apply(null,e).forEach(function(e){if(!Fe(e,Rt)){var t={};t[y]=function(e){e.stopPropagation()},at(e,t),at(e,qt),e.src=Ve(e,"data-src");var i=Ve(e,"data-srcset");i&&(e.srcset=i),Ue(e,"loading")}})}}function nn(e){Ue(e,"loaded"),sn(e)}function sn(e){Ue(e,Rt),ze(e,"loading"),ot(e,qt)}function an(e,t,i){var n=[];for(i||(i="img");e<=t;)je(j[e].querySelectorAll(i),function(e){n.push(e)}),e++;return n}function on(){var e=an.apply(null,en());xe(function(){rn(e,un)})}function rn(e,t){return W?t():(e.forEach(function(t,i){!be&&t.complete&&sn(t),Fe(t,Rt)&&e.splice(i,1)}),e.length?void xe(function(){rn(e,t)}):t())}function ln(){tn(),hn(),Ji(),yn(),function(){if(ce&&(Zt=Jt>=0?Jt:Si(),Jt=-1,Zt!==ei)){var e=Yt[ei],t=Yt[Zt];Ge(e,{tabindex:"-1","aria-label":ii+(ei+1)}),ze(e,ti),Ge(t,{"aria-label":ii+(Zt+1)+ni}),Ke(t,"tabindex"),Ue(t,ti),ei=Zt}}()}function cn(e,t){for(var i=[],n=e,s=Math.min(e+t,Ee);n<s;n++)i.push(j[n].offsetHeight);return Math.max.apply(null,i)}function un(){var e=oe?cn(Be,Z):cn(Te,B),t=P||R;t.style.height!==e&&(t.style.height=e+"px")}function dn(){z=[0];var e=O?"left":"top",t=O?"right":"bottom",i=j[0].getBoundingClientRect()[e];je(j,function(n,s){s&&z.push(n.getBoundingClientRect()[e]-i),s===Ee-1&&z.push(n.getBoundingClientRect()[t]-i)})}function hn(){var e=en(),t=e[0],i=e[1];
2je(j,function(e,n){n>=t&&n<=i?We(e,"aria-hidden")&&(Ke(e,["aria-hidden","tabindex"]),Ue(e,Ot)):We(e,"aria-hidden")||(Ge(e,{"aria-hidden":"true",tabindex:"-1"}),ze(e,Ot))})}function mn(e){return e.nodeName.toLowerCase()}function pn(e){return"button"===mn(e)}function fn(e){return"true"===e.getAttribute("aria-disabled")}function gn(e,t,i){e?t.disabled=i:t.setAttribute("aria-disabled",i.toString())}function yn(){if(re&&!se&&!ae){var e=$t?Ut.disabled:fn(Ut),t=jt?zt.disabled:fn(zt),i=Be<=it,n=!se&&Be>=nt;i&&!e&&gn($t,Ut,!0),!i&&e&&gn($t,Ut,!1),n&&!t&&gn(jt,zt,!0),!n&&t&&gn(jt,zt,!1)}}function bn(e,t){m&&(e.style[m]=t)}function vn(e){return null==e&&(e=Be),Y?(Q-(K?X:0)-(z[e+1]-z[e]-X))/2:G?(Q-G)/2:(Z-1)/2}function wn(){var e=Q+(K?X:0)-(G?(G+X)*Ee:z[Ee]);return J&&!ae&&(e=G?-(G+X)*(Ee-1)-vn():vn(Ee-1)-z[Ee-1]),e>0&&(e=0),e}function Tn(e){var t;if(null==e&&(e=Be),O&&!Y)if(G)t=-(G+X)*e,J&&(t+=vn());else{var i=d?Ee:Z;J&&(e-=vn()),t=100*-e/i}else t=-z[e],J&&Y&&(t+=vn());return Ae&&(t=Math.max(t,ke)),t+=!O||Y||G?"px":"%"}function En(e){bn(q,"0s"),An(e)}function An(e){null==e&&(e=Tn()),q.style[Ce]=Le+e+Me}function kn(e,t,i,n){var s=e+Z;ae||(s=Math.min(s,Ee));for(var a=e;a<s;a++){var o=j[a];n||(o.style.left=100*(a-Be)/Z+"%"),N&&p&&(o.style[p]=o.style[g]=N*(a-e)/1e3+"s"),ze(o,t),Ue(o,i),n&&we.push(o)}}function Sn(e,t){Se&&vi(),(Be!==Ye||t)&&(mt.emit("indexChanged",Kn()),mt.emit("transitionStart",Kn()),oe&&on(),ai&&e&&["click","keydown"].indexOf(e.type)>=0&&On(),dt=!0,wi())}function Cn(e){return e.toLowerCase().replace(/-/g,"")}function Ln(e){if(k||dt){if(mt.emit("transitionEnd",Kn(e)),!k&&we.length>0)for(var t=0;t<we.length;t++){var i=we[t];i.style.left="",g&&p&&(i.style[g]="",i.style[p]=""),ze(i,M),Ue(i,_)}if(!e||!k&&e.target.parentNode===q||e.target===q&&Cn(e.propertyName)===Cn(Ce)){if(!Se){var n=Be;vi(),Be!==n&&(mt.emit("indexChanged",Kn()),En())}"inner"===A&&mt.emit("innerLoaded",Kn()),dt=!1,Ye=Be}}}function xn(e,t){if(!vt)if("prev"===e)Mn(t,-1);else if("next"===e)Mn(t,1);else{if(dt){if(st)return;Ln()}var i=ki(),n=0;if("first"===e?n=-i:"last"===e?n=k?B-Z-i:B-1-i:("number"!==typeof e&&(e=parseInt(e)),isNaN(e)||(t||(e=Math.max(0,Math.min(B-1,e))),n=e-i)),!k&&n&&Math.abs(n)<Z){var s=n>0?1:-1;n+=Be+n-B>=it?B*s:2*B*s*-1}Be+=n,k&&ae&&(Be<it&&(Be+=B),Be>nt&&(Be-=B)),ki(Be)!==ki(Ye)&&Sn(t)}}function Mn(e,t){if(dt){if(st)return;Ln()}var i;if(!t){for(var n=Hn(e=qn(e));n!==Bt&&[Ut,zt].indexOf(n)<0;)n=n.parentNode;var s=[Ut,zt].indexOf(n);s>=0&&(i=!0,t=0===s?-1:1)}if(se){if(Be===it&&-1===t)return void xn("last",e);if(Be===nt&&1===t)return void xn("first",e)}t&&(Be+=ee*t,Y&&(Be=Math.floor(Be)),Sn(i||e&&"keydown"===e.type?e:null))}function Nn(){si=setInterval(function(){Mn(null,ci)},me),ai=!0}function _n(){clearInterval(si),ai=!1}function Pn(e,t){Ge(ui,{"data-action":e}),ui.innerHTML=hi[0]+e+hi[1]+t}function In(){Nn(),ui&&Pn("stop",pe[1])}function On(){_n(),ui&&Pn("start",pe[0])}function Dn(){ai?(On(),ri=!0):(In(),ri=!1)}function Rn(e){e.focus()}function qn(e){return $n(e=e||i.event)?e.changedTouches[0]:e}function Hn(e){return e.target||i.event.srcElement}function $n(e){return e.type.indexOf("touch")>=0}function jn(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Bn(){return function(e,t){var i=!1,n=Math.abs(90-Math.abs(e));return n>=90-t?i="horizontal":n<=t&&(i="vertical"),i}((t=gi.y-fi.y,i=gi.x-fi.x,Math.atan2(t,i)*(180/Math.PI)),ct)===e.axis;var t,i}function Fn(e){if(dt){if(st)return;Ln()}he&&ai&&_n(),yi=!0,pi&&(Ne(pi),pi=null);var t=qn(e);mt.emit($n(e)?"touchStart":"dragStart",Kn(e)),!$n(e)&&["img","a"].indexOf(mn(Hn(e)))>=0&&jn(e),gi.x=fi.x=t.clientX,gi.y=fi.y=t.clientY,k&&(mi=parseFloat(q.style[Ce].replace(Le,"")),bn(q,"0s"))}function Un(e){if(yi){var t=qn(e);gi.x=t.clientX,gi.y=t.clientY,k?pi||(pi=xe(function(){zn(e)})):("?"===ut&&(ut=Bn()),ut&&(Ht=!0)),("boolean"!==typeof e.cancelable||e.cancelable)&&Ht&&e.preventDefault()}}function zn(e){if(ut){if(Ne(pi),yi&&(pi=xe(function(){zn(e)})),"?"===ut&&(ut=Bn()),ut){!Ht&&$n(e)&&(Ht=!0);try{e.type&&mt.emit($n(e)?"touchMove":"dragMove",Kn(e))}catch(e){}var t=mi,i=bi(gi,fi);if(!O||G||Y)t+=i,t+="px";else t+=d?i*Z*100/((Q+X)*Ee):100*i/(Q+X),t+="%";q.style[Ce]=Le+t+Me}}else yi=!1}function Wn(t){if(yi){pi&&(Ne(pi),pi=null),k&&bn(q,""),yi=!1;var i=qn(t);gi.x=i.clientX,gi.y=i.clientY;var n=bi(gi,fi);if(Math.abs(n)){if(!$n(t)){var s=Hn(t);at(s,{click:function e(t){jn(t),ot(s,{click:e})}})}k?pi=xe(function(){if(O&&!Y){var e=-n*Z/(Q+X);e=n>0?Math.floor(e):Math.ceil(e),Be+=e}else{var i=-(mi+n);if(i<=0)Be=it;else if(i>=z[Ee-1])Be=nt;else for(var s=0;s<Ee&&i>=z[s];)Be=s,i>z[s]&&n<0&&(Be+=1),s++}Sn(t,n),mt.emit($n(t)?"touchEnd":"dragEnd",Kn(t))}):ut&&Mn(t,n>0?-1:1)}}"auto"===e.preventScrollOnTouch&&(Ht=!1),ct&&(ut="?"),he&&!ai&&Nn()}function Vn(){(P||R).style.height=z[Be+Z]-z[Be]+"px"}function Yn(){var e=G?(G+X)*B/Q:B/Z;return Math.min(Math.ceil(e),B)}function Gn(){if(ce&&!Nt&&Xt!==Qt){var e=Qt,t=Xt,i=Je;for(Qt>Xt&&(e=Xt,t=Qt,i=Qe);e<t;)i(Yt[e]),e++;Qt=Xt}}function Kn(e){return{container:q,slideItems:j,navContainer:Gt,navItems:Yt,controlsContainer:Bt,hasControls:xt,prevButton:Ut,nextButton:zt,items:Z,slideBy:ee,cloneCount:Te,slideCount:B,slideCountNew:Ee,index:Be,indexCached:Ye,displayIndex:Ei(),navCurrentIndex:Zt,navCurrentIndexCached:ei,pages:Xt,pagesCached:Qt,sheet:ye,isOn:U,event:e||{}}}v&&console.warn("No slides found in",e.container)};document.addEventListener("DOMContentLoaded",()=>{const e=e=>{const t=e.querySelectorAll(".featured-items__list");
20!==t.length&&Array.prototype.slice.call(t).forEach(e=>{let t=[];const i=()=>{t.forEach(e=>{const t=Array.from(e.querySelectorAll("a"));t.length&&(e.hasAttribute("aria-hidden")?t.forEach(e=>{e.setAttribute("tabindex",-1)}):t.forEach(e=>{e.removeAttribute("tabindex")}))})},n=48*(()=>{const e=document.createElement("div");e.style.width="1rem",e.style.display="none",document.body.append(e);const t=window.getComputedStyle(e).getPropertyValue("width").match(/\d+/);if(e.remove(),!t||t.length<1)return null;const i=Number(t[0]);return Number.isNaN(i)?null:i})(),s=lt({container:e,gutter:24,controls:!0,nav:!1,items:1,fixedWidth:300,loop:!1,mouseDrag:!0,disable:!1,responsive:{[n]:{disable:!0}},onInit:()=>{t=Array.from(e.querySelectorAll(".tns-item")),i()}});s&&s.events.on("indexChanged",i)})};e(document);const t=document.getElementById("river");t&&new MutationObserver(function(t){t.forEach(function(t){[].filter.call(t.addedNodes,function(e){return"DIV"===e.nodeName&&e.classList.contains("infinite-wrap")}).forEach(function(t){e(t)})})}).observe(t,{childList:!0,subtree:!0})});var ct=window.wp.i18n;document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelector(".yoast-table-of-contents > ul");e&&(e.classList.add("toc__list"),(()=>{const t=document.createElement("button"),i=document.querySelector(".yoast-table-of-contents > h2");t.classList.add("toc-toggle"),t.innerHTML='<div class="burger"></div><span class="screen-reader-text">Toggle table of contents</span></div>',i.appendChild(t),t.addEventListener("click",()=>{((e,t)=>{if(e.classList.contains("active"))e.style.height="0px",e.addEventListener("transitionend",()=>{e.classList.remove("active"),e.setAttribute("aria-hidden","true")},{once:!0}),t.setAttribute("aria-expanded",!1);else{e.classList.add("active"),e.style.height="auto",e.setAttribute("aria-hidden",!1),t.setAttribute("aria-expanded",!0);const i=`${e.offsetHeight}px`;e.style.height="0px",setTimeout(()=>{e.style.height=i},0)}})(e,t)})})(),document.body.classList.contains("tax-ninetofive_guides")&&(()=>{const e=document.querySelector(".yoast-table-of-contents");if(!e)return;const t=document.createElement("a");t.classList.add("btn-outline"),t.textContent=(0,ct.__)("See All Stories","ninetofive"),t.href="#posts",e.insertAdjacentElement("afterend",t)})())});i(577),i(131);function ut(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function dt(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ht(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function mt(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function pt(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(i),!0).forEach(function(t){ht(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):mt(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}var ft={addCSS:!0,thumbWidth:15,watch:!0};var gt=function(e){return null!=e?e.constructor:null},yt=function(e,t){return!!(e&&t&&e instanceof t)},bt=function(e){return null==e},vt=function(e){return gt(e)===Object},wt=function(e){return gt(e)===String},Tt=function(e){return Array.isArray(e)},Et=function(e){return yt(e,NodeList)},At=wt,kt=Tt,St=Et,Ct=function(e){return yt(e,Element)},Lt=function(e){return yt(e,Event)},xt=function(e){return bt(e)||(wt(e)||Tt(e)||Et(e))&&!e.length||vt(e)&&!Object.keys(e).length};function Mt(e,t){if(1>t){var i=function(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}(t);return parseFloat(e.toFixed(i))}return Math.round(e/t)*t}var Nt=function(){function e(t,i){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),Ct(t)?this.element=t:At(t)&&(this.element=document.querySelector(t)),Ct(this.element)&&xt(this.element.rangeTouch)&&(this.config=pt({},ft,{},i),this.init())}return function(e,t,i){t&&dt(e.prototype,t),i&&dt(e,i)}(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(e){var t=this,i=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(e){t.element[i](e,function(e){return t.set(e)},!1)})}},{key:"get",value:function(t){if(!e.enabled||!Lt(t))return null;var i,n=t.target,s=t.changedTouches[0],a=parseFloat(n.getAttribute("min"))||0,o=parseFloat(n.getAttribute("max"))||100,r=parseFloat(n.getAttribute("step"))||1,l=n.getBoundingClientRect(),c=100/l.width*(this.config.thumbWidth/2)/100;return 0>(i=100/l.width*(s.clientX-l.left))?i=0:100<i&&(i=100),50>i?i-=(100-2*i)*c:50<i&&(i+=2*(i-50)*c),a+Mt(i/100*(o-a),r)}},{key:"set",value:function(t){e.enabled&&Lt(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),function(e,t){if(e&&t){var i=new Event(t,{bubbles:!0});e.dispatchEvent(i)}}(t.target,"touchend"===t.type?"change":"input"))}}],[{key:"setup",value:function(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=null;if(xt(t)||At(t)?n=Array.from(document.querySelectorAll(At(t)?t:'input[type="range"]')):Ct(t)?n=[t]:St(t)?n=Array.from(t):kt(t)&&(n=t.filter(Ct)),xt(n))return null;var s=pt({},ft,{},i);if(At(t)&&s.watch){var a=new MutationObserver(function(i){Array.from(i).forEac
vendor: 42,284 bytes, line 2
2h(function(i){Array.from(i.addedNodes).forEach(function(i){Ct(i)&&function(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}(i,t)&&new e(i,s)})})});a.observe(document.body,{childList:!0,subtree:!0})}return n.map(function(t){return new e(t,i)})}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}();const _t=e=>null!==e&&"undefined"!==typeof e?e.constructor:null,Pt=(e,t)=>Boolean(e&&t&&e instanceof t),It=e=>null===e||"undefined"===typeof e,Ot=e=>_t(e)===Object,Dt=e=>_t(e)===String,Rt=e=>"function"===typeof e,qt=e=>Array.isArray(e),Ht=e=>Pt(e,NodeList);function $t(e){return It(e)||(Dt(e)||qt(e)||Ht(e))&&!e.length||Ot(e)&&!Object.keys(e).length}var jt={nullOrUndefined:It,object:Ot,number:e=>_t(e)===Number&&!Number.isNaN(e),string:Dt,boolean:e=>_t(e)===Boolean,function:Rt,array:qt,weakMap:e=>Pt(e,WeakMap),nodeList:Ht,element:function(e){return null!==e&&"object"===typeof e&&1===e.nodeType&&"object"===typeof e.style&&"object"===typeof e.ownerDocument},textNode:e=>_t(e)===Text,event:e=>Pt(e,Event),keyboardEvent:e=>Pt(e,KeyboardEvent),cue:e=>Pt(e,window.TextTrackCue)||Pt(e,window.VTTCue),track:e=>Pt(e,TextTrack)||!It(e)&&Dt(e.kind),promise:e=>Pt(e,Promise)&&Rt(e.then),url:function(e){if(Pt(e,window.URL))return!0;if(!Dt(e))return!1;let t=e;e.startsWith("http://")&&e.startsWith("https://")||(t=`http://${e}`);try{return!$t(new URL(t).hostname)}catch{return!1}},empty:$t};const Bt=(()=>{const e=document.createElement("span"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},i=Object.keys(t).find(t=>void 0!==e.style[t]);return!!jt.string(i)&&t[i]})();function Ft(e,t){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},t)}function Ut(e,t){return t.split(".").reduce((e,t)=>e&&e[t],e)}function zt(e={},...t){if(!t.length)return e;const i=t.shift();return jt.object(i)?(Object.keys(i).forEach(t=>{jt.object(i[t])?(Object.keys(e).includes(t)||Object.assign(e,{[t]:{}}),zt(e[t],i[t])):Object.assign(e,{[t]:i[t]})}),zt(e,...t)):e}function Wt(e,t){const i=e.length?e:[e];Array.from(i).reverse().forEach((e,i)=>{const n=i>0?t.cloneNode(!0):t,s=e.parentNode,a=e.nextSibling;n.appendChild(e),a?s.insertBefore(n,a):s.appendChild(n)})}function Vt(e,t){jt.element(e)&&!jt.empty(t)&&Object.entries(t).filter(([,e])=>!jt.nullOrUndefined(e)).forEach(([t,i])=>e.setAttribute(t,i))}function Yt(e,t,i){const n=document.createElement(e);return jt.object(t)&&Vt(n,t),jt.string(i)&&(n.textContent=i),n}function Gt(e,t,i,n){jt.element(t)&&t.appendChild(Yt(e,i,n))}function Kt(e){jt.nodeList(e)||jt.array(e)?Array.from(e).forEach(Kt):jt.element(e)&&jt.element(e.parentNode)&&e.parentNode.removeChild(e)}function Xt(e){if(!jt.element(e))return;let{length:t}=e.childNodes;for(;t>0;)e.removeChild(e.lastChild),t-=1}function Qt(e,t){return jt.element(t)&&jt.element(t.parentNode)&&jt.element(e)?(t.parentNode.replaceChild(e,t),e):null}function Jt(e,t){if(!jt.string(e)||jt.empty(e))return{};const i={},n=zt({},t);return e.split(",").forEach(e=>{const t=e.trim(),s=t.replace(".",""),a=t.replace(/[[\]]/g,"").split("="),[o]=a,r=a.length>1?a[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":jt.string(n.class)?i.class=`${n.class} ${s}`:i.class=s;break;case"#":i.id=t.replace("#","");break;case"[":i[o]=r}}),zt(n,i)}function Zt(e,t){if(!jt.element(e))return;let i=t;jt.boolean(i)||(i=!e.hidden),e.hidden=i}function ei(e,t,i){if(jt.nodeList(e))return Array.from(e).map(e=>ei(e,t,i));if(jt.element(e)){let n="toggle";return"undefined"!==typeof i&&(n=i?"add":"remove"),e.classList[n](t),e.classList.contains(t)}return!1}function ti(e,t){return jt.element(e)&&e.classList.contains(t)}function ii(e,t){const{prototype:i}=Element;return(i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(){return Array.from(document.querySelectorAll(t)).includes(this)}).call(e,t)}function ni(e){return this.elements.container.querySelectorAll(e)}function si(e){return this.elements.container.querySelector(e)}function ai(e=null,t=!1){jt.element(e)&&e.focus({preventScroll:!0,focusVisible:t})}const oi={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},ri={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,t){const i=ri[e]||"html5"!==t;return{api:i,ui:i&&ri.rangeInput}},pip:document.pictureInPictureEnabled&&!Yt("video").disablePictureInPicture,airplay:jt.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(jt.empty(e))return!1;const[t]=e.split("/");let i=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(oi).includes(i)&&(i+=`; codecs="${oi[e]}"`);try{return Boolean(i&&this.media.canPlayType(i).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range","range"===e.type})(),touch:"ontouchstart"in document.documentElement,transitions:!1!==Bt,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},li=(()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get(){return e=!0,null}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e})();function ci(e,t,i,n=!1,s=!0,a=!1){if(!e||!("addEventListener"in e)||jt.empty(t)||!jt.function(i))return;const o=t.split(" ");let r=a;li&&(r={passive:s,capture:a}),o.forEach(t=>{this&&this.eventListeners&&n&&this.eventListeners.push({element:e,type:t,callback:i,options:r}),e[n?"addEventListener":"removeEventListener"](t,i,r)})}function ui(e,t="",i,n=!0,s=!1){ci.call(this,e,t,i,!0,n,s)}function di(e,t="",i,n=!0,s=!1){ci.call(this,e,t,i,!1,n,s)}function hi(e,t="",i,n=!0,s=!1){const a=(...o)=>{di(e,t,a,n,s),i.apply(this,o)};ci.call(this,e,t,a,!0,n,s)}function mi(e,t="",i=!1,n={}){if(!jt.element(e)||jt.empty(t))return;const s=new CustomEvent(t,{bubbles:i,detail:{...n,plyr:this}});e.dispatchEvent(s)}function pi(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:t,type:i,callback:n,options:s}=e;t.removeEventListener(i,n,s)}),this.eventListeners=[])}function fi(){return new Promise(e=>this.ready?setTimeout(e,0):ui.call(this,this.elements.container,"ready",e)).then(()=>{})}function gi(e){jt.promise(e)&&e.then(null,()=>{})}function yi(e){return jt.array(e)?e.filter((t,i)=>e.indexOf(t)===i):e}function bi(e,t){return jt.array(e)&&e.length?e.reduce((e,i)=>Math.abs(i-t)<Math.abs(e-t)?i:e):null}function vi(e){return!(!window||!window.CSS)&&window.CSS.supports(e)}const wi=[[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,[t,i])=>({...e,[t/i]:[t,i]}),{});function Ti(e){if(!jt.array(e)&&(!jt.string(e)||!e.includes(":")))return!1;return(jt.array(e)?e:e.split(":")).map(Number).every(jt.number)}function Ei(e){if(!jt.array(e)||!e.every(jt.number))return null;const[t,i]=e,n=(e,t)=>0===t?e:n(t,e%t),s=n(t,i);return[t/s,i/s]}function Ai(e){const t=e=>Ti(e)?e.split(":").map(Number):null;let i=t(e);if(null===i&&(i=t(this.config.ratio)),null===i&&!jt.empty(this.embed)&&jt.array(this.embed.ratio)&&({ratio:i}=this.embed),null===i&&this.isHTML5){const{videoWidth:e,videoHeight:t}=this.media;i=[e,t]}return Ei(i)}function ki(e){if(!this.isVideo)return{};const{wrapper:t}=this.elements,i=Ai.call(this,e);if(!jt.array(i))return{};const[n,s]=Ei(i),a=100/n*s;if(vi(`aspect-ratio: ${n}/${s}`)?t.style.aspectRatio=`${n}/${s}`:t.style.paddingBottom=`${a}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const e=100/this.media.offsetWidth*Number.parseInt(window.getComputedStyle(this.media).paddingBottom,10),i=(e-a)/(e/50);this.fullscreen.active?t.style.paddingBottom=null:this.media.style.transform=`translateY(-${i}%)`}else this.isHTML5&&t.classList.add(this.config.classNames.videoFixedRatio);return{padding:a,ratio:i}}function Si(e,t,i=.05){const n=e/t,s=bi(Object.keys(wi),n);return Math.abs(s-n)<=i?wi[s]:[e,t]}const Ci={getSources(){if(!this.isHTML5)return[];return Array.from(this.media.querySelectorAll("source")).filter(e=>{const t=e.getAttribute("type");return!!jt.empty(t)||ri.mime.call(this,t)})},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:Ci.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,jt.empty(this.config.ratio)||ki.call(e),Object.defineProperty(e.media,"quality",{get(){const t=Ci.getSources.call(e).find(t=>t.getAttribute("src")===e.source);return t&&Number(t.getAttribute("size"))},set(t){if(e.quality!==t){if(e.config.quality.forced&&jt.function(e.config.quality.onChange))e.config.quality.onChange(t);else{const i=Ci.getSources.call(e).find(e=>Number(e.getAttribute("size"))===t);if(!i)return;const{currentTime:n,paused:s,preload:a,readyState:o,playbackRate:r}=e.media;e.media.src=i.getAttribute("src"),("none"!==a||o)&&(e.once("loadedmetadata",()=>{e.speed=r,e.currentTime=n,s||gi(e.play())}),e.media.load())}mi.call(e,e.media,"qualitychange",!1,{quality:t})}}})},cancelRequests(){this.isHTML5&&(Kt(Ci.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};var Li={isIE:Boolean(window.document.documentMode),isEdge:/Edge/.test(navigator.userAgent),isWebKit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPadOS:"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,isIos:/iPad|iPhone|iPod/i.test(navigator.userAgent)&&navigator.maxTouchPoints>1};function xi(e,...t){return jt.empty(e)?e:e.toString().replace(/\{(\d+)\}/g,(e,i)=>t[i].toString())}function Mi(e="",t="",i=""){return e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),i.toString())}function Ni(e=""){return e.toString().replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())}function _i(e=""){let t=e.toString();return t=function(e=""){let t=e.toString();return t=Mi(t,"-"," "),t=Mi(t,"_"," "),t=Ni(t),Mi(t," ","")}(t),t.charAt(0).toLowerCase()+t.slice(1)}function Pi(e){const t=document.createElement("div");return t.appendChild(e),t.innerHTML}const Ii={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},Oi={get(e="",t={}){if(jt.empty(e)||jt.empty(t))return"";let i=Ut(t.i18n,e);if(jt.empty(i))return Object.keys(Ii).includes(e)?Ii[e]:"";const n={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(n).forEach(([e,t])=>{i=Mi(i,e,t)}),i}};class Di{constructor(e){ut(this,"get",e=>{if(!Di.supported||!this.enabled)return null;const t=window.localStorage.getItem(this.key);if(jt.empty(t))return null;const i=JSON.parse(t);return jt.string(e)&&e.length?i[e]:i}),ut(this,"set",e=>{if(!Di.supported||!this.enabled)return;if(!jt.object(e))return;let t=this.get();jt.empty(t)&&(t={}),zt(t,e);try{window.localStorage.setItem(this.key,JSON.stringify(t))}catch{}}),this.enabled=e.config.storage.enabled,this.key=e.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const e="___test";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}}function Ri(e,t="text",i=!1){return new Promise((n,s)=>{try{const s=new XMLHttpRequest;if(!("withCredentials"in s))return;i&&(s.withCredentials=!0),s.addEventListener("load",()=>{if("text"===t)try{n(JSON.parse(s.responseText))}catch{n(s.responseText)}else n(s.response)}),s.addEventListener("error",()=>{throw new Error(s.status)}),s.open("GET",e,!0),s.responseType=t,s.send()}catch(e){s(e)}})}function qi(e,t){if(!jt.string(e))return;const i="cache",n=jt.string(t);let s=!1;const a=()=>null!==document.getElementById(t),o=(e,t)=>{e.innerHTML=t,n&&a()||document.body.insertAdjacentElement("afterbegin",e)};if(!n||!a()){const a=Di.supported,r=document.createElement("div");if(r.setAttribute("hidden",""),n&&r.setAttribute("id",t),a){const e=window.localStorage.getItem(`${i}-${t}`);if(s=null!==e,s){const t=JSON.parse(e);o(r,t.content)}}Ri(e).then(e=>{if(!jt.empty(e)){if(a)try{window.localStorage.setItem(`${i}-${t}`,JSON.stringify({content:e}))}catch{}o(r,e)}}).catch(()=>{})}}const Hi=e=>Math.trunc(e/60/60%60,10);function $i(e=0,t=!1,i=!1){if(!jt.number(e))return $i(void 0,t,i);const n=e=>`0${e}`.slice(-2);let s=Hi(e);const a=(o=e,Math.trunc(o/60%60,10));var o;const r=(e=>Math.trunc(e%60,10))(e);return s=t||s>0?`${s}:`:"",`${i&&e>0?"-":""}${s}${n(a)}:${n(r)}`}const ji={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),t=window.location.host?window.location.host:window.top.location.host,i=e.host!==t||Li.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:i}},findElements(){try{return this.elements.controls=si.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:ni.call(this,this.config.selectors.buttons.play),pause:si.call(this,this.config.selectors.buttons.pause),restart:si.call(this,this.config.selectors.buttons.restart),rewind:si.call(this,this.config.selectors.buttons.rewind),fastForward:si.call(this,this.config.selectors.buttons.fastForward),mute:si.call(this,this.config.selectors.buttons.mute),pip:si.call(this,this.config.selectors.buttons.pip),airplay:si.call(this,this.config.selectors.buttons.airplay),settings:si.call(this,this.config.selectors.buttons.settings),captions:si.call(this,this.config.selectors.buttons.captions),fullscreen:si.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=si.call(this,this.config.selectors.progress),this.elements.inputs={seek:si.call(this,this.config.selectors.inputs.seek),volume:si.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:si.call(this,this.config.selectors.display.buffer),currentTime:si.call(this,this.config.selectors.display.currentTime),duration:si.call(this,this.config.selectors.display.duration)},jt.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,t){const i="http://www.w3.org/2000/svg",n=ji.getIconUrl.call(this),s=`${n.cors?"":n.url}#${this.config.iconPrefix}`,a=document.createElementNS(i,"svg");Vt(a,zt(t,{"aria-hidden":"true",focusable:"false"}));const o=document.createElementNS(i,"use"),r=`${s}-${e}`;return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",r),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r),a.appendChild(o),a},createLabel(e,t={}){const i=Oi.get(e,this.config);return Yt("span",{...t,class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")},i)},createBadge(e){if(jt.empty(e))return null;const t=Yt("span",{class:this.config.classNames.menu.value});return t.appendChild(Yt("span",{class:this.config.classNames.menu.badge},e)),t},createButton(e,t){const i=zt({},t);let n=_i(e);const s={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(e=>{Object.keys(i).includes(e)&&(s[e]=i[e],delete i[e])}),"button"!==s.element||Object.keys(i).includes("type")||(i.type="button"),Object.keys(i).includes("class")?i.class.split(" ").includes(this.config.classNames.control)||zt(i,{class:`${i.class} ${this.config.classNames.control}`}):i.class=this.config.classNames.control,e){case"play":s.toggle=!0,s.label="play",s.labelPressed="pause",s.icon="play",s.iconPressed="pause";break;case"mute":s.toggle=!0,s.label="mute",s.labelPressed="unmute",s.icon="volume",s.iconPressed="muted";break;case"captions":s.toggle=!0,s.label="enableCaptions",s.labelPressed="disableCaptions",s.icon="captions-off",s.iconPressed="captions-on";break;case"fullscreen":s.toggle=!0,s.label="enterFullscreen",s.labelPressed="exitFullscreen",s.icon="enter-fullscreen",s.iconPressed="exit-fullscreen";break;case"play-large":i.class+=` ${this.config.classNames.control}--overlaid`,n="play",s.label="play",s.icon="play";break;default:jt.empty(s.label)&&(s.label=n),jt.empty(s.icon)&&(s.icon=e)}const a=Yt(s.element);return s.toggle?(a.appendChild(ji.createIcon.call(this,s.iconPressed,{class:"icon--pressed"})),a.appendChild(ji.createIcon.call(this,s.icon,{class:"icon--not-pressed"})),a.appendChild(ji.createLabel.call(this,s.labelPressed,{class:"label--pressed"})),a.appendChild(ji.createLabel.call(this,s.label,{class:"label--not-pressed"}))):(a.appendChild(ji.createIcon.call(this,s.icon)),a.appendChild(ji.createLabel.call(this,s.label))),zt(i,Jt(this.config.selectors.buttons[n],i)),Vt(a,i),"play"===n?(jt.array(this.elements.buttons[n])||(this.elements.buttons[n]=[]),this.elements.buttons[n].push(a)):this.elements.buttons[n]=a,a},createRange(e,t){const i=Yt("input",zt(Jt(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":Oi.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=i,ji.updateRangeFill.call(this,i),Nt.setup(i),i},createProgress(e,t){const i=Yt("progress",zt(Jt(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){i.appendChild(Yt("span",null,"0"));const t={played:"played",buffer:"buffered"}[e],n=t?Oi.get(t,this.config):"";i.textContent=`% ${n.toLowerCase()}`}return this.elements.display[e]=i,i},createTime(e,t){const i=Jt(this.config.selectors.display[e],t),n=Yt("div",zt(i,{class:`${i.class?i.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":Oi.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=n,n},bindMenuItemShortcuts(e,t){ui.call(this,e,"keydown keyup",i=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(i.key))return;if(i.preventDefault(),i.stopPropagation(),"keydown"===i.type)return;const n=ii(e,'[role="menuitemradio"]');if(!n&&[" ","ArrowRight"].includes(i.key))ji.showMenuPanel.call(this,t,!0);else{let t;" "!==i.key&&("ArrowDown"===i.key||n&&"ArrowRight"===i.key?(t=e.nextElementSibling,jt.element(t)||(t=e.parentNode.firstElementChild)):(t=e.previousElementSibling,jt.element(t)||(t=e.parentNode.lastElementChild)),ai.call(this,t,!0))}},!1),ui.call(this,e,"keyup",e=>{"Return"===e.key&&ji.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:t,type:i,title:n,badge:s=null,checked:a=!1}){const o=Jt(this.config.selectors.inputs[i]),r=Yt("button",zt(o,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${o.class?o.class:""}`.trim(),"aria-checked":a,value:e})),l=Yt("span");l.innerHTML=n,jt.element(s)&&l.appendChild(s),r.appendChild(l),Object.defineProperty(r,"checked",{enumerable:!0,get(){return"true"===r.getAttribute("aria-checked")},set(e){e&&Array.from(r.parentNode.children).filter(e=>ii(e,'[role="menuitemradio"]')).forEach(e=>e.setAttribute("aria-checked","false")),r.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(r,"click keyup",t=>{if(!jt.keyboardEvent(t)||" "===t.key){switch(t.preventDefault(),t.stopPropagation(),r.checked=!0,i){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=Number.parseFloat(e)}ji.showMenuPanel.call(this,"home",jt.keyboardEvent(t))}},i,!1),ji.bindMenuItemShortcuts.call(this,r,i),t.appendChild(r)},formatTime(e=0,t=!1){if(!jt.number(e))return e;return $i(e,Hi(this.duration)>0,t)},updateTimeDisplay(e=null,t=0,i=!1){jt.element(e)&&jt.number(t)&&(e.textContent=ji.formatTime(t,i))},updateVolume(){this.supported.ui&&(jt.element(this.elements.inputs.volume)&&ji.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),jt.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange(e,t=0){jt.element(e)&&(e.value=t,ji.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!jt.event(e))return;let t=0;const i=(e,t)=>{const i=jt.number(t)?t:0,n=jt.element(e)?e:this.elements.display.buffer;if(jt.element(n)){n.value=i;const e=n.getElementsByTagName("span")[0];jt.element(e)&&(e.childNodes[0].nodeValue=i)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":n=this.currentTime,s=this.duration,t=0===n||0===s||Number.isNaN(n)||Number.isNaN(s)?0:(n/s*100).toFixed(2),"timeupdate"===e.type&&ji.setRange.call(this,this.elements.inputs.seek,t);break;case"playing":case"progress":i(this.elements.display.buffer,100*this.buffered)}var n,s},updateRangeFill(e){const t=jt.event(e)?e.target:e;if(jt.element(t)&&"range"===t.getAttribute("type")){if(ii(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);const e=ji.formatTime(this.currentTime),i=ji.formatTime(this.duration),n=Oi.get("seekLabel",this.config);t.setAttribute("aria-valuetext",n.replace("{currentTime}",e).replace("{duration}",i))}else if(ii(t,this.config.selectors.inputs.volume)){const e=100*t.value;t.setAttribute("aria-valuenow",e),t.setAttribute("aria-valuetext",`${e.toFixed(1)}%`)}else t.setAttribute("aria-valuenow",t.value);(Li.isWebKit||Li.isIPadOS)&&t.style.setProperty("--value",t.value/t.max*100+"%")}},updateSeekTooltip(e){var t,i;if(!this.config.tooltips.seek||!jt.element(this.elements.inputs.seek)||!jt.element(this.elements.display.seekTooltip)||0===this.duration)return;const n=this.elements.display.seekTooltip,s=`${this.config.classNames.tooltip}--visible`,a=e=>ei(n,s,e);if(this.touch)return void a(!1);let o=0;const r=this.elements.progress.getBoundingClientRect();if(jt.event(e)){const t=e.pageX-e.clientX;o=100/r.width*(e.pageX-r.left-t)}else{if(!ti(n,s))return;o=Number.parseFloat(n.style.left,10)}o<0?o=0:o>100&&(o=100);const l=this.duration/100*o;n.textContent=ji.formatTime(l);const c=null===(t=this.config.markers)||void 0===t||null===(i=t.points)||void 0===i?void 0:i.find(({time:e})=>e===Math.round(l));c&&n.insertAdjacentHTML("afterbegin",`${c.label}<br>`),n.style.left=`${o}%`,jt.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&a("mouseenter"===e.type)},timeUpdate(e){const t=!jt.element(this.elements.display.duration)&&this.config.invertTime;ji.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||ji.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return Zt(this.elements.display.currentTime,!0),void Zt(this.elements.progress,!0);jt.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=jt.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&ji.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&ji.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&ji.setMarkers.call(this),ji.updateSeekTooltip.call(this)},toggleMenuButton(e,t){Zt(this.elements.settings.buttons[e],!t)},updateSetting(e,t,i){const n=this.elements.settings.panels[e];let s=null,a=t;if("captions"===e)s=this.currentTrack;else{if(s=jt.empty(i)?this[e]:i,jt.empty(s)&&(s=this.config[e].default),!jt.empty(this.options[e])&&!this.options[e].includes(s))return void this.debug.warn(`Unsupported value of '${s}' for ${e}`);if(!this.config[e].options.includes(s))return void this.debug.warn(`Disabled value of '${s}' for ${e}`)}if(jt.element(a)||(a=n&&n.querySelector('[role="menu"]')),!jt.element(a))return;this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=ji.getLabel.call(this,e,s);const o=a&&a.querySelector(`[value="${s}"]`);jt.element(o)&&(o.checked=!0)},getLabel(e,t){switch(e){case"speed":return 1===t?Oi.get("normal",this.config):`${t}×`;case"quality":if(jt.number(t)){const e=Oi.get(`qualityLabel.${t}`,this.config);return e.length?e:`${t}p`}return Ni(t);case"captions":return Ui.getLabel.call(this);default:return null}},setQualityMenu(e){if(!jt.element(this.elements.settings.panels.quality))return;const t="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]');jt.array(e)&&(this.options.quality=yi(e).filter(e=>this.config.quality.options.includes(e)));const n=!jt.empty(this.options.quality)&&this.options.quality.length>1;if(ji.toggleMenuButton.call(this,t,n),Xt(i),ji.checkMenu.call(this),!n)return;const s=e=>{const t=Oi.get(`qualityBadge.${e}`,this.config);return t.length?ji.createBadge.call(this,t):null};this.options.quality.sort((e,t)=>{const i=this.config.quality.options;return i.indexOf(e)>i.indexOf(t)?1:-1}).forEach(e=>{ji.createMenuItem.call(this,{value:e,list:i,type:t,title:ji.getLabel.call(this,"quality",e),badge:s(e)})}),ji.updateSetting.call(this,t,i)},setCaptionsMenu(){if(!jt.element(this.elements.settings.panels.captions))return;const e="captions",t=this.elements.settings.panels.captions.querySelector('[role="menu"]'),i=Ui.getTracks.call(this),n=Boolean(i.length);if(ji.toggleMenuButton.call(this,e,n),Xt(t),ji.checkMenu.call(this),!n)return;const s=i.map((e,i)=>({value:i,checked:this.captions.toggled&&this.currentTrack===i,title:Ui.getLabel.call(this,e),badge:e.language&&ji.createBadge.call(this,e.language.toUpperCase()),list:t,type:"language"}));s.unshift({value:-1,checked:!this.captions.toggled,title:Oi.get("disabled",this.config),list:t,type:"language"}),s.forEach(ji.createMenuItem.bind(this)),ji.updateSetting.call(this,e,t)},setSpeedMenu(){if(!jt.element(this.elements.settings.panels.speed))return;const e="speed",t=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(e=>e>=this.minimumSpeed&&e<=this.maximumSpeed);const i=!jt.empty(this.options.speed)&&this.options.speed.length>1;ji.toggleMenuButton.call(this,e,i),Xt(t),ji.checkMenu.call(this),i&&(this.options.speed.forEach(i=>{ji.createMenuItem.call(this,{value:i,list:t,type:e,title:ji.getLabel.call(this,"speed",i)})}),ji.updateSetting.call(this,e,t))},checkMenu(){const{buttons:e}=this.elements.settings,t=!jt.empty(e)&&Object.values(e).some(e=>!e.hidden);Zt(this.elements.settings.menu,!t)},focusFirstMenuItem(e,t=!1){if(this.elements.settings.popup.hidden)return;let i=e;jt.element(i)||(i=Object.values(this.elements.settings.panels).find(e=>!e.hidden));const n=i.querySelector('[role^="menuitem"]');ai.call(this,n,t)},toggleMenu(e){const{popup:t}=this.elements.settings,i=this.elements.buttons.settings;if(!jt.element(t)||!jt.element(i))return;const{hidden:n}=t;let s=n;if(jt.boolean(e))s=e;else if(jt.keyboardEvent(e)&&"Escape"===e.key)s=!1;else if(jt.event(e)){const n=jt.function(e.composedPath)?e.composedPath()[0]:e.target,a=t.contains(n);if(a||!a&&e.target!==i&&s)return}i.setAttribute("aria-expanded",s),Zt(t,!s),ei(this.elements.container,this.config.classNames.menu.open,s),s&&jt.keyboardEvent(e)?ji.focusFirstMenuItem.call(this,null,!0):s||n||ai.call(this,i,jt.keyboardEvent(e))},getMenuSize(e){const t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);const i=t.scrollWidth,n=t.scrollHeight;return Kt(t),{width:i,height:n}},showMenuPanel(e="",t=!1){const i=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!jt.element(i))return;const n=i.parentNode,s=Array.from(n.children).find(e=>!e.hidden);if(ri.transitions&&!ri.reducedMotion){n.style.width=`${s.scrollWidth}px`,n.style.height=`${s.scrollHeight}px`;const e=ji.getMenuSize.call(this,i),t=e=>{e.target===n&&["width","height"].includes(e.propertyName)&&(n.style.width="",n.style.height="",di.call(this,n,Bt,t))};ui.call(this,n,Bt,t),n.style.width=`${e.width}px`,n.style.height=`${e.height}px`}Zt(s,!0),Zt(i,!1),ji.focusFirstMenuItem.call(this,i,t)},setDownloadUrl(){const e=this.elements.buttons.download;jt.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:t,createButton:i,createProgress:n,createRange:s,createTime:a,setQualityMenu:o,setSpeedMenu:r,showMenuPanel:l}=ji;this.elements.controls=null,jt.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large"));const c=Yt("div",Jt(this.config.selectors.controls.wrapper));this.elements.controls=c;const u={class:"plyr__controls__item"};return yi(jt.array(this.config.controls)?this.config.controls:[]).forEach(o=>{if("restart"===o&&c.appendChild(i.call(this,"restart",u)),"rewind"===o&&c.appendChild(i.call(this,"rewind",u)),"play"===o&&c.appendChild(i.call(this,"play",u)),"fast-forward"===o&&c.appendChild(i.call(this,"fast-forward",u)),"progress"===o){const t=Yt("div",{class:`${u.class} plyr__progress__container`}),i=Yt("div",Jt(this.config.selectors.progress));if(i.appendChild(s.call(this,"seek",{id:`plyr-seek-${e.id}`})),i.appendChild(n.call(this,"buffer")),this.config.tooltips.seek){const e=Yt("span",{class:this.config.classNames.tooltip},"00:00");i.appendChild(e),this.elements.display.seekTooltip=e}this.elements.progress=i,t.appendChild(this.elements.progress),c.appendChild(t)}if("current-time"===o&&c.appendChild(a.call(this,"currentTime",u)),"duration"===o&&c.appendChild(a.call(this,"duration",u)),"mute"===o||"volume"===o){let{volume:t}=this.elements;if(jt.element(t)&&c.contains(t)||(t=Yt("div",zt({},u,{class:`${u.class} plyr__volume`.trim()})),this.elements.volume=t,c.appendChild(t)),"mute"===o&&t.appendChild(i.call(this,"mute")),"volume"===o&&!Li.isIos&&!Li.isIPadOS){const i={max:1,step:.05,value:this.config.volume};t.appendChild(s.call(this,"volume",zt(i,{id:`plyr-volume-${e.id}`})))}}if("captions"===o&&c.appendChild(i.call(this,"captions",u)),"settings"===o&&!jt.empty(this.config.settings)){const n=Yt("div",zt({},u,{class:`${u.class} plyr__menu`.trim(),hidden:""}));n.appendChild(i.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const s=Yt("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),a=Yt("div"),o=Yt("div",{id:`plyr-settings-${e.id}-home`}),r=Yt("div",{role:"menu"});o.appendChild(r),a.appendChild(o),this.elements.settings.panels.home=o,this.config.settings.forEach(i=>{const n=Yt("button",zt(Jt(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));t.call(this,n,i),ui.call(this,n,"click",()=>{l.call(this,i,!1)});const s=Yt("span",null,Oi.get(i,this.config)),o=Yt("span",{class:this.config.classNames.menu.value});o.innerHTML=e[i],s.appendChild(o),n.appendChild(s),r.appendChild(n);const c=Yt("div",{id:`plyr-settings-${e.id}-${i}`,hidden:""}),u=Yt("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});u.appendChild(Yt("span",{"aria-hidden":!0},Oi.get(i,this.config))),u.appendChild(Yt("span",{class:this.config.classNames.hidden},Oi.get("menuBack",this.config))),ui.call(this,c,"keydown",e=>{"ArrowLeft"===e.key&&(e.preventDefault(),e.stopPropagation(),l.call(this,"home",!0))},!1),ui.call(this,u,"click",()=>{l.call(this,"home",!1)}),c.appendChild(u),c.appendChild(Yt("div",{role:"menu"})),a.appendChild(c),this.elements.settings.buttons[i]=n,this.elements.settings.panels[i]=c}),s.appendChild(a),n.appendChild(s),c.appendChild(n),this.elements.settings.popup=s,this.elements.settings.menu=n}if("pip"===o&&ri.pip&&c.appendChild(i.call(this,"pip",u)),"airplay"===o&&ri.airplay&&c.appendChild(i.call(this,"airplay",u)),"download"===o){const e=zt({},u,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(e.download="");const{download:t}=this.config.urls;!jt.url(t)&&this.isEmbed&&zt(e,{icon:`logo-${this.provider}`,label:this.provider}),c.appendChild(i.call(this,"download",e))}"fullscreen"===o&&c.appendChild(i.call(this,"fullscreen",u))}),this.isHTML5&&o.call(this,Ci.getQualityOptions.call(this)),r.call(this),c},inject(){if(this.config.loadSprite){const e=ji.getIconUrl.call(this);e.cors&&qi(e.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let e=null;this.elements.controls=null;const t={id:this.id,seektime:this.config.seekTime,title:this.config.title};let i=!0;jt.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,t)),this.config.controls||(this.config.controls=[]),jt.element(this.config.controls)||jt.string(this.config.controls)?e=this.config.controls:(e=ji.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Ui.getLabel.call(this)}),i=!1);let n;i&&jt.string(this.config.controls)&&(e=(e=>{let i=e;return Object.entries(t).forEach(([e,t])=>{i=Mi(i,`{${e}}`,t)}),i})(e)),jt.string(this.config.selectors.controls.container)&&(n=document.querySelector(this.config.selectors.controls.container)),jt.element(n)||(n=this.elements.container);if(n[jt.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),jt.element(this.elements.controls)||ji.findElements.call(this),!jt.empty(this.elements.buttons)){const e=e=>{const t=this.config.classNames.controlPressed;e.setAttribute("aria-pressed","false"),Object.defineProperty(e,"pressed",{configurable:!0,enumerable:!0,get(){return ti(e,t)},set(i=!1){ei(e,t,i),e.setAttribute("aria-pressed",i?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(t=>{jt.array(t)||jt.nodeList(t)?Array.from(t).filter(Boolean).forEach(e):e(t)})}if(Li.isEdge&&Ft(n),this.config.tooltips.controls){const{classNames:e,selectors:t}=this.config,i=`${t.controls.wrapper} ${t.labels} .${e.hidden}`,n=ni.call(this,i);Array.from(n).forEach(e=>{ei(e,this.config.classNames.hidden,!1),ei(e,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,t;if(!this.duration||this.elements.markers)return;const i=null===(e=this.config.markers)||void 0===e||null===(t=e.points)||void 0===t?void 0:t.filter(({time:e})=>e>0&&e<this.duration);if(null===i||void 0===i||!i.length)return;const n=document.createDocumentFragment(),s=document.createDocumentFragment();let a=null;const o=`${this.config.classNames.tooltip}--visible`,r=e=>ei(a,o,e);i.forEach(e=>{const t=Yt("span",{class:this.config.classNames.marker},""),i=e.time/this.duration*100+"%";a&&(t.addEventListener("mouseenter",()=>{e.label||(a.style.left=i,a.innerHTML=e.label,r(!0))}),t.addEventListener("mouseleave",()=>{r(!1)})),t.addEventListener("click",()=>{this.currentTime=e.time}),t.style.left=i,s.appendChild(t)}),n.appendChild(s),this.config.tooltips.seek||(a=Yt("span",{class:this.config.classNames.tooltip},""),n.appendChild(a)),this.elements.markers={points:s,tip:a},this.elements.progress.appendChild(n)}};function Bi(e,t=!0){let i=e;if(t){const e=document.createElement("a");e.href=i,i=e.href}try{return new URL(i)}catch{return null}}function Fi(e){const t=new URLSearchParams;return jt.object(e)&&Object.entries(e).forEach(([e,i])=>{t.set(e,i)}),t}const Ui={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!ri.textTracks)return void(jt.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&ji.setCaptionsMenu.call(this));var e,t;if(jt.element(this.elements.captions)||(this.elements.captions=Yt("div",Jt(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),e=this.elements.captions,t=this.elements.wrapper,jt.element(e)&&jt.element(t)&&t.parentNode.insertBefore(e,t.nextSibling)),Li.isIE&&window.URL){const e=this.media.querySelectorAll("track");Array.from(e).forEach(e=>{const t=e.getAttribute("src"),i=Bi(t);null!==i&&i.hostname!==window.location.href.hostname&&["http:","https:"].includes(i.protocol)&&Ri(t,"blob").then(t=>{e.setAttribute("src",window.URL.createObjectURL(t))}).catch(()=>{Kt(e)})})}const i=yi((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(e=>e.split("-")[0]));let n=(this.storage.get("language")||this.captions.language||this.config.captions.language||"auto").toLowerCase();"auto"===n&&([n]=i);let s=this.storage.get("captions")||this.captions.active;if(jt.boolean(s)||({active:s}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:s,language:n,languages:i}),this.isHTML5){const e=this.config.captions.update?"addtrack removetrack":"removetrack";ui.call(this,this.media.textTracks,e,Ui.update.bind(this))}setTimeout(Ui.update.bind(this),0)},update(){const e=Ui.getTracks.call(this,!0),{active:t,language:i,meta:n,currentTrackNode:s}=this.captions,a=Boolean(e.find(e=>e.language===i));this.isHTML5&&this.isVideo&&e.filter(e=>!n.get(e)).forEach(e=>{this.debug.log("Track added",e),n.set(e,{default:"showing"===e.mode}),"showing"===e.mode&&(e.mode="hidden"),ui.call(this,e,"cuechange",()=>Ui.updateCues.call(this))}),(a&&this.language!==i||!e.includes(s))&&(Ui.setLanguage.call(this,i),Ui.toggle.call(this,t&&a)),this.elements&&ei(this.elements.container,this.config.classNames.captions.enabled,!jt.empty(e)),jt.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&ji.setCaptionsMenu.call(this)},toggle(e,t=!0){if(!this.supported.ui)return;const{toggled:i}=this.captions,n=this.config.classNames.captions.active,s=jt.nullOrUndefined(e)?!i:e;if(s!==i){if(t||(this.captions.active=s,this.storage.set({captions:s})),!this.language&&s&&!t){const e=Ui.getTracks.call(this),t=Ui.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=t.language,void Ui.set.call(this,e.indexOf(t))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=s),ei(this.elements.container,n,s),this.captions.toggled=s,ji.updateSetting.call(this,"captions"),mi.call(this,this.media,s?"captionsenabled":"captionsdisabled")}setTimeout(()=>{s&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,t=!0){const i=Ui.getTracks.call(this);if(-1!==e)if(jt.number(e))if(e in i){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const n=i[e],{language:s}=n||{};this.captions.currentTrackNode=n,ji.updateSetting.call(this,"captions"),t||(this.captions.language=s,this.storage.set({language:s})),this.isVimeo&&this.embed.enableTextTrack(s),mi.call(this,this.media,"languagechange")}Ui.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&Ui.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else Ui.toggle.call(this,!1,t)},setLanguage(e,t=!0){if(!jt.string(e))return void this.debug.warn("Invalid language argument",e);const i=e.toLowerCase();this.captions.language=i;const n=Ui.getTracks.call(this),s=Ui.findTrack.call(this,[i]);Ui.set.call(this,n.indexOf(s),t)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(t=>!this.isHTML5||e||this.captions.meta.has(t)).filter(e=>["captions","subtitles"].includes(e.kind))},findTrack(e,t=!1){const i=Ui.getTracks.call(this),n=e=>Number((this.captions.meta.get(e)||{}).default),s=Array.from(i).sort((e,t)=>n(t)-n(e));let a;return e.every(e=>(a=s.find(t=>t.language===e),!a)),a||(t?s[0]:void 0)},getCurrentTrack(){return Ui.getTracks.call(this)[this.currentTrack]},getLabel(e){let t=e;return!jt.track(t)&&ri.textTracks&&this.captions.toggled&&(t=Ui.getCurrentTrack.call(this)),jt.track(t)?jt.empty(t.label)?jt.empty(t.language)?Oi.get("enabled",this.config):e.language.toUpperCase():t.label:Oi.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!jt.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!jt.nullOrUndefined(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let t=e;if(!t){const e=Ui.getCurrentTrack.call(this);t=Array.from((e||{}).activeCues||[]).map(e=>e.getCueAsHTML()).map(Pi)}const i=t.map(e=>e.trim()).join("\n");if(i!==this.elements.captions.innerHTML){Xt(this.elements.captions);const e=Yt("span",Jt(this.config.selectors.caption));e.innerHTML=i,this.elements.captions.appendChild(e),mi.call(this,this.media,"cuechange")}}},zi={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.8.2/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:"S
2D"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:"",withCredentials:!1},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:[]}},Wi="picture-in-picture",Vi="inline",Yi={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Gi="audio",Ki="video";function Xi(){}class Qi{constructor(e=!1){this.enabled=window.console&&e,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):Xi}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):Xi}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):Xi}}class Ji{constructor(e){ut(this,"onChange",()=>{if(!this.supported)return;const e=this.player.elements.buttons.fullscreen;jt.element(e)&&(e.pressed=this.active);const t=this.target===this.player.media?this.target:this.player.elements.container;mi.call(this.player,t,this.active?"enterfullscreen":"exitfullscreen",!0)}),ut(this,"toggleFallback",(e=!1)=>{var t,i;e?this.scrollPosition={x:null!==(t=window.scrollX)&&void 0!==t?t:0,y:null!==(i=window.scrollY)&&void 0!==i?i:0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y);if(document.body.style.overflow=e?"hidden":"",ei(this.target,this.player.config.classNames.fullscreen.fallback,e),Li.isIos){let t=document.head.querySelector('meta[name="viewport"]');const i="viewport-fit=cover";t||(t=document.createElement("meta"),t.setAttribute("name","viewport"));const n=jt.string(t.content)&&t.content.includes(i);e?(this.cleanupViewport=!n,n||(t.content+=`,${i}`)):this.cleanupViewport&&(t.content=t.content.split(",").filter(e=>e.trim()!==i).join(","))}this.onChange()}),ut(this,"trapFocus",e=>{if(Li.isIos||Li.isIPadOS||!this.active||"Tab"!==e.key)return;const t=document.activeElement,i=ni.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[n]=i,s=i[i.length-1];t!==s||e.shiftKey?t===n&&e.shiftKey&&(s.focus(),e.preventDefault()):(n.focus(),e.preventDefault())}),ut(this,"update",()=>{if(this.supported){let e;e=this.forceFallback?"Fallback (forced)":Ji.nativeSupported?"Native":"Fallback",this.player.debug.log(`${e} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");ei(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported)}),ut(this,"enter",()=>{this.supported&&(Li.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!Ji.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?jt.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),ut(this,"exit",()=>{if(this.supported)if(Li.isIos&&this.player.config.fullscreen.iosNative)this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),gi(this.player.play());else if(!Ji.nativeSupported||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!jt.empty(this.prefix)){const e="moz"===this.prefix?"Cancel":"Exit";document[`${this.prefix}${e}${this.property}`]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}),ut(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=e,this.prefix=Ji.prefix,this.property=Ji.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===e.config.fullscreen.fallback,this.player.elements.fullscreen=e.config.fullscreen.container&&function(e,t){const{prototype:i}=Element;return(i.closest||function(){let e=this;do{if(ii.matches(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}).call(e,t)}(this.player.elements.container,e.config.fullscreen.container),ui.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),ui.call(this.player,this.player.elements.container,"dblclick",e=>{jt.element(this.player.elements.controls)&&this.player.elements.controls.contains(e.target)||this.player.listeners.proxy(e,this.toggle,"fullscreen")}),ui.call(this,this.player.elements.container,"keydown",e=>this.trapFocus(e)),this.update()}static get nativeSupported(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get useNative(){return Ji.nativeSupported&&!this.forceFallback}static get prefix(){if(jt.function(document.exitFullscreen))return"";let e="";return["webkit","moz","ms"].some(t=>!(!jt.function(document[`${t}ExitFullscreen`])&&!jt.function(document[`${t}CancelFullScreen`]))&&(e=t,!0)),e}static get property(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}get supported(){return[this.player.config.fullscreen.enabled,this.player.isVideo,Ji.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||Ji.nativeSupported||!Li.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}get active(){if(!this.supported)return!1;if(!Ji.nativeSupported||this.forceFallback)return ti(this.target,this.player.config.classNames.fullscreen.fallback);const e=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return e&&e.shadowRoot?e===this.target.getRootNode().host:e===this.target}get target(){var e;return Li.isIos&&this.player.config.fullscreen.iosNative?this.player.media:null!==(e=this.player.elements.fullscreen)&&void 0!==e?e:this.player.elements.container}}
vendor: 10,790 bytes, line 2
2function Zi(e,t=1){return new Promise((i,n)=>{const s=new Image,a=()=>{delete s.onload,delete s.onerror,(s.naturalWidth>=t?i:n)(s)};Object.assign(s,{onload:a,onerror:a,src:e})})}const en={addStyleHook(){ei(this.elements.container,this.config.selectors.container.replace(".",""),!0),ei(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 en.toggleNativeControls.call(this,!0);jt.element(this.elements.controls)||(ji.inject.call(this),this.listeners.controls()),en.toggleNativeControls.call(this),this.isHTML5&&Ui.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,ji.updateVolume.call(this),ji.timeUpdate.call(this),ji.durationUpdate.call(this),en.checkPlaying.call(this),ei(this.elements.container,this.config.classNames.pip.supported,ri.pip&&this.isHTML5&&this.isVideo),ei(this.elements.container,this.config.classNames.airplay.supported,ri.airplay&&this.isHTML5),ei(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{mi.call(this,this.media,"ready")},0),en.setTitle.call(this),this.poster&&en.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&ji.durationUpdate.call(this),this.config.mediaMetadata&&ji.setMediaMetadata.call(this)},setTitle(){let e=Oi.get("play",this.config);if(jt.string(this.config.title)&&!jt.empty(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(t=>{t.setAttribute("aria-label",e)}),this.isEmbed){const e=si.call(this,"iframe");if(!jt.element(e))return;const t=jt.empty(this.config.title)?"video":this.config.title,i=Oi.get("frameTitle",this.config);e.setAttribute("title",i.replace("{title}",t))}},togglePoster(e){ei(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,t=!0){return t&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),fi.call(this).then(()=>Zi(e)).catch(t=>{throw e===this.poster&&en.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:""}),en.togglePoster.call(this,!0),e)))},checkPlaying(e){ei(this.elements.container,this.config.classNames.playing,this.playing),ei(this.elements.container,this.config.classNames.paused,this.paused),ei(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(e=>{Object.assign(e,{pressed:this.playing}),e.setAttribute("aria-label",Oi.get(this.playing?"pause":"play",this.config))}),jt.event(e)&&"timeupdate"===e.type||en.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{ei(this.elements.container,this.config.classNames.loading,this.loading),en.toggleControls.call(this)},this.loading?250:0)},toggleControls(e){const{controls:t}=this.elements;if(t&&this.config.hideControls){const i=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||t.pressed||t.hover||i))}},migrateStyles(){Object.values({...this.media.style}).filter(e=>!jt.empty(e)&&jt.string(e)&&e.startsWith("--plyr")).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),jt.empty(this.media.style)&&this.media.removeAttribute("style")}};class tn{constructor(e){ut(this,"firstTouch",()=>{const{player:e}=this,{elements:t}=e;e.touch=!0,ei(t.container,e.config.classNames.isTouch,!0)}),ut(this,"global",(e=!0)=>{const{player:t}=this;t.config.keyboard.global&&ci.call(t,window,"keydown keyup",this.handleKey,e,!1),ci.call(t,document.body,"click",this.toggleMenu,e),hi.call(t,document.body,"touchstart",this.firstTouch)}),ut(this,"container",()=>{const{player:e}=this,{config:t,elements:i,timers:n}=e;!t.keyboard.global&&t.keyboard.focused&&ui.call(e,i.container,"keydown keyup",this.handleKey,!1),ui.call(e,i.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",t=>{const{controls:s}=i;s&&"enterfullscreen"===t.type&&(s.pressed=!1,s.hover=!1);let a=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(en.toggleControls.call(e,!0),a=e.touch?3e3:2e3),clearTimeout(n.controls),n.controls=setTimeout(()=>en.toggleControls.call(e,!1),a)});const s=()=>{if(!e.isVimeo||e.config.vimeo.premium)return;const t=i.wrapper,{active:n}=e.fullscreen,[s,a]=Ai.call(e),o=vi(`aspect-ratio: ${s} / ${a}`);if(!n)return void(o?(t.style.width=null,t.style.height=null):(t.style.maxWidth=null,t.style.margin=null));const[r,l]=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],c=r/l>s/a;o?(t.style.width=c?"auto":"100%",t.style.height=c?"100%":"auto"):(t.style.maxWidth=c?l/a*s+"px":null,t.style.margin=c?"0 auto":null)},a=()=>{clearTimeout(n.resized),n.resized=setTimeout(s,50)};ui.call(e,i.container,"enterfullscreen exitfullscreen",t=>{const{target:n}=e.fullscreen;if(n!==i.container)return;if(!e.isEmbed&&jt.empty(e.config.ratio))return;s();("enterfullscreen"===t.type?ui:di).call(e,window,"resize",a)})}),ut(this,"media",()=>{const{player:e}=this,{elements:t}=e;if(ui.call(e,e.media,"timeupdate seeking seeked",t=>ji.timeUpdate.call(e,t)),ui.call(e,e.media,"durationchange loadeddata loadedmetadata",t=>ji.durationUpdate.call(e,t)),ui.call(e,e.media,"ended",()=>{e.isHTML5&&e.isVideo&&e.config.resetOnEnd&&(e.restart(),e.pause())}),ui.call(e,e.media,"progress playing seeking seeked",t=>ji.updateProgress.call(e,t)),ui.call(e,e.media,"volumechange",t=>ji.updateVolume.call(e,t)),ui.call(e,e.media,"playing play pause ended emptied timeupdate",t=>en.checkPlaying.call(e,t)),ui.call(e,e.media,"waiting canplay seeked playing",t=>en.checkLoading.call(e,t)),e.supported.ui&&e.config.clickToPlay&&!e.isAudio){const i=si.call(e,`.${e.config.classNames.video}`);if(!jt.element(i))return;ui.call(e,t.container,"click",n=>{([t.container,i].includes(n.target)||i.contains(n.target))&&(e.touch&&e.config.hideControls||(e.ended?(this.proxy(n,e.restart,"restart"),this.proxy(n,()=>{gi(e.play())},"play")):this.proxy(n,()=>{gi(e.togglePlay())},"play")))})}e.supported.ui&&e.config.disableContextMenu&&ui.call(e,t.wrapper,"contextmenu",e=>{e.preventDefault()},!1),ui.call(e,e.media,"volumechange",()=>{e.storage.set({volume:e.volume,muted:e.muted})}),ui.call(e,e.media,"ratechange",()=>{ji.updateSetting.call(e,"speed"),e.storage.set({speed:e.speed})}),ui.call(e,e.media,"qualitychange",t=>{ji.updateSetting.call(e,"quality",null,t.detail.quality)}),ui.call(e,e.media,"ready qualitychange",()=>{ji.setDownloadUrl.call(e)});const i=e.config.events.concat(["keyup","keydown"]).join(" ");ui.call(e,e.media,i,i=>{let{detail:n={}}=i;"error"===i.type&&(n=e.media.error),mi.call(e,t.container,i.type,!0,n)})}),ut(this,"proxy",(e,t,i)=>{const{player:n}=this,s=n.config.listeners[i];let a=!0;jt.function(s)&&(a=s.call(n,e)),!1!==a&&jt.function(t)&&t.call(n,e)}),ut(this,"bind",(e,t,i,n,s=!0)=>{const{player:a}=this,o=a.config.listeners[n],r=jt.function(o);ui.call(a,e,t,e=>this.proxy(e,i,n),s&&!r)}),ut(this,"controls",()=>{const{player:e}=this,{elements:t}=e,i=Li.isIE?"change":"input";if(t.buttons.play&&Array.from(t.buttons.play).forEach(t=>{this.bind(t,"click",()=>{gi(e.togglePlay())},"play")}),this.bind(t.buttons.restart,"click",e.restart,"restart"),this.bind(t.buttons.rewind,"click",()=>{e.lastSeekTime=Date.now(),e.rewind()},"rewind"),this.bind(t.buttons.fastForward,"click",()=>{e.lastSeekTime=Date.now(),e.forward()},"fastForward"),this.bind(t.buttons.mute,"click",()=>{e.muted=!e.muted},"mute"),this.bind(t.buttons.captions,"click",()=>e.toggleCaptions()),this.bind(t.buttons.download,"click",()=>{mi.call(e,e.media,"download")},"download"),this.bind(t.buttons.fullscreen,"click",()=>{e.fullscreen.toggle()},"fullscreen"),this.bind(t.buttons.pip,"click",()=>{e.pip="toggle"},"pip"),this.bind(t.buttons.airplay,"click",e.airplay,"airplay"),this.bind(t.buttons.settings,"click",t=>{t.stopPropagation(),t.preventDefault(),ji.toggleMenu.call(e,t)},null,!1),this.bind(t.buttons.settings,"keyup",t=>{[" ","Enter"].includes(t.key)&&("Enter"!==t.key?(t.preventDefault(),t.stopPropagation(),ji.toggleMenu.call(e,t)):ji.focusFirstMenuItem.call(e,null,!0))},null,!1),this.bind(t.settings.menu,"keydown",t=>{"Escape"===t.key&&ji.toggleMenu.call(e,t)}),this.bind(t.inputs.seek,"mousedown mousemove",e=>{const i=t.progress.getBoundingClientRect(),n=e.pageX-e.clientX,s=100/i.width*(e.pageX-i.left-n);e.currentTarget.setAttribute("seek-value",s)}),this.bind(t.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",t=>{const i=t.currentTarget,n="play-on-seeked";if(jt.keyboardEvent(t)&&!["ArrowLeft","ArrowRight"].includes(t.key))return;e.lastSeekTime=Date.now();const s=i.hasAttribute(n),a=["mouseup","touchend","keyup"].includes(t.type);s&&a?(i.removeAttribute(n),gi(e.play())):!a&&e.playing&&(i.setAttribute(n,""),e.pause())}),Li.isIos){const t=ni.call(e,'input[type="range"]');Array.from(t).forEach(e=>this.bind(e,i,e=>Ft(e.target)))}this.bind(t.inputs.seek,i,t=>{const i=t.currentTarget;let n=i.getAttribute("seek-value");jt.empty(n)&&(n=i.value),i.removeAttribute("seek-value"),e.currentTime=n/i.max*e.duration},"seek"),this.bind(t.progress,"mouseenter mouseleave mousemove",t=>ji.updateSeekTooltip.call(e,t)),this.bind(t.progress,"mousemove touchmove",t=>{const{previewThumbnails:i}=e;i&&i.loaded&&i.startMove(t)}),this.bind(t.progress,"mouseleave touchend click",()=>{const{previewThumbnails:t}=e;t&&t.loaded&&t.endMove(!1,!0)}),this.bind(t.progress,"mousedown touchstart",t=>{const{previewThumbnails:i}=e;i&&i.loaded&&i.startScrubbing(t)}),this.bind(t.progress,"mouseup touchend",t=>{const{previewThumbnails:i}=e;i&&i.loaded&&i.endScrubbing(t)}),Li.isWebKit&&Array.from(ni.call(e,'input[type="range"]')).forEach(t=>{this.bind(t,"input",t=>ji.updateRangeFill.call(e,t.target))}),e.config.toggleInvert&&!jt.element(t.display.duration)&&this.bind(t.display.currentTime,"click",()=>{0!==e.currentTime&&(e.config.invertTime=!e.config.invertTime,ji.timeUpdate.call(e))}),this.bind(t.inputs.volume,i,t=>{e.volume=t.target.value},"volume"),this.bind(t.controls,"mouseenter mouseleave",i=>{t.controls.hover=!e.touch&&"mouseenter"===i.type}),t.fullscreen&&Array.from(t.fullscreen.children).filter(e=>
vendor: 4,250 bytes, line 2
2!e.contains(t.container)).forEach(i=>{this.bind(i,"mouseenter mouseleave",i=>{t.controls&&(t.controls.hover=!e.touch&&"mouseenter"===i.type)})}),this.bind(t.controls,"mousedown mouseup touchstart touchend touchcancel",e=>{t.controls.pressed=["mousedown","touchstart"].includes(e.type)}),this.bind(t.controls,"focusin",()=>{const{config:i,timers:n}=e;ei(t.controls,i.classNames.noTransition,!0),en.toggleControls.call(e,!0),setTimeout(()=>{ei(t.controls,i.classNames.noTransition,!1)},0);const s=this.touch?3e3:4e3;clearTimeout(n.controls),n.controls=setTimeout(()=>en.toggleControls.call(e,!1),s)}),this.bind(t.inputs.volume,"wheel",t=>{const i=t.webkitDirectionInvertedFromDevice,[n,s]=[t.deltaX,-t.deltaY].map(e=>i?-e:e),a=Math.sign(Math.abs(n)>Math.abs(s)?n:s);e.increaseVolume(a/50);const{volume:o}=e.media;(1===a&&o<1||-1===a&&o>0)&&t.preventDefault()},"volume",!1)}),this.player=e,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(e){const{player:t}=this,{elements:i}=t,{key:n,type:s,altKey:a,ctrlKey:o,metaKey:r,shiftKey:l}=e,c="keydown"===s,u=c&&n===this.lastKey;if(a||o||r||l)return;if(!n)return;if(c){const s=document.activeElement;if(jt.element(s)){const{editable:n}=t.config.selectors,{seek:a}=i.inputs;if(s!==a&&ii(s,n))return;if(" "===e.key&&ii(s,'button, [role^="menuitem"]'))return}switch([" ","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(n)&&(e.preventDefault(),e.stopPropagation()),n){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":u||(d=Number.parseInt(n,10),t.currentTime=t.duration/10*d);break;case" ":case"k":u||gi(t.togglePlay());break;case"ArrowUp":t.increaseVolume(.1);break;case"ArrowDown":t.decreaseVolume(.1);break;case"m":u||(t.muted=!t.muted);break;case"ArrowRight":t.forward();break;case"ArrowLeft":t.rewind();break;case"f":t.fullscreen.toggle();break;case"c":u||t.toggleCaptions();break;case"l":t.loop=!t.loop}"Escape"===n&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=n}else this.lastKey=null;var d}toggleMenu(e){ji.toggleMenu.call(this.player,e)}}function nn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sn,an={exports:{}};var on=(sn||(sn=1,an.exports=function(){var e=function(){},t={},i={},n={};function s(e,t){e=e.push?e:[e];var s,a,o,r=[],l=e.length,c=l;for(s=function(e,i){i.length&&r.push(e),--c||t(r)};l--;)a=e[l],(o=i[a])?s(a,o):(n[a]=n[a]||[]).push(s)}function a(e,t){if(e){var s=n[e];if(i[e]=t,s)for(;s.length;)s[0](e,t),s.splice(0,1)}}function o(t,i){t.call&&(t={success:t}),i.length?(t.error||e)(i):(t.success||e)(t)}function r(t,i,n,s){var a,o,l,c=document,u=n.async,d=(n.numRetries||0)+1,h=n.before||e,m=t.replace(/[\?|#].*$/,""),p=t.replace(/^(css|img|module|nomodule)!/,"");if(s=s||0,/(^css!|\.css$)/.test(m))(l=c.createElement("link")).rel="stylesheet",l.href=p,(a="hideFocus"in l)&&l.relList&&(a=0,l.rel="preload",l.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(m))(l=c.createElement("img")).src=p;else if((l=c.createElement("script")).src=p,l.async=void 0===u||u,o="noModule"in l,/^module!/.test(m)){if(!o)return i(t,"l");l.type="module"}else if(/^nomodule!/.test(m)&&o)return i(t,"l");l.onload=l.onerror=l.onbeforeload=function(e){var o=e.type[0];if(a)try{l.sheet.cssText.length||(o="e")}catch(e){18!=e.code&&(o="e")}if("e"==o){if((s+=1)<d)return r(t,i,n,s)}else if("preload"==l.rel&&"style"==l.as)return l.rel="stylesheet";i(t,o,e.defaultPrevented)},!1!==h(t,l)&&c.head.appendChild(l)}function l(e,t,i){var n,s,a=(e=e.push?e:[e]).length,o=a,l=[];for(n=function(e,i,n){if("e"==i&&l.push(e),"b"==i){if(!n)return;l.push(e)}--a||t(l)},s=0;s<o;s++)r(e[s],n,i)}function c(e,i,n){var s,r;if(i&&i.trim&&(s=i),r=(s?n:i)||{},s){if(s in t)throw"LoadJS";t[s]=!0}function c(t,i){l(e,function(e){o(r,e),t&&o({success:t,error:i},e),a(s,e)},r)}if(r.returnPromise)return new Promise(c);c()}return c.ready=function(e,t){return s(e,function(e){o(t,e)}),c},c.done=function(e){a(e,[])},c.reset=function(){t={},i={},n={}},c.isDefined=function(e){return e in t},c}
vendor: 42,044 bytes, line 2
2()),an.exports),rn=nn(on);function ln(e){return new Promise((t,i)=>{rn(e,{success:t,error:i})})}function cn(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,mi.call(this,this.media,e?"play":"pause"))}const un={setup(){const e=this;ei(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,ki.call(e),jt.object(window.Vimeo)?un.ready.call(e):ln(e.config.urls.vimeo.sdk).then(()=>{un.ready.call(e)}).catch(t=>{e.debug.warn("Vimeo SDK (player.js) failed to load",t)})},ready(){const e=this,t=e.config.vimeo,{premium:i,referrerPolicy:n,...s}=t;let a=e.media.getAttribute("src"),o="";jt.empty(a)?(a=e.media.getAttribute(e.config.attributes.embed.id),o=e.media.getAttribute(e.config.attributes.embed.hash)):o=function(e){const t=e.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*h=|\/)+([\d,a-f]+)/);return t&&5===t.length?t[4]:null}(a);const r=o?{h:o}:{};i&&Object.assign(s,{controls:!1,sidedock:!1});const l=Fi({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:e.config.playsinline,...r,...s}),c=function(e){if(jt.empty(e))return null;if(jt.number(Number(e)))return e;const t=e.match(/^.*(vimeo.com\/|video\/)(\d+).*/);return t?t[2]:e}(a),u=Yt("iframe"),d=xi(e.config.urls.vimeo.iframe,c,l);if(u.setAttribute("src",d),u.setAttribute("allowfullscreen",""),u.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),jt.empty(n)||u.setAttribute("referrerPolicy",n),i||!t.customControls)u.setAttribute("data-poster",e.poster),e.media=Qt(u,e.media);else{const t=Yt("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});t.appendChild(u),e.media=Qt(t,e.media)}t.customControls||Ri(xi(e.config.urls.vimeo.api,d)).then(t=>{!jt.empty(t)&&t.thumbnail_url&&en.setPoster.call(e,t.thumbnail_url).catch(()=>{})}),e.embed=new window.Vimeo.Player(u,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(cn.call(e,!0),e.embed.play()),e.media.pause=()=>(cn.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:h}=e.media;Object.defineProperty(e.media,"currentTime",{get(){return h},set(t){const{embed:i,media:n,paused:s,volume:a}=e,o=s&&!i.hasPlayed;n.seeking=!0,mi.call(e,n,"seeking"),Promise.resolve(o&&i.setVolume(0)).then(()=>i.setCurrentTime(t)).then(()=>o&&i.pause()).then(()=>o&&i.setVolume(a)).catch(()=>{})}});let m=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get(){return m},set(t){e.embed.setPlaybackRate(t).then(()=>{m=t,mi.call(e,e.media,"ratechange")}).catch(()=>{e.options.speed=[1]})}});let{volume:p}=e.config;Object.defineProperty(e.media,"volume",{get(){return p},set(t){e.embed.setVolume(t).then(()=>{p=t,mi.call(e,e.media,"volumechange")})}});let{muted:f}=e.config;Object.defineProperty(e.media,"muted",{get(){return f},set(t){const i=!!jt.boolean(t)&&t;e.embed.setMuted(!!i||e.config.muted).then(()=>{f=i,mi.call(e,e.media,"volumechange")})}});let g,{loop:y}=e.config;Object.defineProperty(e.media,"loop",{get(){return y},set(t){const i=jt.boolean(t)?t:e.config.loop.active;e.embed.setLoop(i).then(()=>{y=i})}}),e.embed.getVideoUrl().then(t=>{g=t,ji.setDownloadUrl.call(e)}).catch(e=>{this.debug.warn(e)}),Object.defineProperty(e.media,"currentSrc",{get(){return g}}),Object.defineProperty(e.media,"ended",{get(){return e.currentTime===e.duration}}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(t=>{const[i,n]=t;e.embed.ratio=Si(i,n),ki.call(this)}),e.embed.setAutopause(e.config.autopause).then(t=>{e.config.autopause=t}),e.embed.getVideoTitle().then(t=>{e.config.title=t,en.setTitle.call(this)}),e.embed.getCurrentTime().then(t=>{h=t,mi.call(e,e.media,"timeupdate")}),e.embed.getDuration().then(t=>{e.media.duration=t,mi.call(e,e.media,"durationchange")}),e.embed.getTextTracks().then(t=>{e.media.textTracks=t,Ui.setup.call(e)}),e.embed.on("cuechange",({cues:t=[]})=>{const i=t.map(e=>function(e){const t=document.createDocumentFragment(),i=document.createElement("div");return t.appendChild(i),i.innerHTML=e,t.firstChild.textContent}(e.text));Ui.updateCues.call(e,i)}),e.embed.on("loaded",()=>{if(e.embed.getPaused().then(t=>{cn.call(e,!t),t||mi.call(e,e.media,"playing")}),jt.element(e.embed.element)&&e.supported.ui){e.embed.element.setAttribute("tabindex",-1)}}),e.embed.on("bufferstart",()=>{mi.call(e,e.media,"waiting")}),e.embed.on("bufferend",()=>{mi.call(e,e.media,"playing")}),e.embed.on("play",()=>{cn.call(e,!0),mi.call(e,e.media,"playing")}),e.embed.on("pause",()=>{cn.call(e,!1)}),e.embed.on("timeupdate",t=>{e.media.seeking=!1,h=t.seconds,mi.call(e,e.media,"timeupdate")}),e.embed.on("progress",t=>{e.media.buffered=t.percent,mi.call(e,e.media,"progress"),1===Number.parseInt(t.percent,10)&&mi.call(e,e.media,"canplaythrough"),e.embed.getDuration().then(t=>{t!==e.media.duration&&(e.media.duration=t,mi.call(e,e.media,"durationchange"))})}),e.embed.on("seeked",()=>{e.media.seeking=!1,mi.call(e,e.media,"seeked")}),e.embed.on("ended",()=>{e.media.paused=!0,mi.call(e,e.media,"ended")}),e.embed.on("error",t=>{e.media.error=t,mi.call(e,e.media,"error")}),t.customControls&&setTimeout(()=>en.build.call(e),0)}};function dn(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,mi.call(this,this.media,e?"play":"pause"))}function hn(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}const mn={setup(){if(ei(this.elements.wrapper,this.config.classNames.embed,!0),jt.object(window.YT)&&jt.function(window.YT.Player))mn.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{jt.function(e)&&e(),mn.ready.call(this)},ln(this.config.urls.youtube.sdk).catch(e=>{this.debug.warn("YouTube API failed to load",e)})}},getTitle(e){Ri(xi(this.config.urls.youtube.api,e)).then(e=>{if(jt.object(e)){const{title:t,height:i,width:n}=e;this.config.title=t,en.setTitle.call(this),this.embed.ratio=Si(n,i)}ki.call(this)}).catch(()=>{ki.call(this)})},ready(){const e=this,t=e.config.youtube,i=e.media&&e.media.getAttribute("id");if(!jt.empty(i)&&i.startsWith("youtube-"))return;let n=e.media.getAttribute("src");jt.empty(n)&&(n=e.media.getAttribute(this.config.attributes.embed.id));const s=function(e){if(jt.empty(e))return null;const t=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return t&&t[2]?t[2]:e}(n);const a=Yt("div",{id:`${e.provider}-${Math.floor(1e4*Math.random())}`,"data-poster":t.customControls?e.poster:void 0});if(e.media=Qt(a,e.media),t.customControls){const t=e=>`https://i.ytimg.com/vi/${s}/${e}default.jpg`;Zi(t("maxres"),121).catch(()=>Zi(t("sd"),121)).catch(()=>Zi(t("hq"))).then(t=>en.setPoster.call(e,t.src)).then(t=>{t.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}e.embed=new window.YT.Player(e.media,{videoId:s,host:hn(t),playerVars:zt({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&t.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},t),events:{onError(t){if(!e.media.error){const i=t.data,n={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."}[i]||"An unknown error occurred";e.media.error={code:i,message:n},mi.call(e,e.media,"error")}},onPlaybackRateChange(t){const i=t.target;e.media.playbackRate=i.getPlaybackRate(),mi.call(e,e.media,"ratechange")},onReady(i){if(jt.function(e.media.play))return;const n=i.target;mn.getTitle.call(e,s),e.media.play=()=>{dn.call(e,!0),n.playVideo()},e.media.pause=()=>{dn.call(e,!1),n.pauseVideo()},e.media.stop=()=>{n.stopVideo()},e.media.duration=n.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get(){return Number(n.getCurrentTime())},set(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,mi.call(e,e.media,"seeking"),n.seekTo(t)}}),Object.defineProperty(e.media,"playbackRate",{get(){return n.getPlaybackRate()},set(e){n.setPlaybackRate(e)}});let{volume:a}=e.config;Object.defineProperty(e.media,"volume",{get(){return a},set(t){a=t,n.setVolume(100*a),mi.call(e,e.media,"volumechange")}});let{muted:o}=e.config;Object.defineProperty(e.media,"muted",{get(){return o},set(t){const i=jt.boolean(t)?t:o;o=i,n[i?"mute":"unMute"](),n.setVolume(100*a),mi.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get(){return n.getVideoUrl()}}),Object.defineProperty(e.media,"ended",{get(){return e.currentTime===e.duration}});const r=n.getAvailablePlaybackRates();e.options.speed=r.filter(t=>e.config.speed.options.includes(t)),e.supported.ui&&t.customControls&&e.media.setAttribute("tabindex",-1),mi.call(e,e.media,"timeupdate"),mi.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(()=>{e.media.buffered=n.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBuffered<e.media.buffered)&&mi.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),mi.call(e,e.media,"canplaythrough"))},200),t.customControls&&setTimeout(()=>en.build.call(e),50)},onStateChange(i){const n=i.target;clearInterval(e.timers.playing);switch(e.media.seeking&&[1,2].includes(i.data)&&(e.media.seeking=!1,mi.call(e,e.media,"seeked")),i.data){case-1:mi.call(e,e.media,"timeupdate"),e.media.buffered=n.getVideoLoadedFraction(),mi.call(e,e.media,"progress");break;case 0:dn.call(e,!1),e.media.loop?(n.stopVideo(),n.playVideo()):mi.call(e,e.media,"ended");break;case 1:t.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(dn.call(e,!0),mi.call(e,e.media,"playing"),e.timers.playing=setInterval(()=>{mi.call(e,e.media,"timeupdate")},50),e.media.duration!==n.getDuration()&&(e.media.duration=n.getDuration(),mi.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),dn.call(e,!1);break;case 3:mi.call(e,e.media,"waiting")}mi.call(e,e.elements.container,"statechange",!1,{code:i.data})}}})}},pn={setup(){this.media?(ei(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),ei(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&ei(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=Yt("div",{class:this.config.classNames.video}),Wt(this.media,this.elements.wrapper),this.elements.poster=Yt("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?Ci.setup.call(this):this.isYouTube?mn.setup.call(this):this.isVimeo&&un.setup.call(this)):this.debug.warn("No media element found!")}};class fn{constructor(e){ut(this,"load",()=>{this.enabled&&(jt.object(window.google)&&jt.object(window.google.ima)?this.ready():ln(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}))}),ut(this,"ready",()=>{var e;this.enabled||((e=this).manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),ut(this,"setupIMA",()=>{this.elements.container=Yt("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,e=>this.onAdsManagerLoaded(e),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,e=>this.onAdError(e),!1),this.requestAds()}),ut(this,"requestAds",()=>{const{container:e}=this.player.elements;try{const t=new google.ima.AdsRequest;t.adTagUrl=this.tagUrl,t.linearAdSlotWidth=e.offsetWidth,t.linearAdSlotHeight=e.offsetHeight,t.nonLinearAdSlotWidth=e.offsetWidth,t.nonLinearAdSlotHeight=e.offsetHeight,t.forceNonLinearFullSlot=!1,t.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(t)}catch(e){this.onAdError(e)}}),ut(this,"pollCountdown",(e=!1)=>{if(!e)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(()=>{const e=$i(Math.max(this.manager.getRemainingTime(),0)),t=`${Oi.get("advertisement",this.player.config)} - ${e}`;this.elements.container.setAttribute("data-badge-text",t)},100)}),ut(this,"onAdsManagerLoaded",e=>{if(!this.enabled)return;const t=new google.ima.AdsRenderingSettings;t.restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,this.manager=e.getAdsManager(this.player,t),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,e=>this.onAdError(e)),Object.keys(google.ima.AdEvent.Type).forEach(e=>{this.manager.addEventListener(google.ima.AdEvent.Type[e],e=>this.onAdEvent(e))}),this.trigger("loaded")}),ut(this,"addCuePoints",()=>{jt.empty(this.cuePoints)||this.cuePoints.forEach(e=>{if(0!==e&&-1!==e&&e<this.player.duration){const t=this.player.elements.progress;if(jt.element(t)){const i=100/this.player.duration*e,n=Yt("span",{class:this.player.config.classNames.cues});n.style.left=`${i.toString()}%`,t.appendChild(n)}}})}),ut(this,"onAdEvent",e=>{const{container:t}=this.player.elements,i=e.getAd(),n=e.getAdData();switch((e=>{mi.call(this.player,this.player.media,`ads${e.replace(/_/g,"").toLowerCase()}`)})(e.type),e.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),i.isLinear()||(i.width=t.offsetWidth,i.height=t.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()}`)}}),ut(this,"onAdError",e=>{this.cancel(),this.player.debug.warn("Ads error",e)}),ut(this,"listeners",()=>{const{container:e}=this.player.elements;let t;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{t=this.player.currentTime}),this.player.on("seeked",()=>{const e=this.player.currentTime;jt.empty(this.cuePoints)||this.cuePoints.forEach((i,n)=>{t<i&&i<e&&(this.manager.discardAdBreak(),this.cuePoints.splice(n,1))})}),window.addEventListener("resize",()=>{this.manager&&this.manager.resize(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL)})}),ut(this,"play",()=>{const{container:e}=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(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(e){this.onAdError(e)}}).catch(()=>{})}),ut(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,gi(this.player.media.play())}),ut(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),ut(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),ut(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(e=>{this.on("loaded",e),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),ut(this,"trigger",(e,...t)=>{const i=this.events[e];jt.array(i)&&i.forEach(e=>{jt.function(e)&&e.apply(this,t)})}),ut(this,"on",(e,t)=>(jt.array(this.events[e])||(this.events[e]=[]),this.events[e].push(t),this)),ut(this,"startSafetyTimer",(e,t)=>{this.player.debug.log(`Safety timer invoked from: ${t}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},e)}),ut(this,"clearSafetyTimer",e=>{jt.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${e}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=e,this.config=e.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((e,t)=>{this.on("loaded",e),this.on("error",t)}),this.load()}get enabled(){const{config:e}=this;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!jt.empty(e.publisherId)||jt.url(e.tagUrl))}get tagUrl(){const{config:e}=this;if(jt.url(e.tagUrl))return e.tagUrl;return`https://go.aniview.com/api/adserver6/vast/?${Fi({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId})}`}}function gn(e=0,t=0,i=255){return Math.min(Math.max(e,t),i)}function yn(e){const t=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(e=>{const i={};e.split(/\r\n|\n|\r/).forEach(e=>{if(jt.number(i.startTime)){if(!jt.empty(e.trim())&&jt.empty(i.text)){const t=e.trim().split("#xywh=");[i.text]=t,t[1]&&([i.x,i.y,i.w,i.h]=t[1].split(","))}}else{const t=e.match(/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})( ?--> ?)(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/);t&&(i.startTime=60*Number(t[1]||0)*60+60*Number(t[2])+Number(t[3])+Number(`0.${t[4]}`),i.endTime=60*Number(t[6]||0)*60+60*Number(t[7])+Number(t[8])+Number(`0.${t[9]}`))}}),i.text&&t.push(i)}),t}function bn(e,t){const i={};return e>t.width/t.height?(i.width=t.width,i.height=1/e*t.width):(i.height=t.height,i.width=e*t.height),i}class vn{constructor(e){ut(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)})}),ut(this,"getThumbnails",()=>new Promise(e=>{const{src:t}=this.player.config.previewThumbnails;if(jt.empty(t))throw new Error("Missing previewThumbnails.src config attribute");const i=()=>{this.thumbnails.sort((e,t)=>e.height-t.height),this.player.debug.log("Preview thumbnails",this.thumbnails),e()};if(jt.function(t))t(e=>{this.thumbnails=e,i()});else{const e=(jt.string(t)?[t]:t).map(e=>this.getThumbnail(e));Promise.all(e).then(i)}})),ut(this,"getThumbnail",e=>new Promise(t=>{Ri(e,void 0,this.player.config.previewThumbnails.withCredentials).then(i=>{const n={frames:yn(i),height:null,urlPrefix:""};n.frames[0].text.startsWith("/")||n.frames[0].text.startsWith("http://")||n.frames[0].text.startsWith("https://")||(n.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));const s=new Image;s.onload=()=>{n.height=s.naturalHeight,n.width=s.naturalWidth,this.thumbnails.push(n),t()},s.src=n.urlPrefix+n.frames[0].text})})),ut(this,"startMove",e=>{if(this.loaded&&jt.event(e)&&["touchmove","mousemove"].includes(e.type)&&this.player.media.duration){if("touchmove"===e.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var t,i;const n=this.player.elements.progress.getBoundingClientRect(),s=100/n.width*(e.pageX-n.left);this.seekTime=this.player.media.duration*(s/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=e.pageX,this.elements.thumb.time.textContent=$i(this.seekTime);const a=null===(t=this.player.config.markers)||void 0===t||null===(i=t.points)||void 0===i?void 0:i.find(({time:e})=>e===Math.round(this.seekTime));a&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${a.label}<br>`)}this.showImageAtCurrentTime()}}),ut(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),ut(this,"startScrubbing",e=>{(jt.nullOrUndefined(e.button)||!1===e.button||0===e.button)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),ut(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):hi.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),ut(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})}),ut(this,"render",()=>{this.elements.thumb.container=Yt("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=Yt("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const e=Yt("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=Yt("span",{},"00:00"),e.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(e),jt.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=Yt("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),ut(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),ut(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const e=this.thumbnails[0].frames.findIndex(e=>this.seekTime>=e.startTime&&this.seekTime<=e.endTime),t=e>=0;let i=0;this.mouseDown||this.toggleThumbContainer(t),t&&(this.thumbnails.forEach((t,n)=>{this.loadedImages.includes(t.frames[e].text)&&(i=n)}),e!==this.showingThumb&&(this.showingThumb=e,this.loadImage(i)))}),ut(this,"loadImage",(e=0)=>{const t=this.showingThumb,i=this.thumbnails[e],{urlPrefix:n}=i,s=i.frames[t],a=i.frames[t].text,o=n+a;if(this.currentImageElement&&this.currentImageElement.dataset.filename===a)this.showImage(this.currentImageElement,s,e,t,a,!1),this.currentImageElement.dataset.index=t,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const i=new Image;i.src=o,i.dataset.index=t,i.dataset.filename=a,this.showingThumbFilename=a,this.player.debug.log(`Loading image: ${o}`),i.onload=()=>this.showImage(i,s,e,t,a,!0),this.loadingImage=i,this.removeOldImages(i)}}),ut(this,"showImage",(e,t,i,n,s,a=!0)=>{this.player.debug.log(`Showing thumb: ${s}. num: ${n}. qual: ${i}. newimg: ${a}`),this.setImageSizeAndOffset(e,t),a&&(this.currentImageContainer.appendChild(e),this.currentImageElement=e,this.loadedImages.includes(s)||this.loadedImages.push(s)),this.preloadNearby(n,!0).then(this.preloadNearby(n,!1)).then(this.getHigherQuality(i,e,t,s))}),ut(this,"removeOldImages",e=>{Array.from(this.currentImageContainer.children).forEach(t=>{if("img"!==t.tagName.toLowerCase())return;const i=this.usingSprites?500:1e3;if(t.dataset.index!==e.dataset.index&&!t.dataset.deleting){t.dataset.deleting=!0;const{currentImageContainer:e}=this;setTimeout(()=>{e.removeChild(t),this.player.debug.log(`Removing thumb: ${t.dataset.filename}`)},i)}})}),ut(this,"preloadNearby",(e,t=!0)=>new Promise(i=>{setTimeout(()=>{const n=this.thumbnails[0].frames[e].text;if(this.showingThumbFilename===n){let s;s=t?this.thumbnails[0].frames.slice(e):this.thumbnails[0].frames.slice(0,e).reverse();let a=!1;s.forEach(e=>{const t=e.text;if(t!==n&&!this.loadedImages.includes(t)){a=!0,this.player.debug.log(`Preloading thumb filename: ${t}`);const{urlPrefix:e}=this.thumbnails[0],n=e+t,s=new Image;s.src=n,s.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${t}`),this.loadedImages.includes(t)||this.loadedImages.push(t),i()}}}),a||i()}},300)})),ut(this,"getHigherQuality",(e,t,i,n)=>{if(e<this.thumbnails.length-1){let s=t.naturalHeight;this.usingSprites&&(s=i.h),s<this.thumbContainerHeight&&setTimeout(()=>{this.showingThumbFilename===n&&(this.player.debug.log(`Showing higher quality thumb for: ${n}`),this.loadImage(e+1))},300)}}),ut(this,"toggleThumbContainer",(e=!1,t=!1)=>{const i=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(i,e),!e&&t&&(this.showingThumb=null,this.showingThumbFilename=null)}),ut(this,"toggleScrubbingContainer",(e=!1)=>{const t=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(t,e),e||(this.showingThumb=null,this.showingThumbFilename=null)}),ut(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),ut(this,"setThumbContainerSizeAndPos",()=>{const{imageContainer:e}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(e.clientHeight>20&&e.clientWidth<20){const t=Math.floor(e.clientHeight*this.thumbAspectRatio);e.style.width=`${t}px`}else if(e.clientHeight<20&&e.clientWidth>20){const t=Math.floor(e.clientWidth/this.thumbAspectRatio);e.style.height=`${t}px`}}else{const t=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);e.style.height=`${this.thumbContainerHeight}px`,e.style.width=`${t}px`}this.setThumbContainerPos()}),ut(this,"setThumbContainerPos",()=>{const e=this.player.elements.progress.getBoundingClientRect(),t=this.player.elements.container.getBoundingClientRect(),{container:i}=this.elements.thumb,n=t.left-e.left+10,s=t.right-e.left-i.clientWidth-10,a=this.mousePosX-e.left-i.clientWidth/2,o=gn(a,n,s);i.style.left=`${o}px`,i.style.setProperty("--preview-arrow-offset",a-o+"px")}),ut(this,"setScrubbingContainerSize",()=>{const{width:e,height:t}=bn(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${e}px`,this.elements.scrubbing.container.style.height=`${t}px`}),ut(this,"setImageSizeAndOffset",(e,t)=>{if(!this.usingSprites)return;const i=this.thumbContainerHeight/t.h;e.style.height=e.naturalHeight*i+"px",e.style.width=e.naturalWidth*i+"px",e.style.left=`-${t.x*i}px`,e.style.top=`-${t.y*i}px`}),this.player=e,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:e}=bn(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return e}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(e){this.mouseDown?this.currentScrubbingImageElement=e:this.currentThumbnailImageElement=e}}const wn={insertElements(e,t){jt.string(t)?Gt(e,this.media,{src:t}):jt.array(t)&&t.forEach(t=>{Gt(e,this.media,t)})},change(e){Ut(e,"sources.length")?(Ci.cancelRequests.call(this),this.destroy(()=>{this.options.quality=[],Kt(this.media),this.media=null,jt.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:t,type:i}=e,[{provider:n=Yi.html5,src:s}]=t,a="html5"===n?i:"div",o="html5"===n?{}:{src:s};Object.assign(this,{provider:n,type:i,supported:ri.check(i,n,this.config.playsinline),media:Yt(a,o)}),this.elements.container.appendChild(this.media),jt.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),jt.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","")),en.addStyleHook.call(this),this.isHTML5&&wn.insertElements.call(this,"source",t),this.config.title=e.title,pn.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&wn.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&en.build.call(this),this.isHTML5&&this.media.load(),jt.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 vn(this))),this.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};class Tn{constructor(e,t){if(ut(this,"play",()=>jt.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>gi(this.media.play())),this.media.play()):null),ut(this,"pause",()=>this.playing&&jt.function(this.media.pause)?this.media.pause():null),ut(this,"togglePlay",e=>(jt.boolean(e)?e:!this.playing)?this.play():this.pause()),ut(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):jt.function(this.media.stop)&&this.media.stop()}),ut(this,"restart",()=>{this.currentTime=0}),ut(this,"rewind",e=>{this.currentTime-=jt.number(e)?e:this.config.seekTime}),ut(this,"forward",e=>{this.currentTime+=jt.number(e)?e:this.config.seekTime}),ut(this,"increaseVolume",e=>{const t=this.media.muted?0:this.volume;this.volume=t+(jt.number(e)?e:0)}),ut(this,"decreaseVolume",e=>{this.increaseVolume(-e)}),ut(this,"airplay",()=>{ri.airplay&&this.media.webkitShowPlaybackTargetPicker()}),ut(this,"toggleControls",e=>{if(this.supported.ui&&!this.isAudio){const t=ti(this.elements.container,this.config.classNames.hideControls),i="undefined"===typeof e?void 0:!e,n=ei(this.elements.container,this.config.classNames.hideControls,i);if(n&&jt.array(this.config.controls)&&this.config.controls.includes("settings")&&!jt.empty(this.config.settings)&&ji.toggleMenu.call(this,!1),n!==t){const e=n?"controlshidden":"controlsshown";mi.call(this,this.media,e)}return!n}return!1}),ut(this,"on",(e,t)=>{ui.call(this,this.elements.container,e,t)}),ut(this,"once",(e,t)=>{hi.call(this,this.elements.container,e,t)}),ut(this,"off",(e,t)=>{di(this.elements.container,e,t)}),ut(this,"destroy",(e,t=!1)=>{if(!this.ready)return;const i=()=>{document.body.style.overflow="",this.embed=null,t?(Object.keys(this.elements).length&&(Kt(this.elements.buttons.play),Kt(this.elements.captions),Kt(this.elements.controls),Kt(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),jt.function(e)&&e()):(pi.call(this),Ci.cancelRequests.call(this),Qt(this.elements.original,this.elements.container),mi.call(this,this.elements.original,"destroyed",!0),jt.function(e)&&e.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?(en.toggleNativeControls.call(this,!0),i()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&jt.function(this.embed.destroy)&&this.embed.destroy(),i()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(i),setTimeout(i,200))}),ut(this,"supports",e=>ri.mime.call(this,e)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=ri.touch,this.media=e,jt.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||jt.nodeList(this.media)||jt.array(this.media))&&(this.media=this.media[0]),this.config=zt({},zi,Tn.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 Qi(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",ri),jt.nullOrUndefined(this.media)||!jt.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(!ri.check().api)return void this.debug.error("Setup failed: no support");const i=this.media.cloneNode(!0);i.autoplay=!1,this.elements.original=i;const n=this.media.tagName.toLowerCase();let s=null,a=null;switch(n){case"div":if(s=this.media.querySelector("iframe"),jt.element(s)){if(a=Bi(s.getAttribute("src")),this.provider=function(e){return/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?Yi.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?Yi.vimeo:null}(a.toString()),this.elements.container=this.media,this.media=s,this.elements.container.className="",a.search.length){const e=["1","true"];e.includes(a.searchParams.get("autoplay"))&&(this.config.autoplay=!0),e.includes(a.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=e.includes(a.searchParams.get("playsinline")),this.config.youtube.hl=a.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(jt.empty(this.provider)||!Object.values(Yi).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=Ki;break;case"video":case"audio":this.type=n,this.provider=Yi.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=ri.check(this.type,this.provider),this.supported.api?(this.eventListeners=[],this.listeners=new tn(this),this.storage=new Di(this),this.media.plyr=this,jt.element(this.elements.container)||(this.elements.container=Yt("div"),Wt(this.media,this.elements.container)),en.migrateStyles.call(this),en.addStyleHook.call(this),pn.setup.call(this),this.config.debug&&ui.call(this,this.elements.container,this.config.events.join(" "),e=>{this.debug.log(`event: ${e.type}`)}),this.fullscreen=new Ji(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&en.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new fn(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>gi(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new vn(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===Yi.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===Yi.youtube}get isVimeo(){return this.provider===Yi.vimeo}get isVideo(){return this.type===Ki}get isAudio(){return this.type===Gi}get playing(){return Boolean(this.ready&&!this.paused&&!this.ended)}get paused(){return Boolean(this.media.paused)}get stopped(){return Boolean(this.paused&&0===this.currentTime)}get ended(){return Boolean(this.media.ended)}set currentTime(e){if(!this.duration)return;const t=jt.number(e)&&e>0;this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:e}=this.media;return jt.number(e)?e:e&&e.length&&this.duration>0?e.end(0)/this.duration:0}get seeking(){return Boolean(this.media.seeking)}get duration(){const e=Number.parseFloat(this.config.duration),t=(this.media||{}).duration,i=jt.number(t)&&t!==1/0?t:0;return e||i}set volume(e){let t=e;jt.string(t)&&(t=Number(t)),jt.number(t)||(t=this.storage.get("volume")),jt.number(t)||({volume:t}=this.config),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!jt.empty(e)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(e){let t=e;jt.boolean(t)||(t=this.storage.get("muted")),jt.boolean(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}get muted(){return Boolean(this.media.muted)}get hasAudio(){return!this.isHTML5||(!!this.isAudio||(Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)))}set speed(e){let t=null;jt.number(e)&&(t=e),jt.number(t)||(t=this.storage.get("speed")),jt.number(t)||(t=this.config.speed.selected);const{minimumSpeed:i,maximumSpeed:n}=this;t=gn(t,i,n),this.config.speed.selected=t,setTimeout(()=>{this.media&&(this.media.playbackRate=t)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(e){const t=this.config.quality,i=this.options.quality;if(!i.length)return;let n=[!jt.empty(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(jt.number),s=!0;if(!i.includes(n)){const e=bi(i,n);this.debug.warn(`Unsupported quality option: ${n}, using ${e} instead`),n=e,s=!1}t.selected=n,this.media.quality=n,s&&this.storage.set({quality:n})}get quality(){return this.media.quality}set loop(e){const t=jt.boolean(e)?e:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}get loop(){return Boolean(this.media.loop)}set source(e){wn.change.call(this,e)}get source(){return this.media.currentSrc}get download(){const{download:e}=this.config.urls;return jt.url(e)?e:this.source}set download(e){jt.url(e)&&(this.config.urls.download=e,ji.setDownloadUrl.call(this))}set poster(e){this.isVideo?en.setPoster.call(this,e,!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 e=Ei(Ai.call(this));return jt.array(e)?e.join(":"):e}set ratio(e){this.isVideo?jt.string(e)&&Ti(e)?(this.config.ratio=Ei(e),ki.call(this)):this.debug.error(`Invalid aspect ratio specified (${e})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(e){this.config.autoplay=jt.boolean(e)?e:this.config.autoplay}get autoplay(){return Boolean(this.config.autoplay)}toggleCaptions(e){Ui.toggle.call(this,e,!1)}set currentTrack(e){Ui.set.call(this,e,!1),Ui.setup.call(this)}get currentTrack(){const{toggled:e,currentTrack:t}=this.captions;return e?t:-1}set language(e){Ui.setLanguage.call(this,e,!1)}get language(){return(Ui.getCurrentTrack.call(this)||{}).language}set pip(e){if(!ri.pip)return;const t=jt.boolean(e)?e:!this.pip;jt.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?Wi:Vi),jt.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return ri.pip?jt.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Wi:null}setPreviewThumbnails(e){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,e),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new vn(this))}
2static supported(e,t){return ri.check(e,t)}static loadSprite(e,t){return qi(e,t)}static setup(e,t={}){let i=null;return jt.string(e)?i=Array.from(document.querySelectorAll(e)):jt.nodeList(e)?i=Array.from(e):jt.array(e)&&(i=e.filter(jt.element)),jt.empty(i)?null:i.map(e=>new Tn(e,t))}}var En;Tn.defaults=(En=zi,JSON.parse(JSON.stringify(En)));document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelectorAll("audio");e&&Array.from(e).map(e=>new Tn(e))});i(930),i(84),i(516),i(105);const An=()=>{const e=document.querySelector(".fc-ccpa-root"),i=document.querySelector(".primary-menu-ul");if(!e||!i)return;const n=document.querySelector("body"),a=document.createElement("li");a.classList.add("menu-item"),a.id="primary-menu-cookie-notice";const o=window.matchMedia(s),r=(s=o)=>{s.matches?(a.remove(),t()({el:e,appendTo:n})):(a.appendChild(e),t()({el:a,appendTo:i}))};r(),o.addEventListener("change",e=>{r(e)})};document.addEventListener("DOMContentLoaded",()=>{const e=new MutationObserver(function(){document.querySelector(".fc-ccpa-root")&&(An(),e.disconnect())});e.observe(document.documentElement,{childList:!0,subtree:!0})});i(265),i(777),i(819);document.addEventListener(pe,()=>{const e=document.querySelector('#openweb-comments [data-spotim-module="conversation"][data-read-only]');e&&e.removeAttribute("data-read-only")});i(985)}()}();
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.