You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
854 KiB
44 lines
854 KiB
3 years ago
|
/*
|
||
|
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||
|
if you want to view the source visit the plugins github repository
|
||
|
*/
|
||
|
|
||
|
var As=Object.create;var Dr=Object.defineProperty,Ms=Object.defineProperties,Rs=Object.getOwnPropertyDescriptor,Cs=Object.getOwnPropertyDescriptors,bs=Object.getOwnPropertyNames,Kn=Object.getOwnPropertySymbols,Is=Object.getPrototypeOf,Yn=Object.prototype.hasOwnProperty,ws=Object.prototype.propertyIsEnumerable;var Wn=(e,g,r)=>g in e?Dr(e,g,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[g]=r,rr=(e,g)=>{for(var r in g||(g={}))Yn.call(g,r)&&Wn(e,r,g[r]);if(Kn)for(var r of Kn(g))ws.call(g,r)&&Wn(e,r,g[r]);return e},Nr=(e,g)=>Ms(e,Cs(g)),zn=e=>Dr(e,"__esModule",{value:!0});var _o=typeof require!="undefined"?require:e=>{throw new Error('Dynamic require of "'+e+'" is not supported')};var sr=(e,g)=>()=>(g||e((g={exports:{}}).exports,g),g.exports),Ds=(e,g)=>{zn(e);for(var r in g)Dr(e,r,{get:g[r],enumerable:!0})},Ns=(e,g,r)=>{if(g&&typeof g=="object"||typeof g=="function")for(let t of bs(g))!Yn.call(e,t)&&t!=="default"&&Dr(e,t,{get:()=>g[t],enumerable:!(r=Rs(g,t))||r.enumerable});return e},Jt=e=>Ns(zn(Dr(e!=null?As(Is(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Bt=(e,g,r)=>new Promise((t,p)=>{var i=f=>{try{n(r.next(f))}catch(h){p(h)}},o=f=>{try{n(r.throw(f))}catch(h){p(h)}},n=f=>f.done?t(f.value):Promise.resolve(f.value).then(i,o);n((r=r.apply(e,g)).next())});var Pr=sr(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});function qn(e,g){if(g)return e;throw new Error("Unhandled discriminated union member: "+JSON.stringify(e))}Gr.assertNever=qn;Gr.default=qn});var Kr=sr((Vr,Xn)=>{(function(e,g){typeof Vr=="object"&&typeof Xn!="undefined"?g(Vr):typeof define=="function"&&define.amd?define(["exports"],g):(e=typeof globalThis!="undefined"?globalThis:e||self,g(e["@tinyfe/parseUnit"]={}))})(Vr,function(e){"use strict";let g="(v[h|w|min|max]|p[c|t|x]|[re|e|c|m]m|[l|c]h|%|in|Q|ex)",r=new RegExp(g),t=["auto","revert","unset","inherit","initial","max-content","min-content","fit-content","-webkit-fill-available"];function p(o){return r.test(i(o)[1])}function i(o,n={}){let{onlyValue:f=!1,onlyUnit:h=!1}=n;if(typeof o=="number")return f?o:h?"":[o,""];let m=[0,""];if(t.includes(o))return[o,""];o=String(o);let u=parseFloat(o),_=o.match(/[\d.\-\+]*\s*(.*)/)[1];return m=[u,_],f?u:h?_:m}e.cssUnit=g,e.cssUnitRegex=r,e.default=i,e.isCssValue=p,Object.defineProperty(e,"__esModule",{value:!0})})});var na=sr((ko,ra)=>{"use strict";ra.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,g=>`%${g.charCodeAt(0).toString(16).toUpperCase()}`)});var la=sr((Bo,oa)=>{"use strict";var aa="%[a-f0-9]{2}",ia=new RegExp(aa,"gi"),sa=new RegExp("("+aa+")+","gi");function cn(e,g){try{return decodeURIComponent(e.join(""))}catch(p){}if(e.length===1)return e;g=g||1;var r=e.slice(0,g),t=e.slice(g);return Array.prototype.concat.call([],cn(r),cn(t))}function Ps(e){try{return decodeURIComponent(e)}catch(t){for(var g=e.match(ia),r=1;r<g.length;r++)e=cn(g,r).join(""),g=e.match(ia);return e}}function Os(e){for(var g={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=sa.exec(e);r;){try{g[r[0]]=decodeURIComponent(r[0])}catch(n){var t=Ps(r[0]);t!==r[0]&&(g[r[0]]=t)}r=sa.exec(e)}g["%C2"]="\uFFFD";for(var p=Object.keys(g),i=0;i<p.length;i++){var o=p[i];e=e.replace(new RegExp(o,"g"),g[o])}return e}oa.exports=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(g){return Os(e)}}});var fa=sr((Uo,ua)=>{"use strict";ua.exports=(e,g)=>{if(!(typeof e=="string"&&typeof g=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(g==="")return[e];let r=e.indexOf(g);return r===-1?[e]:[e.slice(0,r),e.slice(r+g.length)]}});var ca=sr((Ho,da)=>{"use strict";da.exports=function(e,g){for(var r={},t=Object.keys(e),p=Array.isArray(g),i=0;i<t.length;i++){var o=t[i],n=e[o];(p?g.indexOf(o)!==-1:g(o,n,e))&&(r[o]=n)}return r}});var zr=sr(or=>{"use strict";var Ls=na(),Fs=la(),ha=fa(),xs=ca(),ks=e=>e==null,hn=Symbol("encodeFragmentIdentifier");function Bs(e){switch
|
||
|
\r
|
||
|
`,n=o.concat(e.toVTT(i)),f=new Blob([n],{type:"text/vtt"});return r.objectURL=URL.createObjectURL(f),t(r.objectURL)},function(){r.blobToBuffer().then(function(i){var o=new TextDecoder("utf-8").decode(i),n=`WEBVTT FILE\r
|
||
|
\r
|
||
|
`,f=n.concat(e.toVTT(o)),h=new Blob([f],{type:"text/vtt"});return r.objectURL=URL.createObjectURL(h),t(r.objectURL)})}):p("No TextDecoder constructor found"):p("No FileReader constructor found"):p("Expecting resource to be a Blob but something else found.")})}},{key:"release",value:function(){URL.createObjectURL(this.objectURL)}}],[{key:"blobToString",value:function(r,t,p){var i=new FileReader;i.addEventListener("loadend",function(o){var n=o.target.result;t(n)}),i.addEventListener("error",function(){return p()}),i.readAsText(r)}},{key:"toVTT",value:function(r){return r.replace(/\{\\([ibu])\}/g,"</$1>").replace(/\{\\([ibu])1\}/g,"<$1>").replace(/\{([ibu])\}/g,"<$1>").replace(/\{\/([ibu])\}/g,"</$1>").replace(/(\d\d:\d\d:\d\d),(\d\d\d)/g,"$1.$2").concat(`\r
|
||
|
\r
|
||
|
`)}},{key:"toTypedArray",value:function(r){var t=[];return r.split("").forEach(function(p){t.push(parseInt(p.charCodeAt(),16))}),Uint8Array.from(t)}}]),e}();window.WebVTTConverter=Na;vn.default=Na});var Ua=sr((An,Mn)=>{typeof navigator=="object"&&function(e,g){typeof An=="object"&&typeof Mn!="undefined"?Mn.exports=g():typeof define=="function"&&define.amd?define("Plyr",g):(e=typeof globalThis!="undefined"?globalThis:e||self).Plyr=g()}(An,function(){"use strict";function e(S,z,F){return z in S?Object.defineProperty(S,z,{value:F,enumerable:!0,configurable:!0,writable:!0}):S[z]=F,S}function g(S,z){for(var F=0;F<z.length;F++){var q=z[F];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(S,q.key,q)}}function r(S,z,F){return z in S?Object.defineProperty(S,z,{value:F,enumerable:!0,configurable:!0,writable:!0}):S[z]=F,S}function t(S,z){var F=Object.keys(S);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(S);z&&(q=q.filter(function(fe){return Object.getOwnPropertyDescriptor(S,fe).enumerable})),F.push.apply(F,q)}return F}function p(S){for(var z=1;z<arguments.length;z++){var F=arguments[z]!=null?arguments[z]:{};z%2?t(Object(F),!0).forEach(function(q){r(S,q,F[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(F)):t(Object(F)).forEach(function(q){Object.defineProperty(S,q,Object.getOwnPropertyDescriptor(F,q))})}return S}var i={addCSS:!0,thumbWidth:15,watch:!0};function o(S,z){return function(){return Array.from(document.querySelectorAll(z)).includes(this)}.call(S,z)}var n=function(S){return S!=null?S.constructor:null},f=function(S,z){return!!(S&&z&&S instanceof z)},h=function(S){return S==null},m=function(S){return n(S)===Object},u=function(S){return n(S)===String},_=function(S){return Array.isArray(S)},C=function(S){return f(S,NodeList)},k=u,R=_,P=C,w=function(S){return f(S,Element)},H=function(S){return f(S,Event)},N=function(S){return h(S)||(u(S)||_(S)||C(S))&&!S.length||m(S)&&!Object.keys(S).length};function A(S,z){if(1>z){var F=function(q){var fe="".concat(q).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return fe?Math.max(0,(fe[1]?fe[1].length:0)-(fe[2]?+fe[2]:0)):0}(z);return parseFloat(S.toFixed(F))}return Math.round(S/z)*z}var M=function(){function S(z,F){(function(q,fe){if(!(q instanceof fe))throw new TypeError("Cannot call a class as a function")})(this,S),w(z)?this.element=z:k(z)&&(this.element=document.querySelector(z)),w(this.element)&&N(this.element.rangeTouch)&&(this.config=p({},i,{},F),this.init())}return function(z,F,q){F&&g(z.prototype,F),q&&g(z,q)}(S,[{key:"init",value:function(){S.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){S.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(z){var F=this,q=z?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(fe){F.element[q](fe,function(ge){return F.set(ge)},!1)})}},{key:"get",value:function(z){if(!S.enabled||!H(z))return null;var F,q=z.target,fe=z.changedTouches[0],ge=parseFloat(q.getAttribute("min"))||0,Me=parseFloat(q.getAttribute("max"))||100,ke=parseFloat(q.getAttribute("step"))||1,$e=q.getBoundingClientRect(),gt=100/$e.width*(this.config.thumbWidth/2)/100;return 0>(F=100/$e.width*(fe.clientX-$e.left))?F=0:100<F&&(F=100),50>F?F-=(100-2*F)*gt:50<F&&(F+=2*(F-50)*gt),ge+A(F/100*(Me-ge),ke)}},{key:"set",value:function(z){S.enabled&&H(z)&&!z.target.disabled&&(z.preventDefault(),z.target.value=this.get(z),function(F,q){if(F&&q){var fe=new Event(q,{bubbles:!0});F.dispatchEvent(fe)}}(z.target,z.type==="touchend"?"change":"input"))}}],[{key:"setup",value:function(z){var F=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},q=null;if(N(z)||k(z)?q=Array.from(docume
|
||
|
`);if(F!==this.elements.captions.innerHTML){V(this.elements.captions);let q=l("span",$(this.config.selectors.caption));q.innerHTML=F,this.elements.captions.appendChild(q),we.call(this,this.media,"cuechange")}}},Gt={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.6.8/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",em
|
||
|
`)),W},getTextAndFormat:function(){return this.rows}};var N=function(v,T){this.chNr=v,this.outputFilter=T,this.mode=null,this.verbose=0,this.displayedMemory=new H,this.nonDisplayedMemory=new H,this.lastOutputScreen=new H,this.currRollUpRow=this.displayedMemory.rows[o-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null};N.prototype={modes:["MODE_ROLL-UP","MODE_POP-ON","MODE_PAINT-ON","MODE_TEXT"],reset:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.currRollUpRow=this.displayedMemory.rows[o-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.lastCueEndTime=null},getHandler:function(){return this.outputFilter},setHandler:function(v){this.outputFilter=v},setPAC:function(v){this.writeScreen.setPAC(v)},setBkgData:function(v){this.writeScreen.setBkgData(v)},setMode:function(v){v!==this.mode&&(this.mode=v,C.log("INFO","MODE="+v),this.mode=="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=v)},insertChars:function(v){for(var T=0;T<v.length;T++)this.writeScreen.insertChar(v[T]);var W=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";C.log("INFO",W+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(C.log("TEXT","DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},cc_RCL:function(){C.log("INFO","RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},cc_BS:function(){C.log("INFO","BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},cc_AOF:function(){},cc_AON:function(){},cc_DER:function(){C.log("INFO","DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},cc_RU:function(v){C.log("INFO","RU("+v+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(v)},cc_FON:function(){C.log("INFO","FON - Flash On"),this.writeScreen.setPen({flash:!0})},cc_RDC:function(){C.log("INFO","RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},cc_TR:function(){C.log("INFO","TR"),this.setMode("MODE_TEXT")},cc_RTD:function(){C.log("INFO","RTD"),this.setMode("MODE_TEXT")},cc_EDM:function(){C.log("INFO","EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate()},cc_CR:function(){C.log("CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate()},cc_ENM:function(){C.log("INFO","ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},cc_EOC:function(){if(C.log("INFO","EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var v=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=v,this.writeScreen=this.nonDisplayedMemory,C.log("TEXT","DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate()},cc_TO:function(v){C.log("INFO","TO("+v+") - Tab Offset"),this.writeScreen.moveCursor(v)},cc_MIDROW:function(v){var T={flash:!1};if(T.underline=v%2==1,T.italics=v>=46,T.italics)T.foreground="white";else{var W=Math.floor(v/2)-16,O=["white","green","blue","cyan","red","yellow","magenta"];T.foreground=O[W]}C.log("INFO","MIDROW: "+JSON.stringify(T)),this.writeScreen.setPen(T)},outputDataUpdate:function(){var v=C.time;v!==null&&this.outputFilter&&(this.outputFilter.updateData&&this.outputFilter.updateData(v,this.displayedMemory),this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=v:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,v,this.lastOutputScreen),this.cueStartTime=this.displayedMemory.isEmpty()?null:v),this.lastOutputScreen.copy(this.displayedMemory))},cueSplitAtTime:function(v){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.c
|
||
|
`)),p.stripWhitespaces&&(Y.__text=Y.__text.trim()),delete Y["#text"],p.arrayAccessForm=="property"&&delete Y["#text_asArray"],Y.__text=P(Y.__text,ve,U+"."+ve)),Y["#cdata-section"]!=null&&(Y.__cdata=Y["#cdata-section"],delete Y["#cdata-section"],p.arrayAccessForm=="property"&&delete Y["#cdata-section_asArray"]),Y.__cnt==0&&p.emptyNodeForm=="text"?Y="":Y.__cnt==1&&Y.__text!=null?Y=Y.__text:Y.__cnt==1&&Y.__cdata!=null&&!p.keepCData?Y=Y.__cdata:Y.__cnt>1&&Y.__text!=null&&p.skipEmptyTextNodesForObj&&(p.stripWhitespaces&&Y.__text==""||Y.__text.trim()=="")&&delete Y.__text,delete Y.__cnt,p.enableToStringFunc&&(Y.__text!=null||Y.__cdata!=null)&&(Y.toString=function(){return(this.__text!=null?this.__text:"")+(this.__cdata!=null?this.__cdata:"")}),Y}else if(x.nodeType==n.TEXT_NODE||x.nodeType==n.CDATA_SECTION_NODE)return x.nodeValue}function N(x,U,Y,oe){var ue="<"+(x!=null&&x.__prefix!=null?x.__prefix+":":"")+U;if(Y!=null)for(var re=0;re<Y.length;re++){var ve=Y[re],ce=x[ve];p.escapeMode&&(ce=u(ce)),ue+=" "+ve.substr(p.attributePrefix.length)+"=",p.useDoubleQuotes?ue+='"'+ce+'"':ue+="'"+ce+"'"}return oe?ue+="/>":ue+=">",ue}function A(x,U){return"</"+(x.__prefix!=null?x.__prefix+":":"")+U+">"}function M(x,U){return x.indexOf(U,x.length-U.length)!==-1}function I(x,U){return!!(p.arrayAccessForm=="property"&&M(U.toString(),"_asArray")||U.toString().indexOf(p.attributePrefix)==0||U.toString().indexOf("__")==0||x[U]instanceof Function)}function D(x){var U=0;if(x instanceof Object)for(var Y in x)I(x,Y)||U++;return U}function v(x,U,Y){return p.jsonPropertiesFilter.length==0||Y==""||C(p.jsonPropertiesFilter,x,U,Y)}function T(x){var U=[];if(x instanceof Object)for(var Y in x)Y.toString().indexOf("__")==-1&&Y.toString().indexOf(p.attributePrefix)==0&&U.push(Y);return U}function W(x){var U="";return x.__cdata!=null&&(U+="<![CDATA["+x.__cdata+"]]>"),x.__text!=null&&(p.escapeMode?U+=u(x.__text):U+=x.__text),U}function O(x){var U="";return x instanceof Object?U+=W(x):x!=null&&(p.escapeMode?U+=u(x):U+=x),U}function B(x,U){return x===""?U:x+"."+U}function L(x,U,Y,oe){var ue="";if(x.length==0)ue+=N(x,U,Y,!0);else for(var re=0;re<x.length;re++)ue+=N(x[re],U,T(x[re]),!1),ue+=K(x[re],B(oe,U)),ue+=A(x[re],U);return ue}function K(x,U){var Y="",oe=D(x);if(oe>0){for(var ue in x)if(!(I(x,ue)||U!=""&&!v(x,ue,B(U,ue)))){var re=x[ue],ve=T(re);if(re==null||re==null)Y+=N(re,ue,ve,!0);else if(re instanceof Object)if(re instanceof Array)Y+=L(re,ue,ve,U);else if(re instanceof Date)Y+=N(re,ue,ve,!1),Y+=re.toISOString(),Y+=A(re,ue);else{var ce=D(re);ce>0||re.__text!=null||re.__cdata!=null?(Y+=N(re,ue,ve,!1),Y+=K(re,B(U,ue)),Y+=A(re,ue)):Y+=N(re,ue,ve,!0)}else Y+=N(re,ue,ve,!1),Y+=O(re),Y+=A(re,ue)}}return Y+=O(x),Y}this.parseXmlString=function(x){var U=window.ActiveXObject||"ActiveXObject"in window;if(x===void 0)return null;var Y;if(window.DOMParser){var oe=new window.DOMParser,ue=null;try{Y=oe.parseFromString(x,"text/xml"),Y.getElementsByTagNameNS("*","parsererror").length>0&&(Y=null)}catch(re){Y=null}}else x.indexOf("<?")==0&&(x=x.substr(x.indexOf("?>")+2)),Y=new ActiveXObject("Microsoft.XMLDOM"),Y.async="false",Y.loadXML(x);return Y},this.asArray=function(x){return x===void 0||x==null?[]:x instanceof Array?x:[x]},this.toXmlDateTime=function(x){return x instanceof Date?x.toISOString():typeof x=="number"?new Date(x).toISOString():null},this.asDateTime=function(x){return typeof x=="string"?R(x):x},this.xml2json=function(x){return H(x)},this.xml_str2json=function(x){var U=this.parseXmlString(x);return U!=null?this.xml2json(U):null},this.json2xml_str=function(x){return K(x,"")},this.json2xml=function(x){var U=this.json2xml_str(x);return this.parseXmlString(U)},this.getVersion=function(){return i}}r.default=t,g.exports=r.default},{}],4:[function(e,g,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});function t(k){return k&&k.__esModule?k:{default:k}}var p=e(5),i=e(220),o=e(129),n=t(o),f=e(166),h=t(f),m=e(105),u=t(m),_=e(45),C=t(_);dashjs.Protection=h.default,dashjs.MetricsReporting=n.default,dashjs.MediaPlayerFactory=u.default,dashjs.Debug=C.default,dashj
|
||
|
`,R="0124356789",P="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",w=`'"`,H=k+">",N="[CDATA[",A="DOCTYPE",M="http://www.w3.org/XML/1998/namespace",I="http://www.w3.org/2000/xmlns/",D={xml:M,xmlns:I};k=B(k),R=B(R),P=B(P);var v=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,T=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/,W=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,O=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;w=B(w),H=B(H);function B(c){return c.split("").reduce(function(E,b){return E[b]=!0,E},{})}function L(c){return Object.prototype.toString.call(c)==="[object RegExp]"}function K(c,E){return L(c)?!!E.match(c):c[E]}function x(c,E){return!K(c,E)}var U=0;p.STATE={BEGIN:U++,BEGIN_WHITESPACE:U++,TEXT:U++,TEXT_ENTITY:U++,OPEN_WAKA:U++,SGML_DECL:U++,SGML_DECL_QUOTED:U++,DOCTYPE:U++,DOCTYPE_QUOTED:U++,DOCTYPE_DTD:U++,DOCTYPE_DTD_QUOTED:U++,COMMENT_STARTING:U++,COMMENT:U++,COMMENT_ENDING:U++,COMMENT_ENDED:U++,CDATA:U++,CDATA_ENDING:U++,CDATA_ENDING_2:U++,PROC_INST:U++,PROC_INST_BODY:U++,PROC_INST_ENDING:U++,OPEN_TAG:U++,OPEN_TAG_SLASH:U++,ATTRIB:U++,ATTRIB_NAME:U++,ATTRIB_NAME_SAW_WHITE:U++,ATTRIB_VALUE:U++,ATTRIB_VALUE_QUOTED:U++,ATTRIB_VALUE_CLOSED:U++,ATTRIB_VALUE_UNQUOTED:U++,ATTRIB_VALUE_ENTITY_Q:U++,ATTRIB_VALUE_ENTITY_U:U++,CLOSE_TAG:U++,CLOSE_TAG_SAW_WHITE:U++,SCRIPT:U++,SCRIPT_ENDING:U++},p.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},p.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang
|
||
|
Line: `+c.line+`
|
||
|
Column: `+c.column+`
|
||
|
Char: `+c.c),E=new Error(E),c.error=E,oe(c,"onerror",E),c}function se(c){return c.sawRoot&&!c.closedRoot&&J(c,"Unclosed root tag"),c.state!==U.BEGIN&&c.state!==U.BEGIN_WHITESPACE&&c.state!==U.TEXT&&ce(c,"Unexpected end"),re(c),c.c="",c.closed=!0,oe(c,"onend"),o.call(c,c.strict,c.opt),c}function J(c,E){if(typeof c!="object"||!(c instanceof o))throw new Error("bad call to strictFail");c.strict&&ce(c,E)}function ee(c){c.strict||(c.tagName=c.tagName[c.looseCase]());var E=c.tags[c.tags.length-1]||c,b=c.tag={name:c.tagName,attributes:{}};c.opt.xmlns&&(b.ns=E.ns),c.attribList.length=0,ue(c,"onopentagstart",b)}function ie(c,E){var b=c.indexOf(":"),l=b<0?["",c]:c.split(":"),d=l[0],y=l[1];return E&&c==="xmlns"&&(d="xmlns",y=""),{prefix:d,local:y}}function me(c){if(c.strict||(c.attribName=c.attribName[c.looseCase]()),c.attribList.indexOf(c.attribName)!==-1||c.tag.attributes.hasOwnProperty(c.attribName)){c.attribName=c.attribValue="";return}if(c.opt.xmlns){var E=ie(c.attribName,!0),b=E.prefix,l=E.local;if(b==="xmlns")if(l==="xml"&&c.attribValue!==M)J(c,"xml: prefix must be bound to "+M+`
|
||
|
Actual: `+c.attribValue);else if(l==="xmlns"&&c.attribValue!==I)J(c,"xmlns: prefix must be bound to "+I+`
|
||
|
Actual: `+c.attribValue);else{var d=c.tag,y=c.tags[c.tags.length-1]||c;d.ns===y.ns&&(d.ns=Object.create(y.ns)),d.ns[l]=c.attribValue}c.attribList.push([c.attribName,c.attribValue])}else c.tag.attributes[c.attribName]=c.attribValue,ue(c,"onattribute",{name:c.attribName,value:c.attribValue});c.attribName=c.attribValue=""}function de(c,E){if(c.opt.xmlns){var b=c.tag,l=ie(c.tagName);b.prefix=l.prefix,b.local=l.local,b.uri=b.ns[l.prefix]||"",b.prefix&&!b.uri&&(J(c,"Unbound namespace prefix: "+JSON.stringify(c.tagName)),b.uri=l.prefix);var d=c.tags[c.tags.length-1]||c;b.ns&&d.ns!==b.ns&&Object.keys(b.ns).forEach(function(_e){ue(c,"onopennamespace",{prefix:_e,uri:b.ns[_e]})});for(var y=0,V=c.attribList.length;y<V;y++){var te=c.attribList[y],$=te[0],ae=te[1],ne=ie($,!0),Se=ne.prefix,Ie=ne.local,he=Se===""?"":b.ns[Se]||"",ye={name:$,value:ae,prefix:Se,local:Ie,uri:he};Se&&Se!=="xmlns"&&!he&&(J(c,"Unbound namespace prefix: "+JSON.stringify(Se)),ye.uri=Se),c.tag.attributes[$]=ye,ue(c,"onattribute",ye)}c.attribList.length=0}c.tag.isSelfClosing=!!E,c.sawRoot=!0,c.tags.push(c.tag),ue(c,"onopentag",c.tag),E||(!c.noscript&&c.tagName.toLowerCase()==="script"?c.state=U.SCRIPT:c.state=U.TEXT,c.tag=null,c.tagName=""),c.attribName=c.attribValue="",c.attribList.length=0}function Q(c){if(!c.tagName){J(c,"Weird empty close tag."),c.textNode+="</>",c.state=U.TEXT;return}if(c.script){if(c.tagName!=="script"){c.script+="</"+c.tagName+">",c.tagName="",c.state=U.SCRIPT;return}ue(c,"onscript",c.script),c.script=""}var E=c.tags.length,b=c.tagName;c.strict||(b=b[c.looseCase]());for(var l=b;E--;){var d=c.tags[E];if(d.name!==l)J(c,"Unexpected close tag");else break}if(E<0){J(c,"Unmatched closing tag: "+c.tagName),c.textNode+="</"+c.tagName+">",c.state=U.TEXT;return}c.tagName=b;for(var y=c.tags.length;y-- >E;){var V=c.tag=c.tags.pop();c.tagName=c.tag.name,ue(c,"onclosetag",c.tagName);var te={};for(var $ in V.ns)te[$]=V.ns[$];var ae=c.tags[c.tags.length-1]||c;c.opt.xmlns&&V.ns!==ae.ns&&Object.keys(V.ns).forEach(function(ne){var Se=V.ns[ne];ue(c,"onclosenamespace",{prefix:ne,uri:Se})})}E===0&&(c.closedRoot=!0),c.tagName=c.attribValue=c.attribName="",c.attribList.length=0,c.state=U.TEXT}function X(c){var E=c.entity,b=E.toLowerCase(),l,d="";return c.ENTITIES[E]?c.ENTITIES[E]:c.ENTITIES[b]?c.ENTITIES[b]:(E=b,E.charAt(0)==="#"&&(E.charAt(1)==="x"?(E=E.slice(2),l=parseInt(E,16),d=l.toString(16)):(E=E.slice(1),l=parseInt(E,10),d=l.toString(10))),E=E.replace(/^0+/,""),d.toLowerCase()!==E?(J(c,"Invalid character entity"),"&"+c.entity+";"):String.fromCodePoint(l))}function j(c,E){E==="<"?(c.state=U.OPEN_WAKA,c.startTagPosition=c.position):x(k,E)&&(J(c,"Non-whitespace before first tag."),c.textNode=E,c.state=U.TEXT)}function le(c,E){var b="";return E<c.length&&(b=c.charAt(E)),b}function G(c){var E=this;if(this.error)throw this.error;if(E.closed)return ce(E,"Cannot write after close. Assign an onready handler.");if(c===null)return se(E);typeof c=="object"&&(c=c.toString());for(var b=0,l="";l=le(c,b++),E.c=l,!!l;)switch(E.trackPosition&&(E.position++,l===`
|
||
|
`?(E.line++,E.column=0):E.column++),E.state){case U.BEGIN:if(E.state=U.BEGIN_WHITESPACE,l==="\uFEFF")continue;j(E,l);continue;case U.BEGIN_WHITESPACE:j(E,l);continue;case U.TEXT:if(E.sawRoot&&!E.closedRoot){for(var d=b-1;l&&l!=="<"&&l!=="&";)l=le(c,b++),l&&E.trackPosition&&(E.position++,l===`
|
||
|
`?(E.line++,E.column=0):E.column++);E.textNode+=c.substring(d,b-1)}l==="<"&&!(E.sawRoot&&E.closedRoot&&!E.strict)?(E.state=U.OPEN_WAKA,E.startTagPosition=E.position):(x(k,l)&&(!E.sawRoot||E.closedRoot)&&J(E,"Text data outside of root node."),l==="&"?E.state=U.TEXT_ENTITY:E.textNode+=l);continue;case U.SCRIPT:l==="<"?E.state=U.SCRIPT_ENDING:E.script+=l;continue;case U.SCRIPT_ENDING:l==="/"?E.state=U.CLOSE_TAG:(E.script+="<"+l,E.state=U.SCRIPT);continue;case U.OPEN_WAKA:if(l==="!")E.state=U.SGML_DECL,E.sgmlDecl="";else if(!K(k,l))if(K(v,l))E.state=U.OPEN_TAG,E.tagName=l;else if(l==="/")E.state=U.CLOSE_TAG,E.tagName="";else if(l==="?")E.state=U.PROC_INST,E.procInstName=E.procInstBody="";else{if(J(E,"Unencoded <"),E.startTagPosition+1<E.position){var y=E.position-E.startTagPosition;l=new Array(y).join(" ")+l}E.textNode+="<"+l,E.state=U.TEXT}continue;case U.SGML_DECL:(E.sgmlDecl+l).toUpperCase()===N?(ue(E,"onopencdata"),E.state=U.CDATA,E.sgmlDecl="",E.cdata=""):E.sgmlDecl+l==="--"?(E.state=U.COMMENT,E.comment="",E.sgmlDecl=""):(E.sgmlDecl+l).toUpperCase()===A?(E.state=U.DOCTYPE,(E.doctype||E.sawRoot)&&J(E,"Inappropriately located doctype declaration"),E.doctype="",E.sgmlDecl=""):l===">"?(ue(E,"onsgmldeclaration",E.sgmlDecl),E.sgmlDecl="",E.state=U.TEXT):(K(w,l)&&(E.state=U.SGML_DECL_QUOTED),E.sgmlDecl+=l);continue;case U.SGML_DECL_QUOTED:l===E.q&&(E.state=U.SGML_DECL,E.q=""),E.sgmlDecl+=l;continue;case U.DOCTYPE:l===">"?(E.state=U.TEXT,ue(E,"ondoctype",E.doctype),E.doctype=!0):(E.doctype+=l,l==="["?E.state=U.DOCTYPE_DTD:K(w,l)&&(E.state=U.DOCTYPE_QUOTED,E.q=l));continue;case U.DOCTYPE_QUOTED:E.doctype+=l,l===E.q&&(E.q="",E.state=U.DOCTYPE);continue;case U.DOCTYPE_DTD:E.doctype+=l,l==="]"?E.state=U.DOCTYPE:K(w,l)&&(E.state=U.DOCTYPE_DTD_QUOTED,E.q=l);continue;case U.DOCTYPE_DTD_QUOTED:E.doctype+=l,l===E.q&&(E.state=U.DOCTYPE_DTD,E.q="");continue;case U.COMMENT:l==="-"?E.state=U.COMMENT_ENDING:E.comment+=l;continue;case U.COMMENT_ENDING:l==="-"?(E.state=U.COMMENT_ENDED,E.comment=ve(E.opt,E.comment),E.comment&&ue(E,"oncomment",E.comment),E.comment=""):(E.comment+="-"+l,E.state=U.COMMENT);continue;case U.COMMENT_ENDED:l!==">"?(J(E,"Malformed comment"),E.comment+="--"+l,E.state=U.COMMENT):E.state=U.TEXT;continue;case U.CDATA:l==="]"?E.state=U.CDATA_ENDING:E.cdata+=l;continue;case U.CDATA_ENDING:l==="]"?E.state=U.CDATA_ENDING_2:(E.cdata+="]"+l,E.state=U.CDATA);continue;case U.CDATA_ENDING_2:l===">"?(E.cdata&&ue(E,"oncdata",E.cdata),ue(E,"onclosecdata"),E.cdata="",E.state=U.TEXT):l==="]"?E.cdata+="]":(E.cdata+="]]"+l,E.state=U.CDATA);continue;case U.PROC_INST:l==="?"?E.state=U.PROC_INST_ENDING:K(k,l)?E.state=U.PROC_INST_BODY:E.procInstName+=l;continue;case U.PROC_INST_BODY:if(!E.procInstBody&&K(k,l))continue;l==="?"?E.state=U.PROC_INST_ENDING:E.procInstBody+=l;continue;case U.PROC_INST_ENDING:l===">"?(ue(E,"onprocessinginstruction",{name:E.procInstName,body:E.procInstBody}),E.procInstName=E.procInstBody="",E.state=U.TEXT):(E.procInstBody+="?"+l,E.state=U.PROC_INST_BODY);continue;case U.OPEN_TAG:K(T,l)?E.tagName+=l:(ee(E),l===">"?de(E):l==="/"?E.state=U.OPEN_TAG_SLASH:(x(k,l)&&J(E,"Invalid character in tag name"),E.state=U.ATTRIB));continue;case U.OPEN_TAG_SLASH:l===">"?(de(E,!0),Q(E)):(J(E,"Forward-slash in opening tag not followed by >"),E.state=U.ATTRIB);continue;case U.ATTRIB:if(K(k,l))continue;l===">"?de(E):l==="/"?E.state=U.OPEN_TAG_SLASH:K(v,l)?(E.attribName=l,E.attribValue="",E.state=U.ATTRIB_NAME):J(E,"Invalid attribute name");continue;case U.ATTRIB_NAME:l==="="?E.state=U.ATTRIB_VALUE:l===">"?(J(E,"Attribute without value"),E.attribValue=E.attribName,me(E),de(E)):K(k,l)?E.state=U.ATTRIB_NAME_SAW_WHITE:K(T,l)?E.attribName+=l:J(E,"Invalid attribute name");continue;case U.ATTRIB_NAME_SAW_WHITE:if(l==="=")E.state=U.ATTRIB_VALUE;else{if(K(k,l))continue;J(E,"Attribute without value"),E.tag.attributes[E.attribName]="",E.attribValue="",ue(E,"onattribute",{name:E.attribName,value:""}),E.attribName="",l===">"?de(E):K(v,l)?(E.attribName=l,E.state=U.ATTRIB_NAME):(J(E,"Invalid attribute name"),E.state=U.ATTRIB)}continue;case U.ATTRIB_VA
|
||
|
`),u=0,_=m.length;u<_;u++){var C=m[u],k=C.indexOf(": ");k>0&&(h[C.substring(0,k)]=C.substring(k+2))}return h}},{key:"generateUuid",value:function(){var f=new Date().getTime(),h="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(m){var u=(f+Math.random()*16)%16|0;return f=Math.floor(f/16),(m=="x"?u:u&3|8).toString(16)});return h}},{key:"generateHashCode",value:function(f){var h=0;if(f.length===0)return h;for(var m=0;m<f.length;m++){var u=f.charCodeAt(m);h=(h<<5)-h+u,h|=0}return h}}]),o}();r.default=i,g.exports=r.default},{}],50:[function(e,g,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getVersionString=p;var t="3.2.2";function p(){return t}},{}],51:[function(e,g,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t=function(_,C,k){var R=!0;e:for(;R;){var P=_,w=C,H=k;R=!1,P===null&&(P=Function.prototype);var N=Object.getOwnPropertyDescriptor(P,w);if(N===void 0){var A=Object.getPrototypeOf(P);if(A===null)return;_=A,C=w,k=H,R=!0,N=A=void 0;continue e}else{if("value"in N)return N.value;var M=N.get;return M===void 0?void 0:M.call(H)}}};function p(u){return u&&u.__esModule?u:{default:u}}function i(u,_){if(!(u instanceof _))throw new TypeError("Cannot call a class as a function")}function o(u,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);u.prototype=Object.create(_&&_.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(u,_):u.__proto__=_)}var n=e(52),f=p(n),h=function(u){o(_,u);function _(){i(this,_),t(Object.getPrototypeOf(_.prototype),"constructor",this).call(this),this.MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE=10,this.MANIFEST_LOADER_LOADING_FAILURE_ERROR_CODE=11,this.XLINK_LOADER_LOADING_FAILURE_ERROR_CODE=12,this.SEGMENTS_UPDATE_FAILED_ERROR_CODE=13,this.SEGMENTS_UNAVAILABLE_ERROR_CODE=14,this.SEGMENT_BASE_LOADER_ERROR_CODE=15,this.TIME_SYNC_FAILED_ERROR_CODE=16,this.FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE=17,this.FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE=18,this.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE=19,this.APPEND_ERROR_CODE=20,this.REMOVE_ERROR_CODE=21,this.DATA_UPDATE_FAILED_ERROR_CODE=22,this.CAPABILITY_MEDIASOURCE_ERROR_CODE=23,this.CAPABILITY_MEDIAKEYS_ERROR_CODE=24,this.DOWNLOAD_ERROR_ID_MANIFEST_CODE=25,this.DOWNLOAD_ERROR_ID_SIDX_CODE=26,this.DOWNLOAD_ERROR_ID_CONTENT_CODE=27,this.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE=28,this.DOWNLOAD_ERROR_ID_XLINK_CODE=29,this.MANIFEST_ERROR_ID_CODEC_CODE=30,this.MANIFEST_ERROR_ID_PARSE_CODE=31,this.MANIFEST_ERROR_ID_NOSTREAMS_CODE=32,this.TIMED_TEXT_ERROR_ID_PARSE_CODE=33,this.MANIFEST_ERROR_ID_MULTIPLEXED_CODE=34,this.MEDIASOURCE_TYPE_UNSUPPORTED_CODE=35,this.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE="parsing failed for ",this.MANIFEST_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading manifest: ",this.XLINK_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading Xlink element: ",this.SEGMENTS_UPDATE_FAILED_ERROR_MESSAGE="Segments update failed",this.SEGMENTS_UNAVAILABLE_ERROR_MESSAGE="no segments are available yet",this.SEGMENT_BASE_LOADER_ERROR_MESSAGE="error loading segments",this.TIME_SYNC_FAILED_ERROR_MESSAGE="Failed to synchronize time",this.FRAGMENT_LOADER_NULL_REQUEST_ERROR_MESSAGE="request is null",this.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE="Failed to resolve a valid URL",this.APPEND_ERROR_MESSAGE="chunk is not defined",this.REMOVE_ERROR_MESSAGE="buffer is not defined",this.DATA_UPDATE_FAILED_ERROR_MESSAGE="Data update failed",this.CAPABILITY_MEDIASOURCE_ERROR_MESSAGE="mediasource is not supported",this.CAPABILITY_MEDIAKEYS_ERROR_MESSAGE="mediakeys is not supported",this.TIMED_TEXT_ERROR_MESSAGE_PARSE="parsing error :",this.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE="Error creating source buffer of type : "}return _}(f.default),m=new h;r.default=m,g.exports=r.default},{"52":52}],52:[function(e,g,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t=function(){function o(n,f){for(var h=0;h<f.length;h++){var m=f[h];m.enumerable=m.enumerable||!1
|
||
|
`}}catch(b){re=!0,ve=b}finally{try{!ue&&ce.return&&ce.return()}finally{if(re)throw ve}}if(T.response.responseHeaders=oe,!Y.body)return Y.arrayBuffer().then(function(b){T.response.response=b;var l={loaded:b.byteLength,total:b.byteLength,stream:!1};T.progress(l),T.onload(),T.onend()});var ee=parseInt(Y.headers.get("Content-Length"),10),ie=0,me=!1,de=new Uint8Array,Q=0;T.reader=Y.body.getReader();var X=[],j=[],le=[],G=!0,c=P.get().streaming.abr.fetchThroughputCalculationMode,E=function b(l){var d=l.value,y=l.done;if(y){de&&(T.progress({loaded:ie,total:isNaN(ee)?ie:ee,lengthComputable:!0,time:I(c,j,le,X,ie),stream:!0}),T.response.response=de.buffer),T.onload(),T.onend();return}if(d&&d.length>0){if(de=A(de,d),ie+=d.length,X.push({ts:Date.now(),bytes:d.length}),c===h.default.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING&&G){var V=R.findLastTopIsoBoxCompleted(["moof"],de,Q);V.found&&(G=!1,j.push({ts:performance.now(),bytes:d.length}))}var te=R.findLastTopIsoBoxCompleted(["moov","mdat"],de,Q);if(te.found){var $=te.lastCompletedOffset+te.size;c===h.default.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING&&(G=!0,le.push({ts:performance.now(),bytes:de.length}));var ae=void 0;$===de.length?(ae=de,de=new Uint8Array):(ae=new Uint8Array(de.subarray(0,$)),de=de.subarray($)),T.progress({data:ae.buffer,lengthComputable:!1,noTrace:!0}),Q=0}else Q=te.lastCompletedOffset,me||(T.progress({lengthComputable:!1,noTrace:!0}),me=!0)}N(T,b)};N(T,E)}).catch(function(Y){T.onerror&&T.onerror(Y)})}function N(T,W){T.reader.read().then(W).catch(function(O){T.onerror&&T.response.status===200&&T.onerror(O)})}function A(T,W){if(T.length===0)return W;var O=new Uint8Array(T.length+W.length);return O.set(T),O.set(W,T.length),O}function M(T){if(T.abortController)T.abortController.abort();else if(T.reader)try{T.reader.cancel(),T.onabort()}catch(W){}}function I(T,W,O,B,L){switch(T){case h.default.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING:return D(W,O);case h.default.ABR_FETCH_THROUGHPUT_CALCULATION_DOWNLOADED_DATA:return v(B,L);default:return v(B,L)}}function D(T,W){try{var O=void 0,B=void 0;O=T.filter(function(U,Y){return Y>0&&Y<T.length-1}),B=W.filter(function(U,Y){return Y>0&&Y<W.length-1});var L=0;if(O.length>1){for(var K=0;K<O.length;K++)if(O[K]&&B[K]){var x=B[K].ts-O[K].ts;L+=x}return L}return null}catch(U){return null}}function v(T,W){try{if(T=T.filter(function(B){return B.bytes>W/4/T.length}),T.length>1){var O=function(){var B=0,L=(T[T.length-1].ts-T[0].ts)/T.length;return T.forEach(function(K,x){var U=T[x+1];if(U){var Y=U.ts-K.ts;B+=Y<L?Y:0}}),{v:B}}();if(typeof O=="object")return O.v}return null}catch(B){return null}}return w={load:H,abort:M,calculateDownloadedTime:I},w}m.__dashjs_factory_name="FetchLoader";var u=i.default.getClassFactory(m);r.default=u,g.exports=r.default},{"112":112,"47":47,"48":48}],161:[function(e,g,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});function t(K){return K&&K.__esModule?K:{default:K}}function p(K,x,U){return x in K?Object.defineProperty(K,x,{value:U,enumerable:!0,configurable:!0,writable:!0}):K[x]=U,K}var i=e(164),o=t(i),n=e(160),f=t(n),h=e(255),m=e(47),u=t(m),_=e(239),C=t(_),k=e(153),R=t(k),P=e(49),w=t(P),H=e(45),N=t(H),A=e(46),M=t(A),I=e(54),D=t(I),v=e(48),T=t(v),W=e(112),O=t(W);function B(K){K=K||{};var x=this.context,U=K.errHandler,Y=K.dashMetrics,oe=K.mediaPlayerModel,ue=K.requestModifier,re=K.boxParser,ve=K.useFetch||!1,ce=K.errors,se=K.requestTimeout||0,J=(0,M.default)(x).getInstance(),ee=(0,T.default)(x).getInstance(),ie=void 0,me=void 0,de=void 0,Q=void 0,X=void 0,j=void 0,le=void 0;function G(){var d;le=(0,N.default)(x).getInstance().getLogger(ie),me=[],de=[],Q=[],j=(0,R.default)(x).getInstance(),X=(d={},p(d,h.HTTPRequest.MPD_TYPE,ce.DOWNLOAD_ERROR_ID_MANIFEST_CODE),p(d,h.HTTPRequest.XLINK_EXPANSION_TYPE,ce.DOWNLOAD_ERROR_ID_XLINK_CODE),p(d,h.HTTPRequest.INIT_SEGMENT_TYPE,ce.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE),p(d,h.HTTPRequest.MEDIA_SEGMENT_TYPE,ce.DOWNLOAD_ERROR_ID_CONTENT_CODE),p(d,h.HTTPRequest.INDEX_SEGMENT_TYPE,ce.DOWNLOAD_ERROR_ID_CONTENT_CODE),p(d,h.HTTPRequest.BITSTREAM_SWITCHING
|
||
|
`);else{W="";break}else O=D[v],O.match(k)||(W=O);return W}return u={parse:H},w(),u}h.__dashjs_factory_name="VTTParser",r.default=i.default.getSingletonFactory(h),g.exports=r.default},{"45":45,"47":47}],236:[function(e,g,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});function t(n){return n&&n.__esModule?n:{default:n}}var p=e(47),i=t(p);function o(n){n=n||{};var f=void 0,h=n.blacklistController;function m(u){var _=0,C=void 0;return u&&u.some(function(k,R){return _=R,!h.contains(k.serviceLocation)})&&(C=u[_]),C}return f={select:m},f}o.__dashjs_factory_name="BasicSelector",r.default=i.default.getClassFactory(o),g.exports=r.default},{"47":47}],237:[function(e,g,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});function t(n){return n&&n.__esModule?n:{default:n}}var p=e(47),i=t(p);function o(n){n=n||{};var f=void 0,h=n.blacklistController;function m(C){var k=[],R=function(H){return!(k.length&&H.dvb_priority&&k.indexOf(H.dvb_priority)!==-1)},P=function(H){return h.contains(H.serviceLocation)?(H.dvb_priority&&k.push(H.dvb_priority),!1):!0};return C.filter(P).filter(R)}function u(C){var k=function(I,D){var v=I.dvb_priority-D.dvb_priority;return isNaN(v)?0:v},R=function(I,D,v){return!D||v[0].dvb_priority&&I.dvb_priority&&v[0].dvb_priority===I.dvb_priority},P=0,w=[],H=0,N=void 0,A=void 0;if(A=C.sort(k).filter(R),A.length)return A.length>1&&(A.forEach(function(M){P+=M.dvb_weight,w.push(P)}),N=Math.floor(Math.random()*(P-1)),w.every(function(M,I){return H=I,!(N<M)})),A[H]}function _(C){return C&&u(m(C))}return f={select:_},f}o.__dashjs_factory_name="DVBSelector",r.default=i.default.getClassFactory(o),g.exports=r.default},{"47":47}],238:[function(e,g,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});function t(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}var p=function i(){t(this,i),this.mediaType=null,this.bitrate=null,this.width=null,this.height=null,this.scanType=null,this.qualityIndex=NaN};r.default=p,g.exports=r.default},{}],239:[function(e,g,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});function t(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}var p=function i(o,n,f){t(this,i),this.code=o||null,this.message=n||null,this.data=f||null};r.default=p,g.exports=r.default},{}],240:[function(e,g,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});function t(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}var p=function i(){t(this,i),this.streamId=null,this.mediaInfo=null,this.segmentType=null,this.quality=NaN,this.index=NaN,this.bytes=null,this.start=NaN,this.end=NaN,this.duration=NaN,this.representationId=null,this.endFragment=null};r.default=p,g.exports=r.default},{}],241:[function(e,g,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t=function(){function n(f,h){for(var m=0;m<h.length;m++){var u=h[m];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(f,u.key,u)}}return function(f,h,m){return h&&n(f.prototype,h),m&&n(f,m),f}}();function p(n,f){if(!(n instanceof f))throw new TypeError("Cannot call a class as a function")}var i=e(255),o=function(){function n(f){p(this,n),this.action=n.ACTION_DOWNLOAD,this.startTime=NaN,this.mediaStartTime=NaN,this.mediaType=null,this.mediaInfo=null,this.type=null,this.duration=NaN,this.timescale=NaN,this.range=null,this.url=f||null,this.serviceLocation=null,this.requestStartDate=null,this.firstByteDate=null,this.requestEndDate=null,this.quality=NaN,this.index=NaN,this.availabilityStartTime=null,this.availabilityEndTime=null,this.wallStartTime=null,this.bytesLoaded=NaN,this.bytesTotal=NaN,this.delayLoadingTime=NaN,this.responseType="arraybuffer",this.representationId=null}return t(n,[{key:"isInitializationRequest",value:function(){return this.type&&this.type===i.HTTPRequest.INIT_SEGMENT_TYPE}},{key:"setInfo",value:function(h){this.type=h&&h.init?i.HTTPRequest.INIT_SEGMENT_TYPE:i.HTTPRequest.MEDIA_SEGMENT_TYPE,this.url=h&&h.url?h.url:null,this.range=h&&h
|
||
|
{{TIMESTAMP}}
|
||
|
`,timestampOffset:0,hideEmbedControls:!1},Va=e=>[...Object.entries(e)].filter(g=>g[1]).map(g=>g[0]),In=class extends ir.PluginSettingTab{constructor(g,r){super(g,r);this.setToggle=({k:g,name:r,desc:t},p)=>{let{settings:i}=this.plugin;new ir.Setting(this.containerEl).setName(r).setDesc(typeof t=="string"?t:createFragment(t)).addToggle(o=>{let n=i[g];if(typeof n=="boolean")o.setValue(n).onChange(f=>Bt(this,null,function*(){p&&p(f),i[g]=f,this.plugin.saveData(i),this.display()}));else throw new TypeError("toggle not boolean")})};this.plugin=r}display(){let{containerEl:g}=this;g.empty(),this.general(),this.noteTaking(),this.player(),this.ytb(),this.bili()}general(){let{containerEl:g}=this,{setToggle:r}=this;g.createEl("h2",{text:"General"}),r({k:"mediaFragmentsEmbed",name:"Embed Media Fragments",desc:t=>{t.appendText("If enabled, you can write ![[demo.mp4#t=10]] to embed the specific fragment of video/audio. "),t.createEl("br"),t.appendText("Loop is also available by appending #loop or #t=...&loop to filename"),t.createEl("br"),t.appendText("Restart the app to take effects")}}),r({k:"timestampLink",name:"Timestamps for Media",desc:t=>{t.appendText("If enabled, you can write [[demo.mp4#t=10]] to create timestamp link to the video/audio. Click on the link would open the media file if it's not opened yet. "),t.createEl("br"),t.appendText("PS: Only works in preview mode, hover preview on link is not available"),t.createEl("br"),t.appendText("Restart the app to take effects")}}),r({k:"extendedImageEmbedSyntax",name:"Extended Image Embed Syntax",desc:t=>{t.appendText("If enabled, you can write ![](link/to/demo.mp4) to embed video and audio."),t.createEl("br"),t.appendText("Timestamps and fragments are also available"),t.createEl("br"),t.appendText("Support direct file links (local/remote) and videos from video hosts (Youtube, bilibili...)"),t.createEl("br"),t.appendText("Restart the app to take effects")}})}player(){let{containerEl:g}=this,{setToggle:r}=this;g.createEl("h2",{text:"Player"}),r({k:"thumbnailPlaceholder",name:"Placeholder in favor of full player",desc:p=>{p.appendText("If enabled, thumbnail placeholder will be used in favor of full player when page loads"),p.createEl("br"),p.appendText("Works with for Youtube/Vimeo/bilibili embeds"),p.createEl("br"),p.appendText("Helpful when numerous video from Youtube/Vimeo/... is embeded in one single file"),p.createEl("br"),p.appendText("Restart the app to take effects")}}),r({k:"hideEmbedControls",name:"Hide Embed Controls By Default",desc:p=>{p.appendText("If enabled, embeds are rendered similar to images with all controls hidden, click on embeds to play/pause"),p.createEl("br"),p.appendText("You can still enable controls manually by append #controls to link"),p.createEl("br"),p.appendText("Restart the app to take effects")}});let t=new ir.Setting(g).setName("Plyr Controls").setDesc(createFragment(p=>{p.appendText("Show or hide certain plyr controls"),p.createEl("br"),p.appendText("Restart the app to take effects")}));new Cn(t.settingEl.createDiv({cls:"plyr-ctrls-container"}),this.plugin),new ir.Setting(g).setName("Maximum Player Height for Embeds").setDesc("Reload app to take effects").addText(p=>{let i=(0,ir.debounce)(o=>Bt(this,null,function*(){return yield this.plugin.setSizeSettings({embedMaxHeight:o})}),500,!0);p.setValue(this.plugin.sizeSettings.embedMaxHeight).onChange(o=>Bt(this,null,function*(){p.inputEl.toggleClass("incorrect",!(0,Fr.isCssValue)(o)),(0,Fr.isCssValue)(o)&&i(o)}))}),new ir.Setting(g).setName("Minimum Player Width for Embeds").addText(p=>{let i=(0,ir.debounce)(o=>Bt(this,null,function*(){this.plugin.setEmbedMinWidth(o),yield this.plugin.setSizeSettings({embedMinWidth:o})}),500,!0);p.setValue(this.plugin.sizeSettings.embedMinWidth).onChange(o=>Bt(this,null,function*(){p.inputEl.toggleClass("incorrect",!(0,Fr.isCssValue)(o)),(0,Fr.isCssValue)(o)&&i(o)}))})}noteTaking(){let{containerEl:g}=this;g.createEl("h2",{text:"Note Taking"}),new ir.Setting(g).setName("Timestamp Template").setDesc(createFragment(r=>{r.appendText("The template used to insert timestamp
|
||
|
/*!
|
||
|
* Determine if an object is a Buffer
|
||
|
*
|
||
|
* @author Feross Aboukhadijeh <https://feross.org>
|
||
|
* @license MIT
|
||
|
*/
|
||
|
/*!
|
||
|
* The buffer module from node.js, for the browser.
|
||
|
*
|
||
|
* @author Feross Aboukhadijeh <https://feross.org>
|
||
|
* @license MIT
|
||
|
*/
|
||
|
/*! codem-isoboxer v0.3.6 https://github.com/madebyhiro/codem-isoboxer/blob/master/LICENSE.txt */
|
||
|
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
||
|
/*! zero-fill. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|