Agriculture-front-end/dist/assets/video.66f4593f.js

67 lines
623 KiB
JavaScript
Raw Normal View History

2023-07-24 18:07:54 +08:00
import{Y as Mn,a3 as dd,C as Hp,r as qp,t as jp,x as Gp,a1 as Wp,o as zp,c as $p,k as Mu,M as Kp,_ as Xp}from"./index.db81687b.js";var _i;typeof window<"u"?_i=window:typeof Mn<"u"?_i=Mn:typeof self<"u"?_i=self:_i={};var A=_i;const Yp={},Qp=Object.freeze(Object.defineProperty({__proto__:null,default:Yp},Symbol.toStringTag,{value:"Module"})),Jp=dd(Qp);var Nu=typeof Mn<"u"?Mn:typeof window<"u"?window:{},Zp=Jp,Ti;typeof document<"u"?Ti=document:(Ti=Nu["__GLOBAL_DOCUMENT_CACHE@4"],Ti||(Ti=Nu["__GLOBAL_DOCUMENT_CACHE@4"]=Zp));var G=Ti;function ot(){return ot=Object.assign?Object.assign.bind():function(a){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},ot.apply(this,arguments)}const em=Object.freeze(Object.defineProperty({__proto__:null,default:ot},Symbol.toStringTag,{value:"Module"}));var hs={exports:{}};(function(a,t){function r(u){if(u&&typeof u=="object"){var l=u.which||u.keyCode||u.charCode;l&&(u=l)}if(typeof u=="number")return s[u];var c=String(u),g=n[c.toLowerCase()];if(g)return g;var g=e[c.toLowerCase()];if(g)return g;if(c.length===1)return c.charCodeAt(0)}r.isEventKey=function(l,c){if(l&&typeof l=="object"){var g=l.which||l.keyCode||l.charCode;if(g==null)return!1;if(typeof c=="string"){var m=n[c.toLowerCase()];if(m)return m===g;var m=e[c.toLowerCase()];if(m)return m===g}else if(typeof c=="number")return c===g;return!1}},t=a.exports=r;var n=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},e=t.aliases={windows:91,"\u21E7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
2023-06-20 16:37:55 +08:00
* Programatically add the following
2023-06-22 06:50:23 +08:00
*/for(i=97;i<123;i++)n[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)n[i-48]=i;for(i=1;i<13;i++)n["f"+i]=i+111;for(i=0;i<10;i++)n["numpad "+i]=i+96;var s=t.names=t.title={};for(i in n)s[n[i]]=i;for(var o in e)n[o]=e[o]})(hs,hs.exports);const te=hs.exports;function ee(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function Nr(a,t){return Nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},Nr(a,t)}function W(a,t){a.prototype=Object.create(t.prototype),a.prototype.constructor=a,Nr(a,t)}var tm=rm;function rm(a,t){var r,n=null;try{r=JSON.parse(a,t)}catch(e){n=e}return[n,r]}var oa={exports:{}};const im=dd(em);var nm=sm,am=Object.prototype.toString;function sm(a){if(!a)return!1;var t=am.call(a);return t==="[object Function]"||typeof a=="function"&&t!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}var om=A,um=function(t,r){return r===void 0&&(r=!1),function(n,e,i){if(n){t(n);return}if(e.statusCode>=400&&e.statusCode<=599){var s=i;if(r)if(om.TextDecoder){var o=lm(e.headers&&e.headers["content-type"]);try{s=new TextDecoder(o).decode(i)}catch{}}else s=String.fromCharCode.apply(null,new Uint8Array(i));t({cause:s});return}t(null,i)}};function lm(a){return a===void 0&&(a=""),a.toLowerCase().split(";").reduce(function(t,r){var n=r.split("="),e=n[0],i=n[1];return e.trim()==="charset"?i.trim():t},"utf-8")}var dm=um,cd=A,cm=im,fm=nm;xt.httpHandler=dm;/**
2023-06-20 16:37:55 +08:00
* @license
* slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
* Copyright (c) 2014 David Björklund
* Available under the MIT license
* <https://github.com/kesla/parse-headers/blob/master/LICENCE>
2023-06-22 06:50:23 +08:00
*/var hm=function(t){var r={};return t&&t.trim().split(`
`).forEach(function(n){var e=n.indexOf(":"),i=n.slice(0,e).trim().toLowerCase(),s=n.slice(e+1).trim();typeof r[i]>"u"?r[i]=s:Array.isArray(r[i])?r[i].push(s):r[i]=[r[i],s]}),r};oa.exports=xt;oa.exports.default=xt;xt.XMLHttpRequest=cd.XMLHttpRequest||vm;xt.XDomainRequest="withCredentials"in new xt.XMLHttpRequest?xt.XMLHttpRequest:cd.XDomainRequest;pm(["get","put","post","patch","head","delete"],function(a){xt[a==="delete"?"del":a]=function(t,r,n){return r=fd(t,r,n),r.method=a.toUpperCase(),hd(r)}});function pm(a,t){for(var r=0;r<a.length;r++)t(a[r])}function mm(a){for(var t in a)if(a.hasOwnProperty(t))return!1;return!0}function fd(a,t,r){var n=a;return fm(t)?(r=t,typeof a=="string"&&(n={uri:a})):n=cm({},t,{uri:a}),n.callback=r,n}function xt(a,t,r){return t=fd(a,t,r),hd(t)}function hd(a){if(typeof a.callback>"u")throw new Error("callback argument missing");var t=!1,r=function(H,L,F){t||(t=!0,a.callback(H,L,F))};function n(){o.readyState===4&&setTimeout(s,0)}function e(){var O=void 0;if(o.response?O=o.response:O=o.responseText||gm(o),S)try{O=JSON.parse(O)}catch{}return O}function i(O){return clearTimeout(x),O instanceof Error||(O=new Error(""+(O||"Unknown XMLHttpRequest Error"))),O.statusCode=0,r(O,w)}function s(){if(!l){var O;clearTimeout(x),a.useXDR&&o.status===void 0?O=200:O=o.status===1223?204:o.status;var H=w,L=null;return O!==0?(H={body:e(),statusCode:O,method:g,headers:{},url:c,rawRequest:o},o.getAllResponseHeaders&&(H.headers=hm(o.getAllResponseHeaders()))):L=new Error("Internal XMLHttpRequest Error"),r(L,H,H.body)}}var o=a.xhr||null;o||(a.cors||a.useXDR?o=new xt.XDomainRequest:o=new xt.XMLHttpRequest);var u,l,c=o.url=a.uri||a.url,g=o.method=a.method||"GET",m=a.body||a.data,_=o.headers=a.headers||{},b=!!a.sync,S=!1,x,w={body:void 0,headers:{},statusCode:0,method:g,url:c,rawRequest:o};if("json"in a&&a.json!==!1&&(S=!0,_.accept||_.Accept||(_.Accept="application/json"),g!=="GET"&&g!=="HEAD"&&(_["content-type"]||_["Content-Type"]||(_["Content-Type"]="application/json"),m=JSON.stringify(a.json===!0?m:a.json))),o.onreadystatechange=n,o.onload=s,o.onerror=i,o.onprogress=function(){},o.onabort=function(){l=!0},o.ontimeout=i,o.open(g,c,!b,a.username,a.password),b||(o.withCredentials=!!a.withCredentials),!b&&a.timeout>0&&(x=setTimeout(function(){if(!l){l=!0,o.abort("timeout");var O=new Error("XMLHttpRequest timeout");O.code="ETIMEDOUT",i(O)}},a.timeout)),o.setRequestHeader)for(u in _)_.hasOwnProperty(u)&&o.setRequestHeader(u,_[u]);else if(a.headers&&!mm(a.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in a&&(o.responseType=a.responseType),"beforeSend"in a&&typeof a.beforeSend=="function"&&a.beforeSend(o),o.send(m||null),o}function gm(a){try{if(a.responseType==="document")return a.responseXML;var t=a.responseXML&&a.responseXML.documentElement.nodeName==="parsererror";if(a.responseType===""&&!t)return a.responseXML}catch{}return null}function vm(){}var ps={exports:{}},Bu=G,Gs=Object.create||function(){function a(){}return function(t){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return a.prototype=t,new a}}();function rt(a,t){this.name="ParsingError",this.code=a.code,this.message=t||a.message}rt.prototype=Gs(Error.prototype);rt.prototype.constructor=rt;rt.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};function Ws(a){function t(n,e,i,s){return(n|0)*3600+(e|0)*60+(i|0)+(s|0)/1e3}var r=a.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return r?r[3]?t(r[1],r[2],r[3].replace(":",""),r[4]):r[1]>59?t(r[1],r[2],0,r[4]):t(0,r[1],r[2],r[4]):null}function Ci(){this.values=Gs(null)}Ci.prototype={set:function(a,t){!this.get(a)&&t!==""&&(this.values[a]=t)},get:function(a,t,r){return r?this.has(a)?this.values[a]:t[r]:this.has(a)?this.values[a]:t},has:function(a){return a in this.values},alt:function(a,t,r){for(var n=0;n<r.length;++n)if(t===r[n]){this.set(a,t);break}},integer:function(a,t){/^-?\d+$/.test(t)&&this.set(a,parseInt(t,10))},percent:function(a,t){return t.match(/^([
2023-06-20 16:37:55 +08:00
`;)++g;var m=c.substr(0,g);return c[g]==="\r"&&++g,c[g]===`
2023-06-22 06:50:23 +08:00
`&&++g,t.buffer=c.substr(g),m}function n(c){var g=new Ci;if(bi(c,function(_,b){switch(_){case"id":g.set(_,b);break;case"width":g.percent(_,b);break;case"lines":g.integer(_,b);break;case"regionanchor":case"viewportanchor":var S=b.split(",");if(S.length!==2)break;var x=new Ci;if(x.percent("x",S[0]),x.percent("y",S[1]),!x.has("x")||!x.has("y"))break;g.set(_+"X",x.get("x")),g.set(_+"Y",x.get("y"));break;case"scroll":g.alt(_,b,["up"]);break}},/=/,/\s/),g.has("id")){var m=new(t.vttjs.VTTRegion||t.window.VTTRegion);m.width=g.get("width",100),m.lines=g.get("lines",3),m.regionAnchorX=g.get("regionanchorX",0),m.regionAnchorY=g.get("regionanchorY",100),m.viewportAnchorX=g.get("viewportanchorX",0),m.viewportAnchorY=g.get("viewportanchorY",100),m.scroll=g.get("scroll",""),t.onregion&&t.onregion(m),t.regionList.push({id:g.get("id"),region:m})}}function e(c){var g=new Ci;bi(c,function(m,_){switch(m){case"MPEGT":g.integer(m+"S",_);break;case"LOCA":g.set(m+"L",Ws(_));break}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:g.get("MPEGTS"),LOCAL:g.get("LOCAL")})}function i(c){c.match(/X-TIMESTAMP-MAP/)?bi(c,function(g,m){switch(g){case"X-TIMESTAMP-MAP":e(m);break}},/=/):bi(c,function(g,m){switch(g){case"Region":n(m);break}},/:/)}try{var s;if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;s=r();var o=s.match(/^WEBVTT([ \t].*)?$/);if(!o||!o[0])throw new rt(rt.Errors.BadSignature);t.state="HEADER"}for(var u=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(u?u=!1:s=r(),t.state){case"HEADER":/:/.test(s)?i(s):s||(t.state="ID");continue;case"NOTE":s||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(s)){t.state="NOTE";break}if(!s)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch{t.cue.align="middle"}if(t.state="CUE",s.indexOf("-->")===-1){t.cue.id=s;continue}case"CUE":try{ym(s,t.cue,t.regionList)}catch(c){t.reportOrThrowError(c),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var l=s.indexOf("-->")!==-1;if(!s||l&&(u=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+=`
2023-06-20 16:37:55 +08:00
`),t.cue.text+=s.replace(/\u2028/g,`
`).replace(/u2029/g,`
`);continue;case"BADCUE":s||(t.state="ID");continue}}}catch(c){t.reportOrThrowError(c),t.state==="CUETEXT"&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var a=this;try{if(a.buffer+=a.decoder.decode(),(a.cue||a.state==="HEADER")&&(a.buffer+=`
2023-06-22 06:50:23 +08:00
`,a.parse()),a.state==="INITIAL")throw new rt(rt.Errors.BadSignature)}catch(t){a.reportOrThrowError(t)}return a.onflush&&a.onflush(),this}};var wm=Xr,km="auto",Pm={"":1,lr:1,rl:1},Im={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function Om(a){if(typeof a!="string")return!1;var t=Pm[a.toLowerCase()];return t?a.toLowerCase():!1}function Wa(a){if(typeof a!="string")return!1;var t=Im[a.toLowerCase()];return t?a.toLowerCase():!1}function md(a,t,r){this.hasBeenReset=!1;var n="",e=!1,i=a,s=t,o=r,u=null,l="",c=!0,g="auto",m="start",_="auto",b="auto",S=100,x="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return n},set:function(w){n=""+w}},pauseOnExit:{enumerable:!0,get:function(){return e},set:function(w){e=!!w}},startTime:{enumerable:!0,get:function(){return i},set:function(w){if(typeof w!="number")throw new TypeError("Start time must be set to a number.");i=w,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return s},set:function(w){if(typeof w!="number")throw new TypeError("End time must be set to a number.");s=w,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return o},set:function(w){o=""+w,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(w){u=w,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return l},set:function(w){var O=Om(w);if(O===!1)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");l=O,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return c},set:function(w){c=!!w,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return g},set:function(w){if(typeof w!="number"&&w!==km)throw new SyntaxError("Line: an invalid number or illegal string was specified.");g=w,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return m},set:function(w){var O=Wa(w);O?(m=O,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return _},set:function(w){if(w<0||w>100)throw new Error("Position must be between 0 and 100.");_=w,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return b},set:function(w){var O=Wa(w);O?(b=O,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return S},set:function(w){if(w<0||w>100)throw new Error("Size must be between 0 and 100.");S=w,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return x},set:function(w){var O=Wa(w);if(!O)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");x=O,this.hasBeenReset=!0}}}),this.displayState=void 0}md.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var Lm=md,Fm={"":!0,up:!0};function Rm(a){if(typeof a!="string")return!1;var t=Fm[a.toLowerCase()];return t?a.toLowerCase():!1}function fi(a){return typeof a=="number"&&a>=0&&a<=100}function Mm(){var a=100,t=3,r=0,n=100,e=0,i=100,s="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return a},set:function(o){if(!fi(o))throw new Error("Width must be between 0 and 100.");a=o}},lines:{enumerable:!0,get:function(){return t},set:function(o){if(typeof o!="number")throw new TypeError("Lines must be set to a number.");t=o}},regionAnchorY:{enumerable:!0,get:function(){return n},set:function(o){if(!fi(o))throw new Error("RegionAnchorX must be between 0 and 100.");n=o}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(o){if(!fi(o))throw new Error("RegionAnchorY must be between 0 and 100.");r=o}},viewportAnchorY:{enumerable:!0,get:function(){return i},set:function(o){if(!fi(o))throw new Error("ViewportAnchorY must be between 0 and 100.");i=o}},viewportAnchorX:{enumerable:!0,get:function(){return e},set:function(o){if(!fi(o))throw new Error("ViewportAnchorX must be between 0 and 100.");e=o}},scroll:{enumerable:!0,get:function(){return s},set:function(o){var u=Rm(o);u===!1?console.warn("Scroll: an invalid or illegal string was specified."):s=u}}})}var Nm=Mm,Mt=A,pr=p
2023-06-20 16:37:55 +08:00
`);i>-1;i=this.buffer.indexOf(`
2023-06-22 06:50:23 +08:00
`))this.trigger("data",this.buffer.substring(0,i)),this.buffer=this.buffer.substring(i+1)},t}(zs),zm=String.fromCharCode(9),za=function(t){var r=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),n={};return r[1]&&(n.length=parseInt(r[1],10)),r[2]&&(n.offset=parseInt(r[2],10)),n},$m=function(){var t="[^=]*",r='"[^"]*"|[^,]*',n="(?:"+t+")=(?:"+r+")";return new RegExp("(?:^|,)("+n+")")},lt=function(t){for(var r=t.split($m()),n={},e=r.length,i;e--;)r[e]!==""&&(i=/([^=]*)=(.*)/.exec(r[e]).slice(1),i[0]=i[0].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^['"](.*)['"]$/g,"$1"),n[i[0]]=i[1]);return n},Km=function(a){W(t,a);function t(){var n;return n=a.call(this)||this,n.customParsers=[],n.tagMappers=[],n}var r=t.prototype;return r.push=function(e){var i=this,s,o;if(e=e.trim(),e.length!==0){if(e[0]!=="#"){this.trigger("data",{type:"uri",uri:e});return}var u=this.tagMappers.reduce(function(l,c){var g=c(e);return g===e?l:l.concat([g])},[e]);u.forEach(function(l){for(var c=0;c<i.customParsers.length;c++)if(i.customParsers[c].call(i,l))return;if(l.indexOf("#EXT")!==0){i.trigger("data",{type:"comment",text:l.slice(1)});return}if(l=l.replace("\r",""),s=/^#EXTM3U/.exec(l),s){i.trigger("data",{type:"tag",tagType:"m3u"});return}if(s=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(l),s){o={type:"tag",tagType:"inf"},s[1]&&(o.duration=parseFloat(s[1])),s[2]&&(o.title=s[2]),i.trigger("data",o);return}if(s=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(l),s){o={type:"tag",tagType:"targetduration"},s[1]&&(o.duration=parseInt(s[1],10)),i.trigger("data",o);return}if(s=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(l),s){o={type:"tag",tagType:"version"},s[1]&&(o.version=parseInt(s[1],10)),i.trigger("data",o);return}if(s=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(l),s){o={type:"tag",tagType:"media-sequence"},s[1]&&(o.number=parseInt(s[1],10)),i.trigger("data",o);return}if(s=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(l),s){o={type:"tag",tagType:"discontinuity-sequence"},s[1]&&(o.number=parseInt(s[1],10)),i.trigger("data",o);return}if(s=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(l),s){o={type:"tag",tagType:"playlist-type"},s[1]&&(o.playlistType=s[1]),i.trigger("data",o);return}if(s=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(l),s){o=ot(za(s[1]),{type:"tag",tagType:"byterange"}),i.trigger("data",o);return}if(s=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(l),s){o={type:"tag",tagType:"allow-cache"},s[1]&&(o.allowed=!/NO/.test(s[1])),i.trigger("data",o);return}if(s=/^#EXT-X-MAP:?(.*)$/.exec(l),s){if(o={type:"tag",tagType:"map"},s[1]){var g=lt(s[1]);g.URI&&(o.uri=g.URI),g.BYTERANGE&&(o.byterange=za(g.BYTERANGE))}i.trigger("data",o);return}if(s=/^#EXT-X-STREAM-INF:?(.*)$/.exec(l),s){if(o={type:"tag",tagType:"stream-inf"},s[1]){if(o.attributes=lt(s[1]),o.attributes.RESOLUTION){var m=o.attributes.RESOLUTION.split("x"),_={};m[0]&&(_.width=parseInt(m[0],10)),m[1]&&(_.height=parseInt(m[1],10)),o.attributes.RESOLUTION=_}o.attributes.BANDWIDTH&&(o.attributes.BANDWIDTH=parseInt(o.attributes.BANDWIDTH,10)),o.attributes["FRAME-RATE"]&&(o.attributes["FRAME-RATE"]=parseFloat(o.attributes["FRAME-RATE"])),o.attributes["PROGRAM-ID"]&&(o.attributes["PROGRAM-ID"]=parseInt(o.attributes["PROGRAM-ID"],10))}i.trigger("data",o);return}if(s=/^#EXT-X-MEDIA:?(.*)$/.exec(l),s){o={type:"tag",tagType:"media"},s[1]&&(o.attributes=lt(s[1])),i.trigger("data",o);return}if(s=/^#EXT-X-ENDLIST/.exec(l),s){i.trigger("data",{type:"tag",tagType:"endlist"});return}if(s=/^#EXT-X-DISCONTINUITY/.exec(l),s){i.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(s=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(l),s){o={type:"tag",tagType:"program-date-time"},s[1]&&(o.dateTimeString=s[1],o.dateTimeObject=new Date(s[1])),i.trigger("data",o);return}if(s=/^#EXT-X-KEY:?(.*)$/.exec(l),s){o={type:"tag",tagType:"key"},s[1]&&(o.attributes=lt(s[1]),o.attributes.IV&&(o.attributes.IV.substring(0,2).toLowerCase()==="0x"&&(o.attributes.IV=o.attributes.IV.substring(2)),o.attributes.IV=o.attributes.IV.match(/.{8}/g),o.attributes.IV[0]=parseInt(o.attributes.IV[0],16),o.attributes.IV[1]=parseInt(o.attributes.IV[1],16),o.attributes.
`),this.trigger("end")},r.addParser=function(e){this.parseStream.addParser(e)},r.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(zs),lr={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^/},Qm=["video","audio","text"],Gu=["Video","Audio","Text"],yd=function(t){return t&&t.replace(/avc1\.(\d+)\.(\d+)/i,function(r,n,e){var i=("00"+Number(n).toString(16)).slice(-2),s=("00"+Number(e).toString(16)).slice(-2);return"avc1."+i+"00"+s})},vt=function(t){t===void 0&&(t="");var r=t.split(","),n=[];return r.forEach(function(e){e=e.trim();var i;Qm.forEach(function(s){var o=lr[s].exec(e.toLowerCase());if(!(!o||o.length<=1)){i=s;var u=e.substring(0,o[1].length),l=e.replace(u,"");n.push({type:u,details:l,mediaType:s})}}),i||n.push({type:e,details:"",mediaType:"unknown"})}),n},Jm=function(t,r){if(!t.mediaGroups.AUDIO||!r)return null;var n=t.mediaGroups.AUDIO[r];if(!n)return null;for(var e in n){var i=n[e];if(i.default&&i.playlists)return vt(i.playlists[0].attributes.CODECS)}return null},_d=function(t){return t===void 0&&(t=""),lr.audio.test(t.trim().toLowerCase())},Zm=function(t){return t===void 0&&(t=""),lr.text.test(t.trim().toLowerCase())},Pi=function(t){if(!(!t||typeof t!="string")){var r=t.toLowerCase().split(",").map(function(i){return yd(i.trim())}),n="video";r.length===1&&_d(r[0])?n="audio":r.length===1&&Zm(r[0])&&(n="application");var e="mp4";return r.every(function(i){return lr.mp4.test(i)})?e="mp4":r.every(function(i){return lr.webm.test(i)})?e="webm":r.every(function(i){return lr.ogg.test(i)})&&(e="ogg"),n+"/"+e+';codecs="'+t+'"'}},In=function(t){return t===void 0&&(t=""),A.MediaSource&&A.MediaSource.isTypeSupported&&A.MediaSource.isTypeSupported(Pi(t))||!1},Ka=function(t){return t===void 0&&(t=""),t.toLowerCase().split(",").every(function(r){r=r.trim();for(var n=0;n<Gu.length;n++){var e=Gu[n];if(lr["muxer"+e].test(r))return!0}return!1})},Wu="mp4a.40.2",eg="avc1.4d400d",tg=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,rg=/^application\/dash\+xml/i,Td=function(t){return tg.test(t)?"hls":rg.test(t)?"dash":t==="application/vnd.videojs.vhs+json"?"vhs-json":null},ig=function(t){return t.toString(2).length},ng=function(t){return Math.ceil(ig(t)/8)},bd=function(t){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer},ag=function(t){return bd(t)},Q=function(t){return t instanceof Uint8Array?t:(!Array.isArray(t)&&!ag(t)&&!(t instanceof ArrayBuffer)&&(typeof t!="number"||typeof t=="number"&&t!==t?t=0:t=[t]),new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0))},Le=A.BigInt||Number,ms=[Le("0x1"),Le("0x100"),Le("0x10000"),Le("0x1000000"),Le("0x100000000"),Le("0x10000000000"),Le("0x1000000000000"),Le("0x100000000000000"),Le("0x10000000000000000")];(function(){var a=new Uint16Array([65484]),t=new Uint8Array(a.buffer,a.byteOffset,a.byteLength);return t[0]===255?"big":t[0]===204?"little":"unknown"})();var sg=function(t,r){var n=r===void 0?{}:r,e=n.signed,i=e===void 0?!1:e,s=n.le,o=s===void 0?!1:s;t=Q(t);var u=o?"reduce":"reduceRight",l=t[u]?t[u]:Array.prototype[u],c=l.call(t,function(m,_,b){var S=o?b:Math.abs(b+1-t.length);return m+Le(_)*ms[S]},Le(0));if(i){var g=ms[t.length]/Le(2)-Le(1);c=Le(c),c>g&&(c-=g,c-=g,c-=Le(2))}return Number(c)},og=function(t,r){var n=r===void 0?{}:r,e=n.le,i=e===void 0?!1:e;(typeof t!="bigint"&&typeof t!="number"||typeof t=="number"&&t!==t)&&(t=0),t=Le(t);for(var s=ng(t),o=new Uint8Array(new ArrayBuffer(s)),u=0;u<s;u++){var l=i?u:Math.abs(u+1-o.length);o[l]=Number(t/ms[u]&Le(255)),t<0&&(o[l]=Math.abs(~o[l]),o[l]-=u===0?1:2)}return o},xd=function(t,r){if(typeof t!="string"&&t&&typeof t.toString=="function"&&(t=t.toString()),typeof t!="string")return new Uint8Array;r||(t=unescape(encodeURIComponent(t)));for(var n=new Uint8Array(t.l
`,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:"\u01
2023-06-20 16:37:55 +08:00
`).replace(/[\r\u0085\u2028]/g,`
2023-06-22 06:50:23 +08:00
`)}function Qd(a){this.options=a||{locator:{}}}Qd.prototype.parseFromString=function(a,t){var r=this.options,n=new Rg,e=r.domBuilder||new ji,i=r.errorHandler,s=r.locator,o=r.xmlns||{},u=/\/x?html?$/.test(t),l=u?il.HTML_ENTITIES:il.XML_ENTITIES;s&&e.setDocumentLocator(s),n.errorHandler=Mg(i,e,s),n.domBuilder=r.domBuilder||e,u&&(o[""]=nl.HTML),o.xml=o.xml||nl.XML;var c=r.normalizeLineEndings||Yd;return a&&typeof a=="string"?n.parse(c(a),o,l):n.errorHandler.error("invalid doc source"),e.doc};function Mg(a,t,r){if(!a){if(t instanceof ji)return t;a=t}var n={},e=a instanceof Function;r=r||{};function i(s){var o=a[s];!o&&e&&(o=a.length==2?function(u){a(s,u)}:a),n[s]=o&&function(u){o("[xmldom "+s+"] "+u+ys(r))}||function(){}}return i("warning"),i("error"),i("fatalError"),n}function ji(){this.cdata=!1}function Ar(a,t){t.lineNumber=a.lineNumber,t.columnNumber=a.columnNumber}ji.prototype={startDocument:function(){this.doc=new Lg().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(a,t,r,n){var e=this.doc,i=e.createElementNS(a,r||t),s=n.length;bn(this,i),this.currentElement=i,this.locator&&Ar(this.locator,i);for(var o=0;o<s;o++){var a=n.getURI(o),u=n.getValue(o),r=n.getQName(o),l=e.createAttributeNS(a,r);this.locator&&Ar(n.getLocator(o),l),l.value=l.nodeValue=u,i.setAttributeNode(l)}},endElement:function(a,t,r){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode},startPrefixMapping:function(a,t){},endPrefixMapping:function(a){},processingInstruction:function(a,t){var r=this.doc.createProcessingInstruction(a,t);this.locator&&Ar(this.locator,r),bn(this,r)},ignorableWhitespace:function(a,t,r){},characters:function(a,t,r){if(a=al.apply(this,arguments),a){if(this.cdata)var n=this.doc.createCDATASection(a);else var n=this.doc.createTextNode(a);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(a)&&this.doc.appendChild(n),this.locator&&Ar(this.locator,n)}},skippedEntity:function(a){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(a){(this.locator=a)&&(a.lineNumber=0)},comment:function(a,t,r){a=al.apply(this,arguments);var n=this.doc.createComment(a);this.locator&&Ar(this.locator,n),bn(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(a,t,r){var n=this.doc.implementation;if(n&&n.createDocumentType){var e=n.createDocumentType(a,t,r);this.locator&&Ar(this.locator,e),bn(this,e),this.doc.doctype=e}},warning:function(a){console.warn("[xmldom warning] "+a,ys(this.locator))},error:function(a){console.error("[xmldom error] "+a,ys(this.locator))},fatalError:function(a){throw new Fg(a,this.locator)}};function ys(a){if(a)return`
@`+(a.systemId||"")+"#[line:"+a.lineNumber+",col:"+a.columnNumber+"]"}function al(a,t,r){return typeof a=="string"?a.substr(t,r):a.length>=t+r||t?new java.lang.String(a,t,r)+"":a}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(a){ji.prototype[a]=function(){return null}});function bn(a,t){a.currentElement?a.currentElement.appendChild(t):a.doc.appendChild(t)}fa.__DOMHandler=ji;fa.normalizeLineEndings=Yd;fa.DOMParser=Qd;var Ng=fa.DOMParser;/*! @name mpd-parser @version 0.22.1 @license Apache-2.0 */var sl=function(t){return!!t&&typeof t=="object"},Ge=function a(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.reduce(function(e,i){return typeof i!="object"||Object.keys(i).forEach(function(s){Array.isArray(e[s])&&Array.isArray(i[s])?e[s]=e[s].concat(i[s]):sl(e[s])&&sl(i[s])?e[s]=a(e[s],i[s]):e[s]=i[s]}),e},{})},Jd=function(t){return Object.keys(t).map(function(r){return t[r]})},Bg=function(t,r){for(var n=[],e=t;e<r;e++)n.push(e);return n},ha=function(t){return t.reduce(function(r,n){return r.concat(n)},[])},Zd=function(t){if(!t.length)return[];for(var r=[],n=0;n<t.length;n++)r.push(t[n]);return r},Ug=function(t,r){return t.reduce(function(n,e,i){return e[r]&&n.push(i),n},[])},_s=function(t,r){for(var n=0;n<t.length;n++)if(r(t[n]))return n;return-1},Vg=function(t,r){return Jd(t.reduce(function(n,e){return e.forEach(function(i){n[r(i)]=i}),n},{}))},Hr={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"},Fi=function(t){var r=t.baseUrl,n=r===void 0?"":r,e=t.source,i=e===void 0?"":e,s=t.range,o=s===void 0?"":s,u=t.indexRange,l=u===void 0?"":u,c={uri:i,resolvedUri:la(n||"",i)};if(o||l){var g=o||l,m=g.split("-"),_=A.BigInt?A.BigInt(m[0]):parseInt(m[0],10),b=A.BigInt?A.BigInt(m[1]):parseInt(m[1],10);_<Number.MAX_SAFE_INTEGER&&typeof _=="bigint"&&(_=Number(_)),b<Number.MAX_SAFE_INTEGER&&typeof b=="bigint"&&(b=Number(b));var S;typeof b=="bigint"||typeof _=="bigint"?S=A.BigInt(b)-A.BigInt(_)+A.BigInt(1):S=b-_+1,typeof S=="bigint"&&S<Number.MAX_SAFE_INTEGER&&(S=Number(S)),c.byterange={length:S,offset:_}}return c},Hg=function(t){var r;return typeof t.offset=="bigint"||typeof t.length=="bigint"?r=A.BigInt(t.offset)+A.BigInt(t.length)-A.BigInt(1):r=t.offset+t.length-1,t.offset+"-"+r},ol=function(t){return t&&typeof t!="number"&&(t=parseInt(t,10)),isNaN(t)?null:t},qg={static:function(t){var r=t.duration,n=t.timescale,e=n===void 0?1:n,i=t.sourceDuration,s=t.periodDuration,o=ol(t.endNumber),u=r/e;return typeof o=="number"?{start:0,end:o}:typeof s=="number"?{start:0,end:s/u}:{start:0,end:i/u}},dynamic:function(t){var r=t.NOW,n=t.clientOffset,e=t.availabilityStartTime,i=t.timescale,s=i===void 0?1:i,o=t.duration,u=t.periodStart,l=u===void 0?0:u,c=t.minimumUpdatePeriod,g=c===void 0?0:c,m=t.timeShiftBufferDepth,_=m===void 0?1/0:m,b=ol(t.endNumber),S=(r+n)/1e3,x=e+l,w=S+g,O=w-x,H=Math.ceil(O*s/o),L=Math.floor((S-x-_)*s/o),F=Math.floor((S-x)*s/o);return{start:Math.max(0,L),end:typeof b=="number"?b:Math.min(H,F)}}},jg=function(t){return function(r){var n=t.duration,e=t.timescale,i=e===void 0?1:e,s=t.periodStart,o=t.startNumber,u=o===void 0?1:o;return{number:u+r,duration:n/i,timeline:s,time:r*n}}},io=function(t){var r=t.type,n=t.duration,e=t.timescale,i=e===void 0?1:e,s=t.periodDuration,o=t.sourceDuration,u=qg[r](t),l=u.start,c=u.end,g=Bg(l,c).map(jg(t));if(r==="static"){var m=g.length-1,_=typeof s=="number"?s:o;g[m].duration=_-n/i*m}return g},ec=function(t){var r=t.baseUrl,n=t.initialization,e=n===void 0?{}:n,i=t.sourceDuration,s=t.indexRange,o=s===void 0?"":s,u=t.periodStart,l=t.presentationTime,c=t.number,g=c===void 0?0:c,m=t.duration;if(!r)throw new Error(Hr.NO_BASE_URL);var _=Fi({baseUrl:r,source:e.sourceURL,r
2023-06-20 16:37:55 +08:00
* @license
* Video.js 7.21.4 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/main/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License Version 2.0
* <https://github.com/mozilla/vtt.js/blob/main/LICENSE>
2023-06-22 06:50:23 +08:00
*/var lc="7.21.4",It={},Kt=function(t,r){return It[t]=It[t]||[],r&&(It[t]=It[t].concat(r)),It[t]},Xv=function(t,r){Kt(t,r)},dc=function(t,r){var n=Kt(t).indexOf(r);return n<=-1?!1:(It[t]=It[t].slice(),It[t].splice(n,1),!0)},Yv=function(t,r){Kt(t,[].concat(r).map(function(n){var e=function i(){return dc(t,i),n.apply(void 0,arguments)};return e}))},Gn={prefixed:!0},On=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],vl=On[0],Si;for(var Sn=0;Sn<On.length;Sn++)if(On[Sn][1]in G){Si=On[Sn];break}if(Si){for(var En=0;En<Si.length;En++)Gn[vl[En]]=Si[En];Gn.prefixed=Si[0]!==vl[0]}var Ke=[],Qv=function(t,r){return function(n,e,i){var s=r.levels[e],o=new RegExp("^("+s+")$");if(n!=="log"&&i.unshift(n.toUpperCase()+":"),i.unshift(t+":"),Ke){Ke.push([].concat(i));var u=Ke.length-1e3;Ke.splice(0,u>0?u:0)}if(!!A.console){var l=A.console[n];!l&&n==="debug"&&(l=A.console.info||A.console.log),!(!l||!s||!o.test(n))&&l[Array.isArray(i)?"apply":"call"](A.console,i)}}};function cc(a){var t="info",r,n=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];r("log",t,s)};return r=Qv(a,n),n.createLogger=function(e){return cc(a+": "+e)},n.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:t},n.level=function(e){if(typeof e=="string"){if(!n.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');t=e}return t},n.history=function(){return Ke?[].concat(Ke):[]},n.history.filter=function(e){return(Ke||[]).filter(function(i){return new RegExp(".*"+e+".*").test(i[0])})},n.history.clear=function(){Ke&&(Ke.length=0)},n.history.disable=function(){Ke!==null&&(Ke.length=0,Ke=null)},n.history.enable=function(){Ke===null&&(Ke=[])},n.error=function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return r("error",t,i)},n.warn=function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return r("warn",t,i)},n.debug=function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return r("debug",t,i)},n}var ie=cc("VIDEOJS"),fc=ie.createLogger,Jv=Object.prototype.toString,hc=function(t){return Ut(t)?Object.keys(t):[]};function Fr(a,t){hc(a).forEach(function(r){return t(a[r],r)})}function Zv(a,t,r){return r===void 0&&(r=0),hc(a).reduce(function(n,e){return t(n,a[e],e)},r)}function be(a){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Object.assign?ot.apply(void 0,[a].concat(r)):(r.forEach(function(e){!e||Fr(e,function(i,s){a[s]=i})}),a)}function Ut(a){return!!a&&typeof a=="object"}function Ri(a){return Ut(a)&&Jv.call(a)==="[object Object]"&&a.constructor===Object}function Mi(a,t){if(!a||!t)return"";if(typeof A.getComputedStyle=="function"){var r;try{r=A.getComputedStyle(a)}catch{return""}return r?r.getPropertyValue(t)||r[t]:""}return""}var ke=A.navigator&&A.navigator.userAgent||"",yl=/AppleWebKit\/([\d.]+)/i.exec(ke),e0=yl?parseFloat(yl.pop()):null,pc=/iPod/i.test(ke),t0=function(){var a=ke.match(/OS (\d+)_/i);return a&&a[1]?a[1]:null}(),qt=/Android/i.test(ke),po=function(){var a=ke.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!a)return null;var t=a[1]&&parseFloat(a[1]),r=a[2]&&parseFloat(a[2]);return t&&r?parseFloat(a[1]+"."+a[2]):t||null}(),mc=qt&&po<5&&e0<537,gc=/Firefox/i.test(ke),Gi=/Edg/i.test(ke),jt=!Gi&&(/Chrome/i.test(ke)||/CriOS/i.test(ke)),vc=function(){var a=ke.match(/(Chrome|CriOS)\/(\d+)/);return a&&a[2]?parseFloat(a[2]):null}(),Wi=function(){var a=/MSIE\s(\d+)\.\d/.e
2023-06-20 16:37:55 +08:00
has been deprecated. Use the third argument instead.
2023-06-22 06:50:23 +08:00
`+("createEl(type, properties, attributes). Attempting to set "+i+" to "+s+".")),e.setAttribute(i,s)):i==="textContent"?mr(e,s):(e[i]!==s||i==="tabIndex")&&(e[i]=s)}),Object.getOwnPropertyNames(r).forEach(function(i){e.setAttribute(i,r[i])}),n&&_o(e,n),e}function mr(a,t){return typeof a.textContent>"u"?a.innerText=t:a.textContent=t,a}function Es(a,t){t.firstChild?t.insertBefore(a,t.firstChild):t.appendChild(a)}function dr(a,t){return _c(t),a.classList?a.classList.contains(t):i0(t).test(a.className)}function Ft(a,t){return a.classList?a.classList.add(t):dr(a,t)||(a.className=(a.className+" "+t).trim()),a}function zi(a,t){return a?(a.classList?a.classList.remove(t):(_c(t),a.className=a.className.split(/\s+/).filter(function(r){return r!==t}).join(" ")),a):(ie.warn("removeClass was called with an element that doesn't exist"),null)}function xc(a,t,r){var n=dr(a,t);if(typeof r=="function"&&(r=r(a,t)),typeof r!="boolean"&&(r=!n),r!==n)return r?Ft(a,t):zi(a,t),a}function Sc(a,t){Object.getOwnPropertyNames(t).forEach(function(r){var n=t[r];n===null||typeof n>"u"||n===!1?a.removeAttribute(r):a.setAttribute(r,n===!0?"":n)})}function Pt(a){var t={},r=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(a&&a.attributes&&a.attributes.length>0)for(var n=a.attributes,e=n.length-1;e>=0;e--){var i=n[e].name,s=n[e].value;(typeof a[i]=="boolean"||r.indexOf(","+i+",")!==-1)&&(s=s!==null),t[i]=s}return t}function Ec(a,t){return a.getAttribute(t)}function Gr(a,t,r){a.setAttribute(t,r)}function ya(a,t){a.removeAttribute(t)}function Cc(){G.body.focus(),G.onselectstart=function(){return!1}}function Ac(){G.onselectstart=function(){return!0}}function Wr(a){if(a&&a.getBoundingClientRect&&a.parentNode){var t=a.getBoundingClientRect(),r={};return["bottom","height","left","right","top","width"].forEach(function(n){t[n]!==void 0&&(r[n]=t[n])}),r.height||(r.height=parseFloat(Mi(a,"height"))),r.width||(r.width=parseFloat(Mi(a,"width"))),r}}function Ni(a){if(!a||a&&!a.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=a.offsetWidth,r=a.offsetHeight,n=0,e=0;a.offsetParent&&a!==G[Gn.fullscreenElement];)n+=a.offsetLeft,e+=a.offsetTop,a=a.offsetParent;return{left:n,top:e,width:t,height:r}}function _a(a,t){var r={x:0,y:0};if($e)for(var n=a;n&&n.nodeName.toLowerCase()!=="html";){var e=Mi(n,"transform");if(/^matrix/.test(e)){var i=e.slice(7,-1).split(/,\s/).map(Number);r.x+=i[4],r.y+=i[5]}else if(/^matrix3d/.test(e)){var s=e.slice(9,-1).split(/,\s/).map(Number);r.x+=s[12],r.y+=s[13]}n=n.parentNode}var o={},u=Ni(t.target),l=Ni(a),c=l.width,g=l.height,m=t.offsetY-(l.top-u.top),_=t.offsetX-(l.left-u.left);return t.changedTouches&&(_=t.changedTouches[0].pageX-l.left,m=t.changedTouches[0].pageY+l.top,$e&&(_-=r.x,m-=r.y)),o.y=1-Math.max(0,Math.min(1,m/g)),o.x=Math.max(0,Math.min(1,_/c)),o}function Dc(a){return Ut(a)&&a.nodeType===3}function yo(a){for(;a.firstChild;)a.removeChild(a.firstChild);return a}function wc(a){return typeof a=="function"&&(a=a()),(Array.isArray(a)?a:[a]).map(function(t){if(typeof t=="function"&&(t=t()),Qr(t)||Dc(t))return t;if(typeof t=="string"&&/\S/.test(t))return G.createTextNode(t)}).filter(function(t){return t})}function _o(a,t){return wc(t).forEach(function(r){return a.appendChild(r)}),a}function kc(a,t){return _o(yo(a),t)}function Bi(a){return a.button===void 0&&a.buttons===void 0||a.button===0&&a.buttons===void 0||a.type==="mouseup"&&a.button===0&&a.buttons===0?!0:!(a.button!==0||a.buttons!==1)}var Xt=bc("querySelector"),Pc=bc("querySelectorAll"),Ic=Object.freeze({__proto__:null,isReal:Yr,isEl:Qr,isInFrame:Tc,createEl:ne,textContent:mr,prependTo:Es,hasClass:dr,addClass:Ft,removeClass:zi,toggleClass:xc,setAttributes:Sc,getAttributes:Pt,getAttribute:Ec,setAttribute:Gr,removeAttribute:ya,blockTextSelection:Cc,unblockTextSelection:Ac,getBoundingClientRect:Wr,findPosition:Ni,getPointerPosition:_a,isTextNode:Dc,emptyEl:yo,normalizeContent:wc,appendContent:_o,insertContent:kc,isSingleLeftClick:Bi,$:Xt,$$:Pc}),Oc=!1,Cs,n0=function(){if(Cs.options.autoSetup!==!1){var t=Array.prototype.slice.call(G.getElementsByTagName("
This may prevent text tracks from loading.`),i.restoreMetadataTracksInIOSNativePlayer_(),(jr||vo||mc)&&n.nativeControlsForTouch===!0&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}var r=t.prototype;return r.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,a.prototype.dispose.call(this)},r.setupSourcesetHandling_=function(){_y(this)},r.restoreMetadataTracksInIOSNativePlayer_=function(){var e=this.textTracks(),i,s=function(){i=[];for(var l=0;l<e.length;l++){var c=e[l];c.kind==="metadata"&&i.push({track:c,storedMode:c.mode})}};s(),e.addEventListener("change",s),this.on("dispose",function(){return e.removeEventListener("change",s)});var o=function u(){for(var l=0;l<i.length;l++){var c=i[l];c.track.mode==="disabled"&&c.track.mode!==c.storedMode&&(c.track.mode=c.storedMode)}e.removeEventListener("change",u)};this.on("webkitbeginfullscreen",function(){e.removeEventListener("change",s),e.removeEventListener("change",o),e.addEventListener("change",o)}),this.on("webkitendfullscreen",function(){e.removeEventListener("change",s),e.addEventListener("change",s),e.removeEventListener("change",o)})},r.overrideNative_=function(e,i){var s=this;if(i===this["featuresNative"+e+"Tracks"]){var o=e.toLowerCase();this[o+"TracksListeners_"]&&Object.keys(this[o+"TracksListeners_"]).forEach(function(u){var l=s.el()[o+"Tracks"];l.removeEventListener(u,s[o+"TracksListeners_"][u])}),this["featuresNative"+e+"Tracks"]=!i,this[o+"TracksListeners_"]=null,this.proxyNativeTracksForType_(o)}},r.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},r.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},r.proxyNativeTracksForType_=function(e){var i=this,s=st[e],o=this.el()[s.getterName],u=this[s.getterName]();if(!(!this["featuresNative"+s.capitalName+"Tracks"]||!o||!o.addEventListener)){var l={change:function(m){var _={type:"change",target:u,currentTarget:u,srcElement:u};u.trigger(_),e==="text"&&i[$r.remoteText.getterName]().trigger(_)},addtrack:function(m){u.addTrack(m.track)},removetrack:function(m){u.removeTrack(m.track)}},c=function(){for(var m=[],_=0;_<u.length;_++){for(var b=!1,S=0;S<o.length;S++)if(o[S]===u[_]){b=!0;break}b||m.push(u[_])}for(;m.length;)u.removeTrack(m.shift())};this[s.getterName+"Listeners_"]=l,Object.keys(l).forEach(function(g){var m=l[g];o.addEventListener(g,m),i.on("dispose",function(_){return o.removeEventListener(g,m)})}),this.on("loadstart",c),this.on("dispose",function(g){return i.off("loadstart",c)})}},r.proxyNativeTracks_=function(){var e=this;st.names.forEach(function(i){e.proxyNativeTracksForType_(i)})},r.createEl=function(){var e=this.options_.tag;if(!e||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(e){var i=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(i,e),t.disposeMediaElement(e),e=i}else{e=G.createElement("video");var s=this.options_.tag&&Pt(this.options_.tag),o=ve({},s);(!jr||this.options_.nativeControlsForTouch!==!0)&&delete o.controls,Sc(e,be(o,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&Gr(e,"preload",this.options_.preload),this.options_.disablePictureInPicture!==void 0&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);for(var u=["loop","muted","playsinline","autoplay"],l=0;l<u.length;l++){var c=u[l],g=this.options_[c];typeof g<"u"&&(g?Gr(e,c,c):ya(e,c),e[c]=g)}return e},r.handleLateInit_=function(e){if(!(e.networkState===0||e.networkState===3)){if(e.readyState===0){var i=!1,s=function(){i=!0};this.on("loadstart",s);var o=function(){i||this.trigger("loadstart")};this.on("loadedmetadata",o),this.ready(function(){this.off("loadstart",s),this.off("loadedmetadata",o),i||this.trigger("loadstart")});return}var u=["loadstart"];u.push("loadedmetadata"),e.readyState>=2&&u.push("loadeddata"),e.readyState>=3&&u.push("canplay"),e.readyState>=4&&u.push("canplaythrough"),this.ready(function(){u.forEach(function(l){this.trigger(l)},this)})}},r.setScrubbing=function(e){this.isScrubbi
2023-06-20 16:37:55 +08:00
.`+c+` {
width: `+o+`px;
height: `+u+`px;
}
.`+c+`.vjs-fluid:not(.vjs-audio-only-mode) {
padding-top: `+m*100+`%;
}
2023-06-22 06:50:23 +08:00
`)},r.loadTech_=function(e,i){var s=this;this.tech_&&this.unloadTech_();var o=Ee(e),u=e.charAt(0).toLowerCase()+e.slice(1);o!=="Html5"&&this.tag&&(he.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=o,this.isReady_=!1;var l=this.autoplay();(typeof this.autoplay()=="string"||this.autoplay()===!0&&this.options_.normalizeAutoplay)&&(l=!1);var c={source:i,autoplay:l,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+u+"_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,Promise:this.options_.Promise};qe.names.forEach(function(m){var _=qe[m];c[_.getterName]=s[_.privateName]}),be(c,this.options_[o]),be(c,this.options_[u]),be(c,this.options_[e.toLowerCase()]),this.tag&&(c.tag=this.tag),i&&i.src===this.cache_.src&&this.cache_.currentTime>0&&(c.startTime=this.cache_.currentTime);var g=he.getTech(e);if(!g)throw new Error("No Tech named '"+o+"' exists! '"+o+"' should be registered using videojs.registerTech()'");this.tech_=new g(c),this.tech_.ready(ye(this,this.handleTechReady_),!0),xl.jsonToTextTracks(this.textTracksJson_||[],this.tech_),vf.forEach(function(m){s.on(s.tech_,m,function(_){return s["handleTech"+Ee(m)+"_"](_)})}),Object.keys(ls).forEach(function(m){s.on(s.tech_,m,function(_){if(s.tech_.playbackRate()===0&&s.tech_.seeking()){s.queuedCallbacks_.push({callback:s["handleTech"+ls[m]+"_"].bind(s),event:_});return}s["handleTech"+ls[m]+"_"](_)})}),this.on(this.tech_,"loadstart",function(m){return s.handleTechLoadStart_(m)}),this.on(this.tech_,"sourceset",function(m){return s.handleTechSourceset_(m)}),this.on(this.tech_,"waiting",function(m){return s.handleTechWaiting_(m)}),this.on(this.tech_,"ended",function(m){return s.handleTechEnded_(m)}),this.on(this.tech_,"seeking",function(m){return s.handleTechSeeking_(m)}),this.on(this.tech_,"play",function(m){return s.handleTechPlay_(m)}),this.on(this.tech_,"firstplay",function(m){return s.handleTechFirstPlay_(m)}),this.on(this.tech_,"pause",function(m){return s.handleTechPause_(m)}),this.on(this.tech_,"durationchange",function(m){return s.handleTechDurationChange_(m)}),this.on(this.tech_,"fullscreenchange",function(m,_){return s.handleTechFullscreenChange_(m,_)}),this.on(this.tech_,"fullscreenerror",function(m,_){return s.handleTechFullscreenError_(m,_)}),this.on(this.tech_,"enterpictureinpicture",function(m){return s.handleTechEnterPictureInPicture_(m)}),this.on(this.tech_,"leavepictureinpicture",function(m){return s.handleTechLeavePictureInPicture_(m)}),this.on(this.tech_,"error",function(m){return s.handleTechError_(m)}),this.on(this.tech_,"posterchange",function(m){return s.handleTechPosterChange_(m)}),this.on(this.tech_,"textdata",function(m){return s.handleTechTextData_(m)}),this.on(this.tech_,"ratechange",function(m){return s.handleTechRateChange_(m)}),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode!==this.el()&&(o!=="Html5"||!this.tag)&&Es(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},r.unloadTech_=function(){var e=this;qe.names.forEach(function(i){var s=qe[i];e[s.privateName]=e[s.getterName]()}),this.textTracksJson_=xl.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},r.tech=function(e){return e===void 0&&ie.warn(`Using the tech directly can be dangerous. I hope you know what you're doing.
2023-06-20 16:37:55 +08:00
See https://github.com/videojs/video.js/issues/2617 for more info.
2023-06-22 06:50:23 +08:00
`),this.tech_},r.addTechControlsListeners_=function(){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_)},r.removeTechControlsListeners_=function(){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_)},r.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},r.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay()===!0&&this.options_.normalizeAutoplay?"play":this.autoplay())},r.manualAutoplay_=function(e){var i=this;if(!(!this.tech_||typeof e!="string")){var s=function(){var l=i.muted();i.muted(!0);var c=function(){i.muted(l)};i.playTerminatedQueue_.push(c);var g=i.play();if(!!Di(g))return g.catch(function(m){throw c(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(m||""))})},o;if(e==="any"&&!this.muted()?(o=this.play(),Di(o)&&(o=o.catch(s))):e==="muted"&&!this.muted()?o=s():o=this.play(),!!Di(o))return o.then(function(){i.trigger({type:"autoplay-success",autoplay:e})}).catch(function(){i.trigger({type:"autoplay-failure",autoplay:e})})}},r.updateSourceCaches_=function(e){e===void 0&&(e="");var i=e,s="";typeof i!="string"&&(i=e.src,s=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],i&&!s&&(s=j0(this,i)),this.cache_.source=ve({},e,{src:i,type:s});for(var o=this.cache_.sources.filter(function(_){return _.src&&_.src===i}),u=[],l=this.$$("source"),c=[],g=0;g<l.length;g++){var m=Pt(l[g]);u.push(m),m.src&&m.src===i&&c.push(m.src)}c.length&&!o.length?this.cache_.sources=u:o.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=i},r.handleTechSourceset_=function(e){var i=this;if(!this.changingSrc_){var s=function(c){return i.updateSourceCaches_(c)},o=this.currentSource().src,u=e.src;o&&!/^blob:/.test(o)&&/^blob:/.test(u)&&(!this.lastSource_||this.lastSource_.tech!==u&&this.lastSource_.player!==o)&&(s=function(){}),s(u),e.src||this.tech_.any(["sourceset","loadstart"],function(l){if(l.type!=="sourceset"){var c=i.techGet("currentSrc");i.lastSource_.tech=c,i.updateSourceCaches_(c)}})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},r.hasStarted=function(e){if(e===void 0)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},r.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},r.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&this.cache_.lastPlaybackRate===0&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},r.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var i=this.currentTime(),s=function o(){i!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",o))};this.on("timeupdate",s)},r.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")}
2023-06-20 16:37:55 +08:00
.video-js {
width: 300px;
height: 150px;
}
.vjs-fluid:not(.vjs-audio-only-mode) {
padding-top: 56.25%
}
2023-06-22 06:50:23 +08:00
`)}}As(1,I);I.VERSION=lc;I.options=Ae.prototype.options_;I.getPlayers=function(){return Ae.players};I.getPlayer=function(a){var t=Ae.players,r;if(typeof a=="string"){var n=_f(a),e=t[n];if(e)return e;r=Xt("#"+n)}else r=a;if(Qr(r)){var i=r,s=i.player,o=i.playerId;if(s||t[o])return s||t[o]}};I.getAllPlayers=function(){return Object.keys(Ae.players).map(function(a){return Ae.players[a]}).filter(Boolean)};I.players=Ae.players;I.getComponent=V.getComponent;I.registerComponent=function(a,t){he.isTech(t)&&ie.warn("The "+a+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),V.registerComponent.call(V,a,t)};I.getTech=he.getTech;I.registerTech=he.registerTech;I.use=O0;Object.defineProperty(I,"middleware",{value:{},writeable:!1,enumerable:!0});Object.defineProperty(I.middleware,"TERMINATOR",{value:zn,writeable:!1,enumerable:!0});I.browser=r0;I.TOUCH_ENABLED=jr;I.extend=xy;I.mergeOptions=ve;I.bind=ye;I.registerPlugin=Ct.registerPlugin;I.deregisterPlugin=Ct.deregisterPlugin;I.plugin=function(a,t){return ie.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Ct.registerPlugin(a,t)};I.getPlugins=Ct.getPlugins;I.getPlugin=Ct.getPlugin;I.getPluginVersion=Ct.getPluginVersion;I.addLanguage=function(a,t){var r;return a=(""+a).toLowerCase(),I.options.languages=ve(I.options.languages,(r={},r[a]=t,r)),I.options.languages[a]};I.log=ie;I.createLogger=fc;I.createTimeRange=I.createTimeRanges=cr;I.formatTime=Kr;I.setFormatTime=Q0;I.resetFormatTime=J0;I.parseUrl=So;I.isCrossOrigin=Sa;I.EventTarget=Ie;I.on=it;I.one=ba;I.off=Ne;I.trigger=Jr;I.xhr=oa.exports;I.TextTrack=$i;I.AudioTrack=jc;I.VideoTrack=Gc;["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(a){I[a]=function(){return ie.warn("videojs."+a+"() is deprecated; use videojs.dom."+a+"() instead"),Ic[a].apply(null,arguments)}});I.computedStyle=Mi;I.dom=Ic;I.url=w0;I.defineLazyProperty=qo;I.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});/*! @name @videojs/http-streaming @version 2.16.2 @license Apache-2.0 */var dt=la,Zn=function(t,r,n){return t&&n&&n.responseURL&&r!==n.responseURL?n.responseURL:r},pt=function(t){return I.log.debug?I.log.debug.bind(I,"VHS:",t+" >"):function(){}},Yt=1/30,Tt=Yt*3,Tf=function(t,r){var n=[],e;if(t&&t.length)for(e=0;e<t.length;e++)r(t.start(e),t.end(e))&&n.push([t.start(e),t.end(e)]);return I.createTimeRanges(n)},Or=function(t,r){return Tf(t,function(n,e){return n-Tt<=r&&e+Tt>=r})},wn=function(t,r){return Tf(t,function(n){return n-Yt>=r})},Sy=function(t){if(t.length<2)return I.createTimeRanges();for(var r=[],n=1;n<t.length;n++){var e=t.end(n-1),i=t.start(n);r.push([e,i])}return I.createTimeRanges(r)},Ey=function(t,r){var n=null,e=null,i=0,s=[],o=[];if(!t||!t.length||!r||!r.length)return I.createTimeRange();for(var u=t.length;u--;)s.push({time:t.start(u),type:"start"}),s.push({time:t.end(u),type:"end"});for(u=r.length;u--;)s.push({time:r.start(u),type:"start"}),s.push({time:r.end(u),type:"end"});for(s.sort(function(l,c){return l.time-c.time}),u=0;u<s.length;u++)s[u].type==="start"?(i++,i===2&&(n=s[u].time)):s[u].type==="end"&&(i--,i===1&&(e=s[u].time)),n!==null&&e!==null&&(o.push([n,e]),n=null,e=null);return I.createTimeRanges(o)},bf=function(t){var r=[];if(!t||!t.length)return"";for(var n=0;n<t.length;n++)r.push(t.start(n)+" => "+t.end(n));return r.join(", ")},Cy=function(t,r,n){n===void 0&&(n=1);var e=t.length?t.end(t.length-1):0;return(e-r)/n},ur=function(t){for(var r=[],n=0;n<t.length;n++)r.push({start:t.start(n),end:t.end(n)});return r},Ay=function(t,r){if(t===r)return!1;if(!t&&r||!r&&t||t.length!==r.length)return!0;for(var n=0;n<t.length;n++)if(t.start(n)!==r.start(n)||t.end(n)!==r.end(n))return!0;return!1},Gl=function(t){if(!(!t||!t.length||!t.end))return t.end(t.length-1)},jo=function(t,r){var n=0;if(!t||!t.length)return n;for(var e=0;e<t.length;e++){var i=t.start(e),s=t.end(e);if(!(r>s)){if(r>i&&r<=s){n+=s-r;continue}n+=s-i}}return n},Wl=I.createTi
`;return e},Xy=function(t){var r=t.bytes;return Uf(r)},Yy=function(t){var r="",n;for(n=0;n<t.length;n++)r+=zy(t,n)+" ";return r},Qy=Object.freeze({__proto__:null,createTransferableMessage:Nf,initSegmentId:ta,segmentKeyId:Bf,hexDump:Uf,tagDump:Xy,textRanges:Yy}),Vf=.25,Jy=function(t,r){if(!r.dateTimeObject)return null;var n=r.videoTimingInfo.transmuxerPrependedSeconds,e=r.videoTimingInfo.transmuxedPresentationStart,i=e+n,s=t-i;return new Date(r.dateTimeObject.getTime()+s*1e3)},Zy=function(t){return t.transmuxedPresentationEnd-t.transmuxedPresentationStart-t.transmuxerPrependedSeconds},e_=function(t,r){var n;try{n=new Date(t)}catch{return null}if(!r||!r.segments||r.segments.length===0)return null;var e=r.segments[0];if(n<e.dateTimeObject)return null;for(var i=0;i<r.segments.length-1;i++){e=r.segments[i];var s=r.segments[i+1].dateTimeObject;if(n<s)break}var o=r.segments[r.segments.length-1],u=o.dateTimeObject,l=o.videoTimingInfo?Zy(o.videoTimingInfo):o.duration+o.duration*Vf,c=new Date(u.getTime()+l*1e3);return n>c?null:(n>u&&(e=o),{segment:e,estimatedStart:e.videoTimingInfo?e.videoTimingInfo.transmuxedPresentationStart:Ye.duration(r,r.mediaSequence+r.segments.indexOf(e)),type:e.videoTimingInfo?"accurate":"estimate"})},t_=function(t,r){if(!r||!r.segments||r.segments.length===0)return null;for(var n=0,e,i=0;i<r.segments.length&&(e=r.segments[i],n=e.videoTimingInfo?e.videoTimingInfo.transmuxedPresentationEnd:n+e.duration,!(t<=n));i++);var s=r.segments[r.segments.length-1];if(s.videoTimingInfo&&s.videoTimingInfo.transmuxedPresentationEnd<t)return null;if(t>n){if(t>n+s.duration*Vf)return null;e=s}return{segment:e,estimatedStart:e.videoTimingInfo?e.videoTimingInfo.transmuxedPresentationStart:n-e.duration,type:e.videoTimingInfo?"accurate":"estimate"}},r_=function(t,r){var n,e;try{n=new Date(t),e=new Date(r)}catch{}var i=n.getTime(),s=e.getTime();return(s-i)/1e3},i_=function(t){if(!t.segments||t.segments.length===0)return!1;for(var r=0;r<t.segments.length;r++){var n=t.segments[r];if(!n.dateTimeObject)return!1}return!0},n_=function(t){var r=t.playlist,n=t.time,e=n===void 0?void 0:n,i=t.callback;if(!i)throw new Error("getProgramTime: callback must be provided");if(!r||e===void 0)return i({message:"getProgramTime: playlist and time must be provided"});var s=t_(e,r);if(!s)return i({message:"valid programTime was not found"});if(s.type==="estimate")return i({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:s.estimatedStart});var o={mediaSeconds:e},u=Jy(e,s.segment);return u&&(o.programDateTime=u.toISOString()),i(null,o)},a_=function a(t){var r=t.programTime,n=t.playlist,e=t.retryCount,i=e===void 0?2:e,s=t.seekTo,o=t.pauseAfterSeek,u=o===void 0?!0:o,l=t.tech,c=t.callback;if(!c)throw new Error("seekToProgramTime: callback must be provided");if(typeof r>"u"||!n||!s)return c({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!n.endList&&!l.hasStarted_)return c({message:"player must be playing a live stream to start buffering"});if(!i_(n))return c({message:"programDateTime tags must be provided in the manifest "+n.resolvedUri});var g=e_(r,n);if(!g)return c({message:r+" was not found in the stream"});var m=g.segment,_=r_(m.dateTimeObject,r);if(g.type==="estimate"){if(i===0)return c({message:r+" is not buffered yet. Try again"});s(g.estimatedStart+_),l.one("seeked",function(){a({programTime:r,playlist:n,retryCount:i-1,seekTo:s,pauseAfterSeek:u,tech:l,callback:c})});return}var b=m.start+_,S=function(){return c(null,l.currentTime())};l.one("seeked",S),u&&l.pause(),s(b)},cs=function(t,r){if(t.readyState===4)return r()},s_=function(t,r,n){var e=[],i,s=!1,o=function(m,_,b,S){return _.abort(),s=!0,n(m,_,b,S)},u=function(m,_){if(!s){if(m)return o(m,_,"",e);var b=_.responseText.substring(e&&e.byteLength||0,_.responseText.length);if(e=ug(e,xd(b,!0)),i=i||xi(e),e.length<10||i&&e.length<i+2)return cs(_,function(){return o(m,_,"",e)});var S=uo(e);return S==="ts"&&e.length<188?cs(_,function(){return o(m,_,"",e)}):!S&&e.length<376?cs(_,function(){return o(m,_,"",e)})
2023-06-20 16:37:55 +08:00
browserWorkerPolyFill(self);
2023-06-22 06:50:23 +08:00
`+t},Wf=function(t){return t.toString().replace(/^function.+?{/,"").slice(0,-1)},g_=Gf(Wf(function(){var a=function(){this.init=function(){var d={};this.on=function(h,f){d[h]||(d[h]=[]),d[h]=d[h].concat(f)},this.off=function(h,f){var p;return d[h]?(p=d[h].indexOf(f),d[h]=d[h].slice(),d[h].splice(p,1),p>-1):!1},this.trigger=function(h){var f,p,v,y;if(f=d[h],!!f)if(arguments.length===2)for(v=f.length,p=0;p<v;++p)f[p].call(this,arguments[1]);else{for(y=[],p=arguments.length,p=1;p<arguments.length;++p)y.push(arguments[p]);for(v=f.length,p=0;p<v;++p)f[p].apply(this,y)}},this.dispose=function(){d={}}}};a.prototype.pipe=function(T){return this.on("data",function(d){T.push(d)}),this.on("done",function(d){T.flush(d)}),this.on("partialdone",function(d){T.partialFlush(d)}),this.on("endedtimeline",function(d){T.endTimeline(d)}),this.on("reset",function(d){T.reset(d)}),T},a.prototype.push=function(T){this.trigger("data",T)},a.prototype.flush=function(T){this.trigger("done",T)},a.prototype.partialFlush=function(T){this.trigger("partialdone",T)},a.prototype.endTimeline=function(T){this.trigger("endedtimeline",T)},a.prototype.reset=function(T){this.trigger("reset",T)};var t=a,r=Math.pow(2,32),n=function(d){var h=new DataView(d.buffer,d.byteOffset,d.byteLength),f;return h.getBigUint64?(f=h.getBigUint64(0),f<Number.MAX_SAFE_INTEGER?Number(f):f):h.getUint32(0)*r+h.getUint32(4)},e={getUint64:n,MAX_UINT32:r},i=e.MAX_UINT32,s,o,u,l,c,g,m,_,b,S,x,w,O,H,L,F,q,B,R,U,N,X,$,J,oe,fe,re,ae,pe,Re,ue,Qi,nt,At,Wt,Jt;(function(){var T;if($={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(T in $)$.hasOwnProperty(T)&&($[T]=[T.charCodeAt(0),T.charCodeAt(1),T.charCodeAt(2),T.charCodeAt(3)]);J=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),fe=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),oe=new Uint8Array([0,0,0,1]),re=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]),ae=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]),pe={video:re,audio:ae},Qi=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ue=new Uint8Array([0,0,0,0,0,0,0,0]),nt=new Uint8Array([0,0,0,0,0,0,0,0]),At=nt,Wt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Jt=nt,Re=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),s=function(d){var h=[],f=0,p,v,y;for(p=1;p<arguments.length;p++)h.push(arguments[p]);for(p=h.length;p--;)f+=h[p].byteLength;for(v=new Uint8Array(f+8),y=new DataView(v.buffer,v.byteOffset,v.byteLength),y.setUint32(0,v.byteLength),v.set(d,4),p=0,f=8;p<h.length;p++)v.set(h[p],f),f+=h[p].byteLength;return v},o=function(){return s($.dinf,s($.dref,Qi))},u=function(d){return s($.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,d.audioobjecttype<<3|d.samplingfrequencyindex>>>1,d.samplingfrequencyindex<<7|d.channelcount<<3,6,1,2]))},l=function(){return s($.ftyp,J,oe,J,fe)},F=function(d){return s($.hdlr,pe[d])},c=function(d){return s($.mdat,d)},L=function(d){var h=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,d.duration>>>24&255,d.duration>>>16&255,d.duration>>>8&255,d.duration&255,85,196,0,0]);return d.samplerate&&(h[12]=d.samplerate>>>24&255,h[13]=d.samplerate>>>16&255,h[14]=d.samplerate>>>8&255,h[15]=d.samplerate&255),s($.mdhd,h)},H=function(d){return s($.mdia,L(d),F(d.type),m(d))},g=function(d){return s($.mfhd,new Uint8Array([0,0,0,0,(d&4278190080)>>24,(d&16711680)>>16,(d&65280)>>8,d&255]))},m=function(d){return s($.minf,d.type==="video"?s($.vmhd,Re):s($.smhd,ue),o(),B(d))},_=function(d,h){for(var f=[],p=h.length;p--;)f[p]=U(h[p]);return s.apply(null,[$.moof,g(d)].concat(f))},b=function(d){for(var h=d.length,f=[];h--;)f[h]=w(d[h]);return s.apply(nul
`)},Dt.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},Dt.prototype.newLine=function(T){for(this.rows.length>=this.virtualRowCount&&typeof this.beforeRowOverflow=="function"&&this.beforeRowOverflow(T),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},Dt.prototype.isEmpty=function(){return this.rows.length===0?!0:this.rows.length===1?this.rows[0]==="":!1},Dt.prototype.addText=function(T){this.rows[this.rowIdx]+=T},Dt.prototype.backspace=function(){if(!this.isEmpty()){var T=this.rows[this.rowIdx];this.rows[this.rowIdx]=T.substr(0,T.length-1)}};var tn=function(d,h,f){this.serviceNum=d,this.text="",this.currentWindow=new Dt(-1),this.windows=[],this.stream=f,typeof h=="string"&&this.createTextDecoder(h)};tn.prototype.init=function(T,d){this.startPts=T;for(var h=0;h<8;h++)this.windows[h]=new Dt(h),typeof d=="function"&&(this.windows[h].beforeRowOverflow=d)},tn.prototype.setCurrentWindow=function(T){this.currentWindow=this.windows[T]},tn.prototype.createTextDecoder=function(T){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(T)}catch(d){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+T+" encoding. "+d})}};var me=function T(d){d=d||{},T.prototype.init.call(this);var h=this,f=d.captionServices||{},p={},v;Object.keys(f).forEach(function(y){v=f[y],/^SERVICE/.test(y)&&(p[y]=v.encoding)}),this.serviceEncodings=p,this.current708Packet=null,this.services={},this.push=function(y){y.type===3?(h.new708Packet(),h.add708Bytes(y)):(h.current708Packet===null&&h.new708Packet(),h.add708Bytes(y))}};me.prototype=new t,me.prototype.new708Packet=function(){this.current708Packet!==null&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},me.prototype.add708Bytes=function(T){var d=T.ccData,h=d>>>8,f=d&255;this.current708Packet.ptsVals.push(T.pts),this.current708Packet.data.push(h),this.current708Packet.data.push(f)},me.prototype.push708Packet=function(){var T=this.current708Packet,d=T.data,h=null,f=null,p=0,v=d[p++];for(T.seq=v>>6,T.sizeCode=v&63;p<d.length;p++)v=d[p++],h=v>>5,f=v&31,h===7&&f>0&&(v=d[p++],h=v),this.pushServiceBlock(h,p,f),f>0&&(p+=f-1)},me.prototype.pushServiceBlock=function(T,d,h){var f,p=d,v=this.current708Packet.data,y=this.services[T];for(y||(y=this.initService(T,p));p<d+h&&p<v.length;p++)f=v[p],en(f)?p=this.handleText(p,y):f===24?p=this.multiByteCharacter(p,y):f===16?p=this.extendedCommands(p,y):128<=f&&f<=135?p=this.setCurrentWindow(p,y):152<=f&&f<=159?p=this.defineWindow(p,y):f===136?p=this.clearWindows(p,y):f===140?p=this.deleteWindows(p,y):f===137?p=this.displayWindows(p,y):f===138?p=this.hideWindows(p,y):f===139?p=this.toggleWindows(p,y):f===151?p=this.setWindowAttributes(p,y):f===144?p=this.setPenAttributes(p,y):f===145?p=this.setPenColor(p,y):f===146?p=this.setPenLocation(p,y):f===143?y=this.reset(p,y):f===8?y.currentWindow.backspace():f===12?y.currentWindow.clearText():f===13?y.currentWindow.pendingNewLine=!0:f===14?y.currentWindow.clearText():f===141&&p++},me.prototype.extendedCommands=function(T,d){var h=this.current708Packet.data,f=h[++T];return en(f)&&(T=this.handleText(T,d,{isExtended:!0})),T},me.prototype.getPts=function(T){return this.current708Packet.ptsVals[Math.floor(T/2)]},me.prototype.initService=function(T,d){var f="SERVICE"+T,h=this,f,p;return f in this.serviceEncodings&&(p=this.serviceEncodings[f]),this.services[T]=new tn(T,p,h),this.services[T].init(this.getPts(d),function(v){h.flushDisplayed(v,h.services[T])}),this.services[T]},me.prototype.handleText=function(T,d,h){var f=h&&h.isExtended,p=h&&h.isMultiByte,v=this.current708Packet.data,y=f?4096:0,E=v[T],C=v[T+1],k=d.currentWindow,D,P;return d.textDecoder_&&!f?(p?(P=[E,C],T++):P=[E],D=d.textDecoder_.decode(new Uint8Array(P))):D=Ih(y|E),k.pendingNewLine&&!k.isEmpty()&&k.newLine(this.getPts(T)),k.pendingNewLine=!1,k.addText(D),T},me.prototype.multiByteCharacter=function(T,d){var h
2023-06-20 16:37:55 +08:00
2023-06-22 06:50:23 +08:00
`),this.pushCaption(d),d.startPts=T},me.prototype.pushCaption=function(T){T.text!==""&&(this.trigger("data",{startPts:T.startPts,endPts:T.endPts,text:T.text,stream:"cc708_"+T.serviceNum}),T.text="",T.startPts=T.endPts)},me.prototype.displayWindows=function(T,d){var h=this.current708Packet.data,f=h[++T],p=this.getPts(T);this.flushDisplayed(p,d);for(var v=0;v<8;v++)f&1<<v&&(d.windows[v].visible=1);return T},me.prototype.hideWindows=function(T,d){var h=this.current708Packet.data,f=h[++T],p=this.getPts(T);this.flushDisplayed(p,d);for(var v=0;v<8;v++)f&1<<v&&(d.windows[v].visible=0);return T},me.prototype.toggleWindows=function(T,d){var h=this.current708Packet.data,f=h[++T],p=this.getPts(T);this.flushDisplayed(p,d);for(var v=0;v<8;v++)f&1<<v&&(d.windows[v].visible^=1);return T},me.prototype.clearWindows=function(T,d){var h=this.current708Packet.data,f=h[++T],p=this.getPts(T);this.flushDisplayed(p,d);for(var v=0;v<8;v++)f&1<<v&&d.windows[v].clearText();return T},me.prototype.deleteWindows=function(T,d){var h=this.current708Packet.data,f=h[++T],p=this.getPts(T);this.flushDisplayed(p,d);for(var v=0;v<8;v++)f&1<<v&&d.windows[v].reset();return T},me.prototype.setPenAttributes=function(T,d){var h=this.current708Packet.data,f=h[T],p=d.currentWindow.penAttr;return f=h[++T],p.textTag=(f&240)>>4,p.offset=(f&12)>>2,p.penSize=f&3,f=h[++T],p.italics=(f&128)>>7,p.underline=(f&64)>>6,p.edgeType=(f&56)>>3,p.fontStyle=f&7,T},me.prototype.setPenColor=function(T,d){var h=this.current708Packet.data,f=h[T],p=d.currentWindow.penColor;return f=h[++T],p.fgOpacity=(f&192)>>6,p.fgRed=(f&48)>>4,p.fgGreen=(f&12)>>2,p.fgBlue=f&3,f=h[++T],p.bgOpacity=(f&192)>>6,p.bgRed=(f&48)>>4,p.bgGreen=(f&12)>>2,p.bgBlue=f&3,f=h[++T],p.edgeRed=(f&48)>>4,p.edgeGreen=(f&12)>>2,p.edgeBlue=f&3,T},me.prototype.setPenLocation=function(T,d){var h=this.current708Packet.data,f=h[T],p=d.currentWindow.penLoc;return d.currentWindow.pendingNewLine=!0,f=h[++T],p.row=f&15,f=h[++T],p.column=f&63,T},me.prototype.reset=function(T,d){var h=this.getPts(T);return this.flushDisplayed(h,d),this.initService(d.serviceNum,T)};var Oh={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},rn=function(d){return d===null?"":(d=Oh[d]||d,String.fromCharCode(d))},nn=14,Lh=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Zt=function(){for(var d=[],h=nn+1;h--;)d.push("");return d},Te=function T(d,h){T.prototype.init.call(this),this.field_=d||0,this.dataChannel_=h||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(f){var p,v,y,E,C;if(p=f.ccData&32639,p===this.lastControlCode_){this.lastControlCode_=null;return}if((p&61440)===4096?this.lastControlCode_=p:p!==this.PADDING_&&(this.lastControlCode_=null),y=p>>>8,E=p&255,p!==this.PADDING_)if(p===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(p===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(f.pts),this.flushDisplayed(f.pts),v=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=v,this.startPts_=f.pts;else if(p===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(f.pts);else if(p===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(f.pts);else if(p===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(f.pts);else if(p===this.CARRIAGE_RETURN_)this.clearFormatting(f.pts),this.flushDisplayed(f.pts),this.shiftRowsUp_(),this.startPts_=f.pts;else if(p===this.BACKSPACE_)t
`).replace(/^\n+|\n+$/g,"");d.length&&this.trigger("data",{startPts:this.startPts_,endPts:T,text:d,stream:this.name_})},Te.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Zt(),this.nonDisplayed_=Zt(),this.lastControlCode_=null,this.column_=0,this.row_=nn,this.rollUpRows_=2,this.formatting_=[]},Te.prototype.setConstants=function(){this.dataChannel_===0?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):this.dataChannel_===1&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=this.CONTROL_|32,this.END_OF_CAPTION_=this.CONTROL_|47,this.ROLL_UP_2_ROWS_=this.CONTROL_|37,this.ROLL_UP_3_ROWS_=this.CONTROL_|38,this.ROLL_UP_4_ROWS_=this.CONTROL_|39,this.CARRIAGE_RETURN_=this.CONTROL_|45,this.RESUME_DIRECT_CAPTIONING_=this.CONTROL_|41,this.BACKSPACE_=this.CONTROL_|33,this.ERASE_DISPLAYED_MEMORY_=this.CONTROL_|44,this.ERASE_NON_DISPLAYED_MEMORY_=this.CONTROL_|46},Te.prototype.isSpecialCharacter=function(T,d){return T===this.EXT_&&d>=48&&d<=63},Te.prototype.isExtCharacter=function(T,d){return(T===this.EXT_+1||T===this.EXT_+2)&&d>=32&&d<=63},Te.prototype.isMidRowCode=function(T,d){return T===this.EXT_&&d>=32&&d<=47},Te.prototype.isOffsetControlCode=function(T,d){return T===this.OFFSET_&&d>=33&&d<=35},Te.prototype.isPAC=function(T,d){return T>=this.BASE_&&T<this.BASE_+8&&d>=64&&d<=127},Te.prototype.isColorPAC=function(T){return T>=64&&T<=79||T>=96&&T<=127},Te.prototype.isNormalChar=function(T){return T>=32&&T<=127},Te.prototype.setRollUp=function(T,d){if(this.mode_!=="rollUp"&&(this.row_=nn,this.mode_="rollUp",this.flushDisplayed(T),this.nonDisplayed_=Zt(),this.displayed_=Zt()),d!==void 0&&d!==this.row_)for(var h=0;h<this.rollUpRows_;h++)this.displayed_[d-h]=this.displayed_[this.row_-h],this.displayed_[this.row_-h]="";d===void 0&&(d=this.row_),this.topRow_=d-this.rollUpRows_+1},Te.prototype.addFormatting=function(T,d){this.formatting_=this.formatting_.concat(d);var h=d.reduce(function(f,p){return f+"<"+p+">"},"");this[this.mode_](T,h)},Te.prototype.clearFormatting=function(T){if(!!this.formatting_.length){var d=this.formatting_.reverse().reduce(function(h,f){return h+"</"+f+">"},"");this.formatting_=[],this[this.mode_](T,d)}},Te.prototype.popOn=function(T,d){var h=this.nonDisplayed_[this.row_];h+=d,this.nonDisplayed_[this.row_]=h},Te.prototype.rollUp=function(T,d){var h=this.displayed_[this.row_];h+=d,this.displayed_[this.row_]=h},Te.prototype.shiftRowsUp_=function(){var T;for(T=0;T<this.topRow_;T++)this.displayed_[T]="";for(T=this.row_+1;T<nn+1;T++)this.displayed_[T]="";for(T=this.topRow_;T<this.row_;T++)this.displayed_[T]=this.displayed_[T+1];this.displayed_[this.row_]=""},Te.prototype.paintOn=function(T,d){var h=this.displayed_[this.row_];h+=d,this.displayed_[this.row_]=h};var an={CaptionStream:Ze,Cea608Stream:Te,Cea708Stream:me},Oe={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Fh=8589934592,Rh=4294967296,iu="shared",Fa=function(d,h){var f=1;for(d>h&&(f=-1);Math.abs(h-d)>Rh;)d+=f*Fh;return d},nu=function T(d){var h,f;T.prototype.init.call(this),this.type_=d||iu,this.push=function(p){this.type_!==iu&&p.type!==this.type_||(f===void 0&&(f=p.dts),p.dts=Fa(p.dts,f),p.pts=Fa(p.pts,f),h=p.dts,this.trigger("data",p))},this.flush=function(){f=h,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){f=void 0,h=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};nu.prototype=new t;var au={TimestampRolloverStream:nu,handleRollover:Fa},su=function(d,h,f){var p,v="";for(p=h;p<f;p++)v+="%"+("00"+d[p].toString(16)).slice(-2);return v},sn=function(d,h,f){return decodeURIComponent(su(d,h,f))},Mh=function(d,h,f){return unescape(su(d,h,f))},on=function(d){return d[0]<<21|d[1]<<14|d[2]<<7|d[3]},ou={TXXX:function(d){var h;if(d.data[0]===3){for(h=1;h<d.data.length;h++)if(d.data[h]===0){d.description=sn(d.data,1,h),d.value=sn(d.data,h+1,d.data.length).replace(/\0*$/,"");break}d.data=d.value}},WXXX:fu
2023-06-20 16:37:55 +08:00
2023-07-24 18:07:54 +08:00
`.split("").map(function(a){return a.charCodeAt(0)})),oT=function(a){W(t,a);function t(){return a.call(this,"Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")||this}return t}(Ss(Error)),uT=function(a){W(t,a);function t(n,e){var i;return e===void 0&&(e={}),i=a.call(this,n,e)||this,i.mediaSource_=null,i.subtitlesTrack_=null,i.loaderType_="subtitle",i.featuresNativeTextTracks_=n.featuresNativeTextTracks,i.loadVttJs=n.loadVttJs,i.shouldSaveSegmentTimingInfo_=!1,i}var r=t.prototype;return r.createTransmuxer_=function(){return null},r.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return I.createTimeRanges();var e=this.subtitlesTrack_.cues,i=e[0].startTime,s=e[e.length-1].startTime;return I.createTimeRanges([[i,s]])},r.initSegmentForMap=function(e,i){if(i===void 0&&(i=!1),!e)return null;var s=ta(e),o=this.initSegments_[s];if(i&&!o&&e.bytes){var u=sd.byteLength+e.bytes.byteLength,l=new Uint8Array(u);l.set(e.bytes),l.set(sd,e.bytes.byteLength),this.initSegments_[s]=o={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:l}}return o||e},r.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},r.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},r.track=function(e){return typeof e>"u"?this.subtitlesTrack_:(this.subtitlesTrack_=e,this.state==="INIT"&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)},r.remove=function(e,i){Ei(e,i,this.subtitlesTrack_)},r.fillBuffer_=function(){var e=this,i=this.chooseNextRequest_();if(!!i){if(this.syncController_.timestampOffsetForTimeline(i.timeline)===null){var s=function(){e.state="READY",e.paused()||e.monitorBuffer_()};this.syncController_.one("timestampoffset",s),this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(i)}},r.timestampOffsetForSegment_=function(){return null},r.chooseNextRequest_=function(){return this.skipEmptySegments_(a.prototype.chooseNextRequest_.call(this))},r.skipEmptySegments_=function(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},r.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},r.segmentRequestFinished_=function(e,i,s){var o=this;if(!this.subtitlesTrack_){this.state="READY";return}if(this.saveTransferStats_(i.stats),!this.pendingSegment_){this.state="READY",this.mediaRequestsAborted+=1;return}if(e){e.code===bt.TIMEOUT&&this.handleTimeout_(),e.code===bt.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(e);return}var u=this.pendingSegment_;this.saveBandwidthRelatedStats_(u.duration,i.stats),i.key&&this.segmentKey(i.key,!0),this.state="APPENDING",this.trigger("appending");var l=u.segment;if(l.map&&(l.map.bytes=i.map.bytes),u.bytes=i.bytes,typeof A.WebVTT!="function"&&typeof this.loadVttJs=="function"){this.state="WAITING_ON_VTTJS",this.loadVttJs().then(function(){return o.segmentRequestFinished_(e,i,s)},function(){return o.stopForError({message:"Error loading vtt.js"})});return}l.requested=!0;try{this.parseVTTCues_(u)}catch(c){this.stopForError({message:c.message});return}if(this.updateTimeMapping_(u,this.syncController_.timelines[u.timeline],this.playlist_),u.cues.length?u.timingInfo={start:u.cues[0].startTime,end:u.cues[u.cues.length-1].endTime}:u.timingInfo={start:u.startOfSegment,end:u.startOfSegment+u.duration},u.isSyncRequest){this.trigger("syncinfoupdate"),this.pendingSegment_=null,this.state="READY";return}u.byteLength=u.bytes.byteLength,this.mediaSecondsLoaded+=l.duration,u.cues.forEach(function(c){o.subtitlesTrack_.addCue(o.featuresNativeTextTracks_?new A.VTTCue(c.startTime,c.endTime,c.text):c)}),$_(this.subtitlesTrack_),this.handleAppendsDone_()},r.handleData_=function(){},r.updateTimingInfoEnd_=function(){},r.parseVTTCues_=function(e){var i,s=!1;if(typeof A.WebVTT!="function")throw new oT;typeo