PageSourceSearch

https://www.vb-bo.de/60.bfdb7df673bd124d.js

js vb-bo.de collected 2026-10-02 19:10:13 UTC 831,610 bytes, 1 lines download raw bytes

1(self.webpackChunkhomepageUi=self.webpackChunkhomepageUi||[]).push([[60],{6049(Ue,Ae,te){te.d(Ae,{videoAudioComponentBuilder:()=>ly});var le=te(9769),N=te(5802),M=te(7705),F=te(2271),ae=te(9337),he=te(3848),Se=te(5351),be=te(9454),je=te(8599),B=te(4104),oe=te(5246),ke=te(5504);const Le="abspielen";var W=te(2235),He=te(3333),p=te(5547);const Ze=s=>({$implicit:s});function ge(s,e){if(1&s&&p.nrm(0,"cms-ui-image",3),2&s){const t=p.XpG(),i=p.r8f(2);p.Y8G("image",i)("ratio",t.aspectRatio())}}function Re(s,e){1&s&&p.eu8(0)}function Pe(s,e){if(1&s&&(p.j41(0,"div"),p.DNE(1,Re,1,0,"ng-container",7),p.nrm(2,"cms-richtext",8),p.k0s()),2&s){const t=p.XpG();p.R7$(),p.Y8G("ngTemplateOutlet",t.headingTemplate())("ngTemplateOutletContext",p.eq3(3,Ze,t.heading())),p.R7$(),p.Y8G("htmlContent",t.text())}}let qe=(()=>{class s{constructor(){this.mediaClicked=(0,M.CGW)(),this.headlineIcon=(0,M.hFB)(),this.playerIcon=M.hFB.required(),this.text=(0,M.hFB)(),this.heading=(0,M.hFB)(),this.image=(0,M.hFB)(),this.metaText=M.hFB.required(),this.position=(0,M.hFB)(),this.multiLinks=(0,M.hFB)(),this.aspectRatio=M.hFB.required(),this.headingTemplate=(0,M.hFB)(null),this.PLAY_BUTTON_TITLE=Le}notifyParent(){this.mediaClicked.emit()}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275cmp=p.VBU({type:s,selectors:[["cms-video-audio-5050"]],inputs:{headlineIcon:[1,"headlineIcon"],playerIcon:[1,"playerIcon"],text:[1,"text"],heading:[1,"heading"],image:[1,"image"],metaText:[1,"metaText"],position:[1,"position"],multiLinks:[1,"multiLinks"],aspectRatio:[1,"aspectRatio"],headingTemplate:[1,"headingTemplate"]},outputs:{mediaClicked:"mediaClicked"},decls:9,vars:11,consts:[["data-automation-id","ultimate-renderer-video-audio-5050",1,"kf-d-flex","cms-video-audio-5050"],["kf-tile","",1,"cms-video-audio-5050-video-container",3,"click","noPadding"],[1,"kf-position-relative","kf-bg-primary","image-container"],["sizes","auto",3,"image","ratio"],["compactButtonType","primary","kf-compact-button","","type","button",1,"kf-position-absolute","show-overlay-button","is-disabled",3,"keydown.enter","iconName","title"],[1,"meta-text","kf-tile-padding",3,"innerHTML"],[1,"cms-video-audio-5050-text-container"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"text","kf-m-b-8",3,"htmlContent"]],template:function(i,n){if(1&i&&(p.j41(0,"div",0)(1,"button",1),p.bIt("click",function(){return n.notifyParent()}),p.SS7(2),p.j41(3,"div",2),p.nVh(4,ge,1,2,"cms-ui-image",3),p.j41(5,"button",4),p.bIt("keydown.enter",function(){return n.notifyParent()}),p.k0s()(),p.nrm(6,"span",5),p.k0s(),p.j41(7,"div",6),p.nVh(8,Pe,3,5,"div"),p.k0s()()),2&i){p.AVh("cms-video-right","pos_right"===n.position()),p.R7$(),p.Y8G("noPadding",!0),p.R7$();const r=p.bH3(n.image());p.R7$(),p.AVh("custom-background",null==r?null:r.reference),p.R7$(),p.vxM(r&&r.reference?4:-1),p.R7$(),p.Y8G("iconName",n.playerIcon())("title",n.PLAY_BUTTON_TITLE),p.R7$(),p.Y8G("innerHTML",n.metaText(),p.npT),p.R7$(2),p.vxM(n.heading()||n.text()?8:-1)}},dependencies:[W.Do,je.F,ke.HY,le.T3,He.f],styles:["[_nghost-%COMP%]   .cms-video-audio-5050[_ngcontent-%COMP%]{--height: 160px;gap:40px;font-size:1rem;line-height:1.5rem}@media(max-width:1023.98px){[_nghost-%COMP%]   .cms-video-audio-5050[_ngcontent-%COMP%]{gap:24px}}@media(max-width:599.98px){[_nghost-%COMP%]   .cms-video-audio-5050[_ngcontent-%COMP%]{flex-direction:column}}@media(min-width:600px){[_nghost-%COMP%]   .cms-video-audio-5050.cms-video-right[_ngcontent-%COMP%]   .cms-video-audio-5050-video-container[_ngcontent-%COMP%]{order:1}}[_nghost-%COMP%]   .cms-video-audio-5050[_ngcontent-%COMP%]   .cms-video-audio-5050-video-container[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column}[_nghost-%COMP%]   .cms-video-audio-5050[_ngcontent-%COMP%]   .cms-video-audio-5050-video-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]{aspect-ratio:16/9}[_nghost-%COMP%]   .cms-video-audio-5050[_ngcontent-%COMP%]   .cms-video-audio-5050-video-container[_ngcontent-%COMP%]   .image-container.custom-background[_ngcontent-%COMP%]{background-color:#f1f1eb}[_nghost-%COMP%]   .cms-video-audio-5050[_ngcontent-%COMP%]   .cms-video-audio-5050-video-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   cms-ui-image[_ngcontent-%COMP%]{--cms-ui-image-fit: contain}[_nghost-%COMP%]   .cms-video-audio-5050[_ngcontent-%COMP%]   .cms-video-audio-5050-video-container[_ngcontent-%COMP%]   .show-overlay-button[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%)}[_nghost-%COMP%]   .cms-video-audio-5050[_ngcontent-%COMP%]   .cms-video-audio-5050-video-container[_ngcontent-%COMP%]   .show-overlay-button[_ngcontent-%COMP%]     .kf-compact-button-disabled{opacity:1!important;cursor:inherit}[_nghost-%COMP%]   .cms-video-audio-5050[_ngcontent-%COMP%]   .cms-video-audio-5050-video-container[_ngcontent-%COMP%]   .meta-text[_ngcontent-%COMP%]{display:block;padding-top:24px}[_nghost-%COMP%]   .cms-video-audio-5050[_ngcontent-%COMP%]   .cms-video-audio-5050-text-container[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%]   .cms-video-audio-5050[_ngcontent-%COMP%]   .cms-video-audio-5050-text-container[_ngcontent-%COMP%]   .headline[_ngcontent-%COMP%]{font-weight:700!important}[_nghost-%COMP%]   .cms-video-audio-5050[_ngcontent-%COMP%]   .show-overlay-button[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%)}"],changeDetection:0})}}return s})();function we(s,e){if(1&s&&p.nrm(0,"kf-icon",4),2&s){const t=p.XpG(3);p.Y8G("name",t.icon()??"")}}function Te(s,e){if(1&s&&(p.nVh(0,we,1,1,"kf-icon",4),p.nrm(1,"strong",5),p.nI1(2,"safe")),2&s){let t;const i=p.XpG(2);p.vxM(i.icon()&&i.heading()?0:-1),p.R7$(),p.Y8G("innerHTML",p.i5U(2,2,null==(t=i.heading())?null:t.content,"Html"),p.npT)}}function J(s,e){1&s&&p.eu8(0)}function Z(s,e){if(1&s&&p.DNE(0,J,1,0,"ng-container",6),2&s){p.XpG(2);const t=p.sdS(4);p.Y8G("ngTemplateOutlet",t)}}function A(s,e){if(1&s&&(p.j41(0,"div"),p.nVh(1,Te,3,5)(2,Z,1,1,"ng-container"),p.nrm(3,"p",3),p.k0s()),2&s){const t=p.XpG();p.R7$(),p.vxM(t.useHeadline()?2:1),p.R7$(2),p.Y8G("innerHtml",t.text(),p.npT)}}function k(s,e){if(1&s&&p.nrm(0,"kf-icon",7),2&s){const t=p.XpG(2);p.Y8G("name",t.icon()??"")}}function G(s,e){if(1&s&&p.nrm(0,"h1",9),2&s){let t,i;const n=p.XpG(3);p.HbH(null==(t=n.heading())?null:t.cls),p.AVh("kf-m-b-8","true")("headline","true"),p.Y8G("innerHTML",null==(i=n.heading())?null:i.content,p.npT)}}function ie(s,e){if(1&s&&p.nrm(0,"h2",9),2&s){let t,i;const n=p.XpG(3);p.HbH(null==(t=n.heading())?null:t.cls),p.AVh("kf-m-b-8","true")("headline","true"),p.Y8G("innerHTML",null==(i=n.heading())?null:i.content,p.npT)}}function ye(s,e){if(1&s&&p.nrm(0,"h3",9),2&s){let t,i;const n=p.XpG(3);p.HbH(null==(t=n.heading())?null:t.cls),p.AVh("kf-m-b-8","true")("headline","true"),p.Y8G("innerHTML",null==(i=n.heading())?null:i.content,p.npT)}}function xe(s,e){if(1&s&&p.nrm(0,"h4",9),2&s){let t,i;const n=p.XpG(3);p.HbH(null==(t=n.heading())?null:t.cls),p.AVh("kf-m-b-8","true")("headline","true"),p.Y8G("innerHTML",null==(i=n.heading())?null:i.content,p.npT)}}function de(s,e){if(1&s&&p.nrm(0,"h2",9),2&s){let t,i;const n=p.XpG(3);p.HbH(null==(t=n.heading())?null:t.cls),p.AVh("kf-m-b-8","true")("headline","true"),p.Y8G("innerHTML",null==(i=n.heading())?null:i.content,p.npT)}}function pe(s,e){if(1&s&&p.nVh(0,G,1,7,"h1",8)(1,ie,1,7,"h2",8)(2,ye,1,7,"h3",8)(3,xe,1,7,"h4",8)(4,de,1,7,"h2",8),2&s){p.XpG();const t=p.r8f(1);p.vxM("h1"===t?0:"h2"===t?1:"h3"===t?2:"h4"===t?3:4)}}function ee(s,e){if(1&s&&(p.nVh(0,k,1,1,"kf-icon",7),p.SS7(1),p.nVh(2,pe,5,1)),2&s){let t,i,n;const r=p.XpG();p.vxM(null!=(t=r.icon())&&t.length&&r.heading()?0:-1),p.R7$(),p.bH3(null==(i=r.heading())?null:i.type),p.R7$(),p.vxM(null!=(n=r.heading())&&null!=n.content&&n.content.length?2:-1)}}let ve=(()=>{class s{constructor(){this.icon=(0,M.hFB)(),this.text=M.hFB.required(),this.heading=(0,M.hFB)(),this.metaText=M.hFB.required(),this.useHeadline=(0,M.hFB)()}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275cmp=p.VBU({type:s,selectors:[["cms-video-audio-text"]],inputs:{icon:[1,"icon"],text:[1,"text"],heading:[1,"heading"],metaText:[1,"metaText"],useHeadline:[1,"useHeadline"]},decls:5,vars:2,consts:[["headingTemplate",""],["data-automation-id","ultimate-renderer-video-audio-text",1,"kf-d-flex","kf-flex-column","kf-justify-content-between","content"],[1,"kf-m-b-0","meta-text",3,"innerHtml"],[1,"text","kf-m-b-8",3,"innerHtml"],[1,"kf-m-b-4","kf-m-r-8",3,"name"],[1,"kf-m-b-8","headline",3,"innerHTML"],[4,"ngTemplateOutlet"],["aria-hidden","true",1,"kf-m-b-4","kf-m-r-8",3,"name"],[3,"innerHTML","class","kf-m-b-8","headline"],[3,"innerHTML"]],template:function(i,n){1&i&&(p.j41(0,"div",1),p.nVh(1,A,4,2,"div"),p.nrm(2,"p",2),p.k0s(),p.DNE(3,ee,3,3,"ng-template",null,0,p.C5r)),2&i&&(p.R7$(),p.vxM(n.heading()||n.text()?1:-1),p.R7$(),p.Y8G("innerHtml",n.metaText(),p.npT))},dependencies:[B.KY,le.T3,oe.my],styles:["[_nghost-%COMP%]{display:flex}[_nghost-%COMP%]   .headline[_ngcontent-%COMP%]{font-weight:700!important}"],changeDetection:0})}}return s})();function me(s,e){1&s&&p.nrm(0,"cms-ui-image",2),2&s&&p.Y8G("image",e)("ratio","1-1")}let ne=(()=>{class s{constructor(){this.mediaClicked=(0,M.CGW)(),this.headlineIcon=M.hFB.required(),this.playerIcon=M.hFB.required(),this.text=M.hFB.required(),this.heading=(0,M.hFB)(),this.image=M.hFB.required(),this.metaText=M.hFB.required(),this.disableButton=(0,M.hFB)(!1),this.PLAY_BUTTON_TITLE=Le,this.altText=(0,F.EW)(()=>this.image()?.alt)}
1notifyParent(){this.mediaClicked.emit()}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275cmp=p.VBU({type:s,selectors:[["cms-video-audio-list-item"]],inputs:{headlineIcon:[1,"headlineIcon"],playerIcon:[1,"playerIcon"],text:[1,"text"],heading:[1,"heading"],image:[1,"image"],metaText:[1,"metaText"],disableButton:[1,"disableButton"]},outputs:{mediaClicked:"mediaClicked"},decls:5,vars:12,consts:[["data-automation-id","ultimate-renderer-video-audio-list-item",1,"kf-d-flex","kf-flex-row","video-audio-list-item"],[1,"kf-position-relative","kf-bg-primary","image-container",3,"click","keydown.enter"],["sizes","auto",3,"image","ratio"],["compactButtonType","primary","kf-compact-button","","type","button",1,"kf-position-absolute","show-overlay-button",3,"iconName","title"],[1,"kf-m-l-16","kf-p-t-16","kf-p-r-16","kf-p-b-16",3,"heading","icon","metaText","text"]],template:function(i,n){if(1&i&&(p.j41(0,"div",0)(1,"div",1),p.bIt("click",function(){return n.notifyParent()})("keydown.enter",function(){return n.notifyParent()}),p.nVh(2,me,1,2,"cms-ui-image",2),p.nrm(3,"button",3),p.k0s(),p.nrm(4,"cms-video-audio-text",4),p.k0s()),2&i){let r;p.AVh("with-line-clamp",n.text()&&n.heading()),p.R7$(2),p.vxM((r=n.image())?2:-1,r),p.R7$(),p.AVh("is-disabled",n.disableButton()),p.Y8G("iconName",n.playerIcon())("title",n.PLAY_BUTTON_TITLE),p.BMQ("inert",n.disableButton()?"":null),p.R7$(),p.Y8G("heading",n.heading())("icon",n.headlineIcon())("metaText",n.metaText())("text",n.text())}},dependencies:[ve,je.F,He.f],styles:["[_nghost-%COMP%]   .video-audio-list-item[_ngcontent-%COMP%]{overflow:hidden;--height: 160px;font-size:1rem;height:var(--height);line-height:1.125rem}[_nghost-%COMP%]   .video-audio-list-item[_ngcontent-%COMP%]   .show-overlay-button[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%)}[_nghost-%COMP%]   .video-audio-list-item[_ngcontent-%COMP%]   .show-overlay-button[_ngcontent-%COMP%]     .kf-compact-button-disabled{opacity:1!important;cursor:inherit}[_nghost-%COMP%]   .video-audio-list-item.with-line-clamp[_ngcontent-%COMP%]     cms-video-audio-text p{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}[_nghost-%COMP%]   .video-audio-list-item.with-line-clamp[_ngcontent-%COMP%]     cms-video-audio-text .text{-webkit-line-clamp:2}[_nghost-%COMP%]   .video-audio-list-item.with-line-clamp[_ngcontent-%COMP%]     cms-video-audio-text .headline{-webkit-line-clamp:2}[_nghost-%COMP%]   .video-audio-list-item.with-line-clamp[_ngcontent-%COMP%]     cms-video-audio-text .meta-text{-webkit-line-clamp:1}[_nghost-%COMP%]   .video-audio-list-item[_ngcontent-%COMP%]     img{max-width:unset!important;height:var(--height);width:var(--height);object-position:center;object-fit:cover;display:block}[_nghost-%COMP%]   .video-audio-list-item[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]{min-height:var(--height);min-width:var(--height);background-color:#f1f1eb;cursor:pointer}"],changeDetection:0})}}return s})(),Fe=(()=>{class s{constructor(){this.mediaClicked=(0,M.CGW)(),this.headlineIcon=M.hFB.required(),this.playerIcon=M.hFB.required(),this.text=M.hFB.required(),this.heading=(0,M.hFB)(),this.image=M.hFB.required(),this.metaText=M.hFB.required()}notifyParent(){this.mediaClicked.emit()}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275cmp=p.VBU({type:s,selectors:[["cms-video-audio-extern-list-item"]],inputs:{headlineIcon:[1,"headlineIcon"],playerIcon:[1,"playerIcon"],text:[1,"text"],heading:[1,"heading"],image:[1,"image"],metaText:[1,"metaText"]},outputs:{mediaClicked:"mediaClicked"},decls:1,vars:8,consts:[[3,"click","keydown.enter","disableButton","heading","headlineIcon","image","metaText","playerIcon","tabIndex","text"]],template:function(i,n){1&i&&(p.j41(0,"cms-video-audio-list-item",0),p.bIt("click",function(){return n.notifyParent()})("keydown.enter",function(){return n.notifyParent()}),p.k0s()),2&i&&p.Y8G("disableButton",!0)("heading",n.heading())("headlineIcon",n.headlineIcon())("image",n.image())("metaText",n.metaText())("playerIcon",n.playerIcon())("tabIndex",0)("text",n.text())}
1,dependencies:[ne],styles:["[_nghost-%COMP%]{--focus-box-shadow: var(--options-focus-box-shadow);--hover-bg: var(--state-default-hover)}[_nghost-%COMP%]   .kf-bg-primary.kf-color-primary-contrast[_nghost-%COMP%], .kf-bg-primary.kf-color-primary-contrast   [_nghost-%COMP%]{--hover-bg: var(--state-on-background-stage-hover);--focus-box-shadow: var(--options-focus-box-shadow-contrast)}[_nghost-%COMP%]   .kf-bg-primary.kf-color-primary-contrast[_nghost-%COMP%]     .video-audio-list-item, .kf-bg-primary.kf-color-primary-contrast   [_nghost-%COMP%]     .video-audio-list-item{border:1px solid var(--color-primary-contrast);background-color:var(--color-background-stage)}[_nghost-%COMP%]     .video-audio-list-item{background-color:var(--color-background-background);border-radius:8px;box-shadow:var(--options-effect-box)}[_nghost-%COMP%]   video-audio-list-item[_ngcontent-%COMP%]:focus{outline:10px solid red!important}[_nghost-%COMP%]   video-audio-list-item[_ngcontent-%COMP%]:focus     .video-audio-list-item{box-shadow:var(--focus-box-shadow)}[_nghost-%COMP%]   [_ngcontent-%COMP%]:hover{cursor:pointer}[_nghost-%COMP%]   [_ngcontent-%COMP%]:hover     .video-audio-list-item{background-color:var(--hover-bg);box-shadow:var(--options-effect-box-hover)}"],changeDetection:0})}}return s})(),$e=(()=>{class s{constructor(){this._classD=(0,N.WQX)(oe.G_,{self:!0}),this._contentService=(0,N.WQX)(oe.fH),this.cmsId=this._classD.getRenderProperty("cmsid"),this.containerClasses=(0,F.EW)(()=>this._classD.containerClasses()),this.layoutClasses=this._classD.getRenderProperty("layoutClasses"),this.darstellung=this._classD.getRenderProperty("darstellung"),this.source=this._classD.getRenderProperty("source"),this.position=this._classD.getRenderProperty("position"),this._showoverlay=this._classD.getRenderProperty("showoverlay"),this.showoverlay=(0,F.EW)(()=>"true"===this._showoverlay()),this._isExtern=this._classD.getRenderProperty("isExtern"),this.isExtern=(0,F.EW)(()=>"true"===this._isExtern()),this.playMediaIcon=this._contentService.querySelectorInnerHTML(".cms-play-media-icon"),this.headlineIcon=this._contentService.querySelectorInnerHTML(".cms-headline-icon"),this.metaText=(0,F.EW)(()=>this._contentService.querySelectorInnerHTML(".cms-meta-text")().trim()),this.texttext=(0,F.EW)(()=>this._contentService.querySelectorInnerHTML(".cms-text")().trim()),this.audioDescriptionSrc=(0,F.EW)(()=>this._contentService.querySelectorInnerHTML(".cms-audio-description-src")().trim()),this.transcriptTitle=(0,F.EW)(()=>this._contentService.querySelectorInnerHTML(".cms-transcript-title")().trim()),this.videoAltText=this._contentService.querySelectorInnerHTML(".cms-video-audio-alt-text"),this._videoElement=this._contentService.querySelector(".cms-video"),this.videoAudioSrc=(0,F.EW)(()=>this._videoElement()?.getAttribute("src")??""),this.posterSrc=(0,F.EW)(()=>this._videoElement()?.getAttribute("poster")??""),this._headerElement=this._contentService.querySelector(".cms-header"),this._headerType=(0,F.EW)(()=>{const t=this._headerElement();let i;return i=t instanceof HTMLHeadingElement?t.tagName.toLowerCase():t?.parentElement?.tagName.toLowerCase(),i??null}),this.captions=(0,F.EW)(()=>{const t=this._videoElement()?.querySelector("track.cms-captions");let i;return t&&(i={kind:t.kind,src:t.src,srclang:t.srclang,label:t.label,type:t.kind}),i}),this.descriptions=(0,F.EW)(()=>{const t=this._videoElement()?.querySelector("track.cms-descriptions");return{kind:t?.kind??"",src:t?.src??"",srclang:t?.srclang??"",label:t?.label??""}}),this._youtubeId=this._classD.getRenderProperty("youtubeid"),this._youtubeNoFullscreen=this._classD.getRenderProperty("youtubenofullscreen"),this._youtubeHideControl=this._classD.getRenderProperty("youtubehidecontrol"),this._datenschutzZustimmung=this._classD.getRenderProperty("datenschutzustimmung"),this._datenschutzLinkElement=this._contentService.querySelector(".cms-datenschutzlink"),this._datenschutzLinktitel=this._contentService.querySelectorInnerHTML(".cms-datenschutzlink"),this._datenschutzButtontitel=this._contentService.querySelectorInnerHTML(".cms-datenschutzbuttontitel"),this._datenschutzText=this._contentService.querySelectorInnerHTML(".cms-datenschutz-text"),this.youtubeConfig=(0,F.EW)(()=>({youtubeId:this._youtubeId(),youtubeNoFullscreen:"true"===this._youtubeNoFullscreen(),youtubeHideControl:"true"===this._youtubeHideControl(),datenschutzZustimmung:"true"===this._datenschutzZustimmung(),datenschutzLinkElement:this._datenschutzLinkElement(),datenschutzLinktitel:this._datenschutzLinktitel()??"",datenschutzButtontitel:this._datenschutzButtontitel()??"",datenschutzText:this._datenschutzText()??"",aspectRatio:"liste"===this.darstellung()?"1-1":"16-9"})),this.heading=(0,F.EW)(()=>this._headerElement()&&this._headerType()?{type:this._headerType()??"h2",content:this._headerElement()?.innerHTML??""}:null)}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275dir=p.FsC({type:s,features:[p.Jv_([oe.fH]),p.nM4([oe.G_])]})}}return s})();var Be=te(467),ct=te(8834);let De=(()=>{class s{constructor(){this.defaultRegex=new RegExp(/(\r\n|\r|\n)/),this.timeService=(0,N.WQX)(oe.k0)}loadAndParseDescriptions(t){var i=this;return(0,Be.A)(function*(){try{const n=yield fetch(t);if(!n.ok)throw new Error(`Could not load VTT File! Status: ${n.status.toString()}`);
1const a=(yield n.text()).split(i.defaultRegex).map(l=>l.trim()).filter(l=>l.length&&!i.defaultRegex.test(l));if(!i.isVttFileValid(a))throw new Error("Invalid VTT File found.");return i.parseVTT(a)}catch(n){throw new Error(n)}})()}isVttFileValid(t){const i=/^((\d{2}:)?\d{2}:\d{2}\.\d{3}) --> ((\d{2}:)?\d{2}:\d{2}\.\d{3})$/,n=t.map((a,l)=>i.test(a)?l:-1).filter(a=>-1!==a),r=n.every(a=>t[a+1].length>0&&/\w*/.test(t[a+1]));return"WEBVTT"===t[0]&&n.length>0&&r}getRemoteTextTrack(t,i){return t.remoteTextTracks().tracks_.find(r=>r.kind===i.kind)}getRemoteTextTrackElement(t,i){return t.remoteTextTrackEls().trackElements_.find(r=>r.kind===i.kind)}handleCueChange(t,i){const n=this.getRemoteTextTrack(t,i);n&&n.addEventListener("cuechange",this.adjustLocationOfCue.bind(this,n))}adjustLocationOfCue(t){const i=t.cues;if(i?.length)for(const n of Array.from(i))n.line=-3}parseVTT(t){const i=[],n=/^((\d{2}:)?\d{2}:\d{2}\.\d{3}) --> ((\d{2}:)?\d{2}:\d{2}\.\d{3})$/,r=/^\d+$/,a=t.filter(m=>!r.exec(m));let l="",h=[];return a.forEach((m,v)=>{if(m.length&&!m.includes("--\x3e")&&"WEBVTT"!==m.trim())h=[...h,m],l&&(h.length&&v+1===a.length||n.test(t[v+1]))&&(i.push(this.parseCue(l,h)),l="",h=[]);else if(n.test(m))return void(l=m)}),i}parseCue(t,i){const[n,r]=t.split("--\x3e");return new VTTCue(this.timeService.parseTime(n),this.timeService.parseTime(r),i.map(a=>a.trim()).join(" "))}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275prov=N.jDH({token:s,factory:s.\u0275fac})}}return s})();var Ke=te(2843),C=te.n(Ke),ei=te(410),se=te.n(ei),fi=te(7621),Ei=te.n(fi),At=te(509),Fi=te.n(At);function Xe(){return Xe=Object.assign?Object.assign.bind():function(s){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)({}).hasOwnProperty.call(t,i)&&(s[i]=t[i])}return s},Xe.apply(null,arguments)}const pi=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=C().location&&C().location.href||"");var i=/^\/\//.test(e),n=!C().location&&!/\/\//i.test(e);e=new(C().URL)(e,C().location||"https://example.com");var r=new URL(t,e);return n?r.href.slice(19):i?r.href.slice(r.protocol.length):r.href};var mi=function(){function s(){this.listeners={}}var e=s.prototype;return e.on=function(i,n){this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push(n)},e.off=function(i,n){if(!this.listeners[i])return!1;var r=this.listeners[i].indexOf(n);return this.listeners[i]=this.listeners[i].slice(0),this.listeners[i].splice(r,1),r>-1},e.trigger=function(i){var n=this.listeners[i];if(n)if(2===arguments.length)for(var r=n.length,a=0;a<r;++a)n[a].call(this,arguments[1]);else for(var l=Array.prototype.slice.call(arguments,1),h=n.length,m=0;m<h;++m)n[m].apply(this,l)},e.dispose=function(){this.listeners={}},e.pipe=function(i){this.on("data",function(n){i.push(n)})},s}();function xt(s){for(var e=function(e){return C().atob?C().atob(e):Buffer.from(e,"base64").toString("binary")}(s),t=new Uint8Array(e.length),i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t}class kn extends mi{constructor(){super(),this.buffer=""}push(e){let t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)}}const Ji=function(s){const e=/([0-9.]*)?@?([0-9.]*)?/.exec(s||""),t={};return e[1]&&(t.length=parseInt(e[1],10)),e[2]&&(t.offset=parseInt(e[2],10)),t},Mt=function(s){const e={};if(!s)return e;const t=s.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))'));let n,i=t.length;for(;i--;)""!==t[i]&&(n=/([^=]*)=(.*)/.exec(t[i]).slice(1),n[0]=n[0].replace(/^\s+|\s+$/g,""),n[1]=n[1].replace(/^\s+|\s+$/g,""),n[1]=n[1].replace(/^['"](.*)['"]$/g,"$1"),e[n[0]]=n[1]);return e},Dr=s=>{const e=s.split("x"),t={};return e[0]&&(t.width=parseInt(e[0],10)),e[1]&&(t.height=parseInt(e[1],10)),t};class gi extends mi{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let t,i;0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce((r,a)=>{const l=a(e);return l===e?r:r.concat([l])},[e]).forEach(r=>{for(let a=0;a<this.customParsers.length;a++)if(this.customParsers[a].call(this,r))return;if(0===r.indexOf("#EXT"))if(r=r.replace("\r",""),t=/^#EXTM3U/.exec(r),t)this.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(r),t)return i={type:"tag",tagType:"inf"},t[1]&&(i.duration=parseFloat(t[1])),t[2]&&(i.title=t[2]),void this.trigger("data",i);if(t=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(r),t)return i={type:"tag",tagType:"targetduration"},t[1]&&(i.duration=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-VERSION:([0-9.]*)?/.exec(r),t)return i={type:"tag",tagType:"version"},t[1]&&(i.version=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(r),t)return i={type:"tag",tagType:"media-sequence"},t[1]&&(i.number=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(r),t)return i={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(i.number=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(r),t)return i={type:"tag",tagType:"playlist-type"},t[1]&&(i.playlistType=t[1]),void this.trigger("data",i);if(t=/^#EXT-X-BYTERANGE:(.*)?$/.exec(r),t)return i=Xe(Ji(t[1]),{type:"tag",tagType:"byterange"}),void this.trigger("data",i);if(t=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(r),t)return i={type:"tag",tagType:"allow-cache"},t[1]&&(i.allowed=!/NO/.test(t[1])),void this.trigger("data",i);if(t=/^#EXT-X-MAP:(.*)$/.exec(r),t){if(i={type:"tag",tagType:"map"},t[1]){const a=Mt(t[1]);a.URI&&(i.uri=a.URI),a.BYTERANGE&&(i.byterange=Ji(a.BYTERANGE))}this.trigger("data",i)}else{if(t=/^#EXT-X-STREAM-INF:(.*)$/.exec(r),t)return i={type:"tag",tagType:"stream-inf"},t[1]&&(i.attributes=Mt(t[1]),i.attributes.RESOLUTION&&(i.attributes.RESOLUTION=Dr(i.attributes.RESOLUTION)),i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),i.attributes["PROGRAM-ID"]&&(i.attributes["PROGRAM-ID"]=parseInt(i.attributes["PROGRAM-ID"],10))),void this.trigger("data",i);if(t=/^#EXT-X-MEDIA:(.*)$/.exec(r),t)return i={type:"tag",tagType:"media"},t[1]&&(i.attributes=Mt(t[1])),void this.trigger("data",i);if(t=/^#EXT-X-ENDLIST/.exec(r),t)this.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(r),t)this.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(r),t)return i={type:"tag",tagType:"program-date-time"}
vendor: 4,351 bytes, line 1
1,t[1]&&(i.dateTimeString=t[1],i.dateTimeObject=new Date(t[1])),void this.trigger("data",i);if(t=/^#EXT-X-KEY:(.*)$/.exec(r),t)return i={type:"tag",tagType:"key"},t[1]&&(i.attributes=Mt(t[1]),i.attributes.IV&&("0x"===i.attributes.IV.substring(0,2).toLowerCase()&&(i.attributes.IV=i.attributes.IV.substring(2)),i.attributes.IV=i.attributes.IV.match(/.{8}/g),i.attributes.IV[0]=parseInt(i.attributes.IV[0],16),i.attributes.IV[1]=parseInt(i.attributes.IV[1],16),i.attributes.IV[2]=parseInt(i.attributes.IV[2],16),i.attributes.IV[3]=parseInt(i.attributes.IV[3],16),i.attributes.IV=new Uint32Array(i.attributes.IV))),void this.trigger("data",i);if(t=/^#EXT-X-START:(.*)$/.exec(r),t)return i={type:"tag",tagType:"start"},t[1]&&(i.attributes=Mt(t[1]),i.attributes["TIME-OFFSET"]=parseFloat(i.attributes["TIME-OFFSET"]),i.attributes.PRECISE=/YES/.test(i.attributes.PRECISE)),void this.trigger("data",i);if(t=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(r),t)return i={type:"tag",tagType:"cue-out-cont"},i.data=t[1]?t[1]:"",void this.trigger("data",i);if(t=/^#EXT-X-CUE-OUT:(.*)?$/.exec(r),t)return i={type:"tag",tagType:"cue-out"},i.data=t[1]?t[1]:"",void this.trigger("data",i);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(r),t)return i={type:"tag",tagType:"cue-in"},i.data=t[1]?t[1]:"",void this.trigger("data",i);if(t=/^#EXT-X-SKIP:(.*)$/.exec(r),t&&t[1])return i={type:"tag",tagType:"skip"},i.attributes=Mt(t[1]),i.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(i.attributes["SKIPPED-SEGMENTS"]=parseInt(i.attributes["SKIPPED-SEGMENTS"],10)),i.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(i.attributes["RECENTLY-REMOVED-DATERANGES"]=i.attributes["RECENTLY-REMOVED-DATERANGES"].split("\t")),void this.trigger("data",i);if(t=/^#EXT-X-PART:(.*)$/.exec(r),t&&t[1])return i={type:"tag",tagType:"part"},i.attributes=Mt(t[1]),["DURATION"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseFloat(i.attributes[a]))}),["INDEPENDENT","GAP"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=/YES/.test(i.attributes[a]))}),i.attributes.hasOwnProperty("BYTERANGE")&&(i.attributes.byterange=Ji(i.attributes.BYTERANGE)),void this.trigger("data",i);if(t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(r),t&&t[1])return i={type:"tag",tagType:"server-control"},i.attributes=Mt(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseFloat(i.attributes[a]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=/YES/.test(i.attributes[a]))}),void this.trigger("data",i);if(t=/^#EXT-X-PART-INF:(.*)$/.exec(r),t&&t[1])return i={type:"tag",tagType:"part-inf"},i.attributes=Mt(t[1]),["PART-TARGET"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseFloat(i.attributes[a]))}),void this.trigger("data",i);if(t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(r),t&&t[1])return i={type:"tag",tagType:"preload-hint"},i.attributes=Mt(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(a){if(i.attributes.hasOwnProperty(a)){i.attributes[a]=parseInt(i.attributes[a],10);const l="BYTERANGE-LENGTH"===a?"length":"offset";i.attributes.byterange=i.attributes.byterange||{},i.attributes.byterange[l]=i.attributes[a],delete i.attributes[a]}}),void this.trigger("data",i);if(t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(r),t&&t[1])return i={type:"tag",tagType:"rendition-report"},i.attributes=Mt(t[1]),["LAST-MSN","LAST-PART"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseInt(i.attributes[a],10))}),void this.trigger("data",i);if(t=/^#EXT-X-DATERANGE:(.*)$/.exec(r),t&&t[1]){i={type:"tag",tagType:"daterange"},i.attributes=Mt(t[1]),["ID","CLASS"].forEach(function(l){i.attributes.hasOwnProperty(l)&&(i.attributes[l]=String(i.attributes[l]))}),["START-DATE","END-DATE"].forEach(function(l){i.attributes.hasOwnProperty(l)&&(i.attributes[l]=new Date(i.attributes[l]))}),["DURATION","PLANNED-DURATION"].forEach(function(l){i.attributes.hasOwnProperty(l)&&(i.attributes[l]=parseFloat(i.attributes[l]))}),["END-ON-NEXT"].forEach(function(l){i.attributes.hasOwnProperty(l)&&(i.attributes[l]=/YES/i.test(i.attributes[l]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(l){i.attributes.hasOwnProperty(l)&&(i.attributes[l]=i.attributes[l].toString(16))});const a=/^X-([A-Z]+-)+[A-Z]+$/;
vendor: 12,199 bytes, line 1
1for(const l in i.attributes){if(!a.test(l))continue;const h=/[0-9A-Fa-f]{6}/g.test(i.attributes[l]),m=/^\d+(\.\d+)?$/.test(i.attributes[l]);i.attributes[l]=h?i.attributes[l].toString(16):m?parseFloat(i.attributes[l]):String(i.attributes[l])}return void this.trigger("data",i)}if(t=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(r),t)this.trigger("data",{type:"tag",tagType:"independent-segments"});else{if(t=/^#EXT-X-I-FRAMES-ONLY/.exec(r),!t)return t=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(r),t?(i={type:"tag",tagType:"content-steering"},i.attributes=Mt(t[1]),void this.trigger("data",i)):(t=/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/.exec(r),t?(i={type:"tag",tagType:"i-frame-playlist"},i.attributes=Mt(t[1]),i.attributes.URI&&(i.uri=i.attributes.URI),i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes.RESOLUTION&&(i.attributes.RESOLUTION=Dr(i.attributes.RESOLUTION)),i.attributes["AVERAGE-BANDWIDTH"]&&(i.attributes["AVERAGE-BANDWIDTH"]=parseInt(i.attributes["AVERAGE-BANDWIDTH"],10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),void this.trigger("data",i)):(t=/^#EXT-X-DEFINE:(.*)$/.exec(r),t?(i={type:"tag",tagType:"define"},i.attributes=Mt(t[1]),void this.trigger("data",i)):void this.trigger("data",{type:"tag",data:r.slice(4)})));this.trigger("data",{type:"tag",tagType:"i-frames-only"})}}}}else this.trigger("data",{type:"comment",text:r.slice(1)})}):this.trigger("data",{type:"uri",uri:e}))}addParser({expression:e,customType:t,dataParser:i,segment:n}){"function"!=typeof i&&(i=r=>r),this.customParsers.push(r=>{if(e.exec(r))return this.trigger("data",{type:"custom",data:i(r),customType:t,segment:n}),!0})}addTagMapper({expression:e,map:t}){this.tagMappers.push(n=>e.test(n)?t(n):n)}}const ii=function(s){const e={};return Object.keys(s).forEach(function(t){e[(s=>s.toLowerCase().replace(/-(\w)/g,e=>e[1].toUpperCase()))(t)]=s[t]}),e},Fs=function(s){const{serverControl:e,targetDuration:t,partTargetDuration:i}=s;if(!e)return;const n="#EXT-X-SERVER-CONTROL",r="holdBack",a="partHoldBack",l=t&&3*t,h=i&&2*i;t&&!e.hasOwnProperty(r)&&(e[r]=l,this.trigger("info",{message:`${n} defaulting HOLD-BACK to targetDuration * 3 (${l}).`})),l&&e[r]<l&&(this.trigger("warn",{message:`${n} clamping HOLD-BACK (${e[r]}) to targetDuration * 3 (${l})`}),e[r]=l),i&&!e.hasOwnProperty(a)&&(e[a]=3*i,this.trigger("info",{message:`${n} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${e[a]}).`})),i&&e[a]<h&&(this.trigger("warn",{message:`${n} clamping PART-HOLD-BACK (${e[a]}) to partTargetDuration * 2 (${h}).`}),e[a]=h)};class kr extends mi{constructor(e={}){super(),this.lineStream=new kn,this.parseStream=new gi,this.lineStream.pipe(this.parseStream),this.mainDefinitions=e.mainDefinitions||{},this.params=new URL(e.uri,"https://a.com").searchParams,this.lastProgramDateTime=null;const t=this,i=[];let r,a,n={},l=!1;const h=function(){},m={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}};let y=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],iFramePlaylists:[],segments:[]};let I=0,P=0;const j={};this.on("end",()=>{n.uri||!n.parts&&!n.preloadHints||(!n.map&&r&&(n.map=r),!n.key&&a&&(n.key=a),!n.timeline&&"number"==typeof y&&(n.timeline=y),this.manifest.preloadSegment=n)}),this.parseStream.on("data",function(x){let z,H;if(t.manifest.definitions)for(const U in t.manifest.definitions)if(x.uri&&(x.uri=x.uri.replace(`{$${U}}`,t.manifest.definitions[U])),x.attributes)for(const R in x.attributes)"string"==typeof x.attributes[R]&&(x.attributes[R]=x.attributes[R].replace(`{$${U}}`,t.manifest.definitions[U]));({tag(){({version(){x.version&&(this.manifest.version=x.version)},"allow-cache"(){this.manifest.allowCache=x.allowed,"allowed"in x||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const U={};"length"in x&&(n.byterange=U,U.length=x.length,"offset"in x||(x.offset=I)),"offset"in x&&(n.byterange=U,U.offset=x.offset),I=U.offset+U.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),x.title&&(n.title=x.title),x.duration>0&&(n.duration=x.duration),0===x.duration&&(n.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=i},key(){if(x.attributes)if("NONE"!==x.attributes.METHOD){if(x.attributes.URI)return"com.apple.streamingkeydelivery"===x.attributes.KEYFORMAT?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:x.attributes})):"com.microsoft.playready"===x.attributes.KEYFORMAT?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:x.attributes.URI})):"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===x.attributes.KEYFORMAT?-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(x.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===x.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==x.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):x.attributes.KEYID&&"0x"===x.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:x.attributes.KEYFORMAT,keyId:x.attributes.KEYID.substring(2)},pssh:xt(x.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"})):(x.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),a={method:x.attributes.METHOD||"AES-128",uri:x.attributes.URI},void(typeof x.attributes.IV<"u"&&(a.iv=x.attributes.IV)));this.trigger("warn",{message:"ignoring key declaration without URI"})}else a=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence"(){isFinite(x.number)?this.manifest.mediaSequence=x.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+x.number})},"discontinuity-sequence"(){isFinite(x.number)?(this.manifest.discontinuitySequence=x.number,y=x.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+x.number})},"playlist-type"(){/VOD|EVENT/.test(x.playlistType)?this.manifest.playlistType=x.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+x.playlist})},map(){r={},x.uri&&(r.uri=x.uri),x.byterange&&(r.byterange=x.byterange),a&&(r.key=a)},"stream-inf"(){this.manifest.playlists=i,this.manifest.mediaGroups=this.manifest.mediaGroups||m,x.attributes?(n.attributes||(n.attributes={}),Xe(n.attributes,x.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||m,!(x.attributes&&x.attributes.TYPE&&x.attributes["GROUP-ID"]&&x.attributes.NAME))return void this.trigger("warn",{message:"ignoring incomplete or missing media group"});const U=this.manifest.mediaGroups[x.attributes.TYPE];U[x.attributes["GROUP-ID"]]=U[x.attributes["GROUP-ID"]]||{},z=U[x.attributes["GROUP-ID"]],H={default:/yes/i.test(x.attributes.DEFAULT)},H.autoselect=!!H.default||/yes/i.test(x.attributes.AUTOSELECT),x.attributes.LANGUAGE&&(H.language=x.attributes.LANGUAGE),x.attributes.URI&&(H.uri=x.attributes.URI),x.attributes["INSTREAM-ID"]&&(H.instreamId=x.attributes["INSTREAM-ID"]),x.attributes.CHARACTERISTICS&&(H.characteristics=x.attributes.CHARACTERISTICS),x.attributes.FORCED&&(H.forced=/yes/i.test(x.attributes.FORCED)),z[x.attributes.NAME]=H},discontinuity(){y+=1,n.discontinuity=!0,this.manifest.discontinuityStarts.push(i.length)},"program-date-time"(){typeof this.manifest.dateTimeString>"u"&&(this.manifest.dateTimeString=x.dateTimeString,this.manifest.dateTimeObject=x.dateTimeObject),n.dateTimeString=x.dateTimeString,n.dateTimeObject=x.dateTimeObject;const{lastProgramDateTime:U}=this;this.lastProgramDateTime=new Date(x.dateTimeString).getTime(),null===U&&this.manifest.segments.reduceRight((R,Q)=>(Q.programDateTime=R-1e3*Q.duration,Q.programDateTime),this.lastProgramDateTime)},targetduration(){!isFinite(x.duration)||x.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+x.duration}):(this.manifest.targetDuration=x.duration,Fs.call(this,this.manifest))},start(){x.attributes&&!isNaN(x.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:x.attributes["TIME-OFFSET"],precise:x.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out"(){n.cueOut=x.data},"cue-out-cont"(){n.cueOutCont=x.data},"cue-in"(){n.cueIn=x.data},skip(){this.manifest.skip=ii(x.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",x.attributes,["SKIPPED-SEGMENTS"])},part(){l=!0;const U=this.manifest.segments.length,R=ii(x.attributes);n.parts=n.parts||[],n.parts.push(R),R.byterange&&(R.byterange.hasOwnProperty("offset")||(R.byterange.offset=P),P=R.byterange.offset+R.byterange.length),this.warnOnMissingAttributes_(`#EXT-X-PART #${n.parts.length-1} for segment #${U}`,x.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((X,ce)=>{X.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${ce} lacks required attribute(s): LAST-PART`})})},"server-control"(){const U=this.manifest.serverControl=ii(x.attributes);U.hasOwnProperty("canBlockReload")||(U.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),Fs.call(this,this.manifest),U.canSkipDateranges&&!U.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const U=this.manifest.segments.length,R=ii(x.attributes),Q=R.type&&"PART"===R.type;n.preloadHints=n.preloadHints||[],n.preloadHints.push(R),R.byterange&&(R.byterange.hasOwnProperty("offset")||(R.byterange.offset=Q?P:0,Q&&(P=R.byterange.offset+R.byterange.length)));const X=n.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${X} for segment #${U}`,x.attributes,["TYPE","URI"]),R.type)for(let ce=0;ce<n.preloadHints.length-1;ce++){const Y=n.preloadHints[ce];Y.type&&Y.type===R.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${X} for segment #${U} has the same TYPE ${R.type} as preload hint #${ce}`})}},"rendition-report"(){const U=ii(x.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(U);const R=this.manifest.renditionReports.length-1,Q=["LAST-MSN","URI"];l&&Q.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${R}`,x.attributes,Q)},"part-inf"(){this.manifest.partInf=ii(x.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",x.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),Fs.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(ii(x.attributes));const U=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${U}`,x.attributes,["ID","START-DATE"]);const R=this.manifest.dateRanges[U];R.endDate&&R.startDate&&new Date(R.endDate)<new Date(R.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),R.duration&&R.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),R.plannedDuration&&R.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});const Q=!!R.endOnNext;if(Q&&!R.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT
1=YES attribute must have a CLASS attribute"}),Q&&(R.duration||R.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),R.duration&&R.endDate){const ce=R.startDate.getTime()+1e3*R.duration;this.manifest.dateRanges[U].endDate=new Date(ce)}if(j[R.id]){for(const ce in j[R.id])if(R[ce]&&JSON.stringify(j[R.id][ce])!==JSON.stringify(R[ce])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}const X=this.manifest.dateRanges.findIndex(ce=>ce.id===R.id);this.manifest.dateRanges[X]=Xe(this.manifest.dateRanges[X],R),j[R.id]=Xe(j[R.id],R),this.manifest.dateRanges.pop()}else j[R.id]=R},"independent-segments"(){this.manifest.independentSegments=!0},"i-frames-only"(){this.manifest.iFramesOnly=!0,this.requiredCompatibilityversion(this.manifest.version,4)},"content-steering"(){this.manifest.contentSteering=ii(x.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",x.attributes,["SERVER-URI"])},define(){this.manifest.definitions=this.manifest.definitions||{};const U=(R,Q)=>{R in this.manifest.definitions?this.trigger("error",{message:`EXT-X-DEFINE: Duplicate name ${R}`}):this.manifest.definitions[R]=Q};if("QUERYPARAM"in x.attributes){if("NAME"in x.attributes||"IMPORT"in x.attributes)return void this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});const R=this.params.get(x.attributes.QUERYPARAM);return R?void U(x.attributes.QUERYPARAM,decodeURIComponent(R)):void this.trigger("error",{message:`EXT-X-DEFINE: No query param ${x.attributes.QUERYPARAM}`})}return"NAME"in x.attributes?"IMPORT"in x.attributes?void this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"}):"VALUE"in x.attributes&&"string"==typeof x.attributes.VALUE?void U(x.attributes.NAME,x.attributes.VALUE):void this.trigger("error",{message:`EXT-X-DEFINE: No value for ${x.attributes.NAME}`}):"IMPORT"in x.attributes?this.mainDefinitions[x.attributes.IMPORT]?void U(x.attributes.IMPORT,this.mainDefinitions[x.attributes.IMPORT]):void this.trigger("error",{message:`EXT-X-DEFINE: No value ${x.attributes.IMPORT} to import, or IMPORT used on main playlist`}):void this.trigger("error",{message:"EXT-X-DEFINE: No attribute"})},"i-frame-playlist"(){this.manifest.iFramePlaylists.push({attributes:x.attributes,uri:x.uri,timeline:y}),this.warnOnMissingAttributes_("#EXT-X-I-FRAME-STREAM-INF",x.attributes,["BANDWIDTH","URI"])}}[x.tagType]||h).call(t)},uri(){n.uri=x.uri,i.push(n),this.manifest.targetDuration&&!("duration"in n)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),n.duration=this.manifest.targetDuration),a&&(n.key=a),n.timeline=y,r&&(n.map=r),P=0,null!==this.lastProgramDateTime&&(n.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=1e3*n.duration),n={}},comment(){},custom(){x.segment?(n.custom=n.custom||{},n.custom[x.customType]=x.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[x.customType]=x.data)}})[x.type].call(t)})}requiredCompatibilityversion(e,t){(e<t||!e)&&this.trigger("warn",{message:`manifest must be at least version ${t}`})}warnOnMissingAttributes_(e,t,i){const n=[];i.forEach(function(r){t.hasOwnProperty(r)||n.push(r)}),n.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${n.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push("\n"),this.manifest.dateRanges.length&&null===this.lastProgramDateTime&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}var s,Ai={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},eo=["video","audio","text"],In=["Video","Audio","Text"],Zi=function(e){return e&&e.replace(/avc1\.(\d+)\.(\d+)/i,function(t,i,n){return"avc1."+("00"+Number(i).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)})},wt=function(e){void 0===e&&(e="");var t=e.split(","),i=[];return t.forEach(function(n){var r;n=n.trim(),eo.forEach(function(a){var l=Ai[a].exec(n.toLowerCase());if(l&&!(l.length<=1)){r=a;var h=n.substring(0,l[1].length),m=n.replace(h,"");i.push({type:h,details:m,mediaType:a})}}),r||i.push({type:n,details:"",mediaType:"unknown"})}),i},Hs=function(e){return void 0===e&&(e=""),Ai.audio.test(e.trim().toLowerCase())},wi=function(e){if(e&&"string"==typeof e){var t=e.toLowerCase().split(",").map(function(r){return Zi(r.trim())}),i="video";1===t.length&&Hs(t[0])?i="audio":1===t.length&&function(e){return void 0===e&&(e=""),Ai.text.test(e.trim().toLowerCase())}(t[0])&&(i="application");var n="mp4";return t.every(function(r){return Ai.mp4.test(r)})?n="mp4":t.every(function(r){return Ai.webm.test(r)})?n="webm":t.every(function(r){return Ai.ogg.test(r)})&&(n="ogg"),i+"/"+n+';codecs="'+e+'"'}},Di=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=!1),C().MediaSource&&C().MediaSource.isTypeSupp
vendor: 9,497 bytes, line 1
1orted&&C().MediaSource.isTypeSupported(wi(e))||t&&C().ManagedMediaSource&&C().ManagedMediaSource.isTypeSupported&&C().ManagedMediaSource.isTypeSupported(wi(e))||!1},qs=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every(function(t){t=t.trim();for(var i=0;i<In.length;i++)if(Ai["muxer"+In[i]].test(t))return!0;return!1})},On="mp4a.40.2",zs=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,jn=/^application\/dash\+xml/i,Ln=function(e){return zs.test(e)?"hls":jn.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null},Or=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},Ie=function(e){return e instanceof Uint8Array?e:(!Array.isArray(e)&&!function(e){return Or(e)}(e)&&!(e instanceof ArrayBuffer)&&(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},D=C().BigInt||Number,q=[D("0x1"),D("0x100"),D("0x10000"),D("0x1000000"),D("0x100000000"),D("0x10000000000"),D("0x1000000000000"),D("0x100000000000000"),D("0x10000000000000000")],ot=(s=new Uint16Array([65484]),new Uint8Array(s.buffer,s.byteOffset,s.byteLength),function(e,t){var i=void 0===t?{}:t,n=i.signed,r=void 0!==n&&n,a=i.le,l=void 0!==a&&a;e=Ie(e);var h=l?"reduce":"reduceRight",v=(e[h]?e[h]:Array.prototype[h]).call(e,function(I,P,j){var x=l?j:Math.abs(j+1-e.length);return I+D(P)*q[x]},D(0));if(r){var y=q[e.length]/D(2)-D(1);(v=D(v))>y&&(v-=y,v-=y,v-=D(2))}return Number(v)}),si=function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var i=new Uint8Array(e.length),n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return i},Qe=function(e,t,i){var n=void 0===i?{}:i,r=n.offset,a=void 0===r?0:r,l=n.mask,h=void 0===l?[]:l;return e=Ie(e),(t=Ie(t)).length&&e.length-a>=t.length&&(t.every?t.every:Array.prototype.every).call(t,function(v,y){return v===(h[y]?h[y]&e[a+y]:e[a+y])})},Ui=te(2419);const _i=s=>!!s&&"object"==typeof s,lt=(...s)=>s.reduce((e,t)=>("object"!=typeof t||Object.keys(t).forEach(i=>{e[i]=Array.isArray(e[i])&&Array.isArray(t[i])?e[i].concat(t[i]):_i(e[i])&&_i(t[i])?lt(e[i],t[i]):t[i]}),e),{}),Ht=s=>Object.keys(s).map(e=>s[e]),ni=s=>s.reduce((e,t)=>e.concat(t),[]),ts=s=>{if(!s.length)return[];const e=[];for(let t=0;t<s.length;t++)e.push(s[t]);return e};const ri=({baseUrl:s="",source:e="",range:t="",indexRange:i=""})=>{const n={uri:e,resolvedUri:pi(s||"",e)};if(t||i){const a=(t||i).split("-");let m,l=C().BigInt?C().BigInt(a[0]):parseInt(a[0],10),h=C().BigInt?C().BigInt(a[1]):parseInt(a[1],10);l<Number.MAX_SAFE_INTEGER&&"bigint"==typeof l&&(l=Number(l)),h<Number.MAX_SAFE_INTEGER&&"bigint"==typeof h&&(h=Number(h)),m="bigint"==typeof h||"bigint"==typeof l?C().BigInt(h)-C().BigInt(l)+C().BigInt(1):h-l+1,"bigint"==typeof m&&m<Number.MAX_SAFE_INTEGER&&(m=Number(m)),n.byterange={length:m,offset:l}}return n},ru=s=>(s&&"number"!=typeof s&&(s=parseInt(s,10)),isNaN(s)?null:s),Mf={static(s){const{duration:e,timescale:t=1,sourceDuration:i,periodDuration:n}=s,r=ru(s.endNumber),a=e/t;return"number"==typeof r?{start:0,end:r}:"number"==typeof n?{start:0,end:n/a}:{start:0,end:i/a}},dynamic(s){const{NOW:e,clientOffset:t,availabilityStartTime:i,timescale:n=1,duration:r,periodStart:a=0,minimumUpdatePeriod:l=0,timeShiftBufferDepth:h=1/0}=s,m=ru(s.endNumber),v=(e+t)/1e3,y=i+a,j=Math.ceil((v+l-y)*n/r),x=Math.floor((v-y-h)*n/r),z=Math.floor((v-y)*n/r);return{start:Math.max(0,x),end:"number"==typeof m?m:Math.min(j,z)}}},to=s=>{const{type:e,duration:t,timescale:i=1,periodDuration:n,sourceDuration:r}=s,{start:a,end:l}=Mf[e](s),h=((s,e)=>{const t=[];for(let i=s;i<e;i++)t.push(i);return t})(a,l).map((s=>e=>{const{duration:t,timescale:i=1,periodStart:n,startNumber:r=1}=s;return{number:r+e,duration:t/i,timeline:n,time:e*t}})(s));if("static"===e){const m=h.length-1;h[m].duration=("number"==typeof n?n:r)-t/i*m}return h},au=s=>{const{baseUrl:e,initialization:t={},sourceDuration:i,indexRange:n="",periodStart:r,presentationTime:a,number:l=0,duration:h}=s;if(!e)throw new Error("NO_BASE_URL");const m=ri({baseUrl:e,source:t.sourceURL,range:t.range}),v=ri({baseUrl:e,source:e,indexRange:n});if(v.map=m,h){const y=to(s);y.length&&(v.duration=y[0].duration,v.timeline=y[0].timeline)}else i&&(v.duration=i,v.timeline=r);return v.presentationTime=a||r,v.number=l,[v]},io=(s,e,t)=>{const i=s.sidx.map?s.sidx.map:null,n=s.sidx.duration,r=s.timeline||0,a=s.sidx.byterange,l=a.offset+a.length,h=e.timescale,m=e.references.filter(z=>1!==z.referenceType),v=[],y=s.endList?"static":"dynamic",I=s.sidx.timeline;let x,P=I,j=s.mediaSequence||0;x="bigint"==typeof e.firstOffset?C().BigInt(l)+e.firstOffset:l+e.firstOffset;for(let z=0;z<m.length;z++){const H=e.references[z],U=H.referencedSize,R=H.subsegmentDuration;let Q;Q="bigint"==typeof x?x+C().BigInt(U)-C().BigInt(1):x+U-1;const Y=au({baseUrl:t,timescale:h,timeline:r,periodStart:I,presentationTime:P,number:j,duration:R,sourceDuration:n,indexRange:`${x}-${Q}`,type:y})[0];i&&(Y.map=i),v.push(Y),x+="bigint"==typeof x?C().BigInt(U):U,P+=R/h,j++}return s.segments=v,s},Lf=["AUDIO","SUBTITLES"],Rf=1/60,ou=s=>(s=>Ht(s.reduce((t,i)=>(i.forEach(n=>{t[(({timeline:e})=>e)(n)]=n}),t),{})))(s).sort((e,t)=>e.timeline>t.timeline?1:-1),lu=s=>{let e=[];return function(e,t,i){t.forEach(function(n){for(var r in e.mediaGroups[n])for(var a in e.mediaGroups[n][r])i(e.mediaGroups[n][r][a])})}(s,Lf,(t,i,n,r)=>{e=e.concat(t.playlists||[])}),e},uu=({playlist:s,mediaSequence:e})=>{s.mediaSequence=e,s.segments.forEach((t,i)=>{t.number=s.mediaSequence+i})},Lr=s=>s&&s.uri+"-"+(s=>{let e;return e="bigint"==typeof s.offset||"bigint"==typeof s.length?C().BigInt(s.offset)+C().BigInt(s.length)-C().BigInt(1):s.offset+s.length-1,`${s.offset}-${e}`})(s.byterange),so=s=>{const e=s.reduce(function(i,n){return i[n.attributes.baseUrl]||(i[n.attributes.baseUrl]=[]),i[n.attributes.baseUrl].push(n),i},{});let t=[];return Object.values(e).forEach(i=>{const n=Ht(i.reduce((r,a)=>{const l=a.attributes.id+(a.attributes.lang||"");return r[l]?(a.segments&&(a.segments[0]&&(a.segments[0].discontinuity=!0),r[l].segments.push(...a.segments)),a.attributes.contentProtection&&(r[l].attributes.contentProtection=a.attributes.contentProtection)):(r[l]=a,r[l].attributes.timelineStarts=[]),r[l].attributes.timelineStarts.push({start:a.attributes.periodStart,timeline:a.attributes.periodStart}),r},{}));t=t.concat(n)}),t.map(i=>(i.discontinuityStarts=(s=>s.reduce((t,i,n)=>(i.discontinuity&&t.push(n),t),[]))(i.segments||[]),i))},no=(s,e)=>{const t=Lr(s.sidx),i=t&&e[t]&&e[t].sidx;return i&&io(s,i,s.sidx.resolvedUri),s},Uf=(s,e={})=>{if(!Object.keys(e).length)return s;for(const t in s)s[t]=no(s[t],e);return s},Gf=({attributes:s,segments:e,sidx:t,discontinuityStarts:i})=>{const n={attributes:{NAME:s.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:s.width,height:s.height},CODECS:s.codecs,BANDWIDTH:s.bandwidth,"PROGRAM-ID":1},uri:"",endList:"static"===s.type,timeline:s.periodStart,resolvedUri:s.baseUrl||"",targetDuration:s.duration,discontinuityStarts:i,timelineStarts:s.timelineStarts,segments:e};return s.frameRate&&(n.attributes["FRAME-RATE"]=s.frameRate),void 0!==s.qualityRanking&&(n.attributes.SCORE=1/(s.qualityRanking+1)),s.contentProtection&&(n.contentProtection=s.contentProtection),s.serviceLocation&&(n.attributes.serviceLocation=s.serviceLocation),t&&(n.sidx=t),n},Wf=({attributes:s})=>"video/mp4"===s.mimeType||"video/webm"===s.mimeType||"video"===s.contentType,Xf=({attributes:s})=>"audio/mp4"===s.mimeType||"audio/webm"===s.mimeType||"audio"===s.contentType,Yf=({attributes:s})=>"text/vtt"===s.mimeType||"text"===s.contentType,cu=s=>s?Object.keys(s).reduce((e,t)=>e.concat(s[t].playlists),[]):[],Qf=({dashPlaylists:s,locations:e,contentSteering:t,sidxMapping:i={},previousManifest:n,eventStream:r})=>{if(!s.length)return{};const{sourceDuration:a,type:l,suggestedPresentationDelay:h,minimumUpdatePeriod:m}=s[0].attributes,v=so(s.filter(Wf)).map(Gf),y=so(s.filter(Xf)),I=so(s.filter(Yf)),P=s.map(Q=>Q.attributes.captionServices).filter(Boolean),j={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:a,playlists:Uf(v,i)};m>=0&&(j.minimumUpdatePeriod=1e3*m),e&&(j.locations=e),t&&(j.contentSteering=t),"dynamic"===l&&(j.suggestedPresentationDelay=h),r&&r.length>0&&(j.eventStream=r);const z=y.length?((s,e={},t=!1)=>{let i;const n=s.reduce((r,a)=>{const l=a.attributes.role&&a.attributes.role.value||"",h=a.attributes.lang||"";let m=a.attributes.label||"main";h&&!a.attributes.label&&(m=`${a.attributes.lang}${l?` (${l})`:""}`),r[m]||(r[m]={language:h,autoselect:!0,default:"main"===l,playlists:[],uri:""});const v=no((({attributes:s,segments:e,sidx:t,mediaSequence:i,discontinuitySequence:n,discontinuityStarts:r},a)=>{const l={attributes:{NAME:s.id,BANDWIDTH:s.bandwidth,CODECS:s.codecs,"PROGRAM-ID":1},uri:"",endList:"static"===s.type,timeline:s.periodStart,resolvedUri:s.baseUrl||"",targetDuration:s.duration,discontinuitySequence:n,discontinuityStarts:r,timelineStarts:s.timelineStarts,mediaSequence:i,segments:e};return s.contentProtection&&(l.contentProtection=s.contentProtection),s.serviceLocation&&(l.attributes.serviceLocation=s.serviceLocation),t&&(l.sidx=t),a&&(l.attributes.AUDIO="audio",l.attributes.SUBTITLES="subs"),l})(a,t),e);return r[m].playlists.push(v),typeof i>"u"&&"main"===l&&(i=a,i.default=!0),r},{});
1return i||(n[Object.keys(n)[0]].default=!0),n})(y,i,0===j.playlists.length):null,H=I.length?((s,e={})=>s.reduce((t,i)=>{const n=i.attributes.label||i.attributes.lang||"text";return t[n]||(t[n]={language:i.attributes.lang||"und",default:!1,autoselect:!1,playlists:[],uri:""}),t[n].playlists.push(no((({attributes:s,segments:e,mediaSequence:t,discontinuityStarts:i,discontinuitySequence:n})=>{typeof e>"u"&&(e=[{uri:s.baseUrl,timeline:s.periodStart,resolvedUri:s.baseUrl||"",duration:s.sourceDuration,number:0}],s.duration=s.sourceDuration);const r={NAME:s.id,BANDWIDTH:s.bandwidth,"PROGRAM-ID":1};s.codecs&&(r.CODECS=s.codecs);const a={attributes:r,uri:"",endList:"static"===s.type,timeline:s.periodStart,resolvedUri:s.baseUrl||"",targetDuration:s.duration,timelineStarts:s.timelineStarts,discontinuityStarts:i,discontinuitySequence:n,mediaSequence:t,segments:e};return s.serviceLocation&&(a.attributes.serviceLocation=s.serviceLocation),a})(i),e)),t},{}))(I,i):null,U=v.concat(cu(z),cu(H)),R=U.map(({timelineStarts:Q})=>Q);return j.timelineStarts=ou(R),((s,e)=>{s.forEach(t=>{t.mediaSequence=0,t.discontinuitySequence=e.findIndex(function({timeline:i}){return i===t.timeline}),t.segments&&t.segments.forEach((i,n)=>{i.number=n})})})(U,j.timelineStarts),z&&(j.mediaGroups.AUDIO.audio=z),H&&(j.mediaGroups.SUBTITLES.subs=H),P.length&&(j.mediaGroups["CLOSED-CAPTIONS"].cc=(s=>s.reduce((e,t)=>(t&&t.forEach(i=>{const{channel:n,language:r}=i;e[r]={autoselect:!1,default:!1,instreamId:n,language:r},i.hasOwnProperty("aspectRatio")&&(e[r].aspectRatio=i.aspectRatio),i.hasOwnProperty("easyReader")&&(e[r].easyReader=i.easyReader),i.hasOwnProperty("3D")&&(e[r]["3D"]=i["3D"])}),e),{}))(P)),n?(({oldManifest:s,newManifest:e})=>{const t=s.playlists.concat(lu(s)),i=e.playlists.concat(lu(e));return e.timelineStarts=ou([s.timelineStarts,e.timelineStarts]),(({oldPlaylists:s,newPlaylists:e,timelineStarts:t})=>{e.forEach(i=>{i.discontinuitySequence=t.findIndex(function({timeline:h}){return h===i.timeline});const n=((s,e)=>{for(let t=0;t<s.length;t++)if(s[t].attributes.NAME===e)return s[t];return null})(s,i.attributes.NAME);if(!n||i.sidx)return;const r=i.segments[0],a=n.segments.findIndex(function(h){return Math.abs(h.presentationTime-r.presentationTime)<Rf});if(-1===a)return uu({playlist:i,mediaSequence:n.mediaSequence+n.segments.length}),i.segments[0].discontinuity=!0,i.discontinuityStarts.unshift(0),void((!n.segments.length&&i.timeline>n.timeline||n.segments.length&&i.timeline>n.segments[n.segments.length-1].timeline)&&i.discontinuitySequence--);n.segments[a].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,i.discontinuityStarts.unshift(0),i.discontinuitySequence--),uu({playlist:i,mediaSequence:n.segments[a].number})})})({oldPlaylists:t,newPlaylists:i,timelineStarts:e.timelineStarts}),e})({oldManifest:n,newManifest:j}):j},Jf=(s,e,t)=>{const{NOW:i,clientOffset:n,availabilityStartTime:r,timescale:a=1,periodStart:l=0,minimumUpdatePeriod:h=0}=s;return Math.ceil((((i+n)/1e3+h-(r+l))*a-e)/t)},du=(s,e)=>{const{type:t,minimumUpdatePeriod:i=0,media:n="",sourceDuration:r,timescale:a=1,startNumber:l=1,periodStart:h}=s,m=[];let v=-1;for(let y=0;y<e.length;y++){const I=e[y],P=I.d,j=I.r||0,x=I.t||0;let z;if(v<0&&(v=x),x&&x>v&&(v=x),j<0){const R=y+1;z=R===e.length?"dynamic"===t&&i>0&&n.indexOf("$Number$")>0?Jf(s,v,P):(r*a-v)/P:(e[R].t-v)/P}else z=j+1;const H=l+m.length+z;let U=l+m.length;for(;U<H;)m.push({number:U,duration:P/a,time:v,timeline:h}),v+=P,U++}return m},Zf=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,hu=(s,e)=>s.replace(Zf,(s=>(e,t,i,n)=>{if("$$"===e)return"$";if(typeof s[t]>"u")return e;const r=""+s[t];return"RepresentationID"===t||(n=i?parseInt(n,10):1,r.length>=n)?r:`${new Array(n-r.length+1).join("0")}${r}`})(e)),ip=(s,e)=>{const t={RepresentationID:s.id,Bandwidth:s.bandwidth||0},{initialization:i={sourceURL:"",range:""}}
1=s,n=ri({baseUrl:s.baseUrl,source:hu(i.sourceURL,t),range:i.range});return((s,e)=>s.duration||e?s.duration?to(s):du(s,e):[{number:s.startNumber||1,duration:s.sourceDuration,time:0,timeline:s.periodStart}])(s,e).map(a=>{t.Number=a.number,t.Time=a.time;const l=hu(s.media||"",t),v=s.periodStart+(a.time-(s.presentationTimeOffset||0))/(s.timescale||1);return{uri:l,timeline:a.timeline,duration:a.duration,resolvedUri:pi(s.baseUrl||"",l),map:n,number:a.number,presentationTime:v}})},np=(s,e)=>{const{duration:t,segmentUrls:i=[],periodStart:n}=s;if(!t&&!e||t&&e)throw new Error("SEGMENT_TIME_UNSPECIFIED");const r=i.map(h=>((s,e)=>{const{baseUrl:t,initialization:i={}}=s,n=ri({baseUrl:t,source:i.sourceURL,range:i.range}),r=ri({baseUrl:t,source:e.media,range:e.mediaRange});return r.map=n,r})(s,h));let a;return t&&(a=to(s)),e&&(a=du(s,e)),a.map((h,m)=>{if(r[m]){const v=r[m],y=s.timescale||1,I=s.presentationTimeOffset||0;return v.timeline=h.timeline,v.duration=h.duration,v.number=h.number,v.presentationTime=n+(h.time-I)/y,v}}).filter(h=>h)},rp=({attributes:s,segmentInfo:e})=>{let t,i;e.template?(i=ip,t=lt(s,e.template)):e.base?(i=au,t=lt(s,e.base)):e.list&&(i=np,t=lt(s,e.list));const n={attributes:s};if(!i)return n;const r=i(t,e.segmentTimeline);if(t.duration){const{duration:a,timescale:l=1}=t;t.duration=a/l}else t.duration=r.length?r.reduce((a,l)=>Math.max(a,Math.ceil(l.duration)),0):0;return n.attributes=t,n.segments=r,e.base&&t.indexRange&&(n.sidx=r[0],n.segments=[]),n},pt=(s,e)=>ts(s.childNodes).filter(({tagName:t})=>t===e),Fn=s=>s.textContent.trim(),Ys=s=>{const l=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(s);if(!l)return 0;const[h,m,v,y,I,P]=l.slice(1);return 31536e3*parseFloat(h||0)+2592e3*parseFloat(m||0)+86400*parseFloat(v||0)+3600*parseFloat(y||0)+60*parseFloat(I||0)+parseFloat(P||0)},fu={mediaPresentationDuration:s=>Ys(s),availabilityStartTime:s=>(s=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(s)&&(s+="Z"),Date.parse(s)))(s)/1e3,minimumUpdatePeriod:s=>Ys(s),suggestedPresentationDelay:s=>Ys(s),type:s=>s,timeShiftBufferDepth:s=>Ys(s),start:s=>Ys(s),width:s=>parseInt(s,10),height:s=>parseInt(s,10),bandwidth:s=>parseInt(s,10),frameRate:s=>(s=>parseFloat(s.split("/").reduce((e,t)=>e/t)))(s),startNumber:s=>parseInt(s,10),timescale:s=>parseInt(s,10),presentationTimeOffset:s=>parseInt(s,10),duration(s){const e=parseInt(s,10);return isNaN(e)?Ys(s):e},d:s=>parseInt(s,10),t:s=>parseInt(s,10),r:s=>parseInt(s,10),presentationTime:s=>parseInt(s,10),qualityRanking:s=>parseInt(s,10),qualityranking:s=>parseInt(s,10),DEFAULT:s=>s},up={qualityranking:"qualityRanking"},Ct=s=>s&&s.attributes?ts(s.attributes).reduce((e,t)=>(e[up[t.name]||t.name]=(fu[t.name]||fu.DEFAULT)(t.value),e),{}):{},cp={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},Rr=(s,e)=>e.length?ni(s.map(function(t){return e.map(function(i){const n=Fn(i),r=pi(t.baseUrl,n),a=lt(Ct(i),{baseUrl:r});return r!==n&&!a.serviceLocation&&t.serviceLocation&&(a.serviceLocation=t.serviceLocation),a})})):s,ro=s=>{const e=pt(s,"SegmentTemplate")[0],t=pt(s,"SegmentList")[0],i=t&&pt(t,"SegmentURL").map(y=>lt({tag:"SegmentURL"},Ct(y))),n=pt(s,"SegmentBase")[0],r=t||e,a=r&&pt(r,"SegmentTimeline")[0],l=t||n||e,h=l&&pt(l,"Initialization")[0],m=e&&Ct(e);m&&h?m.initialization=h&&Ct(h):m&&m.initialization&&(m.initialization={sourceURL:m.initialization});const v={template:m,segmentTimeline:a&&pt(a,"S").map(y=>Ct(y)),list:t&&lt(Ct(t),{segmentUrls:i,initialization:Ct(h)}),base:n&&lt(Ct(n),{initialization:Ct(h)})};return Object.keys(v).forEach(y=>{v[y]||delete v[y]}),v},pp=s=>ni(pt(s.node,"EventStream").map(e=>{const t=Ct(e),i=t.schemeIdUri;return pt(e,"Event").map(n=>{const r=Ct(n),l=t.timescale||1,m=(r.presentationTime||0)/l+s.attributes.start;return{schemeIdUri:i,value:t.value,id:r.id,start:m,end:m+(r.duration||0)/l,messageData:Fn(n)||r.messageData,contentEncoding:t.contentEncoding,presentationTimeOffset:t.presentationTimeOffset||0}})})),gp=(s,e)=>(t,i)=>
vendor: 26,605 bytes, line 1
1{const n=Rr(e,pt(t.node,"BaseURL")),r=lt(s,{periodStart:t.attributes.start});"number"==typeof t.attributes.duration&&(r.periodDuration=t.attributes.duration);const a=pt(t.node,"AdaptationSet"),l=ro(t.node);return ni(a.map(((s,e,t)=>i=>{const n=Ct(i),r=Rr(e,pt(i,"BaseURL")),a=pt(i,"Role")[0],l={role:Ct(a)};let h=lt(s,n,l);const m=pt(i,"Accessibility")[0],v=(s=>"urn:scte:dash:cc:cea-608:2015"===s.schemeIdUri?("string"!=typeof s.value?[]:s.value.split(";")).map(t=>{let i,n;return n=t,/^CC\d=/.test(t)?[i,n]=t.split("="):/^CC\d$/.test(t)&&(i=t),{channel:i,language:n}}):"urn:scte:dash:cc:cea-708:2015"===s.schemeIdUri?("string"!=typeof s.value?[]:s.value.split(";")).map(t=>{const i={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){const[n,r=""]=t.split("=");i.channel=n,i.language=t,r.split(",").forEach(a=>{const[l,h]=a.split(":");"lang"===l?i.language=h:"er"===l?i.easyReader=Number(h):"war"===l?i.aspectRatio=Number(h):"3D"===l&&(i["3D"]=Number(h))})}else i.language=t;return i.channel&&(i.channel="SERVICE"+i.channel),i}):void 0)(Ct(m));v&&(h=lt(h,{captionServices:v}));const y=pt(i,"Label")[0];if(y&&y.childNodes.length){const z=y.childNodes[0].nodeValue.trim();h=lt(h,{label:z})}const I=(s=>s.reduce((e,t)=>{const i=Ct(t);i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase());const n=cp[i.schemeIdUri];if(n){e[n]={attributes:i};const r=pt(t,"cenc:pssh")[0];if(r){const a=Fn(r);e[n].pssh=a&&xt(a)}}return e},{}))(pt(i,"ContentProtection"));Object.keys(I).length&&(h=lt(h,{contentProtection:I}));const P=ro(i),j=pt(i,"Representation"),x=lt(t,P);return ni(j.map(((s,e,t)=>i=>{const n=pt(i,"BaseURL"),r=Rr(e,n),a=lt(s,Ct(i)),l=ro(i);return r.map(h=>({segmentInfo:lt(t,l),attributes:lt(a,h)}))})(h,r,x)))})(r,n,l)))},vp=(s,e)=>{if(s.length>1&&e({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!s.length)return null;const t=lt({serverURL:Fn(s[0])},Ct(s[0]));return t.queryBeforeStart="true"===t.queryBeforeStart,t},pu=s=>{if(""===s)throw new Error("DASH_EMPTY_MANIFEST");const e=new Ui.DOMParser;let t,i;try{t=e.parseFromString(s,"application/xml"),i=t&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch{}if(!i||i&&i.getElementsByTagName("parsererror").length>0)throw new Error("DASH_INVALID_XML");return i};var lo,Sp=te(1089),Cp=te.n(Sp),Ep=Ie([73,68,51]),Un=function s(e,t){return void 0===t&&(t=0),(e=Ie(e)).length-t<10||!Qe(e,Ep,{offset:t})?t:(t+=function(e,t){void 0===t&&(t=0);var n=(e=Ie(e))[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&e[t+5])>>4?n+20:n+10}(e,t),s(e,t))},oo=(new Uint8Array([79,112,117,115,72,101,97,100]),function(e){return"string"==typeof e?si(e):e}),uo=function(e){e=Ie(e);for(var t=[],i=0;e.length>i;){var n=e[i],r=0,a=0,l=e[++a];for(a++;128&l;)r=(127&l)<<7,l=e[a],a++;r+=127&l;for(var h=0;h<lo.length;h++){var m=lo[h];if(n===m.id){t.push((0,m.parser)(e.subarray(a,a+r)));break}}i+=r+a}return t};lo=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&t.flags&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),64&t.flags){var i=e[t.size];t.url=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,Ie(e));try{return decodeURIComponent(escape(t))}catch{}return t}(e.subarray(t.size+1,t.size+1+i)),t.size+=i}return 32&t.flags&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=uo(e.subarray(t.size))||[],t}},{id:4,parser:function(e){return{tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:uo(e.subarray(13))}}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var qt=function s(e,t,i){void 0===i&&(i=!1),t=function(e){return Array.isArray(e)?e.map(function(t){return oo(t)}):[oo(e)]}(t),e=Ie(e);var n=[];if(!t.length)return n;for(var r=0;r<e.length;){var a=(e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3])>>>0,l=e.subarray(r+4,r+8);if(0===a)break;var h=r+a;if(h>e.length){if(i)break;h=e.length}var m=e.subarray(r+8,h);Qe(l,t[0])&&(1===t.length?n.push(m):n.push.apply(n,s(m,t.slice(1),i))),r=h}return n},dt={EBML:Ie([26,69,223,163]),DocType:Ie([66,130]),Segment:Ie([24,83,128,103]),SegmentInfo:Ie([21,73,169,102]),Tracks:Ie([22,84,174,107]),Track:Ie([174]),TrackNumber:Ie([215]),DefaultDuration:Ie([35,227,131]),TrackEntry:Ie([174]),TrackType:Ie([131]),FlagDefault:Ie([136]),CodecID:Ie([134]),CodecPrivate:Ie([99,162]),VideoTrack:Ie([224]),AudioTrack:Ie([225]),Cluster:Ie([31,67,182,117]),Timestamp:Ie([231]),TimestampScale:Ie([42,215,177]),BlockGroup:Ie([160]),BlockDuration:Ie([155]),Block:Ie([161]),SimpleBlock:Ie([163])},co=[128,64,32,16,8,4,2,1],ys=function(e,t,i,n){void 0===i&&(i=!0),void 0===n&&(n=!1);var r=function(e){for(var t=1,i=0;i<co.length&&!(e&co[i]);i++)t++;return t}(e[t]),a=e.subarray(t,t+r);return i&&((a=Array.prototype.slice.call(e,t,t+r))[0]^=co[r-1]),{length:r,value:ot(a,{signed:n}),bytes:a}},_u=function s(e){return"string"==typeof e?e.match(/.{1,2}/g).map(function(t){return s(t)}):"number"==typeof e?function(e,t){var n=(void 0===t?{}:t).le,r=void 0!==n&&n;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0);for(var a=function(e){return Math.ceil(function(e){return e.toString(2).length}(e)/8)}(e=D(e)),l=new Uint8Array(new ArrayBuffer(a)),h=0;h<a;h++){var m=r?h:Math.abs(h+1-l.length);l[m]=Number(e/q[h]&D(255)),e<0&&(l[m]=Math.abs(~l[m]),l[m]-=0===h?1:2)}return l}(e):e},zp=function s(e,t,i){if(i>=t.length)return t.length;var n=ys(t,i,!1);if(Qe(e.bytes,n.bytes))return i;var r=ys(t,i+n.length);return s(e,t,i+r.length+r.value+n.length)},_t=function s(e,t){t=function(e){return Array.isArray(e)?e.map(function(t){return _u(t)}):[_u(e)]}(t),e=Ie(e);var i=[];if(!t.length)return i;for(var n=0;n<e.length;){var r=ys(e,n,!1),a=ys(e,n+r.length),l=n+r.length+a.length;127===a.value&&(a.value=zp(r,e,l),a.value!==e.length&&(a.value-=l));var m=e.subarray(l,l+a.value>e.length?e.length:l+a.value);Qe(t[0],r.bytes)&&(1===t.length?i.push(m):i=i.concat(s(m,t.slice(1)))),n+=r.length+a.length+m.length}return i},Xp=Ie([0,0,0,1]),Yp=Ie([0,0,1]),Kp=Ie([0,0,3]),Qp=function(e){for(var t=[],i=1;i<e.length-2;)Qe(e.subarray(i,i+3),Kp)&&(t.push(i+2),i++),i++;if(0===t.length)return e;var n=e.length-t.length,r=new Uint8Array(n),a=0;for(i=0;i<n;a++,i++)a===t[0]&&(a++,t.shift()),r[i]=e[a];return r},yu=function(e,t,i,n){void 0===n&&(n=1/0),e=Ie(e),i=[].concat(i);for(var a,r=0,l=0;r<e.length&&(l<n||a);){var h=void 0;if(Qe(e.subarray(r),Xp)?h=4:Qe(e.subarray(r),Yp)&&(h=3),h){if(l++,a)return Qp(e.subarray(a,r));var m=void 0;"h264"===t?m=31&e[r+h]:"h265"===t&&(m=e[r+h]>>1&63),-1!==i.indexOf(m)&&(a=r+h),r+=h+("h264"===t?1:2)}else r++}return e.subarray(0,0)},jt={webm:Ie([119,101,98,109]),matroska:Ie([109,97,116,114,111,115,107,97]),flac:Ie([102,76,97,67]),ogg:Ie([79,103,103,83]),ac3:Ie([11,119]),riff:Ie([82,73,70,70]),avi:Ie([65,86,73]),wav:Ie([87,65,86,69]),"3gp":Ie([102,116,121,112,51,103]),mp4:Ie([102,116,121,112]),fmp4:Ie([115,116,121,112]),mov:Ie([102,116,121,112,113,116]),moov:Ie([109,111,111,118]),moof:Ie([109,111,111,102]),vtt:Ie([87,69,66,86,84,84])},Qs={aac:function(e){var t=Un(e);return Qe(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=Un(e);return Qe(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=_t(e,[dt.EBML,dt.DocType])[0];return Qe(t,jt.webm)},mkv:function(e){var t=_t(e,[dt.EBML,dt.DocType])[0];return Qe(t,jt.matroska)},mp4:function(e){return!Qs["3gp"](e)&&!Qs.mov(e)&&(!!(Qe(e,jt.mp4,{offset:4})||Qe(e,jt.fmp4,{offset:4})||Qe(e,jt.moof,{offset:4})||Qe(e,jt.moov,{offset:4}))||void 0)},mov:function(e){return Qe(e,jt.mov,{offset:4})},"3gp":function(e){return Qe(e,jt["3gp"],{offset:4})},ac3:function(e){var t=Un(e);return Qe(e,jt.ac3,{offset:t})},vtt:function(e){return Qe(e,jt.vtt)},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=Un(e);return Qe(e,jt.flac,{offset:t})},ogg:function(e){return Qe(e,jt.ogg)},avi:function(e){return Qe(e,jt.riff)&&Qe(e,jt.avi,{offset:8})},wav:function(e){return Qe(e,jt.riff)&&Qe(e,jt.wav,{offset:8})},h264:function(e){return function(e){return yu(e,"h264",7,3)}(e).length},h265:function(e){return function(e){return yu(e,"h265",[32,33],3)}(e).length}},ho=Object.keys(Qs).filter(function(s){return"ts"!==s&&"h264"!==s&&"h265"!==s}).concat(["ts","h264","h265"]);ho.forEach(function(s){var e=Qs[s];Qs[s]=function(t){return e(Ie(t))}});var em=Qs,fo=function(e){e=Ie(e);for(var t=0;t<ho.length;t++){var i=ho[t];if(em[i](e))return i}return""},bs=te(2915),po="8.23.8";const qi={},ns=function(s,e){return qi[s]=qi[s]||[],e&&(qi[s]=qi[s].concat(e)),qi[s]},bu=function(s,e){const t=ns(s).indexOf(e);return!(t<=-1||(qi[s]=qi[s].slice(),qi[s].splice(t,1),0))},Nr={prefixed:!0},Br=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],Tu=Br[0];let qn;for(let s=0;s<Br.length;s++)if(Br[s][1]in se()){qn=Br[s];break}if(qn){for(let s=0;s<qn.length;s++)Nr[Tu[s]]=qn[s];Nr.prefixed=qn[0]!==Tu[0]}let zt=[];const Ye=function mo(s,e=":",t=""){let n,i="info";function r(...a){n("log",i,a)}return n=((s,e,t)=>(i,n,r)=>{const a=e.levels[n],l=new RegExp(`^(${a})$`);let h=s;if("log"!==i&&r.unshift(i.toUpperCase()+":"),t&&(h=`%c${s}`,r.unshift(t)),r.unshift(h+":"),zt){zt.push([].concat(r));const v=zt.length-1e3;zt.splice(0,v>0?v:0)}if(!C().console)return;let m=C().console[i];!m&&"debug"===i&&(m=C().console.info||C().console.log),m&&a&&l.test(i)&&m[Array.isArray(r)?"apply":"call"](C().console,r)})(s,r,t),r.createLogger=(a,l,h)=>{const m=void 0!==l?l:e;return mo(`${s} ${m} ${a}`,m,void 0!==h?h:t)},r.createNewLogger=(a,l,h)=>mo(a,l,h),r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:i},r.level=a=>{if("string"==typeof a){if(!r.levels.hasOwnProperty(a))throw new Error(`"${a}" in not a valid log level`);i=a}return i},(r.history=()=>zt?[].concat(zt):[]).filter=a=>(zt||[]).filter(l=>new RegExp(`.*${a}.*`).test(l[0])),r.history.clear=()=>{zt&&(zt.length=0)},r.history.disable=()=>{null!==zt&&(zt.length=0,zt=null)},r.history.enable=()=>{null===zt&&(zt=[])},r.error=(...a)=>n("error",i,a),r.warn=(...a)=>n("warn",i,a),r.debug=(...a)=>n("debug",i,a),r}("VIDEOJS"),xu=Ye.createLogger,rm=Object.prototype.toString,Su=function(s){return ki(s)?Object.keys(s):[]};function Js(s,e){Su(s).forEach(t=>e(s[t],t))}function Cu(s,e,t=0){return Su(s).reduce((i,n)=>e(i,s[n],n),t)}function ki(s){return!!s&&"object"==typeof s}function Zs(s){return ki(s)&&"[object Object]"===rm.call(s)&&s.constructor===Object}function rt(...s){const e={};return s.forEach(t=>{t&&Js(t,(i,n)=>{Zs(i)?(Zs(e[n])||(e[n]={}),e[n]=rt(e[n],i)):e[n]=i})}),e}function Eu(s={}){const e=[];for(const t in s)s.hasOwnProperty(t)&&e.push(s[t]);return e}function Fr(s,e,t,i=!0){const n=a=>Object.defineProperty(s,e,{value:a,enumerable:!0,writable:!0}),r={configurable:!0,enumerable:!0,get(){const a=t();return n(a),a}};return i&&(r.set=n),Object.defineProperty(s,e,r)}var am=Object.freeze({__proto__:null,each:Js,reduce:Cu,isObject:ki,isPlain:Zs,merge:rt,values:Eu,defineLazyProperty:Fr});let wu,go=!1,Au=null,yi=!1,Du=!1,en=!1,tn=!1,Ii=!1,vo=null,Ur=null;const om=!!(C().cast&&C().cast.framework&&C().cast.framework.CastReceiverContext);let ku=null,Vr=!1,Hr=!1,qr=!1,zr=!1,$r=!1,Gr=!1,Wr=!1;const zn=!(!sn()||!("ontouchstart"in C()||C().navigator.maxTouchPoints||C().DocumentTouch&&C().document instanceof C().DocumentTouch)),rs=C().navigator&&C().navigator.userAgentData;if(rs&&rs.platform&&rs.brands&&(yi="Android"===rs.platform,en=!!rs.brands.find(s=>"Microsoft Edge"===s.brand),tn=!!rs.brands.find(s=>"Chromium"===s.brand),Ii=!en&&tn,vo=Ur=(rs.brands.find(s=>"Chromium"===s.brand)||{}).version||null,Hr="Windows"===rs.platform),!tn){const s=C().navigator&&C().navigator.userAgent||"";go=/iPod/i.test(s),Au=function(){const e=s.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),yi=/Android/i.test(s),wu=function(){const e=s.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;const t=e[1]&&parseFloat(e[1]),i=e[2]&&parseFloat(e[2]);return t&&i?parseFloat(e[1]+"."+e[2]):t||null}(),Du=/Firefox/i.test(s),en=/Edg/i.test(s),tn=/Chrome/i.test(s)||/CriOS/i.test(s),Ii=!en&&tn,vo=Ur=function(){const e=s.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),ku=function(){const e=/MSIE\s(\d+)\.\d/.exec(s);let t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(s)&&/rv:11.0/.test(s)&&(t=11),t}(),$r=/Tizen/i.test(s),Gr=/Web0S/i.test(s),Wr=$r||Gr,Vr=/Safari/i.test(s)&&!Ii&&!yi&&!en&&!Wr,Hr=/Windows/i.test(s),qr=/iPad/i.test(s)||Vr&&zn&&!/iPhone/i.test(s),zr=/iPhone/i.test(s)&&!qr}const Lt=zr||qr||go,Xr=(Vr||Lt)&&!Ii;var Iu=Object.freeze({__proto__:null,get IS_IPOD(){return go},get IOS_VERSION(){return Au},get IS_ANDROID(){return yi},get ANDROID_VERSION(){return wu},get IS_FIREFOX(){return Du},get IS_EDGE(){return en},get IS_CHROMIUM(){return tn},get IS_CHROME(){return Ii},get CHROMIUM_VERSION(){return vo},get CHROME_VERSION(){return Ur},IS_CHROMECAST_RECEIVER:om,get IE_VERSION(){return ku},get IS_SAFARI(){return Vr},get IS_WINDOWS(){return Hr},get IS_IPAD(){return qr},get IS_IPHONE(){return zr},get IS_TIZEN(){return $r},get IS_WEBOS(){return Gr},get IS_SMART_TV(){return Wr},TOUCH_ENABLED:zn,IS_IOS:Lt,IS_ANY_SAFARI:Xr});function Pu(s){return"string"==typeof s&&!!s.trim()}function sn(){return se()===C().document}function nn(s){return ki(s)&&1===s.nodeType}function Ou(){try{return C().parent!==C().self}catch{return!0}}function Mu(s){return function(e,t){if(!Pu(e))return se()[s](null);Pu(t)&&(t=se().querySelector(t));const i=nn(t)?t:se();return i[s]&&i[s](e)}}function Ne(s="div",e={},t={},i){const n=se().createElement(s);return Object.getOwnPropertyNames(e).forEach(function(r){const a=e[r];"textContent"===r?as(n,a):(n[r]!==a||"tabIndex"===r)&&(n[r]=a)}),Object.getOwnPropertyNames(t).forEach(function(r){n.setAttribute(r,t[r])}),i&&yo(n,i),n}function as(s,e){return typeof s.textContent>"u"?s.innerText=e:s.textContent=e,s}function _o(s,e){e.firstChild?e.insertBefore(s,e.firstChild):e.appendChild(s)}function $n(s,e){return function lm(s){if(s.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}(e),s.classList.contains(e)}function Ts(s,...e){return s.classList.add(...e.reduce((t,i)=>t.concat(i.split(/\s+/)),[])),s}function Yr(s,...e){return s?(s.classList.remove(...e.reduce((t,i)=>t.concat(i.split(/\s+/)),[])),s):(Ye.warn("removeClass was called with an element that doesn't exist"),null)}function ju(s,e,t){return"function"==typeof t&&(t=t(s,e)),"boolean"!=typeof t&&(t=void 0),e.split(/\s+/).forEach(i=>s.classList.toggle(i,t)),s}function Lu(s,e){Object.getOwnPropertyNames(e).forEach(function(t){const i=e[t];null===i||typeof i>"u"||!1===i?s.removeAttribute(t):s.setAttribute(t,!0===i?"":i)})}function os(s){const e={},t=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(s&&s.attributes&&s.attributes.length>0){const i=s.attributes;for(let n=i.length-1;n>=0;n--){const r=i[n].name;let a=i[n].value;t.includes(r)&&(a=null!==a),e[r]=a}}return e}function Ru(s,e){return s.getAttribute(e)}function rn(s,e,t){s.setAttribute(e,t)}function Kr(s,e){s.removeAttribute(e)}function Nu(){se().body.focus(),se().onselectstart=function(){return!1}}function Bu(){se().onselectstart=function(){return!0}}function an(s){if(s&&s.getBoundingClientRect&&s.parentNode){const e=s.getBoundingClientRect(),t={};return["bottom","height","left","right","top","width"].forEach(i=>{void 0!==e[i]&&(t[i]=e[i])}),t.height||(t.height=parseFloat(on(s,"height"))),t.width||(t.width=parseFloat(on(s,"width"))),t}}function Gn(s){if(!s||s&&!s.offsetParent)return{left:0,top:0,width:0,height:0};const e=s.offsetWidth,t=s.offsetHeight;let i=0,n=0;for(;s.offsetParent&&s!==se()[Nr.fullscreenElement];)i+=s.offsetLeft,n+=s.offsetTop,s=s.offsetParent;return{left:i,top:n,width:e,height:t}}function Qr(s,e){const t={x:0,y:0};if(Lt){let v=s;for(;v&&"html"!==v.nodeName.toLowerCase();){const y=on(v,"transform");if(/^matrix/.test(y)){const I=y.slice(7,-1).split(/,\s/).map(Number);t.x+=I[4],t.y+=I[5]}else if(/^matrix3d/.test(y)){const I=y.slice(9,-1).split(/,\s/).map(Number);t.x+=I[12],t.y+=I[13]}if(v.assignedSlot&&v.assignedSlot.parentElement&&C().WebKitCSSMatrix){const I=C().getComputedStyle(v.assignedSlot.parentElement).transform,P=new(C().WebKitCSSMatrix)(I);t.x+=P.m41,t.y+=P.m42}v=v.parentNode||v.host}}const i={},n=Gn(e.target),r=Gn(s),a=r.width;let h=e.offsetY-(r.top-n.top),m=e.offsetX-(r.left-n.left);return e.changedTouches&&(m=e.changedTouches[0].pageX-r.left,h=e.changedTouches[0].pageY+r.top,Lt&&(m-=t.x,h-=t.y)),i.y=1-Math.max(0,Math.min(1,h/r.height)),i.x=Math.max(0,Math.min(1,m/a)),i}function Fu(s){return ki(s)&&3===s.nodeType}function Jr(s){for(;s.firstChild;)s.removeChild(s.firstChild);return s}function Uu(s){return"function"==typeof s&&(s=s()),(Array.isArray(s)?s:[s]).map(e=>("function"==typeof e&&(e=e()),nn(e)||Fu(e)?e:"string"==typeof e&&/\S/.test(e)?se().createTextNode(e):void 0)).filter(e=>e)}function yo(s,e){return Uu(e).forEach(t=>s.appendChild(t)),s}function Vu(s,e){return yo(Jr(s),e)}function Wn(s){return void 0===s.button&&void 0===s.buttons||0===s.button&&void 0===s.buttons||"mouseup"===s.type&&0===s.button&&0===s.buttons||"mousedown"===s.type&&0===s.button&&0===s.buttons||!(0!==s.button||1!==s.buttons)}const ls=Mu("querySelector"),Hu=Mu("querySelectorAll");function on(s,e){if(!s||!e)return"";if("function"==typeof C().getComputedStyle){let t;try{t=C().getComputedStyle(s)}catch{return""}return t?t.getPropertyValue(e)||t[e]:""}return""}function qu(s){[...se().styleSheets].forEach(e=>{try{const t=[...e.cssRules].map(n=>n.cssText).join(""),i=se().createElement("style");i.textContent=t,s.document.head.appendChild(i)}catch{const i=se().createElement("link");i.rel="stylesheet",i.type=e.type,i.media=e.media.mediaText,i.href=e.href,s.document.head.appendChild(i)}})}var zu=Object.freeze({__proto__:null,isReal:sn,isEl:nn,isInFrame:Ou,createEl:Ne,textContent:as,prependTo:_o,hasClass:$n,addClass:Ts,removeClass:Yr,toggleClass:ju,setAttributes:Lu,getAttributes:os,getAttribute:Ru,setAttribute:rn,removeAttribute:Kr,blockTextSelection:Nu,unblockTextSelection:Bu,getBoundingClientRect:an,findPosition:Gn,getPointerPosition:Qr,isTextNode:Fu,emptyEl:Jr,normalizeContent:Uu,appendContent:yo,insertContent:Vu,isSingleLeftClick:Wn,$:ls,$$:Hu,computedStyle:on,copyStyleSheetsToWindow:qu});let bo,$u=!1;const um=function(){if(!1===bo.options.autoSetup)return;const s=Array.prototype.slice.call(se().getElementsByTagName("video")),e=Array.prototype.slice.call(se().getElementsByTagName("audio")),t=Array.prototype.slice.call(se().getElementsByTagName("video-js")),i=s.concat(e,t);if(i&&i.length>0)for(let n=0,r=i.length;n<r;n++){const a=i[n];if(!a||!a.getAttribute){To(1);break}void 0===a.player&&null!==a.getAttribute("data-setup")&&bo(a)}else $u||To(1)};function To(s,e){sn()&&(e&&(bo=e),C().setTimeout(um,s))}function xo(){$u=!0,C().removeEventListener("load",xo)}sn()&&("complete"===se().readyState?xo():C().addEventListener("load",xo));const Gu=function(s){const e=se().createElement("style");return e.className=s,e},Wu=function(s,e){s.styleSheet?s.styleSheet.cssText=e:s.textContent=e};var Ft=new WeakMap;let ea,cm=3;function ai(){return cm++}function Xu(s,e){if(!Ft.has(s))return;const t=Ft.get(s);0===t.handlers[e].length&&(delete t.handlers[e],s.removeEventListener?s.removeEventListener(e,t.dispatcher,!1):s.detachEvent&&s.detachEvent("on"+e,t.dispatcher)),Object.getOwnPropertyNames(t.handlers).length<=0&&(delete t.handlers,delete t.dispatcher,delete t.disabled),0===Object.getOwnPropertyNames(t).length&&Ft.delete(s)}function So(s,e,t,i){t.forEach(function(n){s(e,n,i)})}function Zr(s){if(s.fixed_)return s;function e(){return!0}function t(){return!1}if(!s||!s.isPropagationStopped||!s.isImmediatePropagationStopped){const i=s||C().event;s={};const n=["layerX","layerY","keyLocation","path","webkitMovementX","webkitMovementY","mozPressure","mozInputSource"];for(const r in i)n.includes(r)||"returnValue"===r&&i.preventDefault||(s[r]=i[r]);if(s.target||(s.target=s.srcElement||se()),s.relatedTarget||(s.relatedTarget=s.fromElement===s.target?s.toElement:s.fromElement),s.preventDefault=function(){i.preventDefault&&i.preventDefault(),s.returnValue=!1,i.returnValue=!1,s.defaultPrevented=!0},s.defaultPrevented=!1,s.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),s.cancelBubble=!0,i.cancelBubble=!0,s.isPropagationStopped=e},s.isPropagationStopped=t,s.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),s.isImmediatePropagationStopped=e,s.stopPropagation()},s.isImmediatePropagationStopped=t,null!=s.clientX){const r=se().documentElement,a=se().body;s.pageX=s.clientX+(r&&r.scrollLeft||a&&a.scrollLeft||0)-(r&&r.clientLeft||a&&a.clientLeft||0),s.pageY=s.clientY+(r&&r.scrollTop||a&&a.scrollTop||0)-(r&&r.clientTop||a&&a.clientTop||0)}s.which=s.charCode||s.keyCode,null!=s.button&&(s.button=1&s.button?0:4&s.button?1:2&s.button?2:0)}return s.fixed_=!0,s}const hm=["touchstart","touchmove"];function Yt(s,e,t){if(Array.isArray(e))return So(Yt,s,e,t);Ft.has(s)||Ft.set(s,{});const i=Ft.get(s);if(i.handlers||(i.handlers={}),i.handlers[e]||(i.handlers[e]=[]),t.guid||(t.guid=ai()),i.handlers[e].push(t),i.dispatcher||(i.disabled=!1,i.dispatcher=function(n,r){if(i.disabled)return;n=Zr(n);const a=i.handlers[n.type];if(a){const l=a.slice(0);for(let h=0,m=l.length;h<m&&!n.isImmediatePropagationStopped();h++)try{l[h].call(s,n,r)}catch(v){Ye.error(v)}}}),1===i.handlers[e].length)if(s.addEventListener){let n=!1;(function(){if("boolean"!=typeof ea){ea=!1;try{const s=Object.defineProperty({},"passive",{get(){ea=!0}});C().addEventListener("test",null,s),C().removeEventListener("test",null,s)}catch{}}return ea})()&&hm.indexOf(e)>-1&&(n={passive:!0}),s.addEventListener(e,i.dispatcher,n)}else s.attachEvent&&s.attachEvent("on"+e,i.dispatcher)}function Rt(s,e,t){if(!Ft.has(s))return;const i=Ft.get(s);if(!i.handlers)return;if(Array.isArray(e))return So(Rt,s,e,t);const n=function(a,l){i.handlers[l]=[],Xu(a,l)};if(void 0===e){for(const a in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},a)&&n(s,a);return}const r=i.handlers[e];if(r){if(!t)return void n(s,e);if(t.guid)for(let a=0;a<r.length;a++)r[a].guid===t.guid&&r.splice(a--,1);Xu(s,e)}}function ln(s,e,t){const i=Ft.has(s)?Ft.get(s):{},n=s.parentNode||s.ownerDocument;if("string"==typeof e?e={type:e,target:s}:e.target||(e.target=s),e=Zr(e),i.dispatcher&&i.dispatcher.call(s,e,t),n&&!e.isPropagationStopped()&&!0===e.bubbles)ln.call(null,n,e,t);else if(!n&&!e.defaultPrevented&&e.target&&e.target[e.type]){Ft.has(e.target)||Ft.set(e.target,{});const r=Ft.get(e.target);e.target[e.type]&&(r.disabled=!0,"function"==typeof e.target[e.type]&&e.target[e.type](),r.disabled=!1)}return!e.defaultPrevented}function ta(s,e,t){if(Array.isArray(e))return So(ta,s,e,t);const i=function(){Rt(s,e,i),t.apply(this,arguments)};i.guid=t.guid=t.guid||ai(),Yt(s,e,i)}function Co(s,e,t){const i=function(){Rt(s,e,i),t.apply(this,arguments)};i.guid=t.guid=t.guid||ai(),Yt(s,e,i)}var fm=Object.freeze({__proto__:null,fixEvent:Zr,on:Yt,off:Rt,trigger:ln,one:ta,any:Co});const ut=function(s,e,t){e.guid||(e.guid=ai());const i=e.bind(s);return i.guid=t?t+"_"+e.guid:e.guid,i},Pi=function(s,e){let t=C().performance.now();return function(...n){const r=C().performance.now();r-t>=e&&(s(...n),t=r)}},Yu=function(s,e,t,i=C()){let n;const a=function(){const l=this,h=arguments;let m=function(){n=null,m=null,t||s.apply(l,h)};!n&&t&&s.apply(l,h),i.clearTimeout(n),n=i.setTimeout(m,e)};return a.cancel=()=>{i.clearTimeout(n),n=null},a};var pm=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:30,bind_:ut,throttle:Pi,debounce:Yu});let Xn;class Kt{on(e,t){const i=this.addEventListener;this.addEventListener=()=>{},Yt(this,e,t),this.addEventListener=i}off(e,t){Rt(this,e,t)}one(e,t){const i=this.addEventListener;this.addEventListener=()=>{},ta(this,e,t),this.addEventListener=i}any(e,t){const i=this.addEventListener;this.addEventListener=()=>{},Co(this,e,t),this.addEventListener=i}trigger(e){const t=e.type||e;"string"==typeof e&&(e={type:t}),e=Zr(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),ln(this,e)}queueTrigger(e){Xn||(Xn=new Map);const t=e.type||e;let i=Xn.get(this);i||(i=new Map,Xn.set(this,i));const n=i.get(t);i.delete(t),C().clearTimeout(n);const r=C().setTimeout(()=>{i.delete(t),0===i.size&&(i=null,Xn.delete(this)),this.trigger(e)},0);i.set(t,r)}}Kt.prototype.allowedEvents_={},Kt.prototype.addEventListener=Kt.prototype.on,Kt.prototype.removeEventListener=Kt.prototype.off,Kt.prototype.dispatchEvent=Kt.prototype.trigger;const ia=s=>"function"==typeof s.name?s.name():"string"==typeof s.name?s.name:s.name_?s.name_:s.constructor&&s.constructor.name?s.constructor.name:typeof s,zi=s=>s instanceof Kt||!!s.eventBusEl_&&["on","one","off","trigger"].every(e=>"function"==typeof s[e]),Eo=s=>"string"==typeof s&&/\S/.test(s)||Array.isArray(s)&&!!s.length,sa=(s,e,t)=>{if(!s||!s.nodeName&&!zi(s))throw new Error(`Invalid target for ${ia(e)}#${t}; must be a DOM node or evented object.`)},Ku=(s,e,t)=>{if(!Eo(s))throw new Error(`Invalid event type for ${ia(e)}#${t}; must be a non-empty string or array.`)},Qu=(s,e,t)=>{if("function"!=typeof s)throw new Error(`Invalid listener for ${ia(e)}#${t}; must be a function.`)},Ao=(s,e,t)=>{const i=e.length<3||e[0]===s||e[0]===s.eventBusEl_;let n,r,a;return i?(n=s.eventBusEl_,e.length>=3&&e.shift(),[r,a]=e):(n=e[0],r=e[1],a=e[2]),sa(n,s,t),Ku(r,s,t),Qu(a,s,t),a=ut(s,a),{isTargetingSelf:i,target:n,type:r,listener:a}},xs=(s,e,t,i)=>{sa(s,s,e),s.nodeName?fm[e](s,t,i):s[e](t,i)},gm={on(...s){const{isTargetingSelf:e,target:t,type:i,listener:n}=Ao(this,s,"on");if(xs(t,"on",i,n),!e){const r=()=>this.off(t,i,n);r.guid=n.guid;const a=()=>this.off("dispose",r);a.guid=n.guid,xs(this,"on","dispose",r),xs(t,"on","dispose",a)}},one(...s){const{isTargetingSelf:e,target:t,type:i,listener:n}=Ao(this,s,"one");if(e)xs(t,"one",i,n);else{const r=(...a)=>{this.off(t,i,r),n.apply(null,a)};r.guid=n.guid,xs(t,"one",i,r)}},any(...s){const{isTargetingSelf:e,target:t,type:i,listener:n}=Ao(this,s,"any");
vendor: 6,580 bytes, line 1
1if(e)xs(t,"any",i,n);else{const r=(...a)=>{this.off(t,i,r),n.apply(null,a)};r.guid=n.guid,xs(t,"any",i,r)}},off(s,e,t){if(!s||Eo(s))Rt(this.eventBusEl_,s,e);else{const i=s,n=e;sa(i,this,"off"),Ku(n,this,"off"),Qu(t,this,"off"),t=ut(this,t),this.off("dispose",t),i.nodeName?(Rt(i,n,t),Rt(i,"dispose",t)):zi(i)&&(i.off(n,t),i.off("dispose",t))}},trigger(s,e){if(sa(this.eventBusEl_,this,"trigger"),!Eo(s&&"string"!=typeof s?s.type:s))throw new Error(`Invalid event type for ${ia(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return ln(this.eventBusEl_,s,e)}};function wo(s,e={}){const{eventBusKey:t}=e;if(t){if(!s[t].nodeName)throw new Error(`The eventBusKey "${t}" does not refer to an element.`);s.eventBusEl_=s[t]}else s.eventBusEl_=Ne("span",{className:"vjs-event-bus"});return Object.assign(s,gm),s.eventedCallbacks&&s.eventedCallbacks.forEach(i=>{i()}),s.on("dispose",()=>{s.off(),[s,s.el_,s.eventBusEl_].forEach(function(i){i&&Ft.has(i)&&Ft.delete(i)}),C().setTimeout(()=>{s.eventBusEl_=null},0)}),s}const vm={state:{},setState(s){let e;return"function"==typeof s&&(s=s()),Js(s,(t,i)=>{this.state[i]!==t&&(e=e||{},e[i]={from:this.state[i],to:t}),this.state[i]=t}),e&&zi(this)&&this.trigger({changes:e,type:"statechanged"}),e}};function Ju(s,e){return Object.assign(s,vm),s.state=Object.assign({},s.state,e),"function"==typeof s.handleStateChanged&&zi(s)&&s.on("statechanged",s.handleStateChanged),s}const Yn=function(s){return"string"!=typeof s?s:s.replace(/./,e=>e.toLowerCase())},Tt=function(s){return"string"!=typeof s?s:s.replace(/./,e=>e.toUpperCase())},Zu=function(s,e){return Tt(s)===Tt(e)};var _m=Object.freeze({__proto__:null,toLowerCase:Yn,toTitleCase:Tt,titleCaseEquals:Zu});class ${constructor(e,t,i){if(this.player_=!e&&this.play?e=this:e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=rt({},this.options_),t=this.options_=rt(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){const n=e&&e.id&&e.id()||"no_player";this.id_=`${n}_component_${ai()}`}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach(n=>this.addClass(n)),["on","off","one","any","trigger"].forEach(n=>{this[n]=void 0}),!1!==t.evented&&(wo(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),Ju(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(i),!1!==t.reportTouchActivity&&this.enableTouchActivity()}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(let t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}isDisposed(){return!!this.isDisposed_}player(){return this.player_}options(e){return e?(this.options_=rt(this.options_,e),this.options_):this.options_}el(){return this.el_}createEl(e,t,i){return Ne(e,t,i)}localize(e,t,i=e){const n=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[n],l=n&&n.split("-")[0],h=r&&r[l];let m=i;return a&&a[e]?m=a[e]:h&&h[e]&&(m=h[e]),t&&(m=m.replace(/\{(\d+)\}/g,function(v,y){const I=t[y-1];let P=I;return typeof I>"u"&&(P=v),P})),m}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(e)return this.childNameIndex_[e]}getDescendant(...e){e=e.reduce((i,n)=>i.concat(n),[]);let t=this;for(let i=0;i<e.length;i++)if(t=t.getChild(e[i]),!t||!t.getChild)return;return t}setIcon(e,t=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;const i="http://www.w3.org/2000/svg",n=Ne("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),r=se().createElementNS(i,"svg");r.setAttributeNS(null,"viewBox","0 0 512 512");const a=se().createElementNS(i,"use");return r.appendChild(a),a.setAttributeNS(null,"href",`#vjs-icon-${e}`),n.appendChild(r),this.iconIsSet_?t.replaceChild(n,t.querySelector(".vjs-icon-placeholder")):t.appendChild(n),this.iconIsSet_=!0,n}addChild(e,t={},i=this.children_.length){let n,r;if("string"==typeof e){r=Tt(e);const a=t.componentClass||r;t.name=r;const l=$.getComponent(a);if(!l)throw new Error(`Component ${a} does not exist`);if("function"!=typeof l)return null;n=new l(this.player_||this,t)}else n=e;if(n.parentComponent_&&n.parentComponent_.removeChild(n),this.children_.splice(i,0,n),n.parentComponent_=this,"function"==typeof n.id&&(this.childIndex_[n.id()]=n),r=r||n.name&&Tt(n.name()),r&&(this.childNameIndex_[r]=n,this.childNameIndex_[Yn(r)]=n),"function"==typeof n.el&&n.el()){let a=null;this.children_[i+1]&&(this.children_[i+1].el_?a=this.children_[i+1].el_:nn(this.children_[i+1])&&(a=this.children_[i+1])),this.contentEl().insertBefore(n.el(),a)}return n}removeChild(e){if("string"==typeof e&&(e=this.getChild(e)),!e||!this.children_)return;let t=!1;for(let n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(!t)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Tt(e.name())]=null,this.childNameIndex_[Yn(e.name())]=null;const i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){const e=this.options_.children;if(e){const t=this.options_,i=a=>{const l=a.name;let h=a.opts;if(void 0!==t[l]&&(h=t[l]),!1===h)return;!0===h&&(h={}),h.playerOptions=this.options_.playerOptions;const m=this.addChild(l,h);m&&(this[l]=m)};let n;const r=$.getComponent("Tech");n=Array.isArray(e)?e:Object.keys(e),n.concat(Object.keys(this.options_).filter(function(a){return!n.some(function(l){return"string"==typeof l?a===l:a===l.name})})).map(a=>{let l,h;return"string"==typeof a?(l=a,h=e[l]||this.options_[l]||{}):(l=a.name,h=a),{name:l,opts:h}}).filter(a=>{const l=$.getComponent(a.opts.componentClass||Tt(a.name));return l&&!r.isTech(l)}
vendor: 19,455 bytes, line 1
1).forEach(i)}}buildCSSClass(){return""}ready(e,t=!1){if(e){if(!this.isReady_)return this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e);t?e.call(this):this.setTimeout(e,1)}}triggerReady(){this.isReady_=!0,this.setTimeout(function(){const e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)}$(e,t){return ls(e,t||this.contentEl())}$$(e,t){return Hu(e,t||this.contentEl())}hasClass(e){return $n(this.el_,e)}addClass(...e){Ts(this.el_,...e)}removeClass(...e){Yr(this.el_,...e)}toggleClass(e,t){ju(this.el_,e,t)}show(){this.removeClass("vjs-hidden")}hide(){this.addClass("vjs-hidden")}lockShowing(){this.addClass("vjs-lock-showing")}unlockShowing(){this.removeClass("vjs-lock-showing")}getAttribute(e){return Ru(this.el_,e)}setAttribute(e,t){rn(this.el_,e,t)}removeAttribute(e){Kr(this.el_,e)}width(e,t){return this.dimension("width",e,t)}height(e,t){return this.dimension("height",e,t)}dimensions(e,t){this.width(e,!0),this.height(t)}dimension(e,t,i){if(void 0!==t)return(null===t||t!=t)&&(t=0),this.el_.style[e]=-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?t:"auto"===t?"":t+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;const n=this.el_.style[e],r=n.indexOf("px");return parseInt(-1!==r?n.slice(0,r):this.el_["offset"+Tt(e)],10)}currentDimension(e){let t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=on(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){const i=`offset${Tt(e)}`;t=this.el_[i]}return t}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}getPositions(){const e=this.el_.getBoundingClientRect();return{boundingClientRect:{x:e.x,y:e.y,width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left},center:{x:e.left+e.width/2,y:e.top+e.height/2,width:0,height:0,top:e.top+e.height/2,right:e.left+e.width/2,bottom:e.top+e.height/2,left:e.left+e.width/2}}}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&("Tab"!==e.key&&!(this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled)&&e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let r,e=0,t=null;this.on("touchstart",function(l){1===l.touches.length&&(t={pageX:l.touches[0].pageX,pageY:l.touches[0].pageY},e=C().performance.now(),r=!0)}),this.on("touchmove",function(l){if(l.touches.length>1)r=!1;else if(t){const h=l.touches[0].pageX-t.pageX,m=l.touches[0].pageY-t.pageY;Math.sqrt(h*h+m*m)>10&&(r=!1)}});const a=function(){r=!1};this.on("touchleave",a),this.on("touchcancel",a),this.on("touchend",function(l){t=null,!0===r&&C().performance.now()-e<200&&(l.preventDefault(),this.trigger("tap"))})}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const e=ut(this.player(),this.player().reportUserActivity);let t;this.on("touchstart",function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});const i=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",i),this.on("touchcancel",i)}setTimeout(e,t){var i;return e=ut(this,e),this.clearTimersOnDispose_(),i=C().setTimeout(()=>{this.setTimeoutIds_.has(i)&&this.setTimeoutIds_.delete(i),e()},t),this.setTimeoutIds_.add(i),i}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),C().clearTimeout(e)),e}setInterval(e,t){e=ut(this,e),this.clearTimersOnDispose_();const i=C().setInterval(e,t);return this.setIntervalIds_.add(i),i}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),C().clearInterval(e)),e}requestAnimationFrame(e){var t;return this.clearTimersOnDispose_(),e=ut(this,e),t=C().requestAnimationFrame(()=>{this.rafIds_.has(t)&&this.rafIds_.delete(t),e()}),this.rafIds_.add(t),t}requestNamedAnimationFrame(e,t){this.namedRafs_.has(e)&&this.cancelNamedAnimationFrame(e),this.clearTimersOnDispose_(),t=ut(this,t);const i=this.requestAnimationFrame(()=>{t(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)});return this.namedRafs_.set(e,i),e}cancelNamedAnimationFrame(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),C().cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(([e,t])=>{this[e].forEach((i,n)=>this[t](n))}),this.clearingTimersOnDispose_=!1}))}getIsDisabled(){return!!this.el_.disabled}getIsExpresslyInert(){return this.el_.inert&&!this.el_.ownerDocument.documentElement.inert}getIsFocusable(e){return(e||this.el_).tabIndex>=0&&!(this.getIsDisabled()||this.getIsExpresslyInert())}getIsAvailableToBeFocused(e){function t(r){const a=C().getComputedStyle(r,null),l=a.getPropertyValue("visibility");return"none"!==a.getPropertyValue("display")&&!["hidden","collapse"].includes(l)}return e||(e=this.el()),!(!function n(r){if(r.offsetWidth+r.offsetHeight+r.getBoundingClientRect().height+r.getBoundingClientRect().width===0)return!1;const a={x:r.getBoundingClientRect().left+r.offsetWidth/2,y:r.getBoundingClientRect().top+r.offsetHeight/2};if(a.x<0||a.x>(se().documentElement.clientWidth||C().innerWidth)||a.y<0||a.y>(se().documentElement.clientHeight||C().innerHeight))return!1;let l=se().elementFromPoint(a.x,a.y);for(;l;){if(l===r)return!0;if(!l.parentNode)return!1;l=l.parentNode}}(e)||!function i(r){return!(!t(r.parentElement)||!t(r)||"0"===r.style.opacity||"0px"===C().getComputedStyle(r).height||"0px"===C().getComputedStyle(r).width)}(e)||e.parentElement&&!(e.tabIndex>=0))}static registerComponent(e,t){if("string"!=typeof e||!e)throw new Error(`Illegal component name, "${e}"; must be a non-empty string.`);const i=$.getComponent("Tech"),n=i&&i.isTech(t),r=$===t||$.prototype.isPrototypeOf(t.prototype);if(n||!r){let l;throw l=n?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error(`Illegal component, "${e}"; ${l}.`)}e=Tt(e),$.components_||($.components_={});const a=$.getComponent("Player");if("Player"===e&&a&&a.players){const l=a.players,h=Object.keys(l);if(l&&h.length>0)for(let m=0;m<h.length;m++)if(null!==l[h[m]])throw new Error("Can not register Player component after player has been created.")}return $.components_[e]=t,$.components_[Yn(e)]=t,t}static getComponent(e){if(e&&$.components_)return $.components_[e]}}function ec(s,e,t,i){return function ym(s,e,t){if("number"!=typeof e||e<0||e>t)throw new Error(`Failed to execute '${s}' on 'TimeRanges': The index provided (${e}) is non-numeric or out of bounds (0-${t}).`)}(s,i,t.length-1),t[i][e]}function Do(s){let e;return e=void 0===s||0===s.length?{length:0,start(){throw new Error("This TimeRanges object is empty")},end(){throw new Error("This TimeRanges object is empty")}}:{length:s.length,start:ec.bind(null,"start",0,s),end:ec.bind(null,"end",1,s)},C().Symbol&&C().Symbol.iterator&&(e[C().Symbol.iterator]=()=>(s||[]).values()),e}function bi(s,e){return Array.isArray(s)?Do(s):void 0===s||void 0===e?Do():Do([[s,e]])}$.registerComponent("Component",$);const tc=function(s,e){s=s<0?0:s;let t=Math.floor(s%60),i=Math.floor(s/60%60),n=Math.floor(s/3600);const r=Math.floor(e/60%60),a=Math.floor(e/3600);return(isNaN(s)||s===1/0)&&(n=i=t="-"),n=n>0||a>0?n+":":"",i=((n||r>=10)&&i<10?"0"+i:i)+":",t=t<10?"0"+t:t,n+i+t};let ko=tc;function ic(s){ko=s}function sc(){ko=tc}function Ss(s,e=s){return ko(s,e)}var bm=Object.freeze({__proto__:null,createTimeRanges:bi,createTimeRange:bi,setFormatTime:ic,resetFormatTime:sc,formatTime:Ss});function nc(s,e){let i,n,t=0;if(!e)return 0;(!s||!s.length)&&(s=bi(0,0));for(let r=0;r<s.length;r++)i=s.start(r),n=s.end(r),n>e&&(n=e),t+=n-i;return t/e}function yt(s){if(s instanceof yt)return s;"number"==typeof s?this.code=s:"string"==typeof s?this.message=s:ki(s)&&("number"==typeof s.code&&(this.code=s.code),Object.assign(this,s)),this.message||(this.message=yt.defaultMessages[this.code]||"")}function Kn(s){return null!=s&&"function"==typeof s.then}function Oi(s){Kn(s)&&s.then(null,e=>{})}yt.prototype.code=0,yt.prototype.message="",yt.prototype.status=null,yt.prototype.metadata=null,yt.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],yt.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."},yt.MEDIA_ERR_CUSTOM=0,yt.prototype.MEDIA_ERR_CUSTOM=0,yt.MEDIA_ERR_ABORTED=1,yt.prototype.MEDIA_ERR_ABORTED=1,yt.MEDIA_ERR_NETWORK=2,yt.prototype.MEDIA_ERR_NETWORK=2,yt.MEDIA_ERR_DECODE=3,yt.prototype.MEDIA_ERR_DECODE=3,yt.MEDIA_ERR_SRC_NOT_SUPPORTED=4,yt.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED=4,yt.MEDIA_ERR_ENCRYPTED=5,yt.prototype.MEDIA_ERR_ENCRYPTED=5;const Io=function(s){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((t,i,n)=>(s[i]&&(t[i]=s[i]),t),{cues:s.cues&&Array.prototype.map.call(s.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})};var Po_trackToJson=Io;const Oo="vjs-modal-dialog";class un extends ${constructor(e,t){super(e,t),this.handleKeyDown_=i=>this.handleKeyDown(i),this.close_=i=>this.close(i),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=Ne("div",{className:`${Oo}-content`},{role:"document"}),this.descEl_=Ne("p",{className:`${Oo}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),as(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":"true","aria-label":this.label(),role:"dialog","aria-live":"polite"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${Oo} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||"Modal Window")}description(){let e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e}open(){if(this.opened_)return void(this.options_.fillAlways&&this.fill());const e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}opened(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_}close(){if(!this.opened_)return;const e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger({type:"modalclose",bubbles:!0}),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(e){if("boolean"==typeof e){const t=this.closeable_=!!e;let i=this.getChild("closeButton");if(t&&!i){const n=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=n,this.on(i,"close",this.close_)}!t&&i&&(this.off(i,"close",this.close_),this.removeChild(i),i.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(e){const t=this.contentEl(),i=t.parentNode,n=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),Vu(t,e),this.trigger("modalfill"),n?i.insertBefore(t,n):i.appendChild(t);const r=this.getChild("closeButton");r&&i.appendChild(r.el_),this.trigger("aftermodalfill")}empty(){this.trigger("beforemodalempty"),Jr(this.contentEl()),this.trigger("modalempty")}content(e){return typeof e<"u"&&(this.content_=e),this.content_}conditionalFocus_(){const e=se().activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}handleKeyDown(e){if(this.trigger({type:"modalKeydown",originalEvent:e,target:this,bubbles:!0}),e.stopPropagation(),"Escape"===e.key&&this.closeable())return e.preventDefault(),void this.close();if("Tab"!==e.key)return;const t=this.focusableEls_(),i=this.el_.querySelector(":focus");let n;for(let r=0;r<t.length;r++)if(i===t[r]){n=r;break}se().activeElement===this.el_&&(n=0),e.shiftKey&&0===n?(t[t.length-1].focus(),e.preventDefault()):!e.shiftKey&&n===t.length-1&&(t[0].focus(),e.preventDefault())}focusableEls_(){const e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,t=>(t instanceof C().HTMLAnchorElement||t instanceof C().HTMLAreaElement)&&t.hasAttribute("href")||(t instanceof C().HTMLInputElement||t instanceof C().HTMLSelectElement||t instanceof C().HTMLTextAreaElement||t instanceof C().HTMLButtonElement)&&!t.hasAttribute("disabled")||t instanceof C().HTMLIFrameElement||t instanceof C().HTMLObjectElement||t instanceof C().HTMLEmbedElement||t.hasAttribute("tabindex")&&-1!==t.getAttribute("tabindex")||t.hasAttribute("contenteditable"))}}un.prototype.options_={pauseOnOpen:!0,temporary:!0},$.registerComponent("ModalDialog",un);class Cs extends Kt{constructor(e=[]){super(),this.tracks_=[];for(let t=0;t<e.length;t++)this.addTrack(e[t])}get length(){return this.tracks_.length}addTrack(e){const t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=()=>{this.trigger({track:e,type:"labelchange",target:this})},zi(e)&&e.addEventListener("labelchange",e.labelchange_)}removeTrack(e){let t;for(let i=0,n=this.length;i<n;i++)if(this[i]===e){t=this[i],t.off&&t.off(),this.tracks_.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})}getTrackById(e){let t=null;for(let i=0,n=this.length;i<n;i++){const r=this[i];if(r.id===e){t=r;break}}return t}}Cs.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const s in Cs.prototype.allowedEvents_)Cs.prototype["on"+s]=null;const Mo=function(s,e){for(let t=0;t<s.length;t++)!Object.keys(s[t]).length||e.id===s[t].id||(s[t].enabled=!1)};class rc extends Cs{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].enabled){Mo(e,e[t]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&Mo(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,Mo(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}}const jo=function(s,e){for(let t=0;t<s.length;t++)!Object.keys(s[t]).length||e.id===s[t].id||(s[t].selected=!1)};class ac extends Cs{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].selected){jo(e,e[t]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set(){}})}addTrack(e){e.selected&&jo(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,jo(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}}class Lo extends Cs{addTrack(e){super.addTrack(e),this.queueChange_||(this.queueChange_=()=>this.queueTrigger("change")),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger("selectedlanguagechange")),e.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}toJSON(){return this.tracks_.map(e=>e.toJSON())}}class na{constructor(e){na.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){const t=this.length||0;let i=0;const n=e.length;this.cues_=e,this.length_=e.length;const r=function(a){""+a in this||Object.defineProperty(this,""+a,{get(){return this.cues_[a]}})};if(t<n)for(i=t;i<n;i++)r.call(this,i)}getCueById(e){let t=null;for(let i=0,n=this.length;i<n;i++){const r=this[i];if(r.id===e){t=r;break}}return t}}const xm={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Sm={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Cm={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},oc={disabled:"disabled",hidden:"hidden",showing:"showing"};class Ro extends Kt{constructor(e={}){super();const t={id:e.id||"vjs_track_"+ai(),kind:e.kind||"",language:e.language||""};let i=e.label||"";for(const n in t)Object.defineProperty(this,n,{get:()=>t[n],set(){}});Object.defineProperty(this,"label",{get:()=>i,set(n){n!==i&&(i=n,this.trigger("labelchange"))}})}}const No=function(s){return new URL(s,se().baseURI)},lc=function(s){return new URL(s,se().baseURI).href},Bo=function(s){if("string"==typeof s){const t=s.split("?")[0].replace(/\/+$/,"").match(/\.([^.\/]+)$/);return t?t[1].toLowerCase():""}return""},ra=function(s,e=C().location){return No(s).origin!==e.origin};var Em=Object.freeze({__proto__:null,parseUrl:No,getAbsoluteURL:lc,getFileExtension:Bo,isCrossOrigin:ra});const uc=function(s,e){const t=new(C().WebVTT.Parser)(C(),C().vttjs,C().WebVTT.StringDecoder()),i=[];t.oncue=function(n){e.addCue(n)},t.onparsingerror=function(n){i.push(n)},t.onflush=function(){e.trigger({type:"loadeddata",target:e})},t.parse(s),i.length>0&&(C().console&&C().console.groupCollapsed&&C().console.groupCollapsed(`Text Track parsing errors for ${e.src}
1`),i.forEach(n=>Ye.error(n)),C().console&&C().console.groupEnd&&C().console.groupEnd()),t.flush()},cc=function(s,e){const t={uri:s},i=ra(s);i&&(t.cors=i);const n="use-credentials"===e.tech_.crossOrigin();n&&(t.withCredentials=n),Ei()(t,ut(this,function(r,a,l){if(r)return Ye.error(r,a);e.loaded_=!0,"function"!=typeof C().WebVTT?e.tech_&&e.tech_.any(["vttjsloaded","vttjserror"],h=>{if("vttjserror"!==h.type)return uc(l,e);Ye.error(`vttjs failed to load, stopping trying to process ${e.src}`)}):uc(l,e)}))};class Qn extends Ro{constructor(e={}){if(!e.tech)throw new Error("A tech was not provided.");const t=rt(e,{kind:Cm[e.kind]||"subtitles",language:e.language||e.srclang||""});let i=oc[t.mode]||"disabled";const n=t.default;("metadata"===t.kind||"chapters"===t.kind)&&(i="hidden"),super(t),this.tech_=t.tech,this.cues_=[],this.activeCues_=[],this.preload_=!1!==this.tech_.preloadTextTracks;const r=new na(this.cues_),a=new na(this.activeCues_);let l=!1;this.timeupdateHandler=ut(this,function(m={}){if(!this.tech_.isDisposed()){if(!this.tech_.isReady_)return void("timeupdate"!==m.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)));this.activeCues=this.activeCues,l&&(this.trigger("cuechange"),l=!1),"timeupdate"!==m.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}}),this.tech_.one("dispose",()=>{this.stopTracking()}),"disabled"!==i&&this.startTracking(),Object.defineProperties(this,{default:{get:()=>n,set(){}},mode:{get:()=>i,set(m){oc[m]&&i!==m&&(i=m,!this.preload_&&"disabled"!==i&&0===this.cues.length&&cc(this.src,this),this.stopTracking(),"disabled"!==i&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?r:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(0===this.cues.length)return a;const m=this.tech_.currentTime(),v=[];for(let y=0,I=this.cues.length;y<I;y++){const P=this.cues[y];P.startTime<=m&&P.endTime>=m&&v.push(P)}if(l=!1,v.length!==this.activeCues_.length)l=!0;else for(let y=0;y<v.length;y++)-1===this.activeCues_.indexOf(v[y])&&(l=!0);return this.activeCues_=v,a.setCues_(this.activeCues_),a},set(){}}}),t.src?(this.src=t.src,this.preload_||(this.loaded_=!0),(this.preload_||"subtitles"!==t.kind&&"captions"!==t.kind)&&cc(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}stopTracking(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}addCue(e){let t=e;if(!("getCueAsHTML"in t)){t=new(C().vttjs.VTTCue)(e.startTime,e.endTime,e.text);for(const n in e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}const i=this.tech_.textTracks();for(let n=0;n<i.length;n++)i[n]!==this&&i[n].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)}toJSON(){return Po_trackToJson(this)}removeCue(e){let t=this.cues_.length;for(;t--;){const i=this.cues_[t];if(i===e||i.originalCue_&&i.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}}Qn.prototype.allowedEvents_={cuechange:"cuechange"};class dc extends Ro{constructor(e={}){const t=rt(e,{kind:Sm[e.kind]||""});super(t);let i=!1;Object.defineProperty(this,"enabled",{get:()=>i,set(n){"boolean"!=typeof n||n===i||(i=n,this.trigger("enabledchange"))}}),t.enabled&&(this.enabled=t.enabled),this.loaded_=!0}}class hc extends Ro{constructor(e={}){const t=rt(e,{kind:xm[e.kind]||""});super(t);let i=!1;Object.defineProperty(this,"selected",{get:()=>i,set(n){"boolean"!=typeof n||n===i||(i=n,this.trigger("selectedchange"))}}),t.selected&&(this.selected=t.selected)}}class $i extends Kt{constructor(e={}){let t;super();const i=new Qn(e);this.kind=i.kind,this.src=i.src,this.srclang=i.language,this.label=i.label,this.default=i.default,Object.defineProperties(this,{readyState:{get:()=>t},track:{get:()=>i}}),t=$i.NONE,i.addEventListener("loadeddata",()=>{t=$i.LOADED,this.trigger({type:"load",target:this})})}}$i.prototype.allowedEvents_={load:"load"},$i.NONE=0,$i.LOADING=1,$i.LOADED=2,$i.ERROR=3;
vendor: 4,490 bytes, line 1
1const li={audio:{ListClass:rc,TrackClass:dc,capitalName:"Audio"},video:{ListClass:ac,TrackClass:hc,capitalName:"Video"},text:{ListClass:Lo,TrackClass:Qn,capitalName:"Text"}};Object.keys(li).forEach(function(s){li[s].getterName=`${s}Tracks`,li[s].privateName=`${s}Tracks_`});const cn={remoteText:{ListClass:Lo,TrackClass:Qn,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:class Tm{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let t=0,i=e.length;t<i;t++)this.addTrackElement_(e[t])}addTrackElement_(e){const t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let t;for(let i=0,n=this.trackElements_.length;i<n;i++)if(e===this.trackElements_[i].track){t=this.trackElements_[i];break}return t}removeTrackElement_(e){for(let t=0,i=this.trackElements_.length;t<i;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}}},TrackClass:$i,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Ut=Object.assign({},li,cn);cn.names=Object.keys(cn),li.names=Object.keys(li),Ut.names=[].concat(cn.names).concat(li.names);class ze extends ${constructor(e={},t=function(){}){e.reportTouchActivity=!1,super(null,e,t),this.onDurationChange_=i=>this.onDurationChange(i),this.trackProgress_=i=>this.trackProgress(i),this.trackCurrentTime_=i=>this.trackCurrentTime(i),this.stopTrackingCurrentTime_=i=>this.stopTrackingCurrentTime(i),this.disposeSourceHandler_=i=>this.disposeSourceHandler(i),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),Ut.names.forEach(i=>{const n=Ut[i];e&&e[n.getterName]&&(this[n.privateName]=e[n.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(i=>{!1===e[`native${i}Tracks`]&&(this[`featuresNative${i}Tracks`]=!1)}),!1===e.nativeCaptions||!1===e.nativeTextTracks?this.featuresNativeTextTracks=!1:(!0===e.nativeCaptions||!0===e.nativeTextTracks)&&(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=!1!==e.preloadTextTracks,this.autoRemoteTextTracks_=new Ut.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||"Unknown Tech")}triggerSourceset(e){this.isReady_||this.one("ready",()=>this.setTimeout(()=>this.triggerSourceset(e),1)),this.trigger({src:e,type:"sourceset"})}manualProgressOn(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(ut(this,function(){const t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()}),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return bi(0,0)}bufferedPercent(){return nc(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(li.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}
vendor: 13,858 bytes, line 1
1clearTracks(e){(e=[].concat(e)).forEach(t=>{const i=this[`${t}Tracks`]()||[];let n=i.length;for(;n--;){const r=i[n];"text"===t&&this.removeRemoteTextTrack(r),i.removeTrack(r)}})}cleanupAutoTextTracks(){const e=this.autoRemoteTextTracks_||[];let t=e.length;for(;t--;)this.removeRemoteTextTrack(e[t])}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return void 0!==e&&(this.error_=new yt(e),this.trigger("error")),this.error_}played(){return this.hasStarted_?bi(0,0):bi()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){li.names.forEach(e=>{const i=()=>{this.trigger(`${e}trackchange`)},n=this[li[e].getterName]();n.addEventListener("removetrack",i),n.addEventListener("addtrack",i),this.on("dispose",()=>{n.removeEventListener("removetrack",i),n.removeEventListener("addtrack",i)})})}addWebVttScript_(){if(!C().WebVTT)if(se().body.contains(this.el())){if(!this.options_["vtt.js"]&&Zs(Fi())&&Object.keys(Fi()).length>0)return void this.trigger("vttjsloaded");const e=se().createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=()=>{this.trigger("vttjsloaded")},e.onerror=()=>{this.trigger("vttjserror")},this.on("dispose",()=>{e.onload=null,e.onerror=null}),C().WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){const e=this.textTracks(),t=this.remoteTextTracks(),i=l=>e.addTrack(l.track),n=l=>e.removeTrack(l.track);t.on("addtrack",i),t.on("removetrack",n),this.addWebVttScript_();const r=()=>this.trigger("texttrackchange"),a=()=>{r();for(let l=0;l<e.length;l++){const h=e[l];h.removeEventListener("cuechange",r),"showing"===h.mode&&h.addEventListener("cuechange",r)}};a(),e.addEventListener("change",a),e.addEventListener("addtrack",a),e.addEventListener("removetrack",a),this.on("dispose",function(){t.off("addtrack",i),t.off("removetrack",n),e.removeEventListener("change",a),e.removeEventListener("addtrack",a),e.removeEventListener("removetrack",a);for(let l=0;l<e.length;l++)e[l].removeEventListener("cuechange",r)})}addTextTrack(e,t,i){if(!e)throw new Error("TextTrack kind is required but was not provided");return function Am(s,e,t,i,n={}){const r=s.textTracks();n.kind=e,t&&(n.label=t),i&&(n.language=i),n.tech=s;const a=new Ut.text.TrackClass(n);return r.addTrack(a),a}(this,e,t,i)}createRemoteTextTrack(e){const t=rt(e,{tech:this});return new cn.remoteTextEl.TrackClass(t)}addRemoteTextTrack(e={},t){const i=this.createRemoteTextTrack(e);return"boolean"!=typeof t&&(t=!1),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!1===t&&this.ready(()=>this.autoRemoteTextTracks_.addTrack(i.track)),i}removeRemoteTextTrack(e){const t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){const t=ai();return!this.isReady_||this.paused()?(this.queuedHanders_.add(t),this.one("playing",()=>{this.queuedHanders_.has(t)&&(this.queuedHanders_.delete(t),e())})):this.requestNamedAnimationFrame(t,e),t}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return""}static canPlayType(e){return""}static canPlaySource(e,t){return ze.canPlayType(e.type)}static isTech(e){return e.prototype instanceof ze||e instanceof ze||e===ze}static registerTech(e,t){if(ze.techs_||(ze.techs_={}),!ze.isTech(t))throw new Error(`Tech ${e} must be a Tech`);if(!ze.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!ze.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Tt(e),ze.techs_[e]=t,ze.techs_[Yn(e)]=t,"Tech"!==e&&ze.defaultTechOrder_.push(e),t}static getTech(e){if(e){if(ze.techs_&&ze.techs_[e])return ze.techs_[e];if(e=Tt(e),C()&&C().videojs&&C().videojs[e])return Ye.warn(`The ${e} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),C().videojs[e]}}}Ut.names.forEach(function(s){const e=Ut[s];ze.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}}),ze.prototype.featuresVolumeControl=!0,ze.prototype.featuresMuteControl=!0,ze.prototype.featuresFullscreenResize=!1,ze.prototype.featuresPlaybackRate=!1,ze.prototype.featuresProgressEvents=!1,ze.prototype.featuresSourceset=!1,ze.prototype.featuresTimeupdateEvents=!1,ze.prototype.featuresNativeTextTracks=!1,ze.prototype.featuresVideoFrameCallback=!1,ze.withSourceHandlers=function(s){s.registerSourceHandler=function(t,i){let n=s.sourceHandlers;n||(n=s.sourceHandlers=[]),void 0===i&&(i=n.length),n.splice(i,0,t)},s.canPlayType=function(t){const i=s.sourceHandlers||[];let n;for(let r=0;r<i.length;r++)if(n=i[r].canPlayType(t),n)return n;return""},s.selectSourceHandler=function(t,i){const n=s.sourceHandlers||[];let r;for(let a=0;a<n.length;a++)if(r=n[a].canHandleSource(t,i),r)return n[a];return null},s.canPlaySource=function(t,i){const n=s.selectSourceHandler(t,i);return n?n.canHandleSource(t,i):""},["seekable","seeking","duration"].forEach(function(t){const i=this[t];"function"==typeof i&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):i.apply(this,arguments)})},s.prototype),s.prototype.setSource=function(t){let i=s.selectSourceHandler(t,this.options_);i||(s.nativeSourceHandler?i=s.nativeSourceHandler:Ye.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),i!==s.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=i.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},s.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},$.registerComponent("Tech",ze),ze.registerTech("Tech",ze),ze.defaultTechOrder_=[];const Es={},aa={},oa={};function Dm(s,e,t){s.setTimeout(()=>As(e,Es[e.type],t,s),1)}function fc(s,e,t,i=null){const n="call"+Tt(t),r=s.reduce(Fo(n),i),a=r===oa,l=a?null:e[t](r);return function jm(s,e,t,i){for(let n=s.length-1;n>=0;n--){const r=s[n];r[e]&&r[e](i,t)}}(s,t,l,a),l}const Om={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Mm={setCurrentTime:1,setMuted:1,setVolume:1},pc={play:1,pause:1};function Fo(s){return(e,t)=>e===oa?oa:t[s]?t[s](e):e}function As(s={},e=[],t,i,n=[],r=!1){const[a,...l]=e;if("string"==typeof a)As(s,Es[a],t,i,n,r);else if(a){const h=function Rm(s,e){const t=aa[s.id()];let i=null;if(null==t)return i=e(s),aa[s.id()]=[[e,i]],i;for(let n=0;n<t.length;n++){const[r,a]=t[n];r===e&&(i=a)}return null===i&&(i=e(s),t.push([e,i])),i}(i,a);if(!h.setSource)return n.push(h),As(s,l,t,i,n,r);h.setSource(Object.assign({},s),function(m,v){if(m)return As(s,l,t,i,n,r);n.push(h),As(v,s.type===v.type?l:Es[v.type],t,i,n,r)})}else l.length?As(s,l,t,i,n,r):r?t(s,n):As(s,Es["*"],t,i,n,!0)}const Nm={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},la=function(s=""){const e=Bo(s);return Nm[e.toLowerCase()]||""},mc=function(s){if(Array.isArray(s)){let e=[];s.forEach(function(t){t=mc(t),Array.isArray(t)?e=e.concat(t):ki(t)&&e.push(t)}),s=e}else s="string"==typeof s&&s.trim()?[gc({src:s})]:ki(s)&&"string"==typeof s.src&&s.src&&s.src.trim()?[gc(s)]:[];return s};function gc(s){if(!s.type){const e=la(s.src);e&&(s.type=e)}return s}const vc=$r?10009:Gr?461:8,dn={codes:{play:415,pause:19,ff:417,rw:412,back:vc},names:{415:"play",19:"pause",417:"ff",412:"rw",[vc]:"back"},isEventKey(s,e){return e=e.toLowerCase(),!(!this.names[s.keyCode]||this.names[s.keyCode]!==e)},getEventName(s){return this.names[s.keyCode]?this.names[s.keyCode]:this.codes[s.code]?this.names[this.codes[s.code]]:null}};class Um extends Kt{constructor(e){super(),this.player_=e,this.focusableComponents=[],this.isListening_=!1,this.isPaused_=!1,this.onKeyDown_=this.onKeyDown_.bind(this),this.lastFocusedComponent_=null}start(){this.isListening_||(this.player_.on("keydown",this.onKeyDown_),this.player_.on("modalKeydown",this.onKeyDown_),this.player_.on("loadedmetadata",()=>{this.focus(this.updateFocusableComponents()[0])}),this.player_.on("modalclose",()=>{this.refocusComponent()}),this.player_.on("focusin",this.handlePlayerFocus_.bind(this)),this.player_.on("focusout",this.handlePlayerBlur_.bind(this)),this.isListening_=!0,this.player_.errorDisplay&&this.player_.errorDisplay.on("aftermodalfill",()=>{this.updateFocusableComponents(),this.focusableComponents.length&&(this.focusableComponents.length>1?this.focusableComponents[1].focus():this.focusableComponents[0].focus())}))}stop(){this.player_.off("keydown",this.onKeyDown_),this.isListening_=!1}onKeyDown_(e){const t=e.originalEvent?e.originalEvent:e;if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(t.key)){if(this.isPaused_)return;t.preventDefault();const i=t.key.substring(5).toLowerCase();this.move(i)}else if(dn.isEventKey(t,"play")||dn.isEventKey(t,"pause")||dn.isEventKey(t,"ff")||dn.isEventKey(t,"rw")){t.preventDefault();const i=dn.getEventName(t);this.performMediaAction_(i)}else dn.isEventKey(t,"Back")&&e.target&&"function"==typeof e.target.closeable&&e.target.closeable()&&(t.preventDefault(),e.target.close())}performMediaAction_(e){if(this.player_)switch(e){case"play":this.player_.paused()&&this.player_.play();break;case"pause":this.player_.paused()||this.player_.pause();break;case"ff":this.userSeek_(this.player_.currentTime()+5);break;case"rw":this.userSeek_(this.player_.currentTime()-5)}}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}pause(){this.isPaused_=!0}resume(){this.isPaused_=!1}handlePlayerBlur_(e){const t=e.relatedTarget;let i=null;const n=this.getCurrentComponent(e.target);t&&(i=!!t.closest(".video-js"),t.classList.contains("vjs-text-track-settings")&&!this.isPaused_&&this.searchForTrackSelect_()),(!e.currentTarget.contains(e.relatedTarget)&&!i||!t)&&(n&&"CloseButton"===n.name()?this.refocusComponent():(this.pause(),n&&n.el()&&(this.lastFocusedComponent_=n)))}handlePlayerFocus_(){this.getCurrentComponent()&&this.getCurrentComponent().getIsFocusable()&&this.resume()}updateFocusableComponents(){const t=[];function i(n){for(const r of n)r.hasOwnProperty("el_")&&r.getIsFocusable()&&r.getIsAvailableToBeFocused(r.el())&&t.push(r),r.hasOwnProperty("children_")&&r.children_.length>0&&i(r.children_)}return this.player_.children_.forEach(n=>{if(n.hasOwnProperty("el_")){if(n.getIsFocusable&&n.getIsAvailableToBeFocused&&n.getIsFocusable()&&n.getIsAvailableToBeFocused(n.el()))return void t.push(n);n.hasOwnProperty("children_")&&n.children_.length>0?i(n.children_):n.hasOwnProperty("items")&&n.items.length>0?i(n.items):this.findSuitableDOMChild(n)&&t.push(n)}if("ErrorDisplay"===n.name_&&n.opened_){const r=n.el_.querySelector(".vjs-errors-ok-button-container");r&&r.querySelectorAll("button").forEach((l,h)=>{t.push({name:()=>"ModalButton"+(h+1),el:()=>l,getPositions:()=>{const m=l.getBoundingClientRect();return{boundingClientRect:{x:m.x,y:m.y,width:m.width,height:m.height,top:m.top,right:m.right,bottom:m.bottom,left:m.left},center:{x:m.left+m.width/2,y:m.top+m.height/2,width:0,height:0,top:m.top+m.height/2,right:m.left+m.width/2,bottom:m.top+m.height/2,left:m.left+m.width/2}}},getIsAvailableToBeFocused:()=>!0,getIsFocusable:m=>!0,focus:()=>l.focus()})})}}),this.focusableComponents=t,this.focusableComponents}findSuitableDOMChild(e){return e.el()?function t(i){if(e.getIsFocusable(i)&&e.getIsAvailableToBeFocused(i))return i;for(let n=0;n<i.children.length;n++){const a=t(i.children[n]);if(a)return a}return null}(e.el()):null}getCurrentComponent(e){this.updateFocusableComponents();const t=e||document.activeElement;if(this.focusableComponents.length)for(const i of this.focusableComponents)if(i.el()===t)return i}add(e){const t=[...this.focusableComponents];e.hasOwnProperty("el_")&&e.getIsFocusable()&&e.getIsAvailableToBeFocused(e.el())&&t.push(e),this.focusableComponents=t,this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents})}remove(e){for(let t=0;t<this.focusableComponents.length;t++)if(this.focusableComponents[t].name()===e.name())return this.focusableComponents.splice(t,1),void this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents})}clear(){this.focusableComponents.length>0&&(this.focusableComponents=[],this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents}))}move(e){const t=this.getCurrentComponent();if(!t)return;const i=t.getPositions(),n=this.focusableComponents.filter(a=>a!==t&&this.isInDirection_(i.boundingClientRect,a.getPositions().boundingClientRect,e)),r=this.findBestCandidate_(i.center,n,e);r?this.focus(r):this.trigger({type:"endOfFocusableComponents",direction:e,focu
vendor: 5,401 bytes, line 1
1sedComponent:t})}findBestCandidate_(e,t,i){let n=1/0,r=null;for(const a of t){const l=a.getPositions().center,h=this.calculateDistance_(e,l,i);h<n&&(n=h,r=a)}return r}isInDirection_(e,t,i){switch(i){case"right":return t.left>=e.right;case"left":return t.right<=e.left;case"down":return t.top>=e.bottom;case"up":return t.bottom<=e.top;default:return!1}}refocusComponent(){if(this.lastFocusedComponent_){this.player_.userActive()||this.player_.userActive(!0),this.updateFocusableComponents();for(let e=0;e<this.focusableComponents.length;e++)if(this.focusableComponents[e].name()===this.lastFocusedComponent_.name())return void this.focus(this.focusableComponents[e])}else this.focus(this.updateFocusableComponents()[0])}focus(e){"object"==typeof e&&(e.getIsAvailableToBeFocused(e.el())?e.focus():this.findSuitableDOMChild(e)&&this.findSuitableDOMChild(e).focus())}calculateDistance_(e,t,i){const n=Math.abs(e.x-t.x),r=Math.abs(e.y-t.y);let a;switch(i){case"right":case"left":a=n+100*r;break;case"up":a=2*r+.5*n;break;case"down":a=5*r+n;break;default:a=n+r}return a}searchForTrackSelect_(){const e=this;for(const t of e.updateFocusableComponents())if("TextTrackSelect"===t.constructor.name){e.focus(t);break}}}$.registerComponent("MediaLoader",class Vm extends ${constructor(e,t,i){if(super(e,rt({createEl:!1},t),i),t.playerOptions.sources&&0!==t.playerOptions.sources.length)e.src(t.playerOptions.sources);else for(let r=0,a=t.playerOptions.techOrder;r<a.length;r++){const l=Tt(a[r]);let h=ze.getTech(l);if(l||(h=$.getComponent(l)),h&&h.isSupported()){e.loadTech_(l);break}}}});class ua extends ${constructor(e,t){super(e,t),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=i=>this.handleMouseOver(i),this.handleMouseOut_=i=>this.handleMouseOut(i),this.handleClick_=i=>this.handleClick(i),this.handleKeyDown_=i=>this.handleKeyDown(i),this.emitTapEvents(),this.enable()}createEl(e="div",t={},i={}){t=Object.assign({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&Ye.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`),i=Object.assign({role:"button"},i),this.tabIndex_=t.tabIndex;const n=Ne(e,t,i);return this.player_.options_.experimentalSvgIcons||n.appendChild(Ne("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(n),n}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=Ne("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}controlText(e,t=this.el()){if(void 0===e)return this.controlText_||"Need Text";const i=this.localize(e);this.controlText_=e,as(this.controlTextEl_,i),!this.nonIconControl&&!this.player_.options_.noUITitleAttributes&&t.setAttribute("title",i)}buildCSSClass(){return`vjs-control vjs-button ${super.buildCSSClass()}`}enable(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),typeof this.tabIndex_<"u"&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}disable(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),typeof this.tabIndex_<"u"&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(e){" "===e.key||"Enter"===e.key?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}$.registerComponent("ClickableComponent",ua);class Uo extends ua{constructor(e,t){super(e,t),this.update(),this.update_=i=>this.update(i),e.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return Ne("div",{className:"vjs-poster"})}crossOrigin(e){if(typeof e>"u")return this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;null===e||"anonymous"===e||"use-credentials"===e?this.$("img")&&(this.$("img").crossOrigin=e):this.player_.log.warn(`crossOrigin must be null,  "anonymous" or "use-credentials", given "${e}"`)}update(e){const t=this.player().poster();this.setSrc(t),t?this.show():this.hide()}setSrc(e){e?(this.$("img")||this.el_.appendChild(Ne("picture",{className:"vjs-poster",tabIndex:-1},{},Ne("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e):this.el_.textContent=""}handleClick(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?Oi(this.player_.play()):this.player_.pause())}}Uo.prototype.crossorigin=Uo.prototype.crossOrigin,$.registerComponent("PosterImage",Uo);const ui="#222",Hm={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',
vendor: 34,860 bytes, line 1
1script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Vo(s,e){let t;if(4===s.length)t=s[1]+s[1]+s[2]+s[2]+s[3]+s[3];else{if(7!==s.length)throw new Error("Invalid color code provided, "+s+"; must be formatted as e.g. #f0e or #f604e2.");t=s.slice(1)}return"rgba("+parseInt(t.slice(0,2),16)+","+parseInt(t.slice(2,4),16)+","+parseInt(t.slice(4,6),16)+","+e+")"}function Mi(s,e,t){try{s.style[e]=t}catch{return}}function bc(s){return s?`${s}px`:""}$.registerComponent("TextTrackDisplay",class qm extends ${constructor(e,t,i){super(e,t,i);const n=a=>this.updateDisplay(a),r=a=>{this.updateDisplayOverlay(),this.updateDisplay(a)};e.on("loadstart",a=>this.toggleDisplay(a)),e.on("useractive",n),e.on("userinactive",n),e.on("texttrackchange",n),e.on("loadedmetadata",a=>{this.updateDisplayOverlay(),this.preselectTrack(a)}),e.ready(ut(this,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)return void this.hide();e.on("fullscreenchange",r),e.on("playerresize",r);const a=C().screen.orientation||C(),l=C().screen.orientation?"change":"orientationchange";a.addEventListener(l,r),e.on("dispose",()=>a.removeEventListener(l,r));const h=this.options_.playerOptions.tracks||[];for(let m=0;m<h.length;m++)this.player_.addRemoteTextTrack(h[m],!0);this.preselectTrack()}))}preselectTrack(){const e={captions:1,subtitles:1},t=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage;let n,r,a;for(let l=0;l<t.length;l++){const h=t[l];i&&i.enabled&&i.language&&i.language===h.language&&h.kind in e?h.kind===i.kind?a=h:a||(a=h):i&&!i.enabled?(a=null,n=null,r=null):h.default&&("descriptions"!==h.kind||n?h.kind in e&&!r&&(r=h):n=h)}a?a.mode="showing":r?r.mode="showing":n&&(n.mode="showing")}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl("div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}clearDisplay(){"function"==typeof C().WebVTT&&C().WebVTT.processCues(C(),[],this.el_)}updateDisplay(){const e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){const a=[];for(let l=0;l<e.length;++l){const h=e[l];"showing"===h.mode&&a.push(h)}return void this.updateForTrack(a)}let i=null,n=null,r=e.length;for(;r--;){const a=e[r];"showing"===a.mode&&("descriptions"===a.kind?i=a:n=a)}if(n?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(n)):i&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(i)),void 0===C().CSS||!C().CSS.supports("inset","10px")){const a=this.el_,l=a.querySelectorAll(".vjs-text-track-cue"),h=this.player_.controlBar.el_.getBoundingClientRect().height,m=this.player_.el_.getBoundingClientRect().height;a.style="",Mi(a,"position","relative"),Mi(a,"height",m-h+"px"),Mi(a,"top","unset"),Mi(a,"bottom",Wr?m+"px":"0px"),l.length>0&&l.forEach(v=>{if(v.style.inset){const y=v.style.inset.split(" ");3===y.length&&Object.assign(v.style,{top:y[0],right:y[1],bottom:y[2],left:"unset"})}})}}updateDisplayOverlay(){if(!this.player_.videoHeight()||void 0===C().CSS||!C().CSS.supports("inset-inline: 10px"))return;const e=this.player_.currentWidth(),t=this.player_.currentHeight(),i=e/t,n=this.player_.videoWidth()/this.player_.videoHeight();let r=0,a=0;Math.abs(i-n)>.1&&(i>n?r=Math.round((e-t*n)/2):a=Math.round((t-e/n)/2)),Mi(this.el_,"insetInline",bc(r)),Mi(this.el_,"insetBlock",bc(a))}updateDisplayState(e){const t=this.player_.textTrackSettings.getValues(),i=e.activeCues;let n=i.length;for(;n--;){const r=i[n];if(!r)continue;const a=r.displayState;if(t.color&&(a.firstChild.style.color=t.color),t.textOpacity&&Mi(a.firstChild,"color",Vo(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(a.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&Mi(a.firstChild,"backgroundColor",Vo(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?Mi(a,"backgroundColor",Vo(t.windowColor,t.windowOpacity)):a.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?a.firstChild.style.textShadow=`2px 2px 3px ${ui}, 2px 2px 4px ${ui}, 2px 2px 5px ${ui}`:"raised"===t.edgeStyle?a.firstChild.style.textShadow=`1px 1px ${ui}, 2px 2px ${ui}, 3px 3px ${ui}`:"depressed"===t.edgeStyle?a.firstChild.style.textShadow=`1px 1px #ccc, 0 1px #ccc, -1px -1px ${ui}, 0 -1px ${ui}`:"uniform"===t.edgeStyle&&(a.firstChild.style.textShadow=`0 0 4px ${ui}, 0 0 4px ${ui}, 0 0 4px ${ui}, 0 0 4px ${ui}`)),t.fontPercent&&1!==t.fontPercent){const l=C().parseFloat(a.style.fontSize);a.style.fontSize=l*t.fontPercent+"px",a.style.height="auto",a.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=Hm[t.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),"function"!=typeof C().WebVTT||e.every(i=>!i.activeCues))return;const t=[];for(let i=0;i<e.length;++i){const n=e[i];for(let r=0;r<n.activeCues.length;++r)t.push(n.activeCues[r])}C().WebVTT.processCues(C(),t,this.el_);for(let i=0;i<e.length;++i){const n=e[i];for(let r=0;r<n.activeCues.length;++r){const a=n.activeCues[r].displayState;Ts(a,"vjs-text-track-cue","vjs-text-track-cue-"+(n.language?n.language:i)),n.language&&rn(a,"lang",n.language)}this.player_.textTrackSettings&&this.updateDisplayState(n)}}}),$.registerComponent("LoadingSpinner",class zm extends ${createEl(){const e=this.player_.isAudio(),t=this.localize(e?"Audio Player":"Video Player"),i=Ne("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[t])}),n=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return n.appendChild(i),n}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}});class Nt extends ua{createEl(e,t={},i={}){const n=Ne("button",t=Object.assign({className:this.buildCSSClass()},t),i=Object.assign({type:"button"},i));return this.player_.options_.experimentalSvgIcons||n.appendChild(Ne("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(n),n}addChild(e,t={}){return Ye.warn(`Adding an actionable (user controllable) child to a Button (${this.constructor.name}) is not supported; use a ClickableComponent instead.`),$.prototype.addChild.call(this,e,t)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(e){" "!==e.key&&"Enter"!==e.key?super.handleKeyDown(e):e.stopPropagation()}}$.registerComponent("Button",Nt);class Tc extends Nt{constructor(e,t){super(e,t),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",i=>this.handleMouseDown(i))}buildCSSClass(){return"vjs-big-play-button"}handleClick(e){const t=this.player_.play();if("tap"===e.type||this.mouseused_&&"clientX"in e&&"clientY"in e)return Oi(t),void(this.player_.tech(!0)&&this.player_.tech(!0).focus());const i=this.player_.getChild("controlBar"),n=i&&i.getChild("playToggle");if(!n)return void this.player_.tech(!0).focus();const r=()=>n.focus();Kn(t)?t.then(r,()=>{}):this.setTimeout(r,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}}Tc.prototype.controlText_="Play Video",$.registerComponent("BigPlayButton",Tc),$.registerComponent("CloseButton",class $m extends Nt{constructor(e,t){super(e,t),this.setIcon("cancel"),this.controlText(t&&t.controlText||this.localize("Close"))}buildCSSClass(){return`vjs-close-button ${super.buildCSSClass()}`}handleClick(e){this.trigger({type:"close",bubbles:!1})}handleKeyDown(e){"Escape"===e.key?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}});class xc extends Nt{constructor(e,t={}){super(e,t),t.replay=void 0===t.replay||t.replay,this.setIcon("play"),this.on(e,"play",i=>this.handlePlay(i)),this.on(e,"pause",i=>this.handlePause(i)),t.replay&&this.on(e,"ended",i=>this.handleEnded(i))}buildCSSClass(){return`vjs-play-control ${super.buildCSSClass()}`}handleClick(e){this.player_.paused()?Oi(this.player_.play()):this.player_.pause()}handleSeeked(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}handlePlay(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}handlePause(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}handleEnded(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",t=>this.handleSeeked(t))}}xc.prototype.controlText_="Play",$.registerComponent("PlayToggle",xc);class hn extends ${constructor(e,t){super(e,t),this.on(e,["timeupdate","ended","seeking"],i=>this.update(i)),this.updateTextNode_()}createEl(){const e=this.buildCSSClass(),t=super.createEl("div",{className:`${e} vjs-time-control vjs-control`}),i=Ne("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)}\xa0`},{role:"presentation"});return t.appendChild(i),this.contentEl_=Ne("span",{className:`${e}-display`},{role:"presentation"}),t.appendChild(this.contentEl_),t}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}update(e){!this.player_.options_.enableSmoothSeeking&&"seeking"===e.type||this.updateContent(e)}updateTextNode_(e=0){e=Ss(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",()=>{if(!this.contentEl_)return;let t=this.textNode_;t&&this.contentEl_.firstChild!==t&&(t=null,Ye.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),this.textNode_=se().createTextNode(this.formattedTime_),this.textNode_&&(t?this.contentEl_.replaceChild(this.textNode_,t):this.contentEl_.appendChild(this.textNode_))}))}updateContent(e){}}hn.prototype.labelText_="Time",hn.prototype.controlText_="Time",$.registerComponent("TimeDisplay",hn);class Ho extends hn{buildCSSClass(){return"vjs-current-time"}updateContent(e){let t;t=this.player_.ended()?this.player_.duration():e&&e.target&&"function"==typeof e.target.pendingSeekTime&&null!==e.target.pendingSeekTime()?e.target.pendingSeekTime():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)}}Ho.prototype.labelText_="Current Time",Ho.prototype.controlText_="Current Time",$.registerComponent("CurrentTimeDisplay",Ho);class qo extends hn{constructor(e,t){super(e,t);const i=n=>this.updateContent(n);this.on(e,"durationchange",i),this.on(e,"loadstart",i),this.on(e,"loadedmetadata",i)}buildCSSClass(){return"vjs-duration"}updateContent(e){const t=this.player_.duration();this.updateTextNode_(t)}}qo.prototype.labelText_="Duration",qo.prototype.controlText_="Duration",$.registerComponent("DurationDisplay",qo),$.registerComponent("TimeDivider",class Gm extends ${createEl(){const e=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),t=super.createEl("div"),i=super.createEl("span",{textContent:"/"});return t.appendChild(i),e.appendChild(t),e}});class zo extends hn{constructor(e,t){super(e,t),this.on(e,"durationchange",i=>this.updateContent(i))}buildCSSClass(){return"vjs-remaining-time"}createEl(){const e=super.createEl();return!1!==this.options_.displayNegative&&e.insertBefore(Ne("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}updateContent(e){if("number"!=typeof this.player_.duration())return;let t;t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t)}}zo.prototype.labelText_="Remaining Time",zo.prototype.controlText_="Remaining Time",$.registerComponent("RemainingTimeDisplay",zo),$.registerComponent("LiveDisplay",class Wm extends ${constructor(e,t){super(e,t),this.updateShowing(),this.on(this.player(),"durationchange",i=>this.updateShowing(i))}createEl(){const e=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Ne("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(Ne("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")}\xa0`})),this.contentEl_.appendChild(se().createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}dispose(){this.contentEl_=null,super.dispose()}updateShowing(e){this.player().duration()===1/0?this.show():this.hide()}});class Sc extends Nt{constructor(e,t){super(e,t),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=i=>this.updateLiveEdgeStatus(i),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){const e=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=Ne("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}updateLiveEdgeStatus(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}}function Jn(s,e,t){return s=Number(s),Math.min(t,Math.max(e,isNaN(s)?e:s))}Sc.prototype.controlText_="Seek to live, currently playing live",$.registerComponent("SeekToLive",Sc);var Xm=Object.freeze({__proto__:null,clamp:Jn});class $o extends ${constructor(e,t){super(e,t),this.handleMouseDown_=i=>this.handleMouseDown(i),this.handleMouseUp_=i=>this.handleMouseUp(i),this.handleKeyDown_=i=>this.handleKeyDown(i),this.handleClick_=i=>this.handleClick(i),this.handleMouseMove_=i=>this.handleMouseMove(i),this.update_=i=>this.update(i),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)}disable(){if(!this.enabled())return;const e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}createEl(e,t={},i={}){return t.className=t.className+" vjs-slider",t=Object.assign({tabIndex:0},t),i=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},i),super.createEl(e,t,i)}handleMouseDown(e){const t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"===e.type&&!Ii&&e.preventDefault(),Nu(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)}handleMouseMove(e){}handleMouseUp(e){const t=this.bar.el_.ownerDocument;Bu(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;const e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",()=>{const t=this.vertical()?"height":"width";this.bar.el().style[t]=(100*e).toFixed(2)+"%"})),e}getProgress(){return Number(Jn(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){const t=Qr(this.el_,e);return this.vertical()?t.y:t.x}handleKeyDown(e){const t=this.options_.playerOptions.spatialNavigation,n=t&&t.horizontalSeek;t&&t.enabled?n&&"ArrowLeft"===e.key||!n&&"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepBack()):n&&"ArrowRight"===e.key||!n&&"ArrowUp"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(this.pendingSeekTime()&&(this.pendingSeekTime(null),this.userSeek_(this.player_.currentTime())),super.handleKeyDown(e)):"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepBack()):"ArrowUp"===e.key||"ArrowRight"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e)}handleClick(e){e.stopPropagation(),e.preventDefault()}vertical(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.addClass(this.vertical_?"vjs-slider-vertical":"vjs-slider-horizontal")}}$.registerComponent("Slider",$o);const Go=(s,e)=>Jn(s/e*100,0,100).toFixed(2)+"%";$.registerComponent("LoadProgressBar",class Ym extends ${constructor(e,t){super(e,t),this.partEls_=[],this.on(e,"progress",i=>this.update(i))}createEl(){const e=super.createEl("div",{className:"vjs-load-progress"}),t=Ne("span",{className:"vjs-control-text"}),i=Ne("span",{textContent:this.localize("Loaded")}),n=se().createTextNode(": ");return this.percentageEl_=Ne("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(t),t.appendChild(i),t.appendChild(n),t.appendChild(this.percentageEl_),e}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(e){this.requestNamedAnimationFrame("LoadProgressBar#update",()=>{const t=this.player_.liveTracker,i=this.player_.buffered(),n=t&&t.isLive()?t.seekableEnd():this.player_.duration(),r=this.player_.bufferedEnd(),a=this.partEls_,l=Go(r,n);this.percent_!==l&&(this.el_.style.width=l,as(this.percentageEl_,l),this.percent_=l);for(let h=0;h<i.length;h++){const m=i.start(h),v=i.end(h);let y=a[h];y||(y=this.el_.appendChild(Ne()),a[h]=y),(y.dataset.start!==m||y.dataset.end!==v)&&(y.dataset.start=m,y.dataset.end=v,y.style.left=Go(m,r),y.style.width=Go(v-m,r))}for(let h=a.length;h>i.length;h--)this.el_.removeChild(a[h-1]);a.length=i.length})}}),$.registerComponent("TimeTooltip",class Km extends ${constructor(e,t){super(e,t),this.update=Pi(ut(this,this.update),30)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(e,t,i){const n=Gn(this.el_),r=an(this.player_.el()),a=e.width*t;if(!r||!n)return;let l=e.left-r.left+a,h=e.width-a+(r.right-e.right);h||(h=e.width-a,l=a);let m=n.width/2;l<m?m+=m-l:h<m&&(m=h),m<0?m=0:m>n.width&&(m=n.width),m=Math.round(m),this.el_.style.right=`-${m}px`,this.write(i)}write(e){as(this.el_,e)}updateTime(e,t,i,n){this.requestNamedAnimationFrame("TimeTooltip#updateTime",()=>{let r;const a=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){const l=this.player_.liveTracker.liveWindow(),h=l-t*l;r=(h<1?"":"-")+Ss(h,l)}else r=Ss(i,a);this.update(e,t,r),n&&n()})}});class Wo extends ${constructor(e,t){super(e,t),this.setIcon("circle"),this.update=Pi(ut(this,this.update),30)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(e,t,i){const n=this.getChild("timeTooltip");if(!n)return;const r=i&&i.target&&"function"==typeof i.target.pendingSeekTime?i.target.pendingSeekTime():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,r)}}Wo.prototype.options_={children:[]},!Lt&&!yi&&Wo.prototype.options_.children.push("timeTooltip"),$.registerComponent("PlayProgressBar",Wo);class Cc extends ${constructor(e,t){super(e,t),this.update=Pi(ut(this,this.update),30)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t){const i=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,i,()=>{this.el_.style.left=e.width*t+"px"})}}Cc.prototype.options_={children:["timeTooltip"]},$.registerComponent("MouseTimeDisplay",Cc);class ca extends $o{constructor(e,t){(t=rt(ca.prototype.options_,t)).children=[...t.children];const i=e.options_.disableSeekWhileScrubbingOnMobile&&(Lt||yi)||e.options_.disableSeekWhileScrubbingOnSTV;(!Lt&&!yi||i)&&t.children.splice(1,0,"mouseTimeDisplay"),super(e,t),this.shouldDisableSeekWhileScrubbing_=i,this.pendingSeekTime_=null,this.setEventHandlers_()}setEventHandlers_(){this.update_=ut(this,this.update),this.update=Pi(this.update_,30),this.on(this.player_,["durationchange","timeupdate"],this.update),this.on(this.player_,["ended"],this.update_),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=e=>this.enableInterval_(e),this.disableIntervalHandler_=e=>this.disableInterval_(e),this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in se()&&"visibilityState"in se()&&this.on(se(),"visibilitychange",this.toggleVisibility_)}toggleVisibility_(e){"hidden"===se().visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(!this.player_.ended()&&!this.player_.paused()&&this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))}disableInterval_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}createEl(){return super.createEl("div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}update(e){if("hidden"===se().visibilityState)return;const t=super.update();return this.requestNamedAnimationFrame("SeekBar#update",()=>{const i=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),n=this.player_.liveTracker;let r=this.player_.duration();n&&n.isLive()&&(r=this.player_.liveTracker.liveCurrentTime()),this.percent_!==t&&(this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.percent_=t),(this.currentTime_!==i||this.duration_!==r)&&(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[Ss(i,r),Ss(r,r)],"{1} of {2}")),this.currentTime_=i,this.duration_=r),this.bar&&this.bar.update(an(this.el()),this.getProgress(),e)}),t}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}pendingSeekTime(e){if(void 0!==e)if(null!==e){const t=this.player_.duration();this.pendingSeekTime_=Math.max(0,Math.min(e,t))}else this.pendingSeekTime_=null;return this.pendingSeekTime_}getPercent(){if(null!==this.pendingSeekTime())return this.pendingSeekTime()/this.player_.duration();const e=this.getCurrentTime_();let t;const i=this.player_.liveTracker;return i&&i.isLive()?(t=(e-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t}handleMouseDown(e){Wn(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.shouldDisableSeekWhileScrubbing_||this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,t=!1){if(!Wn(e)||isNaN(this.player_.duration()))return;let i;!t&&!this.player_.scrubbing()&&this.player_.scrubbing(!0);const n=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(n>=.99)return void r.seekToLiveEdge();const a=r.seekableStart(),l=r.liveCurrentTime();if(i=a+n*r.liveWindow(),i>=l&&(i=l),i<=a&&(i=a+.1),i===1/0)return}else i=n*this.player_.duration(),i===this.player_.duration()&&(i-=.1);this.shouldDisableSeekWhileScrubbing_?this.pendingSeekTime(i):this.userSeek_(i),this.player_.options_.enableSmoothSeeking&&this.update()}enable(){super.enable();const e=this.getChild("mouseTimeDisplay");e&&e.show()}disable(){super.disable();const e=this.getChild("mouseTimeDisplay");e&&e.hide()}handleMouseUp(e){super.handleMouseUp(e),e&&e.stopPropagation(),this.player_.scrubbing(!1),null!==this.pendingSeekTime()&&(this.userSeek_(this.pendingSeekTime()),this.pendingSeekTime(null)),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Oi(this.player_.play()):this.update_()}handlePendingSeek_(e){this.player_.paused()||this.player_.pause();const t=null!==this.pendingSeekTime()?this.pendingSeekTime():this.player_.currentTime();this.pendingSeekTime(t+e),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}stepForward(){this.shouldDisableSeekWhileScrubbing_?this.handlePendingSeek_(this.options().stepSeconds):this.userSeek_(this.player_.currentTime()+this.options().stepSeconds)}stepBack(){this.shouldDisableSeekWhileScrubbing_?this.handlePendingSeek_(-this.options().stepSeconds):this.userSeek_(this.player_.currentTime()-this.options().stepSeconds)}handleAction(e){null!==this.pendingSeekTime()&&(this.userSeek_(this.pendingSeekTime()),this.pendingSeekTime(null)),this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(e){const t=this.player_.liveTracker;if(" "===e.key||"Enter"===e.key)e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if("Home"===e.key)e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if("End"===e.key)e.preventDefault(),e.stopPropagation(),t&&t.isLive()?this.userSeek_(t.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(e.key)){e.preventDefault(),e.stopPropagation();const i=.1*parseInt(e.key,10);t&&t.isLive()?this.userSeek_(t.seekableStart()+t.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else"PageDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-this.options().stepSeconds*this.options().pageMultiplier)):"PageUp"===e.key?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+this.options().stepSeconds*this.options().pageMultiplier)):super.handleKeyDown(e)}dispose(){this.disableInterval_(),this.off(this.player_,["durationchange","timeupdate"],this.update),this.off(this.player_,["ended"],this.update_),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in se()&&"visibilityState"in se()&&this.off(se(),"visibilitychange",this.toggleVisibility_),super.dispose()}}ca.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar",stepSeconds:5,pageMultiplier:12},$.registerComponent("SeekBar",ca);class Ec extends ${constructor(e,t){super(e,t),this.handleMouseMove=Pi(ut(this,this.handleMouseMove),30),this.throttledHandleMouseSeek=Pi(ut(this,this.handleMouseSeek),30),this.handleMouseUpHandler_=i=>this.handleMouseUp(i),this.handleMouseDownHandler_=i=>this.handleMouseDown(i),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){const t=this.getChild("seekBar");if(!t)return;const i=t.getChild("playProgressBar"),n=t.getChild("mouseTimeDisplay");if(!i&&!n)return;const r=t.el(),a=Gn(r);let l=Qr(r,e).x;l=Jn(l,0,1),n&&n.update(a,l),i&&i.update(a,t.getProgress())}handleMouseSeek(e){const t=this.getChild("seekBar");t&&t.handleMouseMove(e)}enabled(){return this.enabled_}disable(){if(this.children().forEach(e=>e.disable&&e.disable()),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,["mousemove","touchmove"],this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){const e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&Oi(this.player_.play())}}enable(){this.children().forEach(e=>e.enable&&e.enable()),!this.enabled()&&(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,["mousemove","touchmove"],this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)}removeListenersAddedOnMousedownAndTouchstart(){const e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)}handleMouseDown(e){const t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}}Ec.prototype.options_={children:["seekBar"]},$.registerComponent("ProgressControl",Ec);class Ac extends Nt{constructor(e,t){super(e,t),this.setIcon("picture-in-picture-enter"),this.on(e,["enterpictureinpicture","leavepictureinpicture"],i=>this.handlePictureInPictureChange(i)),this.on(e,["disablepictureinpicturechanged","loadedmetadata"],i=>this.handlePictureInPictureEnabledChange(i)),this.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],()=>this.handlePictureInPictureAudioModeChange()),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control vjs-hidden ${super.buildCSSClass()}`}handlePictureInPictureAudioModeChange(){"audio"===this.player_.currentType().substring(0,5)||this.player_.audioPosterMode()||this.player_.audioOnlyMode()?(this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()):this.show()}handlePictureInPictureEnabledChange(){se().pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in C()?this.enable():this.disable()}handlePictureInPictureChange(e){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}handleClick(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){"function"==typeof se().exitPictureInPicture&&super.show()}}Ac.prototype.controlText_="Picture-in-Picture",$.registerComponent("PictureInPictureToggle",Ac);class wc extends Nt{constructor(e,t){super(e,t),this.setIcon("fullscreen-enter"),this.on(e,"fullscreenchange",i=>this.handleFullscreenChange(i)),!1===se()[e.fsApi_.fullscreenEnabled]&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(e){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}handleClick(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}wc.prototype.controlText_="Fullscreen",$.registerComponent("FullscreenToggle",wc),$.registerComponent("VolumeLevel",class Jm extends ${createEl(){const e=super.createEl("div",{className:"vjs-volume-level"});return this.setIcon("circle",e),e.appendChild(super.createEl("span",{className:"vjs-control-text"})),e}}),$.registerComponent("VolumeLevelTooltip",class Zm extends ${constructor(e,t){super(e,t),this.update=Pi(ut(this,this.update),30)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(e,t,i,n){if(!i){const r=an(this.el_),a=an(this.player_.el()),l=e.width*t;if(!a||!r)return;const h=e.left-a.left+l,m=e.width-l+(a.right-e.right);let v=r.width/2;h<v?v+=v-h:m<v&&(v=m),v<0?v=0:v>r.width&&(v=r.width),this.el_.style.right=`-${v}px`}this.write(`${n}%`)}write(e){as(this.el_,e)}updateVolume(e,t,i,n,r){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",()=>{this.update(e,t,i,n.toFixed(0)),r&&r()})}});class Dc extends ${constructor(e,t){super(e,t),this.update=Pi(ut(this,this.update),30)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t,i){const n=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,i,n,()=>{i?this.el_.style.bottom=e.height*t+"px":this.el_.style.left=e.width*t+"px"})}}Dc.prototype.options_={children:["volumeLevelTooltip"]},$.registerComponent("MouseVolumeLevelDisplay",Dc);class da extends $o{constructor(e,t){super(e,t),this.on("slideractive",i=>this.updateLastVolume_(i)),this.on(e,"volumechange",i=>this.updateARIAAttributes(i)),e.ready(()=>this.updateARIAAttributes())}createEl(){return super.createEl("div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}handleMouseDown(e){Wn(e)&&super.handleMouseDown(e)}handleMouseMove(e){const t=this.getChild("mouseVolumeLevelDisplay");if(t){const i=this.el(),n=an(i),r=this.vertical();let a=Qr(i,e);a=r?a.y:a.x,a=Jn(a,0,1),t.update(n,a,r)}Wn(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(e){const t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")}volumeAsPercentage_(){return Math.round(100*this.player_.volume())}updateLastVolume_(){const e=this.player_.volume();this.one("sliderinactive",()=>{0===this.player_.volume()&&this.player_.lastVolume_(e)})}}da.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},!Lt&&!yi&&da.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),da.prototype.playerEvent="volumechange",$.registerComponent("
vendor: 4,739 bytes, line 1
1VolumeBar",da);class kc extends ${constructor(e,t={}){t.vertical=t.vertical||!1,(typeof t.volumeBar>"u"||Zs(t.volumeBar))&&(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),super(e,t),function(s,e){e.tech_&&!e.tech_.featuresVolumeControl&&s.addClass("vjs-hidden"),s.on(e,"loadstart",function(){e.tech_.featuresVolumeControl?s.removeClass("vjs-hidden"):s.addClass("vjs-hidden")})}(this,e),this.throttledHandleMouseMove=Pi(ut(this,this.handleMouseMove),30),this.handleMouseUpHandler_=i=>this.handleMouseUp(i),this.on("mousedown",i=>this.handleMouseDown(i)),this.on("touchstart",i=>this.handleMouseDown(i)),this.on("mousemove",i=>this.handleMouseMove(i)),this.on(this.volumeBar,["focus","slideractive"],()=>{this.volumeBar.addClass("vjs-slider-active"),this.addClass("vjs-slider-active"),this.trigger("slideractive")}),this.on(this.volumeBar,["blur","sliderinactive"],()=>{this.volumeBar.removeClass("vjs-slider-active"),this.removeClass("vjs-slider-active"),this.trigger("sliderinactive")})}createEl(){let e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),super.createEl("div",{className:`vjs-volume-control vjs-control ${e}`})}handleMouseDown(e){const t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)}handleMouseMove(e){this.volumeBar.handleMouseMove(e)}}kc.prototype.options_={children:["volumeBar"]},$.registerComponent("VolumeControl",kc);class Ic extends Nt{constructor(e,t){super(e,t),function(s,e){e.tech_&&!e.tech_.featuresMuteControl&&s.addClass("vjs-hidden"),s.on(e,"loadstart",function(){e.tech_.featuresMuteControl?s.removeClass("vjs-hidden"):s.addClass("vjs-hidden")})}(this,e),this.on(e,["loadstart","volumechange"],i=>this.update(i))}buildCSSClass(){return`vjs-mute-control ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.volume(),i=this.player_.lastVolume_();0===t?(this.player_.volume(i<.1?.1:i),this.player_.muted(!1)):this.player_.muted(!this.player_.muted())}update(e){this.updateIcon_(),this.updateControlText_()}updateIcon_(){const e=this.player_.volume();let t=3;this.setIcon("volume-high"),Lt&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?(this.setIcon("volume-mute"),t=0):e<.33?(this.setIcon("volume-low"),t=1):e<.67&&(this.setIcon("volume-medium"),t=2),Yr(this.el_,[0,1,2,3].reduce((i,n)=>i+`${n?" ":""}vjs-vol-${n}`,"")),Ts(this.el_,`vjs-vol-${t}`)}updateControlText_(){const t=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)}}Ic.prototype.controlText_="Mute",$.registerComponent("MuteToggle",Ic);class Pc extends ${constructor(e,t={}){t.inline=!(typeof t.inline<"u")||t.inline,(typeof t.volumeControl>"u"||Zs(t.volumeControl))&&(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),super(e,t),this.handleKeyPressHandler_=i=>this.handleKeyPress(i),this.on(e,["loadstart"],i=>this.volumePanelState_(i)),this.on(this.muteToggle,"keyup",i=>this.handleKeyPress(i)),this.on(this.volumeControl,"keyup",i=>this.handleVolumeControlKeyUp(i)),this.on("keydown",i=>this.handleKeyPress(i)),this.on("mouseover",i=>this.handleMouseOver(i)),this.on("mouseout",i=>this.handleMouseOut(i)),this.on(this.volumeControl,["slideractive"],this.sliderActive_),this.on(this.volumeControl,["sliderinactive"],this.sliderInactive_)}sliderActive_(){this.addClass("vjs-slider-active")}sliderInactive_(){this.removeClass("vjs-slider-active")}volumePanelState_(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")}createEl(){let e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),super.createEl("div",{className:`vjs-volume-panel vjs-control ${e}`})}dispose(){this.handleMouseOut(),super.dispose()}handleVolumeControlKeyUp(e){"Escape"===e.key&&this.muteToggle.focus()}handleMouseOver(e){this.addClass("vjs-hover"),Yt(se(),"keyup",this.handleKeyPressHandler_)}handleMouseOut(e){this.removeClass("vjs-hover"),Rt(se(),"keyup",this.handleKeyPressHandler_)}handleKeyPress(e){"Escape"===e.key&&this.handleMouseOut()}}Pc.prototype.options_={children:["muteToggle","volumeControl"]}
vendor: 4,922 bytes, line 1
1,$.registerComponent("VolumePanel",Pc);class Oc extends Nt{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`forward-${this.skipTime}`),this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipForwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(e){if(isNaN(this.player_.duration()))return;const t=this.player_.currentTime(),i=this.player_.liveTracker,n=i&&i.isLive()?i.seekableEnd():this.player_.duration();let r;r=t+this.skipTime<=n?t+this.skipTime:n,this.player_.currentTime(r)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}Oc.prototype.controlText_="Skip Forward",$.registerComponent("SkipForward",Oc);class Mc extends Nt{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`replay-${this.skipTime}`),this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime.toLocaleString(e.language())])),this.show()):this.hide()}getSkipBackwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.currentTime(),i=this.player_.liveTracker,n=i&&i.isLive()&&i.seekableStart();let r;r=n&&t-this.skipTime<=n?n:t>=this.skipTime?t-this.skipTime:0,this.player_.currentTime(r)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}Mc.prototype.controlText_="Skip Backward",$.registerComponent("SkipBackward",Mc);class jc extends ${constructor(e,t){super(e,t),t&&(this.menuButton_=t.menuButton),this.focusedChild_=-1,this.on("keydown",i=>this.handleKeyDown(i)),this.boundHandleBlur_=i=>this.handleBlur(i),this.boundHandleTapClick_=i=>this.handleTapClick(i)}addEventListenerForItem(e){e instanceof $&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof $&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}removeChild(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),super.removeChild(e)}addItem(e){const t=this.addChild(e);t&&this.addEventListenerForItem(t)}createEl(){this.contentEl_=Ne(this.options_.contentElType||"ul",{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");const t=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),Yt(t,"click",function(i){i.preventDefault(),i.stopImmediatePropagation()}),t}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(e){const t=e.relatedTarget||se().activeElement;if(!this.children().some(i=>i.el()===t)){const i=this.menuButton_;i&&i.buttonPressed_&&t!==i.el().firstChild&&i.unpressButton()}}handleTapClick(e){if(this.menuButton_){this.menuButton_.unpressButton();const t=this.children();if(!Array.isArray(t))return;const i=t.filter(n=>n.el()===e.target)[0];if(!i)return;"CaptionSettingsMenuItem"!==i.name()&&this.menuButton_.focus()}}handleKeyDown(e){"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),e.stopPropagation(),this.stepForward()):("ArrowRight"===e.key||"ArrowUp"===e.key)&&(e.preventDefault(),e.stopPropagation(),this.stepBack())}stepForward(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)}stepBack(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)}focus(e=0){const t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())}}$.registerComponent("Menu",jc);class Xo extends ${constructor(e,t={}){super(e,t),this.menuButton_=new Nt(e,t),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const i=Nt.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+i,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;const n=r=>this.handleClick(r);this.handleMenuKeyUp_=r=>this.handleMenuKeyUp(r),this.on(this.menuButton_,"tap",n),this.on(this.menuButton_,"click",n),this.on(this.menuButton_,"keydown",r=>this.handleKeyDown(r)),this.on(this.menuButton_,"mouseenter",()=>{this.addClass("vjs-hover"),this.menu.show(),Yt(se(),"keyup",this.handleMenuKeyUp_)}
1),this.on("mouseleave",r=>this.handleMouseLeave(r)),this.on("keydown",r=>this.handleSubmenuKeyDown(r))}update(){const e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}createMenu(){const e=new jc(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const t=Ne("li",{className:"vjs-menu-title",textContent:Tt(this.options_.title),tabIndex:-1}),i=new $(this.player_,{el:t});e.addItem(i)}if(this.items=this.createItems(),this.items)for(let t=0;t<this.items.length;t++)e.addItem(this.items[t]);return e}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}setIcon(e){return super.setIcon(e,this.menuButton_.el_)}buildWrapperCSSClass(){let e="vjs-menu-button";return e+=!0===this.options_.inline?"-inline":"-popup",`vjs-menu-button ${e} ${Nt.prototype.buildCSSClass()} ${super.buildCSSClass()}`}buildCSSClass(){let e="vjs-menu-button";return e+=!0===this.options_.inline?"-inline":"-popup",`vjs-menu-button ${e} ${super.buildCSSClass()}`}controlText(e,t=this.menuButton_.el()){return this.menuButton_.controlText(e,t)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(e){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(e){this.removeClass("vjs-hover"),Rt(se(),"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(e){"Escape"===e.key||"Tab"===e.key?(this.buttonPressed_&&this.unpressButton(),"Tab"===!e.key&&(e.preventDefault(),this.menuButton_.focus())):("Up"===e.key||"Down"===e.key&&(!this.player_.options_.playerOptions.spatialNavigation||!this.player_.options_.playerOptions.spatialNavigation.enabled))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))}handleMenuKeyUp(e){("Escape"===e.key||"Tab"===e.key)&&this.removeClass("vjs-hover")}handleSubmenuKeyPress(e){this.handleSubmenuKeyDown(e)}handleSubmenuKeyDown(e){("Escape"===e.key||"Tab"===e.key)&&(this.buttonPressed_&&this.unpressButton(),"Tab"===!e.key&&(e.preventDefault(),this.menuButton_.focus()))}pressButton(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Lt&&Ou())return;this.menu.focus()}}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}$.registerComponent("MenuButton",Xo);class Yo extends Xo{constructor(e,t){const i=t.tracks;if(super(e,t),this.items.length<=1&&this.hide(),!i)return;const n=ut(this,this.update);i.addEventListener("removetrack",n),i.addEventListener("addtrack",n),i.addEventListener("labelchange",n),this.player_.on("ready",n),this.player_.on("dispose",function(){i.removeEventListener("removetrack",n),i.removeEventListener("addtrack",n),i.removeEventListener("labelchange",n)})}}$.registerComponent("TrackButton",Yo);class Zn extends ua{constructor(e,t){super(e,t),this.selectable=t.selectable,this.isSelected_=t.selected||!1,this.multiSelectable=t.multiSelectable,this.selected(this.isSelected_),this.el_.setAttribute("role",this.selectable?this.multiSelectable?"menuitemcheckbox":"menuitemradio":"menuitem")}createEl(e,t,i){this.nonIconControl=!0;const n=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},t),i),r=Ne("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?n.appendChild(r):n.replaceChild(r,n.querySelector(".vjs-icon-placeholder")),n}handleKeyDown(e){["Tab","Escape","ArrowUp","ArrowLeft","ArrowRight","ArrowDown"].includes(e.ke
vendor: 13,705 bytes, line 1
1y)||super.handleKeyDown(e)}handleClick(e){this.selected(!0)}selected(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))}}$.registerComponent("MenuItem",Zn);class er extends Zn{constructor(e,t){const i=t.track,n=e.textTracks();t.label=i.label||i.language||"Unknown",t.selected="showing"===i.mode,super(e,t),this.track=i,this.kinds=(t.kinds||[t.kind||this.track.kind]).filter(Boolean);const r=(...l)=>{this.handleTracksChange.apply(this,l)},a=(...l)=>{this.handleSelectedLanguageChange.apply(this,l)};if(e.on(["loadstart","texttrackchange"],r),n.addEventListener("change",r),n.addEventListener("selectedlanguagechange",a),this.on("dispose",function(){e.off(["loadstart","texttrackchange"],r),n.removeEventListener("change",r),n.removeEventListener("selectedlanguagechange",a)}),void 0===n.onchange){let l;this.on(["tap","click"],function(){if("object"!=typeof C().Event)try{l=new(C().Event)("change")}catch{}l||(l=se().createEvent("Event"),l.initEvent("change",!0,!0)),n.dispatchEvent(l)})}this.handleTracksChange()}handleClick(e){const t=this.track,i=this.player_.textTracks();if(super.handleClick(e),i)for(let n=0;n<i.length;n++){const r=i[n];-1!==this.kinds.indexOf(r.kind)&&(r===t?"showing"!==r.mode&&(r.mode="showing"):"disabled"!==r.mode&&(r.mode="disabled"))}}handleTracksChange(e){const t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)}handleSelectedLanguageChange(e){if("showing"===this.track.mode){const t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}}dispose(){this.track=null,super.dispose()}}$.registerComponent("TextTrackMenuItem",er);class Lc extends er{constructor(e,t){t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.track.label=t.label?t.label:t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,super(e,t)}handleTracksChange(e){const t=this.player().textTracks();let i=!0;for(let n=0,r=t.length;n<r;n++){const a=t[n];if(this.options_.kinds.indexOf(a.kind)>-1&&"showing"===a.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)}handleSelectedLanguageChange(e){const t=this.player().textTracks();let i=!0;for(let n=0,r=t.length;n<r;n++){const a=t[n];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&"showing"===a.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}}$.registerComponent("OffTextTrackMenuItem",Lc);class fn extends Yo{constructor(e,t={}){t.tracks=e.textTracks(),super(e,t)}createItems(e=[],t=er){let i;this.label_&&(i=`${this.label_} off`),e.push(new Lc(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;const n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let r=0;r<n.length;r++){const a=n[r];if(this.kinds_.indexOf(a.kind)>-1){const l=new t(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});l.addClass(`vjs-${a.kind}-menu-item`),e.push(l)}}return e}}$.registerComponent("TextTrackButton",fn);class Rc extends Zn{constructor(e,t){const i=t.track,n=t.cue,r=e.currentTime();t.selectable=!0,t.multiSelectable=!1,t.label=n.text,t.selected=n.startTime<=r&&r<n.endTime,super(e,t),this.track=i,this.cue=n}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}}$.registerComponent("ChaptersTrackMenuItem",Rc);class Ko extends fn{constructor(e,t,i){super(e,t,i),this.setIcon("chapters"),this.selectCurrentItem_=()=>{this.items.forEach(n=>{n.selected(this.track_.activeCues[0]===n.cue)})}}buildCSSClass(){return`vjs-chapters-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-chapters-button ${super.buildWrapperCSSClass()}`}update(e){if(e&&e.track&&"chapters"!==e.track.kind)return;const t=this.findChaptersTrack();t!==this.track_?(this.setTrack(t),super.update()):(!this.items||t&&t.cues&&t.cues.length!==this.items.length)&&super.update()}setTrack(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){const t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";const t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}findChaptersTrack(){const e=this.player_.textTracks()||[];for(let t=e.length-1;t>=0;t--){const i=e[t];if(i.kind===this.kind_)return i}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(Tt(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){const e=[];if(!this.track_)return e;const t=this.track_.cues;if(!t)return e;for(let i=0,n=t.length;i<n;i++){const a=new Rc(this.player_,{track:this.track_,cue:t[i]});e.push(a)}return e}}Ko.prototype.kind_="chapters",Ko.prototype.controlText_="Chapters",$.registerComponent("ChaptersButton",Ko);class Qo extends fn{constructor(e,t,i){super(e,t,i),this.setIcon("audio-description");const n=e.textTracks(),r=ut(this,this.handleTracksChange);n.addEventListener("change",r),this.on("dispose",function(){n.removeEventListener("change",r)})}handleTracksChange(e){const t=this.player().textTracks();let i=!1;for(let n=0,r=t.length;n<r;n++){const a=t[n];if(a.kind!==this.kind_&&"showing"===a.mode){i=!0;break}}i?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}}Qo.prototype.kind_="descriptions",Qo.prototype.controlText_="Descriptions",$.registerComponent("DescriptionsButton",Qo);class Jo extends fn{constructor(e,t,i){super(e,t,i),this.setIcon("subtitles")}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}}Jo.prototype.kind_="subtitles",Jo.prototype.controlText_="Subtitles",$.registerComponent("SubtitlesButton",Jo);class Zo extends er{constructor(e,t){t.track={player:e,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",super(e,t),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+t.kind+" settings dialog")}handleClick(e){this.player().getChild("textTrackSettings").open()}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),super.handleLanguagechange()}}$.registerComponent("CaptionSettingsMenuItem",Zo);class el extends fn{constructor(e,t,i){super(e,t,i),this.setIcon("captions")}buildCSSClass(){return`vjs-captions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-captions-button ${super.buildWrapperCSSClass()}`}createItems(){const e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new Zo(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}}el.prototype.kind_="captions",el.prototype.controlText_="Captions",$.registerComponent("CaptionsButton",el);class Nc extends er{createEl(e,t,i){const n=super.createEl(e,t,i),r=n.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",n):r.appendChild(Ne("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),r.appendChild(Ne("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),n}}$.registerComponent("SubsCapsMenuItem",Nc);class tl extends fn{constructor(e,t={}){super(e,t),this.label_="subtitles",this.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions",this.setIcon("captions")),this.menuButton_.controlText(Tt(this.label_))}buildCSSClass(){return`vjs-subs-caps-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subs-caps-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new Zo(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,Nc),e}}tl.prototype.kinds_=["captions","subtitles"],tl.prototype.controlText_="Subtitles",$.registerComponent("SubsCapsButton",tl);class Bc extends Zn{constructor(e,t){const i=t.track,n=e.audioTracks();t.label=i.label||i.language||"Unknown",t.selected=i.enabled,super(e,t),this.track=i,this.addClass(`vjs-${i.kind}-menu-item`);const r=(...a)=>{this.handleTracksChange.apply(this,a)};n.addEventListener("change",r),this.on("dispose",()=>{n.removeEventListener("change",r)})}createEl(e,t,i){const n=super.createEl(e,t,i),r=n.querySelector(".vjs-menu-item-text");return["main-desc","descriptions"].indexOf(this.options_.track.kind)>=0&&(r.appendChild(Ne("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),r.appendChild(Ne("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),n}handleClick(e){if(super.handleClick(e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){const t=this.player_.audioTracks();for(let i=0;i<t.length;i++){const n=t[i];n!==this.track&&(n.enabled=n===this.track)}}}handleTracksChange(e){this.selected(this.track.enabled)}}$.registerComponent("AudioTrackMenuItem",Bc);class Fc extends Yo{constructor(e,t={}){t.tracks=e.audioTracks(),super(e,t),this.setIcon("audio")}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(e=[]){this.hideThreshold_=1;const t=this.player_.audioTracks();for(let i=0;i<t.length;i++)e.push(new Bc(this.player_,{track:t[i],selectable:!0,multiSelectable:!1}));return e}}Fc.prototype.controlText_="Audio Track",$.registerComponent("AudioTrackButton",Fc);class il extends Zn{constructor(e,t){const i=t.rate,n=parseFloat(i,10);t.label=i,t.selected=n===e.playbackRate(),t.selectable=!0,t.multiSelectable=!1,super(e,t),this.label=i,this.rate=n,this.on(e,"ratechange",r=>this.update(r))}handleClick(e){super.handleClick(),this.player().playbackRate(this.rate)}update(e){this.selected(this.player().playbackRate()===this.rate)}}il.prototype.contentElType="button",$.registerComponent("PlaybackRateMenuItem",il);class Uc extends Xo{constructor(e,t){super(e,t),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",i=>this.updateVisibility(i)),this.on(e,"ratechange",i=>this.updateLabel(i)),this.on(e,"playbackrateschange",i=>this.handlePlaybackRateschange(i))}createEl(){const e=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=Ne("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return`vjs-playback-rate ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-playback-rate ${super.buildWrapperCSSClass()}`}createItems(){const e=this.playbackRates(),t=[];for(let i=e.length-1;i>=0;i--)t.push(new il(this.player(),{rate:e[i]+"x"}));return t}handlePlaybackRateschange(e){this.update()}playbackRates(){const e=this.player();return e.playbackRates&&e.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}updateLabel(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}Uc.prototype.controlText_="Playback Rate",$.registerComponent("PlaybackRateMenuButton",Uc);class Vc extends ${buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(e="div",t={},i={}){return t.className||(t.className=this.buildCSSClass()),super.createEl(e,t,i)}}$.registerComponent("Spacer",Vc),$.registerComponent("CustomControlSpacer",class tg extends Vc{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:"\xa0"})}});class Hc extends ${createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}Hc.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]},$.registerComponent("ControlBar",Hc);class qc extends un{constructor(e,t){super(e,t),this.on(e,"error",i=>{this.open(i)})}buildCSSClass(){return`vjs-error-display ${super.buildCSSClass()}`}content(){const e=this.player().error();return e?this.localize(e.message):""}}qc.prototype.options_=Object.assign({}
vendor: 6,025 bytes, line 1
1,un.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),$.registerComponent("ErrorDisplay",qc);class zc extends ${constructor(e,t={}){super(e,t),this.el_.setAttribute("aria-labelledby",this.selectLabelledbyIds)}createEl(){return this.selectLabelledbyIds=[this.options_.legendId,this.options_.labelId].join(" ").trim(),Ne("select",{id:this.options_.id},{},this.options_.SelectOptions.map(t=>{const i=(this.options_.labelId?this.options_.labelId:`vjs-track-option-${ai()}`)+"-"+t[1].replace(/\W+/g,""),n=Ne("option",{id:i,value:this.localize(t[0]),textContent:this.localize(t[1])});return n.setAttribute("aria-labelledby",`${this.selectLabelledbyIds} ${i}`),n}))}}$.registerComponent("TextTrackSelect",zc);class ws extends ${constructor(e,t={}){super(e,t);const i=Ne("legend",{textContent:this.localize(this.options_.legendText),id:this.options_.legendId});this.el().appendChild(i);const n=this.options_.selects;for(const r of n){const a=this.options_.selectConfigs[r],l=a.className,h=a.id.replace("%s",this.options_.id_);let m=null;const v=`vjs_select_${ai()}`;if("colors"===this.options_.type){m=Ne("span",{className:l});const I=Ne("label",{id:h,className:"vjs-label",textContent:this.localize(a.label)});I.setAttribute("for",v),m.appendChild(I)}const y=new zc(e,{SelectOptions:a.options,legendId:this.options_.legendId,id:v,labelId:h});this.addChild(y),"colors"===this.options_.type&&(m.appendChild(y.el()),this.el().appendChild(m))}}createEl(){return Ne("fieldset",{className:this.options_.className})}}$.registerComponent("TextTrackFieldset",ws);class $c extends ${constructor(e,t={}){super(e,t);const i=this.options_.textTrackComponentid,n=new ws(e,{id_:i,legendId:`captions-text-legend-${i}`,legendText:this.localize("Text"),className:"vjs-fg vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(n);const r=new ws(e,{id_:i,legendId:`captions-background-${i}`,legendText:this.localize("Text Background"),className:"vjs-bg vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(r);const a=new ws(e,{id_:i,legendId:`captions-window-${i}`,legendText:this.localize("Caption Area Background"),className:"vjs-window vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(a)}createEl(){return Ne("div",{className:"vjs-track-settings-colors"})}}$.registerComponent("TextTrackSettingsColors",$c);class Gc extends ${constructor(e,t={}){super(e,t);const i=this.options_.textTrackComponentid,n=new ws(e,{id_:i,legendId:`captions-font-size-${i}`,legendText:"Font Size",className:"vjs-font-percent vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(n);const r=new ws(e,{id_:i,legendId:`captions-edge-style-${i}`,legendText:this.localize("Text Edge Style"),className:"vjs-edge-style vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(r);const a=new ws(e,{id_:i,legendId:`captions-font-family-${i}`,legendText:this.localize("Font Family"),className:"vjs-font-family vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(a)}createEl(){return Ne("div",{className:"vjs-track-settings-font"})}}$.registerComponent("TextTrackSettingsFont",Gc);class Wc extends ${constructor(e,t={}){super(e,t);const i=new Nt(e,{controlText:this.localize("restore all settings to the default values"),className:"vjs-default-button"});i.el().classList.remove("vjs-control","vjs-button"),i.el().textContent=this.localize("Reset"),this.addChild(i);const n=this.localize("Done"),r=new Nt(e,{controlText:n,className:"vjs-done-button"});r.el().classList.remove("vjs-control","vjs-button"),r.el().textContent=n,this.addChild(r)}createEl(){return Ne("div",{className:"vjs-track-settings-controls"})}}$.registerComponent("TrackSettingsControls",Wc);const sl="vjs-text-track-settings",Xc=["#000","Black"],Yc=["#00F","Blue"],Kc=["#0FF","Cyan"],Qc=["#0F0","Green"],Jc=["#F0F","Magenta"],Zc=["#F00","Red"],ed=["#FFF","White"],td=["#FF0","Yellow"],nl=["1","Opaque"],rl=["0.5","Semi-Transparent"],id=["0","Transparent"],us={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Xc,ed,Zc,Qc,Yc,td,Jc,Kc],className:"vjs-bg-color"},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[nl,rl,id],className:"vjs-bg-opacity vjs-opacity"},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[ed,Xc,Zc,Qc,Yc,td,Jc,Kc],className:"vjs-text-color"},edgeStyle:{selector:".vjs-edge-style > select",id:"",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:s=>"1.00"===s?null:Number(s)},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[nl,rl],className:"vjs-text-opacity vjs-opacity"},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color",className:"vjs-window-color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[id,rl,nl],
vendor: 22,930 bytes, line 1
1className:"vjs-window-opacity vjs-opacity"}};function sd(s,e){if(e&&(s=e(s)),s&&"none"!==s)return s}us.windowColor.options=us.backgroundColor.options,$.registerComponent("TextTrackSettings",class ng extends un{constructor(e,t){t.temporary=!1,super(e,t),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.renderModalComponents(e),this.endDialog=Ne("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),void 0===t.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.bindFunctionsToSelectsAndButtons(),this.options_.persistTextTrackSettings&&this.restoreSettings()}renderModalComponents(e){const t=new $c(e,{textTrackComponentid:this.id_,selectConfigs:us,fieldSets:[["color","textOpacity"],["backgroundColor","backgroundOpacity"],["windowColor","windowOpacity"]]});this.addChild(t);const i=new Gc(e,{textTrackComponentid:this.id_,selectConfigs:us,fieldSets:[["fontPercent"],["edgeStyle"],["fontFamily"]]});this.addChild(i);const n=new Wc(e);this.addChild(n)}bindFunctionsToSelectsAndButtons(){this.on(this.$(".vjs-done-button"),["click","tap"],()=>{this.saveSettings(),this.close()}),this.on(this.$(".vjs-default-button"),["click","tap"],()=>{this.setDefaults(),this.updateDisplay()}),Js(us,e=>{this.on(this.$(e.selector),"change",this.updateDisplay)})}dispose(){this.endDialog=null,super.dispose()}label(){return this.localize("Caption Settings Dialog")}description(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}buildCSSClass(){return super.buildCSSClass()+" vjs-text-track-settings"}getValues(){return Cu(us,(e,t,i)=>{const n=function ig(s,e){return sd(s.options[s.options.selectedIndex].value,e)}(this.$(t.selector),t.parser);return void 0!==n&&(e[i]=n),e},{})}setValues(e){Js(us,(t,i)=>{!function sg(s,e,t){if(e)for(let i=0;i<s.options.length;i++)if(sd(s.options[i].value,t)===e){s.selectedIndex=i;break}}(this.$(t.selector),e[i],t.parser)})}setDefaults(){Js(us,e=>{const t=e.hasOwnProperty("default")?e.default:0;this.$(e.selector).selectedIndex=t})}restoreSettings(){let e;try{e=JSON.parse(C().localStorage.getItem(sl))}catch(t){Ye.warn(t)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const e=this.getValues();try{Object.keys(e).length?C().localStorage.setItem(sl,JSON.stringify(e)):C().localStorage.removeItem(sl)}catch(t){Ye.warn(t)}}updateDisplay(){const e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}handleLanguagechange(){this.fill(),this.renderModalComponents(this.player_),this.bindFunctionsToSelectsAndButtons()}}),$.registerComponent("ResizeManager",class rg extends ${constructor(e,t){let i=t.ResizeObserver||C().ResizeObserver;null===t.ResizeObserver&&(i=!1),super(e,rt({createEl:!i,reportTouchActivity:!1},t)),this.ResizeObserver=t.ResizeObserver||C().ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=Yu(()=>{this.resizeHandler()},100,!1,this),i?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(e.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;const r=this.debouncedHandler_;let a=this.unloadListener_=function(){Rt(this,"resize",r),Rt(this,"unload",a),a=null};Yt(this.el_.contentWindow,"unload",a),Yt(this.el_.contentWindow,"resize",r)},this.one("load",this.loadListener_))}createEl(){return super.createEl("iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}resizeHandler(){!this.player_||!this.player_.trigger||this.player_.trigger("playerresize")}dispose(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,super.dispose()}});const ag={trackingThreshold:20,liveTolerance:15};$.registerComponent("LiveTracker",class og extends ${constructor(e,t){super(e,rt(ag,t,{createEl:!1})),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=n=>this.handlePlay(n),this.handleFirstTimeupdate_=n=>this.handleFirstTimeupdate(n),this.handleSeeked_=n=>this.handleSeeked(n),this.seekToLiveEdge_=n=>this.seekToLiveEdge(n),this.reset_(),this.on(this.player_,"durationchange",n=>this.handleDurationchange(n)),this.on(this.player_,"canplay",()=>this.toggleTracking())}trackLive_(){const e=this.player_.seekable();if(!e||!e.length)return;const t=Number(C().performance.now().toFixed(4)),i=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+i;const n=this.liveCurrentTime(),r=this.player_.currentTime();let a=this.player_.paused()||this.seekedBehindLive_||Math.abs(n-r)>this.options_.liveTolerance;(!this.timeupdateSeen_||n===1/0)&&(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}handleDurationchange(){this.toggleTracking()}toggleTracking(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())}startTracking(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}handleSeeked(){const e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}reset_(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}seekableEnd(){const e=this.player_.seekable(),t=[];let i=e?e.length:0;for(;i--;)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0}seekableStart(){const e=this.player_.seekable(),t=[];let i=e?e.length:0;for(;i--;)t.push(e.start(i));return t.length?t.sort()[0]:0}liveWindow(){const e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){const e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return"number"==typeof this.trackingInterval_}seekToLiveEdge(){this.seekedBehindLive_=!1,!this.atLiveEdge()&&(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}}),$.registerComponent("TitleBar",class lg extends ${constructor(e,t){super(e,t),this.on("statechanged",i=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:Ne("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${ai()}`}),description:Ne("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${ai()}`})},Ne("div",{className:"vjs-title-bar"},{},Eu(this.els))}updateDom_(){const e=this.player_.tech_,t=e&&e.el_,i={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(n=>{const r=this.state[n],a=this.els[n],l=i[n];Jr(a),r&&as(a,r),t&&(t.removeAttribute(l),r&&t.setAttribute(l,a.id))}),this.state.title||this.state.description?this.show():this.hide()}update(e){this.setState(e)}dispose(){const e=this.player_.tech_,t=e&&e.el_;t&&(t.removeAttribute("aria-labelledby"),t.removeAttribute("aria-describedby")),super.dispose(),this.els=null}});const ug={initialDisplay:4e3,position:[],takeFocus:!1};$.registerComponent("TransientButton",class cg extends Nt{constructor(e,t){super(e,t=rt(ug,t)),this.controlText(t.controlText),this.hide(),this.on(this.player_,["useractive","userinactive"],i=>{this.removeClass("force-display")})}buildCSSClass(){return`vjs-transient-button focus-visible ${this.options_.position.map(e=>`vjs-${e}`).join(" ")}`}createEl(){const e=Ne("button",{},{type:"button",class:this.buildCSSClass()},Ne("span"));return this.controlTextEl_=e.querySelector("span"),e}show(){super.show(),this.addClass("force-display"),this.options_.takeFocus&&this.el().focus({preventScroll:!0}),this.forceDisplayTimeout=this.player_.setTimeout(()=>{this.removeClass("force-display")},this.options_.initialDisplay)}hide(){this.removeClass("force-display"),super.hide()}dispose(){this.player_.clearTimeout(this.forceDisplayTimeout),super.dispose()}});const al=s=>{const e=s.el();if(e.hasAttribute("src"))return s.triggerSourceset(e.src),!0;const t=s.$$("source"),i=[];let n="";if(!t.length)return!1;for(let r=0;r<t.length;r++){const a=t[r].src;a&&-1===i.indexOf(a)&&i.push(a)}return!!i.length&&(1===i.length&&(n=i[0]),s.triggerSourceset(n),!0)},dg=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(s){const e=se().createElement(this.nodeName.toLowerCase());e.innerHTML=s;const t=se().createDocumentFragment();for(;e.childNodes.length;)t.appendChild(e.childNodes[0]);return this.innerText="",C().Element.prototype.appendChild.call(this,t),this.innerHTML}}),nd=(s,e)=>{let t={};for(let i=0;i<s.length&&(t=Object.getOwnPropertyDescriptor(s[i],e),!(t&&t.set&&t.get));i++);return t.enumerable=!0,t.configurable=!0,t},rd=function(s){const e=s.el();if(e.resetSourceWatch_)return;const t={},i=(s=>nd([s.el(),C().HTMLMediaElement.prototype,C().Element.prototype,dg],"innerHTML"))(s),n=r=>(...a)=>{const l=r.apply(e,a);return al(s),l};["append","appendChild","insertAdjacentHTML"].forEach(r=>{e[r]&&(t[r]=e[r],e[r]=n(t[r]))}),Object.defineProperty(e,"innerHTML",rt(i,{set:n(i.set)})),e.resetSourceWatch_=()=>{e.resetSourceWatch_=null,Object.keys(t).forEach(r=>{e[r]=t[r]}),Object.defineProperty(e,"innerHTML",i)},s.one("sourceset",e.resetSourceWatch_)},fg=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?lc(C().Element.prototype.getAttribute.call(this,"src")):""},set(s){return C().Element.prototype.setAttribute.call(this,"src",s),s}});class Ee extends ze{constructor(e,t){super(e,t);const i=e.source;let n=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&"VIDEO"===this.el_.tagName,i&&(this.el_.currentSrc!==i.src||e.tag&&3===e.tag.initNetworkState_)?this.setSource(i):this.handleLateInit_(this.el_),e.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){const r=this.el_.childNodes;let a=r.length;const l=[];for(;a--;){const h=r[a];"track"===h.nodeName.toLowerCase()&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(h),this.remoteTextTracks().addTrack(h.track),this.textTracks().addTrack(h.track),!n&&!this.el_.hasAttribute("crossorigin")&&ra(h.src)&&(n=!0)):l.push(h))}for(let h=0;h<l.length;h++)this.el_.removeChild(l[h])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&n&&Ye.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),this.restoreMetadataTracksInIOSNativePlayer_(),(zn||zr)&&!0===e.nativeControlsForTouch&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),Ee.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){!function(s){if(!s.featuresSourceset)return;const e=s.el();if(e.resetSourceset_)return;const t=(s=>nd([s.el(),C().HTMLMediaElement.prototype,fg],"src"))(s),i=e.setAttribute,n=e.load;Object.defineProperty(e,"src",rt(t,{set:r=>{const a=t.set.call(e,r);return s.triggerSourceset(e.src),a}})),e.setAttribute=(r,a)=>{const l=i.call(e,r,a);return/src/i.test(r)&&s.triggerSourceset(e.src),l},e.load=()=>{const r=n.call(e);return al(s)||(s.triggerSourceset(""),rd(s)),r},e.currentSrc?s.triggerSourceset(e.currentSrc):al(s)||rd(s),e.resetSourceset_=()=>{e.resetSourceset_=null,e.load=n,e.setAttribute=i,Object.defineProperty(e,"src",t),e.resetSourceWatch_&&e.resetSourceWatch_()}}(this)}restoreMetadataTracksInIOSNativePlayer_(){const e=this.textTracks();let t;const i=()=>{t=[];for(let r=0;r<e.length;r++){const a=e[r];"metadata"===a.kind&&t.push({track:a,storedMode:a.mode})}};i(),e.addEventListener("change",i),this.on("dispose",()=>e.removeEventListener("change",i));const n=()=>{for(let r=0;r<t.length;r++){const a=t[r];"disabled"===a.track.mode&&a.track.mode!==a.storedMode&&(a.track.mode=a.storedMode)}e.removeEventListener("change",n)};this.on("webkitbeginfullscreen",()=>{e.removeEventListener("change",i),e.removeEventListener("change",n),e.addEventListener("change",n)}),this.on("webkitendfullscreen",()=>{e.removeEventListener("change",i),e.addEventListener("change",i),e.removeEventListener("change",n)})}overrideNative_(e,t){if(t!==this[`featuresNative${e}Tracks`])return;const i=e.toLowerCase();this[`${i}TracksListeners_`]&&Object.keys(this[`${i}TracksListeners_`]).forEach(n=>{this.el()[`${i}Tracks`].removeEventListener(n,this[`${i}TracksListeners_`][n])}),this[`featuresNative${e}Tracks`]=!t,this[`${i}TracksListeners_`]=null,this.proxyNativeTracksForType_(i)}overrideNativeAudioTracks(e){this.overrideNative_("Audio",e)}overrideNativeVideoTracks(e){this.overrideNative_("Video",e)}proxyNativeTracksForType_(e){const t=li[e],i=this.el()[t.getterName],n=this[t.getterName]();if(!this[`featuresNative${t.capitalName}Tracks`]||!i||!i.addEventListener)return;const r={change:l=>{const h={type:"change",target:n,currentTarget:n,srcElement:n};n.trigger(h),"text"===e&&this[cn.remoteText.getterName]().trigger(h)},addtrack(l){n.addTrack(l.track)},removetrack(l){n.removeTrack(l.track)}},a=function(){const l=[];for(let h=0;h<n.length;h++){let m=!1;for(let v=0;v<i.length;v++)if(i[v]===n[h]){m=!0;break}m||l.push(n[h])}for(;l.length;)n.removeTrack(l.shift())};this[t.getterName+"Listeners_"]=r,Object.keys(r).forEach(l=>{const h=r[l];i.addEventListener(l,h),this.on("dispose",m=>i.removeEventListener(l,h))}),this.on("loadstart",a),this.on("dispose",l=>this.off("loadstart",a))}proxyNativeTracks_(){li.names.forEach(e=>{this.proxyNativeTracksForType_(e)})}createEl(){let e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){const i=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(i,e),Ee.disposeMediaElement(e),e=i}else{e=se().createElement("video");const n=rt({},this.options_.tag&&os(this.options_.tag));(!zn||!0!==this.options_.nativeControlsForTouch)&&delete n.controls,Lu(e,Object.assign(n,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&rn(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);const t=["loop","muted","playsinline","autoplay"];for(let i=0;i<t.length;i++){const n=t[i],r=this.options_[n];typeof r<"u"&&(r?rn(e,n,n):Kr(e,n),e[n]=r)}return e}handleLateInit_(e){if(0===e.networkState||3===e.networkState)return;if(0===e.readyState){let i=!1;const n=function(){i=!0};this.on("loadstart",n);const r=function(){i||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",r),i||this.trigger("loadstart")})}const t=["loadstart"];t.push("loadedmetadata"),e.readyState>=2&&t.push("loadeddata"),e.readyState>=3&&t.push("canplay"),e.readyState>=4&&t.push("canplaythrough"),this.ready(function(){t.forEach(function(i){this.trigger(i)},this)})}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&Xr?this.el_.fastSeek(e):this.el_.currentTime=e}catch(t){Ye(t,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&yi&&Ii&&0===this.el_.currentTime){const e=()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger("durationchange"),this.off("timeupdate",e))};return this.on("timeupdate",e),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}proxyWebkitFullscreen_(){if(!("webkitDisplayingFullscreen"in this.el_))return;const e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},t=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",t),this.on("dispose",()=>{this.off("webkitbeginfullscreen",t),this.off("webkitendfullscreen",e)})}supportsFullScreen(){return"function"==typeof this.el_.webkitEnterFullScreen}enterFullScreen(){const e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Oi(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},0);else try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}}exitFullScreen(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):super.requestVideoFrameCallback(e)}cancelVideoFrameCallback(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):super.cancelVideoFrameCallback(e)}src(e){if(void 0===e)return this.el_.src;this.setSrc(e)}addSourceElement(e,t){if(!e)return Ye.error("Invalid source URL."),!1;const i={src:e};t&&(i.type=t);const n=Ne("source",{},i);return this.el_.appendChild(n),!0}removeSourceElement(e){if(!e)return Ye.error("Source URL is required to remove the source element."),!1;const t=this.el_.querySelectorAll("source");for(const i of t)if(i.src===e)return this.el_.removeChild(i),!0;return Ye.warn(`No matching source element found with src: ${e}`),!1}reset(){Ee.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(e){this.el_.controls=!!e}addTextTrack(e,t,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,i):super.addTextTrack(e,t,i)}createRemoteTextTrack(e){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(e);const t=se().createElement("track");return e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t}addRemoteTextTrack(e,t){const i=super.addRemoteTextTrack(e,t);return this.featuresNativeTextTracks&&this.el().appendChild(i),i}removeRemoteTextTrack(e){if(super.removeRemoteTextTrack(e),this.featuresNativeTextTracks){const t=this.$$("track");let i=t.length;for(;i--;)(e===t[i]||e===t[i].track)&&this.el().removeChild(t[i])}}getVideoPlaybackQuality(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();const e={};return typeof this.el().webkitDroppedFrameCount<"u"&&typeof this.el().webkitDecodedFrameCount<"u"&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),C().performance&&(e.creationTime=C().performance.now()),e}}Fr(Ee,"TEST_VID",function(){if(!sn())return;const s=se().createElement("video"),e=se().createElement("track");return e.kind="captions",e.srclang="en",e.label="English",s.appendChild(e),s}),Ee.isSupported=function(){try{Ee.TEST_VID.volume=.5}catch{return!1}return!(!Ee.TEST_VID||!Ee.TEST_VID.canPlayType)},Ee.canPlayType=function(s){return Ee.TEST_VID.canPlayType(s)},Ee.canPlaySource=function(s,e){return Ee.canPlayType(s.type)},Ee.canControlVolume=function(){try{const s=Ee.TEST_VID.volume;Ee.TEST_VID.volume=s/2+.1;const e=s!==Ee.TEST_VID.volume;return e&&Lt?(C().setTimeout(()=>{Ee&&Ee.prototype&&(Ee.prototype.featuresVolumeControl=s!==Ee.TEST_VID.volume)}),!1):e}catch{return!1}},Ee.canMuteVolume=function(){try{const s=Ee.TEST_VID.muted;return Ee.TEST_VID.muted=!s,Ee.TEST_VID.muted?rn(Ee.TEST_VID,"muted","muted"):Kr(Ee.TEST_VID,"muted"),s!==Ee.TEST_VID.muted}catch{return!1}},Ee.canControlPlaybackRate=function(){if(yi&&Ii&&Ur<58)return!1;try{const s=Ee.TEST_VID.playbackRate;return Ee.TEST_VID.playbackRate=s/2+.1,s!==Ee.TEST_VID.playbackRate}catch{return!1}},Ee.canOverrideAttributes=function(){try{const s=()=>{};Object.defineProperty(se().createElement("video"),"src",{get:s,set:s}),Object.defineProperty(se().createElement("audio"),"src",{get:s,set:s}),Object.defineProperty(se().createElement("video"),"innerHTML",{get:s,set:s}),Object.defineProperty(se().createElement("audio"),"innerHTML",{get:s,set:s})}catch{return!1}return!0},Ee.supportsNativeTextTracks=function(){return Xr||Lt&&Ii},Ee.supportsNativeVideoTracks=function(){return!(!Ee.TEST_VID||!Ee.TEST_VID.videoTracks)},Ee.supportsNativeAudioTracks=function(){return!(!Ee.TEST_VID||!Ee.TEST_VID.audioTracks)},Ee.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEac
vendor: 4,117 bytes, line 1
1h(function([s,e]){Fr(Ee.prototype,s,()=>Ee[e](),!0)}),Ee.prototype.featuresVolumeControl=Ee.canControlVolume(),Ee.prototype.movingMediaElementInDOM=!Lt,Ee.prototype.featuresFullscreenResize=!0,Ee.prototype.featuresProgressEvents=!0,Ee.prototype.featuresTimeupdateEvents=!0,Ee.prototype.featuresVideoFrameCallback=!(!Ee.TEST_VID||!Ee.TEST_VID.requestVideoFrameCallback),Ee.disposeMediaElement=function(s){if(s){for(s.parentNode&&s.parentNode.removeChild(s);s.hasChildNodes();)s.removeChild(s.firstChild);s.removeAttribute("src"),"function"==typeof s.load&&function(){try{s.load()}catch{}}()}},Ee.resetMediaElement=function(s){if(!s)return;const e=s.querySelectorAll("source");let t=e.length;for(;t--;)s.removeChild(e[t]);s.removeAttribute("src"),"function"==typeof s.load&&function(){try{s.load()}catch{}}()},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(s){Ee.prototype[s]=function(){return this.el_[s]||this.el_.hasAttribute(s)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(s){Ee.prototype["set"+Tt(s)]=function(e){this.el_[s]=e,e?this.el_.setAttribute(s,s):this.el_.removeAttribute(s)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(s){Ee.prototype[s]=function(){return this.el_[s]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(s){Ee.prototype["set"+Tt(s)]=function(e){this.el_[s]=e}}),["pause","load","play"].forEach(function(s){Ee.prototype[s]=function(){return this.el_[s]()}}),ze.withSourceHandlers(Ee),Ee.nativeSourceHandler={},Ee.nativeSourceHandler.canPlayType=function(s){try{return Ee.TEST_VID.canPlayType(s)}catch{return""}},Ee.nativeSourceHandler.canHandleSource=function(s,e){if(s.type)return Ee.nativeSourceHandler.canPlayType(s.type);if(s.src){const t=Bo(s.src);return Ee.nativeSourceHandler.canPlayType(`video/${t}`)}return""},Ee.nativeSourceHandler.handleSource=function(s,e,t){e.setSrc(s.src)},Ee.nativeSourceHandler.dispose=function(){},Ee.registerSourceHandler(Ee.nativeSourceHandler),ze.registerTech("Html5",Ee);const ad=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],ol={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},ll=["tiny","xsmall","small","medium","large","xlarge","huge"],ha={};ll.forEach(s=>{const e="x"===s.charAt(0)?`x-${s.substring(1)}`:s;ha[s]=`vjs-layout-${e}`});const gg={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class et extends ${constructor(e,t,i){if(e.id=e.id||t.id||`vjs_video_${ai()}`,(t=Object.assign(et.getTagSettings(e),t)).initChildren=!1,t.createEl=!1,t.evented=!1,t.reportTouchActivity=!1,!t.language){const a=e.closest("[lang]");a&&(t.language=a.getAttribute("lang"))}if(super(null,t,i),this.boundDocumentFullscreenChange_=a=>this.documentFullscreenChange_(a),this.boundFullWindowOnEscKey_=a=>this.fullWindowOnEscKey(a),this.boundUpdateStyleEl_=a=>this.updateStyleEl_(a),this.boundApplyInitTime_=a=>this.applyInitTime_(a),this.boundUpdateCurrentBreakpoint_=a=>this.updateCurrentBreakpoint_(a),this.boundHandleTechClick_=a=>this.handleTechClick_(a),this.boundHandleTechDoubleClick_=a=>this.handleTechDoubleClick_(a),this.boundHandleTechTouchStart_=a=>this.handleTechTouchStart_(a),this.boundHandleTechTouchMove_=a=>this.handleTechTouchMove_(a),this.boundHandleTechTouchEnd_=a=>this.handleTechTouchEnd_(a),this.boundHandleTechTap_=a=>this.handleTechTap_(a),this.boundUpdatePlayerHeightOnAudioOnlyMode_=a=>this.updatePlayerHeightOnAudioOnlyMode_(a),this.isFullscreen_=!1,this.log=xu(this.id_),this.fsApi_=Nr,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={controlBarHeight:null,playerHe
vendor: 1,498 bytes, line 1
1ight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(this.tag=e,this.tagAttributes=e&&os(e),this.language(this.options_.language),t.languages){const a={};Object.getOwnPropertyNames(t.languages).forEach(function(l){a[l.toLowerCase()]=t.languages[l]}),this.languages_=a}else this.languages_=et.prototype.options_.languages;this.resetCache_(),this.poster_=t.poster||"",this.controls_=!!t.controls,e.controls=!1,e.removeAttribute("controls"),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],e.hasAttribute("autoplay")?this.autoplay(!0):this.autoplay(this.options_.autoplay),t.plugins&&Object.keys(t.plugins).forEach(a=>{if("function"!=typeof this[a])throw new Error(`plugin "${a}" does not exist`)}),this.scrubbing_=!1,this.el_=this.createEl(),wo(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(Yt(se(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const n=rt(this.options_);if(t.plugins&&Object.keys(t.plugins).forEach(a=>{this[a](t.plugins[a])}),t.debug&&this.debug(!0),this.options_.playerOptions=n,this.middleware_=[],this.playbackRates(t.playbackRates),t.experimentalSvgIcons){const l=(new(C().DOMParser)
vendor: 17,786 bytes, line 1
1).parseFromString('<svg xmlns="http://www.w3.org/2000/svg">\n  <defs>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-play">\n      <path d="M16 10v28l22-14z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-pause">\n      <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-audio">\n      <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-captions">\n      <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">\n      <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">\n      <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">\n      <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">\n      <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">\n      <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">\n      <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">\n      <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">\n      <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">\n      <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>\n    </symbol>\n    <symbol viewBox="0 0 24 24" id="vjs-icon-hd">\n      <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">\n      <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>\n    </symbol>\n    <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">\n      <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">\n      <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">\n      <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">\n      <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-share">\n      <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-cog">\n      <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-square">\n      <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-circle">\n      <circle cx="24" cy="24" r="20"></circle>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">\n      <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">\n      <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">\n      <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-replay">\n      <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">\n      <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">\n      <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">\n      <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">\n      <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">\n      <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">\n      <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">\n      <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>\n    </symbol>\n    <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">\n      <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">\n      <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">\n      <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">\n      <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-cast">\n      <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">\n      <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>\n    </symbol>\n    <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">\n      <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>\n      <path fill="none" d="M-1-3h24v24H-1z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">\n      <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">\n      <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1200 1227" id="vjs-icon-twitter">\n      <path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"/>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">\n      <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">\n      <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>\n    </symbol>\n  </defs>\n</svg>',"image/svg+xml");if(
vendor: 1,974 bytes, line 1
1l.querySelector("parsererror"))Ye.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{const m=l.documentElement;m.style.display="none",this.el_.appendChild(m),this.addClass("vjs-svg-icons-enabled")}}this.initChildren(),this.isAudio("audio"===e.nodeName.toLowerCase()),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label",this.localize("Audio Player")):this.el_.setAttribute("aria-label",this.localize("Video Player")),this.isAudio()&&this.addClass("vjs-audio"),t.spatialNavigation&&t.spatialNavigation.enabled&&(this.spatialNavigation=new Um(this),this.addClass("vjs-spatial-navigation-enabled")),zn&&this.addClass("vjs-touch-enabled"),Lt||this.addClass("vjs-workinghover"),et.players[this.id_]=this;const r=po.split(".")[0];this.addClass(`vjs-v${r}`),this.userActive(!0),this.reportUserActivity(),this.one("play",a=>this.listenForUserActivity_(a)),this.on("keydown",a=>this.handleKeyDown(a)),this.on("languagechange",a=>this.handleLanguagechange(a)),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on("ready",()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)})}dispose(){this.trigger("dispose"),this.off("dispose"),Rt(se(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Rt(se(),"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),et.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),function Lm(s){aa.hasOwnProperty(s.id())&&delete aa[s.id()]}
vendor: 4,245 bytes, line 1
1(this),Ut.names.forEach(e=>{const i=this[Ut[e].getterName]();i&&i.off&&i.off()}),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let t,e=this.tag,i=this.playerElIngest_=e.parentNode&&e.parentNode.hasAttribute&&e.parentNode.hasAttribute("data-vjs-player");const n="video-js"===this.tag.tagName.toLowerCase();i?t=this.el_=e.parentNode:n||(t=this.el_=super.createEl("div"));const r=os(e);if(n){for(t=this.el_=e,e=this.tag=se().createElement("video");t.children.length;)e.appendChild(t.firstChild);$n(t,"video-js")||Ts(t,"video-js"),t.appendChild(e),i=this.playerElIngest_=t,Object.keys(t).forEach(h=>{try{e[h]=t[h]}catch{}})}e.setAttribute("tabindex","-1"),r.tabindex="-1",Ii&&Hr&&(e.setAttribute("role","application"),r.role="application"),e.removeAttribute("width"),e.removeAttribute("height"),"width"in r&&delete r.width,"height"in r&&delete r.height,Object.getOwnPropertyNames(r).forEach(function(h){n&&"class"===h||t.setAttribute(h,r[h]),n&&e.setAttribute(h,r[h])}),e.playerId=e.id,e.id+="_html5_api",e.className="vjs-tech",e.player=t.player=this,this.addClass("vjs-paused");const a=["IS_SMART_TV","IS_TIZEN","IS_WEBOS","IS_ANDROID","IS_IPAD","IS_IPHONE","IS_CHROMECAST_RECEIVER"].filter(h=>Iu[h]).map(h=>"vjs-device-"+h.substring(3).toLowerCase().replace(/\_/g,"-"));if(this.addClass(...a),!0!==C().VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Gu("vjs-styles-dimensions");const h=ls(".vjs-styles-defaults"),m=ls("head");m.insertBefore(this.styleEl_,h?h.nextSibling:m.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);const l=e.getElementsByTagName("a");for(let h=0;h<l.length;h++){const m=l.item(h);Ts(m,"vjs-hidden"),m.setAttribute("hidden","hidden")}return e.initNetworkState_=e.networkState,e.parentNode&&!i&&e.parentNode.insertBefore(t,e),_o(e,t),this.children_.unshift(e),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=t,t}crossOrigin(e){if(typeof e>"u")return this.techGet_("crossOrigin");null===e||"anonymous"===e||"use-credentials"===e?(this.techCall_("setCrossOrigin",e),this.posterImage&&this.posterImage.crossOrigin(e)):Ye.warn(`crossOrigin must be null,  "anonymous" or "use-credentials", given "${e}"`)}width(e){return this.dimension("width",e)}height(e){return this.dimension("height",e)}dimension(e,t){const i=e+"_";if(void 0===t)return this[i]||0;if(""===t||"auto"===t)return this[i]=void 0,void this.updateStyleEl_();const n=parseFloat(t);isNaN(n)?Ye.error(`Improper value "${t}" supplied for for ${e}`):(this[i]=n,this.updateStyleEl_())}fluid(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,zi(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),((s,e)=>{zi(s)?e():(s.eventedCallbacks||(s.eventedCallbacks=[]),s.eventedCallbacks.push(e))})(this,()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()}fill(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}aspectRatio(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()}updateStyleEl_(){if(!0===C().VIDEOJS_NO_DYNAMIC_STYLE){const l="number"==typeof this.width_?this.width_:this.options_.width,h="number"==typeof this.height_?this.height_:this.options_.height,m=this.tech_&&this.tech_.el();return void(m&&(l>=0&&(m.width=l),h>=0&&(m.height=h)))}let e,t,i,n;i=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";const r=i.split(":"),a=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/a:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*a,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),Wu(this.styleEl_,`\n      .${n}
1 {\n        width: ${e}px;\n        height: ${t}px;\n      }\n\n      .${n}.vjs-fluid:not(.vjs-audio-only-mode) {\n        padding-top: ${100*a}%;\n      }\n    `)}loadTech_(e,t){this.tech_&&this.unloadTech_();const i=Tt(e),n=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(ze.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;let r=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(r=!1);const a={source:t,autoplay:r,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${n}_api`,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};Ut.names.forEach(h=>{const m=Ut[h];a[m.getterName]=this[m.privateName]}),Object.assign(a,this.options_[i]),Object.assign(a,this.options_[n]),Object.assign(a,this.options_[e.toLowerCase()]),this.tag&&(a.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(a.startTime=this.cache_.currentTime);const l=ze.getTech(e);if(!l)throw new Error(`No Tech named '${i}' exists! '${i}' should be registered using videojs.registerTech()'`);this.tech_=new l(a),this.tech_.ready(ut(this,this.handleTechReady_),!0),function(s,e){s.forEach(function(t){const i=e.addRemoteTextTrack(t).track;!t.src&&t.cues&&t.cues.forEach(n=>i.addCue(n))}),e.textTracks()}(this.textTracksJson_||[],this.tech_),ad.forEach(h=>{this.on(this.tech_,h,m=>this[`handleTech${Tt(h)}_`](m))}),Object.keys(ol).forEach(h=>{this.on(this.tech_,h,m=>{0===this.tech_.playbackRate()&&this.tech_.seeking()?this.queuedCallbacks_.push({callback:this[`handleTech${ol[h]}_`].bind(this),event:m}):this[`handleTech${ol[h]}_`](m)})}),this.on(this.tech_,"loadstart",h=>this.handleTechLoadStart_(h)),this.on(this.tech_,"sourceset",h=>this.handleTechSourceset_(h)),this.on(this.tech_,"waiting",h=>this.handleTechWaiting_(h)),this.on(this.tech_,"ended",h=>this.handleTechEnded_(h)),this.on(this.tech_,"seeking",h=>this.handleTechSeeking_(h)),this.on(this.tech_,"play",h=>this.handleTechPlay_(h)),this.on(this.tech_,"pause",h=>this.handleTechPause_(h)),this.on(this.tech_,"durationchange",h=>this.handleTechDurationChange_(h)),this.on(this.tech_,"fullscreenchange",(h,m)=>this.handleTechFullscreenChange_(h,m)),this.on(this.tech_,"fullscreenerror",(h,m)=>this.handleTechFullscreenError_(h,m)),this.on(this.tech_,"enterpictureinpicture",h=>this.handleTechEnterPictureInPicture_(h)),this.on(this.tech_,"leavepictureinpicture",h=>this.handleTechLeavePictureInPicture_(h)),this.on(this.tech_,"error",h=>this.handleTechError_(h)),this.on(this.tech_,"posterchange",h=>this.handleTechPosterChange_(h)),this.on(this.tech_,"textdata",h=>
vendor: 1,070 bytes, line 1
1this.handleTechTextData_(h)),this.on(this.tech_,"ratechange",h=>this.handleTechRateChange_(h)),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode!==this.el()&&("Html5"!==i||!this.tag)&&_o(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){Ut.names.forEach(e=>{const t=Ut[e];this[t.privateName]=this[t.getterName]()}),this.textTracksJson_=function(s){const e=s.$$("track"),t=Array.prototype.map.call(e,n=>n.track);return Array.prototype.map.call(e,function(n){const r=Io(n.track);return n.src&&(r.src=n.src),r}).concat(Array.prototype.filter.call(s.textTracks(),function(n){return-1===t.indexOf(n)}).map(Io))}(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(e){return void 0===e&&Ye.warn("Using the tech directly can be dangerous. I hope you know 
1what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_}version(){return{"video.js":po}}addTechControlsListeners_(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)}removeTechControlsListeners_(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):this.trigger("loadstart"),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())}manualAutoplay_(e){if(!this.tech_||"string"!=typeof e)return;const t=()=>{const n=this.muted();this.muted(!0);const r=()=>{this.muted(n)};this.playTerminatedQueue_.push(r);const a=this.play();if(Kn(a))return a.catch(l=>{throw r(),new Error(`Rejection at manualAutoplay. Restoring muted value. ${l||""}`)})};let i;return"any"!==e||this.muted()?i="muted"!==e||this.muted()?this.play():t():(i=this.play(),Kn(i)&&(i=i.catch(t))),Kn(i)?i.then(()=>{this.trigger({type:"autoplay-success",autoplay:e})}).catch(()=>{this.trigger({type:"autoplay-failure",autoplay:e})}):void 0}updateSourceCaches_(e=""){let t=e,i="";"string"!=typeof t&&(t=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!i&&(i=((s,e)=>{if(!e)return"";if(s.cache_.source.src===e&&s.cache_.source.type)return s.cache_.source.type;const t=s.cache_.sources.filter(n=>n.src===e);if(t.length)return t[0].type;const i=s.$$("source");for(let n=0;n<i.length;n++){const r=i[n];if(r.type&&r.src&&r.src===e)return r.type}return la(e)})(this,t)),this.cache_.source=rt({},e,{src:t,type:i});const n=this.cache_.sources.filter(h=>h.src&&h.src===t),r=[],a=this.$$("source"),l=[];for(let h=0;h<a.length;h++){const m=os(a[h]);r.push(m),m.src&&m.src===t&&l.push(m.src)}l.length&&!n.length?this.cache_.sources=r:n.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t}handleTechSourceset_(e){if(!this.changingSrc_){let t=r=>this.updateSourceCaches_(r);const i=this.currentSource().src,n=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(n)&&(!this.lastSource_||this.lastSource_.tech!==n&&this.lastSource_.player!==i)&&(t=()=>{}),t(n),e.src||this.tech_.any(["sourceset","loadstart"],r=>{if("sourceset"===r.type)return;const a=this.techGet_("currentSrc");this.lastSource_.tech=a,this.updateSourceCaches_(a)})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}hasStarted(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}handleTechPlay_(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}handleTechRateChange_(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(e=>e.callback(e.event)),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");const e=this.currentTime(),t=()=>{e!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",t))};this.on("timeupdate",t)}handleTechCanPlay_(){this.removeClass("vjs-waiting"),this.trigger("canplay")}handleTechCanPlayThrough_(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}handleTechPlaying_(){this.removeClass("vjs-waiting"),this.trigger("playing")}handleTechSeeking_(){this.addClass("vjs-seeking"),this.trigger("seeking")}
1handleTechSeeked_(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}handleTechPause_(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}handleTechEnded_(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}handleTechDurationChange_(){this.duration(this.techGet_("duration"))}handleTechClick_(e){this.controls_&&(void 0===this.options_||void 0===this.options_.userActions||void 0===this.options_.userActions.click||!1!==this.options_.userActions.click)&&(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?Oi(this.play()):this.pause())}handleTechDoubleClick_(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),i=>i.contains(e.target))||(void 0===this.options_||void 0===this.options_.userActions||void 0===this.options_.userActions.doubleClick||!1!==this.options_.userActions.doubleClick)&&(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isInPictureInPicture()&&!se().pictureInPictureElement?this.exitPictureInPicture():this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(e){e.cancelable&&e.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}documentFullscreenChange_(e){const t=e.target.player;if(t&&t!==this)return;const i=this.el();let n=se()[this.fsApi_.fullscreenElement]===i;!n&&i.matches&&(n=i.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(n)}handleTechFullscreenChange_(e,t){t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",()=>{this.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))}handleTechFullscreenError_(e,t){this.trigger("fullscreenerror",t)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}handleTechEnterPictureInPicture_(e){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(e){this.isInPictureInPicture(!1)}handleTechError_(){const e=this.tech_.error();e&&this.error(e)}handleTechTextData_(){let e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}getCache(){return this.cache_}resetCache_(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}}techCall_(e,t){this.ready(function(){if(e in Mm)return function Pm(s,e,t,i){return e[t](s.reduce(Fo(t),i))}(this.middleware_,this.tech_,e,t);if(e in pc)return fc(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(i){throw Ye(i),i}},!0)}techGet_(e){if(this.tech_&&this.tech_.isReady_){if(e in Om)return function Im(s,e,t){return s.reduceRight(Fo(t),e[t]())}(this.middleware_,this.tech_,e);if(e in pc)return fc(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){throw void 0===this.tech_[e]?(Ye(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,t),t):"TypeError"===t.name?(Ye(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,t),this.tech_.isReady_=!1,t):(Ye(t),t)}}}play(){return new Promise(e=>{this.play_(e)})}play_(e=Oi){this.playCallbacks_.push(e);const t=!(this.changingSrc_||!this.src()&&!this.currentSrc()),i=!(!Xr&&!Lt);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!t)return this.waitToPlay_=a=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(!t&&i&&this.load());const n=this.techGet_("play");
vendor: 8,388 bytes, line 1
1i&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===n?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(n)}runPlayTerminatedQueue_(){const e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(t){t()})}runPlayCallbacks_(e){const t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(i){i(e)})}pause(){this.techCall_("pause")}paused(){return!1!==this.techGet_("paused")}played(){return this.techGet_("played")||bi(0,0)}scrubbing(e){if(typeof e>"u")return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}currentTime(e){return void 0===e?(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime):(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),this.cache_.initTime=0,void(isFinite(e)&&(this.cache_.currentTime=Number(e)))):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_)))}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let e=this.techGet_("buffered");return(!e||!e.length)&&(e=bi(0,0)),e}seekable(){let e=this.techGet_("seekable");return(!e||!e.length)&&(e=bi(0,0)),e}seeking(){return this.techGet_("seeking")}ended(){return this.techGet_("ended")}networkState(){return this.techGet_("networkState")}readyState(){return this.techGet_("readyState")}bufferedPercent(){return nc(this.buffered(),this.duration())}bufferedEnd(){const e=this.buffered(),t=this.duration();let i=e.end(e.length-1);return i>t&&(i=t),i}volume(e){let t;return void 0!==e?(t=Math.max(0,Math.min(1,e)),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)}muted(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)}defaultMuted(e){return void 0!==e&&this.techCall_("setDefaultMuted",e),this.techGet_("defaultMuted")||!1}lastVolume_(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e}supportsFullScreen(){return this.techGet_("supportsFullScreen")||!1}isFullscreen(e){if(void 0!==e){const t=this.isFullscreen_;return this.isFullscreen_=!!e,this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_}requestFullscreen(e){this.isInPictureInPicture()&&this.exitPictureInPicture();const t=this;return new Promise((i,n)=>{function r(){t.off("fullscreenerror",l),t.off("fullscreenchange",a)}function a(){r(),i()}function l(m,v){r(),n(v)}t.one("fullscreenchange",a),t.one("fullscreenerror",l);const h=t.requestFullscreenHelper_(e);h&&(h.then(r,r),h.then(i,n))})}requestFullscreenHelper_(e){let t;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){const i=this.el_[this.fsApi_.requestFullscreen](t);return i&&i.then(()=>this.isFullscreen(!0),()=>this.isFullscreen(!1)),i}this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){const e=this;return new Promise((t,i)=>{function n(){e.off("fullscreenerror",a),e.off("fullscreenchange",r)}function r(){n(),t()}function a(h,m){n(),i(m)}e.one("fullscreenchange",r),e.one("fullscreenerror",a);const l=e.exitFullscreenHelper_();l&&(l.then(n,n),l.then(t,i))})}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){const e=se()[this.fsApi_.exitFullscreen]();return e&&Oi(e.then(()=>this.isFullscreen(!1))),e}this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=se().documentElement.style.overflow,Yt(se(),"keydown",this.boundFullWindowOnEscKey_),se().documentElement.style.overflow="hidden",Ts(se().body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(e){"Escape"===e.key&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,Rt(se(),"keydown",this.boundFullWindowOnEscKey_),se().documentElement.style.overflow=this.docOrigOverflow,Yr(se().body,"vjs-full-window"),this.trigger("exitFullWindow")}disablePictureInPicture(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}isInPictureInPicture(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_}requestPictureInPicture(){if(this.options_.enableDocumentPictureInPicture&&C().documentPictureInPicture){const e=se().createElement(this.el().tagName);return e.classList=this.el().classList,e.classList.add("vjs-pip-container"),this.posterImage&&e.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&e.appendChild(this.titleBar.el().cloneNode(!0)),e.appendChild(Ne("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),C().documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(t=>(qu(t),this.el_.parentNode.insertBefore(e,this.el_),t.document.body.appendChild(this.el_),t.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger({type:"enterpictureinpicture",pipWindow:t}),t.addEventListener("pagehide",i=>{const n=i.target.querySelector(".video-js");e.parentNode.replaceChild(n,e),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")}),t))}return"pictureInPictureEnabled"in se()&&!1===this.disablePictureInPicture()?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){return C().documentPictureInPicture&&C().documentPictureInPicture.window?(C().documentPictureInPicture.window.close(),Promise.resolve()):"pictureInPictureEnabled"in se()?se().exitPictureInPicture():void 0}handleKeyDown(e){const{userActions:t}=this.options_;!t||!t.hotkeys||(n=>{const r=n.tagName.toLowerCase();return!!n.isContentEditable||("input"===r?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(n.type):-1!==["textarea"].indexOf(r))})(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}handleHotkeys(e){const t=this.options_.userActions?this.options_.userActions.hotkeys:{},{fullscreenKey:i=a=>"f"===e.key.toLowerCase(),muteKey:n=a=>"m"===e.key.toLowerCase(),playPauseKey:r=a=>"k"===e.key.toLowerCase()||" "===e.key.toLowerCase()}=t;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();const a=$.getComponent("FullscreenToggle");!1!==se()[this.fsApi_.fullscreenEnabled]&&a.prototype.handleClick.call(this,e)}else n.call(this,e)?(e.preventDefault(),e.stopPropagation(),$.getComponent("MuteToggle").prototype.handleClick.call(this,e)):r.call(this,e)&&(e.preventDefault(),e.stopPropagation(),$.getComponent("PlayToggle").prototype.handleClick.call(this,e))}canPlayType(e){let t;for(let i=0,n=this.options_.techOrder;i<n.length;i++){const r=n[i];let a=ze.getTech(r);if(a||(a=$.getComponent(r)),a){if(a.isSupported()&&(t=a.canPlayType(e),t))return t}else Ye.error(`The "${r}" tech is undefined. Skipped browser support check for that tech.`)}return""}selectSource(e){const t=this.options_.techOrder.map(l=>[l,ze.getTech(l)]).filter(([l,h])=>h?h.isSupported():(Ye.error(`The "${l}" tech is undefined. Skipped browser support check for that tech.`),!1)),i=function(l,h,m){let v;return l.some(y=>h.some(I=>{if(v=m(y,I),v)return!0})),v};let n;const a=([l,h],m)=>{if(h.canPlaySource(m,this.options_[l.toLowerCase()]))return{source:m,tech:l}};return n=this.options_.sourceOrder?i(e,t,(l=a,(h,m)=>
vendor: 4,305 bytes, line 1
1l(m,h))):i(t,e,a),n||!1;var l}handleSrc_(e,t){if(typeof e>"u")return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();const i=mc(e);if(i.length){if(this.changingSrc_=!0,t||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),Dm(this,i[0],(n,r)=>{if(this.middleware_=r,t||(this.cache_.sources=i),this.updateSourceCaches_(n),this.src_(n))return i.length>1?this.handleSrc_(i.slice(1)):(this.changingSrc_=!1,this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),void this.triggerReady());!function km(s,e){s.forEach(t=>t.setTech&&t.setTech(e))}(r,this.tech_)}),i.length>1){const n=()=>{this.error(null),this.handleSrc_(i.slice(1),!0)},r=()=>{this.off("error",n)};this.one("error",n),this.one("playing",r),this.resetRetryOnError_=()=>{this.off("error",n),this.off("playing",r)}}}else this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0)}src(e){return this.handleSrc_(e,!1)}src_(e){const t=this.selectSource([e]);return!t||(Zu(t.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1):(this.changingSrc_=!0,this.loadTech_(t.tech,t.source),this.tech_.ready(()=>{this.changingSrc_=!1}),!1))}addSourceElement(e,t){return!!this.tech_&&this.tech_.addSourceElement(e,t)}removeSourceElement(e){return!!this.tech_&&this.tech_.removeSourceElement(e)}load(){this.tech_&&this.tech_.vhs?this.src(this.currentSource()):this.techCall_("load")}reset(){this.paused()?this.doReset_():Oi(this.play().then(()=>this.doReset_()))}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),zi(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{currentTimeDisplay:e,durationDisplay:t,progressControl:i,remainingTimeDisplay:n}=this.controlBar||{},{seekBar:r}=i||{};e&&e.updateContent(),t&&t.updateContent(),n&&n.updateContent(),r&&(r.update(),r.loadProgressBar&&r.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){const e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||""}currentType(){return this.currentSource()&&this.currentSource().type||""}preload(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")}autoplay(e){if(void 0===e)return this.options_.autoplay||!1;let t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t=typeof t>"u"?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)}playsinline(e){return void 0!==e&&(this.techCall_("setPlaysinline",e),this.options_.playsinline=e),this.techGet_("playsinline")}loop(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")}poster(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){const e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}controls(e){if(void 0===e)return!!this.controls_;this.controls_!==(e=!!e)&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControl
vendor: 4,184 bytes, line 1
1sListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(e){if(void 0===e)return!!this.usingNativeControls_;this.usingNativeControls_!==(e=!!e)&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))}error(e){if(void 0===e)return this.error_||null;if(ns("beforeerror").forEach(t=>{const i=t(this,e);ki(i)&&!Array.isArray(i)||"string"==typeof i||"number"==typeof i||null===i?e=i:this.log.error("please return a value that MediaError expects in beforeerror hooks")}),this.options_.suppressNotSupportedError&&e&&4===e.code){const t=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),void this.one("loadstart",function(){this.off(["click","touchstart"],t)})}if(null===e)return this.error_=null,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new yt(e),this.addClass("vjs-error"),Ye.error(`(CODE:${this.error_.code} ${yt.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),ns("error").forEach(t=>t(this,this.error_))}reportUserActivity(e){this.userActivity_=!0}userActive(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}}listenForUserActivity_(){let e,t,i;const n=ut(this,this.reportUserActivity),l=function(y){n(),this.clearInterval(e)};this.on("mousedown",function(){n(),this.clearInterval(e),e=this.setInterval(n,250)}),this.on("mousemove",function(y){(y.screenX!==t||y.screenY!==i)&&(t=y.screenX,i=y.screenY,n())}),this.on("mouseup",l),this.on("mouseleave",l);const h=this.getChild("controlBar");let m;h&&!Lt&&!yi&&(h.on("mouseenter",function(y){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),h.on("mouseleave",function(y){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",n),this.on("keyup",n),this.setInterval(function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(m);const y=this.options_.inactivityTimeout;y<=0||(m=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},y))},250)}playbackRate(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)}defaultPlaybackRate(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}isAudio(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e}updatePlayerHeightOnAudioOnlyMode_(){const e=this.getChild("ControlBar");!e||this.audioOnlyCache_.controlBarHeight===e.currentHeight()||(this.audioOnlyCache_.controlBarHeight=e.currentHeight(),this.height(this.audioOnlyCache_.controlBarHeight))}enableAudioOnlyUI_(){this.addClass("vjs-audio-only-mode");const e=this.children(),t=this.getChild("ControlBar"),i=t&&t.currentHeight();e.forEach(n=>{n!==t&&n.el_&&!n.hasClass("vjs-hidden")&&(n.hide(),this.audioOnlyCache_.hiddenChildren.push(n))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.audioOnlyCache_.controlBarHeight=i,this.on("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.height(i),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.off("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.audioOnlyCache_.hiddenChildren.forEac
vendor: 4,922 bytes, line 1
1h(e=>e.show()),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}audioOnlyMode(e){if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){const t=[];return this.isInPictureInPicture()&&t.push(this.exitPictureInPicture()),this.isFullscreen()&&t.push(this.exitFullscreen()),this.audioPosterMode()&&t.push(this.audioPosterMode(!1)),Promise.all(t).then(()=>this.enableAudioOnlyUI_())}return Promise.resolve().then(()=>this.disableAudioOnlyUI_())}enablePosterModeUI_(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}disablePosterModeUI_(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}audioPosterMode(e){return"boolean"!=typeof e||e===this.audioPosterMode_?this.audioPosterMode_:(this.audioPosterMode_=e,e?this.audioOnlyMode()?this.audioOnlyMode(!1).then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.disablePosterModeUI_()}))}addTextTrack(e,t,i){if(this.tech_)return this.tech_.addTextTrack(e,t,i)}addRemoteTextTrack(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)}removeRemoteTextTrack(e={}){let{track:t}=e;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)}getVideoPlaybackQuality(){return this.techGet_("getVideoPlaybackQuality")}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),zi(this)&&this.trigger("languagechange"))}languages(){return rt(et.prototype.options_.languages,this.languages_)}toJSON(){const e=rt(this.options_),t=e.tracks;e.tracks=[];for(let i=0;i<t.length;i++){let n=t[i];n=rt(n),n.player=void 0,e.tracks[i]=n}return e}createModal(e,t){(t=t||{}).content=e||"";const i=new un(this,t);return this.addChild(i),i.on("dispose",()=>{this.removeChild(i)}),i.open(),i}updateCurrentBreakpoint_(){if(!this.responsive())return;const e=this.currentBreakpoint(),t=this.currentWidth();for(let i=0;i<ll.length;i++){const n=ll[i];if(t<=this.breakpoints_[n]){if(e===n)return;e&&this.removeClass(ha[e]),this.addClass(ha[n]),this.breakpoint_=n;break}}}removeCurrentBreakpoint_(){const e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}breakpoints(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=Object.assign({},gg,e),this.updateCurrentBreakpoint_()),Object.assign(this.breakpoints_)}responsive(e){return void 0===e?this.responsive_:(e=!!e)!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return ha[this.breakpoint_]||""}loadMedia(e,t){if(!e||"object"!=typeof e)return;const i=this.crossOrigin();this.reset(),this.cache_.media=rt(e);const{artist:n,artwork:r,description:a,poster:l,src:h,textTracks:m,title:v}=this.cache_.media;!r&&l&&(this.cache_.media.artwork=[{src:l,type:la(l)}]),i&&this.crossOrigin(i),h&&this.src(h),l&&this.poster(l),Array.isArray(m)&&m.forEach(y=>this.addRemoteTextTrack(y,!1)),this.titleBar&&this.titleBar.update({title:v,description:a||n||""}),this.ready(t)}getMedia(){if(!this.cache_.media){const e=this.poster(),n={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),r=>({kind:r.kind,label:r.label,language:r.language,src:r.src}))};return e&&(n.poster=e,n.artwork=[{src:n.poster,type:la(n.poster)}]),n}return rt(this.cache_.media)}static getTagSettings(e){const t={sources:[],tracks:[]},i=os(e),n=i["data-setup"];if($n(e,"vjs-fill")&&(i.fill=!0),$n(e,"vjs-fluid")&&(i.fluid=!0),null!==n)try{Object.assign(i,JSON.parse(n||"{}"))}catch(r){Ye.error("data-setup",r)}if(Object.assign(t,i),e.hasChildNodes()){const r=e.childNodes;for(let a=0,l=r.length;a<l;a++){const h=r[a],m=h.nodeName.toLowerCase();"source"===m?t.sources.push(os(h)):"track"===m&&t.tracks.push(os(h))}}return t}debug(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}playbackRates(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every(t=>"number"==typeof t)&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))}}et.prototype.videoTracks=()=>{},et.prototype.audioTracks=()=>{},et.prototype.textTracks=()=>{},et.prototype.remoteTextTracks=()=>{},et.prototype.remoteTextTrackEls=()=>{}
vendor: 4,203 bytes, line 1
1,Ut.names.forEach(function(s){const e=Ut[s];et.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}}),et.prototype.crossorigin=et.prototype.crossOrigin,et.players={};const tr=C().navigator;et.prototype.options_={techOrder:ze.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:tr&&(tr.languages&&tr.languages[0]||tr.userLanguage||tr.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,spatialNavigation:{enabled:!1,horizontalSeek:!1},enableSmoothSeeking:!1,disableSeekWhileScrubbingOnMobile:!1,disableSeekWhileScrubbingOnSTV:!1},ad.forEach(function(s){et.prototype[`handleTech${Tt(s)}_`]=function(){return this.trigger(s)}}),$.registerComponent("Player",et);const fa="plugin",pn="activePlugins_",mn={},pa=s=>mn.hasOwnProperty(s),ma=s=>pa(s)?mn[s]:void 0,od=(s,e)=>{s[pn]=s[pn]||{},s[pn][e]=!0},ga=(s,e,t)=>{const i=(t?"before":"")+"pluginsetup";s.trigger(i,e),s.trigger(i+":"+e.name,e)},ld=(s,e)=>(e.prototype.name=s,function(...t){ga(this,{name:s,plugin:e,instance:null},!0);const i=new e(this,...t);return this[s]=()=>i,ga(this,i.getEventHash()),i});let cs=(()=>{class s{constructor(t){if(this.constructor===s)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),wo(this),delete this.trigger,Ju(this,this.constructor.defaultState),od(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}version(){return this.constructor.VERSION}getEventHash(t={}){return t.name=this.name,t.plugin=this.constructor,t.instance=this,t}trigger(t,i={}){return ln(this.eventBusEl_,t,this.getEventHash(i))}handleStateChanged(t){}dispose(){const{name:t,player:i}=this;this.trigger("dispose"),this.off(),i.off("dispose",this.dispose),i[pn][t]=!1,this.player=this.state=null,i[t]=ld(t,mn[t])}static isBasic(t){const i="string"==typeof t?ma(t):t;return"function"==typeof i&&!s.prototype.isPrototypeOf(i.prototype)}static registerPlugin(t,i){if("string"!=typeof t)throw new Error(`Illegal plugin name, "${t}", must be a string, was ${typeof t}.`);if(pa(t))Ye.warn(`A plugin named "${t}" already exists. You may want to avoid re-registering plugins!`);else if(et.prototype.hasOwnProperty(t))throw new Error(`Illegal plugin name, "${t}", cannot share a name with an existing player method!`);if("function"!=typeof i)throw new Error(`Illegal plugin for "${t}", must be a function, was ${typeof i}.`);return mn[t]=i,t!==fa&&(et.prototype[t]=s.isBasic(i)?function(s,e){const t=function(){ga(this,{name:s,plugin:e,instance:null},!0);const i=e.apply(this,arguments);return od(this,s),ga(this,{name:s,plugin:e,instance:i}),i};return Object.keys(e).forEach(function(i){t[i]=e[i]}),t}(t,i):ld(t,i)),i}static deregisterPlugin(t){if(t===fa)throw new Error("Cannot de-register base plugin.");pa(t)&&(delete mn[t],delete et.prototype[t])}static getPlugins(t=Object.keys(mn)){let i;return t.forEach(n=>{const r=ma(n);r&&(i=i||{},i[n]=r)}),i}static getPluginVersion(t){const i=ma(t);return i&&i.VERSION||""}}return s.getPlugin=ma,s.BASE_PLUGIN_NAME=fa,s})();function Ti(s,e,t,i){return function _g(s,e){let t=!1;return function(...i){return t||Ye.warn(s),t=!0,e.apply(this,i)}}(`${e} is deprecated and will be removed in ${s}.0; please use ${t} instead.`,i)}cs.registerPlugin(fa,cs),et.prototype.usingPlugin=function(s){return!!this[pn]&&!0===this[pn][s]},et.prototype.hasPlugin=function(s){return!!pa(s)};const ud=s=>0===s.indexOf("#")?s.slice(1):s;function L(s,e,t){let i=L.getPlayer(s);if(i)return e&&Ye.warn(`Player "${s}" is already initialised. Options will not be applied.`),t&&i.ready(t),i;const n="string"==typeof s?ls("#"+ud(s)):s;if(!nn(n))throw new TypeError("The element or ID supplied is not val
1id. (videojs)");const a="getRootNode"in n&&n.getRootNode()instanceof C().ShadowRoot?n.getRootNode():n.ownerDocument.body;(!n.ownerDocument.defaultView||!a.contains(n))&&Ye.warn("The element supplied is not included in the DOM"),!0===(e=e||{}).restoreEl&&(e.restoreEl=(n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player")?n.parentNode:n).cloneNode(!0)),ns("beforesetup").forEach(h=>{const m=h(n,rt(e));ki(m)&&!Array.isArray(m)?e=rt(e,m):Ye.error("please return an object in beforesetup hooks")});const l=$.getComponent("Player");return i=new l(n,e,t),ns("setup").forEach(h=>h(i)),i}if(L.hooks_=qi,L.hooks=ns,L.hook=function(s,e){ns(s,e)},L.hookOnce=function(s,e){ns(s,[].concat(e).map(t=>{const i=(...n)=>(bu(s,i),t(...n));return i}))},L.removeHook=bu,!0!==C().VIDEOJS_NO_DYNAMIC_STYLE&&sn()){let s=ls(".vjs-styles-defaults");if(!s){s=Gu("vjs-styles-defaults");const e=ls("head");e&&e.insertBefore(s,e.firstChild),Wu(s,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid:not(.vjs-audio-only-mode) {\n        padding-top: 56.25%\n      }\n    ")}}To(1,L),L.VERSION=po,L.options=et.prototype.options_,L.getPlayers=()=>et.players,L.getPlayer=s=>{const e=et.players;let t;if("string"==typeof s){const i=ud(s),n=e[i];if(n)return n;t=ls("#"+i)}else t=s;if(nn(t)){const{player:i,playerId:n}=t;if(i||e[n])return i||e[n]}},L.getAllPlayers=()=>Object.keys(et.players).map(s=>et.players[s]).filter(Boolean),L.players=et.players,L.getComponent=$.getComponent,L.registerComponent=(s,e)=>(ze.isTech(e)&&Ye.warn(`The ${s} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),$.registerComponent.call($,s,e)),L.getTech=ze.getTech,L.registerTech=ze.registerTech,L.use=function wm(s,e){Es[s]=Es[s]||[],Es[s].push(e)},Object.defineProperty(L,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(L.middleware,"TERMINATOR",{value:oa,writeable:!1,enumerable:!0}),L.browser=Iu,L.obj=am,L.mergeOptions=Ti(9,"videojs.mergeOptions","videojs.obj.merge",rt),L.defineLazyProperty=Ti(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",Fr),L.bind=Ti(9,"videojs.bind","native Function.prototype.bind",ut),L.registerPlugin=cs.registerPlugin,L.deregisterPlugin=cs.deregisterPlugin,L.plugin=(s,e)=>(Ye.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),cs.registerPlugin(s,e)),L.getPlugins=cs.getPlugins,L.getPlugin=cs.getPlugin,L.getPluginVersion=cs.getPluginVersion,L.addLanguage=function(s,e){return s=(""+s).toLowerCase(),(L.options.languages=rt(L.options.languages,{[s]:e}))[s]},L.log=Ye,L.createLogger=xu,L.time=bm,L.createTimeRange=Ti(9,"videojs.createTimeRange","videojs.time.createTimeRanges",bi),L.createTimeRanges=Ti(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",bi),L.formatTime=Ti(9,"videojs.formatTime","videojs.time.formatTime",Ss),L.setFormatTime=Ti(9,"videojs.setFormatTime","videojs.time.setFormatTime",ic),L.resetFormatTime=Ti(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",sc),L.parseUrl=Ti(9,"videojs.parseUrl","videojs.url.parseUrl",No),L.isCrossOrigin=Ti(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",ra),L.EventTarget=Kt,L.any=Co,L.on=Yt,L.one=ta,L.off=Rt,L.trigger=ln,L.xhr=Ei(),L.TrackList=Cs,L.TextTrack=Qn,L.TextTrackList=Lo,L.AudioTrack=dc,L.AudioTrackList=rc,L.VideoTrack=hc,L.VideoTrackList=ac,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(s=>{L[s]=function(){return Ye.warn(`videojs.${s}() is deprecated; use videojs.dom.${s}() instead`),zu[s].apply(null,arguments)}}),L.computedStyle=Ti(9,"videojs.computedStyle","videojs.dom.computedStyle",on),L.dom=zu,L.fn=pm,L.num=Xm,L.str=_m,L.url=Em,L.Error={NetworkBadStatus:"networkbadstatus",NetworkRequestFailed:"networkrequestfailed",NetworkRequestAborted:"networkrequestaborted",NetworkRequestTimeout:"networkrequesttimeout",NetworkBodyParserFailed:"networkbodyparserfailed",StreamingHlsPlaylistParserError:"streaminghlsplaylistparsererror",StreamingDashManifestParserError:"streamingdashmanifestparsererror",StreamingContentSteeringParserError:"streamingcontentsteeringparsererror",StreamingVttParserError:"streamingvttparsererror",StreamingFailedToSelectNextSegment:"streamingfailedtoselectnextsegment",StreamingFailedToDecryptSegment:"streamingfailedtodecryptsegment",StreamingFailedToTransmuxSegment:"streamingfailedtotransmuxsegment",StreamingFailedToAppendSegment:"streamingfailedtoappendsegment",StreamingCodecsChangeError:"streamingcodecschangeerror"};class bg{constructor(e){let t=this;return t.id=e.id,t.label=t.id,t.width=e.width,t.height=e.height,t.bitrate=e.bandwidth,t.frameRate=e.frameRate,t.enabled_=e.enabled,Object.defineProperty(t,"enabled",{get:()=>t.enabled_(),set(i){t.enabled_(i)}}),t}}class va extends L.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get:()=>e.selectedIndex_}),Object.defineProperty(e,"length",{get:()=>e.levels_.length}),e[Symbol.iterator]=()=>e.levels_.values(),e}addQualityLevel(e){let t=this.getQualityLevelById(e.id);if(t)return t;const i=this.levels_.length;return t=new bg(e),""+i in this||Object.defineProperty(this,i,{get(){return this.levels_[i]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t}removeQualityLevel(e){let t=null;for(let i=0,n=this.length;i<n;i++)if(this[i]===e){t=this.levels_.splice(i,1)[0],this.selectedIndex_===i?this.selectedIndex_=-1:this.selectedIndex_>i&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t}getQualityLevelById(e){for(let t=0,i=this.length;t<i;t++){const n=this[t];if(n.id===e)return n}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}}va.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(const s in va.prototype.allowedEvents_)va.prototype["on"+s]=null;const dd=function(s){return function(s){const t=s.qualityLevels,i=new va,n=function(){i.dispose(),s.qualityLevels=t,s.off("dispose",n)};return s.on("dispose",n),s.qualityLevels=()=>i,s.qualityLevels.VERSION="4.1.0",i}(this,L.obj.merge({},s))};L.registerPlugin("qualityLevels",dd),dd.VERSION="4.1.0";const $t=pi,_a=(s,e)=>e&&e.responseURL&&s!==e.responseURL?e.responseURL:s,ci=s=>L.log.debug?L.log.debug.bind(L,"VHS:",`${s} >`):function(){};function tt(...s){const e=L.obj||L;return(e.merge||e.mergeOptions).apply(e,s)}function kt(...s){const e=L.time||L;return(e.createTimeRanges||e.createTimeRanges).apply(e,s)}const ji=1/30,Li=.1,hd=function(s,e){const t=[];let i;if(s&&s.length)for(i=0;i<s.length;
vendor: 6,611 bytes, line 1
1i++)e(s.start(i),s.end(i))&&t.push([s.start(i),s.end(i)]);return kt(t)},gn=function(s,e){return hd(s,function(t,i){return t-Li<=e&&i+Li>=e})},ya=function(s,e){return hd(s,function(t){return t-ji>=e})},fd=s=>{const e=[];if(!s||!s.length)return"";for(let t=0;t<s.length;t++)e.push(s.start(t)+" => "+s.end(t));return e.join(", ")},Ds=s=>{const e=[];for(let t=0;t<s.length;t++)e.push({start:s.start(t),end:s.end(t)});return e},ul=function(s){if(s&&s.length&&s.end)return s.end(s.length-1)},cl=function(s,e){let t=0;if(!s||!s.length)return t;for(let i=0;i<s.length;i++){const n=s.start(i),r=s.end(i);if(!(e>r)){if(e>n&&e<=r){t+=r-e;continue}t+=r-n}}return t},dl=(s,e)=>{if(!e.preload)return e.duration;let t=0;return(e.parts||[]).forEach(function(i){t+=i.duration}),(e.preloadHints||[]).forEach(function(i){"PART"===i.type&&(t+=s.partTargetDuration)}),t},hl=s=>(s.segments||[]).reduce((e,t,i)=>(t.parts?t.parts.forEach(function(n,r){e.push({duration:n.duration,segmentIndex:i,partIndex:r,part:n,segment:t})}):e.push({duration:t.duration,segmentIndex:i,partIndex:null,segment:t,part:null}),e),[]),pd=s=>{const e=s.segments&&s.segments.length&&s.segments[s.segments.length-1];return e&&e.parts||[]},md=({preloadSegment:s})=>{if(!s)return;const{parts:e,preloadHints:t}=s;let i=(t||[]).reduce((n,r)=>n+("PART"===r.type?1:0),0);return i+=e&&e.length?e.length:0,i},gd=(s,e)=>{if(e.endList)return 0;if(s&&s.suggestedPresentationDelay)return s.suggestedPresentationDelay;const t=pd(e).length>0;return t&&e.serverControl&&e.serverControl.partHoldBack?e.serverControl.partHoldBack:t&&e.partTargetDuration?3*e.partTargetDuration:e.serverControl&&e.serverControl.holdBack?e.serverControl.holdBack:e.targetDuration?3*e.targetDuration:0},vd=function(s,e,t){if(typeof e>"u"&&(e=s.mediaSequence+s.segments.length),e<s.mediaSequence)return 0;const i=function(s,e){let t=0,i=e-s.mediaSequence,n=s.segments[i];if(n){if(typeof n.start<"u")return{result:n.start,precise:!0};if(typeof n.end<"u")return{result:n.end-n.duration,precise:!0}}for(;i--;){if(n=s.segments[i],typeof n.end<"u")return{result:t+n.end,precise:!0};if(t+=dl(s,n),typeof n.start<"u")return{result:t+n.start,precise:!0}}return{result:t,precise:!1}}(s,e);if(i.precise)return i.result;const n=function(s,e){let i,t=0,n=e-s.mediaSequence;for(;n<s.segments.length;n++){if(i=s.segments[n],typeof i.start<"u")return{result:i.start-t,precise:!0};if(t+=dl(s,i),typeof i.end<"u")return{result:i.end-t,precise:!0}}return{result:-1,precise:!1}}(s,e);return n.precise?n.result:i.result+t},_d=function(s,e,t){if(!s)return 0;if("number"!=typeof t&&(t=0),typeof e>"u"){if(s.totalDuration)return s.totalDuration;if(!s.endList)return C()[1/0]}return vd(s,e,t)},ir=function({defaultDuration:s,durationList:e,startIndex:t,endIndex:i}){let n=0;if(t>i&&([t,i]=[i,t]),t<0){for(let r=t;r<Math.min(0,i);r++)n+=s;t=0}for(let r=t;r<i;r++)n+=e[r].duration;return n},yd=function(s,e,t,i){if(!s||!s.segments)return null;if(s.endList)return _d(s);if(null===e)return null;let n=vd(s,s.mediaSequence+s.segments.length,e=e||0);return t&&(n-=i="number"==typeof i?i:gd(null,s)),Math.max(0,n)},bd=function(s){return s.excludeUntil&&s.excludeUntil>Date.now()},fl=function(s){return s.excludeUntil&&s.excludeUntil===1/0},ba=function(s){const e=bd(s);return!s.disabled&&!e},Td=function(s,e){return e.attributes&&e.attributes[s]},pl=(s,e)=>{if(1===s.playlists.length)return!0;const t=e.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===s.playlists.filter(i=>!!ba(i)&&(i.attributes.BANDWIDTH||0)<t).length},ml=(s,e)=>!(!s&&!e||!s&&e||s&&!e||!(s===e||s.id&&e.id&&s.id===e.id||s.resolvedUri&&e.resolvedUri&&s.resolvedUri===e.resolvedUri||s.uri&&e.uri&&s.uri===e.uri)),xd=function(s,e){const t=s&&s.mediaGroups&&s.mediaGroups.AUDIO||{};let i=!1;for(const n in t){for(const r in t[n])if(i=e(t[n][r]),i)break;if(i)break}return!!i},sr=s=>{if(!s||!s.playlists||!s.playlists.length)return xd(s,t=>t.playlists&&t.playlists.length||t.uri);for(let e=0;e<s.playlists.length;e++){const t=s.playlists[e],i=t.attributes&&t.attributes.CODECS;if(!(i&&i.split(",").every(r=>Hs(r))||xd(s,r=>ml(t,r))))return!1}return!0};var Gt={liveEdgeDelay:gd,duration:_d,seekable:function(s,e,t){const n=e||0;let r=yd(s,e,!0,t);return null===r?kt():(r<n&&(r=n),kt(n,r))},getMediaInfoForTime:function({playlist:s,currentTime:e,startingSegmentIndex:t,startingPartIndex:i,startTime:n,exactManifestTimings:r}){let a=e-n;const l=hl(s);let h=0;for(let m=0;m<l.length;m++){const v=l[m];if(t===v.segmentIndex&&("number"!=typeof i||"number"!=typeof v.partIndex||i===v.partIndex)){h=m;break}}if(a<0){if(h>0)for(let m=h-1;m>=0;m--){const v=l[m];if(a+=v.duration,r){if(a<0)continue}else if(a+ji<=0)continue;return{partIndex:v.partIndex,segmentIndex:v.segmentIndex,startTime:n-ir({defaultDuration:s.targetDuration,durationList:l,startIndex:h,endIndex:m})}}return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:e}}if(h<0){for(let m=h;m<0;m++)if(a-=s.targetDuration,a<0)return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:e};h=0}for(let m=h;m<l.length;m++){const v=l[m];if(a-=v.duration,0!==a&&!(v.duration>ji&&a+ji>=0)||m===l.length-1){if(r){if(a>0)continue}else if(a-ji>=0)continue;return{partIndex:v.partIndex,segmentIndex:v.segmentIndex,startTime:n+ir({defaultDuration:s.targetDuration,durationList:l,startIndex:h,endIndex:m})}}}return{segmentIndex:l[l.length-1].segmentIndex,partIndex:l[l.length-1].partIndex,startTime:e}},isEnabled:ba,isDisabled:function(s){return s.disabled},isExcluded:bd,isIncompatible:fl,playlistEnd:yd,isAes:function(s){for(let e=0;e<s.segments.length;e++)if(s.segments[e].key)return!0;return!1},hasAttribute:Td,estimateSegmentRequestTime:function(s,e,t,i=0){return Td("BANDWIDTH",t)?(s*t.attributes.BANDWIDTH-8*i)/e:NaN},isLowestEnabledRendition:pl,isAudioOnly:sr,playlistMatch:ml,segmentDurationWithParts:dl};const{log:Sd}=L,vn=(s,e)=>`${s}-${e}`,Cd=(s,e,t)=>`placeholder-uri-${s}-${e}-${t}`,_n=(s,e)=>{s.mediaGroups&&["AUDIO","SUBTITLES"].forEach(t=>{if(s.mediaGroups[t])for(const i in s.mediaGroups[t])for(const n in s.mediaGroups[t][i])e(s.mediaGroups[t][i][n],t,i,n)})},Ed=({playlist:s,uri:e,id:t})=>{s.id=t,s.playlistErrors_=0,e&&(s.uri=e),s.attributes=s.attributes||{}},Ad=(s,e,t=Cd)=>{s.uri=e;for(let n=0;n<s.playlists.length;n++)s.playlists[n].uri||(s.playlists[n].uri=`placeholder-uri-${n}`);const i=sr(s);_n(s,(n,r,a,l)=>{if(!n.playlists||!n.playlists.length){if(i&&"AUDIO"===r&&!n.uri)for(let h=0;h<s.playlists.length;h++){const m=s.playlists[h];if(m.attributes&&m.attributes.AUDIO&&m.attributes.AUDIO===a)return}n.playlists=[Xe({},n)]}
vendor: 4,166 bytes, line 1
1n.playlists.forEach(function(h,m){const v=t(r,a,l,h),y=vn(m,v);h.uri?h.resolvedUri=h.resolvedUri||$t(s.uri,h.uri):(h.uri=0===m?v:y,h.resolvedUri=h.uri),h.id=h.id||y,h.attributes=h.attributes||{},s.playlists[h.id]=h,s.playlists[h.uri]=h})}),(s=>{let e=s.playlists.length;for(;e--;){const t=s.playlists[e];Ed({playlist:t,id:vn(e,t.uri)}),t.resolvedUri=$t(s.uri,t.uri),s.playlists[t.id]=t,s.playlists[t.uri]=t,t.attributes.BANDWIDTH||Sd.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}})(s),(s=>{_n(s,e=>{e.uri&&(e.resolvedUri=$t(s.uri,e.uri))})})(s)};class wd{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(e=[]){if(null!==this.offset_||!e.length)return;const[t]=e;void 0!==t.programDateTime&&(this.offset_=t.programDateTime/1e3)}setPendingDateRanges(e=[]){if(!e.length)return;const[t]=e,i=t.startDate.getTime();this.trimProcessedDateRanges_(i),this.pendingDateRanges_=e.reduce((n,r)=>(n.set(r.id,r),n),new Map)}processDateRange(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}getDateRangesToProcess(){if(null===this.offset_)return[];const e={},t=[];this.pendingDateRanges_.forEach((i,n)=>{if(!this.processedDateRanges_.has(n)&&(i.startTime=i.startDate.getTime()/1e3-this.offset_,i.processDateRange=()=>this.processDateRange(i),t.push(i),i.class))if(e[i.class]){const r=e[i.class].push(i);i.classListIndex=r-1}else e[i.class]=[i],i.classListIndex=0});for(const i of t){const n=e[i.class]||[];i.endTime=i.endDate?i.endDate.getTime()/1e3-this.offset_:i.endOnNext&&n[i.classListIndex+1]?n[i.classListIndex+1].startTime:i.duration?i.startTime+i.duration:i.plannedDuration?i.startTime+i.plannedDuration:i.startTime}return t}trimProcessedDateRanges_(e){new Map(this.processedDateRanges_).forEach((i,n)=>{i.startDate.getTime()<e&&this.processedDateRanges_.delete(n)})}}const ks=({requestType:s,request:e,error:t,parseFailure:i})=>{const r=e.status>=400&&e.status<=499,a={uri:e.uri,requestType:s},l=(e.status<200||e.status>299)&&!r||i;return t&&r?(a.error=Xe({},t),a.errorType=L.Error.NetworkRequestFailed):e.aborted?a.errorType=L.Error.NetworkRequestAborted:e.timedout?a.errorType=L.Error.NetworkRequestTimeout:l&&(a.errorType=i?L.Error.NetworkBodyParserFailed:L.Error.NetworkBadStatus,a.status=e.status,a.headers=e.headers),a},Bg=ci("CodecUtils"),kd=function(s){const e=s.attributes||{};if(e.CODECS)return wt(e.CODECS)},Id=(s,e)=>{const t=e.attributes||{};return s&&s.mediaGroups&&s.mediaGroups.AUDIO&&t.AUDIO&&s.mediaGroups.AUDIO[t.AUDIO]},nr=function(s){const e={};return s.forEach(({mediaType:t,type:i,details:n})=>{e[t]=e[t]||[],e[t].push(Zi(`${i}${n}`))}),Object.keys(e).forEach(function(t){if(e[t].length>1)return Bg(`multiple ${t} codecs found as attributes: ${e[t].join(", ")}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.`),void(e[t]=null);e[t]=e[t][0]}),e},Pd=function(s){let e=0;return s.audio&&e++,s.video&&e++,e},rr=function(s,e){const t=e.attributes||{},i=nr(kd(e)||[]);if(Id(s,e)&&!i.audio&&!((s,e)=>{if(!Id(s,e))return!0;const i=s.mediaGroups.AUDIO[(e.attributes||{}).AUDIO];for(const n in i)if(!i[n].uri&&!i[n].playlists)return!0;return!1})(s,e)){const n=nr(function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var i=e.mediaGroups.AUDIO[t];if(!i)return null;for(var n in i){var r=i[n];if(r.default&&r.playlists)return wt(r.playlists[0].attributes.CODECS)}return null}(s,t.AUDIO)||[]);n.audio&&(i.audio=n.audio)}return i},{EventTarget:Ug}=L,Hg=(s,e)=>{if(!s)return e;const t=tt(s,e);if(s.preloadHints&&!e.preloadHints&&delete t.preloadHints,s.parts&&!e.parts)delete t.parts;else if(s.parts&&e.parts)for(let i=0;i<e.parts.length;i++)s.parts&&s.parts[i]&&(t.parts[i]=tt(s.parts[i],e.parts[i]));return!s.skipped&&e.skipped&&(t.skipped=!1),s.preload&&!e.preload&&(t.preload=!1),t},Od=(s,e)=>{!s.resolvedUri&&s.uri&&(s.resolvedUri=$t(e,s.uri)),s.key&&!s.key.resolvedUri&&(s.key.resolvedUri=$t(e,s.key.uri)),s.map&&!s.map.resolvedUri&&(s.map.resolvedUri=$t(e,s.map.uri)),s.map&&s.map.key&&!s.map.key.resolvedUri&&(s.map.key.resolvedUri=$t(e,s.map.key.uri)),s.parts&&s.parts.length&&s.parts.forEac
vendor: 2,116 bytes, line 1
1h(t=>{t.resolvedUri||(t.resolvedUri=$t(e,t.uri))}),s.preloadHints&&s.preloadHints.length&&s.preloadHints.forEach(t=>{t.resolvedUri||(t.resolvedUri=$t(e,t.uri))})},Md=function(s){const e=s.segments||[],t=s.preloadSegment;if(t&&t.parts&&t.parts.length){if(t.preloadHints)for(let i=0;i<t.preloadHints.length;i++)if("MAP"===t.preloadHints[i].type)return e;t.duration=s.targetDuration,t.preload=!0,e.push(t)}return e},jd=(s,e)=>s===e||s.segments&&e.segments&&s.segments.length===e.segments.length&&s.endList===e.endList&&s.mediaSequence===e.mediaSequence&&s.preloadSegment===e.preloadSegment,gl=(s,e,t=jd)=>{const i=tt(s,{}),n=i.playlists[e.id];if(!n||t(n,e))return null;e.segments=Md(e);const r=tt(n,e);if(r.preloadSegment&&!e.preloadSegment&&delete r.preloadSegment,n.segments){if(e.skip){e.segments=e.segments||[];for(let a=0;a<e.skip.skippedSegments;a++)e.segments.unshift({skipped:!0})}r.segments=((s,e,t)=>{const i=s.slice(),n=e.slice();t=t||0;const r=[];let a;for(let l=0;l<n.length;l++){const h=i[l+t],m=n[l];h?(a=h.map||a,r.push(Hg(h,m))):(a&&!m.map&&(m.map=a),r.push(m))}return r})(n.segments,e.segments,e.mediaSequence-n.mediaSequence)}r.segments.forEach(a=>{Od(a,r.resolvedUri)});for(let a=0;a<i.playlists.length;a++)i.playlists[a].id===e.id&&(i.playlists[a]=r);return i.playlists[e.id]=r,i.playlists[e.uri]=r,_n(s,(a,l,h,m)=>{if(a.playlists)for(let v=0;v<a.playlists.length;v++)e.id===a.playlists[v].id&&(a.playlists[v]=r)}),i},vl=(s,e)=>{const t=s.segments||[],i=t[t.length-1],n=i&&i.parts&&i.parts[i.parts.length-1],r=n&&n.duration||i&&i.duration;return e&&r?1e3*r:500*(s.partTargetDuration||s.targetDuration||10)},Ld=(s,e,t)=>{if(!s)return;const i=[];return s.forEach(n=>{if(!n.attributes)return;const{BANDWIDTH:r,RESOLUTION:a,CODECS:l}=n.attributes;i.push({id:n.id,bandwidth:r,resolution:a,codecs:l})}),{type:e,isLive:t,renditions:i}};class yn extends Ug{constructor(e,t,i={}){if(super(),!e)throw new Error("A non-empty playlist URL or object is required");this.logger_=ci("PlaylistLoader");const{withCredentials:n=!1}=i;this.src=e,this.vhs_=t,this.withCredentials=n,this.addDateRangesToTextTrack_=i.addD
vendor: 2,299 bytes, line 1
1ateRangesToTextTrack;const r=t.options_;this.customTagParsers=r&&r.customTagParsers||[],this.customTagMappers=r&&r.customTagMappers||[],this.llhls=r&&r.llhls,this.dateRangesStorage_=new wd,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_),this.on("loadedplaylist",this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){const e=this.media();if(!e)return;this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);const t=this.dateRangesStorage_.getDateRangesToProcess();!t.length||!this.addDateRangesToTextTrack_||this.addDateRangesToTextTrack_(t)}handleMediaupdatetimeout_(){if("HAVE_METADATA"!==this.state)return;const e=this.media();let t=$t(this.main.uri,e.uri);this.llhls&&(t=((s,e)=>{if(e.endList||!e.serverControl)return s;const t={};if(e.serverControl.canBlockReload){const{preloadSegment:i}=e;let n=e.mediaSequence+e.segments.length;if(i){const r=i.parts||[],a=md(e)-1;a>-1&&a!==r.length-1&&(t._HLS_part=a),(a>-1||r.length)&&n--}t._HLS_msn=n}if(e.serverControl&&e.serverControl.canSkipUntil&&(t._HLS_skip=e.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(t).length){const i=new(C().URL)(s);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(n){t.hasOwnProperty(n)&&i.searchParams.set(n,t[n])}),s=i.toString()}return s})(t,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:t,withCredentials:this.withCredentials,requestType:"hls-playlist"},(i,n)=>{if(this.request){if(i)return this.playlistRequestError(this.request,this.media(),"HAVE_METADATA");this.haveMetadata({playlistString:this.request.responseText,url:this.media().uri,id:this.media().id})}})}playlistRequestError(e,t,i){const{uri:n,id:r}=t;this.request=null,i&&(this.state=i),this.error={playlist:this.main.playlists[r],status:e.status,message:`HLS playlist request error at URL: ${n}.`,responseText:e.responseText,code:e.status>=500?4:2,metadata:ks({requestType:e.requestType,request:e,error:e.error})},this.trigger("error")}parseManifest_({url:e,manifestString:t}){try{const i=(({onwarn:s,oninfo:e,manifestString:t,customTagParsers:i=[],customTagMappers:n=[],llhls:r})=>{const a=new kr;s&&a.on("warn",s),e&&a.on("info",e),i.forEach(m=>
vendor: 26,499 bytes, line 1
1a.addParser(m)),n.forEach(m=>a.addTagMapper(m)),a.push(t),a.end();const l=a.manifest;if(r||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(m){l.hasOwnProperty(m)&&delete l[m]}),l.segments&&l.segments.forEach(function(m){["parts","preloadHints"].forEach(function(v){m.hasOwnProperty(v)&&delete m[v]})})),!l.targetDuration){let m=10;l.segments&&l.segments.length&&(m=l.segments.reduce((v,y)=>Math.max(v,y.duration),0)),s&&s({message:`manifest has no targetDuration defaulting to ${m}`}),l.targetDuration=m}const h=pd(l);if(h.length&&!l.partTargetDuration){const m=h.reduce((v,y)=>Math.max(v,y.duration),0);s&&(s({message:`manifest has no partTargetDuration defaulting to ${m}`}),Sd.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),l.partTargetDuration=m}return l})({onwarn:({message:n})=>this.logger_(`m3u8-parser warn for ${e}: ${n}`),oninfo:({message:n})=>this.logger_(`m3u8-parser info for ${e}: ${n}`),manifestString:t,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls});return!i.playlists||!i.playlists.length||this.excludeAudioOnlyVariants(i.playlists),i}catch(i){this.error=i,this.error.metadata={errorType:L.Error.StreamingHlsPlaylistParserError,error:i}}}excludeAudioOnlyVariants(e){const t=i=>{const n=i.attributes||{},{width:r,height:a}=n.RESOLUTION||{};if(r&&a)return!0;const l=kd(i)||[];return!!nr(l).video};e.some(t)&&e.forEach(i=>{t(i)||(i.excludeUntil=1/0)})}haveMetadata({playlistString:e,playlistObject:t,url:i,id:n}){this.request=null,this.state="HAVE_METADATA";const r={playlistInfo:{type:"media",uri:i}};this.trigger({type:"playlistparsestart",metadata:r});const a=t||this.parseManifest_({url:i,manifestString:e});a.lastRequest=Date.now(),Ed({playlist:a,uri:i,id:n});const l=gl(this.main,a);this.targetDuration=a.partTargetDuration||a.targetDuration,this.pendingMedia_=null,l?(this.main=l,this.media_=this.main.playlists[n]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(vl(this.media(),!!l)),r.parsedPlaylist=Ld(this.main.playlists,r.playlistInfo.type,!this.media_.endList),this.trigger({type:"playlistparsecomplete",metadata:r}),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),C().clearTimeout(this.mediaUpdateTimeout),C().clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new wd,this.off()}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e,t){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.main.playlists[e]}if(C().clearTimeout(this.finalRenditionTimeout),t){const l=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;return void(this.finalRenditionTimeout=C().setTimeout(this.media.bind(this,e,!1),l))}const i=this.state,n=!this.media_||e.id!==this.media_.id,r=this.main.playlists[e.id];if(r&&r.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(n&&(this.trigger("mediachanging"),this.trigger("HAVE_MAIN_MANIFEST"===i?"loadedmetadata":"mediachange")));if(this.updateMediaUpdateTimeout_(vl(e,!0)),!n)return;if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e;const a={playlistInfo:{type:"media",uri:e.uri}};this.trigger({type:"playlistrequeststart",metadata:a}),this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials,requestType:"hls-playlist"},(l,h)=>{if(this.request){if(e.lastRequest=Date.now(),e.resolvedUri=_a(e.resolvedUri,h),l)return this.playlistRequestError(this.request,e,i);this.trigger({type:"playlistrequestcomplete",metadata:a}),this.haveMetadata({playlistString:h.responseText,url:e.uri,id:e.id}),this.trigger("HAVE_MAIN_MANIFEST"===i?"loadedmetadata":"mediachange")}})}pause(){this.mediaUpdateTimeout&&(C().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.state=this.media_?"HAVE_METADATA":"HAVE_MAIN_MANIFEST":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}load(e){this.mediaUpdateTimeout&&(C().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);const t=this.media();if(e){const i=t?(t.partTargetDuration||t.targetDuration)/2*1e3:5e3;return void(this.mediaUpdateTimeout=C().setTimeout(()=>{this.mediaUpdateTimeout=null,this.load()},i))}this.started?this.trigger(t&&!t.endList?"mediaupdatetimeout":"loadedplaylist"):this.start()}updateMediaUpdateTimeout_(e){this.mediaUpdateTimeout&&(C().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=C().setTimeout(()=>{this.mediaUpdateTimeout=null,this.trigger("mediaupdatetimeout"),this.updateMediaUpdateTimeout_(e)},e))}start(){if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=C().location.href),this.src.resolvedUri=this.src.uri,void setTimeout(()=>{this.setupInitialPlaylist(this.src)},0);const e={playlistInfo:{type:"multivariant",uri:this.src}};this.trigger({type:"playlistrequeststart",metadata:e}),this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials,requestType:"hls-playlist"},(t,i)=>{if(!this.request)return;if(this.request=null,t)return this.error={status:i.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:i.responseText,code:2,metadata:ks({requestType:i.requestType,request:i,error:t})},"HAVE_NOTHING"===this.state&&(this.started=!1),this.trigger("error");this.trigger({type:"playlistrequestcomplete",metadata:e}),this.src=_a(this.src,i),this.trigger({type:"playlistparsestart",metadata:e});const n=this.parseManifest_({manifestString:i.responseText,url:this.src});e.parsedPlaylist=Ld(n.playlists,e.playlistInfo.type,!1),this.trigger({type:"playlistparsecomplete",metadata:e}),this.setupInitialPlaylist(n)})}srcUri(){return"string"==typeof this.src?this.src:this.src.uri}setupInitialPlaylist(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists)return this.main=e,Ad(this.main,this.srcUri()),e.playlists.forEach(i=>{i.segments=Md(i),i.segments.forEach(n=>{Od(n,i.resolvedUri)})}),this.trigger("loadedplaylist"),void(this.request||this.media(this.main.playlists[0]));const t=this.srcUri()||C().location.href;this.main=((s,e)=>{const t=vn(0,e),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:C().location.href,resolvedUri:C().location.href,playlists:[{uri:e,id:t,resolvedUri:e,attributes:{}}]};return i.playlists[t]=i.playlists[0],i.playlists[e]=i.playlists[0],i})(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}updateOrDeleteClone(e,t){const i=this.main,n=e.ID;let r=i.playlists.length;for(;r--;){const a=i.playlists[r];if(a.attributes["PATHWAY-ID"]===n){const l=a.resolvedUri,h=a.id;if(t){const m=this.createCloneURI_(a.resolvedUri,e),v=vn(n,m),y=this.createCloneAttributes_(n,a.attributes),I=this.createClonePlaylist_(a,v,e,y);i.playlists[r]=I,i.playlists[v]=I,i.playlists[m]=I}else i.playlists.splice(r,1);delete i.playlists[h],delete i.playlists[l]}}this.updateOrDeleteCloneMedia(e,t)}updateOrDeleteCloneMedia(e,t){const i=this.main,n=e.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(r=>{if(i.mediaGroups[r]&&i.mediaGroups[r][n])for(const a in i.mediaGroups[r])if(a===n){for(const l in i.mediaGroups[r][a])i.mediaGroups[r][a][l].playlists.forEach((m,v)=>{const y=i.playlists[m.id],P=y.resolvedUri;delete i.playlists[y.id],delete i.playlists[P]});delete i.mediaGroups[r][a]}}),t&&this.createClonedMediaGroups_(e)}addClonePathway(e,t={}){const i=this.main,n=i.playlists.length,r=this.createCloneURI_(t.resolvedUri,e),a=vn(e.ID,r),l=this.createCloneAttributes_(e.ID,t.attributes),h=this.createClonePlaylist_(t,a,e,l);i.playlists[n]=h,i.playlists[a]=h,i.playlists[r]=h,this.createClonedMediaGroups_(e)}createClonedMediaGroups_(e){const t=e.ID,i=e["BASE-ID"],n=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(r=>{if(n.mediaGroups[r]&&!n.mediaGroups[r][t])for(const a in n.mediaGroups[r])if(a===i){n.mediaGroups[r][t]={};for(const l in n.mediaGroups[r][a]){const h=n.mediaGroups[r][a][l];n.mediaGroups[r][t][l]=Xe({},h);const m=n.mediaGroups[r][t][l],v=this.createCloneURI_(h.resolvedUri,e);m.resolvedUri=v,m.uri=v,m.playlists=[],h.playlists.forEach((y,I)=>{const P=n.playlists[y.id],j=Cd(r,t,l),x=vn(t,j);if(P&&!n.playlists[x]){const z=this.createClonePlaylist_(P,x,e),H=z.resolvedUri;n.playlists[x]=z,n.playlists[H]=z}m.playlists[I]=this.createClonePlaylist_(y,x,e)})}}})}createClonePlaylist_(e,t,i,n){const r=this.createCloneURI_(e.resolvedUri,i),a={resolvedUri:r,uri:r,id:t};return e.segments&&(a.segments=[]),n&&(a.attributes=n),tt(e,a)}createCloneURI_(e,t){const i=new URL(e);i.hostname=t["URI-REPLACEMENT"].HOST;const n=t["URI-REPLACEMENT"].PARAMS;for(const r of Object.keys(n))i.searchParams.set(r,n[r]);return i.href}createCloneAttributes_(e,t){const i={"PATHWAY-ID":e};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(n=>{t[n]&&(i[n]=e)}),i}getKeyIdSet(e){const t=new Set;if(!e||!e.contentProtection)return t;for(const i in e.contentProtection)e.contentProtection[i]&&e.contentProtection[i].attributes&&e.contentProtection[i].attributes.keyId&&t.add(e.contentProtection[i].attributes.keyId.toLowerCase());return t}}const _l=function(s,e,t,i){const n="arraybuffer"===s.responseType?s.response:s.responseText;!e&&n&&(s.responseTime=Date.now(),s.roundTripTime=s.responseTime-s.requestTime,s.bytesReceived=n.byteLength||n.length,s.bandwidth||(s.bandwidth=Math.floor(s.bytesReceived/s.roundTripTime*8*1e3))),t.headers&&(s.responseHeaders=t.headers),e&&"ETIMEDOUT"===e.code&&(s.timedout=!0),!e&&!s.aborted&&200!==t.statusCode&&206!==t.statusCode&&0!==t.statusCode&&(e=new Error("XHR Failed with a response of: "+(s&&(n||s.responseText)))),i(e,s)},Rd=function(){const s=function e(t,i){t=tt({timeout:45e3},t);const n=e.beforeRequest||L.Vhs.xhr.beforeRequest,r=e._requestCallbackSet||L.Vhs.xhr._requestCallbackSet||new Set,a=e._responseCallbackSet||L.Vhs.xhr._responseCallbackSet;n&&"function"==typeof n&&(L.log.warn("beforeRequest is deprecated, use onRequest instead."),r.add(n));const l=!0===L.Vhs.xhr.original?L.xhr:L.Vhs.xhr,h=((s,e)=>{if(!s||!s.size)return;let t=e;return s.forEach(i=>{t=i(t)}),t})(r,t);r.delete(n);const m=l(h||t,function(y,I){return((s,e,t,i)=>{!s||!s.size||s.forEach(n=>{n(e,t,i)})})(a,m,y,I),_l(m,y,I,i)}),v=m.abort;return m.abort=function(){return m.aborted=!0,v.apply(m,arguments)},m.uri=t.uri,m.requestType=t.requestType,m.requestTime=Date.now(),m};return s.original=!0,s},yl=function(s){const e={};return s.byterange&&(e.Range=function(s){let e;const t=s.offset;return e="bigint"==typeof s.offset||"bigint"==typeof s.length?C().BigInt(s.offset)+C().BigInt(s.length)-C().BigInt(1):s.offset+s.length-1,"bytes="+t+"-"+e}(s.byterange)),e},Wg=function(s,e){return s.start(e)+"-"+s.end(e)},Xg=function(s,e){const t=s.toString(16);return"00".substring(0,2-t.length)+t+(e%2?" ":"")},Yg=function(s){return s>=32&&s<126?String.fromCharCode(s):"."},Nd=function(s){const e={};return Object.keys(s).forEach(t=>{const i=s[t];e[t]=Or(i)?{bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:i}),e},Ta=function(s){const e=s.byterange||{length:1/0,offset:0};return[e.length,e.offset,s.resolvedUri].join(",")},Bd=function(s){return s.resolvedUri},Fd=s=>{const e=Array.prototype.slice.call(s),t=16;let n,r,i="";for(let a=0;a<e.length/t;a++)n=e.slice(a*t,a*t+t).map(Xg).join(""),r=e.slice(a*t,a*t+t).map(Yg).join(""),i+=n+" "+r+"\n";return i};var Kg=Object.freeze({__proto__:null,createTransferableMessage:Nd,initSegmentId:Ta,segmentKeyId:Bd,hexDump:Fd,tagDump:({bytes:s})=>Fd(s),textRanges:s=>{let t,e="";for(t=0;t<s.length;t++)e+=Wg(s,t)+" ";return e}});const Vd=({programTime:s,playlist:e,retryCount:t=2,seekTo:i,pauseAfterSeek:n=!0,tech:r,callback:a})=>{if(!a)throw new Error("seekToProgramTime: callback must be provided");if(typeof s>"u"||!e||!i)return a({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!e.endList&&!r.hasStarted_)return a({message:"player must be playing a live stream to start buffering"});if(!(s=>{if(!s.segments||0===s.segments.length)return!1;for(let e=0;e<s.segments.length;e++)if(!s.segments[e].dateTimeObject)return!1;return!0})(e))return a({message:"programDateTime tags must be provided in the manifest "+e.resolvedUri});const l=((s,e)=>{let t;try{t=new Date(s)}catch{return null}if(!e||!e.segments||0===e.segments.length)return null;let i=e.segments[0];if(t<new Date(i.dateTimeObject))return null;for(let h=0;h<e.segments.length-1&&(i=e.segments[h],!(t<new Date(e.segments[h+1].dateTimeObject)));h++);const n=e.segments[e.segments.length-1],r=n.dateTimeObject,a=n.videoTimingInfo?(s=>s.transmuxedPresentationEnd-s.transmuxedPresentationStart-s.transmuxerPrependedSeconds)(n.videoTimingInfo):n.duration+.25*n.duration;return t>new Date(r.getTime()+1e3*a)?null:(t>new Date(r)&&(i=n),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:Gt.duration(e,e.mediaSequence+e.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})})(s,e);if(!l)return a({message:`${s} was not found in the stream`});const h=l.segment,m=((s,e)=>{let t,i;try{t=new Date(s),i=new Date(e)}catch{}const n=t.getTime();return(i.getTime()-n)/1e3})(h.dateTimeObject,s);if("estimate"===l.type)return 0===t?a({message:`${s} is not buffered yet. Try again`}):(i(l.estimatedStart+m),void r.one("seeked",()=>{Vd({programTime:s,playlist:e,retryCount:t-1,seekTo:i,pauseAfterSeek:n,tech:r,callback:a})}));const v=h.start+m;r.one("seeked",()=>a(null,r.currentTime())),n&&r.pause(),i(v)},bl=(s,e)=>{if(4===s.readyState)return e()},{EventTarget:r0}=L,Hd=function(s,e){if(!jd(s,e)||s.sidx&&e.sidx&&(s.sidx.offset!==e.sidx.offset||s.sidx.length!==e.sidx.length))return!1;if(!s.sidx&&e.sidx||s.sidx&&!e.sidx||s.segments&&!e.segments||!s.segments&&e.segments)return!1;if(!s.segments&&!e.segments)return!0;for(let t=0;t<s.segments.length;t++){const i=s.segments[t],n=e.segments[t];if(i.uri!==n.uri)return!1;if(!i.byterange&&!n.byterange)continue;const r=i.byterange,a=n.byterange;if(r&&!a||!r&&a||r.offset!==a.offset||r.length!==a.length)return!1}return!0},a0=(s,e,t,i)=>`placeholder-uri-${s}-${e}-${i.attributes.NAME||t}`,c0=(s,e)=>(!s.map&&!e.map||!(!s.map||!e.map||s.map.byterange.offset!==e.map.byterange.offset||s.map.byterange.length!==e.map.byterange.length))&&s.uri===e.uri&&s.byterange.offset===e.byterange.offset&&s.byterange.length===e.byterange.length,qd=(s,e)=>{const t={};for(const i in s){const r=s[i].sidx;if(r){const a=Lr(r);if(!e[a])break;c0(e[a].sidxInfo,r)&&(t[a]=e[a])}}return t};class Tl extends r0{constructor(e,t,i={},n){super(),this.isPaused_=!0,this.mainPlaylistLoader_=n||this,n||(this.isMain_=!0);const{withCredentials:r=!1}=i;if(this.vhs_=t,this.withCredentials=r,this.addMetadataToTextTrack=i.addMetadataToTextTrack,!e)throw new Error("A non-empty playlist URL or object is required");this.on("minimumUpdatePeriod",()=>{this.refreshXml_()}),this.on("mediaupdatetimeout",()=>{this.refreshMedia_(this.media().id)}),this.state="HAVE_NOTHING",this.loadedPlaylists_={},this.logger_=ci("DashPlaylistLoader"),this.isMain_?(this.mainPlaylistLoader_.srcUrl=e,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=e}get isPaused(){return this.isPaused_}requestErrored_(e,t,i){return!this.request||(this.request=null,e?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2,metadata:e.metadata}:e,i&&(this.state=i),this.trigger("error"),!0):void 0)}addSidxSegments_(e,t,i){const n=e.sidx&&Lr(e.sidx);if(!e.sidx||!n||this.mainPlaylistLoader_.sidxMapping_[n])return C().clearTimeout(this.mediaRequest_),void(this.mediaRequest_=C().setTimeout(()=>i(!1),0));const r=_a(e.sidx.resolvedUri),a=(h,m)=>{if(this.requestErrored_(h,m,t))return;const v=this.mainPlaylistLoader_.sidxMapping_,{requestType:y}=m;let I;try{I=Cp()(Ie(m.response).subarray(8))}catch(P){return P.metadata=ks({requestType:y,request:m,parseFailure:!0}),void this.requestErrored_(P,m,t)}return v[n]={sidxInfo:e.sidx,sidx:I},io(e,I,e.sidx.resolvedUri),i(!0)};this.request=((s,e,t,i)=>{let r,n=[],a=!1;const l=function(y,I,P,j){return I.abort(),a=!0,t(y,I,P,j)},h=function(y,I){if(a)return;if(y)return y.metadata=ks({requestType:i,request:I,error:y}),l(y,I,"",n);const P=I.responseText.substring(n&&n.byteLength||0,I.responseText.length);if(n=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if((t=t.filter(function(l){return l&&(l.byteLength||l.length)&&"string"!=typeof l})).length<=1)return Ie(t[0]);var n=t.reduce(function(l,h,m){return l+(h.byteLength||h.length)},0),r=new Uint8Array(n),a=0;return t.forEach(function(l){l=Ie(l),r.set(l,a),a+=l.byteLength}),r}(n,si(P,!0)),r=r||Un(n),n.length<10||r&&n.length<r+2)return bl(I,()=>l(y,I,"",n));const j=fo(n);return"ts"===j&&n.length<188||!j&&n.length<376?bl(I,()=>l(y,I,"",n)):l(null,I,j,n)},v=e({uri:s,beforeSend(y){y.overrideMimeType("text/plain; charset=x-user-defined"),y.addEventListener("progress",function({}){return _l(y,null,{statusCode:y.status},h)})}},function(y,I){return _l(v,y,I,h)});return v})(r,this.vhs_.xhr,(h,m,v,y)=>{if(h)return a(h,m);if(!v||"mp4"!==v)return a({status:m.status,message:`Unsupported ${v||"unknown"} container type for sidx segment at URL: ${r}`,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},m);const{offset:I,length:P}=e.sidx.byterange;if(y.length>=P+I)return a(h,{response:y.subarray(I,I+P),status:m.status,uri:m.uri});this.request=this.vhs_.xhr({uri:r,responseType:"arraybuffer",requestType:"dash-sidx",headers:yl({byterange:e.sidx.byterange})},a)},"dash-sidx")}dispose(){this.isPaused_=!0,this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},C().clearTimeout(this.minimumUpdatePeriodTimeout_),C().clearTimeout(this.mediaRequest_),C().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}hasPendingRequest(){return this.request||this.mediaRequest_}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);const t=this.state;if("string"==typeof e){if(!this.mainPlaylistLoader_.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.mainPlaylistLoader_.main.playlists[e]}const i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,t,n=>{this.haveMetadata({startingState:t,playlist:e})}))}haveMetadata({startingState:e,playlist:t}){this.state="HAVE_METADATA",this.loadedPlaylists_[t.id]=t,C().clearTimeout(this.mediaRequest_),this.mediaRequest_=null,this.refreshMedia_(t.id),this.trigger("HAVE_MAIN_MANIFEST"===e?"loadedmetadata":"mediachange")}pause(){this.isPaused_=!0,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),C().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(C().clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)}load(e){this.isPaused_=!1,C().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;const t=this.media();if(e){const i=t?t.targetDuration/2*1e3:5e3;return void(this.mediaUpdateTimeout=C().setTimeout(()=>this.load(),i))}this.started?t&&!t.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()}start(){if(this.started=!0,!this.isMain_)return C().clearTimeout(this.mediaRequest_),void(this.mediaRequest_=C().setTimeout(()=>this.haveMain_(),0));this.requestMain_((e,t)=>{this.haveMain_(),!this.hasPendingRequest()&&!this.media_&&this.media(this.mainPlaylistLoader_.main.playlists[0])})}requestMain_(e){const t={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:"manifestrequeststart",metadata:t}),this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials,requestType:"dash-manifest"},(i,n)=>{if(i){const{requestType:a}=n;i.metadata=ks({requestType:a,request:n,error:i})}if(this.requestErrored_(i,n))return void("HAVE_NOTHING"===this.state&&(this.started=!1));this.trigger({type:"manifestrequestcomplete",metadata:t});const r=n.responseText!==this.mainPlaylistLoader_.mainXml_;return this.mainPlaylistLoader_.mainXml_=n.responseText,this.mainLoaded_=n.responseHeaders&&n.responseHeaders.date?Date.parse(n.responseHeaders.date):Date.now(),this.mainPlaylistLoader_.srcUrl=_a(this.mainPlaylistLoader_.srcUrl,n),r?(this.handleMain_(),void this.syncClientServerClock_(()=>e(n,r))):e(n,r)})}syncClientServerClock_(e){const t=(s=>(s=>{const e=pt(s,"UTCTiming")[0];if(!e)return null;const t=Ct(e);switch(t.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":t.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":t.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":t.method="DIRECT",t.value=Date.parse(t.value);break;default:throw new Error("UNSUPPORTED_UTC_TIMING_SCHEME")}return t})(pu(s)))(this.mainPlaylistLoader_.mainXml_);return null===t?(this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()):"DIRECT"===t.method?(this.mainPlaylistLoader_.clientOffset_=t.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:$t(this.mainPlaylistLoader_.srcUrl,t.value),method:t.method,withCredentials:this.withCredentials,requestType:"dash-clock-sync"},(i,n)=>{if(!this.request)return;if(i){const{requestType:a}=n;return this.error.metadata=ks({requestType:a,request:n,error:i}),this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()}let r;r="HEAD"===t.method?n.responseHeaders&&n.responseHeaders.date?Date.parse(n.responseHeaders.date):this.mainLoaded_:Date.parse(n.responseText),this.mainPlaylistLoader_.clientOffset_=r-Date.now(),e()}))}haveMain_(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}handleMain_(){C().clearTimeout(this.mediaRequest_),this.mediaRequest_=null;const e=this.mainPlaylistLoader_.main,t={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};let i;this.trigger({type:"manifestparsestart",metadata:t});try{i=(({mainXml:s,srcUrl:e,clientOffset:t,sidxMapping:i,previousManifest:n})=>{const r=((s,e={})=>{const t=((s,e={})=>{const{manifestUri:t="",NOW:i=Date.now(),clientOffset:n=0,eventHandler:r=function(){}}=e,a=pt(s,"Period");if(!a.length)throw new Error("INVALID_NUMBER_OF_PERIOD");const l=pt(s,"Location"),h=Ct(s),m=Rr([{baseUrl:t}],pt(s,"BaseURL")),v=pt(s,"ContentSteering");h.type=h.type||"static",h.sourceDuration=h.mediaPresentationDuration||0,h.NOW=i,h.clientOffset=n,l.length&&(h.locations=l.map(Fn));const y=[];return a.forEach((I,P)=>{const j=Ct(I),x=y[P-1];j.start=(({attributes:s,priorPeriodAttributes:e,mpdType:t})=>"number"==typeof s.start?s.start:e&&"number"==typeof e.start&&"number"==typeof e.duration?e.start+e.duration:e||"static"!==t?null:0)({attributes:j,priorPeriodAttributes:x?x.attributes:null,mpdType:h.type}),y.push({node:I,attributes:j})}),{locations:h.locations,contentSteeringInfo:vp(v,r),representationInfo:ni(y.map(gp(h,m))),eventStream:ni(y.map(pp))}})(pu(s),e),i=(s=>s.map(rp))(t.representationInfo);return Qf({dashPlaylists:i,locations:t.locations,contentSteering:t.contentSteeringInfo,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest,eventStream:t.eventStream})})(s,{manifestUri:e,clientOffset:t,sidxMapping:i,previousManifest:n});return Ad(r,e,a0),r})({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:e})}catch(r){this.error=r,this.error.metadata={errorType:L.Error.StreamingDashManifestParserError,error:r},this.trigger("error")}e&&(i=((s,e,t)=>{let i=!0,n=tt(s,{duration:e.duration,minimumUpdatePeriod:e.minimumUpdatePeriod,timelineStarts:e.timelineStarts});for(let r=0;r<e.playlists.length;r++){const a=e.playlists[r];if(a.sidx){const h=Lr(a.sidx);t&&t[h]&&t[h].sidx&&io(a,t[h].sidx,a.sidx.resolvedUri)}const l=gl(n,a,Hd);l&&(n=l,i=!1)}return _n(e,(r,a,l,h)=>{if(r.playlists&&r.playlists.length){const m=r.playlists[0].id,v=gl(n,r.playlists[0],Hd);v&&(n=v,h in n.mediaGroups[a][l]||(n.mediaGroups[a][l][h]=r),n.mediaGroups[a][l][h].playlists[0]=n.playlists[m],i=!1)}}),((s,e)=>{_n(s,(t,i,n,r)=>{(!e.mediaGroups[i][n]||!(r in e.mediaGroups[i][n]))&&delete s.mediaGroups[i][n][r]})})(n,e),e.minimumUpdatePeriod!==s.minimumUpdatePeriod&&(i=!1),i?null:n})(e,i,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=i||e;const n=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];if(n&&n!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=n),(!e||i&&i.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(i),i){const{duration:r,endList:a}=i,l=[];
vendor: 4,894 bytes, line 1
1i.playlists.forEach(m=>{l.push({id:m.id,bandwidth:m.attributes.BANDWIDTH,resolution:m.attributes.RESOLUTION,codecs:m.attributes.CODECS})}),t.parsedManifest={duration:r,isLive:!a,renditions:l},this.trigger({type:"manifestparsecomplete",metadata:t})}return!!i}updateMinimumUpdatePeriodTimeout_(){const e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(C().clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);let t=e.main&&e.main.minimumUpdatePeriod;0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0?t<0&&this.logger_(`found invalid minimumUpdatePeriod of ${t}, not setting a timeout`):this.createMUPTimeout_(t)}createMUPTimeout_(e){const t=this.mainPlaylistLoader_;t.minimumUpdatePeriodTimeout_=C().setTimeout(()=>{t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)}refreshXml_(){this.requestMain_((e,t)=>{t&&(this.media_&&(this.media_=this.mainPlaylistLoader_.main.playlists[this.media_.id]),this.mainPlaylistLoader_.sidxMapping_=((s,e)=>{let i=qd(s.playlists,e);return _n(s,(n,r,a,l)=>{n.playlists&&n.playlists.length&&(i=tt(i,qd(n.playlists,e)))}),i})(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.sidxMapping_),this.addSidxSegments_(this.media(),this.state,i=>{this.refreshMedia_(this.media().id)}))})}refreshMedia_(e){if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();const t=this.mainPlaylistLoader_.main.playlists,i=!this.media_||this.media_!==t[e];if(i?this.media_=t[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){const n=()=>{this.media().endList||(this.mediaUpdateTimeout=C().setTimeout(()=>{this.trigger("mediaupdatetimeout"),n()},vl(this.media(),!!i)))};n()}this.trigger("loadedplaylist")}addEventStreamToMetadataTrack_(e){if(e&&this.mainPlaylistLoader_.main.eventStream){const t=this.mainPlaylistLoader_.main.eventStream.map(i=>({cueTime:i.start,frames:[{data:i.messageData}]}));this.addMetadataToTextTrack("EventStream",t,this.mainPlaylistLoader_.main.duration)}}getKeyIdSet(e){if(e.contentProtection){const t=new Set;for(const i in e.contentProtection){const n=e.contentProtection[i].attributes["cenc:default_KID"];n&&t.add(n.replace(/-/g,"").toLowerCase())}return t}}}var It={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30};const zd=function(s){return s.on=s.addEventListener,s.off=s.removeEventListener,s},$d=function(s){return function(){const e=function(s){try{return URL.createObjectURL(new Blob([s],{type:"application/javascript"}))}catch{const t=new BlobBuilder;return t.append(s),URL.createObjectURL(t.getBlob())}}(s),t=zd(new Worker(e));t.objURL=e;const i=t.terminate;return t.on=t.addEventListener,t.off=t.removeEventListener,t.terminate=function(){return URL.revokeObjectURL(e),i.call(this)},t}},Gd=function(s){return`var browserWorkerPolyFill = ${zd.toString()};\nbrowserWorkerPolyFill(self);\n`+s},Wd=function(s){return s.toString().replace(/^function.+?{/,"").slice(0,-1)},p0=Gd(Wd(function(){var s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=function(){this.init=function(){var o={};this.on=function(u,c){o[u]||(o[u]=[]),o[u]=o[u].concat(c)},this.off=function(u,c){var d;return!!o[u]&&(d=o[u].indexOf(c),o[u]=o[u].slice(),o[u].splice(d,1),d>-1)},this.trigger=function(u){var c,d,f,g;if(c=o[u])if(2===arguments.length)for(f=c.length,d=0;d<f;++d)c[d].call(this,arguments[1]);else{for(g=[],d=arguments.length,d=1;d<arguments.length;++d)g.push(arguments[d]);for(f=c.length,d=0;d<f;++d)c[d].apply(this,g)}},this.dispose=function(){o={}}}};e.prototype.pipe=function(o){return this.on("data",function(u){o.push(u)}),this.on("done",function(u){o.flush(u)}),this.on("partialdone",function(u){o.partialFlush(u)}),this.on("endedtimeline",function(u){o.endTimeline(u)}),this.on("reset",function(u){o.reset(u)}),o},e.prototype.push=function(o){this.trigger("data",o)},e.prototype.flush=function(o){this.trigger("done",o)},e.prototype.partialFlush=function(o){this.trigger("partialdone",o)},e.prototype.endTimeline=function(o){this.trigger("endedtimeline",o)},e.prototype.reset=function(o){this.trigger("reset",o)};var l,h,m,v,y,I,P,j,x,z,H,U,R,Q,X,ce,Y,fe,We,mt,Pt,gt,Oe,it,di,Xi,hs,Ps,Os,Ms,js,Ls,Aa,Bh,Fh,Uh,o,u,t=e,i=Math.pow(2,32),r={getUint64:function(o){var c,u=new DataView(o.buffer,o.byteOffset,o.byteLength);return u.getBigUint64?(c=u.getBigUint64(0))<Number.MAX_SAFE_INTEGER?
vendor: 12,408 bytes, line 1
1Number(c):c:u.getUint32(0)*i+u.getUint32(4)},MAX_UINT32:i},a=r.MAX_UINT32;(function(){var o;if(Oe={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},!(typeof Uint8Array>"u")){for(o in Oe)Oe.hasOwnProperty(o)&&(Oe[o]=[o.charCodeAt(0),o.charCodeAt(1),o.charCodeAt(2),o.charCodeAt(3)]);it=new Uint8Array([105,115,111,109]),Xi=new Uint8Array([97,118,99,49]),di=new Uint8Array([0,0,0,1]),hs=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),Ps=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),Os={video:hs,audio:Ps},Ls=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),js=new Uint8Array([0,0,0,0,0,0,0,0]),Aa=new Uint8Array([0,0,0,0,0,0,0,0]),Bh=Aa,Fh=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Uh=Aa,Ms=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),l=function(o){var d,f,u=[],c=0;for(d=1;d<arguments.length;d++)u.push(arguments[d]);for(d=u.length;d--;)c+=u[d].byteLength;for(f=new Uint8Array(c+8),new DataView(f.buffer,f.byteOffset,f.byteLength).setUint32(0,f.byteLength),f.set(o,4),d=0,c=8;d<u.length;d++)f.set(u[d],c),c+=u[d].byteLength;return f},h=function(){return l(Oe.dinf,l(Oe.dref,Ls))},m=function(o){return l(Oe.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,o.audioobjecttype<<3|o.samplingfrequencyindex>>>1,o.samplingfrequencyindex<<7|o.channelcount<<3,6,1,2]))},v=function(){return l(Oe.ftyp,it,di,it,Xi)},ce=function(o){return l(Oe.hdlr,Os[o])},y=function(o){return l(Oe.mdat,o)},X=function(o){var u=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,o.duration>>>24&255,o.duration>>>16&255,o.duration>>>8&255,255&o.duration,85,196,0,0]);return o.samplerate&&(u[12]=o.samplerate>>>24&255,u[13]=o.samplerate>>>16&255,u[14]=o.samplerate>>>8&255,u[15]=255&o.samplerate),l(Oe.mdhd,u)},Q=function(o){return l(Oe.mdia,X(o),ce(o.type),P(o))},I=function(o){return l(Oe.mfhd,new Uint8Array([0,0,0,0,(4278190080&o)>>24,(16711680&o)>>16,(65280&o)>>8,255&o]))},P=function(o){return l(Oe.minf,"video"===o.type?l(Oe.vmhd,Ms):l(Oe.smhd,js),h(),fe(o))},j=function(o,u){for(var c=[],d=u.length;d--;)c[d]=mt(u[d]);return l.apply(null,[Oe.moof,I(o)].concat(c))},x=function(o){for(var u=o.length,c=[];u--;)c[u]=U(o[u]);return l.apply(null,[Oe.moov,H(4294967295)].concat(c).concat(z(o)))},z=function(o){for(var u=o.length,c=[];u--;)c[u]=Pt(o[u]);return l.apply(null,[Oe.mvex].concat(c))},H=function(o){var u=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&o)>>24,(16711680&o)>>16,(65280&o)>>8,255&o,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return l(Oe.mvhd,u)},Y=function(o){var d,f,u=o.samples||[],c=new Uint8Array(4+u.length);for(f=0;f<u.length;f++)c[f+4]=(d=u[f].flags).dependsOn<<4|d.isDependedOn<<2|d.hasRedundancy;return l(Oe.sdtp,c)},fe=function(o){return l(Oe.stbl,We(o),l(Oe.stts,Uh),l(Oe.stsc,Bh),l(Oe.stsz,Fh),l(Oe.stco,Aa))},We=function(c){return l(Oe.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===c.type?o(c):u(c))},o=function(c){var S,E,d=c.sps||[],f=c.pps||[],g=[],b=[];for(S=0;S<d.length;S++)g.push((65280&d[S].byteLength)>>>8),g.push(255&d[S].byteLength),g=g.concat(Array.prototype.slice.call(d[S]));for(S=0;S<f.length;S++)b.push((65280&f[S].byteLength)>>>8),b.push(255&f[S].byteLength),b=b.concat(Array.prototype.slice.call(f[S]));if(E=[Oe.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&c.width)>>8,255&c.width,(65280&c.height)>>8,255&c.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),l(Oe.avcC,new Uint8Array([1,c.profileIdc,c.profileCompatibility,c.levelIdc,255].concat([d.length],g,[f.length],b))),l(Oe.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],c.sarRatio){var w=c.sarRatio[0],O=c.sarRatio[1];E.push(l(Oe.pasp,new Uint8Array([(4278190080&w)>>24,(16711680&w)>>16,(65280&w)>>8,255&w,(4278190080&O)>>24,(16711680&O)>>16,(65280&O)>>8,255&O])))}return l.apply(null,E)},u=function(c){return l(Oe.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&c.channelcount)>>8,255&c.channelcount,(65280&c.samplesize)>>8,255&c.samplesize,0,0,0,0,(65280&c.samplerate)>>8,255&c.samplerate,0,0]),m(c))},R=function(o){var u=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&o.id)>>24,(16711680&o.id)>>16,(65280&o.id)>>8,255&o.id,0,0,0,0,(4278190080&o.duration)>>24,(16711680&o.duration)>>16,(65280&o.duration)>>8,255&o.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&o.width)>>8,255&o.width,0,0,(65280&o.height)>>8,255&o.height,0,0]);return l(Oe.tkhd,u)},mt=function(o){var u,c,d,f,b,S;return u=l(Oe.tfhd,new Uint8Array([0,0,0,58,(4278190080&o.id)>>24,(16711680&o.id)>>16,(65280&o.id)>>8,255&o.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),b=Math.floor(o.baseMediaDecodeTime/a),S=Math.floor(o.baseMediaDecodeTime%a),c=l(Oe.tfdt,new Uint8Array([1,0,0,0,b>>>24&255,b>>>16&255,b>>>8&255,255&b,S>>>24&255,S>>>16&255,S>>>8&255,255&S])),"audio"===o.type?(d=gt(o,92),l(Oe.traf,u,c,d)):(f=Y(o),d=gt(o,f.length+92),l(Oe.traf,u,c,d,f))},U=function(o){return o.duration=o.duration||4294967295,l(Oe.trak,R(o),Q(o))},Pt=function(o){var u=new Uint8Array([0,0,0,0,(4278190080&o.id)>>24,(16711680&o.id)>>16,(65280&o.id)>>8,255&o.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==o.type&&(u[u.length-1]=0),l(Oe.trex,u)},function(){var o,u,c;c=function(d,f){var g=0,b=0,S=0,E=0;return d.length&&(void 0!==d[0].duration&&(g=1),void 0!==d[0].size&&(b=2),void 0!==d[0].flags&&(S=4),void 0!==d[0].compositionTimeOffset&&(E=8)),[0,0,g|b|S|E,1,(4278190080&d.length)>>>24,(16711680&d.length)>>>16,(65280&d.length)>>>8,255&d.length,(4278190080&f)>>>24,(16711680&f)>>>16,(65280&f)>>>8,255&f]},u=function(d,f){var g,b,S,E,w,O;for(S=c(E=d.samples||[],f+=20+16*E.length),(b=new Uint8Array(S.length+16*E.length)).set(S),g=S.length,O=0;O<E.length;O++)b[g++]=(4278190080&(w=E[O]).duration)>>>24,b[g++]=(16711680&w.duration)>>>16,b[g++]=(65280&w.duration)>>>8,b[g++]=255&w.duration,b[g++]=(4278190080&w.size)>>>24,b[g++]=(16711680&w.size)>>>16,b[g++]=(65280&w.size)>>>8,b[g++]=255&w.size,b[g++]=w.flags.isLeading<<2|w.flags.dependsOn,b[g++]=w.flags.isDependedOn<<6|w.flags.hasRedundancy<<4|w.flags.paddingValue<<1|w.flags.isNonSyncSample,b[g++]=61440&w.flags.degradationPriority,b[g++]=15&w.flags.degradationPriority,b[g++]=(4278190080&w.compositionTimeOffset)>>>24,b[g++]=(16711680&w.compositionTimeOffset)>>>16,b[g++]=(65280&w.compositionTimeOffset)>>>8,b[g++]=255&w.compositionTimeOffset;return l(Oe.trun,b)},o=function(d,f){var g,b,S,E,w,O;for(S=c(E=d.samples||[],f+=20+8*E.length),(g=new Uint8Array(S.length+8*E.length)).set(S),b=S.length,O=0;O<E.length;O++)g[b++]=(4278190080&(w=E[O]).duration)>>>24,g[b++]=(16711680&w.duration)>>>16,g[b++]=(65280&w.duration)>>>8,g[b++]=255&w.duration,g[b++]=(4278190080&w.size)>>>24,g[b++]=(16711680&w.size)>>>16,g[b++]=(65280&w.size)>>>8,g[b++]=255&w.size;return l(Oe.trun,g)},gt=function(d,f){return"audio"===d.type?o(d,f):u(d,f)}}();var Ol,jl,Ll,wa,Rl,Hh,qh,zh,uy={ftyp:v,mdat:y,moof:j,moov:x,initSegment:function(o){var d,u=v(),c=x(o);return(d=new Uint8Array(u.byteLength+c.byteLength)).set(u),d.set(c,u.byteLength),d}},Vh=function(o,u){var c={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return c.dataOffset=u,c.compositionTimeOffset=o.pts-o.dts,c.duration=o.duration,c.size=4*o.length,c.size+=o.byteLength,o.keyFrame&&(c.flags.dependsOn=2,c.flags.isNonSyncSample=0),c},_y={groupNalsIntoFrames:function(o){var u,c,d=[],f=[];for(f.byteLength=0,f.nalCount=0,f.duration=0,d.byteLength=0,u=0;u<o.length;u++)"access_unit_delimiter_rbsp"===(c=o[u]).nalUnitType?(d.length&&(d.duration=c.dts-d.dts,f.byteLength+=d.byteLength,f.nalCount+=d.length,f.duration+=d.duration,f.push(d)),(d=[c]).byteLength=c.data.byteLength,d.pts=c.pts,d.dts=c.dts):("slice_layer_without_partitioning_rbsp_idr"===c.nalUnitType&&(d.keyFrame=!0),d.duration=c.dts-d.dts,d.byteLength+=c.data.byteLength,d.push(c));return f.length&&(!d.duration||d.duration<=0)&&(d.duration=f[f.length-1].duration),f.byteLength+=d.byteLength,f.nalCount+=d.length,f.duration+=d.duration,f.push(d),f},groupFramesIntoGops:function(o){var u,c,d=[],f=[];for(d.byteLength=0,d.nalCount=0,d.duration=0,d.pts=o[0].pts,d.dts=o[0].dts,f.byteLength=0,f.nalCount=0,f.duration=0,f.pts=o[0].pts,f.dts=o[0].dts,u=0;u<o.length;u++)(c=o[u]).keyFrame?(d.length&&(f.push(d),f.byteLength+=d.byteLength,f.nalCount+=d.nalCount,f.duration+=d.duration),(d=[c]).nalCount=c.length,d.byteLength=c.byteLength,d.pts=c.pts,d.dts=c.dts,d.duration=c.duration):(d.duration+=c.duration,d.nalCount+=c.length,d.byteLength+=c.byteLength,d.push(c));return f.length&&d.duration<=0&&(d.duration=f[f.length-1].duration),f.byteLength+=d.byteLength,f.nalCount+=d.nalCount,f.duration+=d.duration,f.push(d),f},extendFirstKeyFrame:function(o){var u;return!o[0][0].keyFrame&&o.length>1&&(u=o.shift(),o.byteLength-=u.byteLength,o.nalCount-=u.nalCount,o[0][0].dts=u.dts,o[0][0].pts=u.pts,o[0][0].duration+=u.duration),o},generateSampleTable:function(o,u){var c,d,f,g,S=u||0,E=[];for(c=0;c<o.length;c++)for(g=o[c],d=0;d<g.length;d++)S+=(f=Vh(g[d],S)).size,E.push(f);return E},concatenateNalData:function(o){var u,c,d,f,g,b,S=0,V=new Uint8Array(o.byteLength+4*o.nalCount),_e=new DataView(V.buffer);for(u=0;u<o.length;u++)for(f=o[u],c=0;c<f.length;c++)for(g=f[c],d=0;d<g.length;d++)_e.setUint32(S,(b=g[d]).data.byteLength),V.set(b.data,S+=4),S+=b.data.byteLength;return V},generateSampleTableForFrame:function(o,u){var c,f=[];return c=Vh(o,u||0),f.push(c),f},concatenateNalDataForFrame:function(o){var u,c,d=0,S=new Uint8Array(o.byteLength+4*o.length),E=new DataView(S.buffer);for(u=0;u<o.length;u++)E.setUint32(d,(c=o[u]).data.byteLength),S.set(c.data,d+=4),d+=c.data.byteLength;return S}},fs=[33,16,5,32,164,27],Pl=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],st=function(o){for(var u=[];o--;)u.push(0);return u};jl=function(o){return 9e4*o},Ll=function(o,u){return o*u},wa=function(o){return o/9e4},Rl=function(o,u){return o/u},Hh=function(o,u){return jl(Rl(o,u))},qh=function(o,u){return Ll(wa(o),u)},zh=function(o,u,c){return wa(c?o:o-u)};var ht={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:jl,secondsToAudioTs:Ll,videoTsToSeconds:wa,audioTsToSeconds:Rl,audioTsToVideoTs:Hh,videoTsToAudioTs:qh,metadataTsToSeconds:zh},Da=ht,wy={prefixWithSilence:function(o,u,c,d){var f,w,O,V,g=0,b=0,S=0,E=0;if(u.length&&(f=Da.audioTsToVideoTs(o.baseMediaDecodeTime,o.samplerate),g=Math.ceil(Da.ONE_SECOND_IN_TS/(o.samplerate/1024)),c&&d&&(b=f-Math.max(c,d),E=(S=Math.floor(b/g))*g),!(S<1||E>Da.ONE_SECOND_IN_TS/2))){for((w=function(){if(!Ol){var o={96e3:[fs,[227,64],st(154),[56]],88200:[fs,[231],st(170),[56]],64e3:[fs,[248,192],st(240),[56]],48e3:[fs,[255,192],st(268),[55,148,128],st(54),[112]],44100:[fs,[255,192],st(268),[55,163,128],st(84),[112]],32e3:[fs,[255,192],st(268),[55,234],st(226),[112]],24e3:[fs,[255,192],st(268),[55,255,128],st(268),[111,112],st(126),[224]],16e3:[fs,[255,192],st(268),[55,255,128],st(268),[111,255],st(269),[223,108],st(195),[1,192]],12e3:[Pl,st(268),[3,127,248],st(268),[6,255,240],st(268),[13,255,224],st(268),[27,253,128],st(259),[56]],11025:[Pl,st(268),[3,127,248],st(268),[6,255,240],st(268),[13,255,224],st(268),[27,255,192],st(268),[55,175,128],st(108),[112]],8e3:[Pl,st(268),[3,121,16],st(47),[7]]};Ol=function(o){return Object.keys(o).reduce(function(u,c){return u[c]=new Uint8Array(o[c].reduce(function(d,f){return d.concat(f)},[])),u},{})}(o)}return Ol}()[o.samplerate])||(w=u[0].data),O=0;O<S;O++)u.splice(0,0,{data:w,dts:(V=u[0]).dts-g,pts:V.pts-g});return o.baseMediaDecodeTime-=Math.floor(Da.videoTsToAudioTs(E,o.samplerate)),E}},trimAdtsFramesByEarliestDts:function(o,u,c){return u.minSegmentDts>=c?o:(u.minSegmentDts=1/0,o.filter(function(d){return d.dts>=c&&(u.minSegmentDts=Math.min(u.minSegmentDts,d.dts),u.minSegmentPts=u.minSegmentDts,!0)}))},generateSampleTable:function(o){var u,d=[];for(u=0;
vendor: 4,106 bytes, line 1
1u<o.length;u++)d.push({size:o[u].data.byteLength,duration:1024});return d},concatenateFrameData:function(o){var u,c,d=0,f=new Uint8Array(function(o){var u,d=0;for(u=0;u<o.length;u++)d+=o[u].data.byteLength;return d}(o));for(u=0;u<o.length;u++)f.set((c=o[u]).data,d),d+=c.data.byteLength;return f}},Dy=ht.ONE_SECOND_IN_TS,Oy={clearDtsInfo:function(o){delete o.minSegmentDts,delete o.maxSegmentDts,delete o.minSegmentPts,delete o.maxSegmentPts},calculateTrackBaseMediaDecodeTime:function(o,u){var c,f=o.minSegmentDts;return u||(f-=o.timelineStartInfo.dts),c=o.timelineStartInfo.baseMediaDecodeTime,c+=f,c=Math.max(0,c),"audio"===o.type&&(c*=o.samplerate/Dy,c=Math.floor(c)),c},collectDtsInfo:function(o,u){"number"==typeof u.pts&&(void 0===o.timelineStartInfo.pts&&(o.timelineStartInfo.pts=u.pts),o.minSegmentPts=void 0===o.minSegmentPts?u.pts:Math.min(o.minSegmentPts,u.pts),o.maxSegmentPts=void 0===o.maxSegmentPts?u.pts:Math.max(o.maxSegmentPts,u.pts)),"number"==typeof u.dts&&(void 0===o.timelineStartInfo.dts&&(o.timelineStartInfo.dts=u.dts),o.minSegmentDts=void 0===o.minSegmentDts?u.dts:Math.min(o.minSegmentDts,u.dts),o.maxSegmentDts=void 0===o.maxSegmentDts?u.dts:Math.max(o.maxSegmentDts,u.dts))}},Gh={parseSei:function(o){for(var u=0,c={payloadType:-1,payloadSize:0},d=0,f=0;u<o.byteLength&&128!==o[u];){for(;255===o[u];)d+=255,u++;for(d+=o[u++];255===o[u];)f+=255,u++;if(f+=o[u++],!c.payload&&4===d){if("GA94"===String.fromCharCode(o[u+3],o[u+4],o[u+5],o[u+6])){c.payloadType=d,c.payloadSize=f,c.payload=o.subarray(u,u+f);break}c.payload=void 0}u+=f,d=0,f=0}return c},parseUserData:function(o){return 181!==o.payload[0]||49!=(o.payload[1]<<8|o.payload[2])||"GA94"!==String.fromCharCode(o.payload[3],o.payload[4],o.payload[5],o.payload[6])||3!==o.payload[7]?null:o.payload.subarray(8,o.payload.length-1)},parseCaptionPackets:function(o,u){var d,f,g,b,c=[];if(!(64&u[0]))return c;for(f=31&u[0],d=0;d<f;d++)b={type:3&u[2+(g=3*d)],pts:o},4&u[g+2]&&(b.ccData=u[g+3]<<8|u[g+4],c.push(b));return c},discardEmulationPreventionBytes:function(o){for(var f,g,u=o.byteLength,c=[],d=1;d<u-2;)0===o[d]&&0===o[d+1]&&3===o[d+2]?(c.push(d+2),d+=2):d++;if(0===c.length)return o;f=u-c.length,g=new Uint8Array(f);var b=0;for(d=0;d<f;b++,d++)b===c[0]&&(b++,c.shift()),g[d]=o[b];return g},USER_DATA_REGISTERED_ITU_T_T35:4},Nl=t,ka=Gh,Wt=function(o){o=o||{},Wt.prototype.init.call(this),this.parse708captions_="boolean"!=typeof o.parse708captions||o.parse708captions,this.captionPackets_=[],this.ccStreams_=[new vt(0,0),new vt(0,1),new vt(1,0),new vt(1,1)],this.parse708captions_&&(this.cc708Stream_=new at({captionServices:o.captionServices})),this.reset(),this.ccStreams_.forEach(function(u){u.on("data",this.trigger.bind(this,"data")),u.on("partialdone",this.trigger.bind(this,"partialdone")),u.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};Wt.prototype=new Nl,Wt.prototype.push=function(o){var u,c,d;if("sei_rbsp"===o.nalUnitType&&(u=ka.parseSei(o.escapedRBSP)).payload&&u.payloadType===ka.USER_DATA_REGISTERED_ITU_T_T35&&(c=ka.parseUserData(u))){if(o.dts<this.latestDts_)return void(this.ignoreNextEqualDts_=!0);if(o.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));d=ka.parseCaptionPackets(o.pts,c),this.captionPackets_=this.captionPackets_.concat(d),this.latestDts_!==o.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=o.dts}},Wt.prototype.flushCCStreams=function(o){this.ccStreams_.forEach(function(u){return"flush"===o?u.flush():u.partialFlush()},this)},Wt.prototype.flushStream=function(o){this.captionPackets_.length?(this.captionPackets_.forEach(function(u,c){u.presortIndex=c}),this.captionPackets_.sort(function(u,c){return u.pts===c.pts?u.presortIndex-c.presortIndex:u.pts-c.pts}),this.captionPackets_.forEach(function(u){u.type<2?this.dispatchCea608Packet(u):this.dispatchCea708Packet(u)}
vendor: 7,805 bytes, line 1
1,this),this.captionPackets_.length=0,this.flushCCStreams(o)):this.flushCCStreams(o)},Wt.prototype.flush=function(){return this.flushStream("flush")},Wt.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Wt.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(o){o.reset()})},Wt.prototype.dispatchCea608Packet=function(o){this.setsTextOrXDSActive(o)?this.activeCea608Channel_[o.type]=null:this.setsChannel1Active(o)?this.activeCea608Channel_[o.type]=0:this.setsChannel2Active(o)&&(this.activeCea608Channel_[o.type]=1),null!==this.activeCea608Channel_[o.type]&&this.ccStreams_[(o.type<<1)+this.activeCea608Channel_[o.type]].push(o)},Wt.prototype.setsChannel1Active=function(o){return 4096==(30720&o.ccData)},Wt.prototype.setsChannel2Active=function(o){return 6144==(30720&o.ccData)},Wt.prototype.setsTextOrXDSActive=function(o){return 256==(28928&o.ccData)||4138==(30974&o.ccData)||6186==(30974&o.ccData)},Wt.prototype.dispatchCea708Packet=function(o){this.parse708captions_&&this.cc708Stream_.push(o)};var By={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},Ia=function(o){return 32<=o&&o<=127||160<=o&&o<=255},Yi=function(o){this.windowNum=o,this.reset()};Yi.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},Yi.prototype.getText=function(){return this.rows.join("\n")},Yi.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},Yi.prototype.newLine=function(o){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(o),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},Yi.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},Yi.prototype.addText=function(o){this.rows[this.rowIdx]+=o},Yi.prototype.backspace=function(){if(!this.isEmpty()){var o=this.rows[this.rowIdx];this.rows[this.rowIdx]=o.substr(0,o.length-1)}};var Pa=function(o,u,c){this.serviceNum=o,this.text="",this.currentWindow=new Yi(-1),this.windows=[],this.stream=c,"string"==typeof u&&this.createTextDecoder(u)};Pa.prototype.init=function(o,u){this.startPts=o;for(var c=0;c<8;c++)this.windows[c]=new Yi(c),"function"==typeof u&&(this.windows[c].beforeRowOverflow=u)},Pa.prototype.setCurrentWindow=function(o){this.currentWindow=this.windows[o]},Pa.prototype.createTextDecoder=function(o){if(typeof TextDecoder>"u")this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(o)}catch(u){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+o+" encoding. "+u})}};var at=function(o){o=o||{},at.prototype.init.call(this);var f,u=this,c=o.captionServices||{},d={};Object.keys(c).forEach(g=>{f=c[g],/^SERVICE/.test(g)&&(d[g]=f.encoding)}),this.serviceEncodings=d,this.current708Packet=null,this.services={},this.push=function(g){3===g.type?(u.new708Packet(),u.add708Bytes(g)):(null===u.current708Packet&&u.new708Packet(),u.add708Bytes(g))}};at.prototype=new Nl,at.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},at.prototype.add708Bytes=function(o){var u=o.ccData,c=u>>>8,d=255&u;this.current708Packet.ptsVals.push(o.pts),this.current708Packet.data.push(c),this.current708Packet.data.push(d)},at.prototype.push708Packet=function(){var o=this.current708Packet,u=o.data,c=null,d=null,f=0,g=u[f++];for(o.seq=g>>6,o.sizeCode=63&g;f<u.length;f++)d=31&(g=u[f++]),7==(c=g>>5)&&d>0&&(c=g=u[f++]),this.pushServiceBlock(c,f,d),d>0&&(f+=d-1)},at.prototype.pushServiceBlock=function(o,u,c){var d,f=u,g=this.current708Packet.data,b=this.services[o];for(b||(b=this.initService(o,f));f<u+c&&f<g.length;f++)Ia(d=g[f])?f=this.handleText(f,b):24===d?f=this.multiByteCharacter(f,b):16===d?f=this.extendedCommands(f,b):128<=d&&d<=135?f=this.setCurrentWindow(f,b):152<=d&&d<=159?f=this.defineWindow(f,b):136===d?f=this.clearWindows(f,b):140===d?f=this.deleteWindows(f,b):137===d?f=this.displayWindows(f,b):138===d?f=this.hideWindows(f,b):139===d?f=this.toggleWindows(f,b):151===d?f=this.setWindowAttributes(f,b):144===d?f=this.setPenAttributes(f,b):145===d?f=this.setPenColor(f,b):146===d?f=this.setPenLocation(f,b):143===d?b=this.reset(f,b):8===d?b.currentWindow.backspace():12===d?b.currentWindow.clearText():13===d?b.currentWindow.pendingNewLine=!0:14===d?b.currentWindow.clearText():141===d&&f++},at.prototype.extendedCommands=function(o,u){var d=this.current708Packet.data[++o];return Ia(d)&&(o=this.handleText(o,u,{isExtended:!0})),o},at.prototype.getPts=function(o){return this.current708Packet.ptsVals[Math.floor(o/2)]},at.prototype.initService=function(o,u){var d,f,c=this;return(d="SERVICE"+o)in this.serviceEncodings&&(f=this.serviceEncodings[d]),this.services[o]=new Pa(o,f,c),this.services[o].init(this.getPts(u),function(g){c.flushDisplayed(g,c.services[o])}),this.services[o]},at.prototype.handleText=function(o,u,c){var O,V,d=c&&c.isExtended,f=c&&c.isMultiByte,g=this.current708Packet.data,b=d?4096:0,S=g[o],w=u.currentWindow;if(f?(V=[S,g[o+1]],o++):V=[S],u.textDecoder_&&!d)O=u.textDecoder_.decode(new Uint8Array(V));else if(f){const K=function _e(K){return K.map(Me=>("0"+(255&Me).toString(16)).slice(-2)).join("")}(V);O=String.fromCharCode(parseInt(K,16))}else O=function(o){var u=By[o]||o;return 4096&o&&o===u?"":String.fromCharCode(u)}(b|S);return w.pendingNewLine&&!w.isEmpty()&&w.newLine(this.getPts(o)),w.pendingNewLine=!1,w.addText(O),o},at.prototype.multiByteCharacter=function(o,u){var c=this.current708Packet.data,f=c[o+2];return Ia(c[o+1])&&Ia(f)&&(o=this.handleText(++o,u,{isMultiByte:!0})),o},at.prototype.setCurrentWindow=function(o,u){return u.setCurrentWindow(7&this.current708Packet.data[o]),o},at.prototype.defineWindow=function(o,u){var c=this.current708Packet.data,d=c[o];u.setCurrentWindow(7&d);var g=u.currentWindow;return d=c[++o],g.visible=(32&d)>>5,g.rowLock=(16&d)>>4,g.columnLock=(8&d)>>3,g.priority=7&d,d=c[++o],g.relativePositioning=(128&d)>>7,g.anchorVertical=127&d,d=c[++o],g.anchorHorizontal=d,d=c[++o],g.anchorPoint=(240&d)>>4,g.rowCount=15&d,d=c[++o],g.columnCount=63&d,d=c[++o],g.windowStyle=(56&d)>>3,g.penStyle=7&d,g.virtualRowCount=g.rowCount+1,o},at.prototype.setWindowAttributes=function(o,u){var c=this.current708Packet.data,d=c[o],f=u.currentWindow.winAttr;return d=c[++o],f.fillOpacity=(192&d)>>6,f.fillRed=(48&d)>>4,f.fillGreen=(12&d)>>2,f.fillBlue=3&d,d=c[++o],f.borderType=(192&d)>>6,f.borderRed=(48&d)>>4,f.borderGreen=(12&d)>>2,f.borderBlue=3&d,d=c[++o],f.borderType+=(128&d)>>5,f.wordWrap=(64&d)>>6,f.printDirection=(48&d)>>4,f.scrollDirection=(12&d)>>2,f.justify=3&d,d=c[++o],f.effectSpeed=(240&d)>>4,f.effectDirection=(12&d)>>2,f.displayEffect=3&d,o},at.prototype.flushDisplayed=function(o,u){for(var c=[],d=0;d<8;d++)u.windows[d].visible&&!u.windows[d].isEmpty()&&c.push(u.windows[d].getText());u.endPts=o,u.text=c.join("\n\n"),this.pushCaption(u),u.startPts=o},at.prototype.pushCaption=function(o){""!==o.text&&(this.trigger("data",{startPts:o.startPts,endPts:o.endPts,text:o.text,stream
vendor: 8,124 bytes, line 1
1:"cc708_"+o.serviceNum}),o.text="",o.startPts=o.endPts)},at.prototype.displayWindows=function(o,u){var d=this.current708Packet.data[++o],f=this.getPts(o);this.flushDisplayed(f,u);for(var g=0;g<8;g++)d&1<<g&&(u.windows[g].visible=1);return o},at.prototype.hideWindows=function(o,u){var d=this.current708Packet.data[++o],f=this.getPts(o);this.flushDisplayed(f,u);for(var g=0;g<8;g++)d&1<<g&&(u.windows[g].visible=0);return o},at.prototype.toggleWindows=function(o,u){var d=this.current708Packet.data[++o],f=this.getPts(o);this.flushDisplayed(f,u);for(var g=0;g<8;g++)d&1<<g&&(u.windows[g].visible^=1);return o},at.prototype.clearWindows=function(o,u){var d=this.current708Packet.data[++o],f=this.getPts(o);this.flushDisplayed(f,u);for(var g=0;g<8;g++)d&1<<g&&u.windows[g].clearText();return o},at.prototype.deleteWindows=function(o,u){var d=this.current708Packet.data[++o],f=this.getPts(o);this.flushDisplayed(f,u);for(var g=0;g<8;g++)d&1<<g&&u.windows[g].reset();return o},at.prototype.setPenAttributes=function(o,u){var c=this.current708Packet.data,d=c[o],f=u.currentWindow.penAttr;return d=c[++o],f.textTag=(240&d)>>4,f.offset=(12&d)>>2,f.penSize=3&d,d=c[++o],f.italics=(128&d)>>7,f.underline=(64&d)>>6,f.edgeType=(56&d)>>3,f.fontStyle=7&d,o},at.prototype.setPenColor=function(o,u){var c=this.current708Packet.data,d=c[o],f=u.currentWindow.penColor;return d=c[++o],f.fgOpacity=(192&d)>>6,f.fgRed=(48&d)>>4,f.fgGreen=(12&d)>>2,f.fgBlue=3&d,d=c[++o],f.bgOpacity=(192&d)>>6,f.bgRed=(48&d)>>4,f.bgGreen=(12&d)>>2,f.bgBlue=3&d,d=c[++o],f.edgeRed=(48&d)>>4,f.edgeGreen=(12&d)>>2,f.edgeBlue=3&d,o},at.prototype.setPenLocation=function(o,u){var c=this.current708Packet.data,d=c[o],f=u.currentWindow.penLoc;return u.currentWindow.pendingNewLine=!0,d=c[++o],f.row=15&d,d=c[++o],f.column=63&d,o},at.prototype.reset=function(o,u){var c=this.getPts(o);return this.flushDisplayed(c,u),this.initService(u.serviceNum,o)};var Uy={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Oa=function(o){return null===o?"":(o=Uy[o]||o,String.fromCharCode(o))},Vy=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Rs=function(){for(var o=[],u=15;u--;)o.push({text:"",indent:0,offset:0});return o},vt=function(o,u){vt.prototype.init.call(this),this.field_=o||0,this.dataChannel_=u||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(c){var d,f,g,b,S;if((d=32639&c.ccData)!==this.lastControlCode_){if(4096==(61440&d)?this.lastControlCode_=d:d!==this.PADDING_&&(this.lastControlCode_=null),g=d>>>8,b=255&d,d!==this.PADDING_)if(d===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(d===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(c.pts),this.flushDisplayed(c.pts),f=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=f,this.startPts_=c.pts;else if(d===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(c.pts);else if(d===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(c.pts);else if(d===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(c.pts);else if(d===this.CARRIAGE_RETURN_)this.clearFormatting(c.pts),this.flushDisplayed(c.pts),this.shiftRowsUp_(),this.startPts_=c.pts;else if(d===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(d===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(c.pts),this.displayed_=Rs();else if(d===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Rs();else if(d===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(c.pts),this.displayed_=Rs()),this.mode_="paintOn",this.startPts_=c.pts;else if(this.isSpecialCharacter(g,b))S=Oa((g=(3&g)<<8)|b),this[this.mode_](c.pts,S),this.column_++;else if(this.isExtCharacter(g,b))"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),S=Oa((g=(3&g)<<8)|b),this[this.mode_](c.pts,S),this.column_++;else if(this.isMidRowCode(g,b))this.clearFormatting(c.pts),this[this.mode_](c.pts," "),this.column_++,!(14&~b)&&this.addFormatting(c.pts,["i"]),!(1&~b)&&this.addFormatting(c.pts,["u"]);else if(this.isOffsetControlCode(g,b)){const w=3&b;this.nonDisplayed_[this.row_].offset=w,this.column_+=w}else if(this.isPAC(g,b)){var E=Vy.indexOf(7968&d);if("rollUp"===this.mode_&&(E-this.rollUpRows_+1<0&&(E=this.rollUpRows_-1),this.setRollUp(c.pts,E)),E!==this.row_&&E>=0&&E<=14&&(this.clearFormatting(c.pts),this.row_=E),1&b&&-1===this.formatting_.indexOf("u")&&this.addFormatting(c.pts,["u"]),!(16&~d)){const w=(14&d)>>1;this.column_=4*w,this.nonDisplayed_[this.row_].indent+=w}this.isColorPAC(b)&&!(14&~b)&&this.addFormatting(c.pts,["i"])}else this.isNormalChar(g)&&(0===b&&(b=null),S=Oa(g),S+=Oa(b),this[this.mode_](c.pts,S),this.column_+=S.length)}else this.lastControlCode_=null}};vt.prototype=new Nl,vt.prototype.flushDisplayed=function(o){const u=d=>{this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+d+"."})},c=[];this.displayed_.forEach((d,f)=>{if(d&&d.text&&d.text.length){try{d.text=d.text.trim()}catch{u(f)}d.text.length&&c.push({text:d.text,line:f+1,position:10+Math.min(70,10*d.indent)+2.5*d.offset})}else null==d&&u(f)}),c.length&&this.trigger("data",{startPts:this.startPts_,endPts:o,content:c,stream:this.name_})},vt.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Rs(),this.nonDisplayed_=Rs(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},vt.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},vt.prototype.isSpecialCharacter=function(o,u){return o===this.EXT_&&u>=48&&u<=63},vt.prototype.isExtCharacter=function(o,u){return(o===this.EXT_+1||o===this.EXT_+2)&&u>=32&&u<=63},vt.prototype.isMidRowCode=function(o,u){return o===this.EXT_&&u>=32&&u<=47},vt.prototype.isOffsetControlCode=function(o,u){return o===this.OFFSET_&&u>=33&&u<=35},vt.prototype.isPAC=function(o,u){return o>=this.BASE_&&o<this.BASE_+8&&u>=64&&u<=127},vt.prototype.isColorPAC=function(o){return o>=64&&o<=79||o>=96&&o<=127},vt.prototype.isNormalChar=function(o){return o>=32&&o<=127},vt.prototype.setRollUp=function(o,u){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(o),this.nonDisplayed_=Rs(),this.displayed_=Rs()),void 0!==u&&u!==this.row_)for(var c=0;c<this.rollUpRows_;c++)this.displayed_[u-c]=this.displayed_[this.row_-c],this.displayed_[this.row_-c]={text:"",indent:0,offset:0};void 0===u&&(u=this.row_),this.topRow_=u-this.rollUpRows_+1},vt.prototype.addFormatting=function(o,u){this.formatting_=this.formatting_.concat(u);var c=u.reduce(function(d,f){return d+"<"+f+">"},"");this[this.mode_](o,c)}
vendor: 2,835 bytes, line 1
1,vt.prototype.clearFormatting=function(o){if(this.formatting_.length){var u=this.formatting_.reverse().reduce(function(c,d){return c+"</"+d+">"},"");this.formatting_=[],this[this.mode_](o,u)}},vt.prototype.popOn=function(o,u){var c=this.nonDisplayed_[this.row_].text;this.nonDisplayed_[this.row_].text=c+=u},vt.prototype.rollUp=function(o,u){var c=this.displayed_[this.row_].text;this.displayed_[this.row_].text=c+=u},vt.prototype.shiftRowsUp_=function(){var o;for(o=0;o<this.topRow_;o++)this.displayed_[o]={text:"",indent:0,offset:0};for(o=this.row_+1;o<15;o++)this.displayed_[o]={text:"",indent:0,offset:0};for(o=this.topRow_;o<this.row_;o++)this.displayed_[o]=this.displayed_[o+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},vt.prototype.paintOn=function(o,u){var c=this.displayed_[this.row_].text;this.displayed_[this.row_].text=c+=u};var Wh={CaptionStream:Wt,Cea608Stream:vt,Cea708Stream:at},ja={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Bl=function(o,u){var c=1;for(o>u&&(c=-1);Math.abs(u-o)>4294967296;)o+=8589934592*c;return o},Fl=function(o){var u,c;Fl.prototype.init.call(this),this.type_=o||"shared",this.push=function(d){"metadata"!==d.type?"shared"!==this.type_&&d.type!==this.type_||(void 0===c&&(c=d.dts),d.dts=Bl(d.dts,c),d.pts=Bl(d.pts,c),u=d.dts,this.trigger("data",d)):this.trigger("data",d)},this.flush=function(){c=u,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){c=void 0,u=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Fl.prototype=new t;var Na,Yh={TimestampRolloverStream:Fl,handleRollover:Bl},La=(o,u,c)=>{if(!o)return-1;for(var d=c;d<o.length;d++)if(o[d]===u)return d;return-1},Kh=function(o,u,c){var d,f="";for(d=u;d<c;d++)f+="%"+("00"+o[d].toString(16)).slice(-2);return f},lr=function(o,u,c){return decodeURIComponent(Kh(o,u,c))},ur=function(o,u,c){return unescape(Kh(o,u,c))},cr=function(o){return o[0]<<21|o[1]<<14|o[2]<<7|o[3]},dr={APIC:function(o){var c,d,u=1;3===o.data[0]&&!((c=La(o.data,0,u))<0)&&(o.mimeType=ur(o.data,u,c),o.pictureType=o.data[u=c+1],u++,!((d=La(o.data,0,u))<0)&&(o.description=lr(o.data,u,d),u=d+1,"--\x3e"===o.mimeType?o.url=ur(o.data,u,o.data.length):o.pictureData=o.data.subarray(u,o.data.length)))},"T*":function(o){3===o.data[0]&&(o.value=lr(o.data,1,o.data.length).replace(/\0*$/,""),o.values=o.value.split("\0"))},TXXX:function(o){var u;3===o.data[0]&&-1!==(u=La(o.data,0,1))&&(o.description=lr(o.data,1,u),o.value=lr(o.data,u+1,o.data.length).replace(/\0*$/,""),o.data=o.value)},"W*":function(o){o.url=ur(o.data,0,o.data.length).replace(/\0.*$/,"")},WXXX:function(o){var u;3===o.data[0]&&-1!==(u=La(o.data,0,1))&&(o.description=lr(o.data,1,u),o.url=ur(o.data,u+1,o.data.length).replace(/\0.*$/,""))},PRIV:function(o){var u;for(u=0;
vendor: 4,261 bytes, line 1
1u<o.data.length;u++)if(0===o.data[u]){o.owner=ur(o.data,0,u);break}o.privateData=o.data.subarray(u+1),o.data=o.privateData}},Qh={parseId3Frames:function(o){var u,d=10,f=0,g=[];if(!(o.length<10||73!==o[0]||68!==o[1]||51!==o[2])){f=cr(o.subarray(6,10)),f+=10,64&o[5]&&(d+=4,d+=cr(o.subarray(10,14)),f-=cr(o.subarray(16,20)));do{if((u=cr(o.subarray(d+4,d+8)))<1)break;var S={id:String.fromCharCode(o[d],o[d+1],o[d+2],o[d+3]),data:o.subarray(d+10,d+u+10)};S.key=S.id,dr[S.id]?dr[S.id](S):"T"===S.id[0]?dr["T*"](S):"W"===S.id[0]&&dr["W*"](S),g.push(S),d+=10,d+=u}while(d<f);return g}},parseSyncSafeInteger:cr,frameParsers:dr},Yy=ja,ps=Qh;Na=function(o){var g,u={descriptor:o&&o.descriptor},c=0,d=[],f=0;if(Na.prototype.init.call(this),this.dispatchType=Yy.METADATA_STREAM_TYPE.toString(16),u.descriptor)for(g=0;g<u.descriptor.length;g++)this.dispatchType+=("00"+u.descriptor[g].toString(16)).slice(-2);this.push=function(b){var S,E,w,O,V;if("timed-metadata"===b.type){if(b.dataAlignmentIndicator&&(f=0,d.length=0),0===d.length&&(b.data.length<10||73!==b.data[0]||68!==b.data[1]||51!==b.data[2]))return void this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});if(d.push(b),f+=b.data.byteLength,1===d.length&&(c=ps.parseSyncSafeInteger(b.data.subarray(6,10)),c+=10),!(f<c)){for(S={data:new Uint8Array(c),frames:[],pts:d[0].pts,dts:d[0].dts},V=0;V<c;)S.data.set(d[0].data.subarray(0,c-V),V),V+=d[0].data.byteLength,f-=d[0].data.byteLength,d.shift();E=10,64&S.data[5]&&(E+=4,E+=ps.parseSyncSafeInteger(S.data.subarray(10,14)),c-=ps.parseSyncSafeInteger(S.data.subarray(16,20)));do{if((w=ps.parseSyncSafeInteger(S.data.subarray(E+4,E+8)))<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if((O={id:String.fromCharCode(S.data[E],S.data[E+1],S.data[E+2],S.data[E+3]),data:S.data.subarray(E+10,E+w+10)}).key=O.id,ps.frameParsers[O.id]?ps.frameParsers[O.id](O):"T"===O.id[0]?ps.frameParsers["T*"](O):"W"===O.id[0]&&ps.frameParsers["W*"](O),"com.apple.streaming.transportStreamTimestamp"===O.owner){var K=O.data,Me=(1&K[3])<<30|K[4]<<22|K[5]<<14|K[6]<<6|K[7]>>>2;Me*=4,O.timeStamp=Me+=3&K[7],void 0===S.pts&&void 0===S.dts&&(S.pts=O.timeStamp,S.dts=O.timeStamp),this.trigger("timestamp",O)}S.frames.push(O),E+=10,E+=w}while(E<c);this.trigger("data",S)}}}},Na.prototype=new t;var Ba,hr,Fa,Ky=Na,Ul=t,Vl=Wh,xi=ja,Qy=Yh.TimestampRolloverStream;Ba=function(){var o=new Uint8Array(188),u=0;Ba.prototype.init.call(this),this.push=function(c){var g,d=0,f=188;for(u?((g=new Uint8Array(c.byteLength+u)).set(o.subarray(0,u)),g.set(c,u),u=0):g=c;f<g.byteLength;)71!==g[d]||71!==g[f]?(d++,f++):(this.trigger("data",g.subarray(d,f)),d+=188,f+=188);d<g.byteLength&&(o.set(g.subarray(d),0),u=g.byteLength-d)},this.flush=function(){188===u&&71===o[0]&&(this.trigger("data",o),u=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){u=0,this.trigger("reset")}},Ba.prototype=new Ul,hr=function(){var o,u,c,d;hr.prototype.init.call(this),d=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,o=function(f,g){var b=0;g.payloadUnitStartIndicator&&(b+=f[b]+1),"pat"===g.type?u(f.subarray(b),g):c(f.subarray(b),g)},u=function(f,g){g.section_number=f[7],g.last_section_number=f[8],d.pmtPid=(31&f[10])<<8|f[11],g.pmtPid=d.pmtPid},c=function(f,g){var S,w;if(1&f[5]){for(d.programMapTable={video:null,audio:null,"timed-metadata":{}},S=3+((15&f[1])<<8|f[2])-4,w=12+((15&f[10])<<8|f[11]);w<S;){var O=f[w],V=(31&f[w+1])<<8|f[w+2];O===xi.H264_STREAM_TYPE&&null===d.programMapTable.video?d.programMapTable.video=V:O===xi.ADTS_STREAM_TYPE&&null===d.programMapTable.audio?d.programMapTable.audio=V:O===xi.METADATA_STREAM_TYPE&&(d.programMapTable["timed-metadata"][V]=O),w+=5+((15&f[w+3])<<8|f[w+4])}g.programMapTable=d.programMapTable}},this.push=function(f){var g={},b=4;if(g.payloadUnitStartIndicator=!!(64&f[1]),g.pid=31&f[1],g.pid<<=8,g.pid|=f[2],(48&f[3])>>>4>1&&(b+=f[b]+1),0===g.pid)g.type="pat",o(f.subarray(b),g),this.trigger("data",g);else if(g.pid===this.pmtPid)for(g.type="pmt",o(f.subarray(b),g),this.trigger("data",g);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());
vendor: 3,056 bytes, line 1
1else void 0===this.programMapTable?this.packetsWaitingForPmt.push([f,b,g]):this.processPes_(f,b,g)},this.processPes_=function(f,g,b){b.streamType=b.pid===this.programMapTable.video?xi.H264_STREAM_TYPE:b.pid===this.programMapTable.audio?xi.ADTS_STREAM_TYPE:this.programMapTable["timed-metadata"][b.pid],b.type="pes",b.data=f.subarray(g),this.trigger("data",b)}},hr.prototype=new Ul,hr.STREAM_TYPES={h264:27,adts:15},Fa=function(){var g,o=this,u=!1,c={data:[],size:0},d={data:[],size:0},f={data:[],size:0},S=function(E,w,O){var Ot,V=new Uint8Array(E.size),_e={type:w},K=0,Me=0,Ve=!1;if(E.data.length&&!(E.size<9)){for(_e.trackId=E.data[0].pid,K=0;K<E.data.length;K++)V.set((Ot=E.data[K]).data,Me),Me+=Ot.data.byteLength;(function(E,w){var O;const V=E[0]<<16|E[1]<<8|E[2];w.data=new Uint8Array,1===V&&(w.packetLength=6+(E[4]<<8|E[5]),w.dataAlignmentIndicator=!!(4&E[6]),192&(O=E[7])&&(w.pts=(14&E[9])<<27|(255&E[10])<<20|(254&E[11])<<12|(255&E[12])<<5|(254&E[13])>>>3,w.pts*=4,w.pts+=(6&E[13])>>>1,w.dts=w.pts,64&O&&(w.dts=(14&E[14])<<27|(255&E[15])<<20|(254&E[16])<<12|(255&E[17])<<5|(254&E[18])>>>3,w.dts*=4,w.dts+=(6&E[18])>>>1)),w.data=E.subarray(9+E[8]))})(V,_e),Ve="video"===w||_e.packetLength<=E.size,(O||Ve)&&(E.size=0,E.data.length=0),Ve&&o.trigger("data",_e)}};Fa.prototype.init.call(this),this.push=function(E){({pat:function(){},pes:function(){var w,O;switch(E.streamType){case xi.H264_STREAM_TYPE:w=c,O="video";break;case xi.ADTS_STREAM_TYPE:w=d,O="audio";break;case xi.METADATA_STREAM_TYPE:w=f,O="timed-metadata";break;default:return}E.payloadUnitStartIndicator&&S(w,O,!0),w.data.push(E),w.size+=E.data.byteLength},pmt:function(){var w={type:"metadata",tracks:[]};null!==(g=E.programMapTable).video&&w.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+g.video,codec:"avc",type:"video"}),null!==g.audio&&w.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+g.audio,codec:"adts",type:"audio"}),u=!0,o.trigger("data",w)}})[E.type]()},this.reset=function(){c.size=0,c.data.length=0,d.size=0,d.data.length=0,this.trigger("reset")},this.flushStreams_=function(){S(c,"video"),S(d,"audio"),S(f,"timed-metadata")},this.flush=function(){if(!u&&g){var E={type:"metadata",tracks:[]};null!==g.video&&E.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+g.video,codec:"avc",type:"video"}),null!==g.audio&&E.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+g.audio,codec:"adts",type:"audio"}),o.trigger("data",E)}u=!1,this.flushStreams_(),this.trigger("done")}},Fa.prototype=new Ul;var Jh={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:Ba,TransportParseStream:hr,ElementaryStream:Fa,TimestampRolloverStream:Qy,CaptionStream:Vl.CaptionStream,Cea608Stream:Vl.Cea608Stream,Cea708Stream:Vl.Cea708Stream,MetadataStream:Ky};for(var ql in xi)xi.hasOwnProperty(ql)&&(Jh[ql]=xi[ql]);var Ua,Jy=Jh,eb=ht.ONE_SECOND_IN_TS,Zh=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];Ua=function(o){var u,c=0;Ua.prototype.init.call(this),this.skipWarn_=function(d,f){this.trigger("log",{level:"warn",message:`adts ski
1ping bytes ${d} to ${f} in frame ${c} outside syncword`})},this.push=function(d){var g,b,S,E,w,f=0;if(o||(c=0),"audio"===d.type){u&&u.length?(S=u,(u=new Uint8Array(S.byteLength+d.data.byteLength)).set(S),u.set(d.data,S.byteLength)):u=d.data;for(var O;f+7<u.length;)if(255===u[f]&&240==(246&u[f+1])){if("number"==typeof O&&(this.skipWarn_(O,f),O=null),b=2*(1&~u[f+1]),w=(E=1024*(1+(3&u[f+6])))*eb/Zh[(60&u[f+2])>>>2],u.byteLength-f<(g=(3&u[f+3])<<11|u[f+4]<<3|(224&u[f+5])>>5))break;this.trigger("data",{pts:d.pts+c*w,dts:d.dts+c*w,sampleCount:E,audioobjecttype:1+(u[f+2]>>>6&3),channelcount:(1&u[f+2])<<2|(192&u[f+3])>>>6,samplerate:Zh[(60&u[f+2])>>>2],samplingfrequencyindex:(60&u[f+2])>>>2,samplesize:16,data:u.subarray(f+7+b,f+g)}),c++,f+=g}else"number"!=typeof O&&(O=f),f++;"number"==typeof O&&(this.skipWarn_(O,f),O=null),u=u.subarray(f)}},this.flush=function(){c=0,this.trigger("done")},this.reset=function(){u=void 0,this.trigger("reset")},this.endTimeline=function(){u=void 0,this.trigger("endedtimeline")}},Ua.prototype=new t;var ef,tb=Ua;ef=function(o){var u=o.byteLength,c=0,d=0;this.length=function(){return 8*u},this.bitsAvailable=function(){return 8*u+d},this.loadWord=function(){var f=o.byteLength-u,g=new Uint8Array(4),b=Math.min(4,u);if(0===b)throw new Error("no bytes available");g.set(o.subarray(f,f+b)),c=new DataView(g.buffer).getUint32(0),d=8*b,u-=b},this.skipBits=function(f){var g;d>f?(c<<=f,d-=f):(f-=d,f-=8*(g=Math.floor(f/8)),u-=g,this.loadWord(),c<<=f,d-=f)},this.readBits=function(f){var g=Math.min(d,f),b=c>>>32-g;return(d-=g)>0?c<<=g:u>0&&this.loadWord(),(g=f-g)>0?b<<g|this.readBits(g):b},this.skipLeadingZeros=function(){var f;for(f=0;f<d;++f)if(c&2147483648>>>f)return c<<=f,d-=f,f;return this.loadWord(),f+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var f=this.skipLeadingZeros();return this.readBits(f+1)-1},this.readExpGolomb=function(){var f=this.readUnsignedExpGolomb();return 1&f?1+f>>>1:-1*(f>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var Va,fr,sf,tf=t,sb=ef;fr=function(){var u,c,o=0;fr.prototype.init.call(this),this.push=function(d){var f;c?((f=new Uint8Array(c.byteLength+d.data.byteLength)).set(c),f.set(d.data,c.byteLength),c=f):c=d.data;for(var g=c.byteLength;o<g-3;o++)if(1===c[o+2]){u=o+5;break}for(;u<g;)switch(c[u]){case 0:if(0!==c[u-1]){u+=2;break}if(0!==c[u-2]){u++;break}o+3!==u-2&&this.trigger("data",c.subarray(o+3,u-2));do{u++}while(1!==c[u]&&u<g);o=u-2,u+=3;break;case 1:if(0!==c[u-1]||0!==c[u-2]){u+=3;break}this.trigger("data",c.subarray(o+3,u-2)),o=u-2,u+=3;break;default:u+=3}c=c.subarray(o),u-=o,o=0},this.reset=function(){c=null,o=0,this.trigger("reset")},this.flush=function(){c&&c.byteLength>3&&this.trigger("data",c.subarray(o+3)),c=null,o=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},fr.prototype=new tf,sf={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},Va=function(){var u,c,d,f,g,b,S,o=new fr;Va.prototype.init.call(this),u=this,this.push=function(E){"video"===E.type&&(c=E.trackId,d=E.pts,f=E.dts,o.push(E))},o.on("data",function(E){var w={trackId:c,pts:d,dts:f,data:E,nalUnitTypeCode:31&E[0]};switch(w.nalUnitTypeCode){case 5:w.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:w.nalUnitType="sei_rbsp",w.escapedRBSP=g(E.subarray(1));break;case 7:w.nalUnitType="seq_parameter_set_rbsp",w.escapedRBSP=g(E.subarray(1)),w.config=b(w.escapedRBSP);break;case 8:w.nalUnitType="pic_parameter_set_rbsp";break;case 9:w.nalUnitType="access_unit_delimiter_rbsp"}u.trigger("data",w)}),o.on("done",function(){u.trigger("done")}),o.on("partialdone",function(){u.trigger("partialdone")}),o.on("reset",function(){u.trigger("reset")}),o.on("endedtimeline",function(){u.trigger("endedtimeline")}),this.flush=function(){o.flush()},this.partialFlush=function(){o.partialFlush()},this.reset=function(){o.reset()},this.endTimeline=function(){o.endTimeline()},S=function(E,w){var _e,O=8,V=8;for(_e=0;_e<E;_e++)0!==V&&(V=(O+w.readExpGolomb()+256)%256),O=0===V?O:V},g=function(E){for(var _e,K,w=E.byteLength,O=[],V=1;V<w-2;)0===E[V]&&0===E[V+1]&&3===E[V+2]?(O.push(V+2),V+=2):V++;if(0===O.length)return E;_e=w-O.length,K=new Uint8Array(_e);var Me=0;for(V=0;V<_e;Me++,V++)Me===O[0]&&(Me++,O.shift()),K[V]=E[Me];return K},b=function(E){var K,Me,Ve,Ot,Zt,vs,Tr,xr,Sr,Cr,Za,Ci,w=0,O=0,V=0,_e=0,ft=[1,1];if(Me=(K=new sb(E)).readUnsignedByte(),Ot=K.readUnsignedByte(),Ve=K.readUnsignedByte(),K.skipUnsignedExpGolomb(),sf[Me]&&(3===(Zt=K.readUnsignedExpGolomb())&&K.skipBits(1),K.skipUnsignedExpGolomb(),K.skipUnsignedExpGolomb(),K.skipBits(1),K.readBoolean()))for(Za=3!==Zt?8:12,Ci=0;Ci<Za;Ci++)K.readBoolean()&&S(Ci<6?16:64,K);if(K.skipUnsignedExpGolomb(),0===(vs=K.readUnsignedExpGolomb()))K.readUnsignedExpGolomb();else if(1===vs)for(K.skipBits(1),K.skipExpGolomb(),K.skipExpGolomb(),Tr=K.readUnsignedExpGolomb(),Ci=0;Ci<Tr;Ci++)K.skipExpGolomb();if(K.skipUnsignedExpGolomb(),K.skipBits(1),xr=K.readUnsignedExpGolomb(),Sr=K.readUnsignedExpGolomb(),0===(Cr=K.readBits(1))&&K.skipBits(1),K.skipBits(1),K.readBoolean()&&(w=K.readUnsignedExpGolomb(),O=K.readUnsignedExpGolomb(),V=K.readUnsignedExpGolomb(),_e=K.readUnsignedExpGolomb()),K.readBoolean()&&K.readBoolean())switch(K.readUnsignedByte()){case 1:ft=[1,1];break;case 2:ft=[12,11];break;case 3:ft=[10,11];break;case 4:ft=[16,11];break;case 5:ft=[40,33];break;case 6:ft=[24,11];break;case 7:ft=[20,11];break;case 8:ft=[32,11];break;case 9:ft=[80,33];break;case 10:ft=[18,11];break;case 11:ft=[15,11];break;case 12:ft=[64,33];break;case 13:ft=[160,99];break;case 14:ft=[4,3];break;case 15:ft=[3,2];break;case 16:ft=[2,1];break;case 255:ft=[K.readUnsignedByte()<<8|K.readUnsignedByte(),K.readUnsignedByte()<<8|K.readUnsignedByte()]}return{profileIdc:Me,levelIdc:Ve,profileCompatibility:Ot,width:16*(xr+1)-2*w-2*O,height:(2-Cr)*(Sr+1)*16-2*V-2*_e,sarRatio:ft}}},Va.prototype=new tf;var Ha,nb={H264Stream:Va,NalByteStream:fr},rb=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],nf=function(o,u){var c=o[u+6]<<21|o[u+7]<<14|o[u+8]<<7|o[u+9];return c=c>=0?c:0,(16&o[u+5])>>4?c+20:c+10},rf=function(o,u){return o.length-u<10||73!==o[u]||68!==o[u+1]||51!==o[u+2]?u:(u+=nf(o,u),rf(o,u))},af=function(o){return o[0]<<21|o[1]<<14|o[2]<<7|o[3]},lb=function(o,u,c){return unescape(function(o,u,c){var d,f="";for(d=u;d<c;d++)f+="%"+("00"+o[d].toString(16)).slice(-2);return f}(o,u,c))},zl={isLikelyAacData:function(o){var u=rf(o,0);return o.length>=u+2&&!(255&~o[u])&&!(240&~o[u+1])&&16==(22&o[u+1])},parseId3TagSize:nf,parseAdtsSize:function(o,u){return 6144&o[u+3]|o[u+4]<<3|(224&o[u+5])>>5},parseType:function(o,u){return 73===o[u]&&68===o[u+1]&&51===o[u+2]?"timed-metadata":!0&o[u]&&!(240&~o[u+1])?"audio":null},parseSampleRate:function(o){for(var u=0;u+5<o.length;){if(255===o[u]&&240==(246&o[u+1]))return rb[(60&o[u+2])>>>2];u++}return null},parseAacTimestamp:function(o){var u,c,d;u=10,64&o[5]&&(u+=4,u+=af(o.subarray(10,14)));do{if((c=af(o.subarray(u+4,u+8)))<1)return null;if("PRIV"===String.fromCharCode(o[u],o[u+1],o[u+2],o[u+3])){d=o.subarray(u+10,u+c+10);for(var g=0;g<d.byteLength;g++)if(0===d[g]){if("com.apple.streaming.transportStreamTimestamp"===lb(d,0,g)){var S=d.subarray(g+1),E=(1&S[3])<<30|S[4]<<22|S[5]<<14|S[6]<<6|S[7]>>>2;return(E*=4)+(3&S[7])}break}}u+=10,u+=c}while(u<o.byteLength);return null}},of=zl;Ha=function(){var o=new Uint8Array,u=0;Ha.prototype.init.call(this),this.setTimestamp=function(c){u=c},this.push=function(c){var b,S,E,d=0,f=0;for(o.length?(E=o.length,(o=new Uint8Array(c.byteLength+E)).set(o.subarray(0,E)),o.set(c,E)):o=c;o.length-f>=3;)if(73!==o[f]||68!==o[f+1]||51!==o[f+2])if(255&~o[f]||240&~o[f+1])f++;else{if(o.length-f<7||f+(d=of.parseAdtsSize(o,f))>o.length)break;S={type:"audio",data:o.subarray(f,f+d),pts:u,dts:u},this.trigger("data",S),f+=d}else{if(o.length-f<10||f+(d=of.parseId3TagSize(o,f))>o.length)break;b={type:"timed-metadata",data:o.subarray(f,f+d)},this.trigger("data",b),f+=d}o=o.length-f>0?o.subarray(f):new Uint8Array},this.reset=function(){o=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){o=new Uint8Array,this.trigger("endedtimeline")}},Ha.prototype=new t;var gr,An,Ga,Ns,qa=t,pr=uy,mr=_y,za=wy,Si=Oy,Ki=Jy,$a=ht,lf=tb,yb=nb.H264Stream,bb=Ha,Tb=zl.isLikelyAacData,xb=ht.ONE_SECOND_IN_TS,$l=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Gl=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Sb=function(o,u){u.stream=o,this.trigger("log",u)},uf=function(o,u){for(var c=Object.keys(u),d=0;d<c.length;d++){var f=c[d];"headOfPipeline"===f||!u[f].on||u[f].on("log",Sb.bind(o,f))}},cf=function(o,u){var c;if(o.length!==u.length)return!1;for(c=0;c<o.length;c++)if(o[c]!==u[c])return!1;return!0},Wl=function(o,u,c,d,f,g){return{start:{dts:o,pts:o+(c-u)},end:{dts:o+(d-u),pts:o+(f-c)},prependedContentDuration:g,baseMediaDecodeTime:o}};An=function(o,u){var d,c=[],f=0,g=0,b=1/0;d=(u=u||{}).firstSequenceNumber||0,An.prototype.init.call(this),this.push=function(S){Si.collectDtsInfo(o,S),o&&$l.forEach(function(E){o[E]=S[E]}),c.push(S)},this.setEarliestDts=function(S){f=S},this.setVideoBaseMediaDecodeTime=function(S){b=S},this.setAudioAppendStart=function(S){g=S},this.flush=function(){var S,E,w,O,V,_e,K;0!==c.length?(S=za.trimAdtsFramesByEarliestDts(c,o,f),o.baseMediaDecodeTime=Si.calculateTrackBaseMediaDecodeTime(o,u.keepOriginalTimestamps),K=za.prefixWithSilence(o,S,g,b),o.samples=za.generateSampleTable(S),w=pr.mdat(za.concatenateFrameData(S)),c=[],E=pr.moof(d,[o]),O=new 
vendor: 4,992 bytes, line 1
1Uint8Array(E.byteLength+w.byteLength),d++,O.set(E),O.set(w,E.byteLength),Si.clearDtsInfo(o),V=Math.ceil(1024*xb/o.samplerate),S.length&&(_e=S.length*V,this.trigger("segmentTimingInfo",Wl($a.audioTsToVideoTs(o.baseMediaDecodeTime,o.samplerate),S[0].dts,S[0].pts,S[0].dts+_e,S[0].pts+_e,K||0)),this.trigger("timingInfo",{start:S[0].pts,end:S[0].pts+_e})),this.trigger("data",{track:o,boxes:O}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){Si.clearDtsInfo(o),c=[],this.trigger("reset")}},An.prototype=new qa,gr=function(o,u){var c,g,b,d=[],f=[];c=(u=u||{}).firstSequenceNumber||0,gr.prototype.init.call(this),delete o.minPTS,this.gopCache_=[],this.push=function(S){Si.collectDtsInfo(o,S),"seq_parameter_set_rbsp"===S.nalUnitType&&!g&&(g=S.config,o.sps=[S.data],Gl.forEach(function(E){o[E]=g[E]},this)),"pic_parameter_set_rbsp"===S.nalUnitType&&!b&&(b=S.data,o.pps=[S.data]),d.push(S)},this.flush=function(){for(var S,E,w,O,V,_e,Me,Ve,K=0;d.length&&"access_unit_delimiter_rbsp"!==d[0].nalUnitType;)d.shift();if(0===d.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(S=mr.groupNalsIntoFrames(d),(w=mr.groupFramesIntoGops(S))[0][0].keyFrame||((E=this.getGopForFusion_(d[0],o))?(K=E.duration,w.unshift(E),w.byteLength+=E.byteLength,w.nalCount+=E.nalCount,w.pts=E.pts,w.dts=E.dts,w.duration+=E.duration):w=mr.extendFirstKeyFrame(w)),f.length){var Ot;if(!(Ot=u.alignGopsAtEnd?this.alignGopsAtEnd_(w):this.alignGopsAtStart_(w)))return this.gopCache_.unshift({gop:w.pop(),pps:o.pps,sps:o.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),d=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");Si.clearDtsInfo(o),w=Ot}Si.collectDtsInfo(o,w),o.samples=mr.generateSampleTable(w),V=pr.mdat(mr.concatenateNalData(w)),o.baseMediaDecodeTime=Si.calculateTrackBaseMediaDecodeTime(o,u.keepOriginalTimestamps),this.trigger("processedGopsInfo",w.map(function(Zt){return{pts:Zt.pts,dts:Zt.dts,byteLength:Zt.byteLength}})),this.trigger("segmentTimingInfo",Wl(o.baseMediaDecodeTime,(Me=w[0]).dts,Me.pts,(Ve=w[w.length-1]).dts+Ve.duration,Ve.pts+Ve.duration,K)),this.trigger("timingInfo",{start:w[0].pts,end:w[w.length-1].pts+w[w.length-1].duration}),this.gopCache_.unshift({gop:w.pop(),pps:o.pps,sps:o.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),d=[],this.trigger("baseMediaDecodeTime",o.baseMediaDecodeTime),this.trigger("timelineStartInfo",o.timelineStartInfo),O=pr.moof(c,[o]),_e=new Uint8Array(O.byteLength+V.byteLength),c++,_e.set(O),_e.set(V,O.byteLength),this.trigger("data",{track:o,boxes:_e}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),d=[],this.gopCache_.length=0,f.length=0,this.trigger("reset")},this.resetStream_=function(){Si.clearDtsInfo(o),g=void 0,b=void 0},this.getGopForFusion_=function(S){var V,_e,K,Me,Ve,O=1/0;for(Ve=0;Ve<this.gopCache_.length;Ve++)K=(Me=this.gopCache_[Ve]).gop,o.pps&&cf(o.pps[0],Me.pps[0])&&o.sps&&cf(o.sps[0],Me.sps[0])&&(K.dts<o.timelineStartInfo.dts||(V=S.dts-K.dts-K.duration)>=-1e4&&V<=45e3&&(!_e||O>V)&&(_e=Me,O=V));return _e?_e.gop:null},this.alignGopsAtStart_=function(S){var E,w,O,V,_e,K,Me,Ve;for(_e=S.byteLength,K=S.nalCount,Me=S.duration,E=w=0;E<f.length&&w<S.length&&(O=f[E]).pts!==(V=S[w]).pts;)V.pts>O.pts?E++:(w++,_e-=V.byteLength,K-=V.nalCount,Me-=V.duration);return 0===w?S:w===S.length?null:((Ve=S.slice(w)).byteLength=_e,Ve.duration=Me,Ve.nalCount=K,Ve.pts=Ve[0].pts,Ve.dts=Ve[0].dts,Ve)},this.alignGopsAtEnd_=function(S){var E,w,O,V,_e,K,Me;for(E=f.length-1,w=S.length-1,_e=null,K=!1;E>=0&&w>=0;){if((O=f[E]).pts===(V=S[w]).pts){K=!0;break}O.pts>V.pts?E--:(E===f.length-1&&(_e=w),w--)}if(!K&&null===_e)return null;if(0===(Me=K?w:_e))return S;var Ve=S.slice(Me),Ot=Ve.reduce(function(Zt,vs){return Zt.byteLength+=vs.byteLength,Zt.duration+=vs.duration,Zt.nalCount+=vs.nalCount,Zt},{byteLength:0,duration:0,nalCount:0});return Ve.byteLength=Ot.byteLength,Ve.duration=Ot.duration,Ve.nalCount=Ot.nalCount,Ve.pts=Ve[0].pts,Ve.dts=Ve[0].dts,Ve},this.alignGopsWith=function(S){f=S}},gr.prototype=new qa,Ns=function(o,u){this.numberOfTracks=0,this.metadataStream=u,this.remuxTracks=!(typeof(o=o||{}).remux<"u"&&!o.remux),this.keepOriginalTimestamps="boolean"==typeof o.keepOriginalTimestamps&&o.keepOriginalTimestamps,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Ns.prototype.init.call(this),this.push=function(c){return c.content||c.text?this.pendingCaptions.push(c):c.frames?this.pendingMetadata.push(c):(this.pendingTracks.push(c.track),this.pendingBytes+=c.boxes.byteLength,"video"===c.track.type&&(this.videoTrack=c.track,this.pendingBoxes.push(c.boxes)),void("audio"===c.track.type&&(this.audioTrack=c.track,this.pendingBoxes.unshift(c.boxes))))}},Ns.prototype=new qa,Ns.prototype.flush=function(o){var d,f,g,S,u=0,c={captions:[],captionStream
vendor: 13,425 bytes, line 1
1s:{},metadata:[],info:{}},b=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==o&&"AudioSegmentStream"!==o)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(b=this.videoTrack.timelineStartInfo.pts,Gl.forEach(function(E){c.info[E]=this.videoTrack[E]},this)):this.audioTrack&&(b=this.audioTrack.timelineStartInfo.pts,$l.forEach(function(E){c.info[E]=this.audioTrack[E]},this)),this.videoTrack||this.audioTrack){for(c.type=1===this.pendingTracks.length?this.pendingTracks[0].type:"combined",this.emittedTracks+=this.pendingTracks.length,g=pr.initSegment(this.pendingTracks),c.initSegment=new Uint8Array(g.byteLength),c.initSegment.set(g),c.data=new Uint8Array(this.pendingBytes),S=0;S<this.pendingBoxes.length;S++)c.data.set(this.pendingBoxes[S],u),u+=this.pendingBoxes[S].byteLength;for(S=0;S<this.pendingCaptions.length;S++)(d=this.pendingCaptions[S]).startTime=$a.metadataTsToSeconds(d.startPts,b,this.keepOriginalTimestamps),d.endTime=$a.metadataTsToSeconds(d.endPts,b,this.keepOriginalTimestamps),c.captionStreams[d.stream]=!0,c.captions.push(d);for(S=0;S<this.pendingMetadata.length;S++)(f=this.pendingMetadata[S]).cueTime=$a.metadataTsToSeconds(f.pts,b,this.keepOriginalTimestamps),c.metadata.push(f);for(c.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",c),S=0;S<c.captions.length;S++)this.trigger("caption",d=c.captions[S]);for(S=0;S<c.metadata.length;S++)this.trigger("id3Frame",f=c.metadata[S])}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Ns.prototype.setRemux=function(o){this.remuxTracks=o},Ga=function(o){var d,f,u=this,c=!0;Ga.prototype.init.call(this),this.baseMediaDecodeTime=(o=o||{}).baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var g={};this.transmuxPipeline_=g,g.type="aac",g.metadataStream=new Ki.MetadataStream,g.aacStream=new bb,g.audioTimestampRolloverStream=new Ki.TimestampRolloverStream("audio"),g.timedMetadataTimestampRolloverStream=new Ki.TimestampRolloverStream("timed-metadata"),g.adtsStream=new lf,g.coalesceStream=new Ns(o,g.metadataStream),g.headOfPipeline=g.aacStream,g.aacStream.pipe(g.audioTimestampRolloverStream).pipe(g.adtsStream),g.aacStream.pipe(g.timedMetadataTimestampRolloverStream).pipe(g.metadataStream).pipe(g.coalesceStream),g.metadataStream.on("timestamp",function(b){g.aacStream.setTimestamp(b.timeStamp)}),g.aacStream.on("data",function(b){"timed-metadata"!==b.type&&"audio"!==b.type||g.audioSegmentStream||(f=f||{timelineStartInfo:{baseMediaDecodeTime:u.baseMediaDecodeTime},codec:"adts",type:"audio"},g.coalesceStream.numberOfTracks++,g.audioSegmentStream=new An(f,o),g.audioSegmentStream.on("log",u.getLogTrigger_("audioSegmentStream")),g.audioSegmentStream.on("timingInfo",u.trigger.bind(u,"audioTimingInfo")),g.adtsStream.pipe(g.audioSegmentStream).pipe(g.coalesceStream),u.trigger("trackinfo",{hasAudio:!!f,hasVideo:!!d}))}),g.coalesceStream.on("data",this.trigger.bind(this,"data")),g.coalesceStream.on("done",this.trigger.bind(this,"done")),uf(this,g)},this.setupTsPipeline=function(){var g={};this.transmuxPipeline_=g,g.type="ts",g.metadataStream=new Ki.MetadataStream,g.packetStream=new Ki.TransportPacketStream,g.parseStream=new Ki.TransportParseStream,g.elementaryStream=new Ki.ElementaryStream,g.timestampRolloverStream=new Ki.TimestampRolloverStream,g.adtsStream=new lf,g.h264Stream=new yb,g.captionStream=new Ki.CaptionStream(o),g.coalesceStream=new Ns(o,g.metadataStream),g.headOfPipeline=g.packetStream,g.packetStream.pipe(g.parseStream).pipe(g.elementaryStream).pipe(g.timestampRolloverStream),g.timestampRolloverStream.pipe(g.h264Stream),g.timestampRolloverStream.pipe(g.adtsStream),g.timestampRolloverStream.pipe(g.metadataStream).pipe(g.coalesceStream),g.h264Stream.pipe(g.captionStream).pipe(g.coalesceStream),g.elementaryStream.on("data",function(b){var S;if("metadata"===b.type){for(S=b.tracks.length;S--;)d||"video"!==b.tracks[S].type?!f&&"audio"===b.tracks[S].type&&((f=b.tracks[S]).timelineStartInfo.baseMediaDecodeTime=u.baseMediaDecodeTime):(d=b.tracks[S]).timelineStartInfo.baseMediaDecodeTime=u.baseMediaDecodeTime;d&&!g.videoSegmentStream&&(g.coalesceStream.numberOfTracks++,g.videoSegmentStream=new gr(d,o),g.videoSegmentStream.on("log",u.getLogTrigger_("videoSegmentStream")),g.videoSegmentStream.on("timelineStartInfo",function(E){f&&!o.keepOriginalTimestamps&&(f.timelineStartInfo=E,g.audioSegmentStream.setEarliestDts(E.dts-u.baseMediaDecodeTime))}),g.videoSegmentStream.on("processedGopsInfo",u.trigger.bind(u,"gopInfo")),g.videoSegmentStream.on("segmentTimingInfo",u.trigger.bind(u,"videoSegmentTimingInfo")),g.videoSegmentStream.on("baseMediaDecodeTime",function(E){f&&g.audioSegmentStream.setVideoBaseMediaDecodeTime(E)}),g.videoSegmentStream.on("timingInfo",u.trigger.bind(u,"videoTimingInfo")),g.h264Stream.pipe(g.videoSegmentStream).pipe(g.coalesceStream)),f&&!g.audioSegmentStream&&(g.coalesceStream.numberOfTracks++,g.audioSegmentStream=new An(f,o),g.audioSegmentStream.on("log",u.getLogTrigger_("audioSegmentStream")),g.audioSegmentStream.on("timingInfo",u.trigger.bind(u,"audioTimingInfo")),g.audioSegmentStream.on("segmentTimingInfo",u.trigger.bind(u,"audioSegmentTimingInfo")),g.adtsStream.pipe(g.audioSegmentStream).pipe(g.coalesceStream)),u.trigger("trackinfo",{hasAudio:!!f,hasVideo:!!d})}}),g.coalesceStream.on("data",this.trigger.bind(this,"data")),g.coalesceStream.on("id3Frame",function(b){b.dispatchType=g.metadataStream.dispatchType,u.trigger("id3Frame",b)}),g.coalesceStream.on("caption",this.trigger.bind(this,"caption")),g.coalesceStream.on("done",this.trigger.bind(this,"done")),uf(this,g)},this.setBaseMediaDecodeTime=function(g){var b=this.transmuxPipeline_;o.keepOriginalTimestamps||(this.baseMediaDecodeTime=g),f&&(f.timelineStartInfo.dts=void 0,f.timelineStartInfo.pts=void 0,Si.clearDtsInfo(f),b.audioTimestampRolloverStream&&b.audioTimestampRolloverStream.discontinuity()),d&&(b.videoSegmentStream&&(b.videoSegmentStream.gopCache_=[]),d.timelineStartInfo.dts=void 0,d.timelineStartInfo.pts=void 0,Si.clearDtsInfo(d),b.captionStream.reset()),b.timestampRolloverStream&&b.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(g){f&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(g)},this.setRemux=function(g){var b=this.transmuxPipeline_;o.remux=g,b&&b.coalesceStream&&b.coalesceStream.setRemux(g)},this.alignGopsWith=function(g){d&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(g)},this.getLogTrigger_=function(g){var b=this;return function(S){S.stream=g,b.trigger("log",S)}},this.push=function(g){if(c){var b=Tb(g);b&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():!b&&"ts"!==this.transmuxPipeline_.type&&this.setupTsPipeline(),c=!1}this.transmuxPipeline_.headOfPipeline.push(g)},this.flush=function(){c=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},Ga.prototype=new qa;var Bt,Ql,Cb={Transmuxer:Ga,VideoSegmentStream:gr,AudioSegmentStream:An,AUDIO_PROPERTIES:$l,VIDEO_PROPERTIES:Gl,generateSegmentTimingInfo:Wl},Wa_toUnsigned=function(o){return o>>>0},Xl=function(o){var u="";return u+=String.fromCharCode(o[0]),u+=String.fromCharCode(o[1]),(u+=String.fromCharCode(o[2]))+String.fromCharCode(o[3])},Db=Wa_toUnsigned,kb=Xl,df=function(o,u){var d,f,g,b,S,c=[];if(!u.length)return null;for(d=0;d<o.byteLength;)f=Db(o[d]<<24|o[d+1]<<16|o[d+2]<<8|o[d+3]),g=kb(o.subarray(d+4,d+8)),b=f>1?d+f:o.byteLength,g===u[0]&&(1===u.length?c.push(o.subarray(d+8,b)):(S=df(o.subarray(d+8,b),u.slice(1))).length&&(c=c.concat(S))),d=b;return c},Xa=df,Ib=Wa_toUnsigned,Pb=r.getUint64,Yl=function(o){var u={version:o[0],flags:new Uint8Array(o.subarray(1,4))};return u.baseMediaDecodeTime=1===u.version?Pb(o.subarray(4)):Ib(o[4]<<24|o[5]<<16|o[6]<<8|o[7]),u},Kl=function(o){var O,u=new DataView(o.buffer,o.byteOffset,o.byteLength),c={version:o[0],flags:new Uint8Array(o.subarray(1,4)),trackId:u.getUint32(4)},d=1&c.flags[2],f=2&c.flags[2],g=8&c.flags[2],b=16&c.flags[2],S=32&c.flags[2],E=65536&c.flags[0],w=131072&c.flags[0];return O=8,d&&(O+=4,c.baseDataOffset=u.getUint32(12),O+=4),f&&(c.sampleDescriptionIndex=u.getUint32(O),O+=4),g&&(c.defaultSampleDuration=u.getUint32(O),O+=4),b&&(c.defaultSampleSize=u.getUint32(O),O+=4),S&&(c.defaultSampleFlags=u.getUint32(O)),E&&(c.durationIsEmpty=!0),!d&&w&&(c.baseDataOffsetIsMoof=!0),c},hf=r.getUint64,ff=function(o){return{isLeading:(12&o[0])>>>2,dependsOn:3&o[0],isDependedOn:(192&o[1])>>>6,hasRedundancy:(48&o[1])>>>4,paddingValue:(14&o[1])>>>1,isNonSyncSample:1&o[1],degradationPriority:o[2]<<8|o[3]}},pf=function(o){var V,u={version:o[0],flags:new Uint8Array(o.subarray(1,4)),samples:[]},c=new DataView(o.buffer,o.byteOffset,o.byteLength),d=1&u.flags[2],f=4&u.flags[2],g=1&u.flags[1],b=2&u.flags[1],S=4&u.flags[1],E=8&u.flags[1],w=c.getUint32(4),O=8;for(d&&(u.dataOffset=c.getInt32(O),O+=4),f&&w&&(V={flags:ff(o.subarray(O,O+4))},O+=4,g&&(V.duration=c.getUint32(O),O+=4),b&&(V.size=c.getUint32(O),O+=4),E&&(V.compositionTimeOffset=1===u.version?c.getInt32(O):c.getUint32(O),O+=4),u.samples.push(V),w--);w--;)V={},g&&(V.duration=c.getUint32(O),O+=4),b&&(V.size=c.getUint32(O),O+=4),S&&(V.flags=ff(o.subarray(O,O+4)),O+=4),E&&(V.compositionTimeOffset=1===u.version?c.getInt32(O):c.getUint32(O),O+=4),u.samples.push(V);return u},mf=r.getUint64,hi=function(o){return new Date(1e3*o-20828448e5)},vr=Xl,Vb=function(o){var d,f,u=new DataView(o.buffer,o.byteOffset,o.byteLength),c=[];for(d=0;d+4<o.length;d+=f)if(f=u.getUint32(d),d+=4,f<=0)c.push("<span style='color:red;'>MALFORMED DATA</span>");else switch(31&o[d]){case 1:c.push("slice_layer_without_partitioning_rbsp");break;case 5:c.push("slice_layer_without_partitioning_rbsp_idr");break;case 6:c.push("sei_rbsp");break;case 7:c.push("seq_parameter_set_rbsp");break;case 8:c.push("pic_parameter_set_rbsp");break;case 9:c.push("access_unit_delimiter_rbsp");break;default:c.push("UNKNOWN NAL - "+o[d]&31)}return c},ms={avc1:function(o){var u=new DataView(o.buffer,o.byteOffset,o.byteLength);return{dataReferenceIndex:u.getUint16(6),width:u.getUint16(24),height:u.getUint16(26),horizresolution:u.getUint16(28)+u.getUint16(30)/16,vertresolution:u.getUint16(32)+u.getUint16(34)/16,frameCount:u.getUint16(40),depth:u.getUint16(74),config:Bt(o.subarray(78,o.byteLength))}},avcC:function(o){var f,g,b,S,u=new DataView(o.buffer,o.byteOffset,o.byteLength),c={configurationVersion:o[0],avcProfileIndication:o[1],profileCompatibility:o[2],avcLevelIndication:o[3],lengthSizeMinusOne:3&o[4],sps:[],pps:[]},d=31&o[5];for(b=6,S=0;S<d;S++)g=u.getUint16(b),b+=2,c.sps.push(new Uint8Array(o.subarray(b,b+g))),b+=g;for(f=o[b],b++,S=0;S<f;S++)g=u.getUint16(b),b+=2,c.pps.push(new Uint8Array(o.subarray(b,b+g))),b+=g;return c},btrt:function(o){var u=new DataView(o.buffer,o.byteOffset,o.byteLength);return{bufferSizeDB:u.getUint32(0),maxBitrate:u.getUint32(4),avgBitrate:u.getUint32(8)}},edts:function(u){return{boxes:Bt(u)}},elst:function(u){var g,c=new DataView(u.buffer,u.byteOffset,u.byteLength),d={version:c.getUint8(0),flags:new Uint8Array(u.subarray(1,4)),edits:[]},f=c.getUint32(4);for(g=8;f;f--)0===d.version?(d.edits.push({segmentDuration:c.getUint32(g),mediaTime:c.getInt32(g+4),mediaRate:c.getUint16(g+8)+c.getUint16(g+10)/65536}),g+=12):(d.edits.push({segmentDuration:mf(u.subarray(g)),mediaTime:mf(u.subarray(g+8)),mediaRate:c.getUint16(g+16)+c.getUint16(g+18)/65536}),g+=20);return d},esds:function(o){return{version:o[0],flags:new Uint8Array(o.subarray(1,4)),esId:o[6]<<8|o[7],streamPriority:31&o[8],decoderConfig:{objectProfileIndication:o[11],streamType:o[12]>>>2&63,bufferSize:o[13]<<16|o[14]<<8|o[15],maxBitrate:o[16]<<24|o[17]<<16|o[18]<<8|o[19],avgBitrate:o[20]<<24|o[21]<<16|o[22]<<8|o[23],decoderConfigDescriptor:{tag:o[24],length:o[25],audioObjectType:o[26]>>>3&31,samplingFrequencyIndex:(7&o[26])<<1|o[27]>>>7&1,channelConfiguration:o[27]>>>3&15}}}},ftyp:function(o){for(var u=new DataView(o.buffer,o.byteOffset,o.byteLength),c={majorBrand:vr(o.subarray(0,4)),minorVersion:u.getUint32(4),compatibleBrands:[]},d=8;d<o.byteLength;)c.compatibleBrands.push(vr(o.subarray(d,d+4))),d+=4;return c},dinf:function(o){return{boxes:Bt(o)}},dref:function(o){return{version:o[0],flags:new Uint8Array(o.subarray(1,4)),dataReferences:Bt(o.subarray(8))}},hdlr:function(o){var c={version:new DataView(o.buffer,o.byteOffset,o.byteLength).getUint8(0),flags:new Uint8Array(o.subarray(1,4)),handlerType:vr(o.subarray(8,12)),name:""},d=8;for(d=24;d<o.byteLength;d++){if(0===o[d]){d++;break}c.name+=String.fromCharCode(o[d])}return c.name=decodeURIComponent(escape(c.name)),c},mdat:function(o){return{byteLength:o.byteLength,nals:Vb(o)}},mdhd:function(o){var d,u=new DataView(o.buffer,o.byteOffset,o.byteLength),c=4,f={version:u.getUint8(0),flags:new Uint8Array(o.subarray(1,4)),language:""};
vendor: 4,499 bytes, line 1
1return 1===f.version?(f.creationTime=hi(u.getUint32(c+=4)),f.modificationTime=hi(u.getUint32(c+=8)),f.timescale=u.getUint32(c+=4),f.duration=u.getUint32(c+=8)):(f.creationTime=hi(u.getUint32(c)),f.modificationTime=hi(u.getUint32(c+=4)),f.timescale=u.getUint32(c+=4),f.duration=u.getUint32(c+=4)),d=u.getUint16(c+=4),f.language+=String.fromCharCode(96+(d>>10)),f.language+=String.fromCharCode(96+((992&d)>>5)),f.language+=String.fromCharCode(96+(31&d)),f},mdia:function(o){return{boxes:Bt(o)}},mfhd:function(o){return{version:o[0],flags:new Uint8Array(o.subarray(1,4)),sequenceNumber:o[4]<<24|o[5]<<16|o[6]<<8|o[7]}},minf:function(o){return{boxes:Bt(o)}},mp4a:function(o){var u=new DataView(o.buffer,o.byteOffset,o.byteLength),c={dataReferenceIndex:u.getUint16(6),channelcount:u.getUint16(16),samplesize:u.getUint16(18),samplerate:u.getUint16(24)+u.getUint16(26)/65536};return o.byteLength>28&&(c.streamDescriptor=Bt(o.subarray(28))[0]),c},moof:function(o){return{boxes:Bt(o)}},moov:function(o){return{boxes:Bt(o)}},mvex:function(o){return{boxes:Bt(o)}},mvhd:function(o){var u=new DataView(o.buffer,o.byteOffset,o.byteLength),c=4,d={version:u.getUint8(0),flags:new Uint8Array(o.subarray(1,4))};return 1===d.version?(d.creationTime=hi(u.getUint32(c+=4)),d.modificationTime=hi(u.getUint32(c+=8)),d.timescale=u.getUint32(c+=4),d.duration=u.getUint32(c+=8)):(d.creationTime=hi(u.getUint32(c)),d.modificationTime=hi(u.getUint32(c+=4)),d.timescale=u.getUint32(c+=4),d.duration=u.getUint32(c+=4)),d.rate=u.getUint16(c+=4)+u.getUint16(c+2)/16,d.volume=u.getUint8(c+=4)+u.getUint8(c+1)/8,c+=2,c+=2,c+=8,d.matrix=new Uint32Array(o.subarray(c,c+36)),c+=36,d.nextTrackId=u.getUint32(c+=24),d},pdin:function(o){var u=new DataView(o.buffer,o.byteOffset,o.byteLength);return{version:u.getUint8(0),flags:new Uint8Array(o.subarray(1,4)),rate:u.getUint32(4),initialDelay:u.getUint32(8)}},sdtp:function(o){var c,u={version:o[0],flags:new Uint8Array(o.subarray(1,4)),samples:[]};for(c=4;c<o.byteLength;c++)u.samples.push({dependsOn:(48&o[c])>>4,isDependedOn:(12&o[c])>>2,hasRedundancy:3&o[c]});return u},sidx:function(o){var u=new DataView(o.buffer,o.byteOffset,o.byteLength),c={version:o[0],flags:new Uint8Array(o.subarray(1,4)),references:[],referenceId:u.getUint32(4),timescale:u.getUint32(8)},d=12;0===c.version?(c.earliestPresentationTime=u.getUint32(d),c.firstOffset=u.getUint32(d+4),d+=8):(c.earliestPresentationTime=hf(o.subarray(d)),c.firstOffset=hf(o.subarray(d+8)),d+=16);var f=u.getUint16(d+=2);for(d+=2;f>0;d+=12,f--)c.references.push({referenceType:(128&o[d])>>>7,referencedSize:2147483647&u.getUint32(d),subsegmentDuration:u.getUint32(d+4),startsWithSap:!!(128&o[d+8]),sapType:(112&o[d+8])>>>4,sapDeltaTime:268435455&u.getUint32(d+8)});return c},smhd:function(o){return{version:o[0],flags:new Uint8Array(o.subarray(1,4)),balance:o[4]+o[5]/256}},stbl:function(o){return{boxes:Bt(o)}},ctts:function(o){var f,u=new DataView(o.buffer,o.byteOffset,o.byteLength),c={version:u.getUint8(0),flags:new Uint8Array(o.subarray(1,4)),compositionOffsets:[]},d=u.getUint32(4);for(f=8;d;f+=8,d--)c.compositionOffsets.push({sampleCount:u.getUint32(f),sampleOffset:u[0===c.version?"getUint32":"getInt32"](f+4)});return c},stss:function(o){var f,u=new DataView(o.buffer,o.byteOffset,o.byteLength),c={version:u.getUint8(0),flags:new Uint8Array(o.subarray(1,4)),syncSamples:[]},d=u.getUint32(4);for(f=8;d;f+=4,d--)c.syncSamples.push(u.getUint32(f));return c},stco:function(o){var f,u=new DataView(o.buffer,o.byteOffset,o.byteLength),c={version:o[0],flags:new Uint8Array(o.subarray(1,4)),chunkOffsets:[]},d=u.getUint32(4);for(f=8;d;f+=4,d--)c.chunkOffsets.push(u.getUint32(f));return c},stsc:function(o){var f,u=new DataView(o.buffer,o.byteOffset,o.byteLength),c=u.getUint32(4),d={version:o[0],flags:new Uint8Array(o.subarray(1,4)),sampleToChunks:[]};for(f=8;c;f+=12,c--)d.sampleToChunks.push({firstChunk:u.getUint32(f),samplesPerChunk:u.getUint32(f+4),sampleDescriptionIndex:u.getUint32(f+8)});return d},stsd:function(o){return{version:o[0],flags:new Uint8Array(o.subarray(1,4)),sampleDescriptions:Bt(o.subarray(8))}},stsz:function(o){var d,u=new DataView(o.buffer,o.byteOffset,o.byteLength),c={version:o[0],flags:new Uint8Array(o.subarray(1,4)),sampleSize:u.getUint32(4),entries:[]};for(d=12;d<o.byteLength;d+=4)c.entries.push(u.getUint32(d));return c},stts:function(o){var f,u=new DataView(o.buffer,o.byteOffset,o.byteLength),c={version:o[0],flags:new Uint8Array(o.subarray(1,4)),timeToSamples:[]},d=u.getUint32(4);for(f=8;d;
vendor: 16,827 bytes, line 1
1f+=8,d--)c.timeToSamples.push({sampleCount:u.getUint32(f),sampleDelta:u.getUint32(f+4)});return c},styp:function(o){return ms.ftyp(o)},tfdt:Yl,tfhd:Kl,tkhd:function(o){var u=new DataView(o.buffer,o.byteOffset,o.byteLength),c=4,d={version:u.getUint8(0),flags:new Uint8Array(o.subarray(1,4))};return 1===d.version?(d.creationTime=hi(u.getUint32(c+=4)),d.modificationTime=hi(u.getUint32(c+=8)),d.trackId=u.getUint32(c+=4),c+=4,d.duration=u.getUint32(c+=8)):(d.creationTime=hi(u.getUint32(c)),d.modificationTime=hi(u.getUint32(c+=4)),d.trackId=u.getUint32(c+=4),c+=4,d.duration=u.getUint32(c+=4)),c+=4,d.layer=u.getUint16(c+=8),d.alternateGroup=u.getUint16(c+=2),d.volume=u.getUint8(c+=2)+u.getUint8(c+1)/8,c+=2,c+=2,d.matrix=new Uint32Array(o.subarray(c,c+36)),d.width=u.getUint16(c+=36)+u.getUint16(c+2)/65536,d.height=u.getUint16(c+=4)+u.getUint16(c+2)/65536,d},traf:function(o){return{boxes:Bt(o)}},trak:function(o){return{boxes:Bt(o)}},trex:function(o){var u=new DataView(o.buffer,o.byteOffset,o.byteLength);return{version:o[0],flags:new Uint8Array(o.subarray(1,4)),trackId:u.getUint32(4),defaultSampleDescriptionIndex:u.getUint32(8),defaultSampleDuration:u.getUint32(12),defaultSampleSize:u.getUint32(16),sampleDependsOn:3&o[20],sampleIsDependedOn:(192&o[21])>>6,sampleHasRedundancy:(48&o[21])>>4,samplePaddingValue:(14&o[21])>>1,sampleIsDifferenceSample:!!(1&o[21]),sampleDegradationPriority:u.getUint16(22)}},trun:pf,"url ":function(o){return{version:o[0],flags:new Uint8Array(o.subarray(1,4))}},vmhd:function(o){var u=new DataView(o.buffer,o.byteOffset,o.byteLength);return{version:o[0],flags:new Uint8Array(o.subarray(1,4)),graphicsmode:u.getUint16(4),opcolor:new Uint16Array([u.getUint16(6),u.getUint16(8),u.getUint16(10)])}}};Bt=function(o){for(var d,f,g,b,S,u=0,c=[],E=new ArrayBuffer(o.length),w=new Uint8Array(E),O=0;O<o.length;++O)w[O]=o[O];for(d=new DataView(E);u<o.byteLength;)f=d.getUint32(u),g=vr(o.subarray(u+4,u+8)),(S=(ms[g]||function(V){return{data:V}})(o.subarray(u+8,b=f>1?u+f:o.byteLength))).size=f,S.type=g,c.push(S),u=b;return c},Ql=function(o,u){var c;return u=u||0,c=new Array(2*u+1).join(" "),o.map(function(d,f){return c+d.type+"\n"+Object.keys(d).filter(function(g){return"type"!==g&&"boxes"!==g}).map(function(g){var b=c+"  "+g+": ",S=d[g];if(S instanceof Uint8Array||S instanceof Uint32Array){var E=Array.prototype.slice.call(new Uint8Array(S.buffer,S.byteOffset,S.byteLength)).map(function(w){return" "+("00"+w.toString(16)).slice(-2)}).join("").match(/.{1,24}/g);return E?1===E.length?b+"<"+E.join("").slice(1)+">":b+"<\n"+E.map(function(w){return c+"  "+w}).join("\n")+"\n"+c+"  >":b+"<>"}return b+JSON.stringify(S,null,2).split("\n").map(function(w,O){return 0===O?w:c+"  "+w}).join("\n")}).join("\n")+(d.boxes?"\n"+Ql(d.boxes,u+1):"")}).join("\n")};var yf,bf,Tf,xf,Sf,Zl,Cf,gf={inspect:Bt,textify:Ql,parseType:vr,findBox:Xa,parseTraf:ms.traf,parseTfdt:ms.tfdt,parseHdlr:ms.hdlr,parseTfhd:ms.tfhd,parseTrun:ms.trun,parseSidx:ms.sidx},Ya=function(o){for(var u=0,c=String.fromCharCode(o[u]),d="";"\0"!==c;)d+=c,u++,c=String.fromCharCode(o[u]);return d+c},zb=r.getUint64,vf=function(o){return void 0!==o||null!==o},Xb={parseEmsgBox:function(o){var d,f,g,b,S,E,w,u=4,c=o[0];if(0===c)u+=(d=Ya(o.subarray(u))).length,u+=(f=Ya(o.subarray(u))).length,g=(V=new DataView(o.buffer)).getUint32(u),S=V.getUint32(u+=4),E=V.getUint32(u+=4),w=V.getUint32(u+=4),u+=4;else if(1===c){var V;g=(V=new DataView(o.buffer)).getUint32(u),b=zb(o.subarray(u+=4)),E=V.getUint32(u+=8),w=V.getUint32(u+=4),u+=4,u+=(d=Ya(o.subarray(u))).length,u+=(f=Ya(o.subarray(u))).length}var _e={scheme_id_uri:d,value:f,timescale:g||1,presentation_time:b,presentation_time_delta:S,event_duration:E,id:w,message_data:new Uint8Array(o.subarray(u,o.byteLength))};return function(o,u){var c="\0"!==u.scheme_id_uri,d=0===o&&vf(u.presentation_time_delta)&&c,f=1===o&&vf(u.presentation_time)&&c;return!(o>1)&&d||f}(c,_e)?_e:void 0},scaleTime:function(o,u,c,d){return o||0===o?o/u:d+c/u}},_f=typeof window<"u"?window:typeof s<"u"?s:typeof self<"u"?self:{},Ka=Wa_toUnsigned,yr=function(o){return("00"+o.toString(16)).slice(-2)},St=Xa,wn=Xl,Jl=Xb,Yb=Kl,Kb=pf,Qb=Yl,Jb=r.getUint64,eu=_f,Zb=Qh.parseId3Frames;yf=function(o){return St(o,["moov","trak"]).reduce(function(d,f){var g,S,E,w;return(g=St(f,["tkhd"])[0])&&(E=Ka(g[S=0===g[0]?12:20]<<24|g[S+1]<<16|g[S+2]<<8|g[S+3]),w=St(f,["mdia","mdhd"])[0])?(d[E]=Ka(w[S=0===w[0]?12:20]<<24|w[S+1]<<16|w[S+2]<<8|w[S+3]),d):null},{})},bf=function(o,u){var d=St(u,["moof","traf"]).reduce(function(f,g){var V,b=St(g,["tfhd"])[0],S=Ka(b[4]<<24|b[5]<<16|b[6]<<8|b[7]),E=o[S]||9e4,w=St(g,["tfdt"])[0],O=new DataView(w.buffer,w.byteOffset,w.byteLength);let _e;return"bigint"==typeof(V=1===w[0]?Jb(w.subarray(4,12)):O.getUint32(4))?_e=V/eu.BigInt(E):"number"==typeof V&&!isNaN(V)&&(_e=V/E),_e<Number.MAX_SAFE_INTEGER&&(_e=Number(_e)),_e<f&&(f=_e),f},1/0);return"bigint"==typeof d||isFinite(d)?d:0},Tf=function(o,u){var g,c=St(u,["moof","traf"]),d=0,f=0;if(c&&c.length){var b=St(c[0],["tfhd"])[0],S=St(c[0],["trun"])[0],E=St(c[0],["tfdt"])[0];if(b&&(g=Yb(b).trackId),E&&(d=Qb(E).baseMediaDecodeTime),S){var V=Kb(S);V.samples&&V.samples.length&&(f=V.samples[0].compositionTimeOffset||0)}}var _e=o[g]||9e4;"bigint"==typeof d&&(f=eu.BigInt(f),_e=eu.BigInt(_e));var K=(d+f)/_e;return"bigint"==typeof K&&K<Number.MAX_SAFE_INTEGER&&(K=Number(K)),K},xf=function(o){var u=St(o,["moov","trak"]),c=[];return u.forEach(function(d){var f=St(d,["mdia","hdlr"]),g=St(d,["tkhd"]);f.forEach(function(b,S){var O,V,_e,E=wn(b.subarray(8,12)),w=g[S];"vide"===E&&(V=(O=new DataView(w.buffer,w.byteOffset,w.byteLength)).getUint8(0),_e=O.getUint32(0===V?12:20),c.push(_e))})}),c},Zl=function(o){var c=0===o[0]?12:20;return Ka(o[c]<<24|o[c+1]<<16|o[c+2]<<8|o[c+3])},Sf=function(o){var u=St(o,["moov","trak"]),c=[];return u.forEach(function(d){var b,S,f={},g=St(d,["tkhd"])[0];g&&(S=(b=new DataView(g.buffer,g.byteOffset,g.byteLength)).getUint8(0),f.id=b.getUint32(0===S?12:20));var E=St(d,["mdia","hdlr"])[0];if(E){var w=wn(E.subarray(8,12));f.type="vide"===w?"video":"soun"===w?"audio":w}var O=St(d,["mdia","minf","stbl","stsd"])[0];if(O){var V=O.subarray(8);f.codec=wn(V.subarray(4,8));var K,_e=St(V,[f.codec])[0];_e&&(/^[asm]vc[1-9]$/i.test(f.codec)?(K=_e.subarray(78),"avcC"===wn(K.subarray(4,8))&&K.length>11?(f.codec+=".",f.codec+=yr(K[9]),f.codec+=yr(K[10]),f.codec+=yr(K[11])):f.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(f.codec)?(K=_e.subarray(28),"esds"===wn(K.subarray(4,8))&&K.length>20&&0!==K[19]?(f.codec+="."+yr(K[19]),f.codec+="."+yr(K[20]>>>2&63).replace(/^0/,"")):f.codec="mp4a.40.2"):f.codec=f.codec.toLowerCase())}var Ve=St(d,["mdia","mdhd"])[0];Ve&&(f.timescale=Zl(Ve)),c.push(f)}),c},Cf=function(o,u=0){return St(o,["emsg"]).map(d=>{var f=Jl.parseEmsgBox(new Uint8Array(d)),g=Zb(f.message_data);return{cueTime:Jl.scaleTime(f.presentation_time,f.timescale,f.presentation_time_delta,u),duration:Jl.scaleTime(f.event_duration,f.timescale),frames:g}})};var br={findBox:St,parseType:wn,timescale:yf,startTime:bf,compositionStartTime:Tf,videoTrackIds:xf,tracks:Sf,getTimescaleFromMediaHeader:Zl,getEmsgID3:Cf};const{parseTrun:eT}=gf,{findBox:Ef}=br;var Af=_f,wf={getMdatTrafPairs:function(o){var u=Ef(o,["moof","traf"]),c=Ef(o,["mdat"]),d=[];return c.forEach(function(f,g){d.push({mdat:f,traf:u[g]})}),d},parseSamples:function(o,u,c){var d=u,f=c.defaultSampleDuration||0,g=c.defaultSampleSize||0,b=c.trackId,S=[];return o.forEach(function(E){var O=eT(E).samples;O.forEach(function(V){void 0===V.duration&&(V.duration=f),void 0===V.size&&(V.size=g),V.trackId=b,V.dts=d,void 0===V.compositionTimeOffset&&(V.compositionTimeOffset=0),"bigint"==typeof d?(V.pts=d+Af.BigInt(V.compositionTimeOffset),d+=Af.BigInt(V.duration)):(V.pts=d+V.compositionTimeOffset,d+=V.duration)}),S=S.concat(O)}),S}},sT=Gh.discardEmulationPreventionBytes,nT=Wh.CaptionStream,tu=Xa,rT=Yl,aT=Kl,{getMdatTrafPairs:oT,parseSamples:lT}=wf,uT=function(o,u){for(var c=o,d=0;d<u.length;d++){var f=u[d];if(c<f.size)return f;c-=f.size}return null},pT=function(){var u,c,d,f,g,b,o=!1;this.isInitialized=function(){return o},this.init=function(S){u=new nT,o=!0,b=!!S&&S.isPartial,u.on("data",function(E){E.startTime=E.startPts/f,E.endTime=E.endPts/f,g.captions.push(E),g.captionStreams[E.stream]=!0}),u.on("log",function(E){g.logs.push(E)})},this.isNewInit=function(S,E){return!(S&&0===S.length||E&&"object"==typeof E&&0===Object.keys(E).length||d===S[0]&&f===E[d])},this.parse=function(S,E,w){var O;if(!this.isInitialized())return null;if(!E||!w)return null;if(this.isNewInit(E,w))f=w[d=E[0]];else if(null===d||!f)return c.push(S),null;for(;c.length>0;){var V=c.shift();this.parse(V,E,w)}return O=function(o,u,c){if(null===u)return null;var f=function(o,u){var c={};return oT(o).forEach(function(f){var Me,g=f.mdat,b=f.traf,S=tu(b,["tfhd"]),E=aT(S[0]),w=E.trackId,O=tu(b,["tfdt"]),V=O.length>0?rT(O[0]).baseMediaDecodeTime:0,_e=tu(b,["trun"]);u===w&&_e.length>0&&(Me=function(o,u,c){var g,b,S,E,d=new DataView(o.buffer,o.byteOffset,o.byteLength),f={logs:[],seiNals:[]};for(b=0;b+4<o.length;b+=S)if(S=d.getUint32(b),b+=4,!(S<=0))switch(31&o[b]){case 6:var w=o.subarray(b+1,b+1+S),O=uT(b,u);if(g={nalUnitType:"sei_rbsp",size:S,data:w,escapedRBSP:sT(w),trackId:c},O)g.pts=O.pts,g.dts=O.dts,E=O;else{if(!E){f.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+b+" for trackId "+c+". See mux.js#223."});break}g.pts=E.pts,g.dts=E.dts}f.seiNals.push(g)}return f}(g,lT(_e,V,E),w),c[w]||(c[w]={seiNals:[],logs:[]}),c[w].seiNals=c[w].seiNals.concat(Me.seiNals),c[w].logs=c[w].logs.concat(Me.logs))}),c}(o,u)[u]||{};return{seiNals:f.seiNals,logs:f.logs,timescale:c}}(S,d,f),O&&O.logs&&(g.logs=g.logs.concat(O.logs)),null!==O&&O.seiNals?(this.pushNals(O.seiNals),this.flushStream(),g):g.logs.length?{logs:g.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(S){if(!this.isInitialized()||!S||0===S.length)return null;S.forEach(function(E){u.push(E)})},this.flushStream=function(){if(!this.isInitialized())return null;b?u.partialFlush():u.flush()},this.clearParsedCaptions=function(){g.captions=[],g.captionStreams={},g.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;u.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){c=[],d=null,f=null,g?this.clearParsedCaptions():g={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()};const{parseTfdt:mT}=gf,gs=Xa,{getTimescaleFromMediaHeader:gT}=br,{parseSamples:vT,getMdatTrafPairs:_T}=wf;var Df=function(){let o=9e4;this.init=function(u){const c=gs(u,["moov","trak","mdia","mdhd"])[0];c&&(o=gT(c))},this.parseSegment=function(u){const c=[],d=_T(u);let f=0;return d.forEach(function(g){const b=g.mdat,S=g.traf,E=gs(S,["tfdt"])[0],w=gs(S,["tfhd"])[0],O=gs(S,["trun"]);if(E&&(f=mT(E).baseMediaDecodeTime),O.length&&w){const V=vT(O,f,w);let _e=0;V.forEach(function(K){const Ve=new TextDecoder("utf-8"),Ot=b.slice(_e,_e+K.size);gs(Ot,["vtte"])[0]||gs(Ot,["vttc"]).forEach(function(Tr){const xr=gs(Tr,["payl"])[0],Sr=gs(Tr,["sttg"])[0],Cr=K.pts/o,Za=(K.pts+K.duration)/o;let ft,Er;if(xr)try{ft=Ve.decode(xr)}catch(Ci){console.error(Ci)}if(Sr)try{Er=Ve.decode(Sr)}catch(Ci){console.error(Ci)}K.duration&&ft&&c.push({cueText:ft,start:Cr,end:Za,settings:Er})}),_e+=K.size})}}),c}},iu=ja,kf=function(o){var u=31&o[1];return(u<<=8)|o[2]},Qa=function(o){return!!(64&o[1])},Ja=function(o){var u=0;return(48&o[3])>>>4>1&&(u+=o[4]+1),u},su=function(o){switch(o){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},ET={parseType:function(o,u){var c=kf(o);return 0===c?"pat":c===u?"pmt":u?"pes":null},parsePat:function(o){var u=Qa(o),c=4+Ja(o);return u&&(c+=o[c]+1),(31&o[c+10])<<8|o[c+11]},parsePmt:function(o){var u={},c=Qa(o),d=4+Ja(o);if(c&&(d+=o[d]+1),1&o[d+5]){var g;g=3+((15&o[d+1])<<8|o[d+2])-4;for(var S=12+((15&o[d+10])<<8|o[d+11]);S<g;){var E=d+S;u[(31&o[E+1])<<8|o[E+2]]=o[E],S+=5+((15&o[E+3])<<8|o[E+4])}return u}},parsePayloadUnitStartIndicator:Qa,parsePesType:function(o,u){switch(u[kf(o)]){case iu.H264_STREAM_TYPE:return"video";case iu.ADTS_STREAM_TYPE:return"audio";case iu.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(o){if(!Qa(o))return null;var c=4+Ja(o);if(c>=o.byteLength)return null;var f,d=null;return 192&(f=o[c+7])&&((d={}).pts=(14&o[c+9])<<27|(255&o[c+10])<<20|(254&o[c+11])<<12|(255&o[c+12])<<5|(254&o[c+13])>>>3,d.pts*=4,d.pts+=(6&o[c+13])>>>1,d.dts=d.pts,64&f&&(d.dts=(14&o[c+14])<<27|(255&o[c+15])<<20|(254&o[c+16])<<12|(255&o[c+17])<<5|(254&o[c+18])>>>3,d.dts*=4,d.dts+=(6&o[c+18])>>>1)),d},videoPacketContainsKeyFrame:function(o){for(var u=4+Ja(o),c=o.subarray(u),d=0,f=0,g=!1;f<c.byteLength-3;f++)if(1===c[f+2]){d=f+5;break}for(;d<c.byteLength;)switch(c[d]){case 0:if(0!==c[d-1]){d+=2;break}if(0!==c[d-2]){d++;break}f+3!==d-2&&"slice_layer_without_partitioning_rbsp_idr"===su(31&c[f+3])&&(g=!0);do{d++}while(1!==c[d]&&d<c.length);f=d-2,d+=3;break;case 1:if(0!==c[d-1]||0!==c[d-2]){d+=3;break}"slice_layer_without_partitioning_rbsp_idr"===su(31&c[f+3])&&(g=!0),f=d-2,d+=3;break;default:d+=3}return c=c.subarray(f),d-=f,f=0,c&&c.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===su(31&c[f+3])&&(g=!0),g}},If=ja,Dn=Yh.handleRollover,nt={};nt.ts=ET,nt.aac=zl;var Bs=ht.ONE_SECOND_IN_TS,Vt=188,Pf=function(o,u,c){for(var g,S,E,w,d=0,f=Vt,O=!1;f<=o.byteLength;)if(71!==o[d]||71!==o[f]&&f!==o.byteLength)d++,f++;else{if(g=o.subarray(d,f),"pes"===nt.ts.parseType(g,u.pid)&&(S=nt.ts.parsePesType(g,u.table),E=nt.ts.parsePayloadUnitStartIndicator(g),"audio"===S&&E&&(w=nt.ts.parsePesTime(g))&&(w.type="audio",c.audio.push(w),O=!0)),O)break;d+=Vt,f+=Vt}for(d=(f=o.byteLength)-Vt,O=!1;d>=0;)if(71!==o[d]||71!==o[f]&&f!==o.byteLength)d--,f--;else{if(g=o.subarray(d,f),"pes"===nt.ts.parseType(g,u.pid)&&(S=nt.ts.parsePesType(g,u.table),E=nt.ts.parsePayloadUnitStartIndicator(g),"audio"===S&&E&&(w=nt.ts.parsePesTime(g))&&(w.type="audio",c.audio.push(w),O=!0)),O)break;d-=Vt,f-=Vt}},wT=function(o,u,c){for(var g,S,E,w,O,V,_e,d=0,f=Vt,K=!1,Me={data:[],size:0};f<o.byteLength;)if(71!==o[d]||71!==o[f])d++,f++;else{if("pes"===(g=o.subarray(d,f),nt.ts.parseType(g,u.pid))&&(S=nt.ts.parsePesType(g,u.table),E=nt.ts.parsePayloadUnitStartIndicator(g),"video"===S&&(E&&!K&&(w=nt.ts.parsePesTime(g))&&(w.type="video",c.video.push(w),K=!0),!c.firstKeyFrame))){if(E&&0!==Me.size){for(O=new Uint8Array(Me.size),V=0;Me.data.length;)_e=Me.data.shift(),O.set(_e,V),V+=_e.byteLength;if(nt.ts.videoPacketContainsKeyFrame(O)){var Ve=nt.ts.parsePesTime(O);Ve?(c.firstKeyFrame=Ve,c.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}Me.size=0}Me.data.push(g),Me.size+=g.byteLength}if(K&&c.firstKeyFrame)break;d+=Vt,f+=Vt}for(d=(f=o.byteLength)-Vt,K=!1;d>=0;)if(71!==o[d]||71!==o[f])d--,f--;else{if(g=o.subarray(d,f),"pes"===nt.ts.parseType(g,u.pid)&&(S=nt.ts.parsePesType(g,u.table),E=nt.ts.parsePayloadUnitStartIndicator(g),"video"===S&&E&&(w=nt.ts.parsePesTime(g))&&(w.type="video",c.video.push(w),K=!0)),K)break;d-=Vt,f-=Vt}},OT_inspect=function(o,u){var d;return d=nt.aac.isLikelyAacData(o)?function(o){for(var S,u=!1,c=0,d=null,f=null,g=0,b=0;o.length-b>=3;){switch(nt.aac.parseType(o,b)){case"timed-metadata":if(o.length-b<10){u=!0;break}if((g=nt.aac.parseId3TagSize(o,b))>o.length){u=!0;break}null===f&&(S=o.subarray(b,b+g),f=nt.aac.parseAacTimestamp(S)),b+=g;break;case"audio":if(o.length-b<7){u=!0;break}if((g=nt.aac.parseAdtsSize(o,b))>o.length){u=!0;break}null===d&&(S=o.subarray(b,b+g),d=nt.aac.parseSampleRate(S)),c++,b+=g;break;default:b++}if(u)return null}if(null===d||null===f)return null;var w=Bs/d;return{audio:[{type:"audio",dts:f,pts:f},{type:"audio",dts:f+1024*c*w,pts:f+1024*c*w}]}}(o):function(o){var u={pid:null,table:null},c={};for(var d in function(o,u){for(var f,c=0,d=Vt;d<o.byteLength;)if(71!==o[c]||71!==o[d])c++,d++;else{switch(f=o.subarray(c,d),nt.ts.parseType(f,u.pid)){case"pat":u.pid=nt.ts.parsePat(f);break;case"pmt":var b=nt.ts.parsePmt(f);u.table=u.table||{},Object.keys(b).forEach(function(S){u.table[S]=b[S]})}c+=Vt,d+=Vt}}(o,u),u.table)if(u.table.hasOwnProperty(d))switch(u.table[d]){case If.H264_STREAM_TYPE:c.video=[],wT(o,u,c),0===c.video.length&&delete c.video;break;case If.ADTS_STREAM_TYPE:c.audio=[],Pf(o,u,c),0===c.audio.length&&delete c.audio}return c}(o),d&&(d.audio||d.video)?(function(o,u){if(o.audio&&o.audio.length){var c=u;
vendor: 5,714 bytes, line 1
1(typeof c>"u"||isNaN(c))&&(c=o.audio[0].dts),o.audio.forEach(function(g){g.dts=Dn(g.dts,c),g.pts=Dn(g.pts,c),g.dtsTime=g.dts/Bs,g.ptsTime=g.pts/Bs})}if(o.video&&o.video.length){var d=u;if((typeof d>"u"||isNaN(d))&&(d=o.video[0].dts),o.video.forEach(function(g){g.dts=Dn(g.dts,d),g.pts=Dn(g.pts,d),g.dtsTime=g.dts/Bs,g.ptsTime=g.pts/Bs}),o.firstKeyFrame){var f=o.firstKeyFrame;f.dts=Dn(f.dts,d),f.pts=Dn(f.pts,d),f.dtsTime=f.dts/Bs,f.ptsTime=f.pts/Bs}}}(d,u),d):null};class Of{constructor(u,c){this.options=c||{},this.self=u,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Cb.Transmuxer(this.options),function(o,u){u.on("data",function(c){const d=c.initSegment;c.initSegment={data:d.buffer,byteOffset:d.byteOffset,byteLength:d.byteLength};const f=c.data;c.data=f.buffer,o.postMessage({action:"data",segment:c,byteOffset:f.byteOffset,byteLength:f.byteLength},[c.data])}),u.on("done",function(c){o.postMessage({action:"done"})}),u.on("gopInfo",function(c){o.postMessage({action:"gopInfo",gopInfo:c})}),u.on("videoSegmentTimingInfo",function(c){const d={start:{decode:ht.videoTsToSeconds(c.start.dts),presentation:ht.videoTsToSeconds(c.start.pts)},end:{decode:ht.videoTsToSeconds(c.end.dts),presentation:ht.videoTsToSeconds(c.end.pts)},baseMediaDecodeTime:ht.videoTsToSeconds(c.baseMediaDecodeTime)};c.prependedContentDuration&&(d.prependedContentDuration=ht.videoTsToSeconds(c.prependedContentDuration)),o.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:d})}),u.on("audioSegmentTimingInfo",function(c){const d={start:{decode:ht.videoTsToSeconds(c.start.dts),presentation:ht.videoTsToSeconds(c.start.pts)},end:{decode:ht.videoTsToSeconds(c.end.dts),presentation:ht.videoTsToSeconds(c.end.pts)},baseMediaDecodeTime:ht.videoTsToSeconds(c.baseMediaDecodeTime)};c.prependedContentDuration&&(d.prependedContentDuration=ht.videoTsToSeconds(c.prependedContentDuration)),o.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:d})}),u.on("id3Frame",function(c){o.postMessage({action:"id3Frame",id3Frame:c})}),u.on("caption",function(c){o.postMessage({action:"caption",caption:c})}),u.on("trackinfo",function(c){o.postMessage({action:"trackinfo",trackInfo:c})}),u.on("audioTimingInfo",function(c){o.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:ht.videoTsToSeconds(c.start),end:ht.videoTsToSeconds(c.end)}})}),u.on("videoTimingInfo",function(c){o.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:ht.videoTsToSeconds(c.start),end:ht.videoTsToSeconds(c.end)}})}),u.on("log",function(c){o.postMessage({action:"log",log:c})})}(this.self,this.transmuxer)}pushMp4Captions(u){this.captionParser||(this.captionParser=new pT,this.captionParser.init());const c=new Uint8Array(u.data,u.byteOffset,u.byteLength),d=this.captionParser.parse(c,u.trackIds,u.timescales);this.self.postMessage({action:"mp4Captions",captions:d&&d.captions||[],logs:d&&d.logs||[],data:c.buffer},[c.buffer])}initMp4WebVttParser(u){this.webVttParser||(this.webVttParser=new Df);const c=new Uint8Array(u.data,u.byteOffset,u.byteLength);this.webVttParser.init(c)}getMp4WebVttText(u){this.webVttParser||(this.webVttParser=new Df);const c=new Uint8Array(u.data,u.byteOffset,u.byteLength),d=this.webVttParser.parseSegment(c);this.self.postMessage({action:"getMp4WebVttText",mp4VttCues:d||[],data:c.buffer},[c.buffer])}probeMp4StartTime({timescales:u,data:c}){const d=br.startTime(u,c);this.self.postMessage({action:"probeMp4StartTime",startTime:d,data:c},[c.buffer])}probeMp4Tracks({data:u}){const c=br.tracks(u);this.self.postMessage({action:"probeMp4Tracks",tracks:c,data:u},[u.buffer])}probeEmsgID3({data:u,offset:c}){const d=br.getEmsgID3(u,c);this.self.postMessage({action:"probeEmsgID3",id3Frames:d,emsgData:u},[u.buffer])}probeTs({data:u,baseStartTime:c}){const d="number"!=typeof c||isNaN(c)?void 0:c*ht.ONE_SECOND_IN_TS,f=OT_inspect(u,d);let g=null;f&&(g={hasVideo:f.video&&2===f.video.length||!1,hasAudio:f.audio&&2===f.audio.length||!1},g.hasVideo&&(g.videoStart=f.video[0].ptsTime),g.hasAudio&&(g.audioStart=f.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:g,data:u},[u.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(u){const c=new Uint8Array(u.data,u.byteOffset,u.byteLength);this.transmuxer.push(c)}reset(){this.transmuxer.reset()}setTimestampOffset(u){this.transmuxer.setBaseMediaDecodeTime(Math.round(ht.secondsToVideoTs(u.timestampOffset||0)))}setAudioAppendStart(u){this.transmuxer.setAudioAppendStart(Math.ceil(ht.secondsToVideoTs(u.appendStart)))}setRemux(u){this.transmuxer.setRemux(u.remux)}flush(u){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(u){this.transmuxer.alignGopsWith(u.gopsToAlignWith.slice())}}self.onmessage=function(o){"init"===o.data.action&&o.data.options?this.messageHandlers=new Of(self,o.data.options):(this.messageHandlers||(this.messageHandlers=new Of(self)),o.data&&o.data.action&&"init"!==o.data.action&&this.messageHandlers[o.data.action]&&this.messageHandlers[o.data.action](o.data))}}));var m0=$d(p0);const Xd=s=>{const{transmuxer:e,bytes:t,audioAppendStart:i,gopsToAlignWith:n,remux:r,onData:a,onTrackInfo:l,onAudioTimingInfo:h,onVideoTimingInfo:m,onVideoSegmentTimingInfo:v,onAudioSegmentTimingInfo:y,onId3:I,onCaptions:P,onDone:j,onEndedTimeline:x,onTransmuxerLog:z,isEndOfTimeline:H,segment:U,triggerSegmentEventFn:R}=s,Q={buffer:[]};let X=H;if(e.onmessage=fe=>{e.currentTransmux===s&&("data"===fe.data.action&&((s,e,t)=>
vendor: 4,130 bytes, line 1
1{const{type:i,initSegment:n,captions:r,captionStreams:a,metadata:l,videoFrameDtsTime:h,videoFramePtsTime:m}=s.data.segment;e.buffer.push({captions:r,captionStreams:a,metadata:l});const v=s.data.segment.boxes||{data:s.data.segment.data},y={type:i,data:new Uint8Array(v.data,v.data.byteOffset,v.data.byteLength),initSegment:new Uint8Array(n.data,n.byteOffset,n.byteLength)};typeof h<"u"&&(y.videoFrameDtsTime=h),typeof m<"u"&&(y.videoFramePtsTime=m),t(y)})(fe,Q,a),"trackinfo"===fe.data.action&&l(fe.data.trackInfo),"gopInfo"===fe.data.action&&((s,e)=>{e.gopInfo=s.data.gopInfo})(fe,Q),"audioTimingInfo"===fe.data.action&&h(fe.data.audioTimingInfo),"videoTimingInfo"===fe.data.action&&m(fe.data.videoTimingInfo),"videoSegmentTimingInfo"===fe.data.action&&v(fe.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===fe.data.action&&y(fe.data.audioSegmentTimingInfo),"id3Frame"===fe.data.action&&I([fe.data.id3Frame],fe.data.id3Frame.dispatchType),"caption"===fe.data.action&&P(fe.data.caption),"endedtimeline"===fe.data.action&&(X=!1,x()),"log"===fe.data.action&&z(fe.data.log),"transmuxed"===fe.data.type&&(X||(e.onmessage=null,(({transmuxedData:s,callback:e})=>{s.buffer=[],e(s)})({transmuxedData:Q,callback:j}),Yd(e))))},e.onerror=()=>{const fe={message:"Received an error message from the transmuxer worker",metadata:{errorType:L.Error.StreamingFailedToTransmuxSegment,segmentInfo:Is({segment:U})}};j(null,fe)},i&&e.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(n)&&e.postMessage({action:"alignGopsWith",gopsToAlignWith:n}),typeof r<"u"&&e.postMessage({action:"setRemux",remux:r}),t.byteLength){const fe=t instanceof ArrayBuffer?t:t.buffer,We=t instanceof ArrayBuffer?0:t.byteOffset;R({type:"segmenttransmuxingstart",segment:U}),e.postMessage({action:"push",data:fe,byteOffset:We,byteLength:t.byteLength},[fe])}H&&e.postMessage({action:"endTimeline"}),e.postMessage({action:"flush"})},Yd=s=>{s.currentTransmux=null,s.transmuxQueue.length&&(s.currentTransmux=s.transmuxQueue.shift(),"function"==typeof s.currentTransmux?s.currentTransmux():Xd(s.currentTransmux))},Kd=(s,e)=>{s.postMessage({action:e}),Yd(s)};var xl_reset=s=>{((s,e)=>{if(!e.currentTransmux)return e.currentTransmux=s,void Kd(e,s);e.transmuxQueue.push(Kd.bind(null,e,s))})("reset",s)};const bn=function(s){const e=s.transmuxer,t=s.endAction||s.action,i=s.callback,n=Xe({},s,{endAction:null,transmuxer:null,callback:null}),r=a=>{a.data.action===t&&(e.removeEventListener("message",r),a.data.data&&(a.data.data=new Uint8Array(a.data.data,s.byteOffset||0,s.byteLength||a.data.data.byteLength),s.data&&(s.data=a.data.data)),i(a.data))};if(e.addEventListener("message",r),s.data){const a=s.data instanceof ArrayBuffer;n.byteOffset=a?0:s.data.byteOffset,n.byteLength=s.data.byteLength,e.postMessage(n,[a?s.data:s.data.buffer])}else e.postMessage(n)},Sl=s=>{s.forEach(e=>{e.abort()})},Cl=(s,e)=>{const{requestType:t}=e,i=ks({requestType:t,request:e,error:s});return e.timedout?{status:e.status,message:"HLS request timed-out at URL: "+e.uri,code:-101,xhr:e,metadata:i}:e.aborted?{status:e.status,message:"HLS request aborted at URL: "+e.uri,code:-102,xhr:e,metadata:i}:s?{status:e.status,message:"HLS request errored at URL: "+e.uri,code:2,xhr:e,metadata:i}:"arraybuffer"===e.responseType&&0===e.response.byteLength?{status:e.status,message:"Empty HLS response at URL: "+e.uri,code:2,xhr:e,metadata:i}:null},eh=(s,e,t,i)=>(n,r)=>{const a=r.response,l=Cl(n,r);if(l)return t(l,s);if(16!==a.byteLength)return t({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:2,xhr:r},s);const h=new DataView(a),m=new Uint32Array([h.getUint32(0),h.getUint32(4),h.getUint32(8),h.getUint32(12)]);for(let y=0;y<e.length;y++)e[y].bytes=m;return i({type:"segmentkeyloadcomplete",segment:s,keyInfo:{uri:r.uri}}),t(null,s)},th=(s,e)=>{const t=fo(s.map.bytes);if("mp4"!==t){const n=t||"unknown";return e({internal:!0,message:`Found unsupported ${n} container for initialization segment at URL: ${s.map.resolvedUri||s.map.uri}`,code:2,metadata:{mediaType:n}})}bn({action:"probeMp4Tracks",data:s.map.bytes,transmuxer:s.transmuxer,callback:({tracks:i,data:n})=>
vendor: 13,232 bytes, line 1
1(s.map.bytes=n,i.forEach(function(r){s.map.tracks=s.map.tracks||{},!s.map.tracks[r.type]&&(s.map.tracks[r.type]=r,"number"==typeof r.id&&r.timescale&&(s.map.timescales=s.map.timescales||{},s.map.timescales[r.id]=r.timescale),"text"===r.type&&((s,e)=>{"wvtt"===e&&s.transmuxer.postMessage({action:"initMp4WebVttParser",data:s.map.bytes})})(s,r.codec))}),e(null))})},w0=({segment:s,bytes:e,trackInfoFn:t,timingInfoFn:i,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:r,id3Fn:a,captionsFn:l,isEndOfTimeline:h,endedTimelineFn:m,dataFn:v,doneFn:y,onTransmuxerLog:I,triggerSegmentEventFn:P})=>{const j=s.map&&s.map.tracks||{},x=!(!j.audio||!j.video);let z=i.bind(null,s,"audio","start");const H=i.bind(null,s,"audio","end");let U=i.bind(null,s,"video","start");const R=i.bind(null,s,"video","end");bn({action:"probeTs",transmuxer:s.transmuxer,data:e,baseStartTime:s.baseStartTime,callback:X=>{s.bytes=e=X.data;const ce=X.result;ce&&(t(s,{hasAudio:ce.hasAudio,hasVideo:ce.hasVideo,isMuxed:x}),t=null),(s=>{if(!s.transmuxer.currentTransmux)return s.transmuxer.currentTransmux=s,void Xd(s);s.transmuxer.transmuxQueue.push(s)})({bytes:e,transmuxer:s.transmuxer,audioAppendStart:s.audioAppendStart,gopsToAlignWith:s.gopsToAlignWith,remux:x,onData:X=>{X.type="combined"===X.type?"video":X.type,v(s,X)},onTrackInfo:X=>{t&&(x&&(X.isMuxed=!0),t(s,X))},onAudioTimingInfo:X=>{z&&typeof X.start<"u"&&(z(X.start),z=null),H&&typeof X.end<"u"&&H(X.end)},onVideoTimingInfo:X=>{U&&typeof X.start<"u"&&(U(X.start),U=null),R&&typeof X.end<"u"&&R(X.end)},onVideoSegmentTimingInfo:X=>{P({type:"segmenttransmuxingtiminginfoavailable",segment:s,timingInfo:{pts:{start:X.start.presentation,end:X.end.presentation},dts:{start:X.start.decode,end:X.end.decode}}}),n(X)},onAudioSegmentTimingInfo:X=>{P({type:"segmenttransmuxingtiminginfoavailable",segment:s,timingInfo:{pts:{start:X.start.pts,end:X.end.pts},dts:{start:X.start.dts,end:X.end.dts}}}),r(X)},onId3:(X,ce)=>{a(s,X,ce)},onCaptions:X=>{l(s,[X])},isEndOfTimeline:h,onEndedTimeline:()=>{m()},onTransmuxerLog:I,onDone:(X,ce)=>{y&&(X.type="combined"===X.type?"video":X.type,P({type:"segmenttransmuxingcomplete",segment:s}),y(ce,s,X))},segment:s,triggerSegmentEventFn:P})}})},ih=({segment:s,bytes:e,trackInfoFn:t,timingInfoFn:i,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:r,id3Fn:a,captionsFn:l,isEndOfTimeline:h,endedTimelineFn:m,dataFn:v,doneFn:y,onTransmuxerLog:I,triggerSegmentEventFn:P})=>{let j=new Uint8Array(e);if(function(e){return qt(e,["moof"]).length>0}(j)){s.isFmp4=!0;const{tracks:x}=s.map;if(x.text&&(!x.audio||!x.video))return v(s,{data:j,type:"text"}),void((s,e,t)=>{"wvtt"===e&&bn({action:"getMp4WebVttText",data:s.bytes,transmuxer:s.transmuxer,callback:({data:i,mp4VttCues:n})=>{s.bytes=i,t(null,s,{mp4VttCues:n})}})})(s,x.text.codec,y);const H={isFmp4:!0,hasVideo:!!x.video,hasAudio:!!x.audio};x.audio&&x.audio.codec&&"enca"!==x.audio.codec&&(H.audioCodec=x.audio.codec),x.video&&x.video.codec&&"encv"!==x.video.codec&&(H.videoCodec=x.video.codec),x.video&&x.audio&&(H.isMuxed=!0),t(s,H);const U=(R,Q)=>{v(s,{data:j,type:H.hasAudio&&!H.isMuxed?"audio":"video"}),Q&&Q.length&&a(s,Q),R&&R.length&&l(s,R),y(null,s,{})};return void bn({action:"probeMp4StartTime",timescales:s.map.timescales,data:j,transmuxer:s.transmuxer,callback:({data:R,startTime:Q})=>{e=R.buffer,s.bytes=j=R,H.hasAudio&&!H.isMuxed&&i(s,"audio","start",Q),H.hasVideo&&i(s,"video","start",Q),bn({action:"probeEmsgID3",data:j,transmuxer:s.transmuxer,offset:Q,callback:({emsgData:X,id3Frames:ce})=>{e=X.buffer,s.bytes=j=X,x.video&&X.byteLength&&s.transmuxer?bn({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:s.transmuxer,data:j,timescales:s.map.timescales,trackIds:[x.video.id],callback:Y=>{e=Y.data.buffer,s.bytes=j=Y.data,Y.logs.forEach(function(fe){I(tt(fe,{stream:"mp4CaptionParser"}))}),U(Y.captions,ce)}}):U(void 0,ce)}})}})}if(s.transmuxer)return typeof s.container>"u"&&(s.container=fo(j)),"ts"!==s.container&&"aac"!==s.container?(t(s,{hasAudio:!1,hasVideo:!1}),void y(null,s,{})):void w0({segment:s,bytes:e,trackInfoFn:t,timingInfoFn:i,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:r,id3Fn:a,captionsFn:l,isEndOfTimeline:h,endedTimelineFn:m,dataFn:v,doneFn:y,onTransmuxerLog:I,triggerSegmentEventFn:P});y(null,s,{})},sh=function({id:s,key:e,encryptedBytes:t,decryptionWorker:i,segment:n,doneFn:r},a){const l=m=>{if(m.data.source===s){i.removeEventListener("message",l);const v=m.data.decrypted;a(new Uint8Array(v.bytes,v.byteOffset,v.byteLength))}};let h;i.onerror=()=>{const m="An error occurred in the decryption worker",v=Is({segment:n}),y={message:m,metadata:{error:new Error(m),errorType:L.Error.StreamingFailedToDecryptSegment,segmentInfo:v,keyInfo:{uri:n.key.resolvedUri||n.map.key.resolvedUri}}};r(y,n)},i.addEventListener("message",l),h=e.bytes.slice?e.bytes.slice():new Uint32Array(Array.prototype.slice.call(e.bytes)),i.postMessage(Nd({source:s,encrypted:t,key:h,iv:e.iv}),[t.buffer,h.buffer])},O0=({xhr:s,xhrOptions:e,decryptionWorker:t,segment:i,abortFn:n,progressFn:r,trackInfoFn:a,timingInfoFn:l,videoSegmentTimingInfoFn:h,audioSegmentTimingInfoFn:m,id3Fn:v,captionsFn:y,isEndOfTimeline:I,endedTimelineFn:P,dataFn:j,doneFn:x,onTransmuxerLog:z,triggerSegmentEventFn:H})=>{const U=[],R=(({activeXhrs:s,decryptionWorker:e,trackInfoFn:t,timingInfoFn:i,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:r,id3Fn:a,captionsFn:l,isEndOfTimeline:h,endedTimelineFn:m,dataFn:v,doneFn:y,onTransmuxerLog:I,triggerSegmentEventFn:P})=>{let j=0,x=!1;return(z,H)=>{if(!x){if(z)return x=!0,Sl(s),y(z,H);if(j+=1,j===s.length){const U=function(){if(H.encryptedBytes)return(({decryptionWorker:s,segment:e,trackInfoFn:t,timingInfoFn:i,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:r,id3Fn:a,captionsFn:l,isEndOfTimeline:h,endedTimelineFn:m,dataFn:v,doneFn:y,onTransmuxerLog:I,triggerSegmentEventFn:P})=>{P({type:"segmentdecryptionstart"}),sh({id:e.requestId,key:e.key,encryptedBytes:e.encryptedBytes,decryptionWorker:s,segment:e,doneFn:y},j=>{e.bytes=j,P({type:"segmentdecryptioncomplete",segment:e}),ih({segment:e,bytes:e.bytes,trackInfoFn:t,timingInfoFn:i,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:r,id3Fn:a,captionsFn:l,isEndOfTimeline:h,endedTimelineFn:m,dataFn:v,doneFn:y,onTransmuxerLog:I,triggerSegmentEventFn:P})})})({decryptionWorker:e,segment:H,trackInfoFn:t,timingInfoFn:i,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:r,id3Fn:a,captionsFn:l,isEndOfTimeline:h,endedTimelineFn:m,dataFn:v,doneFn:y,onTransmuxerLog:I,triggerSegmentEventFn:P});ih({segment:H,bytes:H.bytes,trackInfoFn:t,timingInfoFn:i,videoSegmentTimingInfoFn:n,audioSegmentTimingInfoFn:r,id3Fn:a,captionsFn:l,isEndOfTimeline:h,endedTimelineFn:m,dataFn:v,doneFn:y,onTransmuxerLog:I,triggerSegmentEventFn:P})};if(H.endOfAllRequests=Date.now(),H.map&&H.map.encryptedBytes&&!H.map.bytes)return P({type:"segmentdecryptionstart",segment:H}),sh({decryptionWorker:e,id:H.requestId+"-init",encryptedBytes:H.map.encryptedBytes,key:H.map.key,segment:H,doneFn:y},R=>{H.map.bytes=R,P({type:"segmentdecryptioncomplete",segment:H}),th(H,Q=>{if(Q)return Sl(s),y(Q,H);U()})});U()}}}})({activeXhrs:U,decryptionWorker:t,trackInfoFn:a,timingInfoFn:l,videoSegmentTimingInfoFn:h,audioSegmentTimingInfoFn:m,id3Fn:v,captionsFn:y,isEndOfTimeline:I,endedTimelineFn:P,dataFn:j,doneFn:x,onTransmuxerLog:z,triggerSegmentEventFn:H});if(i.key&&!i.key.bytes){const fe=[i.key];i.map&&!i.map.bytes&&i.map.key&&i.map.key.resolvedUri===i.key.resolvedUri&&fe.push(i.map.key);const We=tt(e,{uri:i.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),mt=eh(i,fe,R,H);H({type:"segmentkeyloadstart",segment:i,keyInfo:{uri:i.key.resolvedUri}});const gt=s(We,mt);U.push(gt)}if(i.map&&!i.map.bytes){if(i.map.key&&(!i.key||i.key.resolvedUri!==i.map.key.resolvedUri)){const gt=tt(e,{uri:i.map.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),Oe=eh(i,[i.map.key],R,H);H({type:"segmentkeyloadstart",segment:i,keyInfo:{uri:i.map.key.resolvedUri}});const di=s(gt,Oe);U.push(di)}const We=tt(e,{uri:i.map.resolvedUri,responseType:"arraybuffer",headers:yl(i.map),requestType:"segment-media-initialization"}),mt=(({segment:s,finishProcessingFn:e,triggerSegmentEventFn:t})=>(i,n)=>{const r=Cl(i,n);if(r)return e(r,s);const a=new Uint8Array(n.response);if(t({type:"segmentloaded",segment:s}),s.map.key)return s.map.encryptedBytes=a,e(null,s);s.map.bytes=a,th(s,function(l){if(l)return l.xhr=n,l.status=n.status,e(l,s);e(null,s)})})({segment:i,finishProcessingFn:R,triggerSegmentEventFn:H});H({type:"segmentloadstart",segment:i});const Pt=s(We,mt);U.push(Pt)}const Q=tt(e,{uri:i.part&&i.part.resolvedUri||i.resolvedUri,responseType:"arraybuffer",headers:yl(i),requestType:"segment"}),X=(({segment:s,finishProcessingFn:e,responseType:t,triggerSegmentEventFn:i})=>(n,r)=>{const a=Cl(n,r);if(a)return e(a,s);i({type:"segmentloaded",segment:s});const l="arraybuffer"!==t&&r.responseText?(s=>{const e=new Uint8Array(new ArrayBuffer(s.length));for(let t=0;t<s.length;t++)e[t]=s.charCodeAt(t);return e.buffer})(r.responseText.substring(s.lastReachedChar||0)):r.response;return s.stats=(s=>({bandwidth:s.bandwidth,bytesReceived:s.bytesReceived||0,roundTripTime:s.roundTripTime||0}))(r),s.key?s.encryptedBytes=new Uint8Array(l):s.bytes=new Uint8Array(l),e(null,s)})({segment:i,finishProcessingFn:R,responseType:Q.responseType,triggerSegmentEventFn:H});H({type:"segmentloadstart",segment:i});const ce=s(Q,X);ce.addEventListener("progress",(({segment:s,progressFn:e})=>y=>{if(!y.target.aborted)return s.stats=tt(s.stats,(s=>{const e=s.target,i={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-e.requestTime||0};return i.bytesReceived=s.loaded,i.bandwidth=Math.floor(i.bytesReceived/i.roundTripTime*8*1e3),i})(y)),!s.stats.firstBytesReceivedAt&&s.stats.bytesReceived&&(s.stats.firstBytesReceivedAt=Date.now()),e(y,s)})({segment:i,progressFn:r,trackInfoFn:a,timingInfoFn:l,videoSegmentTimingInfoFn:h,audioSegmentTimingInfoFn:m,id3Fn:v,captionsFn:y,isEndOfTimeline:I,endedTimelineFn:P,dataFn:j})),U.push(ce);const Y={};return U.forEach(fe=>{fe.addEventListener("loadend",(({loadendState:s,abortFn:e})=>t=>{t.target.aborted&&e&&!s.calledAbortFn&&(e(),s.calledAbortFn=!0)})({loadendState:Y,abortFn:n}))}),()=>Sl(U)},xa=ci("PlaylistSelector"),nh=function(s){if(!s||!s.playlist)return;const e=s.playlist;return JSON.stringify({id:e.id,bandwidth:s.bandwidth,width:s.width,height:s.height,codecs:e.attributes&&e.attributes.CODECS||""})},Tn=function(s,e){if(!s)return"";const t=C().getComputedStyle(s);return t?t[e]:""},xn=function(s,e){const t=s.slice();s.sort(function(i,n){const r=e(i,n);return 0===r?t.indexOf(i)-t.indexOf(n):r})},El=function(s,e){let t,i;return s.attributes.BANDWIDTH&&(t=s.attributes.BANDWIDTH),t=t||C().Number.MAX_VALUE,e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||C().Number.MAX_VALUE,t-i};let rh=function(s){const{main:e,bandwidth:t,playerWidth:i,playerHeight:n,playerObjectFit:r,limitRenditionByPlayerDimensions:a,playlistController:l}=s;if(!e)return;const h={bandwidth:t,width:i,height:n,limitRenditionByPlayerDimensions:a};let m=e.playlists;Gt.isAudioOnly(e)&&(m=l.getAudioTrackPlaylists_(),h.audioOnly=!0);let v=m.map(Y=>{let fe;const We=Y.attributes&&Y.attributes.RESOLUTION&&Y.attributes.RESOLUTION.width,mt=Y.attributes&&Y.attributes.RESOLUTION&&Y.attributes.RESOLUTION.height;return fe=Y.attributes&&Y.attributes.BANDWIDTH,fe=fe||C().Number.MAX_VALUE,{bandwidth:fe,width:We,height:mt,playlist:Y}});xn(v,(Y,fe)=>Y.bandwidth-fe.bandwidth),v=v.filter(Y=>!Gt.isIncompatible(Y.playlist));let y=v.filter(Y=>Gt.isEnabled(Y.playlist));y.length||(y=v.filter(Y=>!Gt.isDisabled(Y.playlist)));const I=y.filter(Y=>Y.bandwidth*It.BANDWIDTH_VARIANCE<t);let P=I[I.length-1];const j=I.filter(Y=>Y.bandwidth===P.bandwidth)[0];if(!1===a){const Y=j||y[0]||v[0];if(Y&&Y.playlist){let fe="sortedPlaylistReps";return j&&(fe="bandwidthBestRep"),y[0]&&(fe="enabledPlaylistReps"),xa(`choosing ${nh(Y)} using ${fe} with options`,h),Y.playlist}return xa("could not choose a playlist with options",h),null}const x=I.filter(Y=>Y.width&&Y.height);xn(x,(Y,fe)=>Y.width-fe.width);const z=x.filter(Y=>Y.width===i&&Y.height===n);P=z[z.length-1];const H=z.filter(Y=>Y.bandwidth===P.bandwidth)[0];let U,R,Q,X;if(H||(U=x.filter(Y=>"cover"===r?Y.width>i&&Y.height>n:Y.width>i||Y.height>n),R=U.filter(Y=>Y.width===U[0].width&&Y.height===U[0].height),P=R[R.length-1],Q=R.filter(Y=>Y.bandwidth===P.bandwidth)[0]),l.leastPixelDiffSelector){const Y=x.map(fe=>(fe.pixelDiff=Math.abs(fe.width-i)+Math.abs(fe.height-n),fe));xn(Y,(fe,We)=>fe.pixelDiff===We.pixelDiff?We.bandwidth-fe.bandwidth:fe.pixelDiff-We.pixelDiff),X=Y[0]}const ce=X||Q||H||j||y[0]||v[0];if(ce&&ce.playlist){let Y="sortedPlaylistReps";return X?Y="leastPixelDiffRep":Q?Y="resolutionPlusOneRep":H?Y="resolutionBestRep":j?Y="bandwidthBestRep":y[0]&&(Y="enabledPlaylistReps"),xa(`choosing ${nh(ce)} using ${Y} with options`,h),ce.playlist}return xa("could not choose a playlist with options",h),null};const ah=function(){let s=this.useDevicePixelRatio&&C().devicePixelRatio||1;return isNaN(this.customPixelRatio)||(s=this.customPixelRatio),rh({main:this.playlists.main,bandwidth:this.systemBandwidth,playerWidth:parseInt(Tn(this.tech_.el(),"width"),10)*s,playerHe
vendor: 4,959 bytes, line 1
1ight:parseInt(Tn(this.tech_.el(),"height"),10)*s,playerObjectFit:this.usePlayerObjectFit?Tn(this.tech_.el(),"objectFit"):"",limitRenditionByPlayerDimensions:this.limitRenditionByPlayerDimensions,playlistController:this.playlistController_})};function oh(s){try{return new URL(s).pathname.split("/").slice(-2).join("/")}catch{return""}}const H0={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"},q0=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),lh=(s,e,t)=>{s.metadataTrack_||(s.metadataTrack_=t.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,L.browser.IS_ANY_SAFARI||(s.metadataTrack_.inBandMetadataTrackDispatchType=e))},ar=function(s,e,t){let i,n;if(t&&t.cues)for(i=t.cues.length;i--;)n=t.cues[i],n.startTime>=s&&n.endTime<=e&&t.removeCue(n)},uh=s=>"number"==typeof s&&isFinite(s),Sa=1/60,Sn=s=>{const{startOfSegment:e,duration:t,segment:i,part:n,playlist:{mediaSequence:r,id:a,segments:l=[]},mediaIndex:h,partIndex:m,timeline:v}=s,y=l.length-1;let I="mediaIndex/partIndex increment";s.getMediaInfoForTime?I=`getMediaInfoForTime (${s.getMediaInfoForTime})`:s.isSyncRequest&&(I="getSyncSegmentCandidate (isSyncRequest)"),s.independent&&(I+=` with independent ${s.independent}`);const P="number"==typeof m,j=s.segment.uri?"segment":"pre-segment",x=P?md({preloadSegment:i})-1:0;return`${j} [${r+h}/${r+y}]`+(P?` part [${m}/${x}]`:"")+` segment start/end [${i.start} => ${i.end}]`+(P?` part start/end [${n.start} => ${n.end}]`:"")+` startOfSegment [${e}] duration [${t}] timeline [${v}] selected by [${I}] playlist [${a}]`},ch=s=>`${s}TimingInfo`,Al=({timelineChangeController:s,currentTimeline:e,segmentTimeline:t,loaderType:i,audioDisabled:n})=>{if(e===t)return!1;if("audio"===i){const r=s.lastTimelineChange({type:"main"});return!r||r.to!==t}if("main"===i&&n){const r=s.pendingTimelineChange({type:"audio"});return!(r&&r.to===t)}return!1},ds=s=>{const e=s.pendingSegment_;if(e&&Al({timelineChangeController:s.timelineChangeController_,currentTimeline:s.currentTimeline_,segmentTimeline:e.timeline,loaderType:s.loaderType_,audioDisabled:s.audioDisabled_})&&(s=>{if(!s)return!1;const e=s.pendingTimelineChange({type:"audio"}),t=s.pendingTimelineChange({type:"main"}),i=e&&t;return!(!i||-1===e.from||-1===t.from||!i||e.to===t.to)})(s.timelineChangeController_)){if((s=>{const e=s.timelineChangeController_.pendingTimelineChange({type:"audio"}),t=s.timelineChangeController_.pendingTimelineChange({type:"main"});return e&&t&&e.to<t.to})(s))return void s.timelineChangeController_.trigger("audioTimelineBehind");s.timelineChangeController_.trigger("fixBadTimelineChange")}},dh=({segmentDuration:s,maxDuration:e})=>!!s&&Math.round(s)>e+ji,Is=({type:s,segment:e})=>{if(e)return{type:s||e.type,uri:e.resolvedUri||e.uri,start:void 0===e.startOfSegment?e.start:e.startOfSegment,duration:e.duration,isEncrypted:!!(e.key||e.map&&e.map.ke),isMediaInitialization:!(!e.map||e.map.bytes)}};class wl extends L.EventTarget{constructor(e,t={}){if(super(),!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");this.bandwidth=e.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.partIndex=null,this.hasPlayed_=e.hasPlayed,this.currentTime_=e.currentTime,this.seekable_=e.seekable,this.seeking_=e.seeking,this.duration_=e.duration,this.mediaSource_=e.mediaSource,this.vhs_=e.vhs,this.loaderType_=e.loaderType,this.currentMediaInfo_=void 0,this.startingMediaInfo_=void 0,this.segmentMetadataTrack_=e.segmentMetadataTrack,this.goalBufferLength_=e.goalBufferLength,this.sourceType_=e.sourceType,this.sourceUpdater_=e.sourceUpdater,this.inbandTextTracks_=e.inbandTextTracks,this.state_="INIT",this.timelineChangeController_=e.timelineChangeController,this.shouldSaveSegmentTimingInfo_=!0,this.parse708captions_=e.parse708captions,this.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,this.captionServices_=e.captionServices,this.exactManifestTimings=e.exactManifestTimings,this.addMetadataToTextTrack=e.addMetadataToTextTrack,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.shouldForceTimestampOffsetAfterResync_=!1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=!1,this.appendInitSegment_={audio:!0,video:!0},this.playlistOfLastInitSegment_={audio:null,video:null},this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_={id3:[],caption:[]},this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=null,this.activeInitSegmentId_=null,this.initSegments_={}
vendor: 6,823 bytes, line 1
1,this.cacheEncryptionKeys_=e.cacheEncryptionKeys,this.keyCache_={},this.decrypter_=e.decrypter,this.syncController_=e.syncController,this.syncPoint_={segmentIndex:0,time:0},this.transmuxer_=this.createTransmuxer_(),this.triggerSyncInfoUpdate_=()=>this.trigger("syncinfoupdate"),this.syncController_.on("syncinfoupdate",this.triggerSyncInfoUpdate_),this.mediaSource_.addEventListener("sourceopen",()=>{this.isEndOfStream_()||(this.ended_=!1)}),this.fetchAtBuffer_=!1,this.logger_=ci(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,"state",{get(){return this.state_},set(i){i!==this.state_&&(this.logger_(`${this.state_} -> ${i}`),this.state_=i,this.trigger("statechange"))}}),this.sourceUpdater_.on("ready",()=>{this.hasEnoughInfoToAppend_()?this.processCallQueue_():ds(this)}),this.sourceUpdater_.on("codecschange",i=>{this.trigger(Xe({type:"codecschange"},i))}),"main"===this.loaderType_&&this.timelineChangeController_.on("pendingtimelinechange",()=>{this.hasEnoughInfoToAppend_()?this.processCallQueue_():ds(this)}),"audio"===this.loaderType_&&this.timelineChangeController_.on("timelinechange",i=>{this.trigger(Xe({type:"timelinechange"},i)),this.hasEnoughInfoToLoad_()?this.processLoadQueue_():ds(this),this.hasEnoughInfoToAppend_()?this.processCallQueue_():ds(this)})}get mediaSequenceSync_(){return this.syncController_.getMediaSequenceSync(this.loaderType_)}createTransmuxer_(){return(s=>{const e=new m0;e.currentTransmux=null,e.transmuxQueue=[];const t=e.terminate;return e.terminate=()=>(e.currentTransmux=null,e.transmuxQueue.length=0,t.call(e)),e.postMessage({action:"init",options:s}),e})({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}resetStats_(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}dispose(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&C().clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}setAudio(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}abort(){if("WAITING"!==this.state)return this.pendingSegment_&&(this.pendingSegment_=null),void this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_);this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()}abort_(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,C().clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}checkForAbort_(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)}error(e){return typeof e<"u"&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_}endOfStream(){this.ended_=!0,this.transmuxer_&&xl_reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){const e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return kt();if("main"===this.loaderType_){const{hasAudio:t,hasVideo:i,isMuxed:n}=e;if(i&&t&&!this.audioDisabled_&&!n)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(e,t=!1){if(!e)return null;const i=Ta(e);let n=this.initSegments_[i];return t&&!n&&e.bytes&&(this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),n||e}segmentKey(e,t=!1){if(!e)return null;const i=Bd(e);let n=this.keyCache_[i];this.cacheEncryptionKeys_&&t&&!n&&e.bytes&&(this.keyCache_[i]=n={resolvedUri:e.resolvedUri,bytes:e.bytes});const r={resolvedUri:(n||e).resolvedUri};return n&&(r.bytes=n.bytes),r}couldBeginLoading_(){return this.playlist_&&!this.paused()}load(){if(this.monitorBuffer_(),this.playlist_){if("INIT"===this.state&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY")}}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}playlist(e,t={}){if(!e||this.playlist_&&this.playlist_.endList&&e.endList&&this.playlist_.uri===e.uri)return;const i=this.playlist_,n=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));let r=null;if(i&&(i.id?r=i.id:i.uri&&(r=i.uri)),this.logger_(`playlist update [${r} => ${e.id||e.uri}]`),this.mediaSequenceSync_&&(this.mediaSequenceSync_.update(e,this.currentTime_()),this.logger_(`Playlist update:\ncurrentTime: ${this.currentTime_()}\nbufferedEnd: ${ul(this.buffered_())}\n`,this.mediaSequenceSync_.diagnostics)),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==e.uri)return null!==this.mediaIndex&&(e.endList||"number"!=typeof e.partTargetDuration?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");const a=e.mediaSequence-i.mediaSequence;if(this.logger_(`live window shift [${a}]`),null!==this.mediaIndex)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{const l=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!l.parts||!l.parts.length||!l.parts[this.partIndex])){const h=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=h}}n&&(n.mediaIndex-=a,n.mediaIndex<0?(n.mediaIndex=null,n.partIndex=null):(n.mediaIndex>=0&&(n.segment=e.segments[n.mediaIndex]),n.partIndex>=0&&n.segment.parts&&(n.part=n.segment.parts[n.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,e)}pause(){this.checkBufferTimeout_&&(C().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return null===this.checkBufferTimeout_}resetEverything(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}
vendor: 7,429 bytes, line 1
1resetLoader(){this.fetchAtBuffer_=!1,this.mediaSequenceSync_&&this.mediaSequenceSync_.resetAppendedStatus(),this.resyncLoader()}resyncLoader(){this.transmuxer_&&xl_reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,"hls"===this.sourceType_&&!(this.currentMediaInfo_&&this.currentMediaInfo_.isFmp4)&&(this.shouldForceTimestampOffsetAfterResync_=!0),this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}remove(e,t,i=()=>{},n=!1){if(t===1/0&&(t=this.duration_()),t<=e)return void this.logger_("skipping remove because end ${end} is <= start ${start}");if(!this.sourceUpdater_||!this.getMediaInfo_())return void this.logger_("skipping remove because no source updater or starting media info");let r=1;const a=()=>{r--,0===r&&i()};(n||!this.audioDisabled_)&&(r++,this.sourceUpdater_.removeAudio(e,t,a)),(n||"main"===this.loaderType_)&&(this.gopBuffer_=((s,e,t,i)=>{const n=Math.ceil((e-i)*bs.ONE_SECOND_IN_TS),r=Math.ceil((t-i)*bs.ONE_SECOND_IN_TS),a=s.slice();let l=s.length;for(;l--&&!(s[l].pts<=r););if(-1===l)return a;let h=l+1;for(;h--&&!(s[h].pts<=n););return h=Math.max(h,0),a.splice(h,l-h+1),a})(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,a));for(const l in this.inbandTextTracks_)ar(e,t,this.inbandTextTracks_[l]);ar(e,t,this.segmentMetadataTrack_),a()}monitorBuffer_(){this.checkBufferTimeout_&&C().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=C().setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&C().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=C().setTimeout(this.monitorBufferTick_.bind(this),500)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const e=this.chooseNextRequest_();if(!e)return;const t={segmentInfo:Is({type:this.loaderType_,segment:e})};this.trigger({type:"segmentselected",metadata:t}),"number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e)}isEndOfStream_(e=this.mediaIndex,t=this.playlist_,i=this.partIndex){if(!t||!this.mediaSource_)return!1;const n="number"==typeof e&&t.segments[e];return t.endList&&"open"===this.mediaSource_.readyState&&e+1===t.segments.length&&(!n||!n.parts||i+1===n.parts.length)}chooseNextRequest_(){const e=this.buffered_(),t=ul(e)||0,i=cl(e,this.currentTime_()),n=!this.hasPlayed_()&&i>=1,r=i>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||n||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);const l={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:!this.syncPoint_};if(l.isSyncRequest)l.mediaIndex=function(s,e,t){e=e||[];const i=[];let n=0;for(let r=0;r<e.length;r++){const a=e[r];if(s===a.timeline&&(i.push(r),n+=a.duration,n>t))return r}return 0===i.length?0:i[i.length-1]}(this.currentTimeline_,a,t),this.logger_(`choose next request. Can not find sync point. Fallback to media Index: ${l.mediaIndex}`);else if(null!==this.mediaIndex){const I=a[this.mediaIndex],P="number"==typeof this.partIndex?this.partIndex:-1;l.startOfSegment=I.end?I.end:t,I.parts&&I.parts[P+1]?(l.mediaIndex=this.mediaIndex,l.partIndex=P+1):l.mediaIndex=this.mediaIndex+1}else{let I,P,j;const x=this.fetchAtBuffer_?t:this.currentTime_();if(this.mediaSequenceSync_&&this.logger_(`chooseNextRequest_ request after Quality Switch:\nFor TargetTime: ${x}.\nCurrentTime: ${this.currentTime_()}\nBufferedEnd: ${t}\nFetch At Buffer: ${this.fetchAtBuffer_}\n`,this.mediaSequenceSync_.diagnostics),this.mediaSequenceSync_&&this.mediaSequenceSync_.isReliable){const z=this.getSyncInfoFromMediaSequenceSync_(x);if(!z){const H="No sync info found while using media sequence sync";return this.error({message:H,metadata:{errorType:L.Error.StreamingFailedToSelectNextSegment,error:new Error(H)}}),this.logger_("chooseNextRequest_ - no sync info found using media sequence sync"),null}this.logger_(`chooseNextRequest_ mediaSequence syncInfo (${z.start} --\x3e ${z.end})`),I=z.segmentIndex,P=z.partIndex,j=z.start}else{this.logger_("chooseNextRequest_ - fallback to a regular segment selection algorithm, based on a syncPoint.");const z=Gt.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:x,startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});I=z.segmentIndex,P=z.partIndex,j=z.startTime}l.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${x}`:`currentTime ${x}`,l.mediaIndex=I,l.startOfSegment=j,l.partIndex=P,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${l.mediaIndex} `)}const h=a[l.mediaIndex];let m=h&&"number"==typeof l.partIndex&&h.parts&&h.parts[l.partIndex];if(!h||"number"==typeof l.partIndex&&!m)return null;if("number"!=typeof l.partIndex&&h.parts&&(l.partIndex=0,m=h.parts[0]),!i&&m&&!(this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments)&&!m.independent)if(0===l.partIndex){const I=a[l.mediaIndex-1],P=I.parts&&I.parts.length&&I.parts[I.parts.length-1];P&&P.independent&&(l.mediaIndex-=1,l.partIndex=I.parts.length-1,l.independent="previous segment")}else h.parts[l.partIndex-1].independent&&(l.partIndex-=1,l.independent="previous part");return l.mediaIndex>=a.length-1&&this.mediaSource_&&"ended"===this.mediaSource_.readyState&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,l.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(l))}getSyncInfoFromMediaSequenceSync_(e){if(!this.mediaSequenceSync_)return null;const t=Math.max(e,this.mediaSequenceSync_.start);e!==t&&this.logger_(`getSyncInfoFromMediaSequenceSync_. Pulled target time from ${e} to ${t}`);const i=this.mediaSequenceSync_.getSyncInfoForTime(t);if(!i)return null;if(!i.isAppended)return i;const n=this.mediaSequenceSync_.getSyncInfoForTime(i.end);return n?(n.isAppended&&this.logger_("getSyncInfoFromMediaSequenceSync_: We encounter unexpected scenario where next media sequence sync info is also appended!"),n):null}generateSegmentInfo_(e){const{independent:t,playlist:i,mediaIndex:n,startOfSegment:r,isSyncRequest:a,partIndex:l,forceTimestampOffset:h,getMediaInfoForTime:m}=e,v=i.segments[n],y="number"==typeof l&&v.parts[l],I={requestId:"segment-loader-"+Math.random(),uri:y&&y.resolvedUri||v.resolvedUri,mediaIndex:n,partIndex:y?l:null,isSyncRequest:a,startOfSegment:r,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:v.timeline,duration:y&&y.duration||v.duration,segment:v,part:y,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:m,independent:t},P=typeof h<"u"?h:this.isPendingTimestampOffset_;I.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:v.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:P});
vendor: 5,342 bytes, line 1
1const j=ul(this.sourceUpdater_.audioBuffered());return"number"==typeof j&&(I.audioAppendStart=j-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(I.gopsToAlignWith=((s,e)=>{if(typeof e>"u"||null===e||!s.length)return[];const i=Math.ceil((e-this.timeMapping_+3)*bs.ONE_SECOND_IN_TS);let n;for(n=0;n<s.length&&!(s[n].pts>i);n++);return s.slice(n)})(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset())),I}timestampOffsetForSegment_(e){return(({segmentTimeline:s,currentTimeline:e,startOfSegment:t,buffered:i,overrideCheck:n})=>n||s!==e?s<e?t:i.length?i.end(i.length-1):t:null)(e)}earlyAbortWhenNeeded_(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;const t=this.currentTime_(),i=e.bandwidth,n=this.pendingSegment_.duration,r=Gt.estimateSegmentRequestTime(n,i,this.playlist_,e.bytesReceived),a=function(s,e,t=1){return((s.length?s.end(s.length-1):0)-e)/t}(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(r<=a)return;const l=function(s){const{main:e,currentTime:t,bandwidth:i,duration:n,segmentDuration:r,timeUntilRebuffer:a,currentTimeline:l,syncController:h}=s,m=e.playlists.filter(j=>!Gt.isIncompatible(j));let v=m.filter(Gt.isEnabled);v.length||(v=m.filter(j=>!Gt.isDisabled(j)));const I=v.filter(Gt.hasAttribute.bind(null,"BANDWIDTH")).map(j=>{const z=h.getSyncPoint(j,n,l,t)?1:2;return{playlist:j,rebufferingImpact:Gt.estimateSegmentRequestTime(r,i,j)*z-a}}),P=I.filter(j=>j.rebufferingImpact<=0);return xn(P,(j,x)=>El(x.playlist,j.playlist)),P.length?P[0]:(xn(I,(j,x)=>j.rebufferingImpact-x.rebufferingImpact),I[0]||null)}({main:this.vhs_.playlists.main,currentTime:t,bandwidth:i,duration:this.duration_(),segmentDuration:n,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!l)return;let v=.5;a<=ji&&(v=1),l.playlist&&l.playlist.uri!==this.playlist_.uri&&!(r-a-l.rebufferingImpact<v)&&(this.bandwidth=l.playlist.attributes.BANDWIDTH*It.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(e){this.logger_(`Aborting ${Sn(e)}`),this.mediaRequestsAborted+=1}handleProgress_(e,t){this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId)&&this.trigger("progress")}handleTrackInfo_(e,t){const{hasAudio:i,hasVideo:n}=t,r={segmentInfo:Is({type:this.loaderType_,segment:e}),trackInfo:{hasAudio:i,hasVideo:n}};this.trigger({type:"segmenttransmuxingtrackinfoavailable",metadata:r}),this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)&&(this.checkForIllegalMediaSwitch(t)||(function(s,e){if(!s&&!e||!s&&e||s&&!e)return!1;if(s===e)return!0;const t=Object.keys(s).sort(),i=Object.keys(e).sort();if(t.length!==i.length)return!1;for(let n=0;n<t.length;n++){const r=t[n];if(r!==i[n]||s[r]!==e[r])return!1}return!0}(this.currentMediaInfo_,t=t||{})||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),!this.checkForAbort_(e.requestId)&&(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()?this.processCallQueue_():ds(this))))}handleTimingInfo_(e,t,i,n){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;const r=this.pendingSegment_,a=ch(t);r[a]=r[a]||{},r[a][i]=n,this.logger_(`timinginfo: ${t} - ${i} - ${n}`),this.hasEnoughInfoToAppend_()?this.processCallQueue_():ds(this)}handleCaptions_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(0===t.length)return void this.logger_("SegmentLoader received no captions from a caption event");if(!this.pendingSegment_.hasAppendedData_)return void this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));const n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r={};t.forEach(a=>{r[a.stream]=r[a.stream]||{startTime:1/0,captions:[],endTime:0};const l=r[a.stream];l.startTime=Math.min(l.startTime,a.startTime+n),l.endTime=Math.max(l.endTime,a.endTime+n),l.captions.push(a)}),Object.keys(r).forEach(a=>{const{startTime:l,endTime:h,captions:m}=r[a],v=this.inbandTextTracks_;this.logger_(`adding cues from ${l} -> ${h} for ${a}`),function(s,e,t){if(!s[t]){e.trigger({type:"usage",name:"vhs-608"});let i=t;/^cc708_/.test(t)&&(i="SERVICE"+t.split("_")[1]);const n=e.textTracks().getTrackById(i);if(n)s[t]=n;else{let a=t,l=t,h=!1;const m=(e.options_.vhs&&e.options_.vhs.captionServices||{})[i];m&&(a=m.label,l=m.language,h=m.default),s[t]=e.addRemoteTextTrack({kind:"captions",id:i,default:h,label:a,language:l},!1).track}}}(v,this.vhs_.tech_,a),ar(l,h,v[a]),function({inbandTextTracks:s,captionArray:e,timestampOffset:t}){if(!e)return;const i=C().WebKitDataCue||C().VTTCue;e.forEach(n=>{const r=n.stream;n.content?n.content.forEach(a=>{const l=new i(n.startTime+t,n.endTime+t,a.text);l.line=a.line,l.align="left",l.position=a.position,l.positionAlign="line-left",s[r].addCue(l)}):s[r].addCue(new i(n.startTime+t,n.endTime+t,n.text))})}({captionArray:m,inbandTextTracks:v,timestampOffset:n})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}handleId3_(e,t,i){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||
vendor: 5,710 bytes, line 1
1(this.pendingSegment_.hasAppendedData_?this.addMetadataToTextTrack(i,t,this.duration_()):this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,i)))}processMetadataQueue_(){this.metadataQueue_.id3.forEach(e=>e()),this.metadataQueue_.caption.forEach(e=>e()),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){const e=this.callQueue_;this.callQueue_=[],e.forEach(t=>t())}processLoadQueue_(){const e=this.loadQueue_;this.loadQueue_=[],e.forEach(t=>t())}hasEnoughInfoToLoad_(){if("audio"!==this.loaderType_)return!0;const e=this.pendingSegment_;return!(!e||this.getCurrentMediaInfo_()&&Al({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}getCurrentMediaInfo_(e=this.pendingSegment_){return e&&e.trackInfo||this.currentMediaInfo_}getMediaInfo_(e=this.pendingSegment_){return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}getPendingSegmentPlaylist(){return this.pendingSegment_?this.pendingSegment_.playlist:null}hasEnoughInfoToAppend_(){if(!this.sourceUpdater_.ready()||this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;const e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;const{hasAudio:i,hasVideo:n,isMuxed:r}=t;return!(n&&!e.videoTimingInfo||i&&!this.audioDisabled_&&!r&&!e.audioTimingInfo||Al({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_())return ds(this),void this.callQueue_.push(this.handleData_.bind(this,e,t));const i=this.pendingSegment_;if(this.setTimeMapping_(i.timeline),this.updateMediaSecondsLoaded_(i.part||i.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),i.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),i.isFmp4=e.isFmp4,i.timingInfo=i.timingInfo||{},i.isFmp4)this.trigger("fmp4"),i.timingInfo.start=i[ch(t.type)].start;else{const n=this.getCurrentMediaInfo_(),r="main"===this.loaderType_&&n&&n.hasVideo;let a;r&&(a=i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:r,firstVideoFrameTimeForData:a,videoTimingInfo:i.videoTimingInfo,audioTimingInfo:i.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(i,t.type),this.updateSourceBufferTimestampOffset_(i),i.isSyncRequest){this.updateTimingInfoEnd_(i),this.syncController_.saveSegmentTimingInfo({segmentInfo:i,shouldSaveTimelineMapping:"main"===this.loaderType_});const n=this.chooseNextRequest_();if(n.mediaIndex!==i.mediaIndex||n.partIndex!==i.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}i.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(i,t)}}updateAppendInitSegmentStatus(e,t){"main"===this.loaderType_&&"number"==typeof e.timestampOffset&&!e.changedTimestampOffset&&(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)}getInitSegmentAndUpdateState_({type:e,initSegment:t,map:i,playlist:n}){if(i){const r=Ta(i);if(this.activeInitSegmentId_===r)return null;t=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=r}return t&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=n,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,t):null}handleQuotaExceededError_({segmentInfo:e,type:t,bytes:i},n){const r=this.sourceUpdater_.audioBuffered(),a=this.sourceUpdater_.videoBuffered();r.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Ds(r).join(", ")),a.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Ds(a).join(", "));const l=r.length?r.start(0):0,h=r.length?r.end(r.length-1):0,m=a.length?a.start(0):0,v=a.length?a.end(a.length-1):0;if(h-l<=1&&v-m<=1)return this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${i.byteLength}, audio buffer: ${Ds(r).join(", ")}, video buffer: ${Ds(a).join(", ")}, `),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:e,type:t,bytes:i}));const I=this.currentTime_()-1;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${I}`),this.remove(0,I,()=>{this.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=C().setTimeout(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()},1e3)},!0)}handleAppendError_({segmentInfo:e,type:t,bytes:i},n){if(n){if(22===n.code)return void this.handleQuotaExceededError_({segmentInfo:e,type:t,bytes:i});this.logger_("Received non QUOTA_EXCEEDED_ERR on append",n),this.error({message:`${t} append of ${i.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}`,metadata:{errorType:L.Error.StreamingFailedToAppendSegment}}),this.trigger("appenderror")}}appendToSourceBuffer_({segmentInfo:e,type:t,initSegment:i,data:n,bytes:r}){if(!r){const l=[n];let h=n.byteLength;i&&(l.unshift(i),h+=i.byteLength),r=(s=>{let t,e=0;
vendor: 12,377 bytes, line 1
1return s.bytes&&(t=new Uint8Array(s.bytes),s.segments.forEach(i=>{t.set(i,e),e+=i.byteLength})),t})({bytes:h,segments:l})}const a={segmentInfo:Is({type:this.loaderType_,segment:e})};this.trigger({type:"segmentappendstart",metadata:a}),this.sourceUpdater_.appendBuffer({segmentInfo:e,type:t,bytes:r},this.handleAppendError_.bind(this,{segmentInfo:e,type:t,bytes:r}))}handleSegmentTimingInfo_(e,t,i){if(!this.pendingSegment_||t!==this.pendingSegment_.requestId)return;const n=this.pendingSegment_.segment,r=`${e}TimingInfo`;n[r]||(n[r]={}),n[r].transmuxerPrependedSeconds=i.prependedContentDuration||0,n[r].transmuxedPresentationStart=i.start.presentation,n[r].transmuxedDecodeStart=i.start.decode,n[r].transmuxedPresentationEnd=i.end.presentation,n[r].transmuxedDecodeEnd=i.end.decode,n[r].baseMediaDecodeTime=i.baseMediaDecodeTime}appendData_(e,t){const{type:i,data:n}=t;if(!n||!n.byteLength||"audio"===i&&this.audioDisabled_)return;const r=this.getInitSegmentAndUpdateState_({type:i,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:i,initSegment:r,data:n})}loadSegment_(e){if(this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_())return ds(this),void this.loadQueue_.push(()=>{const t=Xe({},e,{forceTimestampOffset:!0});Xe(e,this.generateSegmentInfo_(t)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(e)});this.updateTransmuxerAndRequestSegment_(e)}updateTransmuxerAndRequestSegment_(e){this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));const t=this.createSimplifiedSegmentObj_(e),a=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)||null!==this.mediaIndex&&e.timeline!==this.currentTimeline_&&e.timeline>0;this.logger_(`Requesting\n${oh(e.uri)}\n${Sn(e)}`),t.map&&!t.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=O0({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:t,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:a,endedTimelineFn:()=>{this.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:l,level:h,stream:m})=>{this.logger_(`${Sn(e)} logged from transmuxer stream ${m} as a ${h}: ${l}`)},triggerSegmentEventFn:({type:l,segment:h,keyInfo:m,trackInfo:v,timingInfo:y})=>{const P={segmentInfo:Is({segment:h})};m&&(P.keyInfo=m),v&&(P.trackInfo=v),y&&(P.timingInfo=y),this.trigger({type:l,metadata:P})}})}trimBackBuffer_(e){const t=((s,e,t)=>{let i=e-It.BACK_BUFFER_LENGTH;return s.length&&(i=Math.max(i,s.start(0))),Math.min(e-t,i)})(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}createSimplifiedSegmentObj_(e){const t=e.segment,i=e.part,a={resolvedUri:i?i.resolvedUri:t.resolvedUri,byterange:i?i.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part,type:this.loaderType_,start:e.startOfSegment,duration:e.duration,isEncrypted:e.segment.key||e.segment.map&&e.segment.map.key,isMediaInitialization:e.segment.map&&!e.segment.map.bytes},l=e.playlist.segments[e.mediaIndex-1];if(l&&l.timeline===t.timeline&&(l.videoTimingInfo?a.baseStartTime=l.videoTimingInfo.transmuxedDecodeEnd:l.audioTimingInfo&&(a.baseStartTime=l.audioTimingInfo.transmuxedDecodeEnd)),t.key){const h=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);a.key=this.segmentKey(t.key),a.key.iv=h}return t.map&&(a.map=this.initSegmentForMap(t.map)),a}saveTransferStats_(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}saveBandwidthRelatedStats_(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<Sa?this.logger_(`Ignoring segment's bandwidth because its duration of ${e} is less than the min to record ${Sa}`):(this.trigger({type:"bandwidthupdated",metadata:{bandwidthInfo:{from:this.bandwidth,to:t.bandwidth}}}),this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(e,t,i){if(this.callQueue_.length)return void this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,i));if(this.saveTransferStats_(t.stats),!this.pendingSegment_||t.requestId!==this.pendingSegment_.requestId)return;if(e){if(this.pendingSegment_=null,this.state="READY",-102===e.code)return;return this.pause(),-101===e.code?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}const n=this.pendingSegment_;this.saveBandwidthRelatedStats_(n.duration,t.stats),n.endOfAllRequests=t.endOfAllRequests,i.gopInfo&&(this.gopBuffer_=((s,e)=>{if(!e.length)return s;if(this.safeAppend_)return e.slice();const i=e[0].pts;let n=0;for(;n<s.length&&!(s[n].pts>=i);n++);return s.slice(0,n).concat(e)})(this.gopBuffer_,i.gopInfo)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(n)}setTimeMapping_(e){const t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)}updateMediaSecondsLoaded_(e){this.mediaSecondsLoaded+="number"==typeof e.start&&"number"==typeof e.end?e.end-e.start:e.duration}shouldUpdateTransmuxerTimestampOffset_(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())}trueSegmentStart_({currentStart:e,playlist:t,mediaIndex:i,firstVideoFrameTimeForData:n,currentVideoTimestampOffset:r,useVideoTimingInfo:a,videoTimingInfo:l,audioTimingInfo:h}){if(typeof e<"u")return e;if(!a)return h.start;const m=t.segments[i-1];return 0===i||!m||typeof m.start>"u"||m.end!==n+r?n:l.start}waitForAppendsToComplete_(e){const t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0}),void this.trigger("error");const{hasAudio:i,hasVideo:n,isMuxed:r}=t,a="main"===this.loaderType_&&n,l=!this.audioDisabled_&&i&&!r;if(e.waitingOnAppends=0,!e.hasAppendedData_)return!e.timingInfo&&"number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);a&&e.waitingOnAppends++,l&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),l&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}checkAppendsDone_(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(e){const t=((s,e,t)=>"main"===s&&e&&t?t.hasAudio||t.hasVideo?e.hasVideo&&!t.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!e.hasVideo&&t.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null)(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,playlistExclusionDuration:1/0}),this.trigger("error"),!0)}updateSourceBufferTimestampOffset_(e){if(null===e.timestampOffset||"number"!=typeof e.timingInfo.start||e.changedTimestampOffset||"main"!==this.loaderType_)return;let t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e,audioTimingInfo:t,timingInfo:i}){return this.useDtsForTimestampOffset_?e&&"number"==typeof e.transmuxedDecodeStart?e.transmuxedDecodeStart:t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:i.start:i.start}updateTimingInfoEnd_(e){e.timingInfo=e.timingInfo||{};const t=this.getMediaInfo_(),n="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;n&&(e.timingInfo.end="number"==typeof n.end?n.end:n.start+e.duration)}handleAppendsDone_(){if(this.pendingSegment_){const h={segmentInfo:Is({type:this.loaderType_,segment:this.pendingSegment_})};this.trigger({type:"appendsdone",metadata:h})}if(!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());const e=this.pendingSegment_;e.part&&e.part.syncInfo?e.part.syncInfo.markAppended():e.segment.syncInfo&&e.segment.syncInfo.markAppended(),this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});const t=((s,e)=>{if("hls"!==e)return null;const t=(s=>{let e=0;return["video","audio"].forEach(function(t){const i=s[`${t}TimingInfo`];if(!i)return;const{start:n,end:r}=i;let a;"bigint"==typeof n||"bigint"==typeof r?a=C().BigInt(r)-C().BigInt(n):"number"==typeof n&&"number"==typeof r&&(a=r-n),typeof a<"u"&&a>e&&(e=a)}),"bigint"==typeof e&&e<Number.MAX_SAFE_INTEGER&&(e=Number(e)),e})({audioTimingInfo:s.audioTimingInfo,videoTimingInfo:s.videoTimingInfo});if(!t)return null;const i=s.playlist.targetDuration,n=dh({segmentDuration:t,maxDuration:2*i}),r=dh({segmentDuration:t,maxDuration:i});return n||r?{severity:n?"warn":"info",message:`Segment with index ${s.mediaIndex} from playlist ${s.playlist.id} has a duration of ${t} when the reported duration is ${s.duration} and the target duration is ${i}. For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1`}:null})(e,this.sourceType_);if(t&&("warn"===t.severity?L.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_))return void this.logger_(`Throwing away un-appended sync request ${Sn(e)}`);this.logger_(`Appended ${Sn(e)}`),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"===this.loaderType_&&!this.audioDisabled_&&this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");const i=e.segment,n=e.part,r=i.end&&this.currentTime_()-i.end>3*e.playlist.targetDuration,a=n&&n.end&&this.currentTime_()-n.end>3*e.playlist.partTargetDuration;if(r||a)return this.logger_(`bad ${r?"segment":"part"} ${Sn(e)}`),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_
vendor: 5,969 bytes, line 1
1(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}recordThroughput_(e){if(e.duration<Sa)return void this.logger_(`Ignoring segment's throughput because its duration of ${e.duration} is less than the min to record ${Sa}`);const t=this.throughput.rate,i=Date.now()-e.endOfAllRequests+1,n=Math.floor(e.byteLength/i*8*1e3);this.throughput.rate+=(n-t)/++this.throughput.count}addSegmentMetadataCue_(e){if(!this.segmentMetadataTrack_)return;const t=e.segment,i=t.start,n=t.end;if(!uh(i)||!uh(n))return;ar(i,n,this.segmentMetadataTrack_);const r=C().WebKitDataCue||C().VTTCue,a={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,programDateTime:t.programDateTime,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:i,end:n},h=new r(i,n,JSON.stringify(a));h.value=a,this.segmentMetadataTrack_.addCue(h)}}function Gi(){}const hh=function(s){return"string"!=typeof s?s:s.replace(/./,e=>e.toUpperCase())},rv=["video","audio"],Dl=(s,e)=>{const t=e[`${s}Buffer`];return t&&t.updating||e.queuePending[s]},Cn=(s,e)=>{if(0===e.queue.length)return;let t=0,i=e.queue[t];if("mediaSource"!==i.type){if("mediaSource"!==s&&e.ready()&&"closed"!==e.mediaSource.readyState&&!Dl(s,e)){if(i.type!==s){if(t=((s,e)=>{for(let t=0;t<e.length;t++){const i=e[t];if("mediaSource"===i.type)return null;if(i.type===s)return t}return null})(s,e.queue),null===t)return;i=e.queue[t]}if(e.queue.splice(t,1),e.queuePending[s]=i,i.action(s,e),!i.doneFn)return e.queuePending[s]=null,void Cn(s,e)}}else!e.updating()&&"closed"!==e.mediaSource.readyState&&(e.queue.shift(),i.action(e),i.doneFn&&i.doneFn(),Cn("audio",e),Cn("video",e))},fh=(s,e)=>{const t=e[`${s}Buffer`],i=hh(s);t&&(t.removeEventListener("updateend",e[`on${i}UpdateEnd_`]),t.removeEventListener("error",e[`on${i}Error_`]),e.codecs[s]=null,e[`${s}Buffer`]=null)},Ni=(s,e)=>s&&e&&-1!==Array.prototype.indexOf.call(s.sourceBuffers,e),Qt_appendBuffer=(s,e,t)=>(i,n)=>{const r=n[`${i}Buffer`];if(Ni(n.mediaSource,r)){n.logger_(`Appending segment ${e.mediaIndex}'s ${s.length} bytes to ${i}Buffer`);try{r.appendBuffer(s)}catch(a){n.logger_(`Error with code ${a.code} `+(22===a.code?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${e.mediaIndex} to ${i}Buffer`),n.queuePending[i]=null,t(a)}}},Qt_remove=(s,e)=>(t,i)=>{const n=i[`${t}Buffer`];if(Ni(i.mediaSource,n)){i.logger_(`Removing ${s} to ${e} from ${t}Buffer`);try{n.remove(s,e)}catch{i.logger_(`Remove ${s} to ${e} from ${t}Buffer failed`)}}},Qt_timestampOffset=s=>(e,t)=>{const i=t[`${e}Buffer`];Ni(t.mediaSource,i)&&(t.logger_(`Setting ${e}timestampOffset to ${s}`),i.timestampOffset=s)},Qt_callback=s=>(e,t)=>{s()},Qt_endOfStream=s=>e=>{if("open"===e.mediaSource.readyState){e.logger_(`Calling mediaSource endOfStream(${s||""})`);try{e.mediaSource.endOfStream(s)}catch(t){L.log.warn("Failed to call media source endOfStream",t)}}},Qt_duration=s=>e=>{e.logger_(`Setting mediaSource duration to ${s}`);try{e.mediaSource.duration=s}catch(t){L.log.warn("Failed to set media source duration",t)}},Qt_addSourceBuffer=(s,e)=>t=>{const i=hh(s),n=wi(e);t.logger_(`Adding ${s}Buffer with codec ${e} to mediaSource`);const r=t.mediaSource.addSourceBuffer(n);r.addEventListener("updateend",t[`on${i}UpdateEnd_`]),r.addEventListener("error",t[`on${i}Error_`]),t.codecs[s]=e,t[`${s}Buffer`]=r},Qt_removeSourceBuffer=s=>e=>{const t=e[`${s}Buffer`];if(fh(s,e),Ni(e.mediaSource,t)){e.logger_(`Removing ${s}Buffer with codec ${e.codecs[s]} from mediaSource`);try{e.mediaSource.removeSourceBuffer(t)}catch(i){L.log.warn(`Failed to removeSourceBuffer ${s}Buffer`,i)}}},Qt_changeType=s=>(e,t)=>{const i=t[`${e}Buffer`],n=wi(s);if(!Ni(t.mediaSource,i))return;const r=s.substring(0,s.indexOf(".")),a=t.codecs[e];if(a.substring(0,a.indexOf("."))===r)return;const h={codecsChangeInfo:{from:a,to:s}};t.trigger({type:"codecschange",metadata:h}),t.logger_(`changing ${e}Buffer codec from ${a} to ${s}`);try{i.changeType(n),t.codecs[e]=s}catch(m){h.errorType=L.Error.StreamingCodecsChangeError,h.error=m,m.metadata=h,t.error_=m,t.trigger("error"),L.log.warn(`Failed to changeType on ${e}Buffer`,m)}},Jt=({type:s,sourceUpdater:e,action:t,doneFn:i,name:n})=>{e.queue.push({type:s,action:t,doneFn:i,name:n}),Cn(s,e)},ph=(s,e)=>t=>{const n=function xg(s){if(0===s.length)return"Buffered Ranges are empty";let e="Buffered Ranges: \n";for(let t=0;t<s.length;t++){const i=s.start(t),n=s.end(t);e+=`${i} --\x3e ${n}. Duration (${n-i})\n`}return e}(e[`${s}Buffered`]());if(e.logger_(`received "updateend" event for ${s} Source Buffer: `,n),e.queuePending[s]){const r=e.queuePending[s].doneFn;e.queuePending[s]=null,r&&r(e[`${s}Error_`])}Cn(s,e)};class mh extends L.EventTarget{constructor(e){super(),this.mediaSource=e,this.sourceopenListener_=()=>Cn("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=ci("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=ph("video",this),this.onAudioUpdateEnd_=ph("audio",this),this.onVideoError_=t=>{this.videoError_=t},this.onAudioError_=t=>{this.audioError_=t},this.createdSourceBuffers_=!1,this.initializedEme_=!1,this.triggeredReady_=!1}initializedEme(){this.initializedEme_=!0,this.triggerReady()}hasCreatedSourceBuffers(){return this.createdSourceBuffers_}hasInitializedAnyEme(){return this.initializedEme_}ready(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}createSourceBuffers(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}
vendor: 17,465 bytes, line 1
1triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(e,t){Jt({type:"mediaSource",sourceUpdater:this,action:Qt_addSourceBuffer(e,t),name:"addSourceBuffer"})}abort(e){Jt({type:e,sourceUpdater:this,action:(s,e)=>{if("open"!==e.mediaSource.readyState)return;const t=e[`${s}Buffer`];if(Ni(e.mediaSource,t)){e.logger_(`calling abort on ${s}Buffer`);try{t.abort()}catch(i){L.log.warn(`Failed to abort on ${s}Buffer`,i)}}},name:"abort"})}removeSourceBuffer(e){this.canRemoveSourceBuffer()?Jt({type:"mediaSource",sourceUpdater:this,action:Qt_removeSourceBuffer(e),name:"removeSourceBuffer"}):L.log.error("removeSourceBuffer is not supported!")}canRemoveSourceBuffer(){return!L.browser.IS_FIREFOX&&C().MediaSource&&C().MediaSource.prototype&&"function"==typeof C().MediaSource.prototype.removeSourceBuffer}static canChangeType(){return C().SourceBuffer&&C().SourceBuffer.prototype&&"function"==typeof C().SourceBuffer.prototype.changeType}canChangeType(){return this.constructor.canChangeType()}changeType(e,t){this.canChangeType()?Jt({type:e,sourceUpdater:this,action:Qt_changeType(t),name:"changeType"}):L.log.error("changeType is not supported!")}addOrChangeSourceBuffers(e){if(!e||"object"!=typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(t=>{const i=e[t];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(t,i);this.canChangeType()&&this.changeType(t,i)})}appendBuffer(e,t){const{segmentInfo:i,type:n,bytes:r}=e;if(this.processedAppend_=!0,"audio"===n&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_(`delayed audio append of ${r.length} until video append`);if(Jt({type:n,sourceUpdater:this,action:Qt_appendBuffer(r,i||{mediaIndex:-1},t),doneFn:t,name:"appendBuffer"}),"video"===n){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;const l=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${l.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,l.forEach(h=>{this.appendBuffer.apply(this,h)})}}audioBuffered(){return Ni(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:kt()}videoBuffered(){return Ni(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:kt()}buffered(){const e=Ni(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=Ni(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():function(s,e){let t=null,i=null,n=0;const r=[],a=[];if(!(s&&s.length&&e&&e.length))return kt();let l=s.length;for(;l--;)r.push({time:s.start(l),type:"start"}),r.push({time:s.end(l),type:"end"});for(l=e.length;l--;)r.push({time:e.start(l),type:"start"}),r.push({time:e.end(l),type:"end"});for(r.sort(function(h,m){return h.time-m.time}),l=0;l<r.length;l++)"start"===r[l].type?(n++,2===n&&(t=r[l].time)):"end"===r[l].type&&(n--,1===n&&(i=r[l].time)),null!==t&&null!==i&&(a.push([t,i]),t=null,i=null);return kt(a)}(this.audioBuffered(),this.videoBuffered())}setDuration(e,t=Gi){Jt({type:"mediaSource",sourceUpdater:this,action:Qt_duration(e),name:"duration",doneFn:t})}endOfStream(e=null,t=Gi){"string"!=typeof e&&(e=void 0),Jt({type:"mediaSource",sourceUpdater:this,action:Qt_endOfStream(e),name:"endOfStream",doneFn:t})}removeAudio(e,t,i=Gi){this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Jt({type:"audio",sourceUpdater:this,action:Qt_remove(e,t),doneFn:i,name:"remove"}):i()}removeVideo(e,t,i=Gi){this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Jt({type:"video",sourceUpdater:this,action:Qt_remove(e,t),doneFn:i,name:"remove"}):i()}updating(){return!(!Dl("audio",this)&&!Dl("video",this))}audioTimestampOffset(e){return typeof e<"u"&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(Jt({type:"audio",sourceUpdater:this,action:Qt_timestampOffset(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}videoTimestampOffset(e){return typeof e<"u"&&this.videoBuffer&&this.videoTimestampOffset_!==e&&(Jt({type:"video",sourceUpdater:this,action:Qt_timestampOffset(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}audioQueueCallback(e){this.audioBuffer&&Jt({type:"audio",sourceUpdater:this,action:Qt_callback(e),name:"callback"})}videoQueueCallback(e){this.videoBuffer&&Jt({type:"video",sourceUpdater:this,action:Qt_callback(e),name:"callback"})}dispose(){this.trigger("dispose"),rv.forEach(e=>{this.abort(e),this.canRemoveSourceBuffer()?this.removeSourceBuffer(e):this[`${e}QueueCallback`](()=>fh(e,this))}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}const gh=s=>decodeURIComponent(escape(String.fromCharCode.apply(null,s))),vh=new Uint8Array("\n\n".split("").map(s=>s.charCodeAt(0)));class lv extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}}class uv extends wl{constructor(e,t={}){super(e,t),this.mediaSource_=null,this.subtitlesTrack_=null,this.featuresNativeTextTracks_=e.featuresNativeTextTracks,this.loadVttJs=e.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return kt();const e=this.subtitlesTrack_.cues;return kt([[e[0].startTime,e[e.length-1].startTime]])}initSegmentForMap(e,t=!1){if(!e)return null;const i=Ta(e);let n=this.initSegments_[i];if(t&&!n&&e.bytes){const a=new Uint8Array(vh.byteLength+e.bytes.byteLength);a.set(e.bytes),a.set(vh,e.bytes.byteLength),this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:a}}return n||e}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}track(e){return typeof e>"u"||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_}remove(e,t){ar(e,t,this.subtitlesTrack_)}fillBuffer_(){const e=this.chooseNextRequest_();if(e){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline))return this.syncController_.one("timestampoffset",()=>{this.state="READY",this.paused()||this.monitorBuffer_()}),void(this.state="WAITING_ON_TIMELINE");this.loadSegment_(e)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e}stopForError(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}segmentRequestFinished_(e,t,i){if(!this.subtitlesTrack_)return void(this.state="READY");if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return-101===e.code&&this.handleTimeout_(),-102===e.code?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);const n=this.pendingSegment_,r=i.mp4VttCues&&i.mp4VttCues.length;r&&(n.mp4VttCues=i.mp4VttCues),this.saveBandwidthRelatedStats_(n.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");const a=n.segment;if(a.map&&(a.map.bytes=t.map.bytes),n.bytes=t.bytes,"function"!=typeof C().WebVTT&&"function"==typeof this.loadVttJs)return this.state="WAITING_ON_VTTJS",void this.loadVttJs().then(()=>this.segmentRequestFinished_(e,t,i),()=>this.stopForError({message:"Error loading vtt.js"}));a.requested=!0;try{this.parseVTTCues_(n)}catch(l){return void this.stopForError({message:l.message,metadata:{errorType:L.Error.StreamingVttParserError,error:l}})}if(r||this.updateTimeMapping_(n,this.syncController_.timelines[n.timeline],this.playlist_),n.timingInfo=n.cues.length?{start:n.cues[0].startTime,end:n.cues[n.cues.length-1].endTime}:{start:n.startOfSegment,end:n.startOfSegment+n.duration},n.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");n.byteLength=n.bytes.byteLength,this.mediaSecondsLoaded+=a.duration,n.cues.forEach(l=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new(C().VTTCue)(l.startTime,l.endTime,l.text):l)}),function(s){const e=s.cues;if(!e)return;const t={};for(let i=e.length-1;i>=0;i--){const n=e[i],r=`${n.startTime}-${n.endTime}-${n.text}`;t[r]?s.removeCue(n):t[r]=n}}(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(e,t){e&&"vtt"===e.type&&t&&"text"===t.type&&super.handleData_(e,t)}updateTimingInfoEnd_(){}parseMp4VttCues_(e){const t=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();e.mp4VttCues.forEach(i=>{const n=i.start+t,r=i.end+t,a=new(C().VTTCue)(n,r,i.cueText);i.settings&&i.settings.split(" ").forEach(l=>{const h=l.split(":"),v=h[1];a[h[0]]=isNaN(v)?v:Number(v)}),e.cues.push(a)})}parseVTTCues_(e){let t,i=!1;if("function"!=typeof C().WebVTT)throw new lv;if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},e.mp4VttCues)return void this.parseMp4VttCues_(e);"function"==typeof C().TextDecoder?t=new(C().TextDecoder)("utf8"):(t=C().WebVTT.StringDecoder(),i=!0);const n=new(C().WebVTT.Parser)(C(),C().vttjs,t);if(n.oncue=e.cues.push.bind(e.cues),n.ontimestampmap=a=>{e.timestampmap=a},n.onparsingerror=a=>{L.log.warn("Error encountered when parsing cues: "+a.message)},e.segment.map){let a=e.segment.map.bytes;i&&(a=gh(a)),n.parse(a)}let r=e.bytes;i&&(r=gh(r)),n.parse(r),n.flush()}updateTimeMapping_(e,t,i){const n=e.segment;if(!t)return;if(!e.cues.length)return void(n.empty=!0);const{MPEGTS:r,LOCAL:a}=e.timestampmap,h=r/bs.ONE_SECOND_IN_TS-a+t.mapping;e.cues.forEach(m=>{const v=m.endTime-m.startTime,y=this.handleRollover_(m.startTime+h,t.time);m.startTime=Math.max(y,0),m.endTime=Math.max(y+v,0)}),i.syncInfo||(i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(e.cues[0].startTime,e.cues[e.cues.length-1].startTime-n.duration)})}handleRollover_(e,t){if(null===t)return e;let i=e*bs.ONE_SECOND_IN_TS;const n=t*bs.ONE_SECOND_IN_TS;let r;for(r=n<i?-8589934592:8589934592;Math.abs(i-n)>4294967296;)i+=r;return i/bs.ONE_SECOND_IN_TS}}const cv=function(s,e){const t=s.cues;for(let i=0;i<t.length;i++){const n=t[i];if(e>=n.adStartTime&&e<=n.adEndTime)return n}return null};class _h{constructor({start:e,end:t,segmentIndex:i,partIndex:n=null,appended:r=!1}){this.start_=e,this.end_=t,this.segmentIndex_=i,this.partIndex_=n,this.appended_=r}isInRange(e){return e>=this.start&&e<this.end}markAppended(){this.appended_=!0}resetAppendedStatus(){this.appended_=!1}get isAppended(){return this.appended_}get start(){return this.start_}get end(){return this.end_}get segmentIndex(){return this.segmentIndex_}get partIndex(){return this.partIndex_}}class hv{constructor(e,t=[]){this.segmentSyncInfo_=e,this.partsSyncInfo_=t}get segmentSyncInfo(){return this.segmentSyncInfo_}get partsSyncInfo(){return this.partsSyncInfo_}get hasPartsSyncInfo(){return this.partsSyncInfo_.length>0}resetAppendStatus(){this.segmentSyncInfo_.resetAppendedStatus(),this.partsSyncInfo_.forEach(e=>e.resetAppendedStatus())}}class yh{constructor(){this.storage_=new Map,this.diagnostics_="",this.isReliable_=!1,this.start_=-1/0,this.end_=1/0}get start(){return this.start_}get end(){return this.end_}get diagnostics(){return this.diagnostics_}get isReliable(){return this.isReliable_}resetAppendedStatus(){this.storage_.forEach(e=>e.resetAppendStatus())}update(e,t){const{mediaSequence:i,segments:n}=e;if(this.isReliable_=this.isReliablePlaylist_(i,n),this.isReliable_)return this.updateStorage_(n,i,this.calculateBaseTime_(i,n,t))}getSyncInfoForTime(e){for(const{segmentSyncInfo:t,partsSyncInfo:i}of this.storage_.values())if(i.length){for(const n of i)if(n.isInRange(e))return n}else if(t.isInRange(e))return t;return null}getSyncInfoForMediaSequence(e){return this.storage_.get(e)}updateStorage_(e,t,i){const n=new Map;let r="\n",a=i,l=t;this.start_=a,e.forEach((h,m)=>{const v=this.storage_.get(l),y=a,I=y+h.duration,P=!!(v&&v.segmentSyncInfo&&v.segmentSyncInfo.isAppended),j=new _h({start:y,end:I,appended:P,segmentIndex:m});h.syncInfo=j;let x=a;const z=(h.parts||[]).map((H,U)=>{const R=x,Q=x+H.duration,X=!!(v&&v.partsSyncInfo&&v.partsSyncInfo[U]&&v.partsSyncInfo[U].isAppended),ce=new _h({start:R,end:Q,appended:X,segmentIndex:m,partIndex:U});return x=Q,r+=`Media Sequence: ${l}.${U} | Range: ${R} --\x3e ${Q} | Appended: ${X}\n`,H.syncInfo=ce,ce});n.set(l,new hv(j,z)),r+=`${oh(h.resolvedUri)} | Media Sequence: ${l} | Range: ${y} --\x3e ${I} | Appended: ${P}\n`,l++,a=I}),this.end_=a,this.storage_=n,this.diagnostics_=r}calculateBaseTime_(e,t,i){if(!this.storage_.size)return 0;if(this.storage_.has(e))return this.storage_.get(e).segmentSyncInfo.start;const n=Math.min(...this.storage_.keys());if(e<n){const r=n-e;let a=this.storage_.get(n).segmentSyncInfo.start;for(let l=0;l<r;l++)a-=t[l].duration;return a}return i}isReliablePlaylist_(e,t){return null!=e&&Array.isArray(t)&&t.length}}class bh extends yh{constructor(e){super(),this.parent_=e}calculateBaseTime_(e,t,i){if(!this.storage_.size){const n=this.parent_.getSyncInfoForMediaSequence(e);return n?n.segmentSyncInfo.start:0}return super.calculateBaseTime_(e,t,i)}}const kl=[{name:"VOD",run:(s,e,t,i,n)=>t!==1/0?{time:0,segmentIndex:0,partIndex:null}:null},{name:"MediaSequence",run:(s,e,t,i,n,r)=>{const a=s.getMediaSequenceSync(r);if(!a||!a.isReliable)return null;const l=a.getSyncInfoForTime(n);return l?{time:l.start,partIndex:l.partIndex,segmentIndex:l.segmentIndex}:null}},{name:"ProgramDateTime",run:(s,e,t,i,n)=>{if(!Object.keys(s.timelineToDatetimeMappings).length)return null;let r=null,a=null;const l=hl(e);n=n||0;for(let h=0;h<l.length;h++){const v=l[e.endList||0===n?h:l.length-(h+1)],y=v.segment,I=s.timelineToDatetimeMappings[y.timeline];if(!I||!y.dateTimeObject)continue;let j=y.dateTimeObject.getTime()/1e3+I;if(y.parts&&"number"==typeof v.partIndex)for(let z=0;z<v.partIndex;z++)j+=y.parts[z].duration;const x=Math.abs(n-j);if(null!==a&&(0===x||a<x))break;a=x,r={time:j,segmentIndex:v.segmentIndex,partIndex:v.partIndex}}return r}},{name:"Segment",run:(s,e,t,i,n)=>{let r=null,a=null;n=n||0;const l=hl(e);for(let h=0;h<l.length;h++){const v=l[e.endList||0===n?h:l.length-(h+1)],y=v.segment,I=v.part&&v.part.start||y&&y.start;if(y.timeline===i&&typeof I<"u"){const P=Math.abs(n-I);if(null!==a&&a<P)break;(!r||null===a||a>=P)&&(a=P,r={time:I,segmentIndex:v.segmentIndex,partIndex:v.partIndex})}}return r}},{name:"Discontinuity",run:(s,e,t,i,n)=>{let r=null;if(n=n||0,e.discontinuityStarts&&e.discontinuityStarts.length){let a=null;for(let l=0;l<e.discontinuityStarts.length;l++){const h=e.discontinuityStarts[l],v=s.discontinuities[e.discontinuitySequence+l+1];if(v){const y=Math.abs(n-v.time);if(null!==a&&a<y)break;(!r||null===a||a>=y)&&(a=y,r={time:v.time,segmentIndex:h,partIndex:null})}}}return r}},{name:"Playlist",run:(s,e,t,i,n)=>e.syncInfo?{time:e.syncInfo.time,segmentIndex:e.syncInfo.mediaSequence-e.mediaSequence,partIndex:null}:null}];class pv extends L.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={};const t=new yh,i=new bh(t),n=new bh(t);this.mediaSequenceStorage_={main:t,audio:i,vtt:n},this.logger_=ci("SyncController")}getMediaSequenceSync(e){return this.mediaSequenceStorage_[e]||null}getSyncPoint(e,t,i,n,r){if(t!==1/0)return kl.find(({name:h})=>"VOD"===h).run(this,e,t);const a=this.runStrategies_(e,t,i,n,r);if(!a.length)return null;for(const l of a){const{syncPoint:h,strategy:m}=l,{segmentIndex:v,time:y}=h;if(v<0)continue;const P=y,j=P+e.segments[v].duration;if(this.logger_(`Strategy: ${m}. Current time: ${n}. selected segment: ${v}. Time: [${P} -> ${j}]}`),n>=P&&n<j)return this.logger_("Found sync point with exact match: ",h),h}return this.selectSyncPoint_(a,{key:"time",value:n})}getExpiredTime(e,t){if(!e||!e.segments)return null;const i=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!i.length)return null;const n=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return n.segmentIndex>0&&(n.time*=-1),Math.abs(n.time+ir({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:n.segmentIndex,endIndex:0}))}runStrategies_(e,t,i,n,r){const a=[];for(let l=0;l<kl.length;l++){const h=kl[l],m=h.run(this,e,t,i,n,r);m&&(m.strategy=h.name,a.push({strategy:h.name,syncPoint:m}))}return a}selectSyncPoint_(e,t){let i=e[0].syncPoint,n=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy;for(let a=1;a<e.length;a++){const l=Math.abs(e[a].syncPoint[t.key]-t.value);l<n&&(n=l,i=e[a].syncPoint,r=e[a].strategy)}return this.logger_(`syncPoint for [${t.key}: ${t.value}] chosen with strategy [${r}]: [time:${i.time}, segmentIndex:${i.segmentIndex}`+("number"==typeof i.partIndex?`,partIndex:${i.partIndex}`:"")+"]"),i}saveExpiredSegmentInfo(e,t){const i=t.mediaSequence-e.mediaSequence;if(i>86400)L.log.warn(`Not saving expired segment info. Media sequence gap ${i} is too large.`);else for(let n=i-1;n>=0;n--){const r=e.segments[n];if(r&&typeof r.start<"u"){t.syncInfo={mediaSequence:e.mediaSequence+n,time:r.start}
vendor: 6,785 bytes, line 1
1,this.logger_(`playlist refresh sync: [time:${t.syncInfo.time}, mediaSequence: ${t.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){const t=e.segments[0],i=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-i}}saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:t}){const i=this.calculateSegmentTimeMapping_(e,e.timingInfo,t),n=e.segment;i&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:n.start}));const r=n.dateTimeObject;n.discontinuity&&t&&r&&(this.timelineToDatetimeMappings[n.timeline]=-r.getTime()/1e3)}timestampOffsetForTimeline(e){return typeof this.timelines[e]>"u"?null:this.timelines[e].time}mappingForTimeline(e){return typeof this.timelines[e]>"u"?null:this.timelines[e].mapping}calculateSegmentTimeMapping_(e,t,i){const n=e.segment,r=e.part;let l,h,a=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)a={time:e.startOfSegment,mapping:e.startOfSegment-t.start},i&&(this.timelines[e.timeline]=a,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${e.timeline}: [time: ${a.time}] [mapping: ${a.mapping}]`)),l=e.startOfSegment,h=t.end+a.mapping;else{if(!a)return!1;l=t.start+a.mapping,h=t.end+a.mapping}return r&&(r.start=l,r.end=h),(!n.start||l<n.start)&&(n.start=l),n.end=h,!0}saveDiscontinuitySyncInfo_(e){const t=e.playlist,i=e.segment;if(i.discontinuity)this.discontinuities[i.timeline]={time:i.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(let n=0;n<t.discontinuityStarts.length;n++){const r=t.discontinuityStarts[n],a=t.discontinuitySequence+n+1,l=r-e.mediaIndex,h=Math.abs(l);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>h){let m;m=l<0?i.start-ir({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):i.end+ir({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[a]={time:m,accuracy:h}}}}dispose(){this.trigger("dispose"),this.off()}}class mv extends L.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:e,from:t,to:i}){return"number"==typeof t&&"number"==typeof i&&(this.pendingTimelineChanges_[e]={type:e,from:t,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]}lastTimelineChange({type:e,from:t,to:i}){return"number"==typeof t&&"number"==typeof i&&(this.lastTimelineChanges_[e]={type:e,from:t,to:i},delete this.pendingTimelineChanges_[e],this.trigger({type:"timelinechange",metadata:{timelineChangeInfo:{from:t,to:i}}})),this.lastTimelineChanges_[e]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}const gv=Gd(Wd(function(){var s=function(){function x(){this.listeners={}}var z=x.prototype;return z.on=function(U,R){this.listeners[U]||(this.listeners[U]=[]),this.listeners[U].push(R)},z.off=function(U,R){if(!this.listeners[U])return!1;var Q=this.listeners[U].indexOf(R);return this.listeners[U]=this.listeners[U].slice(0),this.listeners[U].splice(Q,1),Q>-1},z.trigger=function(U){var R=this.listeners[U];if(R)if(2===arguments.length)for(var Q=R.length,X=0;X<Q;++X)R[X].call(this,arguments[1]);else for(var ce=Array.prototype.slice.call(arguments,1),Y=R.length,fe=0;fe<Y;++fe)R[fe].apply(this,ce)},z.dispose=function(){this.listeners={}},z.pipe=function(U){this.on("data",function(R){U.push(R)})},x}();let i=null;class n{constructor(z){let H,U,R;i||(i=function(){const x=[[[],[],[],[],[]],[[],[],[],[],[]]],z=x[0],H=x[1],U=z[4],R=H[4];let Q,X,ce;const Y=[],fe=[];let We,mt,Pt,gt,Oe,it;for(Q=0;Q<256;Q++)fe[(Y[Q]=Q<<1^283*(Q>>7))^Q]=Q;for(X=ce=0;!U[X];X^=We||1,ce=fe[ce]||1)for(gt=ce^ce<<1^ce<<2^ce<<3^ce<<4,gt=gt>>8^255&gt^99,U[X]=gt,R[gt]=X,Pt=Y[mt=Y[We=Y[X]]],it=16843009*Pt^65537*mt^257*We^16843008*X,Oe=257*Y[gt]^16843008*gt,Q=0;Q<4;Q++)z[Q][X]=Oe=Oe<<24^Oe>>>8,H[Q][gt]=it=it<<24^it>>>8;for(Q=0;Q<5;Q++)z[Q]=z[Q].slice(0),H[Q]=H[Q].slice(0);return x}()),this._tables=[[i[0][0].slice(),i[0][1].slice(),i[0][2].slice(),i[0][3].slice(),i[0][4].slice()],[i[1][0].slice(),i[1][1].slice(),i[1][2].slice(),i[1][3].slice(),i[1][4].slice()]];const Q=this._tables[0][4],X=this._tables[1],ce=z.length;let Y=1;if(4!==ce&&6!==ce&&8!==ce)throw new Error("Invalid aes key size");const fe=z.slice(0),We=[];for(this._key=[fe,We],H=ce;H<4*ce+28;H++)R=fe[H-1],(H%ce===0||8===ce&&H%ce===4)&&(R=Q[R>>>24]<<24^Q[R>>16&255]<<16^Q[R>>8&255]<<8^Q[255&R],H%ce===0&&(R=R<<8^R>>>24^Y<<24,Y=Y<<1^283*(Y>>7))),fe[H]=fe[H-ce]^R;for(U=0;H;U++,H--)R=fe[3&U?H:H-4],We[U]=H<=4||U<4?R:X[0][Q[R>>>24]]^X[1][Q[R>>16&255]]^X[2][Q[R>>8&255]]^X[3][Q[255&R]]}decrypt(z,H,U,R,Q,X){const ce=this._key[1];let Pt,gt,Oe,Y=z^ce[0],fe=R^ce[1],We=U^ce[2],mt=H^ce[3];const it=ce.length/4-2;let di,Xi=4;const hs=this._tables[1],Ps=hs[0],Os=hs[1],Ms=hs[2],js=hs[3],Ls=hs[4];for(di=0;di<it;di++)Pt=Ps[Y>>>24]^Os[fe>>16&255]^Ms[We>>8&255]^js[255&mt]^ce[Xi],gt=Ps[fe>>>24]^Os[We>>16&255]^Ms[mt>>8&255]^js[255&Y]^ce[Xi+1],Oe=Ps[We>>>24]^Os[mt>>16&255]^Ms[Y>>8&255]^js[255&fe]^ce[Xi+2],mt=Ps[mt>>>24]^Os[Y>>16&255]^Ms[fe>>8&255]^js[255&We]^ce[Xi+3],Xi+=4,Y=Pt,fe=gt,We=Oe;for(di=0;di<4;di++)Q[(3&-di)+X]=Ls[Y>>>24]<<24^Ls[fe>>16&255]<<16^Ls[We>>8&255]<<8^Ls[255&mt]^ce[Xi++],Pt=Y,Y=fe,fe=We,We=mt,mt=Pt}}class r extends s{constructor(){super(s),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.timeout_=this.jobs.length?setTimeout(this.processJob_.bind(this),this.delay):null}push(z){this.jobs.push(z),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}const a=function(x){return x<<24|(65280&x)<<8|(16711680&x)>>8|x>>>24};class h{constructor(z,H,U,R){const Q=h.STEP,X=new Int32Array(z.buffer),ce=new Uint8Array(z.byteLength);let Y=0;for(this.asyncStream_=new r,this.asyncStream_.push(this.decryptChunk_(X.subarray(Y,Y+Q),H,U,ce)),Y=Q;Y<X.length;Y+=Q)U=new Uint32Array([a(X[Y-4]),a(X[Y-3]),a(X[Y-2]),a(X[Y-1])]),this.asyncStream_.push(this.decryptChunk_(X.subarray(Y,Y+Q),H,U,ce));this.asyncStream_.push(function(){R(null,function e(x){return x.subarray(0,x.byteLength-x[x.byteLength-1])}(ce))})}static get STEP(){return 32e3}decryptChunk_(z,H,U,R){return function(){const Q=function(x,z,H){const U=new Int32Array(x.buffer,x.byteOffset,x.byteLength>>2),R=new n(Array.prototype.slice.call(z)),Q=new Uint8Array(x.byteLength),X=new Int32Array(Q.buffer);let ce,Y,fe,We,mt,Pt,gt,Oe,it;for(ce=H[0],Y=H[1],fe=H[2],We=H[3],it=0;
vendor: 9,648 bytes, line 1
1it<U.length;it+=4)mt=a(U[it]),Pt=a(U[it+1]),gt=a(U[it+2]),Oe=a(U[it+3]),R.decrypt(mt,Pt,gt,Oe,X,it),X[it]=a(X[it]^ce),X[it+1]=a(X[it+1]^Y),X[it+2]=a(X[it+2]^fe),X[it+3]=a(X[it+3]^We),ce=mt,Y=Pt,fe=gt,We=Oe;return Q}(z,H,U);R.set(Q,z.byteOffset)}}}var x,m=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},P=(typeof window<"u"?window:typeof m<"u"?m:typeof self<"u"?self:{}).BigInt||Number;P("0x1"),P("0x100"),P("0x10000"),P("0x1000000"),P("0x100000000"),P("0x10000000000"),P("0x1000000000000"),P("0x100000000000000"),P("0x10000000000000000"),x=new Uint16Array([65484]),new Uint8Array(x.buffer,x.byteOffset,x.byteLength);self.onmessage=function(x){const z=x.data,H=new Uint8Array(z.encrypted.bytes,z.encrypted.byteOffset,z.encrypted.byteLength),U=new Uint32Array(z.key.bytes,z.key.byteOffset,z.key.byteLength/4),R=new Uint32Array(z.iv.bytes,z.iv.byteOffset,z.iv.byteLength/4);new h(H,U,R,function(Q,X){self.postMessage(function(x){const z={};return Object.keys(x).forEach(H=>{const U=x[H];z[H]=function(z){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(z):z&&z.buffer instanceof ArrayBuffer}(U)?{bytes:U.buffer,byteOffset:U.byteOffset,byteLength:U.byteLength}:U}),z}({source:z.source,decrypted:X}),[X.buffer])})}}));var vv=$d(gv);const _v=s=>{let e=s.default?"main":"alternative";return s.characteristics&&s.characteristics.indexOf("public.accessibility.describes-video")>=0&&(e="main-desc"),e},Th=(s,e)=>{s.abort(),s.pause(),e&&e.activePlaylistLoader&&(e.activePlaylistLoader.pause(),e.activePlaylistLoader=null)},Il=(s,e)=>{e.activePlaylistLoader=s,s.load()},Ca={AUDIO:(s,e)=>()=>{const{mediaTypes:{[s]:t},excludePlaylist:i}=e,n=t.activeTrack(),r=t.activeGroup(),a=(r.filter(h=>h.default)[0]||r[0]).id,l=t.tracks[a];if(n!==l){L.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const h in t.tracks)t.tracks[h].enabled=t.tracks[h]===l;t.onTrackChanged()}else i({error:{message:"Problem encountered loading the default audio track."}})},SUBTITLES:(s,e)=>()=>{const{mediaTypes:{[s]:t}}=e;L.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");const i=t.activeTrack();i&&(i.mode="disabled"),t.onTrackChanged()}},xh={AUDIO:(s,e,t)=>{if(!e)return;const{tech:i,requestOptions:n,segmentLoaders:{[s]:r}}=t;e.on("loadedmetadata",()=>{const a=e.media();r.playlist(a,n),(!i.paused()||a.endList&&"none"!==i.preload())&&r.load()}),e.on("loadedplaylist",()=>{r.playlist(e.media(),n),i.paused()||r.load()}),e.on("error",Ca[s](s,t))},SUBTITLES:(s,e,t)=>{const{tech:i,requestOptions:n,segmentLoaders:{[s]:r},mediaTypes:{[s]:a}}=t;e.on("loadedmetadata",()=>{const l=e.media();r.playlist(l,n),r.track(a.activeTrack()),(!i.paused()||l.endList&&"none"!==i.preload())&&r.load()}),e.on("loadedplaylist",()=>{r.playlist(e.media(),n),i.paused()||r.load()}),e.on("error",Ca[s](s,t))}},xv={AUDIO:(s,e)=>{const{vhs:t,sourceType:i,segmentLoaders:{[s]:n},requestOptions:r,main:{mediaGroups:a},mediaTypes:{[s]:{groups:l,tracks:h,logger_:m}},mainPlaylistLoader:v}=e,y=sr(v.main);(!a[s]||0===Object.keys(a[s]).length)&&(a[s]={main:{default:{default:!0}}},y&&(a[s].main.default.playlists=v.main.playlists));for(const I in a[s]){l[I]||(l[I]=[]);for(const P in a[s][I]){let x,j=a[s][I][P];if(y?(m(`AUDIO group '${I}' label '${P}' is a main playlist`),j.isMainPlaylist=!0,x=null):x="vhs-json"===i&&j.playlists?new yn(j.playlists[0],t,r):j.resolvedUri?new yn(j.resolvedUri,t,r):j.playlists&&"dash"===i?new Tl(j.playlists[0],t,r,v):null,j=tt({id:P,playlistLoader:x},j),xh[s](s,j.playlistLoader,e),l[I].push(j),typeof h[P]>"u"){const z=new L.AudioTrack({id:P,kind:_v(j),enabled:!1,language:j.language,default:j.default,label:P});h[P]=z}}}n.on("error",Ca[s](s,e))},SUBTITLES:(s,e)=>{const{tech:t,vhs:i,sourceType:n,segmentLoaders:{[s]:r},requestOptions:a,main:{mediaGroups:l},mediaTypes:{[s]:{groups:h,tracks:m}},mainPlaylistLoader:v}=e;for(const y in l[s]){h[y]||(h[y]=[]);for(const I in l[s][y]){if(!i.options_.useForcedSubtitles&&l[s][y][I].forced)continue;let j,P=l[s][y][I];if("hls"===n)j=new yn(P.resolvedUri,i,a);else if("dash"===n){if(!P.playlists.filter(z=>z.excludeUntil!==1/0).length)return;j=new Tl(P.playlists[0],i,a,v)}else"vhs-json"===n&&(j=new yn(P.playlists?P.playlists[0]:P.resolvedUri,i,a));if(P=tt({id:I,playlistLoader:j},P),xh[s](s,P.playlistLoader,e),h[y].push(P),typeof m[I]>"u"){const x=t.addRemoteTextTrack({id:I,kind:"subtitles",default:P.default&&P.autoselect,language:P.language,label:I},!1).track;m[I]=x}}}r.on("error",Ca[s](s,e))},"CLOSED-CAPTIONS":(s,e)=>{const{tech:t,main:{mediaGroups:i},mediaTypes:{[s]:{groups:n,tracks:r}}}=e;for(const a in i[s]){n[a]||(n[a]=[]);for(const l in i[s][a]){const h=i[s][a][l];if(!/^(?:CC|SERVICE)/.test(h.instreamId))continue;const m=t.options_.vhs&&t.options_.vhs.captionServices||{};let v={label:l,language:h.language,instreamId:h.instreamId,default:h.default&&h.autoselect};if(m[v.instreamId]&&(v=tt(v,m[v.instreamId])),void 0===v.default&&delete v.default,n[a].push(tt({id:l},h)),typeof r[l]>"u"){const y=t.addRemoteTextTrack({id:v.instreamId,kind:"captions",default:v.default,language:v.language,label:v.label},!1).track;r[l]=y}}}}},Sh=(s,e)=>{for(let t=0;t<s.length;t++)if(ml(e,s[t])||s[t].playlists&&Sh(s[t].playlists,e))return!0;return!1},Cv={AUDIO:(s,e)=>()=>{const{mediaTypes:{[s]:{tracks:t}}}=e;for(const i in t)if(t[i].enabled)return t[i];return null},SUBTITLES:(s,e)=>()=>{const{mediaTypes:{[s]:{tracks:t}}}=e;for(const i in t)if("showing"===t[i].mode||"hidden"===t[i].mode)return t[i];return null}};class Ch{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(e){1===e&&(this.version_=e)}set ttl(e){this.ttl_=e||300}set reloadUri(e){e&&(this.reloadUri_=$t(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}set pathwayClones(e){e&&e.length&&(this.pathwayClones_=new Map(e.map(t=>[t.ID,t])))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}}class Dv extends L.EventTarget{constructor(e,t){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new Ch,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=ci("Content Steering"),this.xhr_=e,this.getBandwidth_=t}assignTagProperties(e,t){this.manifestType_=t.serverUri?"HLS":"DASH";const i=t.serverUri||t.serverURL;if(!i)return this.logger_(`steering manifest URL is ${i}, cannot request steering manifest.`),void this.trigger("error");i.startsWith("data:")?this.decodeDataUriManifest_(i.substring(i.indexOf(",")+1)):(this.steeringManifest.reloadUri=$t(e,i),this.defaultPathway=t.pathwayId||t.defaultServiceLocation,this.queryBeforeStart=t.queryBeforeStart,this.proxyServerUrl_=t.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering"))}requestSteeringManifest(e){const t=this.steeringManifest.reloadUri;if(!t)return;const i=e?t:this.getRequestURI(t);if(!i)return this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),void this.dispose();const n={contentSteeringInfo:{uri:i}};this.trigger({type:"contentsteeringloadstart",metadata:n}),this.request_=this.xhr_({uri:i,requestType:"content-steering-manifest"},(r,a)=>{if(r){if(410===a.status)return this.logger_(`manifest request 410 ${r}.`),this.logger_(`There will be no more content steering requests to ${i} this session.`),void this.excludedSteeringManifestURLs.add(i);if(429===a.status){const m=a.responseHeaders["retry-after"];return this.logger_(`manifest request 429 ${r}.`),this.logger_(`content steering will retry in ${m} seconds.`),void this.startTTLTimeout_(parseInt(m,10))}return this.logger_(`manifest failed to load ${r}.`),void this.startTTLTimeout_()}let l;this.trigger({type:"contentsteeringloadcomplete",metadata:n});try{l=JSON.parse(this.request_.responseText)}catch(m){this.trigger({type:"error",metadata:{errorType:L.Error.StreamingContentSteeringParserError,error:m}})}this.assignSteeringProperties_(l),this.trigger({type:"contentsteeringparsed",metadata:{contentSteeringInfo:n.contentSteeringInfo,contentSteeringManifest:{version:this.steeringManifest.version,reloadUri:this.steeringManifest.reloadUri,priority:this.steeringManifest.priority}}}),this.startTTLTimeout_()})}setProxyServerUrl_(e){const t=new(C().URL)(e),i=new(C().URL)(this.proxyServerUrl_);return i.searchParams.set("url",encodeURI(t.toString())),this.setSteeringParams_(i.toString())}decodeDataUriManifest_(e){const t=JSON.parse(C().atob(e));this.assignSteeringProperties_(t)}setSteeringParams_(e){const t=new(C().URL)(e),i=this.getPathway(),n=this.getBandwidth_();return i&&t.searchParams.set(`_${this.manifestType_}_pathway`,i),n&&t.searchParams.set(`_${this.manifestType_}_throughput`,n),t.toString()}assignSteeringProperties_(e){if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version)return this.logger_(`manifest version is ${e.VERSION}, which is not supported.`),void this.trigger("error");this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=e["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for c
1ontent steering. Ending content steering."),this.trigger("error"),this.dispose());const i=(n=>{for(const r of n)if(this.availablePathways_.has(r))return r;return[...this.availablePathways_][0]})(this.steeringManifest.priority);this.currentPathway!==i&&(this.currentPathway=i,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(e){if(!e)return null;const t=n=>this.excludedSteeringManifestURLs.has(n);if(this.proxyServerUrl_){const n=this.setProxyServerUrl_(e);if(!t(n))return n}const i=this.setSteeringParams_(e);return t(i)?null:i}startTTLTimeout_(e=this.steeringManifest.ttl){const t=1e3*e;this.ttlTimeout_=C().setTimeout(()=>{this.requestSteeringManifest()},t)}clearTTLTimeout_(){C().clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new Ch}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}didDASHTagChange(e,t){return!t&&this.steeringManifest.reloadUri||t&&($t(e,t.serverURL)!==this.steeringManifest.reloadUri||t.defaultServiceLocation!==this.defaultPathway||t.queryBeforeStart!==this.queryBeforeStart||t.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}}let Wi;const Pv=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Ov=function(s){return this.audioSegmentLoader_[s]+this.mainSegmentLoader_[s]};class jv extends L.EventTarget{constructor(e){super(),this.fastQualityChange_=(s=>{let t=null;return(...i)=>{clearTimeout(t),t=setTimeout(()=>{s.apply(null,i)},100)}})(this.fastQualityChange_.bind(this));const{src:t,withCredentials:i,tech:n,bandwidth:r,externVhs:a,useCueTags:l,playlistExclusionDuration:h,enableLowInitialPlaylist:m,sourceType:v,cacheEncryptionKeys:y,bufferBasedABR:I,leastPixelDiffSelector:P,captionServices:j,experimentalUseMMS:x}=e;if(!t)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:z}=e;(null===z||typeof z>"u")&&(z=1/0),Wi=a,this.bufferBasedABR=!!I,this.leastPixelDiffSelector=!!P,this.withCredentials=i,this.tech_=n,this.vhs_=n.vhs,this.player_=e.player_,this.sourceType_=v,this.useCueTags_=l,this.playlistExclusionDuration=h,this.maxPlaylistRetries=z,this.enableLowInitialPlaylist=m,this.usingManagedMediaSource_=!1,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:i,maxPlaylistRetries:z,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=(()=>{const s={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{s[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Gi,activeTrack:Gi,getActiveGroup:Gi,onGroupChanged:Gi,onTrackChanged:Gi,lastTrack_:null,logger_:ci(`MediaGroups[${e}]`)}}),s})(),x&&C().ManagedMediaSource?(this.tech_.el_.disableRemotePlayback=!0,this.mediaSource=new(C().ManagedMediaSource),this.usingManagedMediaSource_=!0,L.log("Using ManagedMediaSource")):C().MediaSource&&(this.mediaSource=new(C().MediaSource)),this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.load=this.load.bind(this),this.pause=this.pause.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.mediaSource.addEventListener("startstreaming",this.load),this.mediaSource.addEventListener("endstreaming",this.pause),this.seekable_=kt(),this.hasPlayed_=!1,this.syncController_=new pv(e),this.segmentMetadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.segmentMetadataTrack_.mode="hidden",this.decrypter_=new vv,this.sourceUpdater_=new mh(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new mv,this.keyStatusMap_=new Map;const H={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:j,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:r,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:y,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_="dash"===this.sourceType_?new Tl(t,this.vhs_,tt(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new yn(t,this.vhs_,tt(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new wl(tt(H,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new wl(tt(H,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new uv(tt(H,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise((Q,X)=>{function ce(){n.off("vttjserror",Y),Q()}function Y(){n.off("vttjsloaded",ce),X()}n.one("vttjsloaded",ce),n.one("vttjserror",Y),n.addWebVttScript_()})}),e),this.contentSteeringController_=new Dv(this.vhs_.xhr,()=>this.mainSegmentLoader_.bandwidth),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),Pv.forEach(Q=>{this[Q+"_"]=Ov.bind(this,Q)}),this.logger_=ci("pc"),this.triggeredFmp4Usage=!1,"none"===this.tech_.preload()?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;const R="none"===this.tech_.preload()?"play":"loadstart";this.tech_.one(R,()=>{const Q=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-Q,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends})})}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){const e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e="abr"){const t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)}switchMedia_(e,t,i){const n=this.media(),r=n&&(n.id||n.uri),a=e&&(e.id||e.uri);r&&r!==a&&(this.logger_(`switch media ${r} -> ${a} from ${t}`),this.trigger({type:"renditionselected",metadata:{renditionInfo:{id:a,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS},cause:t}}),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${t}`})),this.mainPlaylistLoader_.media(e,i)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e
vendor: 9,704 bytes, line 1
1=>{const t=this.mediaTypes_[e],i=t?t.activeGroup():null,n=this.contentSteeringController_.getPathway();if(i&&n){const a=(i.length?i[0].playlists:i.playlists).filter(l=>l.attributes.serviceLocation===n);a.length&&this.mediaTypes_[e].activePlaylistLoader.media(a[0])}})}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=C().setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(C().clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){const e=this.main(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;const i=e.mediaGroups.AUDIO,n=Object.keys(i);let r;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)r=this.mediaTypes_.AUDIO.activeTrack();else{const l=i.main||n.length&&i[n[0]];for(const h in l)if(l[h].default){r={label:h};break}}if(!r)return t;const a=[];for(const l in i)if(i[l][r.label]){const h=i[l][r.label];if(h.playlists&&h.playlists.length)a.push.apply(a,h.playlists);else if(h.uri)a.push(h);else if(e.playlists.length)for(let m=0;m<e.playlists.length;m++){const v=e.playlists[m];v.attributes&&v.attributes.AUDIO&&v.attributes.AUDIO===l&&a.push(v)}}return a.length?a:t}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",()=>{const t=this.mainPlaylistLoader_.media(),i=1.5*t.targetDuration*1e3;this.requestOptions_.timeout=pl(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?0:i,t.endList&&"none"!==this.tech_.preload()&&(this.mainSegmentLoader_.playlist(t,this.requestOptions_),this.mainSegmentLoader_.load()),(s=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(m=>{xv[m](m,s)});const{mediaTypes:e,mainPlaylistLoader:t,tech:i,vhs:n,segmentLoaders:{AUDIO:r,main:a}}=s;["AUDIO","SUBTITLES"].forEach(m=>{e[m].activeGroup=((s,e)=>t=>{const{mainPlaylistLoader:i,mediaTypes:{[s]:{groups:n}}}=e,r=i.media();if(!r)return null;let a=null;r.attributes[s]&&(a=n[r.attributes[s]]);const l=Object.keys(n);if(!a)if("AUDIO"===s&&l.length>1&&sr(e.main))for(let h=0;h<l.length;h++){const m=n[l[h]];if(Sh(m,r)){a=m;break}}else n.main?a=n.main:1===l.length&&(a=n[l[0]]);return typeof t>"u"?a:null!==t&&a&&a.filter(h=>h.id===t.id)[0]||null})(m,s),e[m].activeTrack=Cv[m](m,s),e[m].onGroupChanged=((s,e)=>()=>{const{segmentLoaders:{[s]:t,main:i},mediaTypes:{[s]:n}}=e,r=n.activeTrack(),a=n.getActiveGroup(),l=n.activePlaylistLoader,h=n.lastGroup_;if((!a||!h||a.id!==h.id)&&(n.lastGroup_=a,n.lastTrack_=r,Th(t,n),a&&!a.isMainPlaylist)){if(!a.playlistLoader)return void(l&&i.resetEverything());t.resyncLoader(),Il(a.playlistLoader,n)}})(m,s),e[m].onGroupChanging=((s,e)=>()=>{const{segmentLoaders:{[s]:t},mediaTypes:{[s]:i}}=e;i.lastGroup_=null,t.abort(),t.pause()})(m,s),e[m].onTrackChanged=((s,e)=>()=>{const{mainPlaylistLoader:t,segmentLoaders:{[s]:i,main:n},mediaTypes:{[s]:r}}=e,a=r.activeTrack(),l=r.getActiveGroup(),h=r.activePlaylistLoader,m=r.lastTrack_;if((!m||!a||m.id!==a.id)&&(r.lastGroup_=l,r.lastTrack_=a,Th(i,r),l)){if(l.isMainPlaylist){if(!a||!m||a.id===m.id)return;const v=e.vhs.playlistController_,y=v.selectPlaylist();if(v.media()===y)return;return r.logger_(`track change. Switching main audio from ${m.id} to ${a.id}`),t.pause(),n.resetEverything(),void v.fastQualityChange_(y)}if("AUDIO"===s){if(!l.playlistLoader)return n.setAudio(!0),void n.resetEverything();i.setAudio(!0),n.setAudio(!1)}if(h===l.playlistLoader)return void Il(l.playlistLoader,r);i.track&&i.track(a),i.resetEverything(),Il(l.playlistLoader,r)}})(m,s),e[m].getActiveGroup=((s,{mediaTypes:e})=>()=>{const t=e[s].activeTrack();return t?e[s].activeGroup(t):null})(m,s)});const l=e.AUDIO.activeGroup();if(l){const m=(l.filter(y=>y.default)[0]||l[0]).id;e.AUDIO.tracks[m].enabled=!0,e.AUDIO.onGroupChanged(),e.AUDIO.onTrackChanged(),e.AUDIO.getActiveGroup().playlistLoader?(a.setAudio(!1),r.setAudio(!0)):a.setAudio(!0)}t.on("mediachange",()=>{["AUDIO","SUBTITLES"].forEach(m=>e[m].onGroupChanged())}),t.on("mediachanging",()=>{["AUDIO","SUBTITLES"].forEach(m=>e[m].onGroupChanging())});const h=()=>{e.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"})};i.audioTracks().addEventListener("change",h),i.remoteTextTracks().addEventListener("change",e.SUBTITLES.onTrackChanged),n.on("dispose",()=>{i.audioTracks().removeEventListener("change",h),i.remoteTextTracks().removeEventListener("change",e.SUBTITLES.onTrackChanged)}),i.clearTracks("audio");for(const m in e.AUDIO.tracks)i.audioTracks().addTrack(e.AUDIO.tracks[m])})({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),t),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",()=>{this.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let t=this.mainPlaylistLoader_.media();if(!t){let i;if(this.attachContentSteeringListeners_(),this.initContentSteeringController_(),this.excludeUnsupportedVariants_(),this.enableLowInitialPlaylist&&(i=this.selectInitialPlaylist()),i||(i=this.selectPlaylist()),!i||!this.shouldSwitchToMedia_(i)||(this.initialMedia_=i,this.switchMedia_(this.initialMedia_,"initial"),"vhs-json"!==this.sourceType_||!this.initialMedia_.segments))return;t=this.initialMedia_}this.handleUpdatedMediaPlaylist(t)}),this.mainPlaylistLoader_.on("error",()=>{const t=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:t.playlist,error:t})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{const t=this.mainPlaylistLoader_.media(),i=1.5*t.targetDuration*1e3;this.requestOptions_.timeout=pl(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?0:i,"dash"===this.sourceType_&&this.mainPlaylistLoader_.isPaused&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(t,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{const t=this.mainPlaylistLoader_.media();"playlist-unchanged"!==t.lastExcludeReason_&&this.stuckAtPlaylistEnd_(t)&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))}),this.mainPlaylistLoader_.on("renditiondisabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})}),["manifestrequeststart","manifestrequestcomplete","manifestparsestart","manifestparsecomplete","playlistrequeststart","playlistrequestcomplete","playlistparsestart","playlistparsecomplete","renditiondisabled","renditionenabled"].forEach(t=>{this.mainPlaylistLoader_.on(t,i=>{this.player_.trigger(Xe({},i))})})}handleUpdatedMediaPlaylist(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(e,t){const i=e.mediaGroups||{};let n=!0;const r=Object.keys(i.AUDIO);for(const a in i.AUDIO)for(const l in i.AUDIO[a])i.AUDIO[a][l].uri||(n=!1);n&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(i.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),Wi.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),r.length&&Object.keys(i.AUDIO[r[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(e){const t=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,i=this.tech_.currentTime(),n=this.bufferLowWaterLine(),r=this.bufferHighWaterLine();return function({currentPlaylist:s,buffered:e,currentTime:t,nextPlaylist:i,bufferLowWaterLine:n,bufferHighWaterLine:r,duration:a,bufferBasedABR:l,log:h}){if(!i)return L.log.warn("We received no playlist to switch to. Please check your stream."),!1;const m=`allowing switch ${s&&s.id||"null"} -> ${i.id}`;if(!s)return h(`${m} as current playlist is not set`),!0;if(i.id===s.id)return!1;const v=!!gn(e,t).length;if(!s.endList)return v||"number"!=typeof s.partTargetDuration?(h(`${m} as current playlist is live`),!0):(h(`not ${m} as current playlist is live llhls, but currentTime isn't in buffered.`),!1);const y=cl(e,t),I=l?It.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:It.MAX_BUFFER_LOW_WATER_LINE;if(a<I)return h(`${m} as duration < max low water line (${a} < ${I})`),!0;const P=i.attributes.BANDWIDTH,j=s.attributes.BANDWIDTH;if(P<j&&(!l||y<r)){let x=`${m} as next bandwidth < current bandwidth (${P} < ${j})`;return l&&(x+=` and forwardBuffer < bufferHighWaterLine (${y} < ${r})`),h(x),!0}if((!l||P>j)&&y>=n){let x=`${m} as forwardBuffer >= bufferLowWaterLine (${y} >= ${n})`;return l&&(x+=` and next bandwidth > current bandwidth (${P} > ${j})`),h(x),!0}return h(`not ${m}
1 as no switching criteria met`),!1}({buffered:this.tech_.buffered(),currentTime:i,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:n,bufferHighWaterLine:r,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",()=>{this.trigger("progress")}),this.mainSegmentLoader_.on("error",()=>{const i=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:i.playlist,error:i})}),this.mainSegmentLoader_.on("appenderror",()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("ended",()=>
vendor: 6,289 bytes, line 1
1{this.logger_("main segment loader ended"),this.onEndOfStream()}),this.timelineChangeController_.on("audioTimelineBehind",()=>{const i=this.audioSegmentLoader_.pendingSegment_;i&&i.segment&&i.segment.syncInfo&&this.tech_.setCurrentTime(i.segment.syncInfo.end+.01)}),this.timelineChangeController_.on("fixBadTimelineChange",()=>{this.logger_("Fix bad timeline change. Restarting al segment loaders..."),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}),this.mainSegmentLoader_.on("earlyabort",i=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:10}))});const e=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const i=this.getCodecsOrExclude_();i&&this.sourceUpdater_.addOrChangeSourceBuffers(i)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",()=>{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()}),["segmentselected","segmentloadstart","segmentloaded","segmentkeyloadstart","segmentkeyloadcomplete","segmentdecryptionstart","segmentdecryptioncomplete","segmenttransmuxingstart","segmenttransmuxingcomplete","segmenttransmuxingtrackinfoavailable","segmenttransmuxingtiminginfoavailable","segmentappendstart","appendsdone","bandwidthupdated","timelinechange","codecschange"].forEach(i=>{this.mainSegmentLoader_.on(i,n=>{this.player_.trigger(Xe({},n))}),this.audioSegmentLoader_.on(i,n=>{this.player_.trigger(Xe({},n))}),this.subtitleSegmentLoader_.on(i,n=>{this.player_.trigger(Xe({},n))})})}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}pause(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}fastQualityChange_(e=this.selectPlaylist()){e&&e===this.mainPlaylistLoader_.media()?this.logger_("skipping fastQualityChange because new media is same as old"):(this.switchMedia_(e,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0)}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();const e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}setupFirstPlay(){const e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){const t=this.seekable();if(!t.length)return!1;const i=t.end(0);let n=i;if(e.start){const r=e.start.timeOffset;if(r<0){const l=Wi.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,e);n=Math.max(Math.min(i+l+r,i),t.start(0))}else n=Math.min(i,r)}this.trigger("firstplay"),this.tech_.setCurrentTime(n)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){const e=this.tech_.play();typeof e<"u"&&"function"==typeof e.then&&e.then(null,t=>{})}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;const e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;const t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){const t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){if(!this.seekable().length)return!1;const i=this.syncController_.getExpiredTime(e,this.duration());if(null===i)return!1;const n=Wi.Playlist.playlistEnd(e,i),r=this.tech_.currentTime(),a=this.tech_.buffered();if(!a.length)return n-r<=Li;const l=a.end(a.length-1);return l-r<=Li&&n-l<=Li}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:t={},playlistExclusionDuration:i}){if(e=e||this.mainPlaylistLoader_.media(),i=i||t.playlistExclusionDuration||this.playlistExclusionDuration,!e)return this.error=t,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));e.playlistErrors_++;const n=this.mainPlaylistLoader_.main.playlists,r=n.filter(ba),a=1===r.length&&r[0]===e;if(1===n.length&&i!==1/0)return L.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(a);if(a){if(this.main().contentSteering){const j=this.pathwayAttribute_(e),x=1e3*this.contentSteeringController_.steeringManifest.ttl;return this.contentSteeringController_.excludePathway(j),this.excludeThenChangePathway_(),void setTimeout(()=>{this.contentSteeringController_.addAvailablePathway(j)},x)}let P=!1;
vendor: 6,859 bytes, line 1
1n.forEach(j=>{if(j===e)return;const x=j.excludeUntil;typeof x<"u"&&x!==1/0&&(P=!0,delete j.excludeUntil)}),P&&(L.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let l;l=e.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*i,e.excludeUntil=l,t.reason&&(e.lastExcludeReason_=t.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});const h=this.selectPlaylist();if(!h)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");(t.internal?this.logger_:L.log.warn)(`${t.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${t.message?" "+t.message:""} Switching to playlist ${h.id}.`),h.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),h.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);const y=h.targetDuration/2*1e3||5e3,I="number"==typeof h.lastRequest&&Date.now()-h.lastRequest<=y;return this.switchMedia_(h,"exclude",a||I)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,t){const i=[],n="all"===e;(n||"main"===e)&&i.push(this.mainPlaylistLoader_);const r=[];(n||"audio"===e)&&r.push("AUDIO"),(n||"subtitle"===e)&&(r.push("CLOSED-CAPTIONS"),r.push("SUBTITLES")),r.forEach(a=>{const l=this.mediaTypes_[a]&&this.mediaTypes_[a].activePlaylistLoader;l&&i.push(l)}),["main","audio","subtitle"].forEach(a=>{const l=this[`${a}SegmentLoader_`];l&&(e===a||"all"===e)&&i.push(l)}),i.forEach(a=>t.forEach(l=>{"function"==typeof a[l]&&a[l]()}))}setCurrentTime(e){const t=gn(this.tech_.buffered(),e);return this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media()&&this.mainPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),void this.load()):0}duration(){if(!this.mainPlaylistLoader_)return 0;const e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:Wi.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}getSeekableRange_(e,t){const i=e.media();if(!i)return null;const n=this.syncController_.getMediaSequenceSync(t);if(n&&n.isReliable){const l=n.start,h=n.end;if(!isFinite(l)||!isFinite(h))return null;const m=Wi.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,i);return kt([[l,Math.max(l,h-m)]])}const r=this.syncController_.getExpiredTime(i,this.duration());if(null===r)return null;const a=Wi.Playlist.seekable(i,r,Wi.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,i));return a.length?a:null}computeFinalSeekable_(e,t){if(!t)return e;const i=e.start(0),n=e.end(0),r=t.start(0),a=t.end(0);return r>n||i>a?e:kt([[Math.max(i,r),Math.min(n,a)]])}onSyncInfoUpdate_(){if(!this.mainPlaylistLoader_)return;const e=this.getSeekableRange_(this.mainPlaylistLoader_,"main");if(!e)return;let t;if(this.mediaTypes_.AUDIO.activePlaylistLoader&&(t=this.getSeekableRange_(this.mediaTypes_.AUDIO.activePlaylistLoader,"audio"),!t))return;const i=this.seekable_;this.seekable_=this.computeFinalSeekable_(e,t),!this.seekable_||i&&i.length&&this.seekable_.length&&i.start(0)===this.seekable_.start(0)&&i.end(0)===this.seekable_.end(0)||(this.logger_(`seekable updated [${fd(this.seekable_)}]`),this.trigger({type:"seekablerangeschanged",metadata:{seekableRanges:this.seekable_}}),this.tech_.trigger("seekablechanged"))}updateDuration(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){const n=this.seekable();if(!n.length)return;return void((isNaN(this.mediaSource.duration)||this.mediaSource.duration<n.end(n.length-1))&&this.sourceUpdater_.setDuration(n.end(n.length-1)))}const t=this.tech_.buffered();let i=Wi.Playlist.duration(this.mainPlaylistLoader_.media());t.length>0&&(i=Math.max(i,t.end(t.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(e=>{const t=this.mediaTypes_[e].groups;for(const i in t)t[i].forEach(n=>{n.playlistLoader&&n.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){const e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),i=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!i)}getCodecsOrExclude_(){const e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},t=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();e.video=e.main;const i=rr(this.main(),t),n={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(n.video=i.video||e.main.videoCodec||"avc1.4d400d"),e.main.isMuxed&&(n.video+=`,${i.audio||e.main.audioCodec||On}`),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||r)&&(n.audio=i.audio||e.main.audioCodec||e.audio.audioCodec||On,e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),!n.audio&&!n.video)return void this.excludePlaylist({playlistToExclude:t,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});const a=(m,v)=>m?Di(v,this.usingManagedMediaSource_):qs(v),l={};let h;if(["video","audio"].forEach(function(m){if(n.hasOwnProperty(m)&&!a(e[m].isFmp4,n[m])){const v=e[m].isFmp4?"browser":"muxer";l[v]=l[v]||[],l[v].push(n[m]),"audio"===m&&(h=v)}}),r&&h&&t.attributes.AUDIO){const m=t.attributes.AUDIO;
vendor: 8,554 bytes, line 1
1this.main().playlists.forEach(v=>{(v.attributes&&v.attributes.AUDIO)===m&&v!==t&&(v.excludeUntil=1/0)}),this.logger_(`excluding audio group ${m} as ${h} does not support codec(s): "${n.audio}"`)}if(Object.keys(l).length){const m=Object.keys(l).reduce((v,y)=>(v&&(v+=", "),v+`${y} does not support codec(s): "${l[y].join(",")}"`),"")+".";return void this.excludePlaylist({playlistToExclude:t,error:{internal:!0,message:m},playlistExclusionDuration:1/0})}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const m=[];if(["video","audio"].forEach(v=>{const y=(wt(this.sourceUpdater_.codecs[v]||"")[0]||{}).type,I=(wt(n[v]||"")[0]||{}).type;y&&I&&y.toLowerCase()!==I.toLowerCase()&&m.push(`"${this.sourceUpdater_.codecs[v]}" -> "${n[v]}"`)}),m.length)return void this.excludePlaylist({playlistToExclude:t,error:{message:`Codec switching not supported: ${m.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0})}return n}tryToCreateSourceBuffers_(){if("open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers()||!this.areMediaTypesKnown_())return;const e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);const t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}excludeUnsupportedVariants_(){const e=this.main().playlists,t=[];Object.keys(e).forEach(i=>{const n=e[i];if(-1!==t.indexOf(n.id))return;t.push(n.id);const r=rr(this.main,n),a=[];r.audio&&!qs(r.audio)&&!Di(r.audio,this.usingManagedMediaSource_)&&a.push(`audio codec ${r.audio}`),r.video&&!qs(r.video)&&!Di(r.video,this.usingManagedMediaSource_)&&a.push(`video codec ${r.video}`),r.text&&"stpp.ttml.im1t"===r.text&&a.push(`text codec ${r.text}`),a.length&&(n.excludeUntil=1/0,this.logger_(`excluding ${n.id} for unsupported: ${a.join(", ")}`))})}excludeIncompatibleVariants_(e){const t=[],i=this.main().playlists,n=nr(wt(e)),r=Pd(n),a=n.video&&wt(n.video)[0]||null,l=n.audio&&wt(n.audio)[0]||null;Object.keys(i).forEach(h=>{const m=i[h];if(-1!==t.indexOf(m.id)||m.excludeUntil===1/0)return;t.push(m.id);const v=[],y=rr(this.mainPlaylistLoader_.main,m),I=Pd(y);if(y.audio||y.video){if(I!==r&&v.push(`codec count "${I}" !== "${r}"`),!this.sourceUpdater_.canChangeType()){const P=y.video&&wt(y.video)[0]||null,j=y.audio&&wt(y.audio)[0]||null;P&&a&&P.type.toLowerCase()!==a.type.toLowerCase()&&v.push(`video codec "${P.type}" !== "${a.type}"`),j&&l&&j.type.toLowerCase()!==l.type.toLowerCase()&&v.push(`audio codec "${j.type}" !== "${l.type}"`)}v.length&&(m.excludeUntil=1/0,this.logger_(`excluding ${m.id}: ${v.join(" && ")}`))}})}updateAdCues_(e){let t=0;const i=this.seekable();i.length&&(t=i.start(0)),function(s,e,t=0){if(!s.segments)return;let n,i=t;for(let r=0;r<s.segments.length;r++){const a=s.segments[r];if(n||(n=cv(e,i+a.duration/2)),n){if("cueIn"in a){n.endTime=i,n.adEndTime=i,i+=a.duration,n=null;continue}if(i<n.endTime){i+=a.duration;continue}n.endTime+=a.duration}else if("cueOut"in a&&(n=new(C().VTTCue)(i,i+a.duration,a.cueOut),n.adStartTime=i,n.adEndTime=i+parseFloat(a.cueOut),e.addCue(n)),"cueOutCont"in a){const[l,h]=a.cueOutCont.split("/").map(parseFloat);n=new(C().VTTCue)(i,i+a.duration,""),n.adStartTime=i-l,n.adEndTime=n.adStartTime+h,e.addCue(n)}i+=a.duration}}(e,this.cueTagsTrack_,t)}goalBufferLength(){const e=this.tech_.currentTime(),t=It.GOAL_BUFFER_LENGTH,i=It.GOAL_BUFFER_LENGTH_RATE,n=Math.max(t,It.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*i,n)}bufferLowWaterLine(){const e=this.tech_.currentTime(),t=It.BUFFER_LOW_WATER_LINE,i=It.BUFFER_LOW_WATER_LINE_RATE,n=Math.max(t,It.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,It.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*i,this.bufferBasedABR?r:n)}bufferHighWaterLine(){return It.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){lh(this.inbandTextTracks_,"com.apple.streaming",this.tech_),(({inbandTextTracks:s,dateRanges:e})=>{const t=s.metadataTrack_;if(!t)return;const i=C().WebKitDataCue||C().VTTCue;e.forEach(n=>{for(const r of Object.keys(n)){if(q0.has(r))continue;const a=new i(n.startTime,n.endTime,"");a.id=n.id,a.type="com.apple.quicktime.HLS",a.value={key:H0[r],data:n[r]},("scte35Out"===r||"scte35In"===r)&&(a.value.data=new Uint8Array(a.value.data.match(/[\da-f]{2}/gi)).buffer),t.addCue(a)}n.processDateRange()})})({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,t,i){const n=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();lh(this.inbandTextTracks_,e,this.tech_),(({inbandTextTracks:s,metadataArray:e,timestampOffset:t,videoDuration:i})=>{if(!e)return;const n=C().WebKitDataCue||C().VTTCue,r=s.metadataTrack_;if(!r||(e.forEach(v=>{const y=v.cueTime+t;"number"!=typeof y||C().isNaN(y)||y<0||!(y<1/0)||!v.frames||!v.frames.length||v.frames.forEach(I=>{const P=new n(y,y,I.value||I.url||I.data||"");P.frame=I,P.value=I,function(s){Object.defineProperties(s.frame,{id:{get:()=>(L.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),s.value.key)},value:{get:()=>(L.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),s.value.data)},privateData:{get:()=>(L.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),s.value.data)}})}(P),r.addCue(P)})}),!r.cues||!r.cues.length))return;const a=r.cues,l=[];for(let v=0;v<a.length;v++)a[v]&&l.push(a[v]);const h=l.reduce((v,y)=>{const I=v[y.startTime]||[];return I.push(y),v[y.startTime]=I,v},{}),m=Object.keys(h).sort((v,y)=>Number(v)-Number(y));m.forEach((v,y)=>{const I=h[v],P=isFinite(i)?i:v,j=Number(m[y+1])||P;I.forEach(x=>{x.endTime=j})})})({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:n,videoDuration:i})}pathwayAttribute_(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}initContentSteeringController_(){const e=this.main();if(e.contentSteering){for(const t of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(t));if(this.contentSteeringController_.assignTagProperties(e.uri,e.contentSteering),this.contentSteeringController_.queryBeforeStart)return void this.contentSteeringController_.requestSteeringManifest(!0);this.tech_.one("canplay",()=>{this.contentSteeringController_.requestSteeringManifest()})}}resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),["contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"].forEach(t=>{this.contentSteeringController_.on(t,i=>{this.trigger(Xe({},i))})}),"dash"===this.sourceType_&&this.mainPlaylistLoader_.on("loadedplaylist",()=>{const t=this.main();(this.contentSteeringController_.didDASHTagChange(t.uri,t.contentSteering)||(()=>{const r=this.contentSteeringController_.getAvailablePathways(),a=[];for(const l of t.playlists){const h=l.attributes.serviceLocation;if(h&&(a.push(h),!r.has(h)))return!0}return!(a.length||!r.size)})())&&this.resetContentSteeringController_()})}excludeThenChangePathway_(){const e=this.contentSteeringController_.getPathway();if(!e)return;this.handlePathwayClones_();const i=this.main().playlists,n=new Set;let r=!1;Object.keys(i).forEach(a=>{const l=i[a],h=this.pathwayAttribute_(l),m=h&&e!==h;l.excludeUntil===1/0&&"content-steering"===l.lastExcludeReason_&&!m&&(delete l.excludeUntil,delete l.lastExcludeReason_,r=!0);const y=!l.excludeUntil&&l.excludeUntil!==1/0;!n.has(l.id)&&m&&y&&(n.add(l.id),l.excludeUntil=1/0,l.lastExcludeReason_="content-steering",this.logger_(`excluding ${l.id} for ${l.lastExcludeReason_}`))}),"DASH"===this.contentSteeringController_.manifestType_&&Object.keys(this.mediaTypes_).forEach(a=>{const l=this.mediaTypes_[a];if(l.activePlaylistLoader){const h=l.activePlaylistLoader.media_;h&&h.attributes.serviceLocation!==e&&(r=!0)}}),r&&this.changeSegmentPathway_()}handlePathwayClones_(){const t=this.main().playlists,i=this.contentSteeringController_.currentPathwayClones,n=this.contentSteeringController_.nextPathwayClones;if(i&&i.size||n&&n.size){for(const[a,l]of i.entries())n.get(a)||(this.mainPlaylistLoader_.updateOrDeleteClone(l),this.contentSteeringController_.excludePathway(a));for(const[a,l]of n.entries()){const h=i.get(a);h?this.equalPathwayClones_(h,l)||(this.mainPlaylistLoader_.updateOrDeleteClone(l,!0),this.contentSteeringController_.addAvailablePathway(a)):(t.filter(v=>
1v.attributes["PATHWAY-ID"]===l["BASE-ID"]).forEach(v=>{this.mainPlaylistLoader_.addClonePathway(l,v)}),this.contentSteeringController_.addAvailablePathway(a))}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...n])))}}equalPathwayClones_(e,t){if(e["BASE-ID"]!==t["BASE-ID"]||e.ID!==t.ID||e["URI-REPLACEMENT"].HOST!==t["URI-REPLACEMENT"].HOST)return!1;const i=e["URI-REPLACEMENT"].PARAMS,n=t["URI-REPLACEMENT"].PARAMS;for(const r in i)if(i[r]!==n[r])return!1;for(const r in n)if(i[r]!==n[r])return!1;return!0}changeSegmentPathway_(){const e=this.selectPlaylist();this.pauseLoading(),"DASH"===this.contentSteeringController_.manifestType_&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let e=0;const t="non-usable";this.mainPlaylistLoader_.main.playlists.forEach(i=>{const n=this.mainPlaylistLoader_.getKeyIdSet(i);!n||!n.size||n.forEach(r=>{const a="usable",l=this.keyStatusMap_.has(r)&&this.keyStatusMap_.get(r)===a;l?l&&i.lastExcludeReason_===t&&i.excludeUntil===1/0&&(delete i.excludeUntil,delete i.lastExcludeReason_,this.logger_(`enabling playlist ${i.id} because key ID ${r} is ${a}`)):(i.excludeUntil!==1/0&&i.lastExcludeReason_!==t&&(i.excludeUntil=1/0,i.lastExcludeReason_=t,this.logger_(`excluding playlist ${i.id} because the key ID ${r} doesn't exist in the keyStatusMap or is not ${a}`)),e++)})}),e>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEac
vendor: 10,430 bytes, line 1
1h(i=>{i&&i.attributes&&i.attributes.RESOLUTION&&i.attributes.RESOLUTION.height<720&&i.excludeUntil===1/0&&i.lastExcludeReason_===t&&(delete i.excludeUntil,L.log.warn(`enabling non-HD playlist ${i.id} because all playlists were excluded due to ${t} key IDs`))})}addKeyStatus_(e,t){const r=("string"==typeof e?e:(s=>{const e=new Uint8Array(s);return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")})(e)).slice(0,32).toLowerCase();this.logger_(`KeyStatus '${t}' with key ID ${r} added to the keyStatusMap`),this.keyStatusMap_.set(r,t)}updatePlaylistByKeyStatus(e,t){this.addKeyStatus_(e,t),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}class Rv{constructor(e,t,i){const{playlistController_:n}=e,r=n.fastQualityChange_.bind(n);if(t.attributes){const a=t.attributes.RESOLUTION;this.width=a&&a.width,this.height=a&&a.height,this.bandwidth=t.attributes.BANDWIDTH,this.frameRate=t.attributes["FRAME-RATE"]}this.codecs=rr(n.main(),t),this.playlist=t,this.id=i,this.enabled=((s,e,t)=>i=>{const n=s.main.playlists[e],r=fl(n),a=ba(n);if(typeof i>"u")return a;i?delete n.disabled:n.disabled=!0;const l={renditionInfo:{id:e,bandwidth:n.attributes.BANDWIDTH,resolution:n.attributes.RESOLUTION,codecs:n.attributes.CODECS},cause:"fast-quality"};return i!==a&&!r&&(i?(t(n),s.trigger({type:"renditionenabled",metadata:l})):s.trigger({type:"renditiondisabled",metadata:l})),i})(e.playlists,t.id,r)}}const Eh=["seeking","seeked","pause","playing","error"];class Bv extends L.EventTarget{constructor(e){super(),this.playlistController_=e.playlistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.playedRanges_=[],this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=ci("PlaybackWatcher"),this.logger_("initialize");const t=()=>this.monitorCurrentTime_(),i=()=>this.monitorCurrentTime_(),n=()=>this.techWaiting_(),r=()=>this.resetTimeUpdate_(),a=this.playlistController_,l=["main","subtitle","audio"],h={};l.forEach(v=>{h[v]={reset:()=>this.resetSegmentDownloads_(v),updateend:()=>this.checkSegmentDownloads_(v)},a[`${v}SegmentLoader_`].on("appendsdone",h[v].updateend),a[`${v}SegmentLoader_`].on("playlistupdate",h[v].reset),this.tech_.on(["seeked","seeking"],h[v].reset)});const m=v=>{["main","audio"].forEach(y=>{a[`${y}SegmentLoader_`][v]("appended",this.seekingAppendCheck_)})};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),m("off"))},this.clearSeekingAppendCheck_=()=>m("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),m("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",n),this.tech_.on(Eh,r),this.tech_.on("canplay",i),this.tech_.one("play",t),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",n),this.tech_.off(Eh,r),this.tech_.off("canplay",i),this.tech_.off("play",t),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),l.forEach(v=>{a[`${v}SegmentLoader_`].off("appendsdone",h[v].updateend),a[`${v}SegmentLoader_`].off("playlistupdate",h[v].reset),this.tech_.off(["seeked","seeking"],h[v].reset)}),this.checkCurrentTimeTimeout_&&C().clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&C().clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=C().setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){const t=this.playlistController_[`${e}SegmentLoader_`];this[`${e}StalledDownloads_`]>0&&this.logger_(`resetting possible stalled download count for ${e} loader`),this[`${e}StalledDownloads_`]=0,this[`${e}Buffered_`]=t.buffered_()}checkSegmentDownloads_(e){const t=this.playlistController_,i=t[`${e}SegmentLoader_`],n=i.buffered_(),r=function(s,e){if(s===e)return!1;if(!s&&e||!e&&s||s.length!==e.length)return!0;for(let t=0;t<s.length;t++)if(s.start(t)!==e.start(t)||s.end(t)!==e.end(t))return!0;return!1}(this[`${e}Buffered_`],n);if(this[`${e}Buffered_`]=n,r)return t.trigger({type:"bufferedrangeschanged",metadata:{bufferedRanges:n}}),void this.resetSegmentDownloads_(e);this[`${e}StalledDownloads_`]++,this.logger_(`found #${this[`${e}StalledDownloads_`]} ${e} appends that did not increase buffer (possible stalled download)`,{playlistId:i.playlist_&&i.playlist_.id,buffered:Ds(n)}),!(this[`${e}StalledDownloads_`]<10)&&(this.logger_(`${e} loader stalled download exclusion`),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:`vhs-${e}-download-exclusion`}),"subtitle"!==e&&t.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0}))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;const e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+Li>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.playedRanges_.push(kt([this.lastRecordedTime,e])),this.playlistController_.trigger({type:"playedrangeschanged",metadata:{playedRanges:this.playedRanges_}}),this.consecutiveUpdates=0,this.lastRecordedTime=e)}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){if(!this.tech_.seeking())return!1;const t=this.seekable(),i=this.tech_.currentTime();let r;if(this.afterSeekableWindow_(t,i,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(r=t.end(t.length-1)),this.beforeSeekableWindow_(t,i)){const j=t.start(0);r=j+(j===t.end(0)?0:Li)}if(typeof r<"u")return this.logger_(`Trying to seek outside of seekable at time ${i} with seekable range ${fd(t)}. Seeking to ${r}.`),this.tech_.setCurrentTime(r),!0;const a=this.playlistController_.sourceUpdater_,l=this.tech_.buffered(),h=a.audioBuffer?a.audioBuffered():null,m=a.videoBuffer?a.videoBuffered():null,v=this.media(),y=v.partTargetDuration?v.partTargetDuration:2*(v.targetDuration-ji),I=[h,m];for(let j=0;j<I.length;j++)if(I[j]&&cl(I[j],i)<y)return!1;const P=ya(l,i);return 0!==P.length&&(r=P.start(0)+Li,this.logger_(`Buffered region starts (${P.start(0)})  just beyond seek point (${i}). Seeking to ${r}.`),this.tech_.setCurrentTime(r),!0)}waiting_(){if(this.techWaiting_())return;const e=this.tech_.currentTime(),t=this.tech_.buffered(),i=gn(t,e);return i.length&&e+3<=i.end(0)?(this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_(`Stopped at ${e} while inside a buffered region [${i.start(0)} -> ${i.end(0)}]. Attempting to resume playback by seeking to the current time.`),void this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"})):void 0}techWaiting_(){const e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,t)){const l=e.end(e.length-1);return this.logger_(`Fell out of live window at time ${t}. Seeking to live point (seekable end) ${l}`),this.resetTimeUpdate_(),this.tech_.setCurrentTime(l),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}const i=this.tech_.vhs.playlistController_.sourceUpdater_,n=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:t}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;const a=ya(n,t);return a.length>0&&(this.logger_(`Stopped at ${t} and seeking to ${a.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(t),!0)}afterSeekableWindow_(e,t,i,n=!1){if(!e.length)return!1;let r=e.end(e.length-1)+Li;return!i.endList&&("number"==typeof i.partTargetDuration||n)&&(r=e.end(e.length-1)+3*i.targetDuration),t>r}beforeSeekableWindow_(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:t,currentTime:i}){if(!e)return;let n;if(e.length&&t.length){const r=gn(e,i-3),a=gn(e,i),l=gn(t,i);l.length&&!a.length&&r.length&&(n={start:r.end(0),end:l.end(0)})}else ya(e,i).length||(n=this.gapFromVideoUnderflow_(e,i));return!!n&&(this.logger_(`Encountered a gap in video from ${n.start} to ${n.end}. Seeking to current time ${i}`),!0)}skipTheGap_(e){const t=this.tech_.buffered(),i=this.tech_.currentTime(),n=ya(t,i);if(this.resetTimeUpdate_(),0===n.length||i!==e)return;this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",e,"nextRange start:",n.start(0)),this.tech_.setCurrentTime(n.start(0)+ji);const r={gapInfo:{from:i,to:n.start(0)}};this.playlistController_.trigger({type:"gapjumped",metadata:r}),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"})}gapFromVideoUnderflow_(e,t){const i=function(s){if(s.length<2)return kt();const e=[];for(let t=1;t<s.length;t++){const i=s.end(t-1),n=s.start(t);e.push([i,n])}return kt(e)}(e);for(let n=0;n<i.length;n++){const r=i.start(n),a=i.end(n);if(t-r<4&&t-r>2)return{start:r,end:a}}return null}}const Fv={errorInterval:30,getSource(s){return s(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},Ah=function(s,e){let t=0,i=0;const n=tt(Fv,e);s.ready(()=>{s.trigger({type:"usage",name:"vhs-error-reload-initialized"})});const r=function(){i&&s.currentTime(i)},a=function(v){null!=v&&(i=s.duration()!==1/0&&s.currentTime()||0,s.one("loadedmetadata",r),s.src(v),s.trigger({type:"usage",name:"vhs-error-reload"}),s.play())},l=function(){if(Date.now()-t<1e3*n.errorInterval)s.trigger({type:"usage",name:"vhs-error-reload-canceled"});else{if(n.getSource&&"function"==typeof n.getSource)return t=Date.now(),n.getSource.call(s,a);L.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}},h=function(){s.off("loadedmetadata",r),s.off("error",l),s.off("dispose",h)};s.on("error",l),s.on("dispose",h),s.reloadSourceOnError=function(v){h(),Ah(s,v)}}
vendor: 5,657 bytes, line 1
1,bt={PlaylistLoader:yn,Playlist:Gt,utils:Kg,STANDARD_PLAYLIST_SELECTOR:ah,INITIAL_PLAYLIST_SELECTOR:function(){const s=this.playlists.main.playlists.filter(Gt.isEnabled);return xn(s,(t,i)=>El(t,i)),s.filter(t=>!!rr(this.playlists.main,t).video)[0]||null},lastBandwidthSelector:ah,movingAverageBandwidthSelector:function(s){let e=-1,t=-1;if(s<0||s>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){let i=this.useDevicePixelRatio&&C().devicePixelRatio||1;return isNaN(this.customPixelRatio)||(i=this.customPixelRatio),e<0&&(e=this.systemBandwidth,t=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==t&&(e=s*this.systemBandwidth+(1-s)*e,t=this.systemBandwidth),rh({main:this.playlists.main,bandwidth:e,playerWidth:parseInt(Tn(this.tech_.el(),"width"),10)*i,playerHeight:parseInt(Tn(this.tech_.el(),"height"),10)*i,playerObjectFit:this.usePlayerObjectFit?Tn(this.tech_.el(),"objectFit"):"",limitRenditionByPlayerDimensions:this.limitRenditionByPlayerDimensions,playlistController:this.playlistController_})}},comparePlaylistBandwidth:El,comparePlaylistResolution:function(s,e){let t,i;return s.attributes.RESOLUTION&&s.attributes.RESOLUTION.width&&(t=s.attributes.RESOLUTION.width),t=t||C().Number.MAX_VALUE,e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||C().Number.MAX_VALUE,t===i&&s.attributes.BANDWIDTH&&e.attributes.BANDWIDTH?s.attributes.BANDWIDTH-e.attributes.BANDWIDTH:t-i},xhr:Rd()};Object.keys(It).forEach(s=>{Object.defineProperty(bt,s,{get:()=>(L.log.warn(`using Vhs.${s} is UNSAFE be sure you know what you are doing`),It[s]),set(e){L.log.warn(`using Vhs.${s} is UNSAFE be sure you know what you are doing`),"number"!=typeof e||e<0?L.log.warn(`value of Vhs.${s} must be greater than or equal to 0`):It[s]=e}})});const Dh="videojs-vhs",kh=function(s,e){const t=e.media();let i=-1;for(let n=0;n<s.length;n++)if(s[n].id===t.id){i=n;break}s.selectedIndex_=i,s.trigger({selectedIndex:i,type:"change"})};bt.canPlaySource=function(){return L.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const Ih=()=>{if(!C().localStorage)return null;const s=C().localStorage.getItem(Dh);if(!s)return null;try{return JSON.parse(s)}catch{return null}},Ph=(s,e)=>{s._requestCallbackSet||(s._requestCallbackSet=new Set),s._requestCallbackSet.add(e)},Oh=(s,e)=>{s._responseCallbackSet||(s._responseCallbackSet=new Set),s._responseCallbackSet.add(e)},Mh=(s,e)=>{s._requestCallbackSet&&(s._requestCallbackSet.delete(e),s._requestCallbackSet.size||delete s._requestCallbackSet)},jh=(s,e)=>{s._responseCallbackSet&&(s._responseCallbackSet.delete(e),s._responseCallbackSet.size||delete s._responseCallbackSet)};bt.supportsNativeHls=function(){if(!se()||!se().createElement)return!1;const s=se().createElement("video");return!!L.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(t){return/maybe|probably/i.test(s.canPlayType(t))})}(),bt.supportsNativeDash=!!(se()&&se().createElement&&L.getTech("Html5").isSupported())&&/maybe|probably/i.test(se().createElement("video").canPlayType("application/dash+xml")),bt.supportsTypeNatively=s=>"hls"===s?bt.supportsNativeHls:"dash"===s&&bt.supportsNativeDash,bt.isSupported=function(){return L.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")},bt.xhr.onRequest=function(s){Ph(bt.xhr,s)},bt.xhr.onResponse=function(s){Oh(bt.xhr,s)},bt.xhr.offRequest=function(s){Mh(bt.xhr,s)},bt.xhr.offResponse=function(s){jh(bt.xhr,s)};const Jv=L.getComponent("Component");class Lh extends Jv{constructor(e,t,i){if(super(t,i.vhs),"number"==typeof i.initialBandwidth&&(this.options_.bandwidth=i.initialBandwidth),this.logger_=ci("VhsHandler"),t.options_&&t.options_.playerId){const n=L.getPlayer(t.options_.playerId);this.player_=n}if(this.tech_=t,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&t.overrideNativeAudioTracks&&t.overrideNativeVideoTracks)t.overrideNativeAudioTracks(!0),t.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(t.featuresNativeVideoTracks||t.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(se(),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],n=>{const r=se().fullscreenElement||se().webkitFullscreenElement||se().mozFullScreenElement||se().msFullscreenElement;r&&r.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()}),this.on(this.tech_,"seeking",function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())}),this.on(this.tech_,"error",function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()}),this.on(this.tech_,"play",this.play)}setOptions_(e={}){if(this.options_=tt(this.options_,e),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.usePlayerObjectFit=this.options_.usePlayerObjectFit||!1,this.options_.useBandwidthFromLocalStorage=typeof this.source_.useBandwidthFromLocalStorage<"u"?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||
vendor: 8,716 bytes, line 1
1!1,this.options_.useNetworkInformationApi=!(typeof this.options_.useNetworkInformationApi<"u")||this.options_.useNetworkInformationApi,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=!1!==this.options_.llhls,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,"number"!=typeof this.options_.playlistExclusionDuration&&(this.options_.playlistExclusionDuration=60),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){const i=Ih();i&&i.bandwidth&&(this.options_.bandwidth=i.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),i&&i.throughput&&(this.options_.throughput=i.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=It.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===It.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","usePlayerObjectFit","customPixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(i=>{typeof this.source_[i]<"u"&&(this.options_[i]=this.source_[i])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio,this.usePlayerObjectFit=this.options_.usePlayerObjectFit;const t=this.options_.customPixelRatio;"number"==typeof t&&t>=0&&(this.customPixelRatio=t)}setOptions(e={}){this.setOptions_(e)}src(e,t){if(!e)return;this.setOptions_(),this.options_.src=(s=>0===s.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(s.substring(s.indexOf(",")+1)):s)(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=bt,this.options_.sourceType=Ln(t),this.options_.seekTo=r=>{this.tech_.setCurrentTime(r)},this.options_.player_=this.player_,this.playlistController_=new jv(this.options_);const i=tt({liveRangeSafeTimeDelta:Li},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new Bv(i),this.attachStreamingEventListeners_(),this.playlistController_.on("error",()=>{const r=L.players[this.tech_.options_.playerId];let a=this.playlistController_.error;"object"!=typeof a||a.code?"string"==typeof a&&(a={message:a,code:3}):a.code=3,r.error(a)});const n=this.options_.bufferBasedABR?bt.movingAverageBandwidthSelector(.55):bt.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):n.bind(this),this.playlistController_.selectInitialPlaylist=bt.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(r){this.playlistController_.selectPlaylist=r.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(r){this.playlistController_.mainSegmentLoader_.throughput.rate=r,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let r=this.playlistController_.mainSegmentLoader_.bandwidth;const a=C().navigator.connection||C().navigator.mozConnection||C().navigator.webkitConnection,l=1e7;if(this.options_.useNetworkInformationApi&&a){const h=1e3*a.downlink*1e3;r=h>=l&&r>=l?Math.max(r,h):h}return r},set(r){this.playlistController_.mainSegmentLoader_.bandwidth=r,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){let a;return a=this.throughput>0?1/this.throughput:0,Math.floor(1/(1/(this.bandwidth||1)+a))},set(){L.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>Ds(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>Ds(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",()=>{this.options_.useBandwidthFromLocalStorage&&(s=>{if(!C().localStorage)return!1;let e=Ih();e=e?tt(e,s):s;try{C().localStorage.setItem(Dh,JSON.stringify(e))}catch{return!1}})({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{!function(s){s.representations=()=>{const e=s.playlistController_.main(),t=sr(e)?s.playlistController_.getAudioTrackPlaylists_():e.playlists;return t?t.filter(i=>!fl(i)).map((i,n)=>new Rv(s,i,i.id)):[]}}(this)}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",()=>{this.setupEme_()}),this.on(this.playlistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.playlistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=C().URL.createObjectURL(this.playlistController_.mediaSource),(L.browser.IS_ANY_SAFARI||L.browser.IS_IOS)&&this.options_.overrideNative&&"hls"===this.options_.sourceType&&"function"==typeof this.tech_.addSourceElement?(this.tech_.addSourceElement(this.mediaSourceUrl_),this.tech_.addSourceElement(this.source_.src)):this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),(({player:s,sourceKeySystems:e,audioMedia:t,mainPlaylists:i})=>{if(!s.eme.initializeMediaKeys)return Promise.resolve();const r=((s,e)=>s.reduce((t,i)=>{if(!i.contentProtection)return t;const n=e.reduce((r,a)=>{const l=i.contentProtection[a];return l&&l.pssh&&(r[a]={pssh:l.pssh}),r},{});return Object.keys(n).length&&t.push(n),t},[]))(t?i.concat([t]):i,Object.keys(e)),a=[],l=[];return r.forEach(h=>{l.push(new Promise((m,v)=>{s.tech_.one("keysessioncreated",m)})),a.push(new Promise((m,v)=>{s.eme.initializeMediaKeys({keySystems:h},y=>{y?v(y):m()})}))}),Promise.race([Promise.all(a),Promise.race(l)])})({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.main.playlists}).then(()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()}).catch(t=>{this.logger_("error while creating EME key session",t),this.player_.error({message:"Failed to initialize media ke
1ys for EME",code:3})})}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,t=(({player:s,sourceKeySystems:e,media:t,audioMedia:i})=>{const n=((s,e,t)=>{if(!s)return s;let i={};e&&e.attributes&&e.attributes.CODECS&&(i=nr(wt(e.attributes.CODECS))),t&&t.attributes&&t.attributes.CODECS&&(i.audio=t.attributes.CODECS);const n=wi(i.video),r=wi(i.audio),a={};for(const l in s)a[l]={},r&&(a[l].audioContentType=r),n&&(a[l].videoContentType=n),e.contentProtection&&e.contentProtection[l]&&e.contentProtection[l].pssh&&(a[l].pssh=e.contentProtection[l].pssh),"string"==typeof s[l]&&(a[l].url=s[l]);return tt(s,a)})(e,t,i);return!(!n||(s.currentSource().keySystems=n,n&&!s.eme&&(L.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),1)))})({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});this.player_.tech_.on("keystatuschange",i=>{this.playlistController_.updatePlaylistByKeyStatus(i.keyId,i.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),t?this.createKeySessions_():this.playlistController_.sourceUpdater_.initializedEme()}setupQualityLevels_(){const e=L.players[this.tech_.options_.playerId];
vendor: 6,321 bytes, line 1
1!e||!e.qualityLevels||this.qualityLevels_||(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{!function(s,e){e.representations().forEach(t=>{s.addQualityLevel(t)}),kh(s,e.playlists)}(this.qualityLevels_,this)}),this.playlists.on("mediachange",()=>{kh(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":"3.17.4","mux.js":"7.1.0","mpd-parser":"1.3.1","m3u8-parser":"7.2.0","aes-decrypter":"4.0.2"}}version(){return this.constructor.version()}canChangeType(){return mh.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(e){this.playlistController_.setCurrentTime(e)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&C().URL.revokeObjectURL&&(C().URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,t){return(({playlist:s,time:e,callback:t})=>{if(!t)throw new Error("getProgramTime: callback must be provided");if(!s||void 0===e)return t({message:"getProgramTime: playlist and time must be provided"});const i=((s,e)=>{if(!e||!e.segments||0===e.segments.length)return null;let i,t=0;for(let r=0;r<e.segments.length&&(i=e.segments[r],t=i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:t+i.duration,!(s<=t));r++);const n=e.segments[e.segments.length-1];if(n.videoTimingInfo&&n.videoTimingInfo.transmuxedPresentationEnd<s)return null;if(s>t){if(s>t+.25*n.duration)return null;i=n}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:t-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}})(e,s);if(!i)return t({message:"valid programTime was not found"});if("estimate"===i.type)return t({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:i.estimatedStart});const n={mediaSeconds:e},r=((s,e)=>{if(!e.dateTimeObject)return null;const r=s-(e.videoTimingInfo.transmuxedPresentationStart+e.videoTimingInfo.transmuxerPrependedSeconds);return new Date(e.dateTimeObject.getTime()+1e3*r)})(e,i.segment);return r&&(n.programDateTime=r.toISOString()),t(null,n)})({playlist:this.playlistController_.media(),time:e,callback:t})}seekToProgramTime(e,t,i=!0,n=2){return Vd({programTime:e,playlist:this.playlistController_.media(),retryCount:n,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}setupXhrHooks_(){this.xhr.onRequest=e=>{Ph(this.xhr,e)},this.xhr.onResponse=e=>{Oh(this.xhr,e)},this.xhr.offRequest=e=>{Mh(this.xhr,e)},this.xhr.offResponse=e=>{jh(this.xhr,e)},this.player_.trigger("xhr-hooks-ready")}attachStreamingEventListeners_(){["seekablerangeschanged","bufferedrangeschanged","contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"].forEach(i=>{this.playlistController_.on(i,n=>{this.player_.trigger(Xe({},n))})}),["gapjumped","playedrangeschanged"].forEach(i=>{this.playbackWatcher_.on(i,n=>{this.player_.trigger(Xe({},n))})})}}const Ea={name:"videojs-http-streaming",VERSION:"3.17.4",canHandleSource(s,e={}){const t=tt(L.options,e);return!(!t.vhs.experimentalUseMMS&&!Di("avc1.4d400d,mp4a.40.2",!1))&&Ea.canPlayType(s.type,t)},handleSource(s,e,t={}){const i=tt(L.options,t);return e.vhs=new Lh(s,e,i),e.vhs.xhr=Rd(),e.vhs.setupXhrHooks_(),e.vhs.src(s.src,s.type),e.vhs},canPlayType(s,e){const t=Ln(s);if(!t)return"";const i=Ea.getOverrideNative(e);return!bt.supportsTypeNatively(t)||i?"maybe":""},getOverrideNative(s={}){const{vhs:e={}}=s,t=!(L.browser.IS_ANY_SAFARI||L.browser.IS_IOS),{overrideNative:i=t}=e;return i}};Di("avc1.4d400d,mp4a.40.2",!0)&&L.getTech("Html5").registerSourceHandler(Ea,0),L.VhsHandler=Lh,L.VhsSourceHandler=Ea,L.Vhs=bt,L.use||L.registerComponent("Vhs",bt),L.options.vhs=L.options.vhs||{},(!L.getPlugin||!L.getPlugin("reloadSourceOnError"))&&L.registerPlugin("reloadSourceOnError",function(s){Ah(this,s)});const Zv=JSON.parse('{"Play":"Wiedergabe","Pause":"Pause","Replay":"Erneut abspielen","Current Time":"Aktueller Zeitpunkt","Duration":"Dauer","Remaining Time":"Verbleibende Zeit","Stream Type":"Streamtyp","LIVE":"LIVE","Loaded":"Geladen","Progress":"Status","Fullscreen":"Vollbild","Exit Fullscreen":"Vollbildmodus beenden","Mute":"Stumm schalten","Unmute":"Ton einschalten","Playback Rate":"Wiedergabegeschwindigkeit","Subtitles":"Untertitel","subtitles off":"Untertitel aus","Captions":"Untertitel","captions off":"Untertitel aus","Chapters":"Kapitel","You aborted the media playback":"Sie haben die Videowiedergabe abgebrochen.","A network error caused the media download to fail part-way.":"Der Videodownload ist aufgrund eines Netzwerkfehlers fehlgeschlagen.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Das Video konnte nicht geladen werden, da entweder ein Server- oder Netzwerkfehler auftrat oder das Format nicht unterst\xfctzt wird.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Die Videowiedergabe wurde entweder wegen eines Problems mit einem besch\xe4digten Video oder wegen verwendeten Funktionen, die vom Browser nicht unterst\xfctzt werden, abgebrochen.","No compatible source was found for this media.":"F\xfcr dieses Video wurde keine kompatible Quelle gefunden.","Play Video":"Video abspielen","Close":"Schlie\xdfen","Modal Window":"Modales Fenster","This is a modal window":"Dies ist ein modales Fenster","This modal can be closed by pressing the Escape key or activating the close button.":"Durch Dr\xfccken der Esc-Taste bzw. Bet\xe4tigung der Schaltfl\xe4che \\"Schlie\xdfen\\" wird dieses modale Fenster geschlossen.",", opens captions settings dialog":", \xf6ffnet Einstellungen f\xfcr Untertitel",", opens subtitles settings dialog":", \xf6ffnet Einstellungen f\xfcr Untertitel",", selected":", ausgew\xe4hlt","captions settings":"Untertiteleinstellungen","subtitles settings":"Untertiteleinstellungen","de
1scriptions settings":"Einstellungen f\xfcr Beschreibungen","Close Modal Dialog":"Modales Fenster schlie\xdfen","Descriptions":"Beschreibungen","descriptions off":"Beschreibungen aus","The media is encrypted and we do not have the keys to decrypt it.":"Die Entschl\xfcsselungsschl\xfcssel f\xfcr den verschl\xfcsselten Medieninhalt sind nicht verf\xfcgbar.",", opens descriptions settings dialog":", \xf6ffnet Einstellungen f\xfcr Beschreibungen","Audio Track":"Tonspur","Text":"Schrift","White":"Wei\xdf","Black":"Schwarz","Red":"Rot","Green":"Gr\xfcn","Blue":"Blau","Yellow":"Gelb","Magenta":"Magenta","Cyan":"T\xfcrkis","Background":"Hintergrund","Window":"Fenster","Transparent":"Durchsichtig","Semi-Transparent":"Halbdurchsichtig","Opaque":"Undurchsichtig","Font Size":"Schriftgr\xf6\xdfe","Text Edge Style":"Textkantenstil","None":"Kein","Raised":"Erhoben","Depressed":"Gedr\xfcckt","Uniform":"Uniform","Drop shadow":"Schlagschatten","Font Family":"Schriftfamilie","Proportional Sans-Serif":"Proportionale Sans-Serif","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Serif":"Proportionale Serif","Monospace Serif":"Monospace Serif","Casual":"Zwanglos","Script":"Schreibschrift","Small Caps":"Small-Caps","Reset":"Zur\xfccksetzen","restore all settings to the default values":"Alle Einstellungen auf die Standardwerte zur\xfccksetzen","Done":"Fertig","Caption Settings Dialog":"Einstellungsdialog f\xfcr Untertitel","Beginning of dialog window. Escape will cancel and close the window.":"Anfang des Dialogfensters. Esc bricht ab und schlie\xdft das Fenster.","End of dialog window.":"Ende des Dialogfensters.","Audio Player":"Audio-Player","Video Player":"Video-Player","Progress Bar":"Fortschrittsbalken","progress bar timing: currentTime={1} duration={2}":"{1} von {2}","Volume Level":"Lautst\xe4rke","{1} is loading.":"{1} wird geladen.","Seek to live, currently behind live":"Zur Live-\xdcbertragung wechseln. Aktuell wird es nicht live abgespielt.","Seek to live, currently playing live":"Zur Live-\xdcbertragung wechseln. Es wird aktuell live abgespielt.","Exit Picture-in-Picture":"Bild-im-Bild-Modus beenden","Picture-in-Picture":"Bild-im-Bild-Modus","No content":"Kein Inhalt","Color":"Farbe","Opacity":"Deckkraft","Text Background":"Texthintergrund","Caption Area Background":"Hintergrund des Untertitelbereichs","Playing in Picture-in-Picture":"Wird im Bild-im-Bild-Modus wiedergegeben","Skip forward {1} seconds":"{1} Sekunden vorw\xe4rts","Skip backward {1} seconds":"{1} Sekunden zur\xfcck"}');let Rh=(()=>{class s{constructor(){this.videoNotSupportedMessage="Ihr Browser unterst\xfctzt leider keine eingebetteten Videos.",this.avPlayerTracksService=(0,N.WQX)(De,{self:!0}),this.player=(0,N.vPA)(void 0),this.playerOptions={fluid:!0,textTrackSettings:!1,sources:[],language:"de",controlBar:{pictureInPictureToggle:!1},enableSmoothSeeking:!0,notSupportedMessage:this.videoNotSupportedMessage,preload:"none",playsinline:!0},L.addLanguage("de",Zv)}createPlayer(t){const{src:i,element:n,captions:r,audioOnly:a,isSafari:l}=t;if(!n)throw new Error("Could not create Player. Element is missing");const h=L(n.nativeElement,{...this.playerOptions,audioOnly:a});h.src(this.createVideoSrc(i)),h&&(l&&r&&(h.on("loadeddata",()=>{this.avPlayerTracksService.getRemoteTextTrack(h,r).mode="disabled"}),h.on("play",this.avPlayerTracksService.handleCueChange.bind(this.avPlayerTracksService,h,r))),r?.src.length&&h.on("ready",()=>{h.addRemoteTextTrack(r)}),this.player.set(h))}getFallBackCues(t){var i=this;return(0,Be.A)(function*(){return yield i.avPlayerTracksService.loadAndParseDescriptions(t)})()}createVideoSrc(t){return[{src:t,type:"video/mp4"},{src:t,type:"video/webm"},{src:t,type:"audio/mp3"},{src:t,type:"audio/wav"},{src:t,type:"audio/aac"},{src:t}]}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275prov=N.jDH({token:s,factory:s.\u0275fac})}}return s})();const e_=["videoAudio"];function t_(s,e){if(1&s){const t=p.RV6();p.j41(0,"button",4),p.bIt("click",function(){N.eBV(t);const n=p.XpG();return N.Njj(n.toggleAudioDescription())}),p.nrm(1,"kf-icon",5),p.j41(2,"span"),p.EFF(3),p.k0s()()}if(2&s){const t=p.XpG();p.R7$(3),p.JRh(t.computedLinkBtnLabel())}}let i_=(()=>{class s{constructor(){this.posterSrc=M.hFB.required(),this.videoAudioSrc=M.hFB.required(),this.audioDescriptionSrc=M.hFB.required(),this.captionTrackAttr=M.hFB.required(),this.transcriptTrackAttr=M.hFB.required(),this.isSafari=M.hFB.required(),this.audioTrackOption=(0,M.hFB)(),this.title=M.hFB.required(),this.audioOnly=(0,M.hFB)(!1),this.audioDescButtonLabel=(0,M.hFB)("Audiobeschreibung aktivieren"),this.audioDescActivated=(0,N.vPA)(!1),this.videoAudioElRef=(0,M.ebz)("videoAudio"),this.computedLinkBtnLabel=(0,F.EW)(()=>this.audioDescActivated()?"Audiobeschreibung deaktivieren":"Audiobeschreibung aktivieren"),this.videoPlayerService=(0,N.WQX)(Rh),this.player=this.videoPlayerService.player,this.playerTranscriptReady=(0,M.CGW)(),this.audioDescActive=(0,M.CGW)(),this._renderer=(0,N.WQX)(p.sFG),this.playerEffect=(0,N.QZP)(()=>
1{if(this.videoAudioSrc()||this.videoAudioElRef()){const t={src:this.videoAudioSrc(),element:this.videoAudioElRef(),audioOnly:this.audioOnly(),isSafari:this.isSafari(),captions:this.captionTrackAttr()};this.videoPlayerService.createPlayer(t),this.player()&&(this.transcriptTrackAttr()?.src?.length&&this.getFallBackCues(this.transcriptTrackAttr().src).then(i=>{this.playerTranscriptReady.emit(i)}),(this.audioOnly()||0===this.captionTrackAttr()?.src.length)&&(this.audioDescActivated.set(!1),this.toggleSubtitles(!1)))}})}getFallBackCues(t){var i=this;return(0,Be.A)(function*(){try{return yield i.videoPlayerService.getFallBackCues(t)}catch(n){i.handleError(n)}return[]})()}toggleAudioDescription(){const t=this.audioDescActivated()?this.videoAudioSrc():this.audioDescriptionSrc();this.videoPlayerService.player()?.src(this.videoPlayerService.createVideoSrc(t)),this.videoPlayerService.player()?.currentTime(1),this.audioDescActivated.set(!this.audioDescActivated()),this.audioDescActive.emit(this.audioDescActivated()),this.audioDescActivated()||this.videoPlayerService.player()?.addRemoteTextTrack(this.captionTrackAttr()),this.toggleSubtitles(this.audioDescActivated())}handleError(t){const i=this._renderer.createElement("div");this._renderer.setAttribute(i,"id","vttError"),this._renderer.setAttribute(i,"data-vtt-error","true"),this._renderer.setAttribute(i,"aria-hidden","true"),this._renderer.setStyle(i,"visibility","hidden"),i.textContent=t.message??"Transcript could not be created",this._renderer.appendChild(this.videoAudioElRef()?.nativeElement,i)}toggleSubtitles(t){const i=this.videoPlayerService.player();if(i){const r=i.getChild("controlBar").getChild("SubsCapsButton");r&&(t?r.hide():r.show())}}ngOnDestroy(){this.player()?.dispose()}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275cmp=p.VBU({type:s,selectors:[["cms-video-audio-player"]],viewQuery:function(i,n){1&i&&p.wEZ(n.videoAudioElRef,e_,5),2&i&&p.NyB()},inputs:{posterSrc:[1,"posterSrc"],videoAudioSrc:[1,"videoAudioSrc"],audioDescriptionSrc:[1,"audioDescriptionSrc"],captionTrackAttr:[1,"captionTrackAttr"],transcriptTrackAttr:[1,"transcriptTrackAttr"],isSafari:[1,"isSafari"],audioTrackOption:[1,"audioTrackOption"],title:[1,"title"],audioOnly:[1,"audioOnly"],audioDescButtonLabel:[1,"audioDescButtonLabel"]},outputs:{playerTranscriptReady:"playerTranscriptReady",audioDescActive:"audioDescActive"},features:[p.Jv_([Rh,De])],decls:4,vars:4,consts:[["videoAudio",""],["data-vjs-player",""],["controls","","crossorigin","anonymous",1,"video-js",3,"poster","width"],["cmsButtonTheme","","data-automation-id","controls-button-audio-description","matButton","","type","button"],["cmsButtonTheme","","data-automation-id","controls-button-audio-description","matButton","","type","button",3,"click"],["name","ic_audiowelle_24"]],template:function(i,n){1&i&&(p.j41(0,"div",1),p.nrm(1,"video",2,0),p.k0s(),p.nVh(3,t_,4,1,"button",3)),2&i&&(p.R7$(),p.Y8G("poster",n.posterSrc())("width",600),p.BMQ("title",n.title()),p.R7$(2),p.vxM(!n.audioOnly()&&n.audioDescriptionSrc().length?3:-1))},dependencies:[ct.$z,B.KY,oe.Do],styles:['.vjs-svg-icon{display:inline-block;background-repeat:no-repeat;background-position:center;fill:currentColor;height:1.8em;width:1.8em}.vjs-svg-icon:before{content:none!important}.vjs-svg-icon:hover,.vjs-control:focus .vjs-svg-icon{filter:drop-shadow(0 0 .25em #fff)}.vjs-modal-dialog .vjs-modal-dialog-content,.video-js .vjs-modal-dialog,.vjs-button>.vjs-icon-placeholder:before,.video-js .vjs-big-play-button .vjs-icon-placeholder:before{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-button>.vjs-icon-placeholder:before,.video-js .vjs-big-play-button .vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;src:url(
vendor: 7,192 bytes, line 1
1data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABTsAAsAAAAAIpAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV32Y21hcAAAAYQAAAEJAAAD5p42+VxnbHlmAAACkAAADtIAABckI4l972hlYWQAABFkAAAAKwAAADYsvIjpaGhlYQAAEZAAAAAdAAAAJA+RCL1obXR4AAARsAAAABcAAAC8Q2YAAGxvY2EAABHIAAAAYAAAAGB7CIGGbWF4cAAAEigAAAAfAAAAIAFAAI9uYW1lAAASSAAAASUAAAIK1cf1oHBvc3QAABNwAAABfAAAAnXdFqh1eJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGR7yDiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGPHcRdyA4RZgQRADaGCyYAAHic7dPXbcMwAEXRK1vuvffem749XAbKV3bjBA6fXsaIgMMLEWoQJaAEFKNnlELyQ4K27zib5PNF6vl8yld+TKr5kH0+cUw0xv00Hwvx2DResUyFKrV4XoMmLdp06NKjz4AhI8ZMmDJjzoIlK9Zs2LJjz4EjJ85cuHLjziPe/0UWL17mf2tqKLz/9jK9f8tXpGCoRdPKhtS0RqFkWvVQNtSKoVYNtWaoddPXEBqG2jQ9XWgZattQO4baNdSeofYNdWCoQ0MdGerYUCeGOjXUmaHODXVhqEtDXRnq2lA3hro11J2h7g31YKhHQz0Z6tlQL4Z6NdSbod4N9WGoT9MfHF6GmhnZLxyDcRMAAAB4nJ1YC1hU17U+a5/HMA4iA3NmVBDmoQwP5TFnHlFeA4gYiUFRQINoSCBAyK3G2yi+0aipYtFcHYo2xsb4NiY3+VrNxSaX5uvt495ozNdoYoxmem2/L8HGpLc+InB279pnhlGr5mvL4eyz99nrrL32eu1/DQcc/okdYgdHOA6MQKp4r9gx0EcMHMezOalVasW5BM7NcXoSb9fFgE6KtSSBxWz1FYDPG+vMBGcKb9cebu2VS5s2aaTkCvRSf6C7Y+Ppibm5E09v7IDs2/3uZQtbD0zIyppwoHXh/93ukmyYgdePNRp65p5v+3v/9otQl2O7wP34cT88p8Md2YxpYLQZoRcy6FlSBRnwnGAe6BPMSCZo+7NJVqS0cE4uHendzhSnbPH6TDqL1+Nme5LZXkCHnGyoH0kne30WH+gswhm3q+pt/mTas9NLS64GnjmSlTPw0wVQT/ewRaBgxtydy3cuUB9/6SW+vb5yRvr+t0eOfPKJZ/9t3+4tL7xj32Xd3thCxi+ge6ifdsAN+l5+wi5HQ/cCoeull1AszS7CUfEcJzK7sKWJAdJhCd0sPM4+EY7QDm5ov08hXRQXE5bf6PV5Q5+IjW7X7Nku92Ask4l2hCRRD6TPqISiCJeQna3SCFwrhrNzXHzo4yFevBwxpzxk8WCIIfkvVEKVy32SbT8n68gzgaslpaiO2zIGIyuSb7RNf9HSuN26y/7OC1tgEmpiyA6aD4qcgTOiLThwGG0eB694FI8NHLLN6OBlRVaMxNAFS4JdXUG6mW8PwpKuYLCLXKGbu8iwYNdgO06Sn3Th+/vyZAxs8Ro30DjHe9gy8Fywi24OMm7Qyzh3MTZVOMYhLBnoC+J79lpTUyQmorjhnMwlcQ5uPEYGpDjsOkkH49BjQLQBqs3jFtFdJNlksYmoQFDArLh8Xh+Qd6Ghcsb6FUuehDi+U/lqD71K/qiegeV1imcwjl7ExwiSrf4BZyCujV6cVcFo6VX+G9IcPyFjJnUufbU/jzrL1X99as36reXl8K32nFaOr+E8jWJEcJ55DpMVfSMe95/AJaOsGBH2GJCNpiRQbK4C8BjdmQA22QY2j03Em13i2YHqtNLU1NI04Yj2HJgA6fQc6VPNpA/D+Ryks554NnVy2mB72uRUfPLsqR4N0LOBQKArwJYO+5W2fgZX8oC1HR6HjNaQTVIG2FPwnTcXXGZZfNB7TE6pTKZUwaw91XWLAoFFGcnB5PHjsckgBjbWutrL+0h5Y1xw3DRGDumsnXb3MJwXrJIN5U7m0rgJ3yG5w4he5ckFG4pmNEkOm0/xOO4r4yL87wqtQM+hiJIVp+6iG2wPBKD35ElGkDx+UfC2v1mFG1o+M3AjNFty8biKMXwzyxnZLds8wYD2BxmCPHAldPOeLsy/0BugftYhVYFAhO8SqQ0j3oK7dHJZnI/jxmUS4onlxskSF8thmvNZjIrRZwEPxr0lBuLRuz3oy/FOHCsxwOPYh2M+e9u3J5pgPYz9gp6G7C9m0A11F9ddqKMfV+4sbq45/YspOysXvT+3pdFdYNg2fHbW8Dz301MqDVuGrz0Fuh0YMW8mddrpqzST7rV9BcvqPoNvadRndWp0p8HvbiqrFj5yFQ/vNFSXDpxpLEFWp+DcrF3FT1afWshFcmCfeAMjEvO65i0Y6XijQfSRPWx3TV/Df7Km3E1l+kLt56s/rwVzuRusNMhudznkwdLaS+QNdeal2jDPP4l9qHc98vTYZOSkxzD+njBWVWjFPKgipx6DkWvXQiW8OYcewVHE5yukinDMcfGgc0opDltYKDxIGBedkzc6jSfE7tlvESCDFUw0Hx0opS+U0lHCxNottbNWSxX9zZVvEhKWUSyBpaXwBc2a98M6UqPeXAs/GDon8Ax7hsthO8cM5HU7Ad0UvRR9lHmtyQKZ4MAe814X5h9MSUkQmhf96eVJ6p90OjIiqSIjvykvr2l5U55O/fPQKD+jIomYpNyGJQ25uQ2kIikRfAmuBHCPsWqkSDEqgZ5KDI2sifS/R43MbZg0idFHbCPNxXxZws1ACVE6hAhOdJwRkJLFBLPZpRGYJ50pko6XzMkgmSx40ljik6AQcKhFnLcQE6rF7PXFe1Ocoj0T3AXgSgJTDIhHRfHlYZKuSzc6uievOJGXY+i5GJkkTp7UM3y0LqATDbtFcbdBxO7o4T25JYlEjoH0uynUh8rapkxp62QN70svSF+hT4gGPlovlmcm/ComLi7mV4kTykV9NFWjE/QrwgQ4uIcAP0rQF4VZYRP2o3PhHHzfPMJj9Ir+uzKUlrH49ntT18AVvj1sc3YGjUT/Mt2Dxawa8ArcA7bCQIpvfwAYu22vEG/No/5RvPdA7g+AelLrPwzy+LtkLPhnpIxH14m4EYq8eeMHbPEPNm6G7Nv9B4jcFPZ8bJj0SEjP3MPgQdKTqqEoy2v6G32P/Y6dxOv04AxnoAeq+GILvUavtYCBXm+BaIhuodcfrN5B/V2EYMCPh+SxavjGyPwV0x4CJgUPGT0mQaODGBACIJZGsMXwAD0LGXx7l3CdAcKMIKI+f5CepWeD0BvyU/GcdBxPF8SwejC6LGZmAURFdsSWKR5HyHld2kbdIZO1Ixx+bnnzU7n5+blPNV9jnUDWhP2tC68tbN3PVIldsQPxSAcSpjOav7Q05uXn5zW2LLvDXn9B6syscPy9iDLEMmSrJz6nYuWMipukjM0AH8JkGS+XFyMRkzSCH7KD/hwm172SAyZYumHlefr5AddrtA0O0TnwaVZxcRY9Bfukn9Gf05N1r9DV9MoBsJ1f+ZrqUvtPHizJAntWybv7hmqLt6QLuK6ZS9Fqi1jO5rDoWPZXXII5Tgajg53cIXCjDCGIcYrRIY2n6+mXOa/W0bdhau3ryiEYe2FV/5oeaIYK/5w5frCyll6/cYO8DiNhw6t1MBWmznt91QX62UF1N7l0eHBZTRGpKaqpKVIPF9UcIzmReud9TSY75+K899GHbBu6wjoR7RKKZVYiYxSPf5/2wJT5e3NAhmUbVn5KLx1Ujg0+BGvpAIh0DezInTkzF37KVocxrKU3r1+XLtAe2lO3l66kfQfB/unKY+q8N375Ru8bc4pJXfEcESU95q+p8ZNZRTWH1d9FzvUdYXk5rLkcdkEisoKKVHQW/b3GEx6tPaYcoJfOr9wAbSBnv1IHpep0OExr4LPMkpJM+j7sly7UHkOzXjoAZljHCGiyegtNlwljM0v+c19ET9Pvst09a2Mtgcf5/ZSzYO5h1156+eyydfAsxGa9XAuF6vzjh6CssLq6ECysperXX0sX5h5ZdpZe3guxsGIPEtHk/aqXX1hVqP5HYVVVISkrrNqvXorIc+5Ou91Hnr/LcD2afi6eX7UBloOcs7cOpqgGaNfs1g7bNbs9z6wASaylN69d0/TFTIz6Ws8+oGV3mE2612wRTHKcVUbhjKadebloMc+dyXgMVtVK6BwMB/+mVW09igdRBWaRtNQX59d/VD//xdQ0TCiYNj1KT9sq6Wdu5WTbqk3qDXyDaLa1fv621LS01G3z61sD6lH8lAxDLicV921s6Bf92JOYvzNYCL1khbqBXEFUzC521N5NyzNaQIWhjyFyDoBIVrAjmv2UEaLlI+c6zw1jmVIPLLLZZUTj6GxGHW+mq1tgHXR2D85p4Q934+jLbtjVLcyCdS10NVzpHqxp4Q/hK7WopY/NRGx9HGsPGdFjOjcpjBnGYMVqY/4eqT5khWEHWUup2A/pTw7pdWgsWft7ETUERL96nRg0HNFPmCYba6pylECaExX89A9WLUOVB4oKLu/o1oqSYHCgLzBUlAz8hNFDRpeSU1XT+LRmDUgPaKbYdHDn9suF/tu13nHJij0N97LfS0QmqONuyONk7zvUI6Qa0pF9f2+oABL92AT6e0U//z9YqAiWtJLU1JK0gS+1aacwamiNqK067u9ZQ8f1d4qLodMzz3uL89Z68V/Hnr++hXWUuHgw8dfi972PeTyPefu3aNNucemQ74qFuIaJnVkOu4Q+yjuwmmC1FqZpl1i4uzoPxjkpPf3Xv545tl26Rr+dOvUd+omqJzch9dOeU7f10Y64nMcKK137DccIZq2WdXtdZjbEoLSzHwiMtrjYLDxpHQW8gjMX6XFYAE2zSWVD04EGYSs9MbO6sEo20BMEAB4mpvSypsKjZ4Stgzb+c3A9/MQT2+vrBy+qvyFxLUtLlSRF/Ri2wjfZ2dus2Q8lXx4608/jnqK5OOap6NY2PSjYYnECCjiEeLJll/pbmqfeIK+ps3+MxrlEhqmTPipVP7kqlF4VhpEb6r+Q7YOJg38kJ9SHBf3NBl6+9YchfbUjb5ahLSzUM3kPHmwFAsZ5rpai0S7E5xWzZ1j+fW7zsUWP2g5NXTw52ySCTrgG0+lbw60l2Y/CB185CoA8NK+tbRKxfjy6pm5hzQRRR+cMqv1Jbiw6STivtEvt3DRcy0QEh92JlUGo2PG4tSKHl00YD6xc8CK+YPYyy3io2lN8BcSjKRzrIV6ypOAobqxViJPaT9M9Hy5szY33mp7OX/Zu89L/7Ww5vqY2Y8b0pKgoiUhG5cPDPzq8qTV/WkzUOIvXVVA96kmjcBrr3HrYC/Wn+fYP6Z7T1rqy3zknbvqma/FvVk96fNXGkuaXrdHW5JGSxZT/2I/O73v+yNWafMdzc5NdxYurHs6h86e01sLKLz9EBrg+x36rxAaED7hRnAMx7Vzu+9wabh3zG8XLQjx0ablUJzmxdErxYT3kzQSd0SSafVqF5PXgpp0OyYJ1EyNHpGUZmvK575ySzd85JSqF7IBzSAbMM04+MbE58xF3/njXOGecSaermlw2y9PsSQdytLJVr8t+wg+rR8cZYoeNxVIzNdk3Bngi8U5LAlgTFoQnzJCa5EsCgYhCaGL+qPj7TdhG31p9tej3R04N//PXxNwJvyUqwaJqRPJY98TJ5TPndmflRAkAhBfe46sfKW5wizSge08Xb7Ca/GUVs55trngkKkrUS2WPzKttaaqq+idmahugkY+W6fN0I6i3gPt/x88U4wAAeJxjYGRgYADiGU9YXsXz23xl4GZnAIFH7fO+IdMc/WBxDgYmEAUASbMKwAB4nGNgZGBgZwABjj4Ghv//OfoZGBlQgT4ARicDZAAAAHicY2BgYGAfxJijD8Fmu4EqBwCSpgKpAAAAAAAADgBoAH4AzADgAQIBQgFsAZgB7gIuAooC0AL8A2IDjAOoA+AEMASwBNoFCAVaBcAGCAYuBnAGrAb2B04HigfSCCoIcAiGCJwIyAkkCVYJiAmsCfIKIApWCsQLknicY2BkYGDQZ2hmYGcAASYg5gJCBob/YD4DABqrAdAAeJxdkE1qg0AYhl8Tk9AIoVDaVSmzahcF87PMARLIMoFAl0ZHY1BHdBJIT9AT9AQ9RQ9Qeqy+yteNMzDzfM+88w0K4BY/cNAMB6N2bUaPPBLukybCLvleeAAPj8JD+hfhMV7hC3u4wxs7OO4NzQSZcI/8Ltwnfwi75E/hAR7wJTyk/xYeY49fYQ/PztM+jbTZ7LY6OWdBJdX/pqs6NYWa+zMxa13oKrA6Uoerqi/JwtpYxZXJ1coUVmeZUWVlTjq0/tHacjmdxuL90OR8O0UEDYMNdtiSEpz5XQGqzlm30kzUdAYFFOb8R7NOZk0q2lwAyz1i7oAr1xoXvrOgtYhZx8wY5KRV269JZ5yGpmzPTjQhvY9je6vEElPOuJP3mWKnP5M3V+YAAAB4nG2ReVPbMBDF/ULi2EkDBFqO3gdHLxUzDB9IkdexBllydRD49ihO3Ckz7B/a31utZnafkkGyiXnyclxhgB0MMUKKMTLkmGCKV5hhF3vYxxwHOMRrvMERjnGCU7zFO7zHB3zEJ3zGF3zFN5zhHBe4xHf8wE/8wm8w/MEVimTYKv44XR9MSCsUjVoeHE3vjQoNsSZ4mmxZmVWPjSz7jlou6/0qKOWEJdKMtCe793/hQfqxa6XWZHMXFl56RS4TvPXSaDeoy0zUUZB109KstDK8lHo5q6Qi1hcOnqkImubPS6aqRq7mlnaEWabub4iYblba3SRmgldS0+FWdhNtt04F14JUaqkl7tcpOpJtErvNt3Bd9HRT5JWxK25Ldjvp6br4hzfFiIdSmlzTg2fSUzNrLd1LE1ynxq4OVaVoKLjzJ60UPtj1RKzHzsbjly6inVnFBS2MucviPncU7Rr7lfTxRepDs1A2j3ZHRc7PuzFYSfE3ZOd4kjwBy227hA==
1) format("woff");font-weight:400;font-style:normal}.vjs-icon-play,.video-js .vjs-play-control .vjs-icon-placeholder,.video-js .vjs-big-play-button .vjs-icon-placeholder:before{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.video-js .vjs-big-play-button .vjs-icon-placeholder:before{content:"\\f101"}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:"\\f102"}.vjs-icon-pause,.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pause:before,.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before{content:"\\f103"}.vjs-icon-volume-mute,.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-volume-mute:before,.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before{content:"\\f104"}.vjs-icon-volume-low,.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-volume-low:before,.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before{content:"\\f105"}.vjs-icon-volume-mid,.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-volume-mid:before,.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before{content:"\\f106"}.vjs-icon-volume-high,.video-js .vjs-mute-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-volume-high:before,.video-js .vjs-mute-control .vjs-icon-placeholder:before{content:"\\f107"}.vjs-icon-fullscreen-enter,.video-js .vjs-fullscreen-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-fullscreen-enter:before,.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before{content:"\\f108"}.vjs-icon-fullscreen-exit,.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-fullscreen-exit:before,.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before{content:"\\f109"}.vjs-icon-spinner{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-spinner:before{content:"\\f10a"}.vjs-icon-subtitles,.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}\n','.vjs-icon-subtitles:before,.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before{content:"\\f10b"}.vjs-icon-captions,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-captions-button .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-captions:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-captions-button .vjs-icon-placeholder:before{content:"\\f10c"}.vjs-icon-hd{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-hd:before{content:"\\f10d"}.vjs-icon-chapters,.video-js .vjs-chapters-button .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-chapters:before,.video-js .vjs-chapters-button .vjs-icon-placeholder:before{content:"\\f10e"}.vjs-icon-downloading{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-downloading:before{content:"\\f10f"}.vjs-icon-file-download{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-file-download:before{content:"\\f110"}.vjs-icon-file-download-done{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-file-download-done:before{content:"\\f111"}.vjs-icon-file-download-off{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-file-download-off:before{content:"\\f112"}
1.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:"\\f113"}.vjs-icon-cog{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cog:before{content:"\\f114"}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:"\\f115"}.vjs-icon-circle,.vjs-seek-to-live-control .vjs-icon-placeholder,.video-js .vjs-volume-level,.video-js .vjs-play-progress{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle:before,.vjs-seek-to-live-control .vjs-icon-placeholder:before,.video-js .vjs-volume-level:before,.video-js .vjs-play-progress:before{content:"\\f116"}.vjs-icon-circle-outline{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-outline:before{content:"\\f117"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-inner-circle:before{content:"\\f118"}\n','.vjs-icon-cancel,.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cancel:before,.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before{content:"\\f119"}.vjs-icon-repeat{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-repeat:before{content:"\\f11a"}.vjs-icon-replay,.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-replay:before,.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before{content:"\\f11b"}.vjs-icon-replay-5,.video-js .vjs-skip-backward-5 .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-replay-5:before,.video-js .vjs-skip-backward-5 .vjs-icon-placeholder:before{content:"\\f11c"}.vjs-icon-replay-10,.video-js .vjs-skip-backward-10 .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-replay-10:before,.video-js .vjs-skip-backward-10 .vjs-icon-placeholder:before{content:"\\f11d"}.vjs-icon-replay-30,.video-js .vjs-skip-backward-30 .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-replay-30:before,.video-js .vjs-skip-backward-30 .vjs-icon-placeholder:before{content:"\\f11e"}.vjs-icon-forward-5,.video-js .vjs-skip-forward-5 .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-forward-5:before,.video-js .vjs-skip-forward-5 .vjs-icon-placeholder:before{content:"\\f11f"}.vjs-icon-forward-10,.video-js .vjs-skip-forward-10 .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-forward-10:before,.video-js .vjs-skip-forward-10 .vjs-icon-placeholder:before{content:"\\f120"}.vjs-icon-forward-30,.video-js .vjs-skip-forward-30 .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-forward-30:before,.video-js .vjs-skip-forward-30 .vjs-icon-placeholder:before{content:"\\f121"}.vjs-icon-audio,.video-js .vjs-audio-button .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-audio:before,.video-js .vjs-audio-button .vjs-icon-placeholder:before{content:"\\f122"}.vjs-icon-next-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-next-item:before{content:"\\f123"}.vjs-icon-previous-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-previous-item:before{content:"\\f124"}.vjs-icon-shuffle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-shuffle:before{content:"\\f125"}.vjs-icon-cast{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cast:before{content:"\\f126"}\n','.vjs-icon-picture-in-picture-enter,.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-picture-in-picture-enter:before,.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before{content:"\\f127"}.vjs-icon-picture-in-picture-exit,.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-picture-in-picture-exit:before,.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder:before{content:"\\f128"}.vjs-icon-facebook{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-facebook:before{content:"\\f129"}.vjs-icon-linkedin{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-linkedin:before{content:"\\f12a"}.vjs-icon-twitter{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-twitter:before{content:"\\f12b"}.vjs-icon-tumblr{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-tumblr:before{content:"\\f12c"}.vjs-icon-pinterest{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pinterest:before{content:"\\f12d"}.vjs-icon-audio-description,.video-js .vjs-descriptions-button .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-audio-description:before,.video-js .vjs-descriptions-button .vjs-icon-placeholder:before{content:"\\f12e"}.video-js{display:inline-block;vertical-align:top;box-sizing:border-box;color:#fff;background-color:#000;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;word-break:initial}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js[tabindex="-1"]{outline:none}.video-js *,.video-js *:before,.video-js *:after{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin:0}.video-js.vjs-fluid,.video-js.vjs-16-9,.video-js.vjs-4-3,.video-js.vjs-9-16,.video-js.vjs-1-1{width:100%;max-width:100%}.video-js.vjs-fluid:not(.vjs-audio-only-mode),.video-js.vjs-16-9:not(.vjs-audio-only-mode),.video-js.vjs-4-3:not(.vjs-audio-only-mode),.video-js.vjs-9-16:not(.vjs-audio-only-mode),.video-js.vjs-1-1:not(.vjs-audio-only-mode){height:0}\n',".video-js.vjs-16-9:not(.vjs-audio-only-mode){padding-top:56.25%}.video-js.vjs-4-3:not(.vjs-audio-only-mode){padding-top:75%}.video-js.vjs-9-16:not(.vjs-audio-only-mode){padding-top:177.7777777778%}.video-js.vjs-1-1:not(.vjs-audio-only-mode){padding-top:100%}.video-js.vjs-fill:not(.vjs-audio-only-mode){width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}.video-js.vjs-audio-only-mode .vjs-tech{display:none}body.vjs-full-window,body.vjs-pip-window{padding:0;margin:0;height:100%}.vjs-full-window .video-js.vjs-fullscreen,body.vjs-pip-window .video-js{position:fixed;overflow:hidden;z-index:1000;inset:0}.video-js.vjs-fullscreen:not(.vjs-ios-native-fs),body.vjs-pip-window .video-js{width:100%!important;height:100%!important;padding-top:0!important;display:block}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-pip-container .vjs-pip-text{position:absolute;bottom:10%;font-size:2em;background-color:#000000b3;padding:.5em;text-align:center;width:100%}.vjs-layout-tiny.vjs-pip-container .vjs-pip-text,.vjs-layout-x-small.vjs-pip-container .vjs-pip-text,.vjs-layout-small.vjs-pip-container .vjs-pip-text{bottom:0;font-size:1.4em}.vjs-hidden{display:none!important}.vjs-disabled{opacity:.5;cursor:default}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1!important;visibility:visible!important}.vjs-no-js{padding:20px;color:#fff;background-color:#000;font-size:18px;font-family:Arial,Helvetica,sans-serif;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}\n",".video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.63332em;width:3em;display:block;position:absolute;top:50%;left:50%;padding:0;margin-top:-.81666em;margin-left:-1.5em;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2b333f;background-color:#2b333fb3;border-radius:.3em;transition:all .4s}.vjs-big-play-button .vjs-svg-icon{width:1em;height:1em;position:absolute;top:50%;left:50%;line-height:1;transform:translate(-50%,-50%)}.video-js:hover .vjs-big-play-button,.video-js .vjs-big-play-button:focus{border-color:#fff;background-color:#73859f;background-color:#73859f80;transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-control
1s .vjs-big-play-button,.vjs-error .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause:not(.vjs-seeking,.vjs-scrubbing,.vjs-error) .vjs-big-play-button{display:block}.video-js button{background:none;border:none;color:inherit;display:inline-block;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;transition:none;appearance:none}.video-js.vjs-spatial-navigation-enabled .vjs-button:focus{outline:.0625em solid white;box-shadow:none}.vjs-control .vjs-button{width:100%;height:100%}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:#000c;background:linear-gradient(180deg,#000c,#fff0);overflow:auto}.video-js .vjs-modal-dialog>*{box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;overflow:auto}.vjs-menu .vjs-menu-content>*{box-sizing:border-box}.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{display:flex;justify-content:center;list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}\n",".vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover,.js-focus-visible .vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:#73859f80}.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover,.js-focus-visible .vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.vjs-menu li.vjs-selected .vjs-svg-icon,.vjs-menu li.vjs-selected:focus .vjs-svg-icon,.vjs-menu li.vjs-selected:hover .vjs-svg-icon,.js-focus-visible .vjs-menu li.vjs-selected:hover .vjs-svg-icon{fill:#000}.video-js .vjs-menu *:not(.vjs-selected):focus:not(:focus-visible),.js-focus-visible .vjs-menu *:not(.vjs-selected):focus:not(.focus-visible){background:none}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0em;margin-bottom:1.5em;border-top-color:#2b333fb3}.vjs-pip-window .vjs-menu-button-popup .vjs-menu{left:unset;right:1em}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:#2b333fb3;position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:5em}.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:10em}.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:14em}.vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:25em}.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu,.vjs-menu-button-popup .vjs-menu.vjs-lock-showing{display:block}.video-js .vjs-menu-button-inline{transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline:hover,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline.vjs-slider-active{width:12em}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:4em;top:0;padding:0;margin:0;transition:all .4s}.vjs-menu-button-inline:hover .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline.vjs-slider-active .vjs-menu{display:block;opacity:1}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}\n",".video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2b333f;background-color:#2b333fb3}.video-js.vjs-spatial-navigation-enabled .vjs-control-bar{gap:1px}
1.video-js:not(.vjs-controls-disabled,.vjs-using-native-controls,.vjs-error) .vjs-control-bar.vjs-lock-showing{display:flex!important}.vjs-has-started .vjs-control-bar,.vjs-audio-only-mode .vjs-control-bar{display:flex;visibility:visible;opacity:1;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;pointer-events:none;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar,.vjs-error .vjs-control-bar{display:none!important}.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar,.vjs-audio-only-mode.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible;pointer-events:auto}.video-js .vjs-control{position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;flex:none}.video-js .vjs-control.vjs-visible-text{width:auto;padding-left:1em;padding-right:1em}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.vjs-button>.vjs-icon-placeholder{display:block}.vjs-button>.vjs-svg-icon{display:inline-block}.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before,.video-js .vjs-control:focus{text-shadow:0em 0em 1em white}.video-js *:not(.vjs-visible-text)>.vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{cursor:pointer;flex:auto;display:flex;align-items:center;min-width:4em;touch-action:none}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-liveui .vjs-progress-control{display:flex;align-items:center}.video-js .vjs-progress-holder{flex:auto;transition:all .2s;height:.3em}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}\n",".video-js .vjs-progress-control:hover .vjs-progress-holder,.video-js.vjs-scrubbing.vjs-touch-enabled .vjs-progress-control .vjs-progress-holder{font-size:1.6666666667em}.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled{font-size:1em}.video-js .vjs-progress-holder .vjs-play-progress,.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div{position:absolute;display:block;height:100%;margin:0;padding:0;width:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;line-height:.35em;z-index:1}.vjs-svg-icons-enabled .vjs-play-progress:before{content:none!important}.vjs-play-progress .vjs-svg-icon{position:absolute;top:-.35em;right:-.4em;width:.9em;height:.9em;pointer-events:none;line-height:.15em;z-index:1}.video-js .vjs-load-progress{background:#73859f80}.video-js .vjs-load-progress div{background:#73859fbf}.video-js .vjs-time-tooltip{background-color:#fff;background-color:#fffc;border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js.vjs-scrubbing.vjs-touch-enabled .vjs-progress-control .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip{font-size:1em}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.video-js .vjs-progress-control:hover .vjs-mouse-display,.video-js.vjs-scrubbing.vjs-touch-enabled .vjs-progress-control .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display,.video-js.vjs-touch-enabled:not(.vjs-scrubbing) .vjs-progress-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:#000;background-color:#000c}.video-js .vjs-slider{position:relative;cursor:pointer;padding:0;margin:0 .45em;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;background-color:#73859f;background-color:#73859f80}\n",".video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{text-shadow:0em 0em 1em white;box-shadow:0 0 1em #fff}.video-js.vjs-spatial-navigation-enabled .vjs-slider:focus{outline:.0625em solid white}.video-js .vjs-mute-control{cursor:pointer;flex:none}.video-js .vjs-volume-control{cursor:pointer;margin-right:1em;display:flex}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{visibility:visible;opacity:0;width:1px;height:1px;margin-left:-1px}.video-js .vjs-volume-panel{transition:width 1s}.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control,.video-js .vjs-volume-panel:active .vjs-volume-control,.video-js .vjs-volume-panel:focus .vjs-volume-control,.video-js .vjs-volume-panel .vjs-volume-control:active,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active{visibility:visible;opacity:1;position:relative;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s}.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal{width:5em;height:3em;margin-right:0}.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical{left
1:-3.5em;transition:left 0s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active{width:10em;transition:width .1s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only{width:4em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;width:3em;left:-3000em;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel{display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em;z-index:1}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em;z-index:1}.vjs-svg-icons-enabled .vjs-volume-level:before{content:none}\n",".vjs-volume-level .vjs-svg-icon{position:absolute;width:.9em;height:.9em;pointer-events:none;z-index:1}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{line-height:.35em;right:-.5em}.vjs-slider-horizontal .vjs-volume-level .vjs-svg-icon{right:-.3em;transform:translateY(-50%)}.vjs-slider-vertical .vjs-volume-level .vjs-svg-icon{top:-.55em;transform:translate(-50%)}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{width:3em;height:8em;bottom:8em;background-color:#2b333f;background-color:#2b333fb3}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.video-js .vjs-volume-tooltip{background-color:#fff;background-color:#fffc;border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-volume-control:hover .vjs-volume-tooltip,.video-js .vjs-volume-control:hover .vjs-progress-holder:focus .vjs-volume-tooltip{display:block;font-size:1em;visibility:visible}.video-js .vjs-volume-vertical:hover .vjs-volume-tooltip,.video-js .vjs-volume-vertical:hover .vjs-progress-holder:focus .vjs-volume-tooltip{left:1em;top:-12px}.video-js .vjs-volume-control.disabled:hover .vjs-volume-tooltip{font-size:1em}.video-js .vjs-volume-control .vjs-mouse-display{display:none;position:absolute;width:100%;height:1px;background-color:#000;z-index:1}.video-js .vjs-volume-horizontal .vjs-mouse-display{width:1px;height:100%}.video-js .vjs-volume-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-volume-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.vjs-mouse-display .vjs-volume-tooltip{color:#fff;background-color:#000;background-color:#000c}\n",".vjs-poster{display:inline-block;vertical-align:middle;cursor:pointer;margin:0;padding:0;position:absolute;inset:0;height:100%}.vjs-has-started .vjs-poster,.vjs-using-native-controls .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster,.vjs-has-started.vjs-audio-poster-mode .vjs-poster,.vjs-pip-container.vjs-has-started .vjs-poster{display:block}.vjs-poster img{width:100%;height:100%;object-fit:contain}.video-js .vjs-live-control{display:flex;align-items:flex-start;flex:auto;font-size:1em;line-height:3em}.video-js:not(.vjs-live) .vjs-live-control,.video-js.vjs-liveui .vjs-live-control{display:none}.video-js .vjs-seek-to-live-control{align-items:center;cursor:pointer;flex:none;display:inline-flex;height:100%;padding-left:.5em;padding-right:.5em;font-size:1em;line-height:3em;width:auto;min-width:4em}.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control,.video-js:not(.vjs-live) .vjs-seek-to-live-control{display:none}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{cursor:auto}.vjs-seek-to-live-control .vjs-icon-placeholder{margin-right:.5em;color:#888}.vjs-svg-icons-enabled .vjs-seek-to-live-control{line-height:0}.vjs-seek-to-live-control .vjs-svg-icon{width:1em;height:1em;pointer-events:none;fill:#888}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder{color:red}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-svg-icon{fill:red}.video-js .vjs-time-control{flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.vjs-live .vjs-time-control,.vjs-live .vjs-time-divider,.video-js .vjs-current-time,.video-js .vjs-duration{dis
1play:none}.vjs-time-divider{display:none;line-height:3em}.vjs-normalise-time-controls:not(.vjs-live) .vjs-time-control{display:flex}.video-js .vjs-play-control{cursor:pointer}.video-js .vjs-play-control .vjs-icon-placeholder{flex:none}.vjs-text-track-display{position:absolute;inset:0 0 3em;pointer-events:none}.vjs-error .vjs-text-track-display{display:none}\n",'.video-js.vjs-controls-disabled .vjs-text-track-display,.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{transform:translateY(-3em)}.video-js.vjs-controls-disabled video::-webkit-media-text-track-display,.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{transform:translateY(-1.5em)}.video-js.vjs-force-center-align-cues .vjs-text-track-cue{text-align:center!important;width:80%!important}@supports not (inset: 10px){.video-js .vjs-text-track-display>div{inset:0}}.video-js .vjs-picture-in-picture-control{cursor:pointer;flex:none}.video-js.vjs-audio-only-mode .vjs-picture-in-picture-control,.vjs-pip-window .vjs-picture-in-picture-control{display:none}.video-js .vjs-fullscreen-control{cursor:pointer;flex:none}.video-js.vjs-audio-only-mode .vjs-fullscreen-control,.vjs-pip-window .vjs-fullscreen-control{display:none}.vjs-playback-rate>.vjs-menu-button,.vjs-playback-rate .vjs-playback-rate-value{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-playback-rate .vjs-playback-rate-value{pointer-events:none;font-size:1.5em;line-height:2;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);opacity:.85;text-align:left;border:.6em solid rgba(43,51,63,.7);box-sizing:border-box;background-clip:padding-box;width:5em;height:5em;border-radius:50%;visibility:hidden}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:flex;justify-content:center;align-items:center;animation:vjs-spinner-show 0s linear .3s forwards}.vjs-error .vjs-loading-spinner{display:none}.vjs-loading-spinner:before,.vjs-loading-spinner:after{content:"";position:absolute;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:transparent;border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:before,.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after{animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;animation-delay:.44s}@keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{to{transform:rotate(360deg)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}to{border-top-color:#73859f}}.video-js.vjs-audio-only-mode .vjs-captions-button{display:none}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js.vjs-audio-only-mode .vjs-descriptions-button{display:none}.vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-svg-icon{width:1.5em;height:1.5em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:"\\f10c";font-size:1.5em;line-height:inherit}.video-js.vjs-audio-only-mode .vjs-subs-caps-button{display:none}.video-js .vjs-audio-button+.vjs-menu .vjs-descriptions-menu-item .vjs-menu-item-text .vjs-icon-placeholder,.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-audio-button+.vjs-menu .vjs-descriptions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before,.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:" \\f12e";font-size:1.5em;line-height:inherit}\n',".video-js.vjs-layout-small .vjs-current-time,.video-js.vjs-layout-small .vjs-time-divider,.video-js.vjs-layout-small .vjs-duration,.video-js.vjs-layout-small .vjs-remaining-time,.video-js.vjs-layout-small .vjs-playback-rate,.video-js.vjs-layout-small .vjs-volume-control,.video-js.vjs-layout-x-small .vjs-current-time,.video-js.vjs-layout-x-small .vjs-time-divider,.video-js.vjs-layout-x-small .vjs-duration,.video-js.vjs-layout-x-small .vjs-remaining-time,.video-js.vjs-layout-x-small .vjs-playback-rate,.video-js.vjs-layout-x-small .vjs-volume-control,.video-js.vjs-layout-tiny .vjs-current-time,.video-js.vjs-layout-tiny .vjs-time-divider,.video-js.vjs-layout-tiny .vjs-duration,.video-js.vjs-layout-tiny .vjs-remaining-time,.video-js.vjs-layout-tiny .vjs-playback-rate,.video-js.vjs-layout-tiny .vjs-volume-control{display:none}.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover{width:auto;width:initial}.video-js.vjs-layout-x-small .vjs-progress-control,.video-js.vjs-layout-tiny .vjs-progress-control{display:none}.video-js.vjs-layout-x-small .vjs-custom-control-spacer{flex:auto;display:block}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:#2b333fbf;color:#fff;height:70%}.vjs-spatial-navigation-enabled .vjs-modal-dialog.vjs-text-track-settings{height:80%}.vjs-error .vjs-text-track-settings{display:none}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-font,.vjs-text-track-settings .vjs-track-settings-controls{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}@supports (display: grid){.vjs-text-track-settings .vjs-modal-dialog-content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;padding:20px 24px 0}.vjs-track-settings-controls .vjs-default-button{margin-bottom:20px}.vjs-text-track-settings .vjs-track-settings-controls{grid-column:1/-1}.vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content{grid-template-columns:1fr}}\n",".vjs-text-track-settings select{font-size:inherit}.vjs-track-setting>select{margin-right:1em;margin-bottom:.5em}.vjs-text-track-settings fieldset{margin:10px;border:none}
1.vjs-text-track-settings fieldset span{display:inline-block;padding:0 .6em .8em}.vjs-text-track-settings fieldset span>select{max-width:7.3em}.vjs-text-track-settings legend{color:#fff;font-weight:700;font-size:1.2em}.vjs-text-track-settings .vjs-label{margin:0 .5em .5em 0}.vjs-track-settings-controls button:focus,.vjs-track-settings-controls button:active{outline-style:solid;outline-width:medium;background-image:linear-gradient(0deg,#fff 88%,#73859f)}.vjs-track-settings-controls button:hover{color:#2b333fbf}.vjs-track-settings-controls button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f);color:#2b333f;cursor:pointer;border-radius:2px}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}.vjs-title-bar{background:#000000e6;background:linear-gradient(180deg,#000000e6,#000000b3 60%,#0000);font-size:1.2em;line-height:1.5;transition:opacity .1s;padding:.666em 1.333em 4em;pointer-events:none;position:absolute;top:0;width:100%}.vjs-error .vjs-title-bar{display:none}.vjs-title-bar-title,.vjs-title-bar-description{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vjs-title-bar-title{font-weight:700;margin-bottom:.333em}.vjs-playing.vjs-user-inactive .vjs-title-bar{opacity:0;transition:opacity 1s}.video-js .vjs-skip-forward-5,.video-js .vjs-skip-forward-10,.video-js .vjs-skip-forward-30,.video-js .vjs-skip-backward-5,.video-js .vjs-skip-backward-10,.video-js .vjs-skip-backward-30{cursor:pointer}.video-js .vjs-transient-button{position:absolute;height:3em;display:flex;align-items:center;justify-content:center;background-color:#32323280;cursor:pointer;opacity:1;transition:opacity 1s}.video-js:not(.vjs-has-started) .vjs-transient-button{display:none}.video-js.not-hover .vjs-transient-button:not(.force-display),.video-js.vjs-user-inactive .vjs-transient-button:not(.force-display){opacity:0}.video-js .vjs-transient-button span{padding:0 .5em}.video-js .vjs-transient-button.vjs-left{left:1em}.video-js .vjs-transient-button.vjs-right{right:1em}.video-js .vjs-transient-button.vjs-top{top:1em}.video-js .vjs-transient-button.vjs-near-top{top:4em}.video-js .vjs-transient-button.vjs-bottom{bottom:4em}.video-js .vjs-transient-button:hover{background-color:#323232e6}@media print{.video-js>*:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}.vjs-resize-manager{position:absolute;top:0;left:0;width:100%;height:100%;border:none;z-index:-1000}.js-focus-visible .video-js *:focus:not(.focus-visible){outline:none}.video-js *:focus:not(:focus-visible){outline:none}\n","div[data-vjs-player]{margin-bottom:1rem}\n"],encapsulation:2})}}return s})();var s_=te(2765),n_=te(9204),r_=te(177);let a_=(()=>{class s{constructor(){this.document=(0,N.WQX)(N.qQL),this.platformId=(0,N.WQX)(p.Agw),this.documentIsAccessible=(0,r_.UE)(this.platformId)}static getCookieRegExp(t){const i=t.replace(/([[\]{}()|=;+?,.*^$\\])/gi,"\\$1");return new RegExp("(?:^"+i+"|;\\s*"+i+")=(.*?)(?:;|$)")}static safeDecodeURIComponent(t){try{return decodeURIComponent(t)}catch{return t}}check(t){return!!this.documentIsAccessible&&(t=encodeURIComponent(t),s.getCookieRegExp(t).test(this.document.cookie))}get(t){if(this.check(t)){t=encodeURIComponent(t);const n=s.getCookieRegExp(t).exec(this.document.cookie);return n?.[1]?s.safeDecodeURIComponent(n[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const t={},i=this.document;return i.cookie&&""!==i.cookie&&i.cookie.split(";").forEach(n=>{const[r,a]=n.split("=");t[s.safeDecodeURIComponent(r.replace(/^ /,""))]=s.safeDecodeURIComponent(a)}),t}set(t,i,n,r,a,l,h,m){if(!this.documentIsAccessible)return;if("number"==typeof n||n instanceof Date||r||a||l||h)return void this.set(t,i,{expires:n,path:r,domain:a,secure:l,sameSite:h||"Lax",partitioned:m});let v=encodeURIComponent(t)+"="+encodeURIComponent(i)+";";const y=n||{};y.expires&&(v+="number"==typeof y.expires?"Expires="+new Date((new Date).getTime()+1e3*y.expires*60*60*24).toUTCString()+";":"Expires="+y.expires.toUTCString()+";"),y.path&&(v+="Path="+y.path+";"),y.domain&&(v+="Domain="+y.domain+";"),!1===y.secure&&"None"===y.sameSite&&(y.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${t} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),y.secure&&(v+="Secure;"),y.sameSite||(y.sameSite="Lax"),v+="SameSite="+y.sameSite+";",y.partitioned&&(v+="Partitioned;"),this.document.cookie=v}delete(t,i,n,r,a="Lax"){this.documentIsAccessible&&this.set(t,"",{expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT"),path:i,domain:n,secure:r,sameSite:a})}deleteAll(t,i,n,r="Lax"){if(!this.documentIsAccessible)return;const a=this.getAll();for(const l in a)a.hasOwnProperty(l)&&this.delete(l,t,i,n,r)}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275prov=N.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function o_(s,e){1&s&&p.eu8(0)}function l_(s,e){if(1&s&&p.DNE(0,o_,1,0,"ng-container",2),2&s){p.XpG(2);const t=p.sdS(2);p.Y8G("ngTemplateOutlet",t)}}function u_(s,e){1&s&&p.eu8(0)}function c_(s,e){if(1&s&&p.DNE(0,u_,1,0,"ng-container",2),2&s){p.XpG(2);const t=p.sdS(4);p.Y8G("ngTemplateOutlet",t)}}function d_(s,e){if(1&s&&p.nVh(0,l_,1,1,"ng-container")(1,c_,1,1,"ng-container"),2&s){const t=p.XpG();p.vxM(t.isSafari()?1:0)}}function h_(s,e){if(1&s&&p.nrm(0,"iframe",3),2&s){const t=p.XpG();p.Y8G("src",t.safeUrl(),p.f$h)}}function f_(s,e){if(1&s&&p.nrm(0,"iframe",4),2&s){const t=p.XpG();p.Y8G("src",t.safeUrl(),p.f$h)}}let p_=(()=>{class s{constructor(){this.isSafari=(0,M.hFB)(!1),this.safeUrl=M.hFB.required()}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275cmp=p.VBU({type:s,selectors:[["cms-youtube-player"]],inputs:{isSafari:[1,"isSafari"],safeUrl:[1,"safeUrl"]},decls:5,vars:1,consts:[["default",""],["safari",""],[4,"ngTemplateOutlet"],["allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share","allowfullscreen","","referrerpolicy","strict-origin-when-cross-origin","title","YouTube video player",3,"src"],["allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share","allowfullscreen","","referrerpolicy","unsafe-url","title","YouTube video player",3,"src"]],template:function(i,n){1&i&&(p.nVh(0,d_,2,1),p.DNE(1,h_,1,1,"ng-template",null,0,p.C5r)(3,f_,1,1,"ng-template",null,1,p.C5r)),2&i&&p.vxM(n.safeUrl()?0:-1)},dependencies:[le.T3],styles:["iframe[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}"],changeDetection:0})}}return s})();const m_=["datenschutzOverlay"];function g_(s,e){if(1&s&&(p.nrm(0,"cms-youtube-player",3),p.nI1(1,"safe")),2&s){const t=p.XpG();p.Y8G("isSafari",t.isSafari())("safeUrl",p.i5U(1,2,t.youtubeUrl(),"ResourceUrl"))}}function v_(s,e){}function __(s,e){if(1&s&&p.DNE(0,v_,0,0,"ng-template",4),2&s){p.XpG();const t=p.sdS(5);p.Y8G("ngTemplateOutlet",t)}}function y_(s,e){}function b_(s,e){if(1&s&&p.DNE(0,y_,0,0,"ng-template",4),2&s){p.XpG();const t=p.sdS(7);p.Y8G("ngTemplateOutlet",t)}}function T_(s,e){if(1&s&&(p.j41(0,"div",10)(1,"cms-composite-link",14),p.EFF(2),p.k0s()()),2&s){const t=p.XpG(2);p.R7$(),p.Y8G("linkElement",t.config().datenschutzLinkElement??void 0),p.R7$(),p.SpI("",t.config().datenschutzLinktitel," ")}}function x_(s,e){if(1&s){const t=p.RV6();p.j41(0,"div",5),p.nrm(1,"span",6),p.j41(2,"div",7)(3,"div",8)(4,"mat-checkbox",9),p.bIt("change",function(n){N.eBV(t);const r=p.XpG();return N.Njj(r.onChangeYoutubeAlwaysUnlock(n))}),p.EFF(5," YouTube dauerhaft zulassen "),p.k0s()(),p.nVh(6,T_,3,2,"div",10),p.k0s(),p.j41(7,"div",11)(8,"button",12),p.bIt("click",function(){N.eBV(t);const n=p.XpG();return N.Njj(n.datenschutzButtonAction())})("keydown.enter",function(){N.eBV(t);const n=p.XpG();return N.Njj(n.datenschutzButtonAction())}),p.nrm(9,"kf-icon",13),p.j41(10,"span"),p.EFF(11),p.k0s()()()()}if(2&s){const t=p.XpG();p.R7$(),p.Y8G("innerHTML",t.config().datenschutzText,p.npT),p.R7$(5),p.vxM(t.config().datenschutzLinkElement?6:-1),p.R7$(5),p.JRh(t.config().datenschutzButtontitel)}}function S_(s,e){if(1&s&&p.nrm(0,"cms-ui-image",17),2&s){const t=p.XpG(2);p.Y8G("image",e)("ratio",t.config().aspectRatio)}}function C_(s,e){if(1&s){const t=p.RV6();p.j41(0,"div",15),p.bIt("click",function(){N.eBV(t);const n=p.XpG();return N.Njj(n.previewImageButtonAction())})("keydown.enter",function(){N.eBV(t);const n=p.XpG();return N.Njj(n.previewImageButtonAction())}),p.j41(1,"div",16),p.nVh(2,S_,1,2,"cms-ui-image",17),p.nrm(3,"button",18),p.k0s()()}if(2&s){let t;const i=p.XpG();p.R7$(2),p.vxM((t=i.config().previewImage)?2:-1,t),p.R7$(),p.Y8G("title",i.PLAY_BUTTON_TITLE)}}let E_=(()=>{class s{constructor(){this.config=M.hFB.required(),this.autoPlay=(0,M.hFB)(!1),this.isModal=(0,M.hFB)(!1),this.isSafari=(0,M.hFB)(!1),this._safePipe=(0,N.WQX)(oe.my),this._renderer=(0,N.WQX)(p.sFG),this.documentRef=(0,N.WQX)(N.qQL),this.cookieService=(0,N.WQX)(a_),this.youtubeAlwaysUnlockCookieKey="cms-youtube-always-unlock",this.playButtonPressed=!1,this.loadVideo=(0,N.vPA)(!1),this.datenschutzOverlayElementRef=(0,M.ebz)("datenschutzOverlay"),this.youtubeUrl=(0,F.EW)(()=>{const t=this.config().youtubeHideControl?"0":"1",i=this.config().youtubeNoFullscreen?"0":"1",n=this.autoPlay()?"1":"0";return`/i/youtube.html?v=${this.config().youtubeId}&controls=${t}
1&autoplay=${n}&fs=${i}`}),this.previewAltText=(0,F.EW)(()=>this.config().previewImage?.alt),this.PLAY_BUTTON_TITLE=Le}ngOnChanges(t){!t.config.previousValue&&t.config.currentValue&&(this.showDatenschutzOverlay=this.shouldShowDatenschutzOverlay(),this.checkVideoPlay())}onChangeYoutubeAlwaysUnlock(t){t.checked&&this.cookieService.set(this.youtubeAlwaysUnlockCookieKey,"true")}datenschutzButtonAction(){this.showDatenschutzOverlay=!1,this.playButtonPressed=!0,this.loadVideo.set(!0)}previewImageButtonAction(){this.playButtonPressed=!0,this.showDatenschutzOverlay=this.shouldShowDatenschutzOverlay(),this.loadVideo.set(!this.showDatenschutzOverlay),this.isModal()||setTimeout(()=>{this.setA11yFocus()},0)}checkVideoPlay(){this.loadVideo.set(!this.showDatenschutzOverlay&&!this.showPreviewImageOverlay())}showPreviewImageOverlay(){return!this.playButtonPressed&&!this.autoPlay()}shouldShowDatenschutzOverlay(){return this.config().datenschutzZustimmung&&!this.isCookieValueSet()&&!this.showPreviewImageOverlay()}isCookieValueSet(){return"true"===this.cookieService.get("cms-youtube-always-unlock")}setA11yFocus(){if(this.datenschutzOverlayElementRef()){const i=(this.datenschutzOverlayElementRef()?.elementRef.nativeElement).previousElementSibling?.querySelector(".youtube-play-button");if(!i)return;const n=100,r=10;this._renderer.setAttribute(i,"tabindex","1");let a=0;const l=this.documentRef.defaultView?.setInterval(()=>{i?.focus(),a++,a>=r&&this.documentRef.defaultView?.window.clearInterval(l)},n)}}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275cmp=p.VBU({type:s,selectors:[["cms-video-audio-youtube"]],viewQuery:function(i,n){1&i&&p.wEZ(n.datenschutzOverlayElementRef,m_,5),2&i&&p.NyB()},inputs:{config:[1,"config"],autoPlay:[1,"autoPlay"],isModal:[1,"isModal"],isSafari:[1,"isSafari"]},features:[p.Jv_([oe.my]),p.OA$],decls:8,vars:3,consts:[["datenschutzOverlay",""],["previewImageOverlay",""],["data-automation-id","ultimate-renderer-video-audio-youtube",1,"youtube-player-container"],[3,"isSafari","safeUrl"],[3,"ngTemplateOutlet"],[1,"youtube-datenschutz-overlay"],[1,"youtube-hinweis-text",3,"innerHTML"],[1,"youtube-checkbox-container"],[1,"youtube-checkbox"],[1,"kf-color-primary-contrast",3,"change"],[1,"youtube-datenschutzlink"],[1,"youtube-play-button-container"],["color","primary","mat-flat-button","","type","button",1,"youtube-play-button","kf-color-primary-contrast",3,"click","keydown.enter"],["aria-hidden","true","name","ic_youtube_24"],[3,"linkElement"],[1,"youtube-preview-image-overlay",3,"click","keydown.enter"],[1,"youtube-preview-image-container","kf-bg-primary"],["sizes","auto",3,"image","ratio"],["compactButtonType","primary","iconName","ic_abspielen_24","kf-compact-button","","type","button",1,"youtube-play-button",3,"title"]],template:function(i,n){1&i&&(p.j41(0,"div",2),p.nVh(1,g_,2,5,"cms-youtube-player",3),p.nVh(2,__,1,1,null,4),p.nVh(3,b_,1,1,null,4),p.k0s(),p.DNE(4,x_,12,3,"ng-template",null,0,p.C5r)(6,C_,4,2,"ng-template",null,1,p.C5r)),2&i&&(p.R7$(),p.vxM(n.loadVideo()?1:-1),p.R7$(),p.vxM(n.showDatenschutzOverlay?2:-1),p.R7$(),p.vxM(n.showPreviewImageOverlay()?3:-1))},dependencies:[p_,B.KY,ct.$z,le.T3,s_.So,je.F,n_.l,He.f,oe.my],styles:['.youtube-player-container[_ngcontent-%COMP%]{position:relative;display:block;width:100%;padding:0;overflow:hidden}.youtube-player-container[_ngcontent-%COMP%]:before{padding-top:56.25%;display:block;content:""}.youtube-datenschutz-overlay[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;top:0;left:0;z-index:1;background-color:var(--color-background-stage);color:var(--color-background-stage-contrast)}.youtube-datenschutz-overlay[_ngcontent-%COMP%]   .youtube-hinweis-text[_ngcontent-%COMP%]{font-size:.8125rem;line-height:1.125rem;letter-spacing:0;margin-left:8px;margin-right:8px;margin-top:8px;display:block}.youtube-datenschutz-overlay[_ngcontent-%COMP%]   .youtube-hinweis-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:link, .youtube-datenschutz-overlay[_ngcontent-%COMP%]   .youtube-hinweis-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited, .youtube-datenschutz-overlay[_ngcontent-%COMP%]   .youtube-hinweis-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, .youtube-datenschutz-overlay[_ngcontent-%COMP%]   .youtube-hinweis-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:active{color:var(--color-background-stage-contrast)}@media screen and (min-width:375px){.youtube-datenschutz-overlay[_ngcontent-%COMP%]   .youtube-hinweis-text[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5rem;margin-left:16px;margin-right:16px;margin-top:16px}}.youtube-datenschutz-overlay[_ngcontent-%COMP%]   .youtube-checkbox-container[_ngcontent-%COMP%]{position:absolute;bottom:0;margin-bottom:8px;width:calc(100% - 120px)}@media screen and (min-width:375px){.youtube-datenschutz-overlay[_ngcontent-%COMP%]   .youtube-checkbox-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;margin-bottom:16px;width:100%}}.youtube-datenschutz-overlay[_ngcontent-%COMP%]   .youtube-checkbox-container[_ngcontent-%COMP%]   .youtube-checkbox[_ngcontent-%COMP%]{font-size:.8125rem;margin-left:8px}@media screen and (min-width:375px){.youtube-datenschutz-overlay[_ngcontent-%COMP%]   .youtube-checkbox-container[_ngcontent-%COMP%]   .youtube-checkbox[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5rem;margin-left:16px}}.youtube-datenschutz-overlay[_ngcontent-%COMP%]   .youtube-play-button-container[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0;margin-bottom:8px;margin-right:16px}@media screen and (min-width:375px){.youtube-datenschutz-overlay[_ngcontent-%COMP%]   .youtube-play-button-container[_ngcontent-%COMP%]{inset:50% auto auto 50%;transform:translate(-50%,-50%);margin-bottom:0;margin-right:0}}@media screen and (width<=374px){.youtube-datenschutz-overlay[_ngcontent-%COMP%]   .youtube-play-button-container[_ngcontent-%COMP%]   .youtube-play-button[_ngcontent-%COMP%]{min-width:unset!important}}.youtube-preview-image-overlay[_ngcontent-%COMP%]{cursor:pointer;position:absolute;width:100%;height:100%;top:0;left:0}.youtube-preview-image-overlay[_ngcontent-%COMP%]   .youtube-preview-image-container[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;background-color:#f1f1eb}.youtube-preview-image-overlay[_ngcontent-%COMP%]   .youtube-preview-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%}.youtube-preview-image-overlay[_ngcontent-%COMP%]   .youtube-preview-image-container[_ngcontent-%COMP%]   .youtube-play-button[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[_nghost-%COMP%]     .youtube-datenschutzlink{font-size:.8125rem;line-height:1.125rem;margin-left:8px}[_nghost-%COMP%]     .youtube-datenschutzlink a:link, [_nghost-%COMP%]     .youtube-datenschutzlink a:visited, [_nghost-%COMP%]     .youtube-datenschutzlink a:hover, [_nghost-%COMP%]     .youtube-datenschutzlink a:active{color:var(--color-background-stage-contrast)}@media screen and (min-width:375px){[_nghost-%COMP%]     .youtube-datenschutzlink{font-size:1rem;line-height:1.5rem;margin-left:auto;margin-right:16px}}[_nghost-%COMP%]     .youtube-hinweis-text a:link, [_nghost-%COMP%]     .youtube-hinweis-text a:visited, [_nghost-%COMP%]     .youtube-hinweis-text a:hover, [_nghost-%COMP%]     .youtube-hinweis-text a:active{color:var(--color-background-stage-contrast)}'],changeDetection:0})}}return s})();var A_=te(1060),w_=te(7421);const D_=["popupVideoAudioPlayer"],k_=["*"];function I_(s,e){if(1&s){const t=p.RV6();p.j41(0,"cms-video-audio-5050",9),p.bIt("keydown.enter",function(){N.eBV(t);const n=p.XpG(),r=p.sdS(6);return N.Njj(n.showOverlay(r))})("mediaClicked",function(){N.eBV(t);const n=p.XpG(),r=p.sdS(6);return N.Njj(n.showOverlay(r))}),p.k0s()}if(2&s){const t=p.XpG(),i=p.sdS(11);
1p.Y8G("headingTemplate",i)("heading",t.heading()??void 0)("headlineIcon",t.headlineIcon())("image",t.previewImage())("metaText",t.metaText())("playerIcon",t.playMediaIcon())("position",t.position())("text",t.texttext())("aspectRatio",t.aspectRatio())}}function P_(s,e){if(1&s){const t=p.RV6();p.j41(0,"cms-video-audio-extern-list-item",10),p.bIt("keydown.enter",function(){N.eBV(t);const n=p.XpG(),r=p.sdS(6);return N.Njj(n.showOverlay(r))})("mediaClicked",function(){N.eBV(t);const n=p.XpG(),r=p.sdS(6);return N.Njj(n.showOverlay(r))}),p.k0s()}if(2&s){const t=p.XpG();p.Y8G("heading",t.heading()??void 0)("headlineIcon",t.headlineIcon())("image",t.previewImage())("metaText",t.metaText())("playerIcon",t.playMediaIcon())("text",t.texttext())}}function O_(s,e){if(1&s){const t=p.RV6();p.j41(0,"cms-video-audio-list-item",10),p.bIt("keydown.enter",function(){N.eBV(t);const n=p.XpG(),r=p.sdS(6);return N.Njj(n.showOverlay(r))})("mediaClicked",function(){N.eBV(t);const n=p.XpG(),r=p.sdS(6);return N.Njj(n.showOverlay(r))}),p.k0s()}if(2&s){const t=p.XpG();p.Y8G("heading",t.heading()??void 0)("headlineIcon",t.headlineIcon())("image",t.previewImage())("metaText",t.metaText())("playerIcon",t.playMediaIcon())("text",t.texttext())}}function M_(s,e){if(1&s){const t=p.RV6();p.j41(0,"cms-video-audio-player",15,3),p.bIt("audioDescActive",function(n){N.eBV(t);const r=p.XpG(2);return N.Njj(r.handleAudioDescActive(n))})("playerTranscriptReady",function(n){N.eBV(t);const r=p.XpG(2);return N.Njj(r.createTranscript(n))}),p.k0s()}if(2&s){const t=p.XpG(2);p.Y8G("audioDescriptionSrc",t.audioDescriptionSrc())("audioOnly",t.isAudioOnly())("captionTrackAttr",t.captions())("isSafari",t.isSafari())("posterSrc",t.posterSrc())("title","")("transcriptTrackAttr",t.descriptions())("videoAudioSrc",t.videoAudioSrc())}}function j_(s,e){if(1&s&&p.nrm(0,"cms-video-audio-youtube",12),2&s){const t=p.XpG(2);p.Y8G("config",t.youtubeConfig())("isModal",t.showoverlay())("isSafari",t.isSafari())}}function L_(s,e){}function R_(s,e){if(1&s&&p.DNE(0,L_,0,0,"ng-template",14),2&s){p.XpG(2);const t=p.sdS(8);p.Y8G("ngTemplateOutlet",t)}}function N_(s,e){if(1&s&&(p.j41(0,"div"),p.nVh(1,M_,2,8,"cms-video-audio-player",11),p.nVh(2,j_,1,3,"cms-video-audio-youtube",12),p.nrm(3,"cms-video-audio-text",13),p.nVh(4,R_,1,1,null,14),p.k0s()),2&s){const t=p.XpG();p.AVh("video-page",!t.isExtern())("video-tile",t.isExtern()),p.R7$(),p.vxM("mp4webmvideo"===t.source()||"mp3accwavaudio"===t.source()?1:-1),p.R7$(),p.vxM("youtube"===t.source()?2:-1),p.R7$(),p.AVh("kf-p-24",t.isExtern())("kf-p-b-24",!t.isExtern())("kf-p-t-24",!t.isExtern()),p.Y8G("heading",t.heading()??void 0)("icon",t.isExtern()?t.headlineIcon():void 0)("metaText",t.metaText())("text",t.texttext())("useHeadline",!t.isExtern()),p.R7$(),p.vxM("youtube"!==t.source()&&t.shouldShowTranscript()?4:-1)}}function B_(s,e){if(1&s&&p.nrm(0,"cms-ui-image",18),2&s){p.XpG();const t=p.r8f(1),i=p.XpG();p.Y8G("image",t)("ratio",i.aspectRatio())}}function F_(s,e){if(1&s){const t=p.RV6();p.j41(0,"div"),p.SS7(1),p.j41(2,"div",16),p.bIt("click",function(){N.eBV(t);const n=p.XpG(),r=p.sdS(6);return N.Njj(n.showOverlay(r))})("keydown.enter",function(){N.eBV(t);const n=p.XpG(),r=p.sdS(6);return N.Njj(n.showOverlay(r))}),p.j41(3,"div",17),p.nVh(4,B_,1,2,"cms-ui-image",18),p.k0s(),p.nrm(5,"button",19),p.k0s(),p.nrm(6,"cms-video-audio-text",13),p.k0s()}if(2&s){const t=p.XpG();p.AVh("video-page",!t.isExtern())("video-tile",t.isExtern()),p.R7$();const i=p.bH3(t.previewImage());p.R7$(),p.AVh("highlight-preview-placeholder",!(null!=i&&null!=i.reference&&i.reference.length)),p.R7$(),p.AVh("has-img",null==i?null:i.reference),p.R7$(),p.vxM(i?4:-1),p.R7$(),p.AVh("is-disabled",t.isDisabled()),p.Y8G("disabled",t.isDisabled())("iconName",t.playMediaIcon())("tabindex",0)("title",t.PLAY_BUTTON_TITLE),p.R7$(),p.AVh("kf-p-24",t.isExtern())("kf-p-b-24",!t.isExtern())("kf-p-t-24",!t.isExtern()),p.Y8G("heading",t.heading()??void 0)("icon",t.isExtern()?t.headlineIcon():void 0)("metaText",t.metaText())("text",t.texttext())("useHeadline",!t.isExtern())}}function U_(s,e){if(1&s&&p.nrm(0,"h1",28),2&s){let t,i;const n=p.XpG(3);p.HbH(null==(t=n.heading())?null:t.cls),p.AVh("kf-popup-header","true")("kf-headline-1","true"),p.Y8G("innerHTML",null==(i=n.heading())?null:i.content,p.npT)}}function V_(s,e){if(1&s&&p.nrm(0,"h2",28),2&s){let t,i;const n=p.XpG(3);p.HbH(null==(t=n.heading())?null:t.cls),p.AVh("kf-popup-header","true")("kf-headline-1","true"),p.Y8G("innerHTML",null==(i=n.heading())?null:i.content,p.npT)}}function H_(s,e){if(1&s&&p.nrm(0,"h3",28),2&s){let t,i;const n=p.XpG(3);p.HbH(null==(t=n.heading())?null:t.cls),p.AVh("kf-popup-header","true")("kf-headline-1","true"),p.Y8G("innerHTML",null==(i=n.heading())?null:i.content,p.npT)}}function q_(s,e){if(1&s&&p.nrm(0,"h4",28),2&s){let t,i;const n=p.XpG(3);p.HbH(null==(t=n.heading())?null:t.cls),p.AVh("kf-popup-header","true")("kf-headline-1","true"),p.Y8G("innerHTML",null==(i=n.heading())?null:i.content,p.npT)}}function z_(s,e){if(1&s&&p.nVh(0,U_,1,7,"h1",27)(1,V_,1,7,"h2",27)(2,H_,1,7,"h3",27)(3,q_,1,7,"h4",27),2&s){p.XpG();const t=p.r8f(4);p.vxM("h1"===t?0:"h2"===t?1:"h3"===t?2:"h4"===t?3:-1)}}function $_(s,e){if(1&s){const t=p.RV6();p.j41(0,"cms-video-audio-player",29,4),p.bIt("audioDescActive",function(n){N.eBV(t);const r=p.XpG(2);return N.Njj(r.handleAudioDescActive(n))})("playerTranscriptReady",function(n){N.eBV(t);const r=p.XpG(2);return N.Njj(r.createTranscript(n))}),p.k0s(),p.j41(2,"p",30),p.EFF(3),p.k0s()}if(2&s){const t=p.XpG(2);p.Y8G("audioDescriptionSrc",t.audioDescriptionSrc())("audioOnly",t.isAudioOnly())("captionTrackAttr",t.captions())("isSafari",t.isSafari())("posterSrc",t.posterSrc())("title","")("transcriptTrackAttr",t.descriptions())("videoAudioSrc",t.videoAudioSrc()),p.R7$(2),p.BMQ("id",`${t.cmsId()}-alt-text`),p.R7$(),p.JRh(t.videoAltText())}}function G_(s,e){if(1&s&&p.nrm(0,"cms-video-audio-youtube",25),2&s){const t=p.XpG(2);p.Y8G("autoPlay",!0)("config",t.youtubeConfig())("isModal",t.showoverlay())("isSafari",t.isSafari())}}function W_(s,e){}function X_(s,e){if(1&s&&p.DNE(0,W_,0,0,"ng-template",14),2&s){p.XpG(2);const t=p.sdS(8);p.Y8G("ngTemplateOutlet",t)}}function Y_(s,e){if(1&s&&(p.j41(0,"div",20)(1,"div",21)(2,"button",22),p.nrm(3,"kf-icon",23),p.k0s(),p.SS7(4),p.nVh(5,z_,4,1),p.nrm(6,"cms-richtext",24),p.nVh(7,$_,4,10),p.nVh(8,G_,1,4,"cms-video-audio-youtube",25),p.nrm(9,"span",26),p.nVh(10,X_,1,1,null,14),p.k0s()()),2&s){let t,i;const n=p.XpG();p.R7$(4),p.bH3((null==(t=n.heading())?null:t.type)??"h2"),p.R7$(),p.vxM(null!=(i=n.heading())&&null!=i.content&&i.content.length?5:-1),p.R7$(),p.Y8G("htmlContent",n.texttext()),p.R7$(),p.vxM("mp4webmvideo"===n.source()||"mp3accwavaudio"===n.source()?7:-1),p.R7$(),p.vxM("youtube"===n.source()?8:-1),p.R7$(),p.Y8G("innerHTML",n.metaText(),p.npT),p.R7$(),p.vxM("youtube"!==n.source()&&n.shouldShowTranscript()?10:-1)}}function K_(s,e){if(1&s&&(p.j41(0,"div",37)(1,"span",38),p.EFF(2),p.k0s(),p.j41(3,"span",39),p.EFF(4),p.k0s()()),2&s){const t=e.$implicit;p.R7$(2),p.SpI("",t.speaker," "),p.R7$(2),p.JRh(t.text)}}
1function Q_(s,e){if(1&s&&p.Z7z(0,K_,5,2,"div",37,p.fX1),2&s){const t=p.XpG(2);p.Dyx(t.transcriptDialogs())}}function J_(s,e){if(1&s&&(p.j41(0,"span",36),p.EFF(1),p.k0s()),2&s){const t=p.XpG(2);p.R7$(),p.SpI(" ",t.transcriptText()," ")}}function Z_(s,e){if(1&s&&(p.j41(0,"mat-expansion-panel",31)(1,"mat-expansion-panel-header",32),p.nrm(2,"strong",33),p.k0s(),p.j41(3,"div",34)(4,"div",35),p.nVh(5,Q_,2,0)(6,J_,2,1,"span",36),p.k0s()()()),2&s){const t=p.XpG();p.R7$(2),p.Y8G("innerHTML",t.transcriptTitle(),p.npT),p.R7$(3),p.vxM(t.hasMetaInfo()?5:6)}}function ey(s,e){1&s&&(p.qex(0),p.SdG(1),p.bVm())}function ty(s,e){if(1&s&&p.nrm(0,"h1",41),2&s){let t,i;const n=p.XpG(3);p.HbH(null==(t=n.heading())?null:t.cls),p.AVh("kf-m-b-8","true")("headline","true")("cms-header","true"),p.Y8G("innerHTML",null==(i=n.heading())?null:i.content,p.npT)}}function iy(s,e){if(1&s&&p.nrm(0,"h2",41),2&s){let t,i;const n=p.XpG(3);p.HbH(null==(t=n.heading())?null:t.cls),p.AVh("kf-m-b-8","true")("headline","true")("cms-header","true"),p.Y8G("innerHTML",null==(i=n.heading())?null:i.content,p.npT)}}function sy(s,e){if(1&s&&p.nrm(0,"h3",41),2&s){let t,i;const n=p.XpG(3);p.HbH(null==(t=n.heading())?null:t.cls),p.AVh("kf-m-b-8","true")("headline","true")("cms-header","true"),p.Y8G("innerHTML",null==(i=n.heading())?null:i.content,p.npT)}}function ny(s,e){if(1&s&&p.nrm(0,"h4",41),2&s){let t,i;const n=p.XpG(3);p.HbH(null==(t=n.heading())?null:t.cls),p.AVh("kf-m-b-8","true")("headline","true")("cms-header","true"),p.Y8G("innerHTML",null==(i=n.heading())?null:i.content,p.npT)}}function ry(s,e){if(1&s&&p.nrm(0,"h2",41),2&s){let t,i;const n=p.XpG(3);p.HbH(null==(t=n.heading())?null:t.cls),p.AVh("kf-m-b-8","true")("headline","true")("cms-header","true"),p.Y8G("innerHTML",null==(i=n.heading())?null:i.content,p.npT)}}function ay(s,e){if(1&s&&p.nVh(0,ty,1,9,"h1",40)(1,iy,1,9,"h2",40)(2,sy,1,9,"h3",40)(3,ny,1,9,"h4",40)(4,ry,1,9,"h2",40),2&s){p.XpG();const t=p.r8f(0);p.vxM("h1"===t?0:"h2"===t?1:"h3"===t?2:"h4"===t?3:4)}}function oy(s,e){if(1&s&&(p.SS7(0),p.nVh(1,ay,5,1)),2&s){let t,i;const n=p.XpG();p.bH3(null==(t=n.heading())?null:t.type),p.R7$(),p.vxM(null!=(i=n.heading())&&null!=i.content&&i.content.length?1:-1)}}let Nh=(()=>{class s{constructor(){this._dialog=(0,N.WQX)(Se.bZ),this._payloadD=(0,N.WQX)($e,{self:!0}),this.config=(0,M.hFB)(),this.previewImage=(0,F.EW)(()=>{const t=this.config()?.previewimage;if(!t)return;const i=(0,A_.MR)(t),n=i?.reference.trim();return n?{...i,reference:n}:void 0}),this.aspectRatio=(0,F.EW)(()=>"liste"===this.config()?.darstellung?"1-1":"16-9"),this.platform=(0,N.WQX)(w_.O),this.darstellung=(0,F.EW)(()=>this._payloadD.darstellung()),this.source=(0,F.EW)(()=>this._payloadD.source()),this.position=(0,F.EW)(()=>this._payloadD.position()),this.showoverlay=(0,F.EW)(()=>this._payloadD.showoverlay()),this.isExtern=(0,F.EW)(()=>this._payloadD.isExtern()),this.isDisabled=(0,F.EW)(()=>this.isExtern()&&"youtube"!==this.source()),this.isAudioOnly=(0,F.EW)(()=>"mp3accwavaudio"===this.source()),this.playMediaIcon=(0,F.EW)(()=>this._payloadD.playMediaIcon()),this.headlineIcon=(0,F.EW)(()=>this._payloadD.headlineIcon()),this.metaText=(0,F.EW)(()=>this._payloadD.metaText()),this.texttext=(0,F.EW)(()=>this._payloadD.texttext()),this.isSafari=(0,F.EW)(()=>this.platform.SAFARI),this.audioDescriptionSrc=(0,F.EW)(()=>this._payloadD.audioDescriptionSrc()),this.transcriptTitle=(0,F.EW)(()=>this._payloadD.transcriptTitle()),this.videoAudioSrc=(0,F.EW)(()=>this._payloadD.videoAudioSrc()),this.posterSrc=(0,F.EW)(()=>this._payloadD.posterSrc()),this.heading=(0,F.EW)(()=>this._payloadD.heading()),this.videoAltText=(0,F.EW)(()=>this._payloadD.videoAltText()),this.hasMetaInfo=(0,F.EW)(()=>this.transcriptDialogs()?.some(t=>t.speaker?.length)),this.hasTranscript=(0,F.EW)(()=>!!this.transcriptDialogs()?.length&&!!this.transcriptTitle().length),this.shouldShowTranscript=(0,F.EW)(()=>this.hasTranscript()),this.transcriptText=(0,F.EW)(()=>this.transcriptDialogs()?.map(t=>t.text).join(" ")),this.transcriptDialogs=(0,N.vPA)([]),this.audioDescActive=(0,N.vPA)(!1),this.captions=(0,F.EW)(()=>this._payloadD.captions()),this.player=(0,M.ebz)("popupVideoAudioPlayer"),this.descriptions=(0,F.EW)(()=>this._payloadD.descriptions()),this.youtubeConfig=(0,F.EW)(()=>({...this._payloadD.youtubeConfig(),previewImage:this.previewImage(),aspectRatio:this.aspectRatio()})),this.PLAY_BUTTON_TITLE=Le,this.containerClasses=(0,F.EW)(()=>this._payloadD.containerClasses()),this.cmsId=(0,F.EW)(()=>this._payloadD.cmsId()),this.layoutClasses=(0,F.EW)(()=>this._payloadD.layoutClasses()),this.hostClasses=(0,F.EW)(()=>
1[this.layoutClasses(),this.containerClasses()].filter(Boolean).join(" "))}static{this.customElementName="cms-video-audio"}showOverlay(t){if(!this.isDisabled()){if(this._dialog.openDialogs.length)return;this._dialog.open(t,{panelClass:"popup-video-audio",width:"748px",ariaLabelledBy:"popup-title",ariaModal:!0})}}handleAudioDescActive(t){this.audioDescActive.set(t)}createTranscript(t){const i=t?.map(n=>{const r=n.text,l=new RegExp(/^<([^>\n]+?)>/).exec(r);let h="";return l?.length?(h=r.substring(l[0].length).trim(),{speaker:l[1],text:h,time:n.startTime}):(h=r.trim(),{speaker:void 0,text:h,time:n.startTime})});this.transcriptDialogs.set(i)}computedAspectRatio(){return"liste"===this.darstellung()?"1 / 1":"16 / 9"}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275cmp=p.VBU({type:s,selectors:[["cms-video-audio"]],viewQuery:function(i,n){1&i&&p.wEZ(n.player,D_,5),2&i&&p.NyB()},hostVars:12,hostBindings:function(i,n){2&i&&(p.BMQ("data-automation-id","cms-video-audio")("id",n.cmsId()),p.HbH(n.hostClasses()),p.xc7("--cms-video-audio-img-aspect-ratio",n.computedAspectRatio()),p.AVh("cms-component",!0)("cms-section-container",!0)("stretchable",!0))},inputs:{config:[1,"config"]},features:[p.nM4([$e])],ngContentSelectors:k_,decls:12,vars:5,consts:[["popupVideoAudio",""],["transcript",""],["headingTemplate",""],["videoAudioPlayer",""],["popupVideoAudioPlayer",""],[3,"headingTemplate","heading","headlineIcon","image","metaText","playerIcon","position","text","aspectRatio"],[3,"heading","headlineIcon","image","metaText","playerIcon","text"],[3,"video-page","video-tile"],[4,"hgContent"],[3,"keydown.enter","mediaClicked","headingTemplate","heading","headlineIcon","image","metaText","playerIcon","position","text","aspectRatio"],[3,"keydown.enter","mediaClicked","heading","headlineIcon","image","metaText","playerIcon","text"],[3,"audioDescriptionSrc","audioOnly","captionTrackAttr","isSafari","posterSrc","title","transcriptTrackAttr","videoAudioSrc"],[3,"config","isModal","isSafari"],[3,"heading","icon","metaText","text","useHeadline"],[3,"ngTemplateOutlet"],[3,"audioDescActive","playerTranscriptReady","audioDescriptionSrc","audioOnly","captionTrackAttr","isSafari","posterSrc","title","transcriptTrackAttr","videoAudioSrc"],[1,"highlight-preview","kf-bg-primary",3,"click","keydown.enter"],[1,"image-container"],["sizes","auto",3,"image","ratio"],["compactButtonType","primary","kf-compact-button","","type","button",1,"show-overlay-button",3,"disabled","iconName","tabindex","title"],[1,"kf-popup"],[1,"kf-popup-container"],["aria-label","Dialog schlie\xdfen","mat-icon-button","","matDialogClose","","type","button",1,"kf-popup-close","kf-color-foreground-secondary-text"],["name","ic_schliessen_24"],["id","popup-description",1,"kf-body-1","kf-m-t-24",3,"htmlContent"],[3,"autoPlay","config","isModal","isSafari"],[1,"meta-text",3,"innerHTML"],["id","popup-title",3,"innerHTML","class","kf-popup-header","kf-headline-1"],["id","popup-title",3,"innerHTML"],[1,"popup-video-player",3,"audioDescActive","playerTranscriptReady","audioDescriptionSrc","audioOnly","captionTrackAttr","isSafari","posterSrc","title","transcriptTrackAttr","videoAudioSrc"],[1,"cdk-visually-hidden"],["data-automation-id","ultimate-renderer-video-audio-accordeon-tab",1,"mat-elevation-z0","kf-after-bg-grey-200"],["collapsedHeight","auto","expandedHeight","auto"],[1,"kf-p-l-16","title",3,"innerHTML"],["data-automation-id","ultimate-renderer-accordeon-tab-content","hgSelect",".cms-list","tabindex","-1"],[1,"segment-container"],[1,"kf-text","segment"],[1,"segment"],[1,"segment__meta"],[1,"segment__content"],[3,"innerHTML","class","kf-m-b-8","headline","cms-header"],[3,"innerHTML"]],template:function(i,n){1&i&&(p.NAR(),p.nVh(0,I_,1,9,"cms-video-audio-5050",5),p.nVh(1,P_,1,6,"cms-video-audio-extern-list-item",6),p.nVh(2,O_,1,6,"cms-video-audio-list-item",6),p.nVh(3,N_,5,18,"div",7),p.nVh(4,F_,7,27,"div",7),p.DNE(5,Y_,11,7,"ng-template",null,0,p.C5r)(7,Z_,7,2,"ng-template",null,1,p.C5r)(9,ey,2,0,"ng-container",8)(10,oy,2,2,"ng-template",null,2,p.C5r)),2&i&&(p.vxM("video5050"===n.darstellung()?0:-1),p.R7$(),p.vxM("liste"===n.darstellung()&&n.isExtern()?1:-1),p.R7$(),p.vxM("liste"!==n.darstellung()||n.isExtern()?-1:2),p.R7$(),p.vxM("highlight"!==n.darstellung()||n.showoverlay()?-1:3),p.R7$(),p.vxM("highlight"===n.darstellung()&&n.showoverlay()?4:-1))},dependencies:[oe.$q,qe,B.KY,ke.HY,E_,ne,Fe,ve,je.F,he.iY,Se.tx,i_,be.GK,be.Z2,le.T3,oe.C$,He.f],styles:["[_nghost-%COMP%]{--cms-video-focus-box-sha
1dow: var(--options-focus-box-shadow);--cms-video-hover-bg: var(--state-default-hover);--cms-video-tile-bg: var(--color-background-background);--cms-video-tile-border: none;--cms-video-tile-box-shadow: var(--options-effect-box);--cms-video-tile-box-shadow-hover: var(--options-effect-box-hover);display:block}[_nghost-%COMP%]:focus-visible{outline:none}[_nghost-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]{border-radius:0}[_nghost-%COMP%]     .mat-mdc-checkbox label{line-height:1.125rem!important}[_nghost-%COMP%]     cms-video-audio-list-item video-audio-text, [_nghost-%COMP%]     cms-video-audio-list-item cms-video-audio-text, [_nghost-%COMP%]     cms-video-audio-extern-list-item video-audio-text, [_nghost-%COMP%]     cms-video-audio-extern-list-item cms-video-audio-text{padding:0!important}[_nghost-%COMP%]     cms-video-audio-list-item img, [_nghost-%COMP%]     cms-video-audio-extern-list-item img{aspect-ratio:var(--cms-video-audio-img-aspect-ratio, auto)!important}.kf-bg-primary.kf-color-primary-contrast[_nghost-%COMP%], .kf-bg-primary.kf-color-primary-contrast[_nghost-%COMP%], .kf-bg-primary.kf-color-primary-contrast   [_nghost-%COMP%]{--cms-video-hover-bg: var(--state-on-background-stage-hover);--cms-video-focus-box-shadow: var(--options-focus-box-shadow-contrast);--cms-video-tile-bg: var(--color-background-stage);--cms-video-tile-border: 1px solid var(--color-background-stage-contrast)}.kf-bg-primary.kf-color-primary-contrast[_nghost-%COMP%]     .meta-text, .kf-bg-primary.kf-color-primary-contrast[_nghost-%COMP%]   .meta-text[_ngcontent-%COMP%], .kf-bg-primary.kf-color-primary-contrast[_nghost-%COMP%]     .meta-text, .kf-bg-primary.kf-color-primary-contrast   [_nghost-%COMP%]     .meta-text, .kf-bg-primary.kf-color-primary-contrast[_nghost-%COMP%]   .meta-text[_ngcontent-%COMP%], .kf-bg-primary.kf-color-primary-contrast   [_nghost-%COMP%]   .meta-text[_ngcontent-%COMP%]{color:var(--color-primary-contrast)}.kf-bg[_nghost-%COMP%], .kf-bg[_nghost-%COMP%], .kf-bg   [_nghost-%COMP%]{--cms-video-tile-box-shadow: var(--options-effect-box-on-box);--cms-video-tile-box-shadow-hover: var(--options-effect-box-on-box-hover)}[_nghost-%COMP%]   .video-tile[_ngcontent-%COMP%], [_nghost-%COMP%]     .video-tile{overflow:hidden;border-radius:8px;box-shadow:var(--cms-video-tile-box-shadow);display:flex;flex-direction:column;background-color:var(--cms-video-tile-bg);border:var(--cms-video-tile-border);cursor:pointer}[_nghost-%COMP%]   .video-tile[_ngcontent-%COMP%]:hover, [_nghost-%COMP%]     .video-tile:hover{background-color:var(--cms-video-hover-bg);box-shadow:var(--cms-video-tile-box-shadow-hover)}[_nghost-%COMP%]   .video-tile[_ngcontent-%COMP%]:focus, [_nghost-%COMP%]     .video-tile:focus{box-shadow:var(--cms-video-focus-box-shadow)}[_nghost-%COMP%]   .video-tile[_ngcontent-%COMP%]   .show-overlay-button.is-disabled[_ngcontent-%COMP%], [_nghost-%COMP%]     .video-tile .show-overlay-button.is-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.kf-row.kf-align-items-stretch[_nghost-%COMP%]   .video-tile[_ngcontent-%COMP%], .kf-row.kf-align-items-stretch   [_nghost-%COMP%]   .video-tile[_ngcontent-%COMP%]{height:100%}.kf-row.kf-align-items-stretch[_nghost-%COMP%]     .video-tile, .kf-row.kf-align-items-stretch   [_nghost-%COMP%]     .video-tile{height:100%}.kf-row.kf-align-items-stretch[_nghost-%COMP%]     video-audio-text, .kf-row.kf-align-items-stretch   [_nghost-%COMP%]     video-audio-text, .kf-row.kf-align-items-stretch[_nghost-%COMP%]     cms-video-audio-text, .kf-row.kf-align-items-stretch   [_nghost-%COMP%]     cms-video-audio-text{flex-grow:1}.highlight-preview[_ngcontent-%COMP%]{position:relative;cursor:pointer}.highlight-preview-placeholder[_ngcontent-%COMP%], .highlight-preview[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]{width:100%;height:auto;aspect-ratio:var(--cms-video-audio-img-aspect-ratio, auto)}.highlight-preview[_ngcontent-%COMP%]   .image-container.has-img[_ngcontent-%COMP%]{background-color:#f1f1eb}.highlight-preview[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;aspect-ratio:var(--cms-video-audio-img-aspect-ratio, auto)}.highlight-preview[_ngcontent-%COMP%]   .show-overlay-button[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}
1.video-page[_ngcontent-%COMP%]     cms-video-audio-text .headline, .video-page[_ngcontent-%COMP%]     cms-video-audio-text .text{margin-bottom:1rem!important}.video-page[_ngcontent-%COMP%]     cms-video-audio-text .headline{font-weight:700}@media screen and (width>=600px){.video-page[_ngcontent-%COMP%]:has(>cms-video-audio-player){min-width:322.5px}}[_nghost-%COMP%]     .meta-text, .meta-text[_ngcontent-%COMP%]{font-size:.81rem;color:inherit}[_nghost-%COMP%]  .popup-video-audio .mat-mdc-dialog-container{padding:0}[_nghost-%COMP%]  .popup-video-audio .popup-video-player{margin-top:24px}.kf-popup-close[_ngcontent-%COMP%]:focus{box-shadow:var(--kf-icon-button-focus)}.kf-color-primary-contrast[_nghost-%COMP%]     .mat-expansion-panel, .kf-color-primary-contrast[_nghost-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content.title[_ngcontent-%COMP%], .kf-color-primary-contrast[_nghost-%COMP%]     .mat-expansion-panel, .kf-color-primary-contrast   [_nghost-%COMP%]     .mat-expansion-panel, .kf-color-primary-contrast[_nghost-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content.title[_ngcontent-%COMP%], .kf-color-primary-contrast   [_nghost-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]   .mat-content.title[_ngcontent-%COMP%]{color:inherit;font-weight:700!important}[_nghost-%COMP%]     .mat-expansion-panel .segment-container .text.segment, [_nghost-%COMP%]     .mat-expansion-indicator:after{color:inherit}"],changeDetection:0})}}return s})();const ly=s=>{const e=Nh.customElementName;if(!customElements.get(e)){const t=(0,ae.gw)(Nh,{injector:s});customElements.define(e,t)}}},1452(Ue,Ae,te){var le=te(2843);Ue.exports=function(ae,he){return void 0===he&&(he=!1),function(Se,be,je){if(Se)ae(Se);else if(be.statusCode>=400&&be.statusCode<=599){var B=je;if(he)if(le.TextDecoder){var oe=function M(F){return void 0===F&&(F=""),F.toLowerCase().split(";").reduce(function(ae,he){var Se=he.split("="),je=Se[1];return"charset"===Se[0].trim()?je.trim():ae},"utf-8")}(be.headers&&be.headers["content-type"]);try{B=new TextDecoder(oe).decode(je)}catch{}}else B=String.fromCharCode.apply(null,new Uint8Array(je));ae({cause:B})}else ae(null,je)}}},7621(Ue,Ae,te){var le=te(2843),N=te(4634),M=te(9819),F=te(6081),ae=te(8515);function je(W,He,p){var Ze=W;return M(He)?(p=He,"string"==typeof W&&(Ze={uri:W})):Ze=N({},He,{uri:W}),Ze.callback=p,Ze}function B(W,He,p){return oe(He=je(W,He,p))}function oe(W){if(typeof W.callback>"u")throw new Error("callback argument missing");if(W.requestType&&B.requestInterceptorsStorage.getIsEnabled()){var p=B.requestInterceptorsStorage.execute(W.requestType,{uri:W.uri||W.url,headers:W.headers||{},body:W.body,metadata:W.metadata||{},retry:W.retry,timeout:W.timeout});W.uri=p.uri,W.headers=p.headers,W.body=p.body,W.metadata=p.metadata,W.retry=p.retry,W.timeout=p.timeout}var Ze=!1,ge=function(ve,me,ne){Ze||(Ze=!0,W.callback(ve,me,ne))};function Pe(){var ee=void 0;if(ee=Te.response?Te.response:Te.responseText||function ke(W){try{if("document"===W.responseType)return W.responseXML;if(""===W.responseType&&(!W.responseXML||"parsererror"!==W.responseXML.documentElement.nodeName))return W.responseXML}catch{}return null}(Te),xe)try{ee=JSON.parse(ee)}catch{}return ee}function qe(ee){if(clearTimeout(de),clearTimeout(W.retryTimeout),ee instanceof Error||(ee=new Error(""+(ee||"Unknown XMLHttpRequest Error"))),ee.statusCode=0,Z||!B.retryManager.getIsEnabled()||!W.retry||!W.retry.shouldRetry()){if(W.requestType&&B.responseInterceptorsStorage.getIsEnabled()){var me=B.responseInterceptorsStorage.execute(W.requestType,{headers:pe.headers||{},body:pe.body,responseUrl:Te.responseURL,responseType:Te.responseType});pe.body=me.body,pe.headers=me.headers}return ge(ee,pe)}W.retryTimeout=setTimeout(function(){W.retry.moveToNextAttempt(),W.xhr=Te,oe(W)},W.retry.getCurrentFuzzedDelay())}function we(){if(!Z){var ee;clearTimeout(de),clearTimeout(W.retryTimeout);var ve=pe,me=null;if(0!==(ee=W.useXDR&&void 0===Te.status?200:1223===Te.status?204:Te.status)?(ve={body:Pe(),statusCode:ee,method:k,headers:{},url:A,rawRequest:Te},Te.getAllResponseHeaders&&(ve.headers=function(He){var p={};return He&&He.trim().split("\n").forEach(function(Ze){var ge=Ze.indexOf(":"),Re=Ze.slice(0,ge).trim().toLowerCase(),Pe=Ze.slice(ge+1).trim();typeof p[Re]>"u"?p[Re]=Pe:Array.isArray(p[Re])?p[Re].push(Pe):p[Re]=[p[Re],Pe]}),p}(Te.getAllResponseHeaders()))):me=new Error("Internal XMLHttpRequest Error"),W.requestType&&B.responseInterceptorsStorage.getIsEnabled()){var Fe=B.responseInterceptorsStorage.execute(W.requestType,{headers:ve.headers||{},body:ve.body,responseUrl:Te.responseURL,responseType:Te.responseType});ve.body=Fe.body,ve.headers=Fe.headers}return ge(me,ve,ve.body)}}var Te=W.xhr||null;Te||(Te=W.cors||W.useXDR?new B.XDomainRequest:new B.XMLHttpRequest);var J,Z,de,A=Te.url=W.uri||W.url,k=Te.method=W.method||"GET",G=W.body||W.data,ie=Te.headers=W.headers||{},ye=!!W.sync,xe=!1,pe={body:void 0,headers:{},statusCode:0,method:k,url:A,rawRequest:Te};if("json"in W&&!1!==W.json&&(xe=!0,ie.accept||ie.Accept||(ie.Accept="application/json"),"GET"!==k&&"HEAD"!==k&&(ie["content-type"]||ie["Content-Type"]||(ie["Content-Type"]="application/json"),G=JSON.stringify(!0===W.json?G:W.json))),Te.onreadystatechange=function Re(){4===Te.readyState&&!B.responseInterceptorsStorage.getIsEnabled()&&setTimeout(we,0)},Te.onload=we,Te.onerror=qe,Te.onprogress=function(){},Te.onabort=function(){Z=!0,clearTimeout(W.retryTimeout)},Te.ontimeout=qe,Te.open(k,A,!ye,W.username,W.password),ye||(Te.withCredentials=!!W.withCredentials),!ye&&W.timeout>0&&(de=setTimeout(function(){if(!Z){Z=!0,Te.abort("timeout");var ee=new Error("XMLHttpRequest timeout");ee.code="ETIMEDOUT",qe(ee)}},W.timeout)),Te.setRequestHeader)for(J in ie)ie.hasOwnProperty(J)&&Te.setRequestHeader(J,ie[J]);else if(W.headers&&!function be(W){for(var He in W)if(W.hasOwnProperty(He))return!1;return!0}(W.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in W&&(Te.responseType=W.responseType),"beforeSend"in W&&"function"==typeof W.beforeSend&&W.beforeSend(Te),Te.send(G||null),Te}B.httpHandler=te(1452),B.requestInterceptorsStorage=new F,B.responseInterceptorsStorage=new F,B.retryManager=new ae,Ue.exports=B,Ue.exports.default=B,B.XMLHttpRequest=le.XMLHttpRequest||function Le(){},B.XDomainRequest="withCredentials"in new B.XMLHttpRequest?B.XMLHttpRequest:le.XDomainRequest,function Se(W,He){for(var p=0;p<W.length;p++)He(W[p])}(["get","put","post","patch","head","delete"],function(W){B["delete"===W?"del":W]=function(He,p,Ze){return(p=je(He,p,Ze)).method=W.toUpperCase(),oe(p)}})},6081(Ue){function le(M,F){(null==F||F>M.length)&&(F=M.length);for(var ae=0,he=new Array(F);ae<F;ae++)he[ae]=M[ae];return he}Ue.exports=function(){function M(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1}var F=M.prototype;return F.getIsEnabled=function(){return this.enabled_},F.enable=function(){this.enabled_=!0},F.disable=function(){this.enabled_=!1},F.reset=function(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1},F.addInterceptor=function(he,Se){this.typeToInterceptorsMap_.has(he)||this.typeToInterceptorsMap_.set(he,new Set);var be=this.typeToInterceptorsMap_.get(he);return!be.has(Se)&&(be.add(Se),!0)},F.removeInterceptor=function(he,Se){var be=this.typeToInterceptorsMap_.get(he);return!(!be||!be.has(Se)||(be.delete(Se),0))},F.clearInterceptorsByType=function(he){return!!this.typeToInterceptorsMap_.get(he)&&(this.t
vendor: 24,540 bytes, line 1
1ypeToInterceptorsMap_.delete(he),this.typeToInterceptorsMap_.set(he,new Set),!0)},F.clear=function(){return!!this.typeToInterceptorsMap_.size&&(this.typeToInterceptorsMap_=new Map,!0)},F.getForType=function(he){return this.typeToInterceptorsMap_.get(he)||new Set},F.execute=function(he,Se){for(var B,je=function Ae(M,F){var ae=typeof Symbol<"u"&&M[Symbol.iterator]||M["@@iterator"];if(ae)return(ae=ae.call(M)).next.bind(ae);if(Array.isArray(M)||(ae=function te(M,F){if(M){if("string"==typeof M)return le(M,F);var ae=Object.prototype.toString.call(M).slice(8,-1);if("Object"===ae&&M.constructor&&(ae=M.constructor.name),"Map"===ae||"Set"===ae)return Array.from(M);if("Arguments"===ae||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ae))return le(M,F)}}(M))||F&&M&&"number"==typeof M.length){ae&&(M=ae);var he=0;return function(){return he>=M.length?{done:!0}:{done:!1,value:M[he++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.getForType(he));!(B=je()).done;){var oe=B.value;try{Se=oe(Se)}catch{}}return Se},M}()},8515(Ue){var Ae=function(){function le(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1}var N=le.prototype;return N.getIsEnabled=function(){return this.enabled_},N.enable=function(){this.enabled_=!0},N.disable=function(){this.enabled_=!1},N.reset=function(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1},N.getMaxAttempts=function(){return this.maxAttempts_},N.setMaxAttempts=function(F){this.maxAttempts_=F},N.getDelayFactor=function(){return this.delayFactor_},N.setDelayFactor=function(F){this.delayFactor_=F},N.getFuzzFactor=function(){return this.fuzzFactor_},N.setFuzzFactor=function(F){this.fuzzFactor_=F},N.getInitialDelay=function(){return this.initialDelay_},N.setInitialDelay=function(F){this.initialDelay_=F},N.createRetry=function(F){var ae=void 0===F?{}:F;return new te({maxAttempts:ae.maxAttempts||this.maxAttempts_,delayFactor:ae.delayFactor||this.delayFactor_,fuzzFactor:ae.fuzzFactor||this.fuzzFactor_,initialDelay:ae.initialDelay||this.initialDelay_})},le}(),te=function(){function le(M){this.maxAttempts_=M.maxAttempts,this.delayFactor_=M.delayFactor,this.fuzzFactor_=M.fuzzFactor,this.currentDelay_=M.initialDelay,this.currentAttempt_=1}var N=le.prototype;return N.moveToNextAttempt=function(){this.currentAttempt_++,this.currentDelay_=this.currentDelay_+this.currentDelay_*this.delayFactor_},N.shouldRetry=function(){return this.currentAttempt_<this.maxAttempts_},N.getCurrentDelay=function(){return this.currentDelay_},N.getCurrentMinPossibleDelay=function(){return(1-this.fuzzFactor_)*this.currentDelay_},N.getCurrentMaxPossibleDelay=function(){return(1+this.fuzzFactor_)*this.currentDelay_},N.getCurrentFuzzedDelay=function(){var F=this.getCurrentMinPossibleDelay(),ae=this.getCurrentMaxPossibleDelay();return F+Math.random()*(ae-F)},le}();Ue.exports=Ae},3499(Ue,Ae){function le(be,je){return void 0===je&&(je=Object),je&&"function"==typeof je.freeze?je.freeze(be):be}var M=le({HTML:"text/html",isHTML:function(be){return be===M.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),F=le({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(be){return be===F.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),ae=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,he=new RegExp("[\\-\\.0-9"+ae.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),Se=new RegExp("^"+ae.source+he.source+"*(?::"+ae.source+he.source+"*)?$");Ae.assign=function N(be,je){if(null===be||"object"!=typeof be)throw new TypeError("target is not an object");for(var B in je)Object.prototype.hasOwnProperty.call(je,B)&&(be[B]=je[B]);return be},Ae.find=function te(be,je,B){if(void 0===B&&(B=Array.prototype),be&&"function"==typeof B.find)return B.find.call(be,je);for(var oe=0;oe<be.length;oe++)if(Object.prototype.hasOwnProperty.call(be,oe)){var ke=be[oe];if(je.call(void 0,ke,oe,be))return ke}},Ae.freeze=le,Ae.MIME_TYPE=M,Ae.NAMESPACE=F,Ae.nameStartChar=ae,Ae.nameChar=he,Ae.tagNamePattern=Se},2219(Ue,Ae,te){var N=te(3499),M=te(7315),F=te(1032),ae=te(3876),he=M.DOMImplementation,Se=N.NAMESPACE,be=ae.ParseError,je=ae.XMLReader;function B(ge){return ge.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function oe(ge){this.options=ge||{locator:{}}}function Le(){this.cdata=!1}function W(ge,Re){Re.lineNumber=ge.lineNumber,Re.columnNumber=ge.columnNumber}function He(ge){if(ge)return"\n@"+(ge.systemId||"")+"#[line:"+ge.lineNumber+",col:"+ge.columnNumber+"]"}function p(ge,Re,Pe){return"string"==typeof ge?ge.substr(Re,Pe):ge.length>=Re+Pe||Re?new java.lang.String(ge,Re,Pe)+"":ge}function Ze(ge,Re){ge.currentElement?ge.currentElement.appendChild(Re):ge.doc.appendChild(Re)}oe.prototype.parseFromString=function(ge,Re){var Pe=this.options,qe=new je,we=Pe.domBuilder||new Le,Te=Pe.errorHandler,J=Pe.locator,Z=Pe.xmlns||{},A=/\/x?html?$/.test(Re),k=A?F.HTML_ENTITIES:F.XML_ENTITIES;return J&&we.setDocumentLocator(J),qe.errorHandler=function ke(ge,Re,Pe){if(!ge){if(Re instanceof Le)return Re;ge=Re}var qe={},we=ge instanceof Function;function Te(J){var Z=ge[J];!Z&&we&&(Z=2==ge.length?function(A){ge(J,A)}:ge),qe[J]=Z&&function(A){Z("[xmldom "+J+"]\t"+A+He(Pe))}||function(){}}return Pe=Pe||{},Te("warning"),Te("error"),Te("fatalError"),qe}(Te,we,J),qe.domBuilder=Pe.domBuilder||we,A&&(Z[""]=Se.HTML),Z.xml=Z.xml||Se.XML,ge&&"string"==typeof ge?qe.parse((Pe.normalizeLineEndings||B)(ge),Z,k):qe.errorHandler.error("invalid doc source"),we.doc},Le.prototype={startDocument:function(){this.doc=(new he).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(ge,Re,Pe,qe){var we=this.doc,Te=we.createElementNS(ge,Pe||Re),J=qe.length;Ze(this,Te),this.currentElement=Te,this.locator&&W(this.locator,Te);for(var Z=0;Z<J;Z++){ge=qe.getURI(Z);var A=qe.getValue(Z),k=(Pe=qe.getQName(Z),we.createAttributeNS(ge,Pe));this.locator&&W(qe.getLocator(Z),k),k.value=k.nodeValue=A,Te.setAttributeNode(k)}},endElement:function(ge,Re,Pe){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(ge,Re){},endPrefixMapping:function(ge){},processingInstruction:function(ge,Re){var Pe=this.doc.createProcessingInstruction(ge,Re);this.locator&&W(this.locator,Pe),Ze(this,Pe)},ignorableWhitespace:function(ge,Re,Pe){},characters:function(ge,Re,Pe){if(ge=p.apply(this,arguments)){if(this.cdata)var qe=this.doc.createCDATASection(ge);else qe=this.doc.createTextNode(ge);this.currentElement?this.currentElement.appendChild(qe):/^\s*$/.test(ge)&&this.doc.appendChild(qe),this.locator&&W(this.locator,qe)}},skippedEntity:function(ge){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(ge){(this.locator=ge)&&(ge.lineNumber=0)},comment:function(ge,Re,Pe){ge=p.apply(this,arguments);var qe=this.doc.createComment(ge);this.locator&&W(this.locator,qe),Ze(this,qe)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(ge,Re,Pe){var qe=this.doc.implementation;if(qe&&qe.createDocumentType){var we=qe.createDocumentType(ge,Re,Pe);this.locator&&W(this.locator,we),Ze(this,we),this.doc.doctype=we}},warning:function(ge){console.warn("[xmldom warning]\t"+ge,He(this.locator))},error:function(ge){console.error("[xmldom error]\t"+ge,He(this.locator))},fatalError:function(ge){throw new be(ge,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(ge){Le.prototype[ge]=function(){return null}}),Ae.DOMParser=oe},7315(Ue,Ae,te){var le=te(3499),N=le.find,M=le.NAMESPACE,F=le.tagNamePattern;function ae(_){return""!==_}function Se(_,T){return _.hasOwnProperty(T)||(_[T]=!0),_}function be(_){if(!_)return[];var T=function he(_){return _?_.split(/[\t\n\f\r ]+/).filter(ae):[]}(_);return Object.keys(T.reduce(Se,{}))}function B(_,T){for(var D in _)Object.prototype.hasOwnProperty.call(_,D)&&(T[D]=_[D])}function oe(_,T){var D=_.prototype;if(!(D instanceof T)){let re=function(){};re.prototype=T.prototype,re=new re,B(D,re),_.prototype=D=re}D.constructor!=_&&("function"!=typeof _&&console.error("unknown Class:"+_),D.constructor=_)}var ke={},Le=ke.ELEMENT_NODE=1,W=ke.ATTRIBUTE_NODE=2,He=ke.TEXT_NODE=3,p=ke.CDATA_SECTION_NODE=4,Ze=ke.ENTITY_REFERENCE_NODE=5,ge=ke.ENTITY_NODE=6,Re=ke.PROCESSING_INSTRUCTION_NODE=7,Pe=ke.COMMENT_NODE=8,qe=ke.DOCUMENT_NODE=9,we=ke.DOCUMENT_TYPE_NODE=10,Te=ke.DOCUMENT_FRAGMENT_NODE=11,J=ke.NOTATION_NODE=12,Z={},A={},ie=(Z.INDEX_SIZE_ERR=(A[1]="Index size error",1),Z.DOMSTRING_SIZE_ERR=(A[2]="DOMString size error",2),Z.HIERARCHY_REQUEST_ERR=(A[3]="Hierarchy request error",3)),xe=(Z.WRONG_DOCUMENT_ERR=(A[4]="Wrong document",4),Z.INVALID_CHARACTER_ERR=(A[5]="Invalid character",5)),ee=(Z.NO_DATA_ALLOWED_ERR=(A[6]="No data allowed",6),Z.NO_MODIFICATION_ALLOWED_ERR=(A[7]="No modification allowed",7),Z.NOT_FOUND_ERR=(A[8]="Not found",8)),me=(Z.NOT_SUPPORTED_ERR=(A[9]="Not supported",9),Z.INUSE_ATTRIBUTE_ERR=(A[10]="Attribute in use",10)),ne=Z.INVALID_STATE_ERR=(A[11]="Invalid state",11);function De(_,T){if(T instanceof Error)var D=T;else D=this,Error.call(this,A[_]),this.message=A[_],Error.captureStackTrace&&Error.captureStackTrace(this,De);return D.code=_,T&&(this.message=this.message+": "+T),D}function Ke(){}function C(_,T){this._node=_,this._refresh=T,ei(this)}function ei(_){var T=_._node._inc||_._node.ownerDocument._inc;if(_._inc!==T){var D=_._refresh(_._node);if(Ie(_,"length",D.length),!_.$$length||D.length<_.$$length)for(var q=D.length;q in _;q++)Object.prototype.hasOwnProperty.call(_,q)&&delete _[q];B(D,_),_._inc=T}}function se(){this._nameIndex=Object.create(null)}function fi(_,T){for(var D=_.length;D--;)if(_[D]===T)return D}function At(_,T){_._nameIndex[T.nodeName]===T&&delete _._nameIndex[T.nodeName]}function Fi(_,T,D,q){if(q?(T[fi(T,q)]=D,At(T,q)):T[T.length++]=D,function Ei(_,T){_._nameIndex[T.nodeName]=T}(T,D),_){D.ownerElement=_;var re=_.ownerDocument;re&&(q&&Ar(re,_,q),function kn(_,T,D){_&&_._inc++,D.namespaceURI===M.XMLNS&&(T._nsMap[D.prefix?D.localName:""]=D.value)}(re,_,D))}}function Xe(_,T,D){var q=fi(T,D);if(!(q>=0))throw new De(ee,new Error(_.tagName+"@"+D));for(var re=T.length-1;q<re;)T[q]=T[++q];if(T.length=re,At(T,D),_){var Ce=_.ownerDocument;Ce&&(Ar(Ce,_,D),D.ownerElement=null)}}function Qi(){}function Je(){}function pi(_){return("<"==_?"&lt;":">"==_&&"&gt;")||"&"==_&&"&amp;"||'"'==_&&"&quot;"||"&#"+_.charCodeAt()+";"}function mi(_,T){return Ge(_,null,{enter:function(D){return!T(D)||Ge.STOP}})===Ge.STOP}function Ge(_,T,D){for(var q=[{node:_,context:T,phase:Ge.ENTER}];q.length>0;){var re=q.pop();if(re.phase===Ge.ENTER){var Ce=D.enter(re.node,re.context);if(Ce===Ge.STOP)return Ge.STOP;if(q.push({node:re.node,context:Ce,phase:Ge.EXIT}),null==Ce)continue;for(var ue=re.node.lastChild;ue;)q.push({node:ue,context:Ce,phase:Ge.ENTER}),ue=ue.previousSibling}else D.exit&&D.exit(re.node,re.context)}}function xt(){this.ownerDocument=this}function Ar(_,T,D,q){_&&_._inc++,D.namespaceURI===M.XMLNS&&delete T._nsMap[D.prefix?D.localName:""]}function Ji(_,T,D){if(_&&_._inc){_._inc++;var q=T.childNodes;if(D)q[q.length++]=D;else{for(var re=T.firstChild,Ce=0;re;)q[Ce++]=re,re=re.nextSibling;q.length=Ce,delete q[q.length]}}}function wr(_,T){var D=T.previousSibling,q=T.nextSibling;return D?D.nextSibling=q:_.firstChild=q,q?q.previousSibling=D:_.lastChild=D,T.parentNode=null,T.previousSibling=null,T.nextSibling=null,Ji(_.ownerDocument,_),T}function gi(_){return _&&_.nodeType===Je.DOCUMENT_TYPE_NODE}function ti(_){return _&&_.nodeType===Je.ELEMENT_NODE}function ii(_){return _&&_.nodeType===Je.TEXT_NODE}function Fs(_,T){var D=_.childNodes||[];if(N(D,ti)||gi(T))return!1;var q=N(D,gi);return!(T&&q&&D.indexOf(q)>D.indexOf(T))}function kr(_,T){var D=_.childNodes||[];if(N(D,function q(Ce){return ti(Ce)&&Ce!==T}))return!1;var re=N(D,gi);return!(T&&re&&D.indexOf(re)>D.indexOf(T))}function eo(_,T,D){var q=_.childNodes||[],re=T.childNodes||[];if(T.nodeType===Je.DOCUMENT_FRAGMENT_NODE){var Ce=re.filter(ti);if(Ce.length>1||N(re,ii))throw new De(ie,"More than one element or text in fragment");if(1===Ce.length&&!Fs(_,D))throw new De(ie,"Element in fragment can not be inserted before doctype")}if(ti(T)&&!Fs(_,D))throw new De(ie,"Only one element can be added and only after doctype");if(gi(T)){if(N(q,gi))throw new De(ie,"Only one doctype is allowed");var ue=N(q,ti);if(D&&q.indexOf(ue)<q.indexOf(D))throw new De(ie,"Doctype can only be inserted before an element");if(!D&&ue)throw new De(ie,"Doctype can not be appended since element is present")}}function In(_,T,D){var q=_.childNodes||[],re=T.childNodes||[];if(T.nodeType===Je.DOCUMENT_FRAGMENT_NODE){var Ce=re.filter(ti);if(Ce.length>1||N(re,ii))throw new De(ie,"More than one element or text in fragment");if(1===Ce.length&&!kr(_,D))throw new De(ie,"Element in fragment can not be inserted before doctype")}if(ti(T)&&!kr(_,D))throw new De(ie,"Only one element can be added and only after doctype");if(gi(T)){if(N(q,function(Dt){return gi(Dt)&&Dt!==D}))throw new De(ie,"Only one doctype is allowed");var ue=N(q,ti);if(D&&q.indexOf(ue)<q.indexOf(D))throw new De(ie,"Doctype can only be inserted before an element")}}function Zi(_,T,D,q){(function Ai(_,T,D){if(!function Mt(_){return _&&(_.nodeType===Je.DOCUMENT_NODE||_.nodeType===Je.DOCUMENT_FRAGMENT_NODE||_.nodeType===Je.ELEMENT_NODE)}(_))throw new De(ie,"Unexpected parent node type "+_.nodeType);if(D&&D.parentNode!==_)throw new De(ee,"child not in parent");if(!function Dr(_){return _&&(ti(_)||ii(_)||gi(_)||_.nodeType===Je.DOCUMENT_FRAGMENT_NODE||_.nodeType===Je.COMMENT_NODE||_.nodeType===Je.PROCESSING_INSTRUCTION_NODE)}(T)||gi(T)&&_.nodeType!==Je.DOCUMENT_NODE)throw new De(ie,"Unexpected node type "+T.nodeType+" for parent node type "+_.nodeType)})(_,T,D),_.nodeType===Je.DOCUMENT_NODE&&(q||eo)(_,T,D);var re=T.parentNode;if(re&&re.removeChild(T),T.nodeType===Te){var Ce=T.firstChild;if(null==Ce)return T;var ue=T.lastChild}else Ce=ue=T;var ot=D?D.previousSibling:_.lastChild;Ce.previousSibling=ot,ue.nextSibling=D,ot?ot.nextSibling=Ce:_.firstChild=Ce,null==D?_.lastChild=ue:D.previousSibling=ue;do{Ce.parentNode=_,_s(Ce,_.ownerDocument||_)}while(Ce!==ue&&(Ce=Ce.nextSibling));return Ji(_.ownerDocument||_,_),T.nodeType==Te&&(T.firstChild=T.lastChild=null),T}function _s(_,T){if(_.ownerDocument!==T){if(_.ownerDocument=T,_.nodeType===Le&&_.attributes)for(var D=0;D<_.attributes.length;D++){var q=_.attributes.item(D);q&&(q.ownerDocument=T)}for(var re=_.firstChild;re;)_s(re,T),re=re.nextSibling}}function wt(){this._nsMap={}}function Us(){}function Vs(){}function Hs(){}function Pn(){}function wi(){}function Di(){}function qs(){}function On(){}function Mn(){}function zs(){}function jn(){}function Ln(){}function Ir(_,T,D){var q=!!D&&!!D.requireWellFormed,re=[],Ce=9==this.nodeType&&this.documentElement||this,ue=Ce.prefix,ot=Ce.namespaceURI;if(ot&&null==ue&&null==(ue=Ce.lookupPrefix(ot)))var Et=[{namespace:ot,prefix:null}];return Gs(this,re,_,T,Et,q),re.join("")}function Pr(_,T,D){var q=_.prefix||"",re=_.namespaceURI;if(!re||"xml"===q&&re===M.XML||re===M.XMLNS)return!1;for(var Ce=D.length;Ce--;){var ue=D[Ce];if(ue.prefix===q)return ue.namespace!==re}return!0}function $s(_,T,D,q){if(q&&!F.test(T))throw new De(ne,'The attribute name "'+T+'" is not a valid XML QName');_.push(" ",T,'="',D.replace(/[<>&"\t\n\r]/g,pi),'"')}function Gs(_,T,D,q,re,Ce){re||(re=[]),Ge(_,{ns:re,isHTML:D},{enter:function(ue,ot){var Et=ot.ns,Dt=ot.isHTML;if(q){if(!(ue=q(ue)))return null;if("string"==typeof ue)return T.push(ue),null}switch(ue.nodeType){case Le:var si=ue.attributes,Ws=si.length,Qe=ue.tagName,vi=Qe;if(!(Dt=M.isHTML(ue.namespaceURI)||Dt)&&!ue.prefix&&ue.namespaceURI){for(var Rn,Xs=0;Xs<si.length;Xs++)if("xmlns"===si.item(Xs).name){Rn=si.item(Xs).value;break}if(!Rn)for(var Ui=Et.length-1;Ui>=0;Ui--)if(""===(es=Et[Ui]).prefix&&es.namespace===ue.namespaceURI){Rn=es.namespace;break}if(Rn!==ue.namespaceURI)for(Ui=Et.length-1;Ui>=0;Ui--){var es;if((es=Et[Ui]).namespace===ue.namespaceURI){es.prefix&&(vi=es.prefix+":"+Qe);break}}}if(Ce&&!F.test(vi))throw new De(ne,'The element name "'+vi+'" is not a valid XML QName');T.push("<",vi);for(var _i=Et.slice(),lt=0;lt<Ws;lt++)"xmlns"==(Ht=si.item(lt)).prefix?_i.push({prefix:Ht.localName,namespace:Ht.value}):"xmlns"==Ht.nodeName&&_i.push({prefix:"",namespace:Ht.value});for(lt=0;lt<Ws;lt++){var Ht;if(Pr(Ht=si.item(lt),0,_i)){var Nn=Ht.prefix||"";$s(T,Nn?"xmlns:"+Nn:"xmlns",ni=Ht.namespaceURI,Ce),_i.push({prefix:Nn,namespace:ni})}var ts=q?q(Ht):Ht;ts&&("string"==typeof ts?T.push(ts):$s(T,ts.name,ts.value,Ce))}if(Qe===vi&&Pr(ue,0,_i)){var ni,Bn=ue.prefix||"";$s(T,Bn?"xmlns:"+Bn:"xmlns",ni=ue.namespaceURI,Ce),_i.push({prefix:Bn,namespace:ni})}var Vi=ue.firstChild;if(Vi||Dt&&!/^(?:meta|link|img|br|hr|input)$/i.test(Qe)){if(T.push(">"),Dt&&/^script$/i.test(Qe)){for(;Vi;)Vi.data?T.push(Vi.data):Gs(Vi,T,Dt,q,_i.slice(),Ce),Vi=Vi.nextSibling;return T.push("</",Qe,">"),null}return{ns:_i,isHTML:Dt,tag:vi}}return T.push("/>"),null;case qe:case Te:return{ns:Et.slice(),isHTML:Dt,tag:null};case W:return $s(T,ue.name,ue.value,Ce),null;case He:return T.push(ue.data.replace(/[<&>]/g,pi)),null;case p:if(Ce&&-1!==ue.data.indexOf("]]>"))throw new De(ne,'The CDATASection data contains "]]>"');return T.push("<![CDATA[",ue.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case Pe:if(Ce&&-1!==ue.data.indexOf("--\x3e"))throw new De(ne,'The comment node data contains "--\x3e"');return T.push("\x3c!--",ue.data,"--\x3e"),null;case we:if(Ce){if(!F.test(ue.name))throw new De(ne,'The doctype name "'+ue.name+'" is not a valid XML Name');if(ue.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(ue.publicId))throw new De(ne,"DocumentType publicId is not a valid PubidLiteral");if(ue.systemId&&!/^("[^"]*"|'[^']*')$/.test(ue.systemId))throw new De(ne,"DocumentType systemId is not a valid SystemLiteral");if(ue.internalSubset&&-1!==ue.internalSubset.indexOf("]>"))throw new De(ne,'DocumentType internalSubset contains "]>"')}var Hi=ue.publicId,ri=ue.systemId;if(T.push("<!DOCTYPE ",ue.name),Hi)T.push(" PUBLIC ",Hi),ri&&"."!=ri&&T.push(" ",ri),T.push(">");else if(ri&&"."!=ri)T.push(" SYSTEM ",ri,">");else{var jr=ue.internalSubset;jr&&T.push(" [",jr,"]"),T.push(">")}return null;case Re:if(Ce){if(!F.test(ue.target)||-1!==ue.target.indexOf(":")||"xml"===ue.target.toLowerCase())throw new De(ne,'The processing instruction target "'+ue.target+'" is not a valid XML NCName or is reserved');if(-1!==ue.data.indexOf("?>"))throw new De(ne,'The ProcessingInstruction data contains "?>"')}return T.push("<?",ue.target," ",ue.data,"?>"),null;case Ze:if(Ce&&!F.test(ue.nodeName))throw new De(ne,'The entity reference name "'+ue.nodeName+'" is not a valid XML Name');return T.push("&",ue.nodeName,";"),null;default:return T.push("??",ue.nodeName),null}},exit:function(ue,ot){ot&&ot.tag&&T.push("</",ot.tag,">")}})}function Mr(_,T,D){var q;return Ge(T,null,{enter:function(re,Ce){var ue=new re.constructor;for(var ot in re)if(Object.prototype.hasOwnProperty.call(re,ot)){var Et=re[ot];"object"!=typeof Et&&Et!=ue[ot]&&(ue[ot]=Et)}re.childNodes&&(ue.childNodes=new Ke),ue.ownerDocument=_;var Dt=D;switch(ue.nodeType){case Le:var si=re.attributes,Ws=ue.attributes=new se,Qe=si.length;Ws._ownerElement=ue;for(var vi=0;vi<Qe;vi++)ue.setAttributeNode(Mr(_,si.item(vi),!0));break;case W:Dt=!0}return null!==Ce?Ce.appendChild(ue):q=ue,Dt?ue:null}}),q}function Ie(_,T,D){_[T]=D}Z.SYNTAX_ERR=(A[12]="Syntax error",12),Z.INVALID_MODIFICATION_ERR=(A[13]="Invalid modification",13),Z.NAMESPACE_ERR=(A[14]="Invalid namespace",14),Z.INVALID_ACCESS_ERR=(A[15]="Invalid access",15),De.prototype=Error.prototype,B(Z,De),Ke.prototype={length:0,item:function(_){return _>=0&&_<this.length?this[_]:null},toString:function(_,T,D){for(var q=!!D&&!!D.requireWellFormed,re=[],Ce=0;Ce<this.length;Ce++)Gs(this[Ce],re,_,T,null,q);return re.join("")},filter:function(_){return Array.prototype.filter.call(this,_)},indexOf:function(_){return Array.prototype.indexOf.call(this,_)}},C.prototype.item=function(_){return ei(this),this[_]||null},oe(C,Ke),se.prototype={length:0,item:Ke.prototype.item,getNamedItem:function(_){for(var T=this.length;T--;){var D=this[T];if(D.nodeName==_)return D}},setNamedItem:function(_){var T=_.ownerElement;if(T&&T!=this._ownerElement)throw new De(me);var D=this._nameIndex[_.nodeName];return Fi(this._ownerElement,this,_,D),D},setNamedItemNS:function(_){var D,T=_.ownerElement;if(T&&T!=this._ownerElement)throw new De(me);return D=this.getNamedItemNS(_.namespaceURI,_.localName),Fi(this._ownerElement,this,_,D),D},removeNamedItem:function(_){var T=this.getNamedItem(_);return Xe(this._ownerElement,this,T),T},removeNamedItemNS:function(_,T){var D=this.getNamedItemNS(_,T);return Xe(this._ownerElement,this,D),D},getNamedItemNS:function(_,T){for(var D=this.length;D--;){var q=this[D];if(q.localName==T&&q.namespaceURI==_)return q}return null}},Qi.prototype={hasFeature:function(_,T){return!0},createDocument:function(_,T,D){var q=new xt;if(q.implementation=this,q.childNodes=new Ke,q.doctype=D||null,D&&q.appendChild(D),T){var re=q.createElementNS(_,T);q.appendChild(re)}return q},createDocumentType:function(_,T,D){var q=new Di;return q.name=_,q.nodeName=_,q.publicId=T||"",q.systemId=D||"",q}},Je.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(_,T){return Zi(this,_,T)},replaceChild:function(_,T){Zi(this,_,T,In),T&&this.removeChild(T)},removeChild:function(_){return wr(this,_)},appendChild:function(_){return this.insertBefore(_,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(_){return Mr(this.ownerDocument||this,this,_)},normalize:function(){Ge(this,null,{enter:function(_){for(var T=_.firstChild;T;){var D=T.nextSibling;if(null!==D&&D.nodeType===He&&T.nodeType===He){for(var q=[],re=D;null!==re&&re.nodeType===He;)q.push(re.data),re=re.nextSibling;for(var Ce=T.nextSibling;Ce!==re;){var ue=Ce.nextSibling;Ce.parentNode=null,Ce.previousSibling=null,Ce.nextSibling=null,Ce=ue}T.nextSibling=re,null!==re?re.previousSibling=T:_.lastChild=T,T.appendData(q.join("")),Ji(_.ownerDocument,_),T=re}else T=D}return!0}})},isSupported:function(_,T){return this.ownerDocument.implementation.hasFeature(_,T)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(_){for(var T=this;T;){var D=T._nsMap;if(D)for(var q in D)if(Object.prototype.hasOwnProperty.call(D,q)&&D[q]===_)return q;T=T.nodeType==W?T.ownerDocument:T.parentNode}return null},lookupNamespaceURI:function(_){for(var T=this;T;){var D=T._nsMap;if(D&&Object.prototype.hasOwnProperty.call(D,_))return D[_];T=T.nodeType==W?T.ownerDocument:T.parentNode}return null},isDefaultNamespace:function(_){return null==this.lookupPrefix(_)}},B(ke,Je),B(ke,Je.prototype),Ge.STOP=Symbol("walkDOM.STOP"),Ge.ENTER=0,Ge.EXIT=1,xt.prototype={nodeName:"#document",nodeType:qe,doctype:null,documentElement:null,_inc:1,insertBefore:function(_,T){if(_.nodeType==Te){for(var D=_.firstChild;D;){var q=D.nextSibling;this.insertBefore(D,T),D=q}return _}return Zi(this,_,T),_s(_,this),null===this.documentElement&&_.nodeType===Le&&(this.documentElement=_),_},removeChild:function(_){return this.documentElement==_&&(this.documentElement=null),wr(this,_)},replaceChild:function(_,T){Zi(this,_,T,In),_s(_,this),T&&this.removeChild(T),ti(_)&&(this.documentElement=_)},importNode:function(_,T){return function Or(_,T,D){var q;return Ge(T,null,{enter:function(re,Ce){var ue=re.cloneNode(!1);return ue.ownerDocument=_,ue.parentNode=null,null===Ce?q=ue:Ce.appendChild(ue),re.nodeType===W||D?ue:null}}),q}(this,_,T)},getElementById:function(_){var T=null;return mi(this.documentElement,function(D){if(D.nodeType==Le&&D.getAttribute("id")==_)return T=D,!0}),T},getElementsByClassName:function(_){var T=be(_);return new C(this,function(D){var q=[];return T.length>0&&mi(D.documentElement,function(re){if(re!==D&&re.nodeType===Le){var 
1Ce=re.getAttribute("class");if(Ce){var ue=_===Ce;if(!ue){var ot=be(Ce);ue=T.every(function je(_){return function(T){return _&&-1!==_.indexOf(T)}}(ot))}ue&&q.push(re)}}}),q})},createElement:function(_){var T=new wt;return T.ownerDocument=this,T.nodeName=_,T.tagName=_,T.localName=_,T.childNodes=new Ke,(T.attributes=new se)._ownerElement=T,T},createDocumentFragment:function(){var _=new zs;return _.ownerDocument=this,_.childNodes=new Ke,_},createTextNode:function(_){var T=new Hs;return T.ownerDocument=this,T.appendData(_),T},createComment:function(_){var T=new Pn;return T.ownerDocument=this,T.appendData(_),T},createCDATASection:function(_){if(-1!==_.indexOf("]]>"))throw new De(xe,'data contains "]]>"');var T=new wi;return T.ownerDocument=this,T.appendData(_),T},createProcessingInstruction:function(_,T){var D=new jn;return D.ownerDocument=this,D.tagName=D.nodeName=D.target=_,D.nodeValue=D.data=T,D},createAttribute:function(_){var T=new Us;return T.ownerDocument=this,T.name=_,T.nodeName=_,T.localName=_,T.specified=!0,T},createEntityReference:function(_){if(!F.test(_))throw new De(xe,'not a valid xml name "'+_+'"');var T=new Mn;return T.ownerDocument=this,T.nodeName=_,T},createElementNS:function(_,T){var D=new wt,q=T.split(":"),re=D.attributes=new se;return D.childNodes=new Ke,D.ownerDocument=this,D.nodeName=T,D.tagName=T,D.namespaceURI=_,2==q.length?(D.prefix=q[0],D.localName=q[1]):D.localName=T,re._ownerElement=D,D},createAttributeNS:function(_,T){var D=new Us,q=T.split(":");return D.ownerDocument=this,D.nodeName=T,D.name=T,D.namespaceURI=_,D.specified=!0,2==q.length?(D.prefix=q[0],D.localName=q[1]):D.localName=T,D}},oe(xt,Je),xt.prototype.getElementsByTagName=(wt.prototype={nodeType:Le,hasAttribute:function(_){return null!=this.getAttributeNode(_)},getAttribute:function(_){var T=this.getAttributeNode(_);return T&&T.value||""},getAttributeNode:function(_){return this.attributes.getNamedItem(_)},setAttribute:function(_,T){var D=this.ownerDocument.createAttribute(_);D.value=D.nodeValue=""+T,this.setAttributeNode(D)},removeAttribute:function(_){var T=this.getAttributeNode(_);T&&this.removeAttributeNode(T)},appendChild:function(_){return _.nodeType===Te?this.insertBefore(_,null):function nu(_,T){return T.parentNode&&T.parentNode.removeChild(T),T.parentNode=_,T.previousSibling=_.lastChild,T.nextSibling=null,T.previousSibling?T.previousSibling.nextSibling=T:_.firstChild=T,_.lastChild=T,Ji(_.ownerDocument,_,T),_s(T,_.ownerDocument||_),T}(this,_)},setAttributeNode:function(_){return this.attributes.setNamedItem(_)},setAttributeNodeNS:function(_){return this.attributes.setNamedItemNS(_)},removeAttributeNode:function(_){return this.attributes.removeNamedItem(_.nodeName)},removeAttributeNS:function(_,T){var D=this.getAttributeNodeNS(_,T);D&&this.removeAttributeNode(D)},hasAttributeNS:function(_,T){return null!=this.getAttributeNodeNS(_,T)},getAttributeNS:function(_,T){var D=this.getAttributeNodeNS(_,T);return D&&D.value||""},setAttributeNS:function(_,T,D){var q=this.ownerDocument.createAttributeNS(_,T);q.value=q.nodeValue=""+D,this.setAttributeNode(q)},getAttributeNodeNS:function(_,T){return this.attributes.getNamedItemNS(_,T)},getElementsByTagName:function(_){return new C(this,function(T){var D=[];return mi(T,function(q){q!==T&&q.nodeType==Le&&("*"===_||q.tagName==_)&&D.push(q)}),D})},getElementsByTagNameNS:function(_,T){return new C(this,function(D){var q=[];return mi(D,function(re){re!==D&&re.nodeType===Le&&("*"===_||re.namespaceURI===_)&&("*"===T||re.localName==T)&&q.push(re)}),q})}}).getElementsByTagName,xt.prototype.getElementsByTagNameNS=wt.prototype.getElementsByTagNameNS,oe(wt,Je),Us.prototype.nodeType=W,oe(Us,Je),Vs.prototype={data:"",substringData:function(_,T){return this.data.substring(_,_+T)},appendData:function(_){this.nodeValue=this.data=_=this.data+_,this.length=_.length},insertData:function(_,T){this.replaceData(_,0,T)},appendChild:function(_){throw new Error(A[ie])},deleteData:function(_,T){this.replaceData(_,T,"")},replaceData:function(_,T,D){var q=this.data.substring(0,_),re=this.data.substring(_+T);this.nodeValue=this.data=D=q+D+re,this.length=D.length}},oe(Vs,Je),Hs.prototype={nodeName:"#text",nodeType:He,splitText:function(_){var T=this.data,D=T.substring(_);T=T.substring(0,_),this.data=this.nodeValue=T,this.length=T.length;var q=this.ownerDocument.createTextNode(D);return this.parentNode&&this.parentNode.insertBefore(q,this.nextSibling),q}},oe(Hs,Vs),Pn.prototype={nodeName:"#comment",nodeType:Pe},oe(Pn,Vs),wi.prototype={nodeName:"#cdata-section",nodeType:p},oe(wi,Vs),Di.prototype.nodeType=we,oe(Di,Je),qs.prototype.nodeType=J,oe(qs,Je),On.prototype.nodeType=ge,oe(On,Je),Mn.prototype.nodeType=Ze,oe(Mn,Je),zs.prototype.nodeName="#document-fragment",zs.prototype.nodeType=Te,oe(zs,Je),jn.prototype.nodeType=Re,oe(jn,Je),Ln.prototype.serializeToString=function(_,T,D,q){return Ir.call(_,T,D,q)},Je.prototype.toString=Ir;try{Object.defineProperty&&(Object.defineProperty(C.prototype,"length",{get:function(){return ei(this),this.$$length}}),Object.defineProperty(Je.prototype,"textContent",{get:function(){if(this.nodeType===Le||this.nodeType===Te){var _=[];return Ge(this,null,{enter:function(T){return T.nodeType===Le||T.nodeType===Te||(T.nodeType===Re||T.nodeType===Pe?null:void _.push(T.nodeValue))}}),_.join("")}return this.nodeValue},set:function(_){switch(this.nodeType){case Le:case Te:for(;this.firstChild;)this.removeChild(this.firstChild);(_||String(_))&&this.appendChild(this.ownerDocument.createTextNode(_));break;default:this.data=_,this.value=_,this.nodeValue=_}}}),Ie=function(_,T,D){_["$$"+T]=D})}catch{}Ae.DocumentType=Di,Ae.DOMException=De,Ae.DOMImplementation=Qi,Ae.Element=wt,Ae.Node=Je,Ae.NodeList=Ke,Ae.walkDOM=Ge,Ae.XMLSerializer
1=Ln},1032(Ue,Ae,te){var le=te(3499).freeze;Ae.XML_ENTITIES=le({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),Ae.HTML_ENTITIES=le
vendor: 35,742 bytes, line 1
1({Aacute:"\xc1",aacute:"\xe1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"\u0410",acy:"\u0430",AElig:"\xc6",aelig:"\xe6",af:"\u2061",Afr:"\u{1d504}",afr:"\u{1d51e}",Agrave:"\xc0",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03b1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2a3f",AMP:"&",amp:"&",And:"\u2a53",and:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1d538}",aopf:"\u{1d552}",ap:"\u2248",apacir:"\u2a6f",apE:"\u2a70",ape:"\u224a",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",Aring:"\xc5",aring:"\xe5",Ascr:"\u{1d49c}",ascr:"\u{1d4b6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",Beta:"\u0392",beta:"\u03b2",beth:"\u2136",between:"\u226c",Bfr:"\u{1d505}",bfr:"\u{1d51f}",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bNot:"\u2aed",bnot:"\u2310",Bopf:"\u{1d539}",bopf:"\u{1d553}",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250c",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252c",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxUL:"\u255d",boxUl:"\u255c",boxuL:"\u255b",boxul:"\u2518",boxUR:"\u255a",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256c",boxVh:"\u256b",boxvH:"\u256a",boxvh:"\u253c",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255f",boxvR:"\u255e",boxvr:"\u251c",bprime:"\u2035",Breve:"\u02d8",breve:"\u02d8",brvbar:"\xa6",Bscr:"\u212c",bscr:"\u{1d4b7}",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",Bumpeq:"\u224e",bumpeq:"\u224f",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22d2",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",Ccaron:"\u010c",ccaron:"\u010d",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",Cdot:"\u010a",cdot:"\u010b",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"\u29b2",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"\u212d",cfr:"\u{1d520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03a7",chi:"\u03c7",cir:"\u25cb",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",CircleDot:"\u2299",circledR:"\xae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29c3",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2a74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",Conint:"\u222f",conint:"\u222e",ContourIntegral:"\u222e",Copf:"\u2102",copf:"\u{1d554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xa9",copy:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",Cross:"\u2a2f",cross:"\u2717",Cscr:"\u{1d49e}",cscr:"\u{1d4b8}",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",Cup:"\u22d3",cup:"\u222a",cupbrcap:"\u2a48",CupCap:"\u224d",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21a1",dArr:"\u21d3",darr:"\u2193",dash:"\u2010",Dashv:"\u2ae4",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",Dcaron:"\u010e",dcaron:"\u010f",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21ca",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\xb0",Del:"\u2207",Delta:"\u0394",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",Dfr:"\u{1d507}",dfr:"\u{1d521}",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",diam:"\u22c4",Diamond:"\u22c4",diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",Dopf:"\u{1d53b}",dopf:"\u{1d555}",Dot:"\xa8",dot:"\u02d9",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21d3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",Dscr:"\u{1d49f}",dscr:"\u{1d4b9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29f6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",DZcy:"\u040f",dzcy:"\u045f",dzigrarr:"\u27ff",Eacute:"\xc9",eacute:"\xe9",easter:"\u2a6e",Ecaron:"\u011a",ecaron:"\u011b",ecir:"\u2256",Ecirc:"\xca",ecirc:"\xea",ecolon:"\u2255",Ecy:"\u042d",ecy:"\u044d",eDDot:"\u2a77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1d508}",efr:"\u{1d522}",eg:"\u2a9a",Egrave:"\xc8",egrave:"\xe8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014a",eng:"\u014b",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1d53c}",eopf:"\u{1d556}",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",Epsilon:"\u0395",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212f",esdot:"\u2250",Esim:"\u2a73",esim:"\u2242",Eta:"\u0397",eta:"\u03b7",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",Ffr:"\u{1d509}",ffr:"\u{1d523}",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",Fopf:"\u{1d53d}",fopf:"\u{1d557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1d4bb}",gacute:"\u01f5",Gamma:"\u0393",gamma:"\u03b3",Gammad:"\u03dc",gammad:"\u03dd",gap:"\u2a86",Gbreve:"\u011e",gbreve:"\u011f",Gcedil:"\u0122",Gcirc:"\u011c",gcirc:"\u011d",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2a8c",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",Gfr:"\u{1d50a}",gfr:"\u{1d524}",Gg:"\u22d9",gg:"\u226b",ggg:"\u22d9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2aa5",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gnE:"\u2269",gne:"\u2a88",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",Gopf:"\u{1d53e}",gopf:"\u{1d558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\u{1d4a2}",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",Gt:"\u226b",GT:">",gt:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",HARDcy:"\u042a",hardcy:"\u044a",hArr:"\u21d4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21ad",Hat:"^",hbar:"\u210f",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",Hfr:"\u210c",hfr:"\u{1d525}",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",Hopf:"\u210d",hopf:"\u{1d559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210b",hscr:"\u{1d4bd}",hslash:"\u210f",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224e",HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xcd",iacute:"\xed",ic:"\u2063",Icirc:"\xce",icirc:"\xee",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xa1",iff:"\u21d4",Ifr:"\u2111",ifr:"\u{1d526}",Igrave:"\xcc",igrave:"\xec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012a",imacr:"\u012b",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",Int:"\u222c",int:"\u222b",intcal:"\u22ba",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012e",iogon:"\u012f",Iopf:"\u{1d540}",iopf:"\u{1d55a}",Iota:"\u0399",iota:"\u03b9",iprod:"\u2a3c",iquest:"\xbf",Iscr:"\u2110",iscr:"\u{1d4be}",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xcf",iuml:"\xef",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1d50d}",jfr:"\u{1d527}",jmath:"\u0237",Jopf:"\u{1d541}",jopf:"\u{1d55b}",Jscr:"\u{1d4a5}",jscr:"\u{1d4bf}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039a",kappa:"\u03ba",kappav:"\u03f0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041a",kcy:"\u043a",Kfr:"\u{1d50e}",kfr:"\u{1d528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040c",kjcy:"\u045c",Kopf:"\u{1d542}",kopf:"\u{1d55c}",Kscr:"\u{1d4a6}",kscr:"\u{1d4c0}",lAarr:"\u21da",Lacute:"\u0139",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",Lambda:"\u039b",lambda:"\u03bb",Lang:"\u27ea",lang:"\u27e8",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\xab",Larr:"\u219e",lArr:"\u21d0",larr:"\u2190",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",lAtail:"\u291b",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lBarr:"\u290e",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",Lcaron:"\u013d",lcaron:"\u013e",Lcedil:"\u013b",lcedil:"\u013c",lceil:"\u2308",lcub:"{",Lcy:"\u041b",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27e8",LeftArrow:"\u2190",Leftarrow:"\u21d0",leftarrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21d4",leftrightarrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",lEg:"\u2a8b",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",Lfr:"\u{1d50f}",lfr:"\u{1d529}",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22d8",ll:"\u226a",llarr:"\u21c7",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",Lmidot:"\u013f",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lnE:"\u2268",lne:"\u2a87",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",LongLeftArrow:"\u27f5",Longleftarrow:"\u27f8",longleftarrow:"\u27f5",LongLeftRightArrow:"\u27f7",Longleftrightarrow:"\u27fa",longleftrightarrow:"\u27f7",longmapsto:"\u27fc",LongRightArrow:"\u27f6",Longrightarrow:"\u27f9",longrightarrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",Lopf:"\u{1d543}",lopf:"\u{1d55d}",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1d4c1}",Lsh:"\u21b0",lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226a",LT:"<",lt:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",Mcy:"\u041c",mcy:"\u043c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\u{1d510}",mfr:"\u{1d52a}",mho:"\u2127",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",Mopf:"\u{1d544}",mopf:"\u{1d55e}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1d4c2}",mstpos:"\u223e",Mu:"\u039c",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",Ncy:"\u041d",ncy:"\u043d",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21d7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1d511}",nfr:"\u{1d52b}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",nGt:"\u226b\u20d2",ngt:"\u226f",ngtr:"\u226f",nGtv:"\u226b\u0338",nhArr:"\u21ce",nharr:"\u21ae",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",NJcy:"\u040a",njcy:"\u045a",nlArr:"\u21cd",nlarr:"\u219a",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21cd",nleftarrow:"\u219a",nLeftrightarrow:"\u21ce",nleftrightarrow:"\u21ae",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nLl:"\u22d8\u0338",nlsim:"\u2274",nLt:"\u226a\u20d2",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xa0",Nopf:"\u2115",nopf:"\u{1d55f}",Not:"\u2aec",not:"\xac",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrArr:"\u21cf",nrarr:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nRightarrow:"\u21cf",nrightarrow:"\u219b",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",Nscr:"\u{1d4a9}",nscr:"\u{1d4c3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",Nu:"\u039d",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nVDash:"\u22af",nVdash:"\u22ae",nvDash:"\u22ad",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwArr:"\u21d6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xd3",oacute:"\xf3",oast:"\u229b",ocir:"\u229a",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"\u041e",ocy:"\u043e",odash:"\u229d",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29bf",Ofr:"\u{1d512}",ofr:"\u{1d52c}",ogon:"\u02db",Ograve:"\xd2",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",Omacr:"\u014c",omacr:"\u014d",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",Oopf:"\u{1d546}",oopf:"\u{1d560}",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",Or:"\u2a54",or:"\u2228",orarr:"\u21bb",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oS:"\u24c8",Oscr:"\u{1d4aa}",oscr:"\u2134",Oslash:"\xd8",oslash:"\xf8",osol:"\u2298",Otilde:"\xd5",otilde:"\xf5",Otimes:"\u2a37",otimes:"\u2297",otimesas:"\u2a36",Ouml:"\xd6",ouml:"\xf6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",par:"\u2225",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",Pcy:"\u041f",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",Pfr:"\u{1d513}",pfr:"\u{1d52d}",Phi:"\u03a6",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",Pi:"\u03a0",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",Poincareplane:"\u210c",pointint:"\u2a15",Popf:"\u2119",popf:"\u{1d561}",pound:"\xa3",Pr:"\u2abb",pr:"\u227a",prap:"\u2ab7",prcue:"\u227c",prE:"\u2ab3",pre:"\u2aaf",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportion:"\u2237",Proportional:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",Pscr:"\u{1d4ab}",pscr:"\u{1d4c5}",Psi:"\u03a8",psi:"\u03c8",puncsp:"\u2008",Qfr:"\u{1d514}",qfr:"\u{1d52e}",qint:"\u2a0c",Qopf:"\u211a",qopf:"\u{1d562}",qprime:"\u2057",Qscr:"\u{1d4ac}",qscr:"\u{1d4c6}",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",QUOT:'"',quot:'"',rAarr:"\u21db",race:"\u223d\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",Rang:"\u27eb",rang:"\u27e9",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",Rarr:"\u21a0",rArr:"\u21d2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21a3",rarrw:"\u219d",rAtail:"\u291c",ratail:"\u291a",ratio:"\u2236",rationals:"\u211a",RBarr:"\u2910",rBarr:"\u290f",rbarr:"\u290d",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",Re:"\u211c",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",REG:"\xae",reg:"\xae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",Rfr:"\u211c",rfr:"\u{1d52f}",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",Rho:"\u03a1",rho:"\u03c1",rhov:"\u03f1",RightAngleBracket:"\u27e9",RightArrow:"\u2192",Rightarrow:"\u21d2",rightarrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",Ropf:"\u211d",ropf:"\u{1d563}",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",Rscr:"\u211b",rscr:"\u{1d4c7}",Rsh:"\u21b1",rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",Sacute:"\u015a",sacute:"\u015b",sbquo:"\u201a",Sc:"\u2abc",sc:"\u227b",scap:"\u2ab8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227d",scE:"\u2ab4",sce:"\u2ab0",Scedil:"\u015e",scedil:"\u015f",Scirc:"\u015c",scirc:"\u015d",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",Scy:"\u0421",scy:"\u0441",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",searhk:"\u2925",seArr:"\u21d8",searr:"\u2198",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1d516}",sfr:"\u{1d530}",sfrown:"\u2322",sharp:"\u266f",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",SOFTcy:"\u042c",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",Sopf:"\u{1d54a}",sopf:"\u{1d564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",Square:"\u25a1",square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",Sscr:"\u{1d4ae}",sscr:"\u{1d4c8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",Star:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",Sub:"\u22d0",sub:"\u2282",subdot:"\u2abd",subE:"\u2ac5",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",subplus:"\u2abf",subrarr:"\u2979",Subset:"\u22d0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",Sum:"\u2211",sum:"\u2211",sung:"\u266a",Sup:"\u22d1",sup:"\u2283",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"\u2abe",supdsub:"\u2ad8",supE:"\u2ac6",supe:"\u2287",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",Supset:"\u22d1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swArr:"\u21d9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",Tab:"\t",target:"\u2316",Tau:"\u03a4",tau:"\u03c4",tbrk:"\u23b4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",Tfr:"\u{1d517}",tfr:"\u{1d531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223c",THORN:"\xde",thorn:"\xfe",Tilde:"\u223c",tilde:"\u02dc",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",Topf:"\u{1d54b}",topf:"\u{1d565}",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",Tscr:"\u{1d4af}",tscr:"\u{1d4c9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040b",tshcy:"\u045b",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",Uacute:"\xda",uacute:"\xfa",Uarr:"\u219f",uArr:"\u21d1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040e",ubrcy:"\u045e",Ubreve:"\u016c",ubreve:"\u016d",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21c5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",Ufr:"\u{1d518}",ufr:"\u{1d532}",Ugrave:"\xd9",ugrave:"\xf9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",Umacr:"\u016a",umacr:"\u016b",uml:"\xa8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1d54c}",uopf:"\u{1d566}",UpArrow:"\u2191",Uparrow:"\u21d1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",UpDownArrow:"\u2195",Updownarrow:"\u21d5",updownarrow:"\u2195",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03d2",upsi:"\u03c5",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",UpTee:"\u22a5",UpTeeArrow:"\u21a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",Uring:"\u016e",uring:"\u016f",urtri:"\u25f9",Uscr:"\u{1d4b0}",uscr:"\u{1d4ca}",utdot:"\u22f0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",Uuml:"\xdc",uuml:"\xfc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",vArr:"\u21d5",varr:"\u2195",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",Vbar:"\u2aeb",vBar:"\u2ae8",vBarv:"\u2ae9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22ab",Vdash:"\u22a9",vDash:"\u22a8",vdash:"\u22a2",Vdashl:"\u2ae6",Vee:"\u22c1",vee:"\u2228",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\u{1d519}",vfr:"\u{1d533}",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",Vopf:"\u{1d54d}",vopf:"\u{1d567}",vprop:"\u221d",vrtri:"\u22b3",Vscr:"\u{1d4b1}",vscr:"\u{1d4cb}",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2a5f",Wedge:"\u22c0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1d51a}",wfr:"\u{1d534}",Wopf:"\u{1d54e}",wopf:"\u{1d568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1d4b2}",wscr:"\u{1d4cc}",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",Xfr:"\u{1d51b}",xfr:"\u{1d535}",xhArr:"\u27fa",xharr:"\u27f7",Xi:"\u039e",xi:"\u03be",xlArr:"\u27f8",xlarr:"\u27f5",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",Xopf:"\u{1d54f}",xopf:"\u{1d569}",xoplus:"\u2a01",xotime:"\u2a02",xrArr:"\u27f9",xrarr:"\u27f6",Xscr:"\u{1d4b3}",xscr:"\u{1d4cd}",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",Yacute:"\xdd",yacute:"\xfd",YAcy:"\u042f",yacy:"\u044f",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042b",ycy:"\u044b",yen:"\xa5",Yfr:"\u{1d51c}",yfr:"\u{1d536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1d550}",yopf:"\u{1d56a}",Yscr:"\u{1d4b4}",yscr:"\u{1d4ce}",YUcy:"\u042e",yucy:"\u044e",Yuml:"\u0178",yuml:"\xff",Zacute:"\u0179",zacute:"\u017a",Zcaron:"\u017d",zcaron:"\u017e",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017b",zdot:"\u017c",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",Zeta:"\u0396",zeta:"\u03b6",Zfr:"\u2128",zfr:"\u{1d537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21dd",Zopf:"\u2124",zopf:"\u{1d56b}",Zscr:"\u{1d4b5}",zscr:"\u{1d4cf}",zwj:"\u200d",zwnj:"\u200c"}),
vendor: 3,644 bytes, line 1
1Ae.entityMap=Ae.HTML_ENTITIES},2419(Ue,Ae,te){te(7315);Ae.DOMParser=te(2219).DOMParser},3876(Ue,Ae,te){var le=te(3499).NAMESPACE,N=te(3499).tagNamePattern;function oe(J,Z){this.message=J,this.locator=Z,Error.captureStackTrace&&Error.captureStackTrace(this,oe)}function ke(){}function W(J,Z){return Z.lineNumber=J.lineNumber,Z.columnNumber=J.columnNumber,Z}function He(J,Z,A,k,G,ie){function ye(ne,Fe,$e){A.attributeNames.hasOwnProperty(ne)&&ie.fatalError("Attribute "+ne+" redefined"),A.addValue(ne,Fe.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,G),$e)}for(var xe,pe=++Z,ee=0;;){var ve=J.charAt(pe);if(0===ee&&"<"===ve)throw new Error("unexpected < in tag name: "+J.slice(Z,pe));switch(ve){case"=":if(1===ee)xe=J.slice(Z,pe),ee=3;else{if(2!==ee)throw new Error("attribute equal must after attrName");ee=3}break;case"'":case'"':if(3===ee||1===ee){if(1===ee&&(ie.warning('attribute value must after "="'),xe=J.slice(Z,pe)),!((pe=J.indexOf(ve,Z=pe+1))>0))throw new Error("attribute value no end '"+ve+"' match");ye(xe,de=J.slice(Z,pe),Z-1),ee=5}else{if(4!=ee)throw new Error('attribute value must after "="');ye(xe,de=J.slice(Z,pe),Z),ie.warning('attribute "'+xe+'" missed start quot('+ve+")!!"),Z=pe+1,ee=5}break;case"/":switch(ee){case 0:A.setTagName(J.slice(Z,pe));case 5:case 6:case 7:ee=7,A.closed=!0;case 4:case 1:break;case 2:A.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return ie.error("unexpected end of input"),0==ee&&A.setTagName(J.slice(Z,pe)),pe;case">":switch(ee){case 0:A.setTagName(J.slice(Z,pe));case 5:case 6:case 7:break;case 4:case 1:"/"===(de=J.slice(Z,pe)).slice(-1)&&(A.closed=!0,de=de.slice(0,-1));case 2:2===ee&&(de=xe),4==ee?(ie.warning('attribute "'+de+'" missed quot(")!'),ye(xe,de,Z)):((!le.isHTML(k[""])||!de.match(/^(?:disabled|checked|selected)$/i))&&ie.warning('attribute "'+de+'" missed value!! "'+de+'" instead!!'),ye(de,de,Z));break;case 3:throw new Error("attribute value missed!!")}return pe;case"\x80":ve=" ";default:if(ve<=" ")switch(ee){case 0:A.setTagName(J.slice(Z,pe)),ee=6;break;case 1:xe=J.slice(Z,pe),ee=2;break;case 4:var de=J.slice(Z,pe);ie.warning('attribute "'+de+'" missed quot(")!!'),ye(xe,de,Z);case 5:ee=6}else switch(ee){case 2:(!le.isHTML(k[""])||!xe.match(/^(?:disabled|checked|selected)$/i))&&ie.warning('attribute "'+xe+'" missed value!! "'+xe+'" instead2!!'),ye(xe,xe,Z),Z=pe,ee=1;break;case 5:ie.warning('attribute space is required"'+xe+'"!!');case 6:ee=1,Z=pe;break;case 3:ee=4,Z=pe;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}pe++}}function p(J,Z,A){for(var k=J.tagName,G=null,ve=J.length;ve--;){var ie=J[ve],ye=ie.qName,xe=ie.value;if((me=ye.indexOf(":"))>0)var de=ie.prefix=ye.slice(0,me),pe=ye.slice(me+1),ee="xmlns"===de&&pe;else pe=ye,de=null,ee="xmlns"===ye&&"";ie.localName=pe,!1!==ee&&(null==G&&(G={},A=Object.create(A)),A[ee]=G[ee]=xe,ie.uri=le.XMLNS,Z.startPrefixMapping(ee,xe))}for(ve=J.length;ve--;)(de=(ie=J[ve]).prefix)&&("xml"===de&&(ie.uri=le.XML),"xmlns"!==de&&(ie.uri=A[de||""]));var me;(me=k.indexOf(":"))>0?(de=J.prefix=k.slice(0,me),pe=J.localName=k.slice(me+1)):(de=null,pe=J.localName=k);var ne=J.uri=A[de||""];if(Z.startElement(ne,pe,k,J),!J.closed)return J.currentNSMap=A,J.localNSMap=G,!0;if(Z.endElement(ne,pe,k),G)for(de in G)Object.prototype.hasOwnProperty.call(G,de)&&Z.endPrefixMapping(de)}function Ze(J,Z,A,k,G){if(/^(?:script|textarea)$/i.test(A)){var ie=J.indexOf("</"+A+">",Z),ye=J.substring(Z+1,ie);if(/[&<]/.test(ye))return/^script$/i.test(A)?(G.characters(ye,0,ye.length),ie):(ye=ye.replace(/&#?\w+;/g,k),G.characters(ye,0,ye.length),ie)}return Z+1}
vendor: 9,979 bytes, line 1
1function ge(J,Z,A,k){var G=k[A];return null==G&&((G=J.lastIndexOf("</"+A+">"))<Z&&(G=J.lastIndexOf("</"+A)),k[A]=G),G<Z}function Pe(J,Z,A,k){if("-"===J.charAt(Z+2))return"-"===J.charAt(Z+3)?(ie=J.indexOf("--\x3e",Z+4))>Z?(A.comment(J,Z+4,ie-Z-4),ie+3):(k.error("Unclosed comment"),-1):-1;if("CDATA["==J.substr(Z+3,6)){var ie=J.indexOf("]]>",Z+9);return A.startCDATA(),A.characters(J,Z+9,ie-Z-9),A.endCDATA(),ie+3}var ye=function Te(J,Z){var A,k=[],G=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(G.lastIndex=Z,G.exec(J);A=G.exec(J);)if(k.push(A),A[1])return k}(J,Z),xe=ye.length;if(xe>1&&/!doctype/i.test(ye[0][0])){var de=ye[1][0],pe=!1,ee=!1;xe>3&&(/^public$/i.test(ye[2][0])?(pe=ye[3][0],ee=xe>4&&ye[4][0]):/^system$/i.test(ye[2][0])&&(ee=ye[3][0]));var ve=ye[xe-1];return A.startDTD(de,pe,ee),A.endDTD(),ve.index+ve[0].length}return-1}function qe(J,Z,A){var k=J.indexOf("?>",Z);if(k){var G=J.substring(Z,k).match(/^<\?(\S*)\s*([\s\S]*?)$/);return G?(A.processingInstruction(G[1],G[2]),k+2):-1}return-1}function we(){this.attributeNames={}}(oe.prototype=new Error).name=oe.name,ke.prototype={parse:function(J,Z,A){var k=this.domBuilder;k.startDocument(),function Re(J,Z){for(var A in J)Object.prototype.hasOwnProperty.call(J,A)&&(Z[A]=J[A])}(Z,Z={}),function Le(J,Z,A,k,G){function ye(Ge){var xt=Ge.slice(1,-1);return Object.hasOwnProperty.call(A,xt)?A[xt]:"#"===xt.charAt(0)?function ie(Ge){return Ge>65535?(Ge-=65536,String.fromCharCode(55296+(Ge>>10),56320+(1023&Ge))):String.fromCharCode(Ge)}(parseInt(xt.substr(1).replace("x","0x"))):(G.error("entity not found:"+Ge),Ge)}function xe(Ge){if(Ge>$e){var xt=J.substring($e,Ge).replace(/&#?\w+;/g,ye);me&&de($e),k.characters(xt,0,Ge-$e),$e=Ge}}function de(Ge,xt){for(;Ge>=ee&&(xt=ve.exec(J));)ee=(pe=xt.index)+xt[0].length,me.lineNumber++;me.columnNumber=Ge-pe+1}for(var pe=0,ee=0,ve=/.*(?:\r\n?|\n)|.*$/g,me=k.locator,ne=[{currentNSMap:Z}],Fe={},$e=0;;){try{var Be=J.indexOf("<",$e);if(Be<0){if(!J.substr($e).match(/^\s*$/)){var ct=k.doc,De=ct.createTextNode(J.substr($e));ct.appendChild(De),k.currentElement=De}return}switch(Be>$e&&xe(Be),J.charAt(Be+1)){case"/":var Xe=J.indexOf(">",Be+3),Ke=J.substring(Be+2,Xe).replace(/^([\s\S]*?[^ \t\n\r])?[ \t\n\r]*$/,"$1"),C=ne.pop();Xe<0?(Ke=J.substring(Be+2).replace(/[\s<].*/,""),G.error("end tag name: "+Ke+" is not complete:"+C.tagName),Xe=Be+1+Ke.length):Ke.match(/\s</)?(Ke=Ke.replace(/[\s<].*/,""),G.error("end tag name: "+Ke+" maybe not complete"),Xe=Be+1+Ke.length):/[ \t\n\r]/.test(Ke)&&N.test(Ke.split(/[ \t\n\r]/)[0])&&G.error('end tag name is followed by whitespace and trailing content: "'+Ke+'"');var ei=C.localNSMap,se=C.tagName==Ke;if(se||C.tagName&&C.tagName.toLowerCase()==Ke.toLowerCase()){if(k.endElement(C.uri,C.localName,Ke),ei)for(var Ei in ei)Object.prototype.hasOwnProperty.call(ei,Ei)&&k.endPrefixMapping(Ei);se||G.fatalError("end tag name: "+Ke+" is not match the current start tagName:"+C.tagName)}else ne.push(C);Xe++;break;case"?":me&&de(Be),Xe=qe(J,Be,k);break;case"!":me&&de(Be),Xe=Pe(J,Be,k,G);break;default:me&&de(Be);var At=new we,Fi=ne[ne.length-1].currentNSMap,Qi=(Xe=He(J,Be,At,Fi,ye,G),At.length);if(!At.closed&&ge(J,Xe,At.tagName,Fe)&&(At.closed=!0,A.nbsp||G.warning("unclosed xml attribute")),me&&Qi){for(var Je=W(me,{}),pi=0;pi<Qi;pi++){var mi=At[pi];de(mi.offset),mi.locator=W(me,{})}k.locator=Je,p(At,k,Fi)&&ne.push(At),k.locator=me}else p(At,k,Fi)&&ne.push(At);le.isHTML(At.uri)&&!At.closed?Xe=Ze(J,Xe,At.tagName,ye,k):Xe++}}catch(Ge){if(Ge instanceof oe)throw Ge;G.error("element parse error: "+Ge),Xe=-1}Xe>$e?$e=Xe:xe(Math.max(Be,$e)+1)}}(J,Z,A,k,this.errorHandler),k.endDocument()}},we.prototype={setTagName:function(J){if(!N.test(J))throw new Error("invalid tagName:"+J);this.tagName=J},addValue:function(J,Z,A){if(!N.test(J))throw new Error("invalid attribute:"+J);this.attributeNames[J]=this.length,this[this.length++]={qName:J,value:Z,offset:A}},length:0,getLocalName:function(J){return this[J].localName},getLocator:function(J){return this[J].locator},getQName:function(J){return this[J].qName},getURI:function(J){return this[J].uri},getValue:function(J){return this[J].value}},Ae.XMLReader=ke,Ae.ParseError=oe},410(Ue,Ae,te){var M,le=typeof global<"u"?global:typeof window<"u"?window:{},N=te(542);typeof document<"u"?M=document:(M=le["__GLOBAL_DOCUMENT_CACHE@4"])||(M=le["__GLOBAL_DOCUMENT_CACHE@4"]=N),Ue.exports=M},2843(Ue){var Ae;Ae=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ue.exports=Ae},9819(Ue){Ue.exports=function te(le){if(!le)return!1;var N=Ae.call(le);return"[object Function]"===N||"function"==typeof le&&"[object RegExp]"!==N||typeof window<"u"&&(le===window.setTimeout||le===window.alert||le===window.confirm||le===window.prompt)};var Ae=Object.prototype.toString},1089(Ue,Ae,te){var le=te(3627).getUint64;Ue.exports=function(M){var F=new DataView(M.buffer,M.byteOffset,M.byteLength),ae={version:M[0],flags:new Uint8Array(M.subarray(1,4)),references:[],referenceId:F.getUint32(4),timescale:F.getUint32(8)},he=12;0===ae.version?(ae.earliestPresentationTime=F.getUint32(he),ae.firstOffset=F.getUint32(he+4),he+=8):(ae.earliestPresentationTime=le(M.subarray(he)),ae.firstOffset=le(M.subarray(he+8)),he+=16);var Se=F.getUint16(he+=2);for(he+=2;Se>0;he+=12,Se--)ae.references.push({referenceType:(128&M[he])>>>7,referencedSize:2147483647&F.getUint32(he),subsegmentDuration:F.getUint32(he+4),startsWithSap:!!(128&M[he+8]),sapType:(112&M[he+8])>>>4,sapDeltaTime:268435455&F.getUint32(he+8)});return ae}},2915(Ue){var te,le,N,M,F,ae,he;F=function(Se,be){return te(M(Se,be))},ae=function(Se,be){return le(N(Se),be)},he=function(Se,be,je){return N(je?Se:Se-be)},Ue.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:te=function(Se){return 9e4*Se},secondsToAudioTs:le=function(Se,be){return Se*be},videoTsToSeconds:N=function(Se){return Se/9e4},audioTsToSeconds:M=function(Se,be){return Se/be},audioTsToVideoTs:F,videoTsToAudioTs:ae,metadataTsToSeconds:he}},3627(Ue){var Ae=Math.pow(2,32);Ue.exports={getUint64:function(le){var M,N=new DataView(le.buffer,le.byteOffset,le.byteLength);return N.getBigUint64?(M=N.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(M):M:N.getUint32(0)*Ae+N.getUint32(4)},MAX_UINT32:Ae}},509(Ue,Ae,te){var le=te(2843),N=Ue.exports={WebVTT:te(3042),VTTCue:te(411),VTTRegion:te(9370)};le.vttjs=N,le.WebVTT=N.WebVTT;var M=N.VTTCue,F=N.VTTRegion,ae=le.VTTCue,he=le.VTTRegion;N.shim=function(){le.VTTCue=M,le.VTTRegion=F},N.restore=function(){le.VTTCue=ae,le.VTTRegion=he},le.VTTCue||N.shim()},3042(Ue,Ae,te){var le=te(410),N=Object.create||function(){function A(){}return function(k){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return A.prototype=k,new A}}();function M(A,k){this.name="ParsingError",this.code=A.code,this.message=k||A.message}function F(A){function k(ie,ye,xe,de){return 3600*(0|ie)+60*(0|ye)+(0|xe)+(0|de)/1e3}var G=A.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return G?G[3]?k(G[1],G[2],G[3].replace(":",""),G[4]):G[1]>59?k(G[1],G[2],0,G[4]):k(0,G[1],G[2],G[4]):null}function ae(){this.values=N(null)}function he(A,k,G,ie){var ye=ie?A.split(ie):[A];for(var xe in ye)if("string"==typeof ye[xe]){var de=ye[xe].split(G);2===de.length&&k(de[0].trim(),de[1].trim())}}function Se(A,k,G){var ie=A;function ye(){var pe=F(A);if(null===pe)throw new M(M.Errors.BadTimeStamp,"Malformed timestamp: "+ie);return A=A.replace(/^[^\sa-zA-Z-]+/,""),pe}function de(){A=A.replace(/^\s+/,"")}if(de(),k.startTime=ye(),de(),"--\x3e"!==A.substr(0,3))throw new M(M.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+ie);A=A.substr(3),de(),k.endTime=ye(),de(),function xe(pe,ee){var ve=new ae;he(pe,function(me,ne){switch(me){case"region":for(var Fe=G.length-1;Fe>=0;Fe--)if(G[Fe].id===ne){ve.set(me,G[Fe].region);break}break;case"vertical":ve.alt(me,ne,["rl","lr"]);break;case"line":var $e=ne.split(","),Be=$e[0];ve.integer(me,Be),ve.percent(me,Be)&&ve.set("snapToLines",!1),ve.alt(me,Be,["auto"]),2===$e.length&&ve.alt("lineAlign",$e[1],["start","center","end"]);break;case"position":$e=ne.split(","),ve.percent(me,$e[0]),2===$e.length&&ve.alt("positionAlign",$e[1],["start","center","end"]);break;case"size":ve.percent(me,ne);break;case"align":ve.alt(me,ne,["start","center","end","left","right"])}},/:/,/\s/),ee.region=ve.get("region",null),ee.vertical=ve.get("vertical","");try{ee.line=ve.get("line","auto")}catch{}ee.lineAlign=ve.get("lineAlign","start"),ee.snapToLines=ve.get("snapToLines",!0),ee.size=ve.get("size",100);try{ee.align=ve.get("align","center")}catch{ee.align=ve.get("align","middle")}try{ee.position=ve.get("position","auto")}catch{ee.position=ve.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},ee.align)}ee.positionAlign=ve.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},ee.align)}(A,k)}(M.prototype=N(Error.prototype)).constructor=M,M.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},ae.prototype={set:function(A,k){!this.get(A)&&""!==k&&(this.values[A]=k)},get:function(A,k,G){return G?this.has(A)?this.values[A]:k[G]:this.has(A)?this.values[A]:k},has:function(A){return A in this.values},alt:function(A,k,G){for(var ie=0;ie<G.length;++ie)if(k===G[ie]){this.set(A,k);break}},integer:function(A,k){/^-?\d+$/.test(k)&&this.set(A,parseInt(k,10))},percent:function(A,k){return!!(k.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(k=parseFloat(k),k>=0&&k<=100))&&(this.set(A,k),!0)}};var be=le.createElement&&le.createElement("textarea"),je={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},B={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},oe={v:"title",lang:"lang"},ke={rt:"ruby"};function Le(A,k){function G(){if(!k)return null;var ct=k.match(/^([^<]*)(<[^>
1]*>?)?/);return function Be(De){return k=k.substr(De.length),De}(ct[1]?ct[1]:ct[2])}function ie(Be){return be.innerHTML=Be,Be=be.textContent,be.textContent="",Be}function ye(Be,ct){return!ke[ct.localName]||ke[ct.localName]===Be.localName}function xe(Be,ct){var De=je[Be];if(!De)return null;var Ke=A.document.createElement(De),C=oe[Be];return C&&ct&&(Ke[C]=ct.trim()),Ke}for(var ee,de=A.document.createElement("div"),pe=de,ve=[];null!==(ee=G());)if("<"!==ee[0])pe.appendChild(A.document.createTextNode(ie(ee)));else{if("/"===ee[1]){ve.length&&ve[ve.length-1]===ee.substr(2).replace(">","")&&(ve.pop(),pe=pe.parentNode);continue}var ne,me=F(ee.substr(1,ee.length-2));if(me){ne=A.document.createProcessingInstruction("timestamp",me),pe.appendChild(ne);continue}var Fe=ee.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!Fe||!(ne=xe(Fe[1],Fe[3]))||!ye(pe,ne))continue;if(Fe[2]){var $e=Fe[2].split(".");$e.forEach(function(Be){var ct=/^bg_/.test(Be),De=ct?Be.slice(3):Be;B.hasOwnProperty(De)&&(ne.style[ct?"background-color":"color"]=B[De])}),ne.className=$e.join(" ")}ve.push(Fe[1]),pe.appendChild(ne),pe=ne}return de}var W=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function He(A){for(var k=0;k<W.length;k++){var G=W[k];if(A>=G[0]&&A<=G[1])return!0}return!1}function p(A){var k=[],G="";if(!A||!A.childNodes)return"ltr";function ye(pe,ee){for(var ve=ee.childNodes.length-1;ve>=0;ve--)pe.push(ee.childNodes[ve])}function xe(pe){if(!pe||!pe.length)return null;var ee=pe.pop(),ve=ee.textContent||ee.innerText;if(ve){var me=ve.match(/^.*(\n|\r)/);return me?(pe.length=0,me[0]):ve}return"ruby"===ee.tagName?xe(pe):ee.childNodes?(ye(pe,ee),xe(pe)):void 0}for(ye(k,A);G=xe(k);)for(var de=0;de<G.length;de++)if(He(G.charCodeAt(de)))return"rtl";return"ltr"}function ge(){}function Re(A,k,G){ge.call(this),this.cue=k,this.cueDiv=Le(A,k.text);var ie={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===k.vertical?"horizontal-tb":"lr"===k.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(ie,this.cueDiv),this.div=A.document.createElement("div"),ie={direction:p(this.cueDiv),writingMode:""===k.vertical?"horizontal-tb":"lr"===k.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===k.align?"center":k.align,font:G.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(ie),this.div.appendChild(this.cueDiv);var ye=0;switch(k.positionAlign){case"start":case"line-left":ye=k.position;break;case"center":ye=k.position-k.size/2;break;case"end":case"line-right":ye=k.position-k.size}this.applyStyles(""===k.vertical?{left:this.formatStyle(ye,"%"),width:this.formatStyle(k.size,"%")}:{top:this.formatStyle(ye,"%"),height:this.formatStyle(k.size,"%")}),this.move=function(xe){this.applyStyles({top:this.formatStyle(xe.top,"px"),bottom:this.formatStyle(xe.bottom,"px"),left:this.formatStyle(xe.left,"px"),right:this.formatStyle(xe.right,"px"),height:this.formatStyle(xe.height,"px"),width:this.formatStyle(xe.width,"px")}
vendor: 4,122 bytes, line 1
1)}}function Pe(A){var k,G,ie,ye;if(A.div){G=A.div.offsetHeight,ie=A.div.offsetWidth,ye=A.div.offsetTop;var xe=(xe=A.div.childNodes)&&(xe=xe[0])&&xe.getClientRects&&xe.getClientRects();A=A.div.getBoundingClientRect(),k=xe?Math.max(xe[0]&&xe[0].height||0,A.height/xe.length):0}this.left=A.left,this.right=A.right,this.top=A.top||ye,this.height=A.height||G,this.bottom=A.bottom||ye+(A.height||G),this.width=A.width||ie,this.lineHeight=void 0!==k?k:A.lineHeight}function qe(A,k,G,ie){var xe=new Pe(k),de=k.cue,pe=function Ze(A){if("number"==typeof A.line&&(A.snapToLines||A.line>=0&&A.line<=100))return A.line;if(!A.track||!A.track.textTrackList||!A.track.textTrackList.mediaElement)return-1;for(var k=A.track,G=k.textTrackList,ie=0,ye=0;ye<G.length&&G[ye]!==k;ye++)"showing"===G[ye].mode&&ie++;return-1*++ie}(de),ee=[];if(de.snapToLines){var ve;switch(de.vertical){case"":ee=["+y","-y"],ve="height";break;case"rl":ee=["+x","-x"],ve="width";break;case"lr":ee=["-x","+x"],ve="width"}var me=xe.lineHeight,ne=me*Math.round(pe),Fe=G[ve]+me,$e=ee[0];Math.abs(ne)>Fe&&(ne=ne<0?-1:1,ne*=Math.ceil(Fe/me)*me),pe<0&&(ne+=""===de.vertical?G.height:G.width,ee=ee.reverse()),xe.move($e,ne)}else{var Be=xe.lineHeight/G.height*100;switch(de.lineAlign){case"center":pe-=Be/2;break;case"end":pe-=Be}switch(de.vertical){case"":k.applyStyles({top:k.formatStyle(pe,"%")});break;case"rl":k.applyStyles({left:k.formatStyle(pe,"%")});break;case"lr":k.applyStyles({right:k.formatStyle(pe,"%")})}ee=["+y","-x","+x","-y"],xe=new Pe(k)}var ct=function ye(De,Ke){for(var C,ei=new Pe(De),se=1,fi=0;fi<Ke.length;fi++){for(;De.overlapsOppositeAxis(G,Ke[fi])||De.within(G)&&De.overlapsAny(ie);)De.move(Ke[fi]);if(De.within(G))return De;var Ei=De.intersectPercentage(G);se>Ei&&(C=new Pe(De),se=Ei),De=new Pe(ei)}return C||ei}(xe,ee);k.move(ct.toCSSCompatValues(G))}function we(){}ge.prototype.applyStyles=function(A,k){for(var G in k=k||this.div,A)A.hasOwnProperty(G)&&(k.style[G]=A[G])},ge.prototype.formatStyle=function(A,k){return 0===A?0:A+k},(Re.prototype=N(ge.prototype)).constructor=Re,Pe.prototype.move=function(A,k){switch(k=void 0!==k?k:this.lineHeight,A){case"+x":this.left+=k,this.right+=k;break;case"-x":this.left-=k,this.right-=k;break;case"+y":this.top+=k,this.bottom+=k;break;case"-y":this.top-=k,this.bottom-=k}},Pe.prototype.overlaps=function(A){return this.left<A.right&&this.right>A.left&&this.top<A.bottom&&this.bottom>A.top},Pe.prototype.overlapsAny=function(A){for(var k=0;k<A.length;k++)if(this.overlaps(A[k]))return!0;return!1},Pe.prototype.within=function(A){return this.top>=A.top&&this.bottom<=A.bottom&&this.left>=A.left&&this.right<=A.right},Pe.prototype.overlapsOppositeAxis=function(A,k){switch(k){case"+x":return this.left<A.left;case"-x":return this.right>A.right;case"+y":return this.top<A.top;case"-y":return this.bottom>A.bottom}},Pe.prototype.intersectPercentage=function(A){return Math.max(0,Math.min(this.right,A.right)-Math.max(this.left,A.left))*Math.max(0,Math.min(this.bottom,A.bottom)-Math.max(this.top,A.top))/(this.height*this.width)},Pe.prototype.toCSSCompatValues=function(A){return{top:this.top-A.top,bottom:A.bottom-this.bottom,left:this.left-A.left,right:A.right-this.right,height:this.height,width:this.width}},Pe.getSimpleBoxPosition=function(A){var k=A.div?A.div.offsetHeight:A.tagName?A.offsetHeight:0,G=A.div?A.div.offsetWidth:A.tagName?A.offsetWidth:0,ie=A.div?A.div.offsetTop:A.tagName?A.offsetTop:0;return{left:(A=A.div?A.div.getBoundingClientRect():A.tagName?A.getBoundingClientRect():A).left,right:A.right,top:A.top||ie,height:A.height||k,bottom:A.bottom||ie+(A.height||k),width:A.width||G}},we.StringDecoder=function(){return{decode:function(A){if(!A)return"";if("string"!=typeof A)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(A))}}},we.convertCueToDOMTree=function(A,k){return A&&k?Le(A,k):null},we.processCues=function(A,k,G){if(!A||!k||!G)return null;for(;G.firstChild;)G.removeChild(G.firstChild);var ie=A.document.createElement("div");if(ie.style.position="absolute",ie.style.left="0",ie.style.right="0",ie.style.top="0",ie.style.bottom="0",
vendor: 7,985 bytes, line 1
1ie.style.margin="1.5%",G.appendChild(ie),function ye(me){for(var ne=0;ne<me.length;ne++)if(me[ne].hasBeenReset||!me[ne].displayState)return!0;return!1}(k)){var de=[],pe=Pe.getSimpleBoxPosition(ie),ve={font:Math.round(.05*pe.height*100)/100+"px sans-serif"};!function(){for(var me,ne,Fe=0;Fe<k.length;Fe++)me=new Re(A,ne=k[Fe],ve),ie.appendChild(me.div),qe(0,me,pe,de),ne.displayState=me.div,de.push(Pe.getSimpleBoxPosition(me))}()}else for(var xe=0;xe<k.length;xe++)ie.appendChild(k[xe].displayState)},(we.Parser=function(A,k,G){G||(G=k,k={}),k||(k={}),this.window=A,this.vttjs=k,this.state="INITIAL",this.buffer="",this.decoder=G||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(A){if(!(A instanceof M))throw A;this.onparsingerror&&this.onparsingerror(A)},parse:function(A){var k=this;function G(){for(var me=k.buffer,ne=0;ne<me.length&&"\r"!==me[ne]&&"\n"!==me[ne];)++ne;var Fe=me.substr(0,ne);return"\r"===me[ne]&&++ne,"\n"===me[ne]&&++ne,k.buffer=me.substr(ne),Fe}function xe(me){me.match(/X-TIMESTAMP-MAP/)?he(me,function(ne,Fe){"X-TIMESTAMP-MAP"===ne&&function ye(me){var ne=new ae;he(me,function(Fe,$e){switch(Fe){case"MPEGT":ne.integer(Fe+"S",$e);break;case"LOCA":ne.set(Fe+"L",F($e))}},/[^\d]:/,/,/),k.ontimestampmap&&k.ontimestampmap({MPEGTS:ne.get("MPEGTS"),LOCAL:ne.get("LOCAL")})}(Fe)},/=/):he(me,function(ne,Fe){"Region"===ne&&function ie(me){var ne=new ae;if(he(me,function($e,Be){switch($e){case"id":ne.set($e,Be);break;case"width":ne.percent($e,Be);break;case"lines":ne.integer($e,Be);break;case"regionanchor":case"viewportanchor":var ct=Be.split(",");if(2!==ct.length)break;var De=new ae;if(De.percent("x",ct[0]),De.percent("y",ct[1]),!De.has("x")||!De.has("y"))break;ne.set($e+"X",De.get("x")),ne.set($e+"Y",De.get("y"));break;case"scroll":ne.alt($e,Be,["up"])}},/=/,/\s/),ne.has("id")){var Fe=new(k.vttjs.VTTRegion||k.window.VTTRegion);Fe.width=ne.get("width",100),Fe.lines=ne.get("lines",3),Fe.regionAnchorX=ne.get("regionanchorX",0),Fe.regionAnchorY=ne.get("regionanchorY",100),Fe.viewportAnchorX=ne.get("viewportanchorX",0),Fe.viewportAnchorY=ne.get("viewportanchorY",100),Fe.scroll=ne.get("scroll",""),k.onregion&&k.onregion(Fe),k.regionList.push({id:ne.get("id"),region:Fe})}}(Fe)},/:/)}A&&(k.buffer+=k.decoder.decode(A,{stream:!0}));try{var de;if("INITIAL"===k.state){if(!/\r\n|\n/.test(k.buffer))return this;var pe=(de=G()).match(/^WEBVTT([ \t].*)?$/);if(!pe||!pe[0])throw new M(M.Errors.BadSignature);k.state="HEADER"}for(var ee=!1;k.buffer;){if(!/\r\n|\n/.test(k.buffer))return this;switch(ee?ee=!1:de=G(),k.state){case"HEADER":/:/.test(de)?xe(de):de||(k.state="ID");continue;case"NOTE":de||(k.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(de)){k.state="NOTE";break}if(!de)continue;k.cue=new(k.vttjs.VTTCue||k.window.VTTCue)(0,0,"");try{k.cue.align="center"}catch{k.cue.align="middle"}if(k.state="CUE",-1===de.indexOf("--\x3e")){k.cue.id=de;continue}case"CUE":try{Se(de,k.cue,k.regionList)}catch(me){k.reportOrThrowError(me),k.cue=null,k.state="BADCUE";continue}k.state="CUETEXT";continue;case"CUETEXT":var ve=-1!==de.indexOf("--\x3e");if(!de||ve&&(ee=!0)){k.oncue&&k.oncue(k.cue),k.cue=null,k.state="ID";continue}k.cue.text&&(k.cue.text+="\n"),k.cue.text+=de.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":de||(k.state="ID");continue}}}catch(me){k.reportOrThrowError(me),"CUETEXT"===k.state&&k.cue&&k.oncue&&k.oncue(k.cue),k.cue=null,k.state="INITIAL"===k.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var A=this;try{if(A.buffer+=A.decoder.decode(),(A.cue||"HEADER"===A.state)&&(A.buffer+="\n\n",A.parse()),"INITIAL"===A.state)throw new M(M.Errors.BadSignature)}catch(k){A.reportOrThrowError(k)}return A.onflush&&A.onflush(),this}},Ue.exports=we},411(Ue){var te={"":1,lr:1,rl:1},le={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function M(ae){return"string"==typeof ae&&!!le[ae.toLowerCase()]&&ae.toLowerCase()}function F(ae,he,Se){this.hasBeenReset=!1;var be="",je=!1,B=ae,oe=he,ke=Se,Le=null,W="",He=!0,p="auto",Ze="start",ge="auto",Re="auto",Pe=100,qe="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return be},set:function(we){be=""+we}},pauseOnExit:{enumerable:!0,get:function(){return je},set:function(we){je=!!we}},startTime:{enumerable:!0,get:function(){return B},set:function(we){if("number"!=typeof we)throw new TypeError("Start time must be set to a number.");B=we,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return oe},set:function(we){if("number"!=typeof we)throw new TypeError("End time must be set to a number.");oe=we,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return ke},set:function(we){ke=""+we,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return Le},set:function(we){Le=we,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return W},set:function(we){var Te=function N(ae){return"string"==typeof ae&&!!te[ae.toLowerCase()]&&ae.toLowerCase()}(we);if(!1===Te)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");W=Te,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return He},set:function(we){He=!!we,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return p},set:function(we){if("number"!=typeof we&&"auto"!==we)throw new SyntaxError("Line: an invalid number or illegal string was specified.");p=we,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return Ze},set:function(we){var Te=M(we);Te?(Ze=Te,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return ge},set:function(we){if(we<0||we>100)throw new Error("Position must be between 0 and 100.");ge=we,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return Re},set:function(we){var Te=M(we);Te?(Re=Te,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return Pe},set:function(we){if(we<0||we>100)throw new Error("Size must be between 0 and 100.");Pe=we,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return qe},set:function(we){var Te=M(we);if(!Te)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");qe=Te,this.hasBeenReset=!0}}}),this.displayState=void 0}F.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},Ue.exports=F},9370(Ue){var Ae={"":!0,up:!0};function le(M){return"number"==typeof M&&M>=0&&M<=100}Ue.exports=function N(){var M=100,F=3,ae=0,he=100,Se=0,be=100,je="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return M},set:function(B){if(!le(B))throw new Error("Width must be between 0 and 100.");M=B}},lines:{enumerable:!0,get:function(){return F},set:function(B){if("number"!=typeof B)throw new TypeError("Lines must be set to a number.");F=B}},regionAnchorY:{enumerable:!0,get:function(){return he},set:function(B){if(!le(B))throw new Error("RegionAnchorX must be between 0 and 100.");he=B}},regionAnchorX:{enumerable:!0,get:function(){return ae},set:function(B){if(!le(B))throw new Error("RegionAnchorY must be between 0 and 100.");ae=B}},viewportAnchorY:{enumerable:!0,get:function(){return be},set:function(B){if(!le(B))throw new Error("ViewportAnchorY must be between 0 and 100.");be=B}},viewportAnchorX:{enumerable:!0,get:function(){return Se},set:function(B){if(!le(B))throw new Error("ViewportAnchorX must be between 0 and 100.");Se=B}},scroll:{enumerable:!0,get:function(){return je},set:function(B){var oe=function te(M){return"string"==typeof M&&!!Ae[M.toLowerCase()]&&M.toLowerCase()}(B);!1===oe?console.warn("Scroll: an invalid or illegal string was specified."):je=oe}}})}},542(){},4634(Ue){function Ae(){return Ue.exports=Ae=Object.assign?Object.assign.bind():function(te){for(var le=1;le<arguments.length;le++){var N=arguments[le];for(var M in N)({}).hasOwnProperty.call(N,M)&&(te[M]=N[M])}return te}
1,Ue.exports.__esModule=!0,Ue.exports.default=Ue.exports,Ae.apply(null,arguments)}Ue.exports=Ae,Ue.exports.__esModule=!0,Ue.exports.default=Ue.exports},3132(Ue,Ae,te){te.d(Ae,{l:()=>be});var le=te(5547),N=te(5802),M=te(1413),F=te(8359),ae=te(4775),he=te(7336),Se=te(413);class be{_items;_activeItemIndex=(0,N.vPA)(-1);_activeItem=(0,N.vPA)(null);_wrap=!1;_typeaheadSubscription=F.yU.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=B=>B.disabled;constructor(B,oe){this._items=B,B instanceof le.rOR?this._itemChangesSubscription=B.changes.subscribe(ke=>this._itemsChanged(ke.toArray())):(0,le.Hps)(B)&&(this._effectRef=(0,N.QZP)(()=>this._itemsChanged(B()),{injector:oe}))}tabOut=new M.B;change=new M.B;skipPredicate(B){return this._skipPredicateFn=B,this}withWrap(B=!0){return this._wrap=B,this}withVerticalOrientation(B=!0){return this._vertical=B,this}withHorizontalOrientation(B){return this._horizontal=B,this}withAllowedModifierKeys(B){return this._allowedModifierKeys=B,this}withTypeAhead(B=200){this._typeaheadSubscription.unsubscribe();const oe=this._getItemsArray();return this._typeahead=new ae.i(oe,{debounceInterval:"number"==typeof B?B:void 0,skipPredicate:ke=>this._skipPredicateFn(ke)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(ke=>{this.setActiveItem(ke)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(B=!0){return this._homeAndEnd=B,this}withPageUpDown(B=!0,oe=10){return this._pageUpAndDown={enabled:B,delta:oe},this}setActiveItem(B){const oe=this._activeItem();this.updateActiveItem(B),this._activeItem()!==oe&&this.change.next(this._activeItemIndex())}onKeydown(B){const oe=B.keyCode,Le=["altKey","ctrlKey","metaKey","shiftKey"].every(W=>!B[W]||this._allowedModifierKeys.indexOf(W)>-1);switch(oe){case Se.wn:return void this.tabOut.next();case Se.n6:if(this._vertical&&Le){this.setNextItemActive();break}return;case Se.i7:if(this._vertical&&Le){this.setPreviousItemActive();break}return;case Se.LE:if(this._horizontal&&Le){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Se.UQ:if(this._horizontal&&Le){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case Se.yZ:if(this._homeAndEnd&&Le){this.setFirstItemActive();break}return;case Se.Kp:if(this._homeAndEnd&&Le){this.setLastItemActive();break}return;case Se.w_:if(this._pageUpAndDown.enabled&&Le){const W=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(W>0?W:0,1);break}return;case Se.dB:if(this._pageUpAndDown.enabled&&Le){const W=this._activeItemIndex()+this._pageUpAndDown.delta,He=this._getItemsArray().length;this._setActiveItemByIndex(W<He?W:He-1,-1);break}return;default:return void((Le||(0,he.rp)(B,"shiftKey"))&&this._typeahead?.handleKey(B))}this._typeahead?.reset(),B.preventDefault()}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(B){const oe=this._getItemsArray(),ke="number"==typeof B?B:oe.indexOf(B);this._activeItem.set(oe[ke]??null),this._activeItemIndex.set(ke),this._typeahead?.setCurrentSelectedItemIndex(ke)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(B){this._wrap?this._setActiveInWrapMode(B):this._setActiveInDefaultMode(B)}_setActiveInWrapMode(B){const oe=this._getItemsArray();for(let ke=1;ke<=oe.length;ke++){const Le=(this._activeItemIndex()+B*ke+oe.length)%oe.length;if(!this._skipPredicateFn(oe[Le]))return void this.setActiveItem(Le)}}_setActiveInDefaultMode(B){this._setActiveItemByIndex(this._activeItemIndex()+B,B)}_setActiveItemByIndex(B,oe){const ke=this._getItemsArray();if(ke[B]){for(;this._skipPredicateFn(ke[B]);)if(!ke[B+=oe])return;this.setActiveItem(B)}}_getItemsArray(){return(0,le.Hps)(this._items)?this._items():this._items instanceof le.rOR?this._items.toArray():this._items}_itemsChanged(B){this._typeahead?.setItems(B);const oe=this._activeItem();if(oe){const ke=B.indexOf(oe);ke>-1&&ke!==this._activeItemIndex()&&(this._activeItemIndex.set(ke),this._typeahead?.setCurrentSelectedItemIndex(ke))}}}},4775(Ue,Ae,te){te.d(Ae,{i:()=>be});var le=te(1413),N=te(152),M=te(5964),F=te(6354),ae=te(8141),he=te(413);class be{_letterKeyStream=new le.B;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new le.B;selectedItem=this._selectedItem;constructor(B,oe){const ke="number"==typeof oe?.debounceInterval?oe.debounceInterval:200;oe?.skipPredicate&&(this._skipPredicateFn=oe.skipPredicate),this.setItems(B),this._setupKeyHandler(ke)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(B){this._selectedItemIndex=B}setItems(B){this._items=B}handleKey(B){const oe=B.keyCode;B.key&&1===B.key.length?this._letterKeyStream.next(B.key.toLocaleUpperCase()):(oe>=he.A&&oe<=he.Z||oe>=he.f2&&oe<=he.bn)&&this._letterKeyStream.next(String.fromCharCode(oe))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(B){this._letterKeyStream.pipe((0,ae.M)(oe=>this._pressedLetters.push(oe)),(0,N.B)(B),(0,M.p)(()=>this._pressedLetters.length>0),(0,F.T)(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(oe=>{for(let ke=1;ke<this._items.length+1;ke++){const W=this._items[(this._selectedItemIndex+ke)%this._items.length];if(!this._skipPredicateFn?.(W)&&0===W.getLabel?.().toLocaleUpperCase().trim().indexOf(oe)){this._selectedItem.next(W);break}}this._pressedLetters=[]})}}}}]);

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.