PageSourceSearch

https://www.mosaiquefm.net/_next/static/chunks/2315.d74f6285c7efc2d4.js

js mosaiquefm.net collected 2026-10-02 03:04:48 UTC 263,582 bytes, 7 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2315],{22261:function(e,r,n){"use strict";n.d(r,{Au:function(){return isArrayBufferView},G3:function(){return bytesMatch},Ki:function(){return toUint8},d3:function(){return bytesToString},hL:function(){return numberToBytes},lx:function(){return concatTypedArrays},qX:function(){return stringToBytes},tm:function(){return bytesToNumber}});var i,a,o=n(59265),s=n.n(o),isArrayBufferView=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},toUint8=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||isArrayBufferView(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},l=s().BigInt||Number,u=[l("0x1"),l("0x100"),l("0x10000"),l("0x1000000"),l("0x100000000"),l("0x10000000000"),l("0x1000000000000"),l("0x100000000000000"),l("0x10000000000000000")];i=new Uint16Array([65484]),255===(a=new Uint8Array(i.buffer,i.byteOffset,i.byteLength))[0]||a[0];var bytesToNumber=function(e,r){var n=void 0===r?{}:r,i=n.signed,a=n.le,o=void 0!==a&&a;e=toUint8(e);var s=o?"reduce":"reduceRight",d=(e[s]?e[s]:Array.prototype[s]).call(e,function(r,n,i){var a=o?i:Math.abs(i+1-e.length);return r+l(n)*u[a]},l(0));if(void 0!==i&&i){var c=u[e.length]/l(2)-l(1);(d=l(d))>c&&(d-=c,d-=c,d-=l(2))}return Number(d)},numberToBytes=function(e,r){var n=(void 0===r?{}:r).le,i=void 0!==n&&n;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0);for(var a=Math.ceil((e=l(e)).toString(2).length/8),o=new Uint8Array(new ArrayBuffer(a)),s=0;s<a;s++){var d=i?s:Math.abs(s+1-o.length);o[d]=Number(e/u[s]&l(255)),e<0&&(o[d]=Math.abs(~o[d]),o[d]-=0===s?1:2)}return o},bytesToString=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var r=String.fromCharCode.apply(null,toUint8(e));try{return decodeURIComponent(escape(r))}catch(e){}return r},stringToBytes=function(e,r){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;r||(e=unescape(encodeURIComponent(e)));for(var n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n},concatTypedArrays=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if((r=r.filter(function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e})).length<=1)return toUint8(r[0]);var i=r.reduce(function(e,r,n){return e+(r.byteLength||r.length)},0),a=new Uint8Array(i),o=0;return r.forEach(function(e){e=toUint8(e),a.set(e,o),o+=e.byteLength}),a},bytesMatch=function(e,r,n){var i=void 0===n?{}:n,a=i.offset,o=void 0===a?0:a,s=i.mask,l=void 0===s?[]:s;e=toUint8(e);var u=(r=toUint8(r)).every?r.every:Array.prototype.every;return r.length&&e.length-o>=r.length&&u.call(r,function(r,n){return r===(l[n]?l[n]&e[o+n]:e[o+n])})}},69974:function(e,r,n){"use strict";n.d(r,{Hi:function(){return muxerSupportsCodec},Jg:function(){return codecsFromDefault},KL:function(){return isAudioCodec},_5:function(){return getMimeForCodec},kS:function(){return parseCodecs},lA:function(){return u},p7:function(){return browserSupportsCodec},ws:function(){return translateLegacyCodec},xz:function(){return d}});var i=n(59265),a=n.n(i),o={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^/},s=["video","audio","text"],l=["Video","Audio","Text"],translateLegacyCodec=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,r,n){return"avc1."+("00"+Number(r).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)}):e},parseCodecs=function(e){void 0===e&&(e="");var r=e.split(","),n=[];return r.forEach(function(e){var r;e=e.trim(),s.forEach(function(i){var a=o[i].exec(e.toLowerCase());if(a&&!(a.length<=1)){r=i;var s=e.substring(0,a[1].length),l=e.replace(s,"");n.push({type:s,details:l,mediaType:i})}}),r||n.push({type:e,details:"",mediaType:"unknown"})}),n},codecsFromDefault=function(e,r){if(!e.mediaGroups.AUDIO||!r)return null;var n=e.mediaGroups.AUDIO[r];if(!n)return null;for(var i in n){var a=n[i];if(a.default&&a.playlists)return parseCodecs(a.playlists[0].attributes.CODECS)}return null},isAudioCodec=function(e){return void 0===e&&(e=""),o.audio.test(e.trim().toLowerCase())},getMimeForCodec=function(e){if(e&&"string"==typeof e){var r,n=e.toLowerCase().split(",").map(function(e){return translateLegacyCodec(e.trim())}),i="video";1===n.length&&isAudioCodec(n[0])?i="audio":1===n.length&&(void 0===(r=n[0])&&(r=""),o.text.test(r.trim().toLowerCase()))&&
1(i="application");var a="mp4";return n.every(function(e){return o.mp4.test(e)})?a="mp4":n.every(function(e){return o.webm.test(e)})?a="webm":n.every(function(e){return o.ogg.test(e)})&&(a="ogg"),i+"/"+a+';codecs="'+e+'"'}},browserSupportsCodec=function(e){return void 0===e&&(e=""),a().MediaSource&&a().MediaSource.isTypeSupported&&a().MediaSource.isTypeSupported(getMimeForCodec(e))||!1},muxerSupportsCodec=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every(function(e){e=e.trim();for(var r=0;r<l.length;r++)if(o["muxer"+l[r]].test(e))return!0;return!1})},u="mp4a.40.2",d="avc1.4d400d"},23050:function(e,r,n){"use strict";n.d(r,{Xm:function(){return detectContainerForBytes},cz:function(){return isLikelyFmp4MediaSegment}});var i,a=n(22261);new Uint8Array([79,112,117,115,72,101,97,100]);var normalizePath=function(e){return"string"==typeof e?(0,a.qX)(e):e},parseDescriptors=function(e){e=(0,a.Ki)(e);for(var r=[],n=0;e.length>n;){var o=e[n],s=0,l=0,u=e[++l];for(l++;128&u;)s=(127&u)<<7,u=e[l],l++;s+=127&u;for(var d=0;d<i.length;d++){var c=i[d],p=c.id,h=c.parser;if(o===p){r.push(h(e.subarray(l,l+s)));break}}n+=s+l}return r};i=[{id:3,parser:function(e){var r={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&r.flags&&(r.dependsOnEsId=e[r.size]<<8|e[r.size+1],r.size+=2),64&r.flags){var n=e[r.size];r.url=(0,a.d3)(e.subarray(r.size+1,r.size+1+n)),r.size+=n}return 32&r.flags&&(r.ocrEsId=e[r.size]<<8|e[r.size+1],r.size+=2),r.descriptors=parseDescriptors(e.subarray(r.size))||[],r}},{id:4,parser:function(e){return{tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:parseDescriptors(e.subarray(13))}}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var findBox=function findBox(e,r,n){void 0===n&&(n=!1),r=Array.isArray(i=r)?i.map(function(e){return normalizePath(e)}):[normalizePath(i)],e=(0,a.Ki)(e);var i,o=[];if(!r.length)return o;for(var s=0;s<e.length;){var l=(e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3])>>>0,u=e.subarray(s+4,s+8);if(0===l)break;var d=s+l;if(d>e.length){if(n)break;d=e.length}var c=e.subarray(s+8,d);(0,a.G3)(u,r[0])&&(1===r.length?o.push(c):o.push.apply(o,findBox(c,r.slice(1),n))),s=d}return o},o={EBML:(0,a.Ki)([26,69,223,163]),DocType:(0,a.Ki)([66,130]),Segment:(0,a.Ki)([24,83,128,103]),SegmentInfo:(0,a.Ki)([21,73,169,102]),Tracks:(0,a.Ki)([22,84,174,107]),Track:(0,a.Ki)([174]),TrackNumber:(0,a.Ki)([215]),DefaultDuration:(0,a.Ki)([35,227,131]),TrackEntry:(0,a.Ki)([174]),TrackType:(0,a.Ki)([131]),FlagDefault:(0,a.Ki)([136]),CodecID:(0,a.Ki)([134]),CodecPrivate:(0,a.Ki)([99,162]),VideoTrack:(0,a.Ki)([224]),AudioTrack:(0,a.Ki)([225]),Cluster:(0,a.Ki)([31,67,182,117]),Timestamp:(0,a.Ki)([231]),TimestampScale:(0,a.Ki)([42,215,177]),BlockGroup:(0,a.Ki)([160]),BlockDuration:(0,a.Ki)([155]),Block:(0,a.Ki)([161]),SimpleBlock:(0,a.Ki)([163])},s=[128,64,32,16,8,4,2,1],getLength=function(e){for(var r=1,n=0;n<s.length&&!(e&s[n]);n++)r++;return r},getvint=function(e,r,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1);var o=getLength(e[r]),l=e.subarray(r,r+o);return n&&(l=Array.prototype.slice.call(e,r,r+o),l[0]^=s[o-1]),{length:o,value:(0,a.tm)(l,{signed:i}),bytes:l}},ebml_helpers_normalizePath=function normalizePath(e){return"string"==typeof e?e.match(/.{1,2}/g).map(function(e){return normalizePath(e)}):"number"==typeof e?(0,a.hL)(e):e},getInfinityDataSize=function getInfinityDataSize(e,r,n){if(n>=r.length)return r.length;var i=getvint(r,n,!1);if((0,a.G3)(e.bytes,i.bytes))return n;var o=getvint(r,n+i.length);return getInfinityDataSize(e,r,n+o.length+o.value+i.length)},findEbml=function findEbml(e,r){r=Array.isArray(n=r)?n.map(function(e){return ebml_helpers_normalizePath(e)}):[ebml_helpers_normalizePath(n)],e=(0,a.Ki)(e);var n,i=[];if(!r.length)return i;for(var o=0;o<e.length;){var s=getvint(e,o,!1),l=getvint(e,o+s.length),u=o+s.length+l.length;127===l.value&&(l.value=getInfinityDataSize(s,e,u),l.value!==e.length&&(l.value-=u));var d=u+l.value>e.length?e.length:u+l.value,c=e.subarray(u,d);
1(0,a.G3)(r[0],s.bytes)&&(1===r.length?i.push(c):i=i.concat(findEbml(c,r.slice(1)))),o+=s.length+l.length+c.length}return i},l=n(95086),u=(0,a.Ki)([0,0,0,1]),d=(0,a.Ki)([0,0,1]),c=(0,a.Ki)([0,0,3]),discardEmulationPreventionBytes=function(e){for(var r=[],n=1;n<e.length-2;)(0,a.G3)(e.subarray(n,n+3),c)&&(r.push(n+2),n++),n++;if(0===r.length)return e;var i=e.length-r.length,o=new Uint8Array(i),s=0;for(n=0;n<i;s++,n++)s===r[0]&&(s++,r.shift()),o[n]=e[s];return o},findNal=function(e,r,n,i){void 0===i&&(i=1/0),e=(0,a.Ki)(e),n=[].concat(n);for(var o,s=0,l=0;s<e.length&&(l<i||o);){var c=void 0;if((0,a.G3)(e.subarray(s),u)?c=4:(0,a.G3)(e.subarray(s),d)&&(c=3),!c){s++;continue}if(l++,o)return discardEmulationPreventionBytes(e.subarray(o,s));var p=void 0;"h264"===r?p=31&e[s+c]:"h265"===r&&(p=e[s+c]>>1&63),-1!==n.indexOf(p)&&(o=s+c),s+=c+("h264"===r?1:2)}return e.subarray(0,0)},p={webm:(0,a.Ki)([119,101,98,109]),matroska:(0,a.Ki)([109,97,116,114,111,115,107,97]),flac:(0,a.Ki)([102,76,97,67]),ogg:(0,a.Ki)([79,103,103,83]),ac3:(0,a.Ki)([11,119]),riff:(0,a.Ki)([82,73,70,70]),avi:(0,a.Ki)([65,86,73]),wav:(0,a.Ki)([87,65,86,69]),"3gp":(0,a.Ki)([102,116,121,112,51,103]),mp4:(0,a.Ki)([102,116,121,112]),fmp4:(0,a.Ki)([115,116,121,112]),mov:(0,a.Ki)([102,116,121,112,113,116]),moov:(0,a.Ki)([109,111,111,118]),moof:(0,a.Ki)([109,111,111,102])},h={aac:function(e){var r=(0,l.c)(e);return(0,a.G3)(e,[255,16],{offset:r,mask:[255,22]})},mp3:function(e){var r=(0,l.c)(e);return(0,a.G3)(e,[255,2],{offset:r,mask:[255,6]})},webm:function(e){var r=findEbml(e,[o.EBML,o.DocType])[0];return(0,a.G3)(r,p.webm)},mkv:function(e){var r=findEbml(e,[o.EBML,o.DocType])[0];return(0,a.G3)(r,p.matroska)},mp4:function(e){return!(h["3gp"](e)||h.mov(e))&&(!!((0,a.G3)(e,p.mp4,{offset:4})||(0,a.G3)(e,p.fmp4,{offset:4})||(0,a.G3)(e,p.moof,{offset:4})||(0,a.G3)(e,p.moov,{offset:4}))||void 0)},mov:function(e){return(0,a.G3)(e,p.mov,{offset:4})},"3gp":function(e){return(0,a.G3)(e,p["3gp"],{offset:4})},ac3:function(e){var r=(0,l.c)(e);return(0,a.G3)(e,p.ac3,{offset:r})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var r=0;r+188<e.length&&r<188;){if(71===e[r]&&71===e[r+188])return!0;r+=1}return!1},flac:function(e){var r=(0,l.c)(e);return(0,a.G3)(e,p.flac,{offset:r})},ogg:function(e){return(0,a.G3)(e,p.ogg)},avi:function(e){return(0,a.G3)(e,p.riff)&&(0,a.G3)(e,p.avi,{offset:8})},wav:function(e){return(0,a.G3)(e,p.riff)&&(0,a.G3)(e,p.wav,{offset:8})},h264:function(e){return findNal(e,"h264",7,3).length},h265:function(e){return findNal(e,"h265",[32,33],3).length}},g=Object.keys(h).filter(function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e}).concat(["ts","h264","h265"]);g.forEach(function(e){var r=h[e];h[e]=function(e){return r((0,a.Ki)(e))}});var detectContainerForBytes=function(e){e=(0,a.Ki)(e);for(var r=0;r<g.length;r++){var n=g[r];if(h[n](e))return n}return""},isLikelyFmp4MediaSegment=function(e){return findBox(e,["moof"]).length>0}},95086:function(e,r,n){"use strict";n.d(r,{c:function(){return getId3Offset}});var i=n(22261),a=(0,i.Ki)([73,68,51]),getId3Size=function(e,r){void 0===r&&(r=0);var n=(e=(0,i.Ki)(e))[r+5],a=e[r+6]<<21|e[r+7]<<14|e[r+8]<<7|e[r+9];return(16&n)>>4?a+20:a+10},getId3Offset=function getId3Offset(e,r){return(void 0===r&&(r=0),(e=(0,i.Ki)(e)).length-r<10||!(0,i.G3)(e,a,{offset:r}))?r:(r+=getId3Size(e,r),getId3Offset(e,r))}},85117:function(e,r,n){"use strict";n.d(r,{t:function(){return simpleTypeFromSourceType}});var i=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,a=/^application\/dash\+xml/i,simpleTypeFromSourceType=function(e){return i.test(e)?"hls":a.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null}},52754:function(e,r,n){"use strict";var i=n(83340),a=n.n(i),o=n(59265),s=n.n(o),l="http://example.com";r.Z=function(e,r){if(/^[a-z]+:/i.test(r))return r;/^data:/.test(e)&&(e=s().location&&s().location.href||"");var n="function"==typeof s().URL,i=/^\/\//.test(e),o=!s().location&&!/\/\//i.test(e);if(n?e=new(s()).URL(e,s().location||l):/\/\//i.test(e)||(e=a().buildAbsoluteURL(s().location&&s().location.href||"",e)),n){var u=new URL(r,e);return o?u.href.slice(l.length):i?u.href.slice(u.protocol.length):u.href}return a().buildAbsoluteURL(e,r)}},73834:function(e,r,n){"use strict";var i=n(59265);e.exports=function(e,r){return void 0===r&&(r=!1),function(n,a,o){if(n){e(n);return}if(a.statusCode>=400&&a.statusCode<=599){var s=o;if(r){if(i.TextDecoder){var l,u=(void 0===(l=a.headers&&a.headers["content-type"])&&(l=""),l.toLowerCase().split(";").reduce(function(e,r){var n=r.split("="),i=n[0],a=n[1];return"charset"===i.trim()?a.trim():e},"utf-8"));try{s=new TextDecoder(u).decode(o)}catch(e){}}else s=String.fromCharCode.apply(null,new Uint8Array(o))}e({cause:s});return}e(null,o)}}},64376:function(e,r,n){"use strict";var i=n(59265),a=n(73922),o=n(5069),s=n(15535),l=n(38912);createXHR.httpHandler=n(73834),createXHR.requestInterceptorsStorage=new s,createXHR.responseInterceptorsStorage=new s,createXHR.retryManager=new l;/**
2 * @license
3 * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
4 * Copyright (c) 2014 David Björklund
5 * Available under the MIT license
6 * <https://github.com/kesla/parse-headers/blob/master/LICENCE>
7 */var parseHeaders=function(e){var r={};return e&&e.trim().split("\n").forEach(function(e){var n=e.indexOf(":"),i=e.slice(0,n).trim().toLowerCase(),a=e.slice(n+1).trim();void 0===r[i]?r[i]=a:Array.isArray(r[i])?r[i].push(a):r[i]=[r[i],a]}),r};function initParams(e,r,n){var i=e;return o(r)?(n=r,"string"==typeof e&&(i={uri:e})):i=a({},r,{uri:e}),i.callback=n,i}function createXHR(e,r,n){return _createXHR(r=initParams(e,r,n))}function _createXHR(e){if(void 0===e.callback)throw Error("callback argument missing");if(e.requestType&&createXHR.requestInterceptorsStorage.getIsEnabled()){var r,n,i,a={uri:e.ur
7i||e.url,headers:e.headers||{},body:e.body,metadata:e.metadata||{},retry:e.retry,timeout:e.timeout},o=createXHR.requestInterceptorsStorage.execute(e.requestType,a);e.uri=o.uri,e.headers=o.headers,e.body=o.body,e.metadata=o.metadata,e.retry=o.retry,e.timeout=o.timeout}var s=!1,callback=function(r,n,i){s||(s=!0,e.callback(r,n,i))};function errorFunc(r){if(clearTimeout(i),clearTimeout(e.retryTimeout),r instanceof Error||(r=Error(""+(r||"Unknown XMLHttpRequest Error"))),r.statusCode=0,!n&&createXHR.retryManager.getIsEnabled()&&e.retry&&e.retry.shouldRetry()){e.retryTimeout=setTimeout(function(){e.retry.moveToNextAttempt(),e.xhr=l,_createXHR(e)},e.retry.getCurrentFuzzedDelay());return}if(e.requestType&&createXHR.responseInterceptorsStorage.getIsEnabled()){var a={headers:f.headers||{},body:f.body,responseUrl:l.responseURL,responseType:l.responseType},o=createXHR.responseInterceptorsStorage.execute(e.requestType,a);f.body=o.body,f.headers=o.headers}return callback(r,f)}function loadFunc(){if(!n){clearTimeout(i),clearTimeout(e.retryTimeout);var r,a=f,o=null;if(0!==(r=e.useXDR&&void 0===l.status?200:1223===l.status?204:l.status)?(a={body:function(){var e=void 0;if(e=l.response?l.response:l.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var r=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!r)return e.responseXML}catch(e){}return null}(l),g)try{e=JSON.parse(e)}catch(e){}return e}(),statusCode:r,method:d,headers:{},url:u,rawRequest:l},l.getAllResponseHeaders&&(a.headers=parseHeaders(l.getAllResponseHeaders()))):o=Error("Internal XMLHttpRequest Error"),e.requestType&&createXHR.responseInterceptorsStorage.getIsEnabled()){var s={headers:a.headers||{},body:a.body,responseUrl:l.responseURL,responseType:l.responseType},c=createXHR.responseInterceptorsStorage.execute(e.requestType,s);a.body=c.body,a.headers=c.headers}return callback(o,a,a.body)}}var l=e.xhr||null;l||(l=e.cors||e.useXDR?new createXHR.XDomainRequest:new createXHR.XMLHttpRequest);var u=l.url=e.uri||e.url,d=l.method=e.method||"GET",c=e.body||e.data,p=l.headers=e.headers||{},h=!!e.sync,g=!1,f={body:void 0,headers:{},statusCode:0,method:d,url:u,rawRequest:l};if("json"in e&&!1!==e.json&&(g=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==d&&"HEAD"!==d&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),c=JSON.stringify(!0===e.json?c:e.json))),l.onreadystatechange=function(){4!==l.readyState||createXHR.responseInterceptorsStorage.getIsEnabled()||setTimeout(loadFunc,0)},l.onload=loadFunc,l.onerror=errorFunc,l.onprogress=function(){},l.onabort=function(){n=!0,clearTimeout(e.retryTimeout)},l.ontimeout=errorFunc,l.open(d,u,!h,e.username,e.password),h||(l.withCredentials=!!e.withCredentials),!h&&e.timeout>0&&(i=setTimeout(function(){if(!n){n=!0,l.abort("timeout");var e=Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",errorFunc(e)}},e.timeout)),l.setRequestHeader)for(r in p)p.hasOwnProperty(r)&&l.setRequestHeader(r,p[r]);else if(e.headers&&!function(e){for(var r in e)if(e.hasOwnProperty(r))return!1;return!0}(e.headers))throw Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(l.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(l),l.send(c||null),l}e.exports=createXHR,e.exports.default=createXHR,createXHR.XMLHttpRequest=i.XMLHttpRequest||function(){},createXHR.XDomainRequest="withCredentials"in new createXHR.XMLHttpRequest?createXHR.XMLHttpRequest:i.XDomainRequest,function(e,r){for(var n=0;n<e.length;n++)r(e[n])}(["get","put","post","patch","head","delete"],function(e){createXHR["delete"===e?"del":e]=function(r,n,i){return(n=initParams(r,n,i)).method=e.toUpperCase(),_createXHR(n)}})},15535:function(e){"use strict";function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,i=Array(r);n<r;n++)i[n]=e[n];return i}var r=function(){function InterceptorsStorage(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1}var e=InterceptorsStorage.prototype;return e.getIsEnabled=function(){return this.enabled_},e.enable=function(){this.enabled_=!0},e.disable=function(){this.enabled_=!1},e.reset=function(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1},e.addInterceptor=function(e,r){this.typeToInterceptorsMap_.has(e)||this.typeToInterceptorsMap_.set(e,new Set);var n=this.typeToInterceptorsMap_.get(e);return!n.has(r)&&(n.add(r),!0)},e.removeInterceptor=function(e,r){var n=this.typeToInterceptorsMap_.get(e);return!!(n&&n.has(r))&&(n.delete(r),!0)},e.clearInterceptorsByType=function(e){return!!this.typeToInterceptorsMap_.get(e)&&(this.t
7ypeToInterceptorsMap_.delete(e),this.typeToInterceptorsMap_.set(e,new Set),!0)},e.clear=function(){return!!this.typeToInterceptorsMap_.size&&(this.typeToInterceptorsMap_=new Map,!0)},e.getForType=function(e){return this.typeToInterceptorsMap_.get(e)||new Set},e.execute=function(e,r){for(var n,i=this.getForType(e),a=function(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,r)}}(e))){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i);!(n=a()).done;){var o=n.value;try{r=o(r)}catch(e){}}return r},InterceptorsStorage}();e.exports=r},38912:function(e){"use strict";var r=function(){function RetryManager(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1}var e=RetryManager.prototype;return e.getIsEnabled=function(){return this.enabled_},e.enable=function(){this.enabled_=!0},e.disable=function(){this.enabled_=!1},e.reset=function(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1},e.getMaxAttempts=function(){return this.maxAttempts_},e.setMaxAttempts=function(e){this.maxAttempts_=e},e.getDelayFactor=function(){return this.delayFactor_},e.setDelayFactor=function(e){this.delayFactor_=e},e.getFuzzFactor=function(){return this.fuzzFactor_},e.setFuzzFactor=function(e){this.fuzzFactor_=e},e.getInitialDelay=function(){return this.initialDelay_},e.setInitialDelay=function(e){this.initialDelay_=e},e.createRetry=function(e){var r=void 0===e?{}:e,i=r.maxAttempts,a=r.delayFactor,o=r.fuzzFactor,s=r.initialDelay;return new n({maxAttempts:i||this.maxAttempts_,delayFactor:a||this.delayFactor_,fuzzFactor:o||this.fuzzFactor_,initialDelay:s||this.initialDelay_})},RetryManager}(),n=function(){function Retry(e){this.maxAttempts_=e.maxAttempts,this.delayFactor_=e.delayFactor,this.fuzzFactor_=e.fuzzFactor,this.currentDelay_=e.initialDelay,this.currentAttempt_=1}var e=Retry.prototype;return e.moveToNextAttempt=function(){this.currentAttempt_++;var e=this.currentDelay_*this.delayFactor_;this.currentDelay_=this.currentDelay_+e},e.shouldRetry=function(){return this.currentAttempt_<this.maxAttempts_},e.getCurrentDelay=function(){return this.currentDelay_},e.getCurrentMinPossibleDelay=function(){return(1-this.fuzzFactor_)*this.currentDelay_},e.getCurrentMaxPossibleDelay=function(){return(1+this.fuzzFactor_)*this.currentDelay_},e.getCurrentFuzzedDelay=function(){var e=this.getCurrentMinPossibleDelay();return e+Math.random()*(this.getCurrentMaxPossibleDelay()-e)},Retry}();e.exports=r},33628:function(e,r){"use strict";function freeze(e,r){return void 0===r&&(r=Object),r&&"function"==typeof r.freeze?r.freeze(e):e}var n=freeze({HTML:"text/html",isHTML:function(e){return e===n.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),i=freeze({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===i.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});r.assign=function(e,r){if(null===e||"object"!=typeof e)throw TypeError("target is not an object");for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},r.find=function(e,r,n){if(void 0===n&&(n=Array.prototype),e&&"function"==typeof n.find)return n.find.call(e,r);for(var i=0;i<e.length;i++)if(Object.prototype.hasOwnProperty.call(e,i)){var a=e[i];if(r.call(void 0,a,i,e))return a}},r.freeze=freeze,r.MIME_TYPE=n,r.NAMESPACE=i},37998:function(e,r,n){var i=n(33628),a=n(40929),o=n(95690),s=n(55612),l=a.DOMImplementation,u=i.NAMESPACE,d=s.ParseError,c=s.XMLReader;function normalizeLineEndings(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function DOMParser(e){this.options=e||{locator:{}}}function DOMHandler(){this.cdata=!1}function position(e,r){r.lineNumber=e.lineNumber,r.columnNumber=e.columnNumber}function _locator(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function _toString(e,r,n){return"string"==typeof e?e.substr(r,n):e.length>=r+n||r?new java.lang.String(e,r,n)+"":e}function appendElement(e,r){e.currentElement?e.currentElement.appendChild(r):e.doc.appendChild(r)}DOMParser.prototype.parseFromString=function(e,r){var n=this.options,i=new c,a=n.domBuilder||new DOMHandler,s=n.errorHandler,l=n.locator,d=n.xmlns||{},p=/\/x?html?$/.test(r),h=p?o.HTML_ENTITIES:o.XML_ENTITIES;l&&a.setDocumentLocator(l),i.errorHandler=function(e,r,n){if(!e){if(r instanceof DOMHandler)return r;e=r}var i={},a=e instanceof Function;function build(r){var o=e[r];!o&&a&&(o=2==e.length?function(n){e(r,n)}:e),i[r]=o&&function(e){o("[xmldom "+r+"]	"+e+_locator(n))}||function(){}}return n=n||{},build("warning"),build("error"),build("fatalError"),i}(s,a,l),i.domBuilder=n.domBuilder||a,p&&(d[""]=u.HTML),d.xml=d.xml||u.XML;var g=n.normalizeLineEndings||normalizeLineEndings;return e&&"string"==typeof e?i.parse(g(e),d,h):i.errorHandler.error("invalid doc source"),a.doc}
7,DOMHandler.prototype={startDocument:function(){this.doc=new l().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,r,n,i){var a=this.doc,o=a.createElementNS(e,n||r),s=i.length;appendElement(this,o),this.currentElement=o,this.locator&&position(this.locator,o);for(var l=0;l<s;l++){var e=i.getURI(l),u=i.getValue(l),n=i.getQName(l),d=a.createAttributeNS(e,n);this.locator&&position(i.getLocator(l),d),d.value=d.nodeValue=u,o.setAttributeNode(d)}},endElement:function(e,r,n){var i=this.currentElement;i.tagName,this.currentElement=i.parentNode},startPrefixMapping:function(e,r){},endPrefixMapping:function(e){},processingInstruction:function(e,r){var n=this.doc.createProcessingInstruction(e,r);this.locator&&position(this.locator,n),appendElement(this,n)},ignorableWhitespace:function(e,r,n){},characters:function(e,r,n){if(e=_toString.apply(this,arguments)){if(this.cdata)var i=this.doc.createCDATASection(e);else var i=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(e)&&this.doc.appendChild(i),this.locator&&position(this.locator,i)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,r,n){e=_toString.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&position(this.locator,i),appendElement(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,r,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var a=i.createDocumentType(e,r,n);this.locator&&position(this.locator,a),appendElement(this,a),this.doc.doctype=a}},warning:function(e){console.warn("[xmldom warning]	"+e,_locator(this.locator))},error:function(e){console.error("[xmldom error]	"+e,_locator(this.locator))},fatalError:function(e){throw new d(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){DOMHandler.prototype[e]=function(){return null}}),r.DOMParser=DOMParser},40929:function(e,r,n){var i=n(33628),a=i.find,o=i.NAMESPACE;function notEmptyString(e){return""!==e}function orderedSetReducer(e,r){return e.hasOwnProperty(r)||(e[r]=!0),e}function toOrderedSet(e){return e?Object.keys((e?e.split(/[\t\n\f\r ]+/).filter(notEmptyString):[]).reduce(orderedSetReducer,{})):[]}function copy(e,r){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n])}function _extends(e,r){var n=e.prototype;if(!(n instanceof r)){function t(){}t.prototype=r.prototype,copy(n,t=new t),e.prototype=n=t}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var s={},l=s.ELEMENT_NODE=1,u=s.ATTRIBUTE_NODE=2,d=s.TEXT_NODE=3,c=s.CDATA_SECTION_NODE=4,p=s.ENTITY_REFERENCE_NODE=5,h=s.ENTITY_NODE=6,g=s.PROCESSING_INSTRUCTION_NODE=7,f=s.COMMENT_NODE=8,m=s.DOCUMENT_NODE=9,y=s.DOCUMENT_TYPE_NODE=10,A=s.DOCUMENT_FRAGMENT_NODE=11,v=s.NOTATION_NODE=12,b={},E={};b.INDEX_SIZE_ERR=(E[1]="Index size error",1),b.DOMSTRING_SIZE_ERR=(E[2]="DOMString size error",2);var T=b.HIERARCHY_REQUEST_ERR=(E[3]="Hierarchy request error",3);b.WRONG_DOCUMENT_ERR=(E[4]="Wrong document",4),b.INVALID_CHARACTER_ERR=(E[5]="Invalid character",5),b.NO_DATA_ALLOWED_ERR=(E[6]="No data allowed",6),b.NO_MODIFICATION_ALLOWED_ERR=(E[7]="No modification allowed",7);var D=b.NOT_FOUND_ERR=(E[8]="Not found",8);b.NOT_SUPPORTED_ERR=(E[9]="Not supported",9);var S=b.INUSE_ATTRIBUTE_ERR=(E[10]="Attribute in use",10);function DOMException(e,r){if(r instanceof Error)var n=r;else n=this,Error.call(this,E[e]),this.message=E[e],Error.captureStackTrace&&Error.captureStackTrace(this,DOMException);return n.code=e,r&&(this.message=this.message+": "+r),n}function NodeList(){}function LiveNodeList(e,r){this._node=e,this._refresh=r,_updateLiveList(this)}function _updateLiveList(e){var r=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==r){var n=e._refresh(e._node);if(__set__(e,"length",n.length),!e.$$length||n.length<e.$$length)for(var i=n.length;(i in e);i++)Object.prototype.hasOwnProperty.call(e,i)&&delete e[i];copy(n,e),e._inc=r}}function NamedNodeMap(){}function _findNodeIndex(e,r){for(var n=e.length;n--;)if(e[n]===r)return n}function _addNamedNode(e,r,n,i){if(i?r[_findNodeIndex(r,i)]=n:r[r.length++]=n,e){n.ownerElement=e;var a=e.ownerDocument;a&&(i&&_onRemoveAttribute(a,e,i),a&&a._inc++,n.namespaceURI===o.XMLNS&&(e._nsMap[n.prefix?n.localName:""]=n.value))}}function _removeNamedNode(e,r,n){var i=_findNodeIndex(r,n);if(i>=0){for(var a=r.length-1;i<a;)r[i]=r[++i];if(r.length=a,e){var o=e.ownerDocument;o&&(_onRemoveAttribute(o,e,n),n.ownerElement=null)}}else throw new DOMException(D,Error(e.tagName+"@"+n))}function DOMImplementation(){}function Node(){}function _xmlEncoder(e){return"<"==e&&"&lt;"||">"==e&&"&gt;"||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function _visitNode(e,r){if(r(e))return!0;
7if(e=e.firstChild)do if(_visitNode(e,r))return!0;while(e=e.nextSibling)}function Document(){this.ownerDocument=this}function _onRemoveAttribute(e,r,n,i){e&&e._inc++,n.namespaceURI===o.XMLNS&&delete r._nsMap[n.prefix?n.localName:""]}function _onUpdateChild(e,r,n){if(e&&e._inc){e._inc++;var i=r.childNodes;if(n)i[i.length++]=n;else{for(var a=r.firstChild,o=0;a;)i[o++]=a,a=a.nextSibling;i.length=o,delete i[i.length]}}}function _removeChild(e,r){var n=r.previousSibling,i=r.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,r.parentNode=null,r.previousSibling=null,r.nextSibling=null,_onUpdateChild(e.ownerDocument,e),r}function isDocTypeNode(e){return e&&e.nodeType===Node.DOCUMENT_TYPE_NODE}function isElementNode(e){return e&&e.nodeType===Node.ELEMENT_NODE}function isTextNode(e){return e&&e.nodeType===Node.TEXT_NODE}function isElementInsertionPossible(e,r){var n=e.childNodes||[];if(a(n,isElementNode)||isDocTypeNode(r))return!1;var i=a(n,isDocTypeNode);return!(r&&i&&n.indexOf(i)>n.indexOf(r))}function isElementReplacementPossible(e,r){var n=e.childNodes||[];if(a(n,function(e){return isElementNode(e)&&e!==r}))return!1;var i=a(n,isDocTypeNode);return!(r&&i&&n.indexOf(i)>n.indexOf(r))}function assertPreReplacementValidityInDocument(e,r,n){var i=e.childNodes||[],o=r.childNodes||[];if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var s=o.filter(isElementNode);if(s.length>1||a(o,isTextNode))throw new DOMException(T,"More than one element or text in fragment");if(1===s.length&&!isElementReplacementPossible(e,n))throw new DOMException(T,"Element in fragment can not be inserted before doctype")}if(isElementNode(r)&&!isElementReplacementPossible(e,n))throw new DOMException(T,"Only one element can be added and only after doctype");if(isDocTypeNode(r)){if(a(i,function(e){return isDocTypeNode(e)&&e!==n}))throw new DOMException(T,"Only one doctype is allowed");var l=a(i,isElementNode);if(n&&i.indexOf(l)<i.indexOf(n))throw new DOMException(T,"Doctype can only be inserted before an element")}}function _insertBefore(e,r,n,i){!function(e,r,n){if(!(e&&(e.nodeType===Node.DOCUMENT_NODE||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE||e.nodeType===Node.ELEMENT_NODE)))throw new DOMException(T,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new DOMException(D,"child not in parent");if(!(r&&(isElementNode(r)||isTextNode(r)||isDocTypeNode(r)||r.nodeType===Node.DOCUMENT_FRAGMENT_NODE||r.nodeType===Node.COMMENT_NODE||r.nodeType===Node.PROCESSING_INSTRUCTION_NODE))||isDocTypeNode(r)&&e.nodeType!==Node.DOCUMENT_NODE)throw new DOMException(T,"Unexpected node type "+r.nodeType+" for parent node type "+e.nodeType)}(e,r,n),e.nodeType===Node.DOCUMENT_NODE&&(i||function(e,r,n){var i=e.childNodes||[],o=r.childNodes||[];if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var s=o.filter(isElementNode);if(s.length>1||a(o,isTextNode))throw new DOMException(T,"More than one element or text in fragment");if(1===s.length&&!isElementInsertionPossible(e,n))throw new DOMException(T,"Element in fragment can not be inserted before doctype")}if(isElementNode(r)&&!isElementInsertionPossible(e,n))throw new DOMException(T,"Only one element can be added and only after doctype");if(isDocTypeNode(r)){if(a(i,isDocTypeNode))throw new DOMException(T,"Only one doctype is allowed");var l=a(i,isElementNode);if(n&&i.indexOf(l)<i.indexOf(n))throw new DOMException(T,"Doctype can only be inserted before an element");if(!n&&l)throw new DOMException(T,"Doctype can not be appended since element is present")}})(e,r,n);var o=r.parentNode;if(o&&o.removeChild(r),r.nodeType===A){var s=r.firstChild;if(null==s)return r;var l=r.lastChild}else s=l=r;var u=n?n.previousSibling:e.lastChild;s.previousSibling=u,l.nextSibling=n,u?u.nextSibling=s:e.firstChild=s,null==n?e.lastChild=l:n.previousSibling=l;do s.parentNode=e;while(s!==l&&(s=s.nextSibling));return _onUpdateChild(e.ownerDocument||e,e),r.nodeType==A&&(r.firstChild=r.lastChild=null),r}function Element(){this._nsMap={}}function Attr(){}function CharacterData(){}function Text(){}function Comment(){}function CDATASection(){}function DocumentType(){}function Notation(){}function Entity(){}function EntityReference(){}function DocumentFragment(){}function ProcessingInstruction(){}function XMLSerializer(){}function nodeSerializeToString(e,r){var n=[],i=9==this.nodeType&&this.documentElement||this,a=i.prefix,o=i.namespaceURI;if(o&&null==a){var a=i.lookupPrefix(o);if(null==a)var s=[{namespace:o,prefix:null}]}return serializeToString(this,n,e,r,s),n.join("")}function needNamespaceDefine(e,r,n){var i=e.prefix||"",a=e.namespaceURI;if(!a||"xml"===i&&a===o.XML||a===o.XMLNS)return!1;for(var s=n.length;s--;){var l=n[s];if(l.prefix===i)return l.namespace!==a}return!0}function addSerializedAttribute(e,r,n){e.push(" ",r,'="',n.replace(/[<>&"\t\n\r]/g,_xmlEncoder),'"')}function serializeToString(e,r,n,i,a){if(a||(a=[]),i){if(!(e=i(e)))return;if("string"==typeof e){r.push(e);return}}switch(e.nodeType){case l:var s,h=e.attributes,v=h.length,b=e.firstChild,E=e.tagName;n=o.isHTML(e.namespaceURI)||n;var T=E;if(!n&&!e.prefix&&e.namespaceURI){for(var D=0;D<h.length;
vendor: 5,061 bytes, line 7
7D++)if("xmlns"===h.item(D).name){s=h.item(D).value;break}if(!s)for(var S=a.length-1;S>=0;S--){var C=a[S];if(""===C.prefix&&C.namespace===e.namespaceURI){s=C.namespace;break}}if(s!==e.namespaceURI)for(var S=a.length-1;S>=0;S--){var C=a[S];if(C.namespace===e.namespaceURI){C.prefix&&(T=C.prefix+":"+E);break}}}r.push("<",T);for(var P=0;P<v;P++){var w=h.item(P);"xmlns"==w.prefix?a.push({prefix:w.localName,namespace:w.value}):"xmlns"==w.nodeName&&a.push({prefix:"",namespace:w.value})}for(var P=0;P<v;P++){var w=h.item(P);if(needNamespaceDefine(w,n,a)){var N=w.prefix||"",I=w.namespaceURI;addSerializedAttribute(r,N?"xmlns:"+N:"xmlns",I),a.push({prefix:N,namespace:I})}serializeToString(w,r,n,i,a)}if(E===T&&needNamespaceDefine(e,n,a)){var N=e.prefix||"",I=e.namespaceURI;addSerializedAttribute(r,N?"xmlns:"+N:"xmlns",I),a.push({prefix:N,namespace:I})}if(b||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(E)){if(r.push(">"),n&&/^script$/i.test(E))for(;b;)b.data?r.push(b.data):serializeToString(b,r,n,i,a.slice()),b=b.nextSibling;else for(;b;)serializeToString(b,r,n,i,a.slice()),b=b.nextSibling;r.push("</",T,">")}else r.push("/>");return;case m:case A:for(var b=e.firstChild;b;)serializeToString(b,r,n,i,a.slice()),b=b.nextSibling;return;case u:return addSerializedAttribute(r,e.name,e.value);case d:return r.push(e.data.replace(/[<&>]/g,_xmlEncoder));case c:return r.push("<![CDATA[",e.data,"]]>");case f:return r.push("<!--",e.data,"-->");case y:var R=e.publicId,k=e.systemId;if(r.push("<!DOCTYPE ",e.name),R)r.push(" PUBLIC ",R),k&&"."!=k&&r.push(" ",k),r.push(">");else if(k&&"."!=k)r.push(" SYSTEM ",k,">");else{var L=e.internalSubset;L&&r.push(" [",L,"]"),r.push(">")}return;case g:return r.push("<?",e.target," ",e.data,"?>");case p:return r.push("&",e.nodeName,";");default:r.push("??",e.nodeName)}}function __set__(e,r,n){e[r]=n}b.INVALID_STATE_ERR=(E[11]="Invalid state",11),b.SYNTAX_ERR=(E[12]="Syntax error",12),b.INVALID_MODIFICATION_ERR=(E[13]="Invalid modification",13),b.NAMESPACE_ERR=(E[14]="Invalid namespace",14),b.INVALID_ACCESS_ERR=(E[15]="Invalid access",15),DOMException.prototype=Error.prototype,copy(b,DOMException),NodeList.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,r){for(var n=[],i=0;i<this.length;i++)serializeToString(this[i],n,e,r);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},LiveNodeList.prototype.item=function(e){return _updateLiveList(this),this[e]||null},_extends(LiveNodeList,NodeList),NamedNodeMap.prototype={length:0,item:NodeList.prototype.item,getNamedItem:function(e){for(var r=this.length;r--;){var n=this[r];if(n.nodeName==e)return n}},setNamedItem:function(e){var r=e.ownerElement;if(r&&r!=this._ownerElement)throw new DOMException(S);var n=this.getNamedItem(e.nodeName);return _addNamedNode(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var r,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new DOMException(S);return r=this.getNamedItemNS(e.namespaceURI,e.localName),_addNamedNode(this._ownerElement,this,e,r),r},removeNamedItem:function(e){var r=this.getNamedItem(e);return _removeNamedNode(this._ownerElement,this,r),r},removeNamedItemNS:function(e,r){var n=this.getNamedItemNS(e,r);return _removeNamedNode(this._ownerElement,this,n),n},getNamedItemNS:function(e,r){for(var n=this.length;n--;){var i=this[n];if(i.localName==r&&i.namespaceURI==e)return i}return null}},DOMImplementation.prototype={hasFeature:function(e,r){return!0},createDocument:function(e,r,n){var i=new Document;if(i.implementation=this,i.childNodes=new NodeList,i.doctype=n||null,n&&i.appendChild(n),r){var a=i.createElementNS(e,r);i.appendChild(a)}return i},createDocumentType:function(e,r,n){var i=new DocumentType;return i.name=e,i.nodeName=e,i.publicId=r||"",i.systemId=n||"",i}},Node.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,r){return _insertBefore(this,e,r)},replaceChild:function(e,r){_insertBefore(this,e,r,assertPreReplacementValidityInDocument),r&&this.removeChild(r)},removeChild:function(e){return _removeChild(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function cloneNode(e,r,n){var i=new r.constructor;for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)){var o=r[a];"object"!=typeof o&&o!=i[a]&&(i[a]=o)}switch(r.childNodes&&(i.childNodes=new NodeList),i.ownerDocument=e,i.nodeType){case l:var s=r.attributes,d=i.attributes=new NamedNodeMap,c=s.length;d._ownerElement=i;for(var p=0;p<c;p++)i.setAttributeNode(cloneNode(e,s.item(p),!0));break;case u:n=!0}if(n)for(var h=r.firstChild;h;)i.appendChild(cloneNode(e,h,n)),h=h.nextSibling;return i}(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var r=e.nextSibling;
7r&&r.nodeType==d&&e.nodeType==d?(this.removeChild(r),e.appendData(r.data)):(e.normalize(),e=r)}},isSupported:function(e,r){return this.ownerDocument.implementation.hasFeature(e,r)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var r=this;r;){var n=r._nsMap;if(n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&n[i]===e)return i}r=r.nodeType==u?r.ownerDocument:r.parentNode}return null},lookupNamespaceURI:function(e){for(var r=this;r;){var n=r._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];r=r.nodeType==u?r.ownerDocument:r.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},copy(s,Node),copy(s,Node.prototype),Document.prototype={nodeName:"#document",nodeType:m,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,r){if(e.nodeType==A){for(var n=e.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,r),n=i}return e}return _insertBefore(this,e,r),e.ownerDocument=this,null===this.documentElement&&e.nodeType===l&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),_removeChild(this,e)},replaceChild:function(e,r){_insertBefore(this,e,r,assertPreReplacementValidityInDocument),e.ownerDocument=this,r&&this.removeChild(r),isElementNode(e)&&(this.documentElement=e)},importNode:function(e,r){return function importNode(e,r,n){var i;switch(r.nodeType){case l:(i=r.cloneNode(!1)).ownerDocument=e;case A:break;case u:n=!0}if(i||(i=r.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,n)for(var a=r.firstChild;a;)i.appendChild(importNode(e,a,n)),a=a.nextSibling;return i}(this,e,r)},getElementById:function(e){var r=null;return _visitNode(this.documentElement,function(n){if(n.nodeType==l&&n.getAttribute("id")==e)return r=n,!0}),r},getElementsByClassName:function(e){var r=toOrderedSet(e);return new LiveNodeList(this,function(n){var i=[];return r.length>0&&_visitNode(n.documentElement,function(a){if(a!==n&&a.nodeType===l){var o=a.getAttribute("class");if(o){var s=e===o;if(!s){var u=toOrderedSet(o);s=r.every(function(e){return u&&-1!==u.indexOf(e)})}s&&i.push(a)}}}),i})},createElement:function(e){var r=new Element;return r.ownerDocument=this,r.nodeName=e,r.tagName=e,r.localName=e,r.childNodes=new NodeList,(r.attributes=new NamedNodeMap)._ownerElement=r,r},createDocumentFragment:function(){var e=new DocumentFragment;return e.ownerDocument=this,e.childNodes=new NodeList,e},createTextNode:function(e){var r=new Text;return r.ownerDocument=this,r.appendData(e),r},createComment:function(e){var r=new Comment;return r.ownerDocument=this,r.appendData(e),r},createCDATASection:function(e){var r=new CDATASection;return r.ownerDocument=this,r.appendData(e),r},createProcessingInstruction:function(e,r){var n=new ProcessingInstruction;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=r,n},createAttribute:function(e){var r=new Attr;return r.ownerDocument=this,r.name=e,r.nodeName=e,r.localName=e,r.specified=!0,r},createEntityReference:function(e){var r=new EntityReference;return r.ownerDocument=this,r.nodeName=e,r},createElementNS:function(e,r){var n=new Element,i=r.split(":"),a=n.attributes=new NamedNodeMap;return n.childNodes=new NodeList,n.ownerDocument=this,n.nodeName=r,n.tagName=r,n.namespaceURI=e,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=r,a._ownerElement=n,n},createAttributeNS:function(e,r){var n=new Attr,i=r.split(":");return n.ownerDocument=this,n.nodeName=r,n.name=r,n.namespaceURI=e,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=r,n}},_extends(Document,Node),Element.prototype={nodeType:l,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var r=this.getAttributeNode(e);return r&&r.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,r){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},removeAttribute:function(e){var r=this.getAttributeNode(e);r&&this.removeAttributeNode(r)}
7,appendChild:function(e){return e.nodeType===A?this.insertBefore(e,null):(e.parentNode&&e.parentNode.removeChild(e),e.parentNode=this,e.previousSibling=this.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:this.firstChild=e,this.lastChild=e,_onUpdateChild(this.ownerDocument,this,e),e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,r){var n=this.getAttributeNodeNS(e,r);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,r){return null!=this.getAttributeNodeNS(e,r)},getAttributeNS:function(e,r){var n=this.getAttributeNodeNS(e,r);return n&&n.value||""},setAttributeNS:function(e,r,n){var i=this.ownerDocument.createAttributeNS(e,r);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(e,r){return this.attributes.getNamedItemNS(e,r)},getElementsByTagName:function(e){return new LiveNodeList(this,function(r){var n=[];return _visitNode(r,function(i){i!==r&&i.nodeType==l&&("*"===e||i.tagName==e)&&n.push(i)}),n})},getElementsByTagNameNS:function(e,r){return new LiveNodeList(this,function(n){var i=[];return _visitNode(n,function(a){a!==n&&a.nodeType===l&&("*"===e||a.namespaceURI===e)&&("*"===r||a.localName==r)&&i.push(a)}),i})}},Document.prototype.getElementsByTagName=Element.prototype.getElementsByTagName,Document.prototype.getElementsByTagNameNS=Element.prototype.getElementsByTagNameNS,_extends(Element,Node),Attr.prototype.nodeType=u,_extends(Attr,Node),CharacterData.prototype={data:"",substringData:function(e,r){return this.data.substring(e,e+r)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,r){this.replaceData(e,0,r)},appendChild:function(e){throw Error(E[T])},deleteData:function(e,r){this.replaceData(e,r,"")},replaceData:function(e,r,n){n=this.data.substring(0,e)+n+this.data.substring(e+r),this.nodeValue=this.data=n,this.length=n.length}},_extends(CharacterData,Node),Text.prototype={nodeName:"#text",nodeType:d,splitText:function(e){var r=this.data,n=r.substring(e);r=r.substring(0,e),this.data=this.nodeValue=r,this.length=r.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}},_extends(Text,CharacterData),Comment.prototype={nodeName:"#comment",nodeType:f},_extends(Comment,CharacterData),CDATASection.prototype={nodeName:"#cdata-section",nodeType:c},_extends(CDATASection,CharacterData),DocumentType.prototype.nodeType=y,_extends(DocumentType,Node),Notation.prototype.nodeType=v,_extends(Notation,Node),Entity.prototype.nodeType=h,_extends(Entity,Node),EntityReference.prototype.nodeType=p,_extends(EntityReference,Node),DocumentFragment.prototype.nodeName="#document-fragment",DocumentFragment.prototype.nodeType=A,_extends(DocumentFragment,Node),ProcessingInstruction.prototype.nodeType=g,_extends(ProcessingInstruction,Node),XMLSerializer.prototype.serializeToString=function(e,r,n){return nodeSerializeToString.call(e,r,n)},Node.prototype.toString=nodeSerializeToString;try{Object.defineProperty&&(Object.defineProperty(LiveNodeList.prototype,"length",{get:function(){return _updateLiveList(this),this.$$length}}),Object.defineProperty(Node.prototype,"textContent",{get:function(){return function getTextContent(e){switch(e.nodeType){case l:case A:var r=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&r.push(getTextContent(e)),e=e.nextSibling;return r.join("");default:return e.nodeValue}}(this)},set:function(e){switch(this.nodeType){case l:case A:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),__set__=function(e,r,n){e["$$"+r]=n})}catch(e){}r.DocumentType=DocumentType,r.DOMException=DOMException,r.DOMImplementation=DOMImplementation,r.Element=Element,r.Node=Node,r.NodeList=NodeList,r.XMLSerializer=XMLSerializer},95690:function(e,r,n){"use strict";var i=n(33628).freeze;r.XML_ENTITIES=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),r.HTML_ENTITIES=i({Aacute:"\xc1",aacute:"\xe1",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"А",acy:"а",AElig:"\xc6",aelig:"\xe6",af:"⁡",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"\xc0",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslo
7pe:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"\xc5",aring:"\xe5",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"\xa6",Bscr:"ℬ",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",b
7sime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"⦲",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"\xae",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"\xa9",copy:"\xa9",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"\xb0",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"\xa8",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"\xc9",eacute:"\xe9",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"\xca",ecirc:"\xea",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"\xc8",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18
7:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ä¢",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ä ",gdot:"Ä¡",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"\xbd",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"Ä¥",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"\uD835\uDD25",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"\xcd",iacute:"\xed",ic:"⁣",Icirc:"\xce",icirc:"\xee",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"\xa1",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"\xcc",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"Ä«",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Ä®",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"\xbf",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"Ä©",Iukcy:"І",iukcy:"і",Iuml:"\xcf",iuml:"\xef",Jcirc:"Ä´",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"È·",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"Ä·",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Ð¥",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"\xab",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ä»",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"â©¿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"â
7‹–",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ä¿",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"â§«",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"â©»",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"â«°",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"ℳ",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:"\xa0",Nopf:"ℕ",nopf:"\uD835\uDD5F",Not:"⫬",not:"\xac",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"â
7‹ ",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"\xd3",oacute:"\xf3",oast:"⊛",ocir:"⊚",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"\xd2",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"\xd8",oslash:"\xf8",osol:"⊘",Otilde:"\xd5",otilde:"\xf5",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"\xd6",ouml:"\xf6",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"\uD835\uDD61",pound:"\xa3",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",Qopf:"ℚ",qopf:"\uD835\uDD62",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"\xae",reg:"\xae",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rf
7isht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"\uD835\uDCC7",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"\xad",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",Tab:"	",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickS
7pace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"\xde",thorn:"\xfe",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"\xda",uacute:"\xfa",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"\xa8",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"\xdc",uuml:"\xfc",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"\xdd",yacute:"\xfd",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"\xa5",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"\xff",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"\uD835\uDD37",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"}),r.entityMap=r.HTML_ENTITIES},88207:function(e,r,n){var i=n(40929);i.DOMImplementation,i.XMLSerializer,r.DOMParser=n(37998).DOMParser},55612:function(e,r,n){var i=n(33628).NAMESPACE,a=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,o=RegExp("[\\-\\.0-9"+a.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),s=RegExp("^"+a.source+o.source+"*(?::"+a.source+o.source+"*)?$");function ParseError(e,r){this.message=e,this.locator=r,Error.captureStackTrace&&Error.captureStackTrace(this,ParseError)}function XMLReader(){}function copyLocator(e,r){return r.lineNumber=e.lineNumber,r.columnNumber=e.columnNumber,r}function appendElement(e,r,n){for(var a=e.tagName,o=null,s=e.length;s--;){var l=e[s],u=l.qName,d=l.value,c=u.indexOf(":");if(c>0)var p=l.prefix=u.slice(0,c),h=u.slice(c+1),g="xmlns"===p&&h;else h=u,p=null,g="xmlns"===u&&"";l.localName=h,!1!==g&&(null==o&&(o={},_copy(n,n={})),n[g]=o[g]=d,l.uri=i.XMLNS,r.startPrefixMapping(g,d))}for(var s=e.length;s--;){var p=(l=e[s]).prefix;p&&("xml"===p&&(l.uri=i.XML),"xmlns"!==p&&(l.uri=n[p||""]))}var c=a.indexOf(":");c>0?(p=e.prefix=a.slice(0,c),h=e.localName=a.slice(c+1)):(p=null,h=e.localName=a);var f=e.uri=n[p||""];if(r.startElement(f,h,a,e),!e.closed)return e.currentNSMap=n,e.localNSMap=o,!0;if(r.endElement(f,h,a),o)for(p in o)Object.prototype.hasOwnProperty.call(o,p)&&r.endPrefixMapping(p)}function _copy(e,r){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n])}function ElementAttributes(){this.attributeNames={}}ParseError.prototype=Error(),ParseError.prototype.name=ParseError.name,XMLReader.prototype={parse:function(e,r,n){var a=this.domBuilder;a.startDocument(),_copy(r,r={}),function(e,r,n,a,o){function entityReplacer(e){var r,i=e.slice(1,-1);return Object.hasOwnProperty.call(n,i)?n[i]:"#"!==i.charAt(0)?(o.error("entity n
7ot found:"+e),e):(r=parseInt(i.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((r-=65536)>>10),56320+(1023&r)):String.fromCharCode(r)}function appendText(r){if(r>h){var n=e.substring(h,r).replace(/&#?\w+;/g,entityReplacer);d&&position(h),a.characters(n,0,r-h),h=r}}function position(r,n){for(;r>=l&&(n=u.exec(e));)l=(s=n.index)+n[0].length,d.lineNumber++;d.columnNumber=r-s+1}for(var s=0,l=0,u=/.*(?:\r\n?|\n)|.*$/g,d=a.locator,c=[{currentNSMap:r}],p={},h=0;;){try{var g=e.indexOf("<",h);if(g<0){if(!e.substr(h).match(/^\s*$/)){var f=a.doc,m=f.createTextNode(e.substr(h));f.appendChild(m),a.currentElement=m}return}switch(g>h&&appendText(g),e.charAt(g+1)){case"/":var y=e.indexOf(">",g+3),A=e.substring(g+2,y).replace(/[ \t\n\r]+$/g,""),v=c.pop();y<0?(A=e.substring(g+2).replace(/[\s<].*/,""),o.error("end tag name: "+A+" is not complete:"+v.tagName),y=g+1+A.length):A.match(/\s</)&&(A=A.replace(/[\s<].*/,""),o.error("end tag name: "+A+" maybe not complete"),y=g+1+A.length);var b=v.localNSMap,E=v.tagName==A;if(E||v.tagName&&v.tagName.toLowerCase()==A.toLowerCase()){if(a.endElement(v.uri,v.localName,A),b)for(var T in b)Object.prototype.hasOwnProperty.call(b,T)&&a.endPrefixMapping(T);E||o.fatalError("end tag name: "+A+" is not match the current start tagName:"+v.tagName)}else c.push(v);y++;break;case"?":d&&position(g),y=function(e,r,n){var i=e.indexOf("?>",r);if(i){var a=e.substring(r,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(a)return a[0].length,n.processingInstruction(a[1],a[2]),i+2}return -1}(e,g,a);break;case"!":d&&position(g),y=function(e,r,n,i){if("-"===e.charAt(r+2)){if("-"===e.charAt(r+3)){var a=e.indexOf("-->",r+4);if(a>r)return n.comment(e,r+4,a-r-4),a+3;i.error("Unclosed comment")}}else{if("CDATA["==e.substr(r+3,6)){var a=e.indexOf("]]>",r+9);return n.startCDATA(),n.characters(e,r+9,a-r-9),n.endCDATA(),a+3}var o=function(e,r){var n,i=[],a=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(a.lastIndex=r,a.exec(e);n=a.exec(e);)if(i.push(n),n[1])return i}(e,r),s=o.length;if(s>1&&/!doctype/i.test(o[0][0])){var l=o[1][0],u=!1,d=!1;s>3&&(/^public$/i.test(o[2][0])?(u=o[3][0],d=s>4&&o[4][0]):/^system$/i.test(o[2][0])&&(d=o[3][0]));var c=o[s-1];return n.startDTD(l,u,d),n.endDTD(),c.index+c[0].length}}return -1}(e,g,a,o);break;default:d&&position(g);var D=new ElementAttributes,S=c[c.length-1].currentNSMap,y=function(e,r,n,a,o,s){function addAttribute(e,r,i){n.attributeNames.hasOwnProperty(e)&&s.fatalError("Attribute "+e+" redefined"),n.addValue(e,r.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,o),i)}for(var l,u,d=++r,c=0;;){var p=e.charAt(d);switch(p){case"=":if(1===c)l=e.slice(r,d),c=3;else if(2===c)c=3;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(3===c||1===c){if(1===c&&(s.warning('attribute value must after "="'),l=e.slice(r,d)),r=d+1,(d=e.indexOf(p,r))>0)addAttribute(l,u=e.slice(r,d),r-1),c=5;else throw Error("attribute value no end '"+p+"' match")}else if(4==c)addAttribute(l,u=e.slice(r,d),r),s.warning('attribute "'+l+'" missed start quot('+p+")!!"),r=d+1,c=5;else throw Error('attribute value must after "="');break;case"/":switch(c){case 0:n.setTagName(e.slice(r,d));case 5:case 6:case 7:c=7,n.closed=!0;case 4:case 1:break;case 2:n.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":return s.error("unexpected end of input"),0==c&&n.setTagName(e.slice(r,d)),d;case">":switch(c){case 0:n.setTagName(e.slice(r,d));case 5:case 6:case 7:break;case 4:case 1:"/"===(u=e.slice(r,d)).slice(-1)&&(n.closed=!0,u=u.slice(0,-1));case 2:2===c&&(u=l),4==c?(s.warning('attribute "'+u+'" missed quot(")!'),addAttribute(l,u,r)):(i.isHTML(a[""])&&u.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),addAttribute(u,u,r));break;case 3:throw Error("attribute value missed!!")}return d;case"\x80":p=" ";default:if(p<=" ")switch(c){case 0:n.setTagName(e.slice(r,d)),c=6;break;case 1:l=e.slice(r,d),c=2;break;case 4:var u=e.slice(r,d);s.warning('attribute "'+u+'" missed quot(")!!'),addAttribute(l,u,r);case 5:c=6}else switch(c){case 2:n.tagName,i.isHTML(a[""])&&l.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),addAttribute(l,l,r),r=d,c=1;break;case 5:s.warning('attribute space is required"'+l+'"!!');case 6:c=1,r=d;break;case 3:c=4,r=d;break;case 7:throw Error("elements closed character '/' and '>' must be connected to")}}d++}}(e,g,D,S,entityReplacer,o),C=D.length;if(!D.closed&&function(e,r,n,i){var a=i[n];return null==a&&((a=e.lastIndexOf("</"+n+">"))<r&&(a=e.lastIndexOf("</"+n)),i[n]=a),a<r}(e,y,D.tagName,p)&&(D.closed=!0,n.nbsp||o.warning("unclosed xml attribute")),d&&C){for(var P=copyLocator(d,{}),w=0;w<C;w++){var N=D[w];position(N.offset),N.locator=copyLocator(d,{})}a.locator=P,appendElement(D,a,S)&&c.push(D),a.locator=d}else appendElement(D,a,S)&&c.push(D);
7i.isHTML(D.uri)&&!D.closed?y=function(e,r,n,i,a){if(/^(?:script|textarea)$/i.test(n)){var o=e.indexOf("</"+n+">",r),s=e.substring(r+1,o);if(/[&<]/.test(s))return/^script$/i.test(n)||(s=s.replace(/&#?\w+;/g,i)),a.characters(s,0,s.length),o}return r+1}(e,y,D.tagName,entityReplacer,a):y++}}catch(e){if(e instanceof ParseError)throw e;o.error("element parse error: "+e),y=-1}y>h?h=y:appendText(Math.max(g,h)+1)}}(e,r,n,a,this.errorHandler),a.endDocument()}},ElementAttributes.prototype={setTagName:function(e){if(!s.test(e))throw Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,r,n){if(!s.test(e))throw Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:r,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},r.XMLReader=XMLReader,r.ParseError=ParseError},27092:function(e,r,n){var i,a=void 0!==n.g?n.g:"undefined"!=typeof window?window:{},o=n(25893);"undefined"!=typeof document?i=document:(i=a["__GLOBAL_DOCUMENT_CACHE@4"])||(i=a["__GLOBAL_DOCUMENT_CACHE@4"]=o),e.exports=i},59265:function(e,r,n){var i;i="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},e.exports=i},5069:function(e){e.exports=function(e){if(!e)return!1;var n=r.call(e);return"[object Function]"===n||"function"==typeof e&&"[object RegExp]"!==n||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var r=Object.prototype.toString},51254:function(e,r,n){"use strict";n.d(r,{_b:function(){return Parser}});var i=function(){function Stream(){this.listeners={}}var e=Stream.prototype;return e.on=function(e,r){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(r)},e.off=function(e,r){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(r);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},e.trigger=function(e){var r=this.listeners[e];if(r){if(2==arguments.length)for(var n=r.length,i=0;i<n;++i)r[i].call(this,arguments[1]);else for(var a=Array.prototype.slice.call(arguments,1),o=r.length,s=0;s<o;++s)r[s].apply(this,a)}},e.dispose=function(){this.listeners={}},e.pipe=function(e){this.on("data",function(r){e.push(r)})},Stream}(),a=n(29947),o=n(59265),s=n.n(o),l=n(13432).Buffer;/*! @name m3u8-parser @version 7.2.0 @license Apache-2.0 */let LineStream=class LineStream extends i{constructor(){super(),this.buffer=""}push(e){let r;for(this.buffer+=e,r=this.buffer.indexOf("\n");r>-1;r=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,r)),this.buffer=this.buffer.substring(r+1)}};let parseByterange=function(e){let r=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),n={};return r[1]&&(n.length=parseInt(r[1],10)),r[2]&&(n.offset=parseInt(r[2],10)),n},parseAttributes=function(e){let r;let n={};if(!e)return n;let i=e.split(RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),a=i.length;for(;a--;)""!==i[a]&&((r=/([^=]*)=(.*)/.exec(i[a]).slice(1))[0]=r[0].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^['"](.*)['"]$/g,"$1"),n[r[0]]=r[1]);return n},parseResolution=e=>{let r=e.split("x"),n={};return r[0]&&(n.width=parseInt(r[0],10)),r[1]&&(n.height=parseInt(r[1],10)),n};let ParseStream=class ParseStream extends i{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let r,n;if(0===(e=e.trim()).length)return;if("#"!==e[0]){this.trigger("data",{type:"uri",uri:e});return}let i=this.tagMappers.reduce((r,n)=>{let i=n(e);return i===e?r:r.concat([i])},[e]);i.forEach(e=>{for(let r=0;r<this.customParsers.length;r++)if(this.customParsers[r].call(this,e))return;if(0!==e.indexOf("#EXT")){this.trigger("data",{type:"comment",text:e.slice(1)});return}if(e=e.replace("\r",""),r=/^#EXTM3U/.exec(e)){this.trigger("data",{type:"tag",tagType:"m3u"});return}if(r=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(e)){n={type:"tag",tagType:"inf"},r[1]&&(n.duration=parseFloat(r[1])),r[2]&&(n.title=r[2]),this.trigger("data",n);return}if(r=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(e)){n={type:"tag",tagType:"targetduration"},r[1]&&(n.duration=parseInt(r[1],10)),this.trigger("data",n);return}if(r=/^#EXT-X-VERSION:([0-9.]*)?/.exec(e)){n={type:"tag",tagType:"version"},r[1]&&(n.version=parseInt(r[1],10)),this.trigger("data",n);return}if(r=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(e)){n={type:"tag",tagType:"media-sequence"},r[1]&&(n.number=parseInt(r[1],10)),this.trigger("data",n);return}if(r=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(e)){n={type:"tag",tagType:"discontinuity-sequence"},r[1]&&(n.number=parseInt(r[1],10)),this.trigger("data",n);return}if(r=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(e)){n={type:"tag",tagType:"playlist-type"},r[1]&&(n.playlistType=r[1]),this.trigger("data",n);return}if(r=/^#EXT-X-BYTERANGE:(.*)?$/.exec(e)){n=(0,a.Z)(parseByterange(r[1]),{type:"tag",tagType:"byterange"}),this.trigger("data",n);return}if(r=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(e)){n={type:"tag",tagType:"allow-cache"},r[1]&&(n.allowed=!/NO/.test(r[1])),this.trigger("data",n);return}if(r=/^#EXT-X-MAP:(.*)$/.exec(e)){if(n={type:"tag",tagType:"map"},r[1]){let e=parseAttributes(r[1]);e.URI&&(n.uri=e.URI),e.BYTERANGE&&(n.byterange=parseByterange(e.BYTERANGE))}this.trigger("data",n);return}if(r=/^#EXT-X-STREAM-INF:(.*)$/.exec(e)){n={type:"tag",tagType:"stream-inf"},r[1]&&(n.attributes=parseAttributes(r[1]),n.attributes.RESOLUTION&&(n.attributes.RESOLUTION=parseResolution(n.attributes.RESOLUTION)),n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))),this.trigger("data",n);return}if(r=/^#EXT-X-MEDIA:(.*)$/.exec(e)){n={type:"tag",tagType:"media"},r[1]&&(n.attributes=parseAttributes(r[1])),this.trigger("data",n);return}if(r=/^#EXT-X-ENDLIST/.exec(e)){this.trigger("data",{type:"tag",tagType:"endlist"});return}if(r=/^#EXT-X-DISCONTINUITY/.exec(e)){this.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(r=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(e)){n={type:"tag",tagType:"program-date-time"}
7,r[1]&&(n.dateTimeString=r[1],n.dateTimeObject=new Date(r[1])),this.trigger("data",n);return}if(r=/^#EXT-X-KEY:(.*)$/.exec(e)){n={type:"tag",tagType:"key"},r[1]&&(n.attributes=parseAttributes(r[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),this.trigger("data",n);return}if(r=/^#EXT-X-START:(.*)$/.exec(e)){n={type:"tag",tagType:"start"},r[1]&&(n.attributes=parseAttributes(r[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),this.trigger("data",n);return}if(r=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(e)){n={type:"tag",tagType:"cue-out-cont"},r[1]?n.data=r[1]:n.data="",this.trigger("data",n);return}if(r=/^#EXT-X-CUE-OUT:(.*)?$/.exec(e)){n={type:"tag",tagType:"cue-out"},r[1]?n.data=r[1]:n.data="",this.trigger("data",n);return}if(r=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e)){n={type:"tag",tagType:"cue-in"},r[1]?n.data=r[1]:n.data="",this.trigger("data",n);return}if((r=/^#EXT-X-SKIP:(.*)$/.exec(e))&&r[1]){(n={type:"tag",tagType:"skip"}).attributes=parseAttributes(r[1]),n.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(n.attributes["SKIPPED-SEGMENTS"]=parseInt(n.attributes["SKIPPED-SEGMENTS"],10)),n.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(n.attributes["RECENTLY-REMOVED-DATERANGES"]=n.attributes["RECENTLY-REMOVED-DATERANGES"].split("	")),this.trigger("data",n);return}if((r=/^#EXT-X-PART:(.*)$/.exec(e))&&r[1]){(n={type:"tag",tagType:"part"}).attributes=parseAttributes(r[1]),["DURATION"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["INDEPENDENT","GAP"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))}),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=parseByterange(n.attributes.BYTERANGE)),this.trigger("data",n);return}if((r=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e))&&r[1]){(n={type:"tag",tagType:"server-control"}).attributes=parseAttributes(r[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))}),this.trigger("data",n);return}if((r=/^#EXT-X-PART-INF:(.*)$/.exec(e))&&r[1]){(n={type:"tag",tagType:"part-inf"}).attributes=parseAttributes(r[1]),["PART-TARGET"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),this.trigger("data",n);return}if((r=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e))&&r[1]){(n={type:"tag",tagType:"preload-hint"}).attributes=parseAttributes(r[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(e){if(n.attributes.hasOwnProperty(e)){n.attributes[e]=parseInt(n.attributes[e],10);let r="BYTERANGE-LENGTH"===e?"length":"offset";n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[r]=n.attributes[e],delete n.attributes[e]}}),this.trigger("data",n);return}if((r=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e))&&r[1]){(n={type:"tag",tagType:"rendition-report"}).attributes=parseAttributes(r[1]),["LAST-MSN","LAST-PART"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))}),this.trigger("data",n);return}if((r=/^#EXT-X-DATERANGE:(.*)$/.exec(e))&&r[1]){(n={type:"tag",tagType:"daterange"}).attributes=parseAttributes(r[1]),["ID","CLASS"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=String(n.attributes[e]))}),["START-DATE","END-DATE"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=new Date(n.attributes[e]))}),["DURATION","PLANNED-DURATION"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["END-ON-NEXT"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/i.test(n.attributes[e]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=n.attributes[e].toString(16))});let e=/^X-([A-Z]+-)+[A-Z]+$/;
7for(let r in n.attributes){if(!e.test(r))continue;let i=/[0-9A-Fa-f]{6}/g.test(n.attributes[r]),a=/^\d+(\.\d+)?$/.test(n.attributes[r]);n.attributes[r]=i?n.attributes[r].toString(16):a?parseFloat(n.attributes[r]):String(n.attributes[r])}this.trigger("data",n);return}if(r=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(e)){this.trigger("data",{type:"tag",tagType:"independent-segments"});return}if(r=/^#EXT-X-I-FRAMES-ONLY/.exec(e)){this.trigger("data",{type:"tag",tagType:"i-frames-only"});return}if(r=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(e)){(n={type:"tag",tagType:"content-steering"}).attributes=parseAttributes(r[1]),this.trigger("data",n);return}if(r=/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/.exec(e)){(n={type:"tag",tagType:"i-frame-playlist"}).attributes=parseAttributes(r[1]),n.attributes.URI&&(n.uri=n.attributes.URI),n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes.RESOLUTION&&(n.attributes.RESOLUTION=parseResolution(n.attributes.RESOLUTION)),n.attributes["AVERAGE-BANDWIDTH"]&&(n.attributes["AVERAGE-BANDWIDTH"]=parseInt(n.attributes["AVERAGE-BANDWIDTH"],10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),this.trigger("data",n);return}if(r=/^#EXT-X-DEFINE:(.*)$/.exec(e)){(n={type:"tag",tagType:"define"}).attributes=parseAttributes(r[1]),this.trigger("data",n);return}this.trigger("data",{type:"tag",data:e.slice(4)})})}addParser({expression:e,customType:r,dataParser:n,segment:i}){"function"!=typeof n&&(n=e=>e),this.customParsers.push(a=>{let o=e.exec(a);if(o)return this.trigger("data",{type:"custom",data:n(a),customType:r,segment:i}),!0})}addTagMapper({expression:e,map:r}){this.tagMappers.push(n=>e.test(n)?r(n):n)}};let camelCase=e=>e.toLowerCase().replace(/-(\w)/g,e=>e[1].toUpperCase()),camelCaseKeys=function(e){let r={};return Object.keys(e).forEach(function(n){r[camelCase(n)]=e[n]}),r},setHoldBack=function(e){let{serverControl:r,targetDuration:n,partTargetDuration:i}=e;if(!r)return;let a="#EXT-X-SERVER-CONTROL",o="holdBack",s="partHoldBack",l=n&&3*n,u=i&&2*i;n&&!r.hasOwnProperty(o)&&(r[o]=l,this.trigger("info",{message:`${a} defaulting HOLD-BACK to targetDuration * 3 (${l}).`})),l&&r[o]<l&&(this.trigger("warn",{message:`${a} clamping HOLD-BACK (${r[o]}) to targetDuration * 3 (${l})`}),r[o]=l),i&&!r.hasOwnProperty(s)&&(r[s]=3*i,this.trigger("info",{message:`${a} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${r[s]}).`})),i&&r[s]<u&&(this.trigger("warn",{message:`${a} clamping PART-HOLD-BACK (${r[s]}) to partTargetDuration * 2 (${u}).`}),r[s]=u)};let Parser=class Parser extends i{constructor(e={}){let r,n;super(),this.lineStream=new LineStream,this.parseStream=new ParseStream,this.lineStream.pipe(this.parseStream),this.mainDefinitions=e.mainDefinitions||{},this.params=new URL(e.uri,"https://a.com").searchParams,this.lastProgramDateTime=null;let i=this,o=[],u={},d=!1,noop=function(){},c={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},p=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],iFramePlaylists:[],segments:[]};let h=0,g=0,f={};this.on("end",()=>{!u.uri&&(u.parts||u.preloadHints)&&(!u.map&&r&&(u.map=r),!u.key&&n&&(u.key=n),u.timeline||"number"!=typeof p||(u.timeline=p),this.manifest.preloadSegment=u)}),this.parseStream.on("data",function(e){let m,y;if(i.manifest.definitions){for(let r in i.manifest.definitions)if(e.uri&&(e.uri=e.uri.replace(`{$${r}}`,i.manifest.definitions[r])),e.attributes)for(let n in e.attributes)"string"==typeof e.attributes[n]&&(e.attributes[n]=e.attributes[n].replace(`{$${r}}`,i.manifest.definitions[r]))}({tag(){(({version(){e.version&&(this.manifest.version=e.version)},"allow-cache"(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){let r={};"length"in e&&(u.byterange=r,r.length=e.length,"offset"in e||(e.offset=h)),"offset"in e&&(u.byterange=r,r.offset=e.offset),h=r.offset+r.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.title&&(u.title=e.title),e.duration>0&&(u.duration=e.duration),0===e.duration&&(u.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=o},key(){if(!e.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if("NONE"===e.attributes.METHOD){n=null;return}if(!e.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes};return}if("com.microsoft.playready"===e.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI};return}if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT){if(-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2))){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:function(e){for(var r=s().atob?s().atob(e):l.from(e,"base64").toString("binary"),n=new Uint8Array(r.length),i=0;i<r.length;i++)n[i]=r.charCodeAt(i);return n}(e.attributes.URI.split(",")[1])};return}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(n.iv=e.attributes.IV)},"media-sequence"(){if(!isFinite(e.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number});return}this.manifest.mediaSequence=e.number},"discontinuity-sequence"(){if(!isFinite(e.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number});return}this.manifest.discontinuitySequence=e.number,p=e.number},"playlist-type"(){if(!/VOD|EVENT/.test(e.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist});return}this.manifest.playlistType=e.playlistType},map(){r={}
7,e.uri&&(r.uri=e.uri),e.byterange&&(r.byterange=e.byterange),n&&(r.key=n)},"stream-inf"(){if(this.manifest.playlists=o,this.manifest.mediaGroups=this.manifest.mediaGroups||c,!e.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}u.attributes||(u.attributes={}),(0,a.Z)(u.attributes,e.attributes)},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||c,!(e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}let r=this.manifest.mediaGroups[e.attributes.TYPE];r[e.attributes["GROUP-ID"]]=r[e.attributes["GROUP-ID"]]||{},m=r[e.attributes["GROUP-ID"]],(y={default:/yes/i.test(e.attributes.DEFAULT)}).default?y.autoselect=!0:y.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(y.language=e.attributes.LANGUAGE),e.attributes.URI&&(y.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(y.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(y.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(y.forced=/yes/i.test(e.attributes.FORCED)),m[e.attributes.NAME]=y},discontinuity(){p+=1,u.discontinuity=!0,this.manifest.discontinuityStarts.push(o.length)},"program-date-time"(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),u.dateTimeString=e.dateTimeString,u.dateTimeObject=e.dateTimeObject;let{lastProgramDateTime:r}=this;this.lastProgramDateTime=new Date(e.dateTimeString).getTime(),null===r&&this.manifest.segments.reduceRight((e,r)=>(r.programDateTime=e-1e3*r.duration,r.programDateTime),this.lastProgramDateTime)},targetduration(){if(!isFinite(e.duration)||e.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration});return}this.manifest.targetDuration=e.duration,setHoldBack.call(this,this.manifest)},start(){if(!e.attributes||isNaN(e.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}},"cue-out"(){u.cueOut=e.data},"cue-out-cont"(){u.cueOutCont=e.data},"cue-in"(){u.cueIn=e.data},skip(){this.manifest.skip=camelCaseKeys(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part(){d=!0;let r=this.manifest.segments.length,n=camelCaseKeys(e.attributes);u.parts=u.parts||[],u.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=g),g=n.byterange.offset+n.byterange.length);let i=u.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${i} for segment #${r}`,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((e,r)=>{e.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${r} lacks required attribute(s): LAST-PART`})})},"server-control"(){let r=this.manifest.serverControl=camelCaseKeys(e.attributes);r.hasOwnProperty("canBlockReload")||(r.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),setHoldBack.call(this,this.manifest),r.canSkipDateranges&&!r.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){let r=this.manifest.segments.length,n=camelCaseKeys(e.attributes),i=n.type&&"PART"===n.type;u.preloadHints=u.preloadHints||[],u.preloadHints.push(n),n.byterange&&!n.byterange.hasOwnProperty("offset")&&(n.byterange.offset=i?g:0,i&&(g=n.byterange.offset+n.byterange.length));let a=u.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${a} for segment #${r}`,e.attributes,["TYPE","URI"]),n.type)for(let e=0;e<u.preloadHints.length-1;e++){let i=u.preloadHints[e];i.type&&i.type===n.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${a} for segment #${r} has the same TYPE ${n.type} as preload hint #${e}`})}},"rendition-report"(){let r=camelCaseKeys(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(r);let n=this.manifest.renditionReports.length-1,i=["LAST-MSN","URI"];d&&i.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${n}`,e.attributes,i)},"part-inf"(){this.manifest.partInf=camelCaseKeys(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),setHoldBack.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(camelCaseKeys(e.attributes));let r=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${r}`,e.attributes,["ID","START-DATE"]);let n=this.manifest.dateRanges[r];n.endDate&&n.startDate&&new Date(n.endDate)<new Date(n.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),n.duration&&n.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),n.plannedDuration&&n.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});let i=!!n.endOnNext;if(i&&!n.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT
7=YES attribute must have a CLASS attribute"}),i&&(n.duration||n.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),n.duration&&n.endDate){let e=n.startDate,i=e.getTime()+1e3*n.duration;this.manifest.dateRanges[r].endDate=new Date(i)}if(f[n.id]){for(let e in f[n.id])if(n[e]&&JSON.stringify(f[n.id][e])!==JSON.stringify(n[e])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}let e=this.manifest.dateRanges.findIndex(e=>e.id===n.id);this.manifest.dateRanges[e]=(0,a.Z)(this.manifest.dateRanges[e],n),f[n.id]=(0,a.Z)(f[n.id],n),this.manifest.dateRanges.pop()}else f[n.id]=n},"independent-segments"(){this.manifest.independentSegments=!0},"i-frames-only"(){this.manifest.iFramesOnly=!0,this.requiredCompatibilityversion(this.manifest.version,4)},"content-steering"(){this.manifest.contentSteering=camelCaseKeys(e.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",e.attributes,["SERVER-URI"])},define(){this.manifest.definitions=this.manifest.definitions||{};let addDef=(e,r)=>{if(e in this.manifest.definitions){this.trigger("error",{message:`EXT-X-DEFINE: Duplicate name ${e}`});return}this.manifest.definitions[e]=r};if("QUERYPARAM"in e.attributes){if("NAME"in e.attributes||"IMPORT"in e.attributes){this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});return}let r=this.params.get(e.attributes.QUERYPARAM);if(!r){this.trigger("error",{message:`EXT-X-DEFINE: No query param ${e.attributes.QUERYPARAM}`});return}addDef(e.attributes.QUERYPARAM,decodeURIComponent(r));return}if("NAME"in e.attributes){if("IMPORT"in e.attributes){this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});return}if(!("VALUE"in e.attributes)||"string"!=typeof e.attributes.VALUE){this.trigger("error",{message:`EXT-X-DEFINE: No value for ${e.attributes.NAME}`});return}addDef(e.attributes.NAME,e.attributes.VALUE);return}if("IMPORT"in e.attributes){if(!this.mainDefinitions[e.attributes.IMPORT]){this.trigger("error",{message:`EXT-X-DEFINE: No value ${e.attributes.IMPORT} to import, or IMPORT used on main playlist`});return}addDef(e.attributes.IMPORT,this.mainDefinitions[e.attributes.IMPORT]);return}this.trigger("error",{message:"EXT-X-DEFINE: No attribute"})},"i-frame-playlist"(){this.manifest.iFramePlaylists.push({attributes:e.attributes,uri:e.uri,timeline:p}),this.warnOnMissingAttributes_("#EXT-X-I-FRAME-STREAM-INF",e.attributes,["BANDWIDTH","URI"])}})[e.tagType]||noop).call(i)},uri(){u.uri=e.uri,o.push(u),!this.manifest.targetDuration||"duration"in u||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),u.duration=this.manifest.targetDuration),n&&(u.key=n),u.timeline=p,r&&(u.map=r),g=0,null!==this.lastProgramDateTime&&(u.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=1e3*u.duration),u={}},comment(){},custom(){e.segment?(u.custom=u.custom||{},u.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(i)})}requiredCompatibilityversion(e,r){(e<r||!e)&&this.trigger("warn",{message:`manifest must be at least version ${r}`})}warnOnMissingAttributes_(e,r,n){let i=[];n.forEach(function(e){r.hasOwnProperty(e)||i.push(e)}),i.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${i.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push("\n"),this.manifest.dateRanges.length&&null===this.lastProgramDateTime&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}},4040:function(e,r,n){"use strict";n.d(r,{jp:function(){return addSidxSegmentsToPlaylist$1},mm:function(){return generateSidxKey},Qc:function(){return parse},LG:function(){return parseUTCTiming}});var i=n(52754),a=n(59265),o=n.n(a),forEachMediaGroup=function(e,r,n){r.forEach(function(r){for(var i in e.mediaGroups[r])for(var a in e.mediaGroups[r][i])n(e.mediaGroups[r][i][a],r,i,a)})},s=n(13432).Buffer,l=n(88207);let isObject=e=>!!e&&"object"==typeof e,merge=(...e)=>e.reduce((e,r)=>("object"!=typeof r||Object.keys(r).forEach(n=>{Array.isArray(e[n])&&Array.isArray(r[n])?e[n]=e[n].concat(r[n]):isObject(e[n])&&isObject(r[n])?e[n]=merge(e[n],r[n]):e[n]=r[n]}),e),{}),values=e=>Object.keys(e).map(r=>e[r]),range=(e,r)=>{let n=[];for(let i=e;i<r;i++)n.push(i);return n},flatten=e=>e.reduce((e,r)=>e.concat(r),[]),from=e=>{if(!e.length)return[];let r=[];for(let n=0;n<e.length;n++)r.push(e[n]);return r},findIndexes=(e,r)=>e.reduce((e,n,i)=>(n[r]&&e.push(i),e),[]),union=(e,r)=>values(e.reduce((e,n)=>(n.forEach(n=>{e[r(n)]=n}),e),{}));
7var u={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",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"};let urlTypeToSegment=({baseUrl:e="",source:r="",range:n="",indexRange:a=""})=>{let s={uri:r,resolvedUri:(0,i.Z)(e||"",r)};if(n||a){let e;let r=(n||a).split("-"),i=o().BigInt?o().BigInt(r[0]):parseInt(r[0],10),l=o().BigInt?o().BigInt(r[1]):parseInt(r[1],10);i<Number.MAX_SAFE_INTEGER&&"bigint"==typeof i&&(i=Number(i)),l<Number.MAX_SAFE_INTEGER&&"bigint"==typeof l&&(l=Number(l)),"bigint"==typeof(e="bigint"==typeof l||"bigint"==typeof i?o().BigInt(l)-o().BigInt(i)+o().BigInt(1):l-i+1)&&e<Number.MAX_SAFE_INTEGER&&(e=Number(e)),s.byterange={length:e,offset:i}}return s},byteRangeToString=e=>{let r;return r="bigint"==typeof e.offset||"bigint"==typeof e.length?o().BigInt(e.offset)+o().BigInt(e.length)-o().BigInt(1):e.offset+e.length-1,`${e.offset}-${r}`},parseEndNumber=e=>(e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e))?null:e,d={static(e){let{duration:r,timescale:n=1,sourceDuration:i,periodDuration:a}=e,o=parseEndNumber(e.endNumber),s=r/n;return"number"==typeof o?{start:0,end:o}:"number"==typeof a?{start:0,end:a/s}:{start:0,end:i/s}},dynamic(e){let{NOW:r,clientOffset:n,availabilityStartTime:i,timescale:a=1,duration:o,periodStart:s=0,minimumUpdatePeriod:l=0,timeShiftBufferDepth:u=1/0}=e,d=parseEndNumber(e.endNumber),c=(r+n)/1e3,p=i+s;return{start:Math.max(0,Math.floor((c-p-u)*a/o)),end:"number"==typeof d?d:Math.min(Math.ceil((c+l-p)*a/o),Math.floor((c-p)*a/o))}}},toSegments=e=>r=>{let{duration:n,timescale:i=1,periodStart:a,startNumber:o=1}=e;return{number:o+r,duration:n/i,timeline:a,time:r*n}},parseByDuration=e=>{let{type:r,duration:n,timescale:i=1,periodDuration:a,sourceDuration:o}=e,{start:s,end:l}=d[r](e),u=range(s,l).map(toSegments(e));if("static"===r){let e=u.length-1;u[e].duration=("number"==typeof a?a:o)-n/i*e}return u},segmentsFromBase=e=>{let{baseUrl:r,initialization:n={},sourceDuration:i,indexRange:a="",periodStart:o,presentationTime:s,number:l=0,duration:d}=e;if(!r)throw Error(u.NO_BASE_URL);let c=urlTypeToSegment({baseUrl:r,source:n.sourceURL,range:n.range}),p=urlTypeToSegment({baseUrl:r,source:r,indexRange:a});if(p.map=c,d){let r=parseByDuration(e);r.length&&(p.duration=r[0].duration,p.timeline=r[0].timeline)}else i&&(p.duration=i,p.timeline=o);return p.presentationTime=s||o,p.number=l,[p]},addSidxSegmentsToPlaylist$1=(e,r,n)=>{let i;let a=e.sidx.map?e.sidx.map:null,s=e.sidx.duration,l=e.timeline||0,u=e.sidx.byterange,d=u.offset+u.length,c=r.timescale,p=r.references.filter(e=>1!==e.referenceType),h=[],g=e.endList?"static":"dynamic",f=e.sidx.timeline,m=f,y=e.mediaSequence||0;i="bigint"==typeof r.firstOffset?o().BigInt(d)+r.firstOffset:d+r.firstOffset;for(let e=0;e<p.length;e++){let u;let d=r.references[e],p=d.referencedSize,A=d.subsegmentDuration;u="bigint"==typeof i?i+o().BigInt(p)-o().BigInt(1):i+p-1;let v=`${i}-${u}`,b={baseUrl:n,timescale:c,timeline:l,periodStart:f,presentationTime:m,number:y,duration:A,sourceDuration:s,indexRange:v,type:g},E=segmentsFromBase(b)[0];a&&(E.map=a),h.push(E),"bigint"==typeof i?i+=o().BigInt(p):i+=p,m+=A/c,y++}return e.segments=h,e},c=["AUDIO","SUBTITLES"],p=1/60,getUniqueTimelineStarts=e=>union(e,({timeline:e})=>e).sort((e,r)=>e.timeline>r.timeline?1:-1),findPlaylistWithName=(e,r)=>{for(let n=0;n<e.length;n++)if(e[n].attributes.NAME===r)return e[n];return null},getMediaGroupPlaylists=e=>{let r=[];return forEachMediaGroup(e,c,(e,n,i,a)=>{r=r.concat(e.playlists||[])}),r},updateMediaSequenceForPlaylist=({playlist:e,mediaSequence:r})=>{e.mediaSequence=r,e.segments.forEach((r,n)=>{r.number=e.mediaSequence+n})},updateSequenceNumbers=({oldPlaylists:e,newPlaylists:r,timelineStarts:n})=>{r.forEach(r=>{r.discontinuitySequence=n.findIndex(function({timeline:e}){return e===r.timeline});let i=findPlaylistWithName(e,r.attributes.NAME);if(!i||r.sidx)return;let a=r.segments[0],o=i.segments.findIndex(function(e){return Math.abs(e.presentationTime-a.presentationTime)<p});if(-1===o){updateMediaSequenceForPlaylist({playlist:r,mediaSequence:i.mediaSequence+i.segments.length}),r.segments[0].discontinuity=!0,r.discontinuityStarts.unshift(0),(!i.segments.length&&r.timeline>i.timeline||i.segments.length&&r.timeline>i.segments[i.segments.length-1].timeline)&&r.discontinuitySequence--;return}let s=i.segments[o];s.discontinuity&&!a.discontinuity&&(a.discontinuity=!0,r.discontinuityStarts.unshift(0),r.discontinuitySequence--),updateMediaSequenceForPlaylist({playlist:r,mediaSequence:i.segments[o].number})})},positionManifestOnTimeline=({oldManifest:e,newManifest:r})=>{let n=e.playlists.concat(getMediaGroupPlaylists(e)),i=r.playlists.concat(getMediaGroupPlaylists(r));return r.timelineStarts=getUniqueTimelineStarts([e.timelineStarts,r.timelineStarts]),updateSequenceNumbers({oldPlaylists:n,newPlaylists:i,timelineStarts:r.timelineStarts}),r},generateSidxKey=e=>e&&e.uri+"-"+byteRangeToString(e.byterange),mergeDiscontiguousPlaylists=e=>{let r=e.reduce(function(e,r){return e[r.attributes.baseUrl]||(e[r.attributes.baseUrl]=[]),e[r.attributes.baseUrl].push(r),e},{}),n=[];
7return Object.values(r).forEach(e=>{let r=values(e.reduce((e,r)=>{let n=r.attributes.id+(r.attributes.lang||"");return e[n]?(r.segments&&(r.segments[0]&&(r.segments[0].discontinuity=!0),e[n].segments.push(...r.segments)),r.attributes.contentProtection&&(e[n].attributes.contentProtection=r.attributes.contentProtection)):(e[n]=r,e[n].attributes.timelineStarts=[]),e[n].attributes.timelineStarts.push({start:r.attributes.periodStart,timeline:r.attributes.periodStart}),e},{}));n=n.concat(r)}),n.map(e=>(e.discontinuityStarts=findIndexes(e.segments||[],"discontinuity"),e))},addSidxSegmentsToPlaylist=(e,r)=>{let n=generateSidxKey(e.sidx),i=n&&r[n]&&r[n].sidx;return i&&addSidxSegmentsToPlaylist$1(e,i,e.sidx.resolvedUri),e},addSidxSegmentsToPlaylists=(e,r={})=>{if(!Object.keys(r).length)return e;for(let n in e)e[n]=addSidxSegmentsToPlaylist(e[n],r);return e},formatAudioPlaylist=({attributes:e,segments:r,sidx:n,mediaSequence:i,discontinuitySequence:a,discontinuityStarts:o},s)=>{let l={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuitySequence:a,discontinuityStarts:o,timelineStarts:e.timelineStarts,mediaSequence:i,segments:r};return e.contentProtection&&(l.contentProtection=e.contentProtection),e.serviceLocation&&(l.attributes.serviceLocation=e.serviceLocation),n&&(l.sidx=n),s&&(l.attributes.AUDIO="audio",l.attributes.SUBTITLES="subs"),l},formatVttPlaylist=({attributes:e,segments:r,mediaSequence:n,discontinuityStarts:i,discontinuitySequence:a})=>{void 0===r&&(r=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||"",duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);let o={NAME:e.id,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1};e.codecs&&(o.CODECS=e.codecs);let s={attributes:o,uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:i,discontinuitySequence:a,mediaSequence:n,segments:r};return e.serviceLocation&&(s.attributes.serviceLocation=e.serviceLocation),s},organizeAudioPlaylists=(e,r={},n=!1)=>{let i;let a=e.reduce((e,a)=>{let o=a.attributes.role&&a.attributes.role.value||"",s=a.attributes.lang||"",l=a.attributes.label||"main";if(s&&!a.attributes.label){let e=o?` (${o})`:"";l=`${a.attributes.lang}${e}`}e[l]||(e[l]={language:s,autoselect:!0,default:"main"===o,playlists:[],uri:""});let u=addSidxSegmentsToPlaylist(formatAudioPlaylist(a,n),r);return e[l].playlists.push(u),void 0===i&&"main"===o&&((i=a).default=!0),e},{});if(!i){let e=Object.keys(a)[0];a[e].default=!0}return a},organizeVttPlaylists=(e,r={})=>e.reduce((e,n)=>{let i=n.attributes.label||n.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(addSidxSegmentsToPlaylist(formatVttPlaylist(n),r)),e},{}),organizeCaptionServices=e=>e.reduce((e,r)=>(r&&r.forEach(r=>{let{channel:n,language:i}=r;e[i]={autoselect:!1,default:!1,instreamId:n,language:i},r.hasOwnProperty("aspectRatio")&&(e[i].aspectRatio=r.aspectRatio),r.hasOwnProperty("easyReader")&&(e[i].easyReader=r.easyReader),r.hasOwnProperty("3D")&&(e[i]["3D"]=r["3D"])}),e),{}),formatVideoPlaylist=({attributes:e,segments:r,sidx:n,discontinuityStarts:i})=>{let a={attributes:{NAME:e.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuityStarts:i,timelineStarts:e.timelineStarts,segments:r};return e.frameRate&&(a.attributes["FRAME-RATE"]=e.frameRate),e.contentProtection&&(a.contentProtection=e.contentProtection),e.serviceLocation&&(a.attributes.serviceLocation=e.serviceLocation),n&&(a.sidx=n),a},videoOnly=({attributes:e})=>"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType,audioOnly=({attributes:e})=>"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType,vttOnly=({attributes:e})=>"text/vtt"===e.mimeType||"text"===e.contentType,addMediaSequenceValues=(e,r)=>
7{e.forEach(e=>{e.mediaSequence=0,e.discontinuitySequence=r.findIndex(function({timeline:r}){return r===e.timeline}),e.segments&&e.segments.forEach((e,r)=>{e.number=r})})},flattenMediaGroupPlaylists=e=>e?Object.keys(e).reduce((r,n)=>{let i=e[n];return r.concat(i.playlists)},[]):[],toM3u8=({dashPlaylists:e,locations:r,contentSteering:n,sidxMapping:i={},previousManifest:a,eventStream:o})=>{if(!e.length)return{};let{sourceDuration:s,type:l,suggestedPresentationDelay:u,minimumUpdatePeriod:d}=e[0].attributes,c=mergeDiscontiguousPlaylists(e.filter(videoOnly)).map(formatVideoPlaylist),p=mergeDiscontiguousPlaylists(e.filter(audioOnly)),h=mergeDiscontiguousPlaylists(e.filter(vttOnly)),g=e.map(e=>e.attributes.captionServices).filter(Boolean),f={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:s,playlists:addSidxSegmentsToPlaylists(c,i)};d>=0&&(f.minimumUpdatePeriod=1e3*d),r&&(f.locations=r),n&&(f.contentSteering=n),"dynamic"===l&&(f.suggestedPresentationDelay=u),o&&o.length>0&&(f.eventStream=o);let m=0===f.playlists.length,y=p.length?organizeAudioPlaylists(p,i,m):null,A=h.length?organizeVttPlaylists(h,i):null,v=c.concat(flattenMediaGroupPlaylists(y),flattenMediaGroupPlaylists(A)),b=v.map(({timelineStarts:e})=>e);return(f.timelineStarts=getUniqueTimelineStarts(b),addMediaSequenceValues(v,f.timelineStarts),y&&(f.mediaGroups.AUDIO.audio=y),A&&(f.mediaGroups.SUBTITLES.subs=A),g.length&&(f.mediaGroups["CLOSED-CAPTIONS"].cc=organizeCaptionServices(g)),a)?positionManifestOnTimeline({oldManifest:a,newManifest:f}):f},getLiveRValue=(e,r,n)=>{let{NOW:i,clientOffset:a,availabilityStartTime:o,timescale:s=1,periodStart:l=0,minimumUpdatePeriod:u=0}=e;return Math.ceil((((i+a)/1e3+u-(o+l))*s-r)/n)},parseByTimeline=(e,r)=>{let{type:n,minimumUpdatePeriod:i=0,media:a="",sourceDuration:o,timescale:s=1,startNumber:l=1,periodStart:u}=e,d=[],c=-1;for(let p=0;p<r.length;p++){let h;let g=r[p],f=g.d,m=g.r||0,y=g.t||0;if(c<0&&(c=y),y&&y>c&&(c=y),m<0){let l=p+1;h=l===r.length?"dynamic"===n&&i>0&&a.indexOf("$Number$")>0?getLiveRValue(e,c,f):(o*s-c)/f:(r[l].t-c)/f}else h=m+1;let A=l+d.length+h,v=l+d.length;for(;v<A;)d.push({number:v,duration:f/s,time:c,timeline:u}),c+=f,v++}return d},h=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,identifierReplacement=e=>(r,n,i,a)=>{if("$$"===r)return"$";if(void 0===e[n])return r;let o=""+e[n];return"RepresentationID"===n?o:(a=i?parseInt(a,10):1,o.length>=a)?o:`${Array(a-o.length+1).join("0")}${o}`},constructTemplateUrl=(e,r)=>e.replace(h,identifierReplacement(r)),parseTemplateInfo=(e,r)=>e.duration||r?e.duration?parseByDuration(e):parseByTimeline(e,r):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}],segmentsFromTemplate=(e,r)=>{let n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:a={sourceURL:"",range:""}}
7=e,o=urlTypeToSegment({baseUrl:e.baseUrl,source:constructTemplateUrl(a.sourceURL,n),range:a.range}),s=parseTemplateInfo(e,r);return s.map(r=>{n.Number=r.number,n.Time=r.time;let a=constructTemplateUrl(e.media||"",n),s=e.timescale||1,l=e.presentationTimeOffset||0,u=e.periodStart+(r.time-l)/s,d={uri:a,timeline:r.timeline,duration:r.duration,resolvedUri:(0,i.Z)(e.baseUrl||"",a),map:o,number:r.number,presentationTime:u};return d})},SegmentURLToSegmentObject=(e,r)=>{let{baseUrl:n,initialization:i={}}=e,a=urlTypeToSegment({baseUrl:n,source:i.sourceURL,range:i.range}),o=urlTypeToSegment({baseUrl:n,source:r.media,range:r.mediaRange});return o.map=a,o},segmentsFromList=(e,r)=>{let n;let{duration:i,segmentUrls:a=[],periodStart:o}=e;if(!i&&!r||i&&r)throw Error(u.SEGMENT_TIME_UNSPECIFIED);let s=a.map(r=>SegmentURLToSegmentObject(e,r));i&&(n=parseByDuration(e)),r&&(n=parseByTimeline(e,r));let l=n.map((r,n)=>{if(s[n]){let i=s[n],a=e.timescale||1,l=e.presentationTimeOffset||0;return i.timeline=r.timeline,i.duration=r.duration,i.number=r.number,i.presentationTime=o+(r.time-l)/a,i}}).filter(e=>e);return l},generateSegments=({attributes:e,segmentInfo:r})=>{let n,i;r.template?(i=segmentsFromTemplate,n=merge(e,r.template)):r.base?(i=segmentsFromBase,n=merge(e,r.base)):r.list&&(i=segmentsFromList,n=merge(e,r.list));let a={attributes:e};if(!i)return a;let o=i(n,r.segmentTimeline);if(n.duration){let{duration:e,timescale:r=1}=n;n.duration=e/r}else o.length?n.duration=o.reduce((e,r)=>Math.max(e,Math.ceil(r.duration)),0):n.duration=0;return a.attributes=n,a.segments=o,r.base&&n.indexRange&&(a.sidx=o[0],a.segments=[]),a},toPlaylists=e=>e.map(generateSegments),findChildren=(e,r)=>from(e.childNodes).filter(({tagName:e})=>e===r),getContent=e=>e.textContent.trim(),parseDivisionValue=e=>parseFloat(e.split("/").reduce((e,r)=>e/r)),parseDuration=e=>{let r=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!r)return 0;let[n,i,a,o,s,l]=r.slice(1);return 31536e3*parseFloat(n||0)+2592e3*parseFloat(i||0)+86400*parseFloat(a||0)+3600*parseFloat(o||0)+60*parseFloat(s||0)+parseFloat(l||0)},parseDate=e=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)),g={mediaPresentationDuration:e=>parseDuration(e),availabilityStartTime:e=>parseDate(e)/1e3,minimumUpdatePeriod:e=>parseDuration(e),suggestedPresentationDelay:e=>parseDuration(e),type:e=>e,timeShiftBufferDepth:e=>parseDuration(e),start:e=>parseDuration(e),width:e=>parseInt(e,10),height:e=>parseInt(e,10),bandwidth:e=>parseInt(e,10),frameRate:e=>parseDivisionValue(e),startNumber:e=>parseInt(e,10),timescale:e=>parseInt(e,10),presentationTimeOffset:e=>parseInt(e,10),duration(e){let r=parseInt(e,10);return isNaN(r)?parseDuration(e):r},d:e=>parseInt(e,10),t:e=>parseInt(e,10),r:e=>parseInt(e,10),presentationTime:e=>parseInt(e,10),DEFAULT:e=>e},parseAttributes=e=>e&&e.attributes?from(e.attributes).reduce((e,r)=>{let n=g[r.name]||g.DEFAULT;return e[r.name]=n(r.value),e},{}):{},f={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},buildBaseUrls=(e,r)=>r.length?flatten(e.map(function(e){return r.map(function(r){let n=getContent(r),a=(0,i.Z)(e.baseUrl,n),o=merge(parseAttributes(r),{baseUrl:a});return a!==n&&!o.serviceLocation&&e.serviceLocation&&(o.serviceLocation=e.serviceLocation),o})})):e,getSegmentInformation=e=>{let r=findChildren(e,"SegmentTemplate")[0],n=findChildren(e,"SegmentList")[0],i=n&&findChildren(n,"SegmentURL").map(e=>merge({tag:"SegmentURL"},parseAttributes(e))),a=findChildren(e,"SegmentBase")[0],o=n||r,s=o&&findChildren(o,"SegmentTimeline")[0],l=n||a||r,u=l&&findChildren(l,"Initialization")[0],d=r&&parseAttributes(r);d&&u?d.initialization=u&&parseAttributes(u):d&&d.initialization&&(d.initialization={sourceURL:d.initialization});let c={template:d,segmentTimeline:s&&findChildren(s,"S").map(e=>
7parseAttributes(e)),list:n&&merge(parseAttributes(n),{segmentUrls:i,initialization:parseAttributes(u)}),base:a&&merge(parseAttributes(a),{initialization:parseAttributes(u)})};return Object.keys(c).forEach(e=>{c[e]||delete c[e]}),c},inheritBaseUrls=(e,r,n)=>i=>{let a=findChildren(i,"BaseURL"),o=buildBaseUrls(r,a),s=merge(e,parseAttributes(i)),l=getSegmentInformation(i);return o.map(e=>({segmentInfo:merge(n,l),attributes:merge(s,e)}))},generateKeySystemInformation=e=>e.reduce((e,r)=>{let n=parseAttributes(r);n.schemeIdUri&&(n.schemeIdUri=n.schemeIdUri.toLowerCase());let i=f[n.schemeIdUri];if(i){e[i]={attributes:n};let a=findChildren(r,"cenc:pssh")[0];if(a){let r=getContent(a);e[i].pssh=r&&function(e){for(var r=o().atob?o().atob(e):s.from(e,"base64").toString("binary"),n=new Uint8Array(r.length),i=0;i<r.length;i++)n[i]=r.charCodeAt(i);return n}(r)}}return e},{}),parseCaptionServiceMetadata=e=>{if("urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri){let r="string"!=typeof e.value?[]:e.value.split(";");return r.map(e=>{let r,n;return n=e,/^CC\d=/.test(e)?[r,n]=e.split("="):/^CC\d$/.test(e)&&(r=e),{channel:r,language:n}})}if("urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri){let r="string"!=typeof e.value?[]:e.value.split(";");return r.map(e=>{let r={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){let[n,i=""]=e.split("=");r.channel=n,r.language=e,i.split(",").forEach(e=>{let[n,i]=e.split(":");"lang"===n?r.language=i:"er"===n?r.easyReader=Number(i):"war"===n?r.aspectRatio=Number(i):"3D"===n&&(r["3D"]=Number(i))})}else r.language=e;return r.channel&&(r.channel="SERVICE"+r.channel),r})}},toEventStream=e=>flatten(findChildren(e.node,"EventStream").map(r=>{let n=parseAttributes(r),i=n.schemeIdUri;return findChildren(r,"Event").map(r=>{let a=parseAttributes(r),o=a.presentationTime||0,s=n.timescale||1,l=a.duration||0,u=o/s+e.attributes.start;return{schemeIdUri:i,value:n.value,id:a.id,start:u,end:u+l/s,messageData:getContent(r)||a.messageData,contentEncoding:n.contentEncoding,presentationTimeOffset:n.presentationTimeOffset||0}})})),toRepresentations=(e,r,n)=>i=>{let a=parseAttributes(i),o=buildBaseUrls(r,findChildren(i,"BaseURL")),s=findChildren(i,"Role")[0],l={role:parseAttributes(s)},u=merge(e,a,l),d=findChildren(i,"Accessibility")[0],c=parseCaptionServiceMetadata(parseAttributes(d));c&&(u=merge(u,{captionServices:c}));let p=findChildren(i,"Label")[0];if(p&&p.childNodes.length){let e=p.childNodes[0].nodeValue.trim();u=merge(u,{label:e})}let h=generateKeySystemInformation(findChildren(i,"ContentProtection"));Object.keys(h).length&&(u=merge(u,{contentProtection:h}));let g=getSegmentInformation(i),f=findChildren(i,"Representation"),m=merge(n,g);return flatten(f.map(inheritBaseUrls(u,o,m)))},toAdaptationSets=(e,r)=>(n,i)=>{let a=buildBaseUrls(r,findChildren(n.node,"BaseURL")),o=merge(e,{periodStart:n.attributes.start});"number"==typeof n.attributes.duration&&(o.periodDuration=n.attributes.duration);let s=findChildren(n.node,"AdaptationSet"),l=getSegmentInformation(n.node);return flatten(s.map(toRepresentations(o,a,l)))},generateContentSteeringInformation=(e,r)=>{if(e.length>1&&r({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;let n=merge({serverURL:getContent(e[0])},parseAttributes(e[0]));return n.queryBeforeStart="true"===n.queryBeforeStart,n},getPeriodStart=({attributes:e,priorPeriodAttributes:r,mpdType:n})=>"number"==typeof e.start?e.start:r&&"number"==typeof r.start&&"number"==typeof r.duration?r.start+r.duration:r||"static"!==n?null:0,inheritAttributes=(e,r={})=>{let{manifestUri:n="",NOW:i=Date.now(),clientOffset:a=0,eventHandler:o=function(){}}=r,s=findChildren(e,"Period");if(!s.length)throw Error(u.INVALID_NUMBER_OF_PERIOD);let l=findChildren(e,"Location"),d=parseAttributes(e),c=buildBaseUrls([{baseUrl:n}],findChildren(e,"BaseURL")),p=findChildren(e,"ContentSteering");d.type=d.type||"static",d.sourceDuration=d.mediaPresentationDuration||0,d.NOW=i,d.clientOffset=a,l.length&&(d.locations=l.map(getContent));let h=[];return s.forEach((e,r)=>{let n=parseAttributes(e),i=h[r-1];
7n.start=getPeriodStart({attributes:n,priorPeriodAttributes:i?i.attributes:null,mpdType:d.type}),h.push({node:e,attributes:n})}),{locations:d.locations,contentSteeringInfo:generateContentSteeringInformation(p,o),representationInfo:flatten(h.map(toAdaptationSets(d,c))),eventStream:flatten(h.map(toEventStream))}},stringToMpdXml=e=>{let r,n;if(""===e)throw Error(u.DASH_EMPTY_MANIFEST);let i=new l.DOMParser;try{n=(r=i.parseFromString(e,"application/xml"))&&"MPD"===r.documentElement.tagName?r.documentElement:null}catch(e){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw Error(u.DASH_INVALID_XML);return n},parseUTCTimingScheme=e=>{let r=findChildren(e,"UTCTiming")[0];if(!r)return null;let n=parseAttributes(r);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;default:throw Error(u.UNSUPPORTED_UTC_TIMING_SCHEME)}return n},parse=(e,r={})=>{let n=inheritAttributes(stringToMpdXml(e),r),i=toPlaylists(n.representationInfo);return toM3u8({dashPlaylists:i,locations:n.locations,contentSteering:n.contentSteeringInfo,sidxMapping:r.sidxMapping,previousManifest:r.previousManifest,eventStream:n.eventStream})},parseUTCTiming=e=>parseUTCTimingScheme(stringToMpdXml(e))},94239:function(e,r,n){var i=n(15291).getUint64;e.exports=function(e){var r=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:r.getUint32(4),timescale:r.getUint32(8)},a=12;0===n.version?(n.earliestPresentationTime=r.getUint32(a),n.firstOffset=r.getUint32(a+4),a+=8):(n.earliestPresentationTime=i(e.subarray(a)),n.firstOffset=i(e.subarray(a+8)),a+=16),a+=2;var o=r.getUint16(a);for(a+=2;o>0;a+=12,o--)n.references.push({referenceType:(128&e[a])>>>7,referencedSize:2147483647&r.getUint32(a),subsegmentDuration:r.getUint32(a+4),startsWithSap:!!(128&e[a+8]),sapType:(112&e[a+8])>>>4,sapDeltaTime:268435455&r.getUint32(a+8)});return n}},50023:function(e){var r,n,i,a;r=function(e){return 9e4*e},n=function(e,r){return e*r},i=function(e){return e/9e4},a=function(e,r){return e/r},e.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:r,secondsToAudioTs:n,videoTsToSeconds:i,audioTsToSeconds:a,audioTsToVideoTs:function(e,n){return r(a(e,n))},videoTsToAudioTs:function(e,r){return n(i(e),r)},metadataTsToSeconds:function(e,r,n){return i(n?e:e-r)}}},15291:function(e){e.exports={getUint64:function(e){var r,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(r=n.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(r):r:4294967296*n.getUint32(0)+n.getUint32(4)},MAX_UINT32:4294967296}},28711:function(e){e.exports=function(e,r){var n,i=null;try{n=JSON.parse(e,r)}catch(e){i=e}return[i,n]}},83340:function(e){var r,n,i,a,o;r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,n=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,o={buildAbsoluteURL:function(e,r,i){if(i=i||{},e=e.trim(),!(r=r.trim())){if(!i.alwaysNormalize)return e;var a=o.parseURL(e);if(!a)throw Error("Error trying to parse base URL.");return a.path=o.normalizePath(a.path),o.buildURLFromParts(a)}var s=o.parseURL(r);if(!s)throw Error("Error trying to parse relative URL.");if(s.scheme)return i.alwaysNormalize?(s.path=o.normalizePath(s.path),o.buildURLFromParts(s)):r;var l=o.parseURL(e);if(!l)throw Error("Error trying to parse base URL.");if(!l.netLoc&&l.path&&"/"!==l.path[0]){var u=n.exec(l.path);l.netLoc=u[1],l.path=u[2]}l.netLoc&&!l.path&&(l.path="/");var d={scheme:l.scheme,netLoc:s.netLoc,path:null,params:s.params,query:s.query,fragment:s.fragment};if(!s.netLoc&&(d.netLoc=l.netLoc,"/"!==s.path[0])){if(s.path){var c=l.path,p=c.substring(0,c.lastIndexOf("/")+1)+s.path;d.path=o.normalizePath(p)}else d.path=l.path,s.params||(d.params=l.params,s.query||(d.query=l.query))}return null===d.path&&(d.path=i.alwaysNormalize?o.normalizePath(s.path):s.path),o.buildURLFromParts(d)},parseURL:function(e){var n=r.exec(e);return n?{scheme:n[1]||"",netLoc:n[2]||"",path:n[3]||"",params:n[4]||"",query:n[5]||"",fragment:n[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(i,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=o},5871:function(e,r,n){"use strict";var i,a=n(33196),o=n(59265),s=n.n(o),l=n(27092),u=n.n(l),d="7.5.2",cancelEvent=function(e,r){r.isImmediatePropagationStopped=function(){return!0},r.cancelBubble=!0,r.isPropagationStopped=function(){return!0}},prefixEvent=function(e,r,n){cancelEvent(e,n),e.trigger({type:r+n.type,originalEvent:n})},handlePlaying=function(e,r){e.ads.isInAdMode()&&(e.ads.isContentResuming()?e.ads._contentEnding&&prefixEvent(e,"content",r):prefixEvent(e,"ad",r))},handleEnded=function(e,r){e.ads.isInAdMode()?e.ads.isContentResuming()?(cancelEvent(e,r),e.trigger("resumeended")):prefixEvent(e,"ad",r):e.ads._contentHasEnded||e.ads.stitchedAds()||(prefixEvent(e,"content",r),e.trigger("readyforpostroll"))},handleLoadEvent=function(e,r){if(("loadstart"!==r.type||e.ads._hasThereBeenALoadStartDuringPlayerLife)&&("loadeddata"!==r.type||e.ads._hasThereBeenALoadedData)&&("loadedmetadata"!==r.type||e.ads._hasThereBeenALoadedMetaData)){if
7(e.ads.inAdBreak())prefixEvent(e,"ad",r);else{if(e.currentSrc()!==e.ads.contentSrc)return;prefixEvent(e,"content",r)}}},handlePlay=function(e,r){e.ads.inAdBreak()?prefixEvent(e,"ad",r):e.ads.isContentResuming()&&prefixEvent(e,"content",r)};function redispatch(e){"playing"===e.type?handlePlaying(this,e):"ended"===e.type?handleEnded(this,e):"loadstart"===e.type||"loadeddata"===e.type||"loadedmetadata"===e.type?handleLoadEvent(this,e):"play"===e.type?handlePlay(this,e):this.ads.isInAdMode()&&(this.ads.isContentResuming()?prefixEvent(this,"content",e):prefixEvent(this,"ad",e))}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function _inheritsLoose(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,_setPrototypeOf(e,r)}function _setPrototypeOf(e,r){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e})(e,r)}var c={},proxyTcfApi=function(e){if(a.default.dom.isInFrame()&&"function"!=typeof s().__tcfapi){for(var r,n=s(),i={};n;){try{if(n.frames.__tcfapiLocator){r=n;break}}catch(e){}if(n===s().top)break;n=n.parent}r&&(s().__tcfapi=function(e,n,a,o){var s=Math.random()+"";i[s]=a,r.postMessage({__tcfapiCall:{command:e,parameter:o,version:n,callId:s}},"*")},s().addEventListener("message",function(e){var r={};try{r="string"==typeof e.data?JSON.parse(e.data):e.data}catch(e){}var n=r.__tcfapiReturn;n&&"function"==typeof i[n.callId]&&(i[n.callId](n.returnValue,n.success),i[n.callId]=null)},!1))}},listenToTcf=function(){proxyTcfApi(),"function"==typeof s().__tcfapi&&s().__tcfapi("addEventListener",2,function(e,r){r&&(c=e)})},findUspApiLocatorWindow=function(e){for(var r=e.parent;r!==e.top;){try{if(r.frames&&r.frames.__uspapiLocator)return r}catch(e){}r=r.parent}try{if(e.top.frames&&e.top.frames.__uspapiLocator)return e.top}catch(e){}return null},p="",obtainUsPrivacyString=function(e,r){if(void 0===r&&(r=s()),r.__uspapi)r.__uspapi("getUSPData",1,function(r,n){var i=n?r.uspString:null;p=i,e(i)});else{var n=findUspApiLocatorWindow(r);if(!n){e(null);return}var i=Math.random().toString(36).substring(2);r.addEventListener("message",function handleMessageEvent(n){if(n&&n.data&&n.data.__uspapiReturn&&n.data.__uspapiReturn.callId===i){r.removeEventListener("message",handleMessageEvent,!1);var a=n.data.__uspapiReturn,o=a.returnValue,s=a.success?o.uspString:null;p=s,e(s)}},!1),n.postMessage({__uspapiCall:{command:"getUSPData",version:1,callId:i}},"*")}},h={AdsBeforePrerollError:"ads-before-preroll-error",AdsPrerollError:"ads-preroll-error",AdsMidrollError:"ads-midroll-error",AdsPostrollError:"ads-postroll-error",AdsMacroReplacementFailed:"ads-macro-replacement-failed",AdsResumeContentFailed:"ads-resume-content-failed"},uriEncodeIfNeeded=function(e,r){return r?encodeURIComponent(e):e},customFields=function(e,r,n){if(e&&e[n])for(var i=e[n],a=Object.keys(i),o=0;o<a.length;o++)r["{mediainfo."+n+"."+a[o]+"}"]=i[a[o]]},getMediaInfoMacros=function(e,r){var n={};return["description","tags","reference_id","ad_keys"].forEach(function(i){e&&e[i]?n["{mediainfo."+i+"}"]=e[i]:r["{mediainfo."+i+"}"]?n["{mediainfo."+i+"}"]=r["{mediainfo."+i+"}"]:n["{mediainfo."+i+"}"]=""}),["custom_fields","customFields"].forEach(function(r){customFields(e,n,r)}),n},getDefaultValues=function(e){var r={},n=e.replace(/{([^}=]+)=([^}]*)}/g,function(e,n,i){return r["{"+n+"}"]=i,"{"+n+"}"});return{defaults:r,modifiedString:n}},getTcfMacros=function(e){var r={};return Object.keys(e).forEach(function(n){r["{tcf."+n+"}"]=e[n]}),r["{tcf.gdprAppliesInt}"]=e.gdprApplies?1:0,r},getPageVariableMacros=function(e,r,n){var i=RegExp("{pageVariable\\.([^}]+)}","g"),o={},l=(e.match(i)||[]).concat(Object.keys(n).filter(function(r){return i.test(r)&&e.includes(n[r])}));if(l)return l.forEach(function(e){for(var n,i=e.slice(14,-1),l=i.split("."),u=s(),d=0;d<l.length;d++)if(d===l.length-1)n=u[l[d]];else if(void 0===(u=u[l[d]]))break;var c=typeof n;null===n?o[e]="null":void 0===n?r[e]?o[e]=r[e]:(a.default.log.warn('Page variable "'+i+'" not found'),o[e]=""):"str
7ing"!==c&&"number"!==c&&"boolean"!==c?(a.default.log.warn('Page variable "'+i+'" is not a supported type'),o[e]=""):o[e]=n}),o},replaceMacros=function(e,r,n,i,o){for(var s in void 0===i&&(i={}),r){var l=i.hasOwnProperty(s)?i[s]:s;if(l.startsWith("r:"))try{var u=RegExp(l.slice(2),"g");e=e.replace(u,uriEncodeIfNeeded(r[s],n))}catch(e){o.ads.error({errorType:h.AdsMacroReplacementFailed,macro:s,error:e}),a.default.log.warn('Unable to replace macro with regex "'+l+'". The provided regex may be invalid.')}else e=e.split(l).join(uriEncodeIfNeeded(r[s],n))}return e};function adMacroReplacement(e,r,n){void 0===r&&(r=!1),void 0===n&&(n={});var i,o=n.disableDefaultMacros||!1,l=n.macroNameOverrides||{};delete n.disableDefaultMacros,delete n.macroNameOverrides;var d=n;if(o)return replaceMacros(e,d,r,l);var h=getDefaultValues(e),g=h.defaults;for(var f in e=h.modifiedString,_extends(d,(i=this,{"{player.id}":i.options_["data-player"]||i.id_,"{player.height}":i.currentHeight(),"{player.width}":i.currentWidth(),"{player.heightInt}":Math.round(i.currentHeight()),"{player.widthInt}":Math.round(i.currentWidth()),"{player.autoplay}":i.autoplay()?1:0,"{player.muted}":i.muted()?1:0,"{player.language}":i.language()||"","{mediainfo.id}":i.mediainfo?i.mediainfo.id:"","{mediainfo.name}":i.mediainfo?i.mediainfo.name:"","{mediainfo.duration}":i.mediainfo?i.mediainfo.duration:"","{player.duration}":i.duration(),"{player.durationInt}":Math.round(i.duration()),"{player.live}":i.duration()===1/0?1:0,"{player.pageUrl}":a.default.dom.isInFrame()?u().referrer:s().location.href,"{playlistinfo.id}":i.playlistinfo?i.playlistinfo.id:"","{playlistinfo.name}":i.playlistinfo?i.playlistinfo.name:"","{timestamp}":new Date().getTime(),"{document.referrer}":u().referrer,"{window.location.href}":s().location.href,"{random}":Math.floor(1e12*Math.random())}),getMediaInfoMacros(this.mediainfo,g),getTcfMacros(c),{"{usp.uspString}":p},getPageVariableMacros(e,g,l)),e=replaceMacros(e,d,r,l,this),g)e=e.replace(f,g[f]);return e}var g={};g.processMetadataTracks=function(e,r){for(var n=e.textTracks(),setModeAndProcess=function(n){"metadata"===n.kind&&(e.ads.cueTextTracks.setMetadataTrackMode(n),r(e,n))},i=0;i<n.length;i++)setModeAndProcess(n[i]);n.addEventListener("addtrack",function(e){setModeAndProcess(e.track)})},g.setMetadataTrackMode=function(e){},g.getSupportedAdCue=function(e,r){return r},g.isSupportedAdCue=function(e,r){return!0},g.getCueId=function(e,r){return r.id};var setCueAlreadySeen=function(e,r){void 0!==r&&""!==r&&(e.ads.includedCues[r]=!0)};function cancelContentPlay(){!1!==this.ads._shouldBlockPlay&&(this.paused()||(this.ads.debug("Playback was canceled by cancelContentPlay"),this.pause()),this.ads._cancelledPlay=!0)}g.processAdTrack=function(e,r,n,i){e.ads.includedCues={};for(var o=0;o<r.length;o++){var s=r[o],l=this.getSupportedAdCue(e,s);if(!this.isSupportedAdCue(e,s)){a.default.log.warn("Skipping as this is not a supported ad cue.",s);return}var u=this.getCueId(e,s),d=s.startTime;if(void 0!==u&&e.ads.includedCues[u]){a.default.log("Skipping ad already seen with ID "+u);return}i&&i(e,l,u,d),n(e,l,u,d),setCueAlreadySeen(e,u)}};var f={},m=a.default;f.isMiddlewareMediatorSupported=function(){if(m.browser.IS_IOS||m.browser.IS_ANDROID);else if(m.use&&m.middleware&&m.middleware.TERMINATOR)return!0;return!1},f.playMiddleware=function(e){return{setSource:function(e,r){r(null,e)},callPlay:function(){if(e.ads&&!0===e.ads._shouldBlockPlay)return e.ads.debug("Using playMiddleware to block content playback"),e.ads._playBlocked=!0,m.middleware.TERMINATOR},play:function(r,n){e.ads&&e.ads._playBlocked&&r?(e.ads.debug("Play call to Tech was terminated."),e.trigger("play"),e.addClass("vjs-has-started"),e.ads._playBlocked=!1):n&&n.catch&&n.catch(function(r){"NotAllowedError"!==r.name||a.default.browser.IS_SAFARI||e.trigger("pause")})}}},f.testHook=function(e){m=e};var y=f.playMiddleware,A=f.isMiddlewareMediatorSupported,v={src:"data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAAAxJtZGF03ABMYXZjNjEuMy4xMDAAQiAIwRg4AAACrgYF//+q3EXpvebZSLeWLNgg2SPu73gyNjQgLSBjb3JlIDE2NCByMzEwOCAzMWUxOWY5IC0gSC4yNjQvTVBFRy00IEFWQyBjb2RlYyAtIENvcHlsZWZ0IDIwMDMtMjAyMyAtIGh0dHA6Ly93d3cudmlkZW9sYW4ub3JnL3gyNjQuaHRtbCAtIG9wdGlvbnM6IGNhYmFjPTEgcmVmPTMgZGVibG9jaz0xOjA6MCBhbmFseXNlPTB4MzoweDExMyBtZT1oZXggc3VibWU9NyBwc3k9MSBwc3lfcmQ9MS4wMDowLjAwIG1peGVkX3JlZj0xIG1lX3JhbmdlPTE2IGNocm9tYV9tZT0xIHRyZWxsaXM9MSA4eDhkY3Q9MSBjcW09MCBkZWFkem9uZT0yMSwxMSBmYXN0X3Bza2lwPTEgY2hyb21hX3FwX29mZnNldD0tMiB0aHJlYWRzPTcgbG9va2FoZWFkX3RocmVhZHM9MSBzbGljZWRfdGhyZWFkcz0wIG5yPTAgZGVjaW1hdGU9MSBpbnRlcmxhY2VkPTAgYmx1cmF5X2NvbXBhdD0wIGNvbnN0cmFpbmVkX2ludHJhPTAgYmZyYW1lcz0zIGJfcHlyYW1pZD0yIGJfYWRhcHQ9MSBiX2JpYXM9MCBkaXJlY3Q9MSB3ZWlnaHRiPTEgb3Blbl9nb3A9MCB3ZWlnaHRwPTIga2V5aW50PTI1MCBrZXlpbnRfbWluPTI1IHNjZW5lY3V0PTQwIGludHJhX3JlZnJlc2g9MCByY19sb29rYWhlYWQ9NDAgcmM9Y3JmIG1idHJlZT0xIGNyZj0yMy4wIHFjb21wPTAuNjAgcXBtaW49MCBxcG1heD02OSBxcHN0ZXA9NCBpcF9yYXRpbz0xLjQwIGFxPTE6MS4wMACAAAAAOWWIhAAn//71sXwKaunqigzoMi7hlyTJrrYi4m0AwABFxzcqWKGahTaoBcQAAMWK4AlcFlIICBeldSEQBGCMHAAABVNtb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAAIgABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAACQXRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAIgAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAABQAAAAPAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAACIAAAAAAAEAAAAAAbltZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAADwAAAACAFXEAAAAAAAtaGRscgAAAAAAAAAAdmlkZQAAAAAAAAAAAAAAAFZpZGVvSGFuZGxlcgAAAAFkbWluZgAAABR2bWhkAAAAAQAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAABJHN0YmwAAADAc3RzZAAAAAAAAAABAAAAsGF2YzEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAABQADwAEgAAABIAAAAAAAAAAEUTGF2YzYxLjMuMTAwIGxpYngyNjQAAAAAAAAAAAAAAAAY//8AAAA2YXZjQwFkAA3/4QAZZ2QADazZQUH7ARAAAAMAEAAAAwPA8UKZYAEABmjr48siwP34+AAAAAAQcGFzcAAAAAEAAAABAAAAFGJ0cnQAAAAAAALAEAACwBAAAAAYc3R0cwAAAAAAAAABAAAAAQAAAgAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAEAAAABAAAAFHN0c3oAAAAAAAAC7wAAAAEAAAAUc3RjbwAAAAAAAAABAAAARQAAAj10cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAACAAAAAAAAABgAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAAXAAAEAAABAAAAAAG1bWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAACsRAAACABVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAABYG1pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAABJHN0YmwAAAB+c3RzZAAAAAAAAAABAAAAbm1wNGEAAAAAAAAAAQAAAAAAAAAAAAIAEAAAAACsRAAAAAAANmVzZHMAAAAAA4CAgCUAAgAEgICAF0AVAAAAAAH0AAAAEisFgICABRIQVuUABoCAgAECAAAAFGJ0cnQAAAAAAAH0AAAAEisAAAAYc3R0cwAAAAAAAAABAAAAAgAABAAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAEAAAABAAAAHHN0c3oAAAAAAAAAAAAAAAIAAAAVAAAABgAAABhzdGNvAAAAAAAAAAIAAAAwAAADNAAAABpzZ3BkAQAAAHJvbGwAAAACAAAAAf//AAAAHHNiZ3AAAAAAcm9sbAAAAAEAAAACAAAAAQAAAGF1ZHRhAAAAWW1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAALGlsc3QAAAAkqXRvbwAAABxkYXRhAAAAAQAAAABMYXZmNjEuMS4xMDA=",type:"video/mp4"},b=function(){function States(){}return States.getState=function(e){if(e&&States.states_&&States.states_[e])return States.states_[e]},States.registerState=function(e,r){if("string"!=typeof e||!e)throw Error('Illegal state name, "'+e+'"; must be a non-empty string.');return States.states_||(States.states_={}),States.states_[e]=r,r},States}(),E=function(){function State(e){this.player=e}State._getName=function(){return"Anonymous State"};var e=State.prototype;return e.transitionTo=function(e){var r=this.player;this.cleanup(r);var n=new e(r);r.ads._state=n,r.ads.debug(this.constructor._getName()+" -> "+n.constructor._getName());for(var i=arguments.length,a=Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];n.init.apply(n,[r].concat(a))},e.init=function(){},e.cleanup=function(){},e.onPlay=function(){},e.onPlaying=function(){},e.onEnded=function(){},e.onAdEnded=function(){},e.onAdsReady=function(){a.default.log.warn("Unexpected adsready event")},e.onAdsError=function(){},e.onAdsCanceled=function(){},e.onAdTimeout=function(){},e.onAdStarted=function(){},e.onAdSkipped=function(){},e.onContentChanged=function(){},e.onContentResumed=function(){},e.onReadyForPostroll=function(){a.default.log.warn("Unexpected readyforpostroll event")},e.onNoPreroll=function(){},e.onNoPostroll=function(){},e.startLinearAdMode=function(){a.default.log.warn("Unexpected startLinearAdMode invocation (State via "+this.constructor._getName()+")")},e.endLinearAdMode=function(){a.default.log.warn("Unexpected endLinearAdMode invocation (State via "+this.constructor._getName()+")")},e.skipLinearAdMode=function(){a.default.log.warn("Unexpected skipLinearAdMode invocation (State via "+this.constructor._getName()+")")},e.isAdState=function(){throw Error("isAdState unimplemented for "+this.constructor._getName())},e.isWaitingForAdBreak=function(){return!1},e.isContentResuming=function(){return!1},e.inAdBreak=function(){return!1},e.handleEvent=function(e){var r=this.player;"play"===e?this.onPlay(r):"adsready"===e?this.onAdsReady(r):"adserror"===e?this.onAdsError(r):"adscanceled"===e?this.onAdsCanceled(r):"adtimeout"===e?this.onAdTimeout(r):"ads-ad-started"===e?this.onAdStarted(r):"ads-ad-skipped"===e?this.onAdSkipped(r):"contentchanged"===e?this.onContentChanged(r):"contentresumed"===e?this.onContentResumed(r):"readyforpostroll"===e?this.onReadyForPostroll(r):"playing"===e?this.onPlaying(r):"ended"===e?this.onEnded(r):"nopreroll"===e?this.onNoPreroll(r):"nopostroll"===e?this.onNoPostroll(r):"adended"===e&&this.onAdEnded(r)},State}();b.registerState("State",E);var T=function(e){function AdState(r){var n;return(n=e.call(this,r)||this).contentResuming=!1,n.waitingForAdBreak=!1,n}_inheritsLoose(AdState,e);var r=AdState.prototype;return r.isAdState=function(){return!0},r.onPlaying=function(){var e=b.getState("ContentPlayback");this.contentResuming&&this.transitionTo(e)},r.onContentResumed=function(){var e=b.getState("ContentPlayback");this.contentResuming&&this.transitionTo(e)},r.isWaitingForAdBreak=function(){return this.waitingForAdBreak},r.isContentResuming=function(){return this.contentResuming},r.inAdBreak=function(){return!0===this.player.ads._inLinearAdMode},AdState}(E);b.registerState("AdState",T);var D=function(e){function ContentState(){return e.apply(this,arguments)||this}_inheritsLoose(ContentState,e);var r=ContentState.prototype;return r.isAdState=function(){return!1},r.onContentChanged=function(e){var r=b.getState("BeforePreroll"),n=b.getState("Preroll");e.ads.debug("Received contentchanged event (ContentState)"),e.paused()?this.transitionTo(r):(this.transitionTo(n,!1),e.pause(),e.ads._pausedOnContentupdate=!0)},ContentState}(E);b.registerState("ContentState",D);var S=function(e){function AdsDone(){return e.apply(this,arguments)||this}_inheritsLoose(AdsDone,e),AdsDone._getName=function(){return"AdsDone"};var r=AdsDone.prototype;return r.init=function(e){e.ads._contentHasEnded=!0,e.trigger("ended")},r.startLinearAdMode=function(){a.default.log.warn("Unexpected startLinearAdMode invocation (AdsDone)")},AdsDone}(b.getState("ContentState"));b.registerState("AdsDone",S);var C={start:function(e){e.ads.debug("Starting ad break"),e.ads._inLinearAdMode=!0,e.trigger("adstart"),e.ads.shouldTakeSnapshots()&&(e.ads.snapshot=function(e){r=a.default.browser.IS_IOS&&e.ads.isLive(e)&&e.seekable().length>0?e.currentTime()-e.seekable().end(0):e.currentTime();var r,n=e.$(".vjs-tech"),i=e.textTracks?e.textTracks():[],o=[],s={ended:e.ended(),currentSrc:e.currentSrc(),sources:e.currentSources(),src:e.tech_.src(),currentTime:r,type:e.currentType()};n&&(s.style=n.getAttribute("style"));for(var l=0;l<i.length;l++){var u=i[l];o.push({track:u,mode:u.mode}),u.mode="disabled"}return s.suppressedTracks=o,s}(e)),e.ads.shouldPlayContentBehindAd(e)&&!e.ads.settings.stitchedAds&&(e.ads.preAdVolume_=e.volume(),e.volume(0)),e.addClass("vjs-ad-playing"),e.hasClass("vjs-live")&&e.removeClass("vjs-live"),e.ads.removeNativePoster(),e.ads.preAdPlaybackRate_=e.playbackRate(),e.playbackRate(1),e.controlBar&&e.controlBar.playbackRateMenuButton&&e.controlBar.playbackRateMenuButton.playbackRateSupported&&!e.controlBar.playbackRateMenuButton.hasClass("vjs-hidden")?(e.controlBar.playbackRateMenuButton.hide(),e.ads.showPlaybackMenuOnAdEnd_=!0):e.ads.showPlaybackMenuOnAdEnd_=!1},end:function(e,r){e.ads.debug("Ending ad break"),void 0===r&&(r=function(){}),e.ads.adType=null,e.ads._inLinearAdMode=!1,e.trigger("adend"),e.removeClass("vjs-ad-playing"),e.ads.isLive(e)&&e.addClass("vjs-live"),e.ads.shouldTakeSnapshots()?function(e,r){var n,o=e.ads.snapshot;if(void 0===r&&(r=function(){}),!0===e.ads.disableNextSnapshotRestore){e.ads.disableNextSnapshotRestore=!1,delete e.ads.snapshot,r();return}var s=e.$(".vjs-tech"),l=20,u=o.suppressedTracks,restoreTracks=function(){for(var e=0;e<u.length;e++)(n=u[e]).track.mode=n.mode},resume=function(){var r;if(a.default.browser.IS_IOS&&e.ads.isLive(e)){if(o.currentTime<0&&(r=e.seekable().length>0?e.seekable().end(0)+o.currentTime:e.currentTime(),e.currentTime(r)),e.paused()){var n=e.play();n&&n.catch&&n.catch(function(e){a.default.log.warn("Play promise rejected in IOS snapshot resume",e)})}}else if(o.ended)e.currentTime(e.duration());else{e.currentTime(o.currentTime);var i=e.play();i&&i.catch&&i.catch(function(e){a.default.log.warn("Play promise rejected in snapshot resume",e)})}e.ads.shouldRemoveAutoplay_&&(e.autoplay(!1),e.ads.shouldRemoveAutoplay_=!1)},tryToResume=function tryToResume(){if(e.off("contentcanplay",tryToResume),i&&e.clearTimeout(i),(s=e.el().querySelector(".vjs-tech")).readyState>1||void 0===s.seekable||s.seekable.length>0)return resume();if(l--)e.setTimeout(tryToResume,50);else try{resume()}catch(r){e.ads.error({errorType:h.AdsResumeContentFailed,error:r}),a.default.log.warn("Failed to resume the content after an advertisement",r)}};if("style"in o&&s.setAttribute("style",o.style||""),e.ads.videoElementRecycled())e.one("resumeended",function(){delete e.ads.snapshot,r()}),e.one("contentloadedmetadata",restoreTracks),a.default.browser.IS_IOS&&!e.autoplay()&&"function"==typeof e.techCall_&&(e.techCall_("setAutoplay",!0),e.ads.shouldRemoveAutoplay_=!0),e.src(o.sources),e.one("contentcanplay",tryToResume),i=e.setTimeout(tryToResume,2e3);else{if(restoreTracks(),!e.ended()){var d=e.play();d&&d.catch&&d.catch(function(e){a.default.log.warn("Play promise rejected in snapshot restore",e)})}delete e.ads.snapshot,r()}}(e,r):(e.ads.preAdVolume_&&e.volume(e.ads.preAdVolume_),r()),e.playbackRate(e.ads.preAdPlaybackRate_),e.ads.showPlaybackMenuOnAdEnd_&&e.controlBar.playbackRateMenuButton.show()}},P=function(e){function Preroll(){return e.apply(this,arguments)||this}_inheritsLoose(Preroll,e),Preroll._getName=function(){return"Preroll"};var r=Preroll.prototype;return r.init=function(e,r,n){if(this.waitingForAdBreak=!0,e.addClass("vjs-ad-loading"),n||e.ads.nopreroll_)return this.resumeAfterNoPreroll(e);var i=e.ads.settings.timeout;"number"==typeof e.ads.settings.prerollTimeout&&(i=e.ads.settings.prerollTimeout),this._timeout=e.setTimeout(function(){e.trigger("adtimeout")},i),r?this.handleAdsReady():this.adsReady=!1},r.onAdsReady=function(e){e.ads.inAdBreak()?a.default.log.warn("Unexpected adsready event (Preroll)"):(e.ads.debug("Received adsready event (Preroll)"),this.handleAdsReady())},r.handleAdsReady=function(){this.adsReady=!0,this.readyForPreroll()},r.afterLoadStart=function(e){var r=this.player;r.ads._hasThereBeenALoadStartDuringPlayerLife?e():(r.ads.debug("Waiting for loadstart..."),r.one("loadstart",function(){r.ads.debug("Received loadstart event"),e()}))},r.noPreroll=function(){var e=this;this.afterLoadStart(function(){e.player.ads.debug("Skipping prerolls due to nopreroll event (Preroll)"),e.resumeAfterNoPreroll(e.player)})},r.readyForPreroll=function(){var e=this.player;this.afterLoadStart(function(){e.ads.debug("Triggered readyforpreroll event (Preroll)"),e.trigger("readyforpreroll")})},r.onAdsCanceled=function(e){var r=this;e.ads.debug("adscanceled (Preroll)"),this.afterLoadStart(function(){r.resumeAfterNoPreroll(e)})},r.onAdsError=function(e){var r=this;a.default.log("adserror (Preroll)"),e.ads.error({errorType:h.AdsPrerollError}),this.inAdBreak()?e.ads.endLinearAdMode():this.afterLoadStart(function(){r.resumeAfterNoPreroll(e)})},r.startLinearAdMode=function(){var e=this.player;!this.adsReady||e.ads.inAdBreak()||this.isContentResuming()?a.default.log.warn("Unexpected startLinearAdMode invocation (Preroll)"):(this.clearTimeout(e),e.ads.adTy
vendor: 6,348 bytes, line 7
7pe="preroll",this.waitingForAdBreak=!1,C.start(e),e.ads._shouldBlockPlay=!1)},r.onAdStarted=function(e){e.removeClass("vjs-ad-loading")},r.endLinearAdMode=function(){var e=this.player;this.inAdBreak()&&(e.removeClass("vjs-ad-loading"),e.addClass("vjs-ad-content-resuming"),this.contentResuming=!0,C.end(e))},r.skipLinearAdMode=function(){var e=this,r=this.player;r.ads.inAdBreak()||this.isContentResuming()?a.default.log.warn("Unexpected skipLinearAdMode invocation"):this.afterLoadStart(function(){r.trigger("adskip"),r.ads.debug("skipLinearAdMode (Preroll)"),e.resumeAfterNoPreroll(r)})},r.onAdTimeout=function(e){var r=this;this.afterLoadStart(function(){e.ads.debug("adtimeout (Preroll)"),r.resumeAfterNoPreroll(e)})},r.onNoPreroll=function(e){e.ads.inAdBreak()||this.isContentResuming()?a.default.log.warn("Unexpected nopreroll event (Preroll)"):this.noPreroll()},r.resumeAfterNoPreroll=function(e){if(this.contentResuming=!0,e.ads._shouldBlockPlay=!1,this.cleanupPartial(e),e.ads._playRequested||e.ads._pausedOnContentupdate){if(e.paused()){e.ads.debug("resumeAfterNoPreroll: attempting to resume playback (Preroll)");var r=e.play();r&&r.then&&r.then(null,function(e){})}else e.ads.debug("resumeAfterNoPreroll: already playing (Preroll)"),e.trigger("play"),e.trigger("playing")}},r.cleanup=function(e){e.ads._hasThereBeenALoadStartDuringPlayerLife||a.default.log.warn("Leaving Preroll state before loadstart event can cause issues."),this.cleanupPartial(e)},r.cleanupPartial=function(e){e.removeClass("vjs-ad-loading"),e.removeClass("vjs-ad-content-resuming"),this.clearTimeout(e)},r.clearTimeout=function(e){e.clearTimeout(this._timeout),this._timeout=null},Preroll}(b.getState("AdState"));b.registerState("Preroll",P);var w=function(e){function BeforePreroll(){return e.apply(this,arguments)||this}_inheritsLoose(BeforePreroll,e),BeforePreroll._getName=function(){return"BeforePreroll"};var r=BeforePreroll.prototype;return r.init=function(e){this.adsReady=!1,this.shouldResumeToContent=!1,e.ads._shouldBlockPlay=!e.ads.settings.allowVjsAutoplay||!e.autoplay()},r.onAdsReady=function(e){e.ads.debug("Received adsready event (BeforePreroll)"),this.adsReady=!0},r.onPlay=function(e){var r=b.getState("Preroll");e.ads.debug("Received play event (BeforePreroll)"),this.transitionTo(r,this.adsReady,this.shouldResumeToContent)},r.onAdsCanceled=function(e){e.ads.debug("adscanceled (BeforePreroll)"),this.shouldResumeToContent=!0},r.onAdsError=function(){this.player.ads.debug("adserror (BeforePreroll)"),this.player.ads.error({errorType:h.AdsBeforePrerollError}),this.shouldResumeToContent=!0},r.onNoPreroll=function(){this.player.ads.debug("Skipping prerolls due to nopreroll event (BeforePreroll)"),this.shouldResumeToContent=!0},r.skipLinearAdMode=function(){var e=this.player;e.trigger("adskip"),e.ads.debug("skipLinearAdMode (BeforePreroll)"),this.shouldResumeToContent=!0},r.onContentChanged=function(){this.init(this.player)},BeforePreroll}(b.getState("ContentState"));b.registerState("BeforePreroll",w);var N=function(e){function Midroll(){return e.apply(this,arguments)||this}_inheritsLoose(Midroll,e),Midroll._getName=function(){return"Midroll"};var r=Midroll.prototype;return r.init=function(e){e.ads.adType="midroll",C.start(e),e.addClass("vjs-ad-loading")},r.onAdStarted=function(e){e.removeClass("vjs-ad-loading")},r.endLinearAdMode=function(){var e=this.player;this.inAdBreak()&&(this.contentResuming=!0,e.addClass("vjs-ad-content-resuming"),e.removeClass("vjs-ad-loading"),C.end(e))},r.onAdsError=function(e){e.ads.error({errorType:h.AdsMidrollError}),this.inAdBreak()&&e.ads.endLinearAdMode()},r.cleanup=function(e){e.removeClass("vjs-ad-loading"),e.removeClass("vjs-ad-content-resuming")},Midroll}(b.getState("AdState"));b.registerState("Midroll",N);var I=function(e){function Postroll(){return e.apply(this,arguments)||this}_inheritsLoose(Postroll,e),Postroll._getName=function(){return"Postroll"};var r=Postroll.prototype;return r.init=function(e){if(this.waitingForAdBreak=!0,e.ads._contentEnding=!0,e.ads.nopostroll_){this.resumeContent(e);var r=b.getState("AdsDone");this.transitionTo(r)}else{e.addClass("vjs-ad-loading");var n=e.ads.settings.timeout;"number"==typeof e.ads.settings.postrollTimeout&&(n=e.ads.settings.postrollTimeout),this._postrollTimeout=e.setTimeout(function(){e.trigger("adtimeout")},n)}},r.startLinearAdMode=function(){var e=this.player;e.ads.inAdBreak()||this.isContentResuming()?a.default.log.warn("Unexpected startLinearAdMode invocation (Postroll)"):(e.ads.adType="postroll",e.clearTimeout(this._postrollTimeout),this.waitingForAdBreak=!1,C.start(e))},r.onAdStarted=function(e){e.removeClass("vjs-ad-loading")},r.endLinearAdMode=function(){var e=this,r=this.player,n=b.getState("AdsDone");this.inAdBreak()&&(r.removeClass("vjs-ad-loading"),this.resumeContent(r),C.end(r,function(){e.transitionTo(n)}))},r.skipLinearAdMode=function(){var e=this.player;e.ads.inAdBreak()||this.isContentResuming()?a.default.log.warn("Unexpected skipLinearAdMode invocation"):(e.ads.debug("Postroll abort (skipLinearAdMode)"),e.trigger("adskip"),this.abort(e))},r.onAdTimeout=function(e){e.ads.debug("Postroll abort (adtimeout)"),this.abort(e)},r.onAdsError=function(e){e.ads.debug("Postroll abort (adserror)"),e.ads.error({errorType:h.AdsPostrollError}),e.ads.inAdBreak()?e.ads.endLinearAdMode():this.abort(e)},r.onContentChanged=function(e){if(this.isContentResuming()){var r=b.getState("BeforePreroll");this.transitionTo(r)}else if(!this.inAdBreak()){var n=b.getState("Preroll");this.transitionTo(n)}},r.onNoPostroll=function(e){this.isContentResuming()||this.inAdBreak()?a.default.log.warn("Unexpected nopostroll event (Postroll)"):this.abort(e)},r.resumeContent=function(e){this.contentResuming=!0,e.addClass("vjs-ad-content-resuming")},r.abort=function(e){var r=b.getState("AdsDone");this.resumeContent(e),e.removeClass("vjs-ad-loading"),this.transitionTo(r)},r.cleanup=function(e){e.removeClass("vjs-ad-content-resuming"),e.clearTimeout(this._postrollTimeout),e.ads._contentEnding=!1},Postroll}(b.getState("AdState"));b.registerState("Postroll",I);var R=function(e){function ContentPlayback(){return e.apply(this,arguments)||this}_inheritsLoose(ContentPlayback,e),ContentPlayback._getName=function(){return"ContentPlayback"};var r=ContentPlayback.prototype;return r.init=function(e){e.ads._shouldBlockPlay=!1}
7,r.onAdsReady=function(e){e.ads.debug("Received adsready event (ContentPlayback)"),e.ads.nopreroll_||(e.ads.debug("Triggered readyforpreroll event (ContentPlayback)"),e.trigger("readyforpreroll"))},r.onReadyForPostroll=function(e){var r=b.getState("Postroll");e.ads.debug("Received readyforpostroll event"),this.transitionTo(r)},r.startLinearAdMode=function(){var e=b.getState("Midroll");this.transitionTo(e)},ContentPlayback}(b.getState("ContentState"));b.registerState("ContentPlayback",R);var k=function(e){function StitchedContentPlayback(){return e.apply(this,arguments)||this}_inheritsLoose(StitchedContentPlayback,e),StitchedContentPlayback._getName=function(){return"StitchedContentPlayback"};var r=StitchedContentPlayback.prototype;return r.init=function(){this.player.ads._shouldBlockPlay=!1},r.onContentChanged=function(){this.player.ads.debug("Received contentchanged event ("+this.constructor._getName()+")")},r.startLinearAdMode=function(){var e=b.getState("StitchedAdRoll");this.transitionTo(e)},StitchedContentPlayback}(b.getState("ContentState"));b.registerState("StitchedContentPlayback",k);var L=function(e){function StitchedAdRoll(){return e.apply(this,arguments)||this}_inheritsLoose(StitchedAdRoll,e),StitchedAdRoll._getName=function(){return"StitchedAdRoll"};var r=StitchedAdRoll.prototype;return r.init=function(){this.waitingForAdBreak=!1,this.contentResuming=!1,this.player.ads.adType="stitched",C.start(this.player)},r.onPlaying=function(){},r.onContentResumed=function(){},r.onAdEnded=function(){this.endLinearAdMode(),this.player.trigger("ended")},r.endLinearAdMode=function(){var e=b.getState("StitchedContentPlayback");C.end(this.player),this.transitionTo(e)},StitchedAdRoll}(b.getState("AdState"));b.registerState("StitchedAdRoll",L);var M=function(e){function OutstreamPending(){return e.apply(this,arguments)||this}_inheritsLoose(OutstreamPending,e),OutstreamPending._getName=function(){return"OutstreamPending"};var r=OutstreamPending.prototype;return r.init=function(e){this.adsReady=!1},r.onPlay=function(e){var r=b.getState("OutstreamPlayback");e.ads.debug("Received play event (OutstreamPending)"),this.transitionTo(r,this.adsReady)},r.onAdsReady=function(e){e.ads.debug("Received adsready event (OutstreamPending)"),this.adsReady=!0},r.onAdsError=function(){this.player.ads.debug("adserror (OutstreamPending)"),this.adsReady=!1},OutstreamPending}(b.getState("AdState"));b.registerState("OutstreamPending",M);var x=function(e){function OutstreamPlayback(){return e.apply(this,arguments)||this}_inheritsLoose(OutstreamPlayback,e),OutstreamPlayback._getName=function(){return"OutstreamPlayback"};var r=OutstreamPlayback.prototype;return r.init=function(e,r){e.addClass("vjs-ad-loading"),r?this.handleAdsReady():this.abort(e)},r.onAdsReady=function(e){e.ads.inAdBreak()?a.default.log.warn("Unexpected adsready event (Preroll)"):(e.ads.debug("Received adsready event (Preroll)"),this.handleAdsReady())},r.abort=function(e){var r=b.getState("OutstreamDone");e.removeClass("vjs-ad-loading"),this.transitionTo(r)},r.onAdStarted=function(e){e.removeClass("vjs-ad-loading")},r.handleAdsReady=function(){this.adsReady=!0,this.readyForOutstreamPlayback()},r.readyForOutstreamPlayback=function(){var e=this.player;this.afterLoadStart(function(){e.trigger("readyforoutstream")})},r.startLinearAdMode=function(){var e=this.player;this.adsReady&&!e.ads.inAdBreak()&&C.start(e)},r.cleanup=function(e){e.ads._hasThereBeenALoadStartDuringPlayerLife||a.default.log.warn("Leaving OutstreamPlayback state before loadstart event can cause issues."),this.cleanupPartial(e)},r.cleanupPartial=function(e){e.removeClass("vjs-ad-loading"),e.removeClass("vjs-ad-content-resuming"),this.clearTimeout(e)},r.clearTimeout=function(e){e.clearTimeout(this._timeout),this._timeout=null},r.onAdStarted=function(e){e.removeClass("vjs-ad-loading")},r.onAdsError=function(e){var r=this;a.default.log("adserror (OutstreamPlayback)"),this.inAdBreak()?e.ads.endLinearAdMode():this.afterLoadStart(function(){r.abort(e)})},r.onAdTimeout=function(e){var r=this;this.afterLoadStart(function(){e.ads.debug("adtimeout (OutstreamPlayback)"),r.abort(e)})},r.onAdsCanceled=function(e){var r=this;e.ads.debug("adscanceled (OutstreamPlaybac)"),this.afterLoadStart(function(){r.abort(e)})},r.endLinearAdMode=function(){var e=this;if(this.inAdBreak()){this.player.removeClass("vjs-ad-loading");var r=b.getState("OutstreamDone");C.end(this.player,function(){e.transitionTo(r)})}},r.afterLoadStart=function(e){var r=this.player;r.ads._hasThereBeenALoadStartDuringPlayerLife?e():(r.ads.debug("Waiting for loadstart..."),r.one("loadstart",function(){r.ads.debug("Received loadstart event"),e()}))},r.skipLinearAdMode=function(){var e=this,r=this.player,n=b.getState("OutstreamDone");this.inAdBreak()?a.default.log.warn("Unexpected skipLinearAdMode invocation"):this.afterLoadStart(function(){r.trigger("adskip"),r.ads.debug("skipLinearAdMode (OutstreamPlayback)"),e.transitionTo(n)})},OutstreamPlayback}(b.getState("AdState"));b.registerState("OutstreamPlayback",x);var _=function(e){function OutstreamDone(){return e.apply(this,arguments)||this}_inheritsLoose(OutstreamDone,e),OutstreamDone._getName=function(){return"OutstreamDone"};var r=OutstreamDone.prototype;return r.init=function(e){e.trigger("ended")},r.startLinearAdMode=function(){a.default.log.warn("Unexpected startLinearAdMode invocation (OutstreamDone)")},OutstreamDone}(b.getState("AdState"));b.registerState("OutstreamDone",_);var O=f.isMiddlewareMediatorSupported,B=a.default.getTech("Html5").Events,U={timeout:5e3,prerollTimeout:void 0,postrollTimeout:void 0,debug:!1,stitchedAds:!1,contentIsLive:void 0,liveCuePoints:!0,allowVjsAutoplay:a.default.options.normalizeAutoplay||!1},contribAdsPlugin=function(e){var r=this,n=a.default.obj.merge(U,e),i=[];
7B.concat(["firstplay","loadedalldata"]).forEach(function(e){-1===i.indexOf(e)&&i.push(e)}),r.on(i,redispatch),O()||(n.debug&&a.default.log("Using cancelContentPlay to block content playback"),r.on("play",cancelContentPlay)),r.setTimeout(function(){r.ads._hasThereBeenALoadStartDuringPlayerLife||""===r.src()||a.default.log.error("videojs-contrib-ads has not seen a loadstart event 5 seconds after being initialized, but a source is present. This indicates that videojs-contrib-ads was initialized too late. It must be initialized immediately after video.js in the same tick. As a result, some ads will not play and some media events will be incorrect. For more information, see http://videojs.github.io/videojs-contrib-ads/integrator/getting-started.html")},5e3),r.on("ended",function(){r.hasClass("vjs-has-started")||r.addClass("vjs-has-started")}),r.on("contenttimeupdate",function(){r.removeClass("vjs-waiting")}),r.on(["addurationchange","adcanplay"],function(){if(!(r.ads.settings.stitchedAds||r.hasStarted())&&(!r.ads.snapshot||r.currentSrc()!==r.ads.snapshot.currentSrc)&&r.ads.inAdBreak()){var e=r.play();e&&e.catch&&e.catch(function(e){a.default.log.warn("Play promise rejected when playing ad",e)})}}),r.on("nopreroll",function(){r.ads.debug("Received nopreroll event"),r.ads.nopreroll_=!0}),r.on("nopostroll",function(){r.ads.debug("Received nopostroll event"),r.ads.nopostroll_=!0}),r.on("playing",function(){r.ads._cancelledPlay=!1,r.ads._pausedOnContentupdate=!1}),r.on("play",function(){r.ads._playRequested=!0}),r.one("loadstart",function(){r.ads._hasThereBeenALoadStartDuringPlayerLife=!0}),r.on("loadeddata",function(){r.ads._hasThereBeenALoadedData=!0}),r.on("loadedmetadata",function(){r.ads._hasThereBeenALoadedMetaData=!0}),r.ads={disableNextSnapshotRestore:!1,_contentEnding:!1,_contentHasEnded:!1,_hasThereBeenALoadStartDuringPlayerLife:!1,_hasThereBeenALoadedData:!1,_hasThereBeenALoadedMetaData:!1,_inLinearAdMode:!1,_shouldBlockPlay:!1,_playBlocked:!1,_playRequested:!1,_error:null,adType:null,VERSION:d,reset:function(){r.ads.disableNextSnapshotRestore=!1,r.ads._contentEnding=!1,r.ads._contentHasEnded=!1,r.ads.snapshot=null,r.ads.adType=null,r.ads._hasThereBeenALoadedData=!1,r.ads._hasThereBeenALoadedMetaData=!1,r.ads._cancelledPlay=!1,r.ads._shouldBlockPlay=!1,r.ads._playBlocked=!1,r.ads.nopreroll_=!1,r.ads.nopostroll_=!1,r.ads._playRequested=!1,r.ads._error=null},startLinearAdMode:function(){r.ads._state.startLinearAdMode()},endLinearAdMode:function(){r.ads._state.endLinearAdMode()},skipLinearAdMode:function(){r.ads._state.skipLinearAdMode()},stitchedAds:function(e){return void 0!==e&&(a.default.log.warn("Using player.ads.stitchedAds() as a setter is deprecated, it should be set as an option upon initialization of contrib-ads."),this.settings.stitchedAds=!!e),this.settings.stitchedAds},videoElementRecycled:function(){if(r.ads.shouldPlayContentBehindAd(r))return!1;if(!this.snapshot)throw Error("You cannot use videoElementRecycled while there is no snapshot.");var e=r.tech_.src()!==this.snapshot.src,n=r.currentSrc()!==this.snapshot.currentSrc;return e||n},isLive:function(e){return(void 0===e&&(e=r),"boolean"==typeof e.ads.settings.contentIsLive)?e.ads.settings.contentIsLive:e.duration()===1/0||"8"===a.default.browser.IOS_VERSION&&0===e.duration()},shouldPlayContentBehindAd:function(e){if(void 0===e&&(e=r),e)return!!e.ads.settings.liveCuePoints&&!a.default.browser.IS_IOS&&!a.default.browser.IS_ANDROID&&e.duration()===1/0;throw Error("shouldPlayContentBehindAd requires a player as a param")},shouldTakeSnapshots:function(e){return void 0===e&&(e=r),!this.shouldPlayContentBehindAd(e)&&!this.stitchedAds()},isInAdMode:function(){return this._state.isAdState()},isWaitingForAdBreak:function(){return this._state.isWaitingForAdBreak()},isContentResuming:function(){return this._state.isContentResuming()},isAdPlaying:function(){return this._state.inAdBreak()},inAdBreak:function(){return this._state.inAdBreak()},removeNativePoster:function(){var e=r.$(".vjs-tech");e&&e.removeAttribute("poster")},debug:function(){if(this.settings.debug){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];1===r.length&&"string"==typeof r[0]?a.default.log("ADS: "+r[0]):a.default.log.apply(a.default,["ADS:"].concat(r))}},error:function(e){if(void 0===e)return this._error||null;if(null===e||!e.errorType){this._error=null;return}this._error=e,a.default.log.error("An error with Ads occured. Type: "+e.errorType+"."),r.trigger({type:"vjsadserror",error:this._error})}},r.ads.settings=n,n.stitchedAds=!!n.stitchedAds,"outstream"===n.playerMode?(r.src(v),r.ads._state=new(b.getState("OutstreamPending"))(r)):n.stitchedAds?r.ads._state=new(b.getState("StitchedContentPlayback"))(r):r.ads._state=new(b.getState("BeforePreroll"))(r),r.ads._state.init(r),r.ads.cueTextTracks=g,r.ads.adMacroReplacement=adMacroReplacement.bind(r),r.ads.contentSrc=r.currentSrc(),r.ads._seenInitialLoadstart=!1,r.on("loadstart",function(){if(!r.ads.inAdBreak()){var e=r.currentSrc();e!==r.ads.contentSrc&&(r.ads._seenInitialLoadstart&&r.trigger({type:"contentchanged"}),r.trigger({type:"contentupdate",oldValue:r.ads.contentSrc,newValue:e}),r.ads.contentSrc=e),r.ads._seenInitialLoadstart=!0}}),r.on("contentchanged",r.ads.reset);var textTrackChangeHandler=function(){var e=r.textTracks();if(!r.ads.shouldPlayContentBehindAd(r)&&r.ads.inAdBreak()&&r.tech_.featuresNativeTextTracks&&a.default.browser.IS_IOS&&!Array.isArray(r.textTracks()))for(var n=0;n<e.length;n++){var i=e[n];"showing"===i.mode&&(i.mode="disabled")}};r.ready(function(){r.textTracks().addEventListener("change",textTrackChangeHandler)}),r.on(["play","playing","ended","adsready","adscanceled","adskip","adserror","adtimeout","adended","ads-ad-started","ads-ad-skipped","contentchanged","dispose","contentresumed","readyforpostroll","nopreroll","nopostroll"],function(e){r.ads._state.handleEvent(e.type)}),r.on("dispose",function(){r.ads.reset(),r.textTracks().removeEventListener("change",textTrackChangeHandler)}),listenToTcf(),obtainUsPrivacyString(function(){}),r.ads.listenToTcf=listenToTcf,r.ads.updateUsPrivacyString=function(e){return obtainUsPrivacyString(e)}};contribAdsPlugin.Error=h,contribAdsPlugin.VERSION=d,function(){if(a.default.getPlugin)return!!a.default.getPlugin("ads");var e=a.default.getComponent("Player");return!!(e&&e.prototype.ads)}(a.default)||((a.default.registerPlugin||a.default.plugin)("ads",contribAdsPlugin),A()&&!a.default.usingContribAdsMiddleware_&&(a.default.use("*",y),a.default.usingContribAdsMiddleware_=!0,a.default.log.debug("Play middleware has been registered with videojs")))},88792:function(e,r,n){"use strict";var i=n(33196);function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,r){if(!(e instanceof r))throw TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,r||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:String(r)}(i.key),i)}}function _createClass(e,r,n){return r&&_defineProperties(e.prototype,r),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,i=Array(r);n<r;n++)i[n]=e[n];return i}var PlayerWrapper=function(e,r,n){this.vjsPlayer=e,this.controller=n,this.contentTrackingTimer=null,this.contentComplete=!1,this.updateTimeIntervalHandle=null,this.updateTimeInterval=1e3,this.seekCheckIntervalHandle=null,this.seekCheckInterval=1e3,this.resizeCheckIntervalHandle=null,this.resizeCheckInterval=250,this.seekThreshold=100,this.contentEndedListeners=[],this.contentSource="",this.contentSourceType="",this.contentPlayheadTracker={currentTime:0,previousTime:0,seeking:!1,duration:0},this.vjsPlayerDimensions={width:this.getPlayerWidth(),height:this.getPlayerHeight()},this.vjsControls=this.vjsPlayer.getChild("controlBar"),this.h5Player=null,this.vjsPlayer.one("play",this.setUpPlayerIntervals.bind(this)),this.boundContentEndedListener=this.localContentEndedListener.bind(this),this.vjsPlayer.on("contentended",this.boundContentEndedListener),this.vjsPlayer.on("dispose",this.playerDisposedListener.bind(this)),this.vjsPlayer.on("readyforpreroll",this.onReadyForPreroll.bind(this)),this.vjsPlayer.on("adtimeout",this.onAdTimeout.bind(this)),this.vjsPlayer.ready(this.onPlayerReady.bind(this)),"onPlay"===this.controller.getSettings().requestMode&&this.vjsPlayer.one("play",this.controller.requestAds.bind(this.controller)),this.vjsPlayer.ads||window.console.warn("You may be using a version of videojs-contrib-ads that is not compatible with your version of video.js."),this.vjsPlayer.ads(r)};PlayerWrapper.prototype.setUpPlayerIntervals=function(){this.updateTimeIntervalHandle&&clearInterval(this.updateTimeIntervalHandle),this.seekCheckIntervalHandle&&clearInterval(this.seekCheckIntervalHandle),this.resizeCheckIntervalHandle&&clearInterval(this.resizeCheckIntervalHandle),this.updateTimeIntervalHandle=setInterval(this.updateCurrentTime.bind(this),this.updateTimeInterval),this.seekCheckIntervalHandle=setInterval(this.checkForSeeking.bind(this),this.seekCheckInterval),this.resizeCheckIntervalHandle=setInterval(this.checkForResize.bind(this),this.resizeCheckInterval)},PlayerWrapper.prototype.updateCurrentTime=function(){this.contentPlayheadTracker.seeking||(this.contentPlayheadTracker.currentTime=this.vjsPlayer.currentTime())},PlayerWrapper.prototype.checkForSeeking=function(){Math.abs((this.vjsPlayer.currentTime()-this.contentPlayheadTracker.previousTime)*1e3)>this.seekCheckInterval+this.seekThreshold?this.contentPlayheadTracker.seeking=!0:this.contentPlayheadTracker.seeking=!1,this.contentPlayheadTracker.previousTime=this.vjsPlayer.currentTime()},PlayerWrapper.prototype.checkForResize=function(){var e=this.getPlayerWidth(),r=this.getPlayerHeight();(e!=this.vjsPlayerDimensions.width||r!=this.vjsPlayerDimensions.height)&&(this.vjsPlayerDimensions.width=e,this.vjsPlayerDimensions.height=r,this.controller.onPlayerResize(e,r))},PlayerWrapper.prototype.localContentEndedListener=function(){for(var e in this.contentComplete||(this.contentComplete=!0,this.controller.onContentComplete()),this.contentEndedListeners)"function"==typeof this.contentEndedListeners[e]&&this.contentEndedListeners[e]();
vendor: 5,661 bytes, line 7
7this.vjsPlayer.el()&&this.vjsPlayer.one("play",this.setUpPlayerIntervals.bind(this))},PlayerWrapper.prototype.onNoPostroll=function(){this.vjsPlayer.trigger("nopostroll")},PlayerWrapper.prototype.playerDisposedListener=function(){this.contentEndedListeners=[],this.controller.onPlayerDisposed(),this.contentComplete=!0,this.vjsPlayer.off("contentended",this.boundContentEndedListener),this.vjsPlayer.ads.adTimeoutTimeout&&clearTimeout(this.vjsPlayer.ads.adTimeoutTimeout);var e=[this.updateTimeIntervalHandle,this.seekCheckIntervalHandle,this.resizeCheckIntervalHandle];for(var r in e)e[r]&&clearInterval(e[r])},PlayerWrapper.prototype.onReadyForPreroll=function(){this.controller.onPlayerReadyForPreroll()},PlayerWrapper.prototype.onAdTimeout=function(){this.controller.onAdTimeout()},PlayerWrapper.prototype.onPlayerReady=function(){this.h5Player=document.getElementById(this.getPlayerId()).getElementsByClassName("vjs-tech")[0],this.h5Player.hasAttribute("autoplay")&&this.controller.setSetting("adWillAutoPlay",!0),this.onVolumeChange(),this.vjsPlayer.on("fullscreenchange",this.onFullscreenChange.bind(this)),this.vjsPlayer.on("volumechange",this.onVolumeChange.bind(this)),this.controller.onPlayerReady()},PlayerWrapper.prototype.onFullscreenChange=function(){this.vjsPlayer.isFullscreen()?this.controller.onPlayerEnterFullscreen():this.controller.onPlayerExitFullscreen()},PlayerWrapper.prototype.onVolumeChange=function(){var e=this.vjsPlayer.muted()?0:this.vjsPlayer.volume();this.controller.onPlayerVolumeChanged(e)},PlayerWrapper.prototype.injectAdContainerDiv=function(e){this.vjsControls.el().parentNode.appendChild(e)},PlayerWrapper.prototype.getContentPlayer=function(){return this.h5Player},PlayerWrapper.prototype.getVolume=function(){return this.vjsPlayer.muted()?0:this.vjsPlayer.volume()},PlayerWrapper.prototype.setVolume=function(e){this.vjsPlayer.volume(e),0==e?this.vjsPlayer.muted(!0):this.vjsPlayer.muted(!1)},PlayerWrapper.prototype.unmute=function(){this.vjsPlayer.muted(!1)},PlayerWrapper.prototype.mute=function(){this.vjsPlayer.muted(!0)},PlayerWrapper.prototype.play=function(){this.vjsPlayer.play()},PlayerWrapper.prototype.togglePlayback=function(){this.vjsPlayer.paused()?this.vjsPlayer.play():this.vjsPlayer.pause()},PlayerWrapper.prototype.getPlayerWidth=function(){var e=(getComputedStyle(this.vjsPlayer.el())||{}).width;return e&&0!==parseFloat(e)||(e=(this.vjsPlayer.el().getBoundingClientRect()||{}).width),parseFloat(e)||this.vjsPlayer.width()},PlayerWrapper.prototype.getPlayerHeight=function(){var e=(getComputedStyle(this.vjsPlayer.el())||{}).height;return e&&0!==parseFloat(e)||(e=(this.vjsPlayer.el().getBoundingClientRect()||{}).height),parseFloat(e)||this.vjsPlayer.height()},PlayerWrapper.prototype.getPlayerOptions=function(){return this.vjsPlayer.options_},PlayerWrapper.prototype.getPlayerId=function(){return this.vjsPlayer.id()},PlayerWrapper.prototype.toggleFullscreen=function(){this.vjsPlayer.isFullscreen()?this.vjsPlayer.exitFullscreen():this.vjsPlayer.requestFullscreen()},PlayerWrapper.prototype.getContentPlayheadTracker=function(){return this.contentPlayheadTracker},PlayerWrapper.prototype.onAdError=function(e){this.vjsControls.show();var r=void 0!==e.getError?e.getError():e.stack;this.vjsPlayer.trigger({type:"adserror",data:{AdError:r,AdErrorEvent:e}})},PlayerWrapper.prototype.onAdLog=function(e){var r=e.getAdData(),n=void 0!==r.adError?r.adError.getMessage():void 0;this.vjsPlayer.trigger({type:"adslog",data:{AdError:n,AdEvent:e}})},PlayerWrapper.prototype.onAdBreakStart=function(){this.contentSource=this.vjsPlayer.currentSrc(),this.contentSourceType=this.vjsPlayer.currentType(),this.vjsPlayer.off("contentended",this.boundContentEndedListener),this.vjsPlayer.ads.startLinearAdMode(),this.vjsControls.hide(),this.vjsPlayer.pause()},PlayerWrapper.prototype.onAdBreakEnd=function(){this.vjsPlayer.on("contentended",this.boundContentEndedListener),this.vjsPlayer.ads.inAdBreak()&&this.vjsPlayer.ads.endLinearAdMode(),this.vjsControls.show()},PlayerWrapper.prototype.onAdStart=function(){this.vjsPlayer.trigger("ads-ad-started")},PlayerWrapper.prototype.onAllAdsCompleted=function(){!0==this.contentComplete&&(this.contentSource&&this.vjsPlayer.currentSrc()!=this.contentSource&&this.vjsPlayer.src({src:this.contentSource,type:this.contentSourceType}),this.controller.onContentAndAdsCompleted())},PlayerWrapper.prototype.onAdsReady=function(){this.vjsPlayer.trigger("adsready")},PlayerWrapper.prototype.changeSource=function(e){this.vjsPlayer.currentSrc()&&(this.vjsPlayer.currentTime(0),this.vjsPlayer.pause()),e&&this.vjsPlayer.src(e),this.vjsPlayer.one("loadedmetadata",this.seekContentToZero.bind(this))},PlayerWrapper.prototype.seekContentToZero=function(){this.vjsPlayer.currentTime(0)},PlayerWrapper.prototype.triggerPlayerEvent=function(e,r){this.vjsPlayer.trigger(e,r)},PlayerWrapper.prototype.addContentEndedListener=function(e){this.contentEndedListeners.push(e)},PlayerWrapper.prototype.reset=function(){this.vjsPlayer.off("contentended",this.boundContentEndedListener),this.vjsPlayer.on("contentended",this.boundContentEndedListener),this.vjsControls.show(),this.vjsPlayer.ads.inAdBreak()&&this.vjsPlayer.ads.endLinearAdMode(),this.contentPlayheadTracker.currentTime=0,this.contentComplete=!1};var AdUi=function(e){this.controller=e,this.adContainerDiv=document.createElement("div"),this.controlsDiv=document.createElement("div"),this.countdownDiv=document.createElement("div"),this.seekBarDiv=document.createElement("div"),this.progressDiv=document.createElement("div"),this.playPauseDiv=document.createElement("div"),this.muteDiv=document.createElement("div"),this.sliderDiv
vendor: 27,728 bytes, line 7
7=document.createElement("div"),this.sliderLevelDiv=document.createElement("div"),this.fullscreenDiv=document.createElement("div"),this.boundOnMouseUp=this.onMouseUp.bind(this),this.boundOnMouseMove=this.onMouseMove.bind(this),this.adPlayheadTracker={currentTime:0,duration:0,isPod:!1,adPosition:0,totalAds:0},this.controlPrefix=this.controller.getPlayerId()+"_",this.showCountdown=!0,!1===this.controller.getSettings().showCountdown&&(this.showCountdown=!1),this.isAdNonlinear=!1,this.createAdContainer()};AdUi.prototype.createAdContainer=function(){this.assignControlAttributes(this.adContainerDiv,"ima-ad-container"),this.adContainerDiv.style.position="absolute",this.adContainerDiv.style.zIndex=1111,this.adContainerDiv.addEventListener("mouseenter",this.showAdControls.bind(this),!1),this.adContainerDiv.addEventListener("mouseleave",this.hideAdControls.bind(this),!1),this.adContainerDiv.addEventListener("click",this.onAdContainerClick.bind(this),!1),this.createControls(),this.controller.injectAdContainerDiv(this.adContainerDiv)},AdUi.prototype.createControls=function(){this.assignControlAttributes(this.controlsDiv,"ima-controls-div"),this.controlsDiv.style.width="100%",this.controller.getIsMobile()?this.countdownDiv.style.display="none":(this.assignControlAttributes(this.countdownDiv,"ima-countdown-div"),this.countdownDiv.innerHTML=this.controller.getSettings().adLabel,this.countdownDiv.style.display=this.showCountdown?"block":"none"),this.assignControlAttributes(this.seekBarDiv,"ima-seek-bar-div"),this.seekBarDiv.style.width="100%",this.assignControlAttributes(this.progressDiv,"ima-progress-div"),this.assignControlAttributes(this.playPauseDiv,"ima-play-pause-div"),this.addClass(this.playPauseDiv,"ima-playing"),this.playPauseDiv.addEventListener("click",this.onAdPlayPauseClick.bind(this),!1),this.assignControlAttributes(this.muteDiv,"ima-mute-div"),this.addClass(this.muteDiv,"ima-non-muted"),this.muteDiv.addEventListener("click",this.onAdMuteClick.bind(this),!1),this.assignControlAttributes(this.sliderDiv,"ima-slider-div"),this.sliderDiv.addEventListener("mousedown",this.onAdVolumeSliderMouseDown.bind(this),!1),this.controller.getIsIos()&&(this.sliderDiv.style.display="none"),this.assignControlAttributes(this.sliderLevelDiv,"ima-slider-level-div"),this.assignControlAttributes(this.fullscreenDiv,"ima-fullscreen-div"),this.addClass(this.fullscreenDiv,"ima-non-fullscreen"),this.fullscreenDiv.addEventListener("click",this.onAdFullscreenClick.bind(this),!1),this.adContainerDiv.appendChild(this.controlsDiv),this.controlsDiv.appendChild(this.countdownDiv),this.controlsDiv.appendChild(this.seekBarDiv),this.controlsDiv.appendChild(this.playPauseDiv),this.controlsDiv.appendChild(this.muteDiv),this.controlsDiv.appendChild(this.sliderDiv),this.controlsDiv.appendChild(this.fullscreenDiv),this.seekBarDiv.appendChild(this.progressDiv),this.sliderDiv.appendChild(this.sliderLevelDiv)},AdUi.prototype.onAdPlayPauseClick=function(){this.controller.onAdPlayPauseClick()},AdUi.prototype.onAdMuteClick=function(){this.controller.onAdMuteClick()},AdUi.prototype.onAdFullscreenClick=function(){this.controller.toggleFullscreen()},AdUi.prototype.onAdsPaused=function(){this.controller.sdkImpl.adPlaying=!1,this.addClass(this.playPauseDiv,"ima-paused"),this.removeClass(this.playPauseDiv,"ima-playing"),this.showAdControls()},AdUi.prototype.onAdsResumed=function(){this.onAdsPlaying(),this.showAdControls()},AdUi.prototype.onAdsPlaying=function(){this.controller.sdkImpl.adPlaying=!0,this.addClass(this.playPauseDiv,"ima-playing"),this.removeClass(this.playPauseDiv,"ima-paused")},AdUi.prototype.updateAdUi=function(e,r,n,i,a){var o=Math.floor(r%60);o.toString().length<2&&(o="0"+o);var s=": ";a>1&&(s=" ("+i+" "+this.controller.getSettings().adLabelNofN+" "+a+"): "),this.countdownDiv.innerHTML=this.controller.getSettings().adLabel+s+Math.floor(r/60)+":"+o,this.progressDiv.style.width=100*(e/n)+"%"},AdUi.prototype.unmute=function(){this.addClass(this.muteDiv,"ima-non-muted"),this.removeClass(this.muteDiv,"ima-muted"),this.sliderLevelDiv.style.width=100*this.controller.getPlayerVolume()+"%"},AdUi.prototype.mute=function(){this.addClass(this.muteDiv,"ima-muted"),this.removeClass(this.muteDiv,"ima-non-muted"),this.sliderLevelDiv.style.width="0%"},AdUi.prototype.onAdVolumeSliderMouseDown=function(){document.addEventListener("mouseup",this.boundOnMouseUp,!1),document.addEventListener("mousemove",this.boundOnMouseMove,!1)},AdUi.prototype.onMouseMove=function(e){this.changeVolume(e)},AdUi.prototype.onMouseUp=function(e){this.changeVolume(e),document.removeEventListener("mouseup",this.boundOnMouseUp),document.removeEventListener("mousemove",this.boundOnMouseMove)},AdUi.prototype.changeVolume=function(e){var r=(e.clientX-this.sliderDiv.getBoundingClientRect().left)/this.sliderDiv.offsetWidth;r*=100,r=Math.min(Math.max(r,0),100),this.sliderLevelDiv.style.width=r+"%",0==this.percent?(this.addClass(this.muteDiv,"ima-muted"),this.removeClass(this.muteDiv,"ima-non-muted")):(this.addClass(this.muteDiv,"ima-non-muted"),this.removeClass(this.muteDiv,"ima-muted")),this.controller.setVolume(r/100)},AdUi.prototype.showAdContainer=function(){this.adContainerDiv.style.display="block"},AdUi.prototype.hideAdContainer=function(){this.adContainerDiv.style.display="none"},AdUi.prototype.onAdContainerClick=function(){this.isAdNonlinear&&this.controller.togglePlayback()},AdUi.prototype.reset=function(){this.hideAdContainer()},AdUi.prototype.onAdError=function(){this.hideAdContainer()},AdUi.prototype.onAdBreakStart=function(e){this.showAdContainer(),"application/javascript"!==e.getAd().getContentType()||this.controller.getSettings().showControlsForJSAds?this.controlsDiv.style.display="block":this.controlsDiv.style.display="none",this.onAdsPlaying(),this.hideAdControls()},AdUi.prototype.onAdBreakEnd=function(){var e=this.controller.getCurrentAd();(null==e||e.isLinear())&&this.hideAdContainer(),this.controlsDiv.style.display="none",this.countdownDiv.innerHTML=""},AdUi.prototype.onAllAdsCompleted=function(){this.hideAdContainer()},AdUi.prototype.onLinearAdStart=function(){this.removeClass(this.adContainerDiv,"bumpable-ima-ad-container"),this.isAdNonlinear=!1},AdUi.prototype.onNonLinearAdLoad=function(){this.adContainerDiv.style.display="block",this.addClass(this.adContainerDiv,"bumpable-ima-ad-container"),this.isAdNonlinear=!0},AdUi.prototype.onPlayerEnterFullscreen=function(){this.addClass(this.fullscreenDiv,"ima-fullscreen"),this.removeClass(this.fullscreenDiv,"ima-non-fullscreen")},AdUi.prototype.onPlayerExitFullscreen=function(){this.addClass(this.fullscreenDiv,"ima-non-fullscreen"),this.removeClass(this.fullscreenDiv,"ima-fullscreen")},AdUi.prototype.onPlayerVolumeChanged=function(e){0==e?(this.addClass(this.muteDiv,"ima-muted"),this.removeClass(this.muteDiv,"ima-non-muted"),this.sliderLevelDiv.style.width="0%"):(this.addClass(this.muteDiv,"ima-non-muted"),this.removeClass(this.muteDiv,"ima-muted"),this.sliderLevelDiv.style.width=100*e+"%")},AdUi.prototype.showAdControls=function(){this.controller.getSettings().disableAdControls||this.addClass(this.controlsDiv,"ima-controls-div-showing")},AdUi.prototype.hideAdControls=function(){this.removeClass(this.controlsDiv,"ima-controls-div-showing")},AdUi.prototype.assignControlAttributes=function(e,r){e.id=this.controlPrefix+r,e.className=this.controlPrefix+r+" "+r},AdUi.prototype.getClassRegexp=function(e){return RegExp("(^|[^A-Za-z-])"+e+"((?![A-Za-z-])|$)","gi")},AdUi.prototype.elementHasClass=function(e,r){return this.getClassRegexp(r).test(e.className)},AdUi.prototype.addClass=function(e,r){e.className=e.className.trim()+" "+r},AdUi.prototype.removeClass=function(e,r){var n=this.getClassRegexp(r);e.className=e.className.trim().replace(n,"")},AdUi.prototype.getAdContainerDiv=function(){return this.adContainerDiv},AdUi.prototype.setShowCountdown=function(e){this.showCountdown=e,this.countdownDiv.style.display=this.showCountdown?"block":"none"};var SdkImpl=function(e){this.controller=e,this.adDisplayContainer=null,this.adDisplayContainerInitialized=!1,this.adsLoader=null,this.adsManager=null,this.adsRenderingSettings=null,this.adsResponse=null,this.currentAd=null,this.adTrackingTimer=null,this.allAdsCompleted=!1,this.adsActive=!1,this.adPlaying=!1,this.adMuted=!1,this.adBreakReadyListener=void 0,this.contentCompleteCalled=!1,this.isAdTimedOut=!1,this.adsManagerDimensions={width:0,height:0},this.autoPlayAdBreaks=!0,!1===this.controller.getSettings().autoPlayAdBreaks&&(this.autoPlayAdBreaks=!1),this.controller.getSettings().locale&&google.ima.settings.setLocale(this.controller.getSettings().locale),this.controller.getSettings().disableFlashAds&&google.ima.settings.setDisableFlashAds(this.controller.getSettings().disableFlashAds),this.controller.getSettings().disableCustomPlaybackForIOS10Plus&&google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.controller.getSettings().disableCustomPlaybackForIOS10Plus),this.controller.getSettings().ppid&&google.ima.settings.setPpid(this.controller.getSettings().ppid),this.controller.getSettings().featureFlags&&google.ima.settings.setFeatureFlags(this.controller.getSettings().featureFlags)};SdkImpl.prototype.initAdObjects=function(){this.adDisplayContainer=new google.ima.AdDisplayContainer(this.controller.getAdContainerDiv(),this.controller.getContentPlayer()),this.adsLoader=new google.ima.AdsLoader(this.adDisplayContainer),this.adsLoader.getSettings().setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),!1==this.controller.getSettings().vpaidAllowed&&this.adsLoader.getSettings().setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.DISABLED),void 0!==this.controller.getSettings().vpaidMode&&this.adsLoader.getSettings().setVpaidMode(this.controller.getSettings().vpaidMode),this.controller.getSettings().locale&&this.adsLoader.getSettings().setLocale(this.controller.getSettings().locale),this.controller.getSettings().numRedirects&&this.adsLoader.getSettings().setNumRedirects(this.controller.getSettings().numRedirects),this.controller.getSettings().sessionId&&this.adsLoader.getSettings().setSessionId(this.controller.getSettings().sessionId),this.adsLoader.getSettings().setPlayerType("videojs-ima"),this.adsLoader.getSettings().setPlayerVersion("2.3.0"),this.adsLoader.getSettings().setAutoPlayAdBreaks(this.autoPlayAdBreaks),this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded.bind(this),!1),this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdsLoaderError.bind(this),!1),this.controller.playerWrapper.vjsPlayer.trigger({type:"ads-loader",adsLoader:this.adsLoader})},SdkImpl.prototype.requestAds=function(){var e=new google.ima.AdsRequest;if(this.controller.getSettings().adTagUrl?e.adTagUrl=this.controller.getSettings().adTagUrl:e.adsResponse=this.controller.getSettings().adsResponse,this.controller.getSettings().forceNonLinearFullSlot&&(e.forceNonLinearFullSlot=!0),this.controller.getSettings().vastLoadTimeout&&(e.vastLoadTimeout=this.controller.getSettings().vastLoadTimeout),this.controller.getSettings().omidMode&&window.console.warn("The additional setting `omidMode` has been removed. Use `omidVendorAccess` instead."),this.controller.getSettings().omidVendorAccess){e.omidAccessModeRules={};var r=this.controller.getSettings().omidVendorAccess;Object.keys(r).forEach(function(n){e.omidAccessModeRules[n]=r[n]})}e.linearAdSlotWidth=this.controller.getPlayerWidth(),e.linearAdSlotHeight=this.controller.getPlayerHeight(),e.nonLinearAdSlotWidth=this.controller.getSettings().nonLinearWidth||this.controller.getPlayerWidth(),e.nonLinearAdSlotHeight=this.controller.getSettings().nonLinearHeight||this.controller.getPlayerHeight(),e.setAdWillAutoPlay(this.controller.adsWillAutoplay()),e.setAdWillPlayMuted(this.controller.adsWillPlayMuted());var n=this.controller.getSettings().adsRequest;n&&"object"===_typeof(n)&&Object.keys(n).forEach(function(r){e[r]=n[r]}),this.adsLoader.requestAds(e),this.controller.playerWrapper.vjsPlayer.trigger({type:"ads-request",AdsRequest:e})},SdkImpl.prototype.onAdsManagerLoaded=function(e){this.createAdsRenderingSettings(),this.adsManager=e.getAdsManager(this.controller.getContentPlayheadTracker(),this.adsRenderingSettings),this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.AD_BREAK_READY,this.onAdBreakReady.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this.onContentPauseRequested.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this.onContentResumeRequested.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this.onAllAdsCompleted.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.LOADED,this.onAdLoaded.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.STARTED,this.onAdStarted.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,this.onAdComplete.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPED,this.onAdComplete.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.LOG,this.onAdLog.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.PAUSED,this.onAdPaused.bind(this)),this.adsManager.addEventListener(google.ima.AdEvent.Type.RESUMED,this.onAdResumed.bind(this)),this.controller.playerWrapper.vjsPlayer.trigger({type:"ads-manager",adsManager:this.adsManager}),this.autoPlayAdBreaks||this.initAdsManager();var r=this.controller.getSettings().preventLateAdStart;r?r&&!this.isAdTimedOut&&this.controller.onAdsReady():this.controller.onAdsReady(),this.controller.getSettings().adsManagerLoadedCallback&&this.controller.getSettings().adsManagerLoadedCallback()},SdkImpl.prototype.onAdsLoaderError=function(e){window.console.warn("AdsLoader error: "+e.getError()),this.controller.onErrorLoadingAds(e),this.adsManager&&this.adsManager.destroy()},SdkImpl.prototype.initAdsManager=function(){try{var e=this.controller.getPlayerWidth(),r=this.controller.getPlayerHeight();this.adsManagerDimensions.width=e,this.adsManagerDimensions.height=r,this.adsManager.init(e,r,google.ima.ViewMode.NORMAL),this.adsManager.setVolume(this.controller.getPlayerVolume()),this.initializeAdDisplayContainer()}catch(e){this.onAdError(e)}},SdkImpl.prototype.createAdsRenderingSettings=function(){if(this.adsRenderingSettings=new google.ima.AdsRenderingSettings,this.adsRenderingSettings.restoreCustomPlaybackStateOnAdBreakComplete=!0,this.controller.getSettings().adsRenderingSettings)for(var e in this.controller.getSettings().adsRenderingSettings)""!==e&&(this.adsRenderingSettings[e]=this.controller.getSettings().adsRenderingSettings[e])},SdkImpl.prototype.onAdError=function(e){var r=void 0!==e.getError?e.getError():e.stack;window.console.warn("Ad error: "+r),this.adsManager.destroy(),this.controller.onAdError(e),this.adsActive=!1,this.adPlaying=!1},SdkImpl.prototype.onAdBreakReady=function(e){this.adBreakReadyListener(e)},SdkImpl.prototype.onContentPauseRequested=function(e){this.adsActive=!0,this.adPlaying=!0,this.controller.onAdBreakStart(e)},SdkImpl.prototype.onContentResumeRequested=function(e){this.adsActive=!1,this.adPlaying=!1,this.controller.onAdBreakEnd()},SdkImpl.prototype.onAllAdsCompleted=function(e){this.allAdsCompleted=!0,this.controller.onAllAdsCompleted()},SdkImpl.prototype.onAdLoaded=function(e){e.getAd().isLinear()||(this.controller.onNonLinearAdLoad(),this.controller.playContent())},SdkImpl.prototype.onAdStarted=function(e){this.currentAd=e.getAd(),this.currentAd.isLinear()?(this.adTrackingTimer=setInterval(this.onAdPlayheadTrackerInterval.bind(this),250),this.controller.onLinearAdStart()):this.controller.onNonLinearAdStart()},SdkImpl.prototype.onAdPaused=function(){this.controller.onAdsPaused()},SdkImpl.prototype.onAdResumed=function(e){this.controller.onAdsResumed()},SdkImpl.prototype.onAdComplete=function(){this.currentAd.isLinear()&&clearInterval(this.adTrackingTimer)},SdkImpl.prototype.onAdLog=function(e){this.controller.onAdLog(e)},SdkImpl.prototype.onAdPlayheadTrackerInterval=function(){if(null!==this.adsManager){var e,r=this.adsManager.getRemainingTime(),n=this.currentAd.getDuration(),i=n-r;i=i>0?i:0;var a=0;this.currentAd.getAdPodInfo()&&(e=this.currentAd.getAdPodInfo().getAdPosition(),a=this.currentAd.getAdPodInfo().getTotalAds()),this.controller.onAdPlayheadUpdated(i,r,n,e,a)}},SdkImpl.prototype.onContentComplete=function(){this.adsLoader&&(this.adsLoader.contentComplete(),this.contentCompleteCalled=!0),(this.adsManager&&this.adsManager.getCuePoints()&&!this.adsManager.getCuePoints().includes(-1)||!this.adsManager)&&this.controller.onNoPostroll(),this.allAdsCompleted&&this.controller.onContentAndAdsCompleted()},SdkImpl.prototype.onPlayerDisposed=function(){this.adTrackingTimer&&clearInterval(this.adTrackingTimer),this.adsManager&&(this.adsManager.destroy(),this.adsManager=null)},SdkImpl.prototype.onPlayerReadyForPreroll=function(){if(this.autoPlayAdBreaks){this.initAdsManager();try{this.controller.showAdContainer(),this.adsManager.setVolume(this.controller.getPlayerVolume()),this.adsManager.start()}catch(e){this.onAdError(e)}}},SdkImpl.prototype.onAdTimeout=function(){this.isAdTimedOut=!0},SdkImpl.prototype.onPlayerReady=function(){this.initAdObjects(),(this.controller.getSettings().adTagUrl||this.controller.getSettings().adsResponse)&&"onLoad"===this.controller.getSettings().requestMode&&this.requestAds()},SdkImpl.prototype.onPlayerEnterFullscreen=function(){this.adsManager&&this.adsManager.resize(window.screen.width,window.screen.height,google.ima.ViewMode.FULLSCREEN)},SdkImpl.prototype.onPlayerExitFullscreen=function(){this.adsManager&&this.adsManager.resize(this.controller.getPlayerWidth(),this.controller.getPlayerHeight(),google.ima.ViewMode.NORMAL)},SdkImpl.prototype.onPlayerVolumeChanged=function(e){this.adsManager&&this.adsManager.setVolume(e),0==e?this.adMuted=!0:this.adMuted=!1},SdkImpl.prototype.onPlayerResize=function(e,r){this.adsManager&&(this.adsManagerDimensions.width=e,this.adsManagerDimensions.height=r,this.adsManager.resize(e,r,google.ima.ViewMode.NORMAL))},SdkImpl.prototype.getCurrentAd=function(){return this.currentAd},SdkImpl.prototype.setAdBreakReadyListener=function(e){this.adBreakReadyListener=e},SdkImpl.prototype.isAdPlaying=function(){return this.adPlaying},SdkImpl.prototype.isAdMuted=function(){return this.adMuted},SdkImpl.prototype.pauseAds=function(){this.adsManager.pause(),this.adPlaying=!1},SdkImpl.prototype.resumeAds=function(){this.adsManager.resume(),this.adPlaying=!0},SdkImpl.prototype.unmute=function(){this.adsManager.setVolume(1),this.adMuted=!1},SdkImpl.prototype.mute=function(){this.adsManager.setVolume(0),this.adMuted=!0},SdkImpl.prototype.setVolume=function(e){this.adsManager.setVolume(e),0==e?this.adMuted=!0:this.adMuted=!1},SdkImpl.prototype.initializeAdDisplayContainer=function(){this.adDisplayContainer&&!this.adDisplayContainerInitialized&&(this.adDisplayContainer.initialize(),this.adDisplayContainerInitialized=!0)},SdkImpl.prototype.playAdBreak=function(){this.autoPlayAdBreaks||(this.controller.showAdContainer(),this.adsManager.setVolume(this.controller.getPlayerVolume()),this.adsManager.start())},SdkImpl.prototype.addEventListener=function(e,r){this.adsManager&&this.adsManager.addEventListener(e,r)},SdkImpl.prototype.getAdsManager=function(){return this.adsManager},SdkImpl.prototype.reset=function(){this.adsActive=!1,this.adPlaying=!1,this.adTrackingTimer&&clearInterval(this.adTrackingTimer),this.adsManager&&(this.adsManager.destroy(),this.adsManager=null),this.adsLoader&&!this.contentCompleteCalled&&this.adsLoader.contentComplete(),this.contentCompleteCalled=!1,this.allAdsCompleted=!1};var Controller=function(e,r){this.settings={},this.contentAndAdsEndedListeners=[],this.isMobile=navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i),this.isIos=navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i),this.initWithSettings(r);var n=Object.assign({},{debug:this.settings.debug,timeout:this.settings.timeout,prerollTimeout:this.settings.prerollTimeout},r.contribAdsSettings||{});this.playerWrapper=new PlayerWrapper(e,n,this),this.adUi=new AdUi(this),this.sdkImpl=new SdkImpl(this)};Controller.IMA_DEFAULTS={adLabel:"Advertisement",adLabelNofN:"of",debug:!1,disableAdControls:!1,prerollTimeout:1e3,preventLateAdStart:!1,requestMode:"onLoad",showControlsForJSAds:!0,timeout:5e3},Controller.prototype.initWithSettings=function(e){this.settings=Object.assign({},Controller.IMA_DEFAULTS,e||{}),this.warnAboutDeprecatedSettings(),this.showCountdown=!0,!1===this.settings.showCountdown&&(this.showCountdown=!1)},Controller.prototype.warnAboutDeprecatedSettings=function(){var e=this;["adWillAutoplay","adsWillAutoplay","adWillPlayMuted","adsWillPlayMuted"].forEach(function(r){void 0!==e.settings[r]&&console.warn("WARNING: videojs.ima setting "+r+" is deprecated")})},Controller.prototype.getSettings=function(){return this.settings},Controller.prototype.getIsMobile=function(){return this.isMobile},Controller.prototype.getIsIos=function(){return this.isIos},Controller.prototype.injectAdContainerDiv=function(e){this.playerWrapper.injectAdContainerDiv(e)},Controller.prototype.getAdContainerDiv=function(){return this.adUi.getAdContainerDiv()},Controller.prototype.getContentPlayer=function(){return this.playerWrapper.getContentPlayer()},Controller.prototype.getContentPlayheadTracker=function(){return this.playerWrapper.getContentPlayheadTracker()},Controller.prototype.requestAds=function(){this.sdkImpl.requestAds()},Controller.prototype.setSetting=function(e,r){this.settings[e]=r},Controller.prototype.onErrorLoadingAds=function(e){this.adUi.onAdError(),this.playerWrapper.onAdError(e)},Controller.prototype.onAdPlayPauseClick=function(){this.sdkImpl.isAdPlaying()?(this.adUi.onAdsPaused(),this.sdkImpl.pauseAds()):(this.adUi.onAdsPlaying(),this.sdkImpl.resumeAds())},Controller.prototype.onAdMuteClick=function(){this.sdkImpl.isAdMuted()?(this.playerWrapper.unmute(),this.adUi.unmute(),this.sdkImpl.unmute()):(this.playerWrapper.mute(),this.adUi.mute(),this.sdkImpl.mute())},Controller.prototype.setVolume=function(e){this.playerWrapper.setVolume(e),this.sdkImpl.setVolume(e)},Controller.prototype.getPlayerVolume=function(){return this.playerWrapper.getVolume()},Controller.prototype.toggleFullscreen=function(){this.playerWrapper.toggleFullscreen()},Controller.prototype.onAdError=function(e){this.adUi.onAdError(),this.playerWrapper.onAdError(e)},Controller.prototype.onAdBreakStart=function(e){this.playerWrapper.onAdBreakStart(),this.adUi.onAdBreakStart(e)},Controller.prototype.showAdContainer=function(){this.adUi.showAdContainer()},Controller.prototype.onAdBreakEnd=function(){this.playerWrapper.onAdBreakEnd(),this.adUi.onAdBreakEnd()},Controller.prototype.onAllAdsCompleted=function(){this.adUi.onAllAdsCompleted(),this.playerWrapper.onAllAdsCompleted()},Controller.prototype.onAdsPaused=function(){this.adUi.onAdsPaused()},Controller.prototype.onAdsResumed=function(){this.adUi.onAdsResumed()},Controller.prototype.onAdPlayheadUpdated=function(e,r,n,i,a){this.adUi.updateAdUi(e,r,n,i,a)},Controller.prototype.onAdLog=function(e){this.playerWrapper.onAdLog(e)},Controller.prototype.getCurrentAd=function(){return this.sdkImpl.getCurrentAd()},Controller.prototype.playContent=function(){this.playerWrapper.play()},Controller.prototype.onLinearAdStart=function(){this.adUi.onLinearAdStart(),this.playerWrapper.onAdStart()},Controller.prototype.onNonLinearAdLoad=function(){this.adUi.onNonLinearAdLoad()},Controller.prototype.onNonLinearAdStart=function(){this.adUi.onNonLinearAdLoad(),this.playerWrapper.onAdStart()},Controller.prototype.getPlayerWidth=function(){return this.playerWrapper.getPlayerWidth()},Controller.prototype.getPlayerHeight=function(){return this.playerWrapper.getPlayerHeight()},Controller.prototype.onAdsReady=function(){this.playerWrapper.onAdsReady()},Controller.prototype.onPlayerResize=function(e,r){this.sdkImpl.onPlayerResize(e,r)},Controller.prototype.onContentComplete=function(){this.sdkImpl.onContentComplete()},Controller.prototype.onNoPostroll=function(){this.playerWrapper.onNoPostroll()},Controller.prototype.onContentAndAdsCompleted=function(){for(var e in this.contentAndAdsEndedListeners)"function"==typeof this.contentAndAdsEndedListeners[e]&&this.contentAndAdsEndedListeners[e]()},Controller.prototype.onPlayerDisposed=function(){this.contentAndAdsEndedListeners=[],this.sdkImpl.onPlayerDisposed()},Controller.prototype.onPlayerReadyForPreroll=function(){this.sdkImpl.onPlayerReadyForPreroll()},Controller.prototype.onAdTimeout=function(){this.sdkImpl.onAdTimeout()},Controller.prototype.onPlayerReady=function(){this.sdkImpl.onPlayerReady()},Controller.prototype.onPlayerEnterFullscreen=function(){this.adUi.onPlayerEnterFullscreen(),this.sdkImpl.onPlayerEnterFullscreen()},Controller.prototype.onPlayerExitFullscreen=function(){this.adUi.onPlayerExitFullscreen(),this.sdkImpl.onPlayerExitFullscreen()},Controller.prototype.onPlayerVolumeChanged=function(e){this.adUi.onPlayerVolumeChanged(e),this.sdkImpl.onPlayerVolumeChanged(e)},Controller.prototype.setContentWithAdTag=function(e,r){this.reset(),this.settings.adTagUrl=r||this.settings.adTagUrl,this.playerWrapper.changeSource(e)},Controller.prototype.setContentWithAdsResponse=function(e,r){this.reset(),this.settings.adsResponse=r||this.settings.adsResponse,this.playerWrapper.changeSource(e)},Controller.prototype.setContentWithAdsRequest=function(e,r){this.reset(),this.settings.adsRequest=r||this.settings.adsRequest,this.playerWrapper.changeSource(e)},Controller.prototype.reset=function(){this.sdkImpl.reset(),this.playerWrapper.reset(),this.adUi.reset()},Controller.prototype.addContentEndedListener=function(e){this.playerWrapper.addContentEndedListener(e)},Controller.prototype.addContentAndAdsEndedListener=function(e){this.contentAndAdsEndedListeners.push(e)},Controller.prototype.setAdBreakReadyListener=function(e){this.sdkImpl.setAdBreakReadyListener(e)},Controller.prototype.setShowCountdown=function(e){this.adUi.setShowCountdown(e),this.showCountdown=e,this.adUi.countdownDiv.style.display=this.showCountdown?"block":"none"},Controller.prototype.initializeAdDisplayContainer=function(){this.sdkImpl.initializeAdDisplayContainer()},Controller.prototype.playAdBreak=function(){this.sdkImpl.playAdBreak()},Controller.prototype.addEventListener=function(e,r){this.sdkImpl.addEventListener(e,r)},Controller.prototype.getAdsManager=function(){return this.sdkImpl.getAdsManager()},Controller.prototype.getPlayerId=function(){return this.playerWrapper.getPlayerId()},Controller.prototype.changeAdTag=function(e){this.reset(),this.settings.adTagUrl=e},Controller.prototype.pauseAd=function(){this.adUi.onAdsPaused(),this.sdkImpl.pauseAds()},Controller.prototype.resumeAd=function(){this.adUi.onAdsPlaying(),this.sdkImpl.resumeAds()},Controller.prototype.togglePlayback=function(){this.playerWrapper.togglePlayback()},Controller.prototype.adsWillAutoplay=function(){return void 0!==this.settings.adsWillAutoplay?this.settings.adsWillAutoplay:void 0!==this.settings.adWillAutoplay?this.settings.adWillAutoplay:!!this.playerWrapper.getPlayerOptions().autoplay},Controller.prototype.adsWillPlayMuted=function(){return void 0!==this.settings.adsWillPlayMuted?this.settings.adsWillPlayMuted:void 0!==this.settings.adWillPlayMuted?this.settings.adWillPlayMuted:void 0!==this.playerWrapper.getPlayerOptions().muted?this.playerWrapper.getPlayerOptions().muted:0==this.playerWrapper.getVolume
7()},Controller.prototype.triggerPlayerEvent=function(e,r){this.playerWrapper.triggerPlayerEvent(e,r)};var PlayerWrapper$1=function(e,r,n){this.vjsPlayer=e,this.daiController=n,this.vjsControls=this.vjsPlayer.getChild("controlBar"),this.h5Player=null,this.vjsPlayer.on("dispose",this.playerDisposedListener.bind(this)),this.vjsPlayer.on("pause",this.onPause.bind(this)),this.vjsPlayer.on("play",this.onPlay.bind(this)),this.vjsPlayer.on("seeked",this.onSeekEnd.bind(this)),this.vjsPlayer.ready(this.onPlayerReady.bind(this)),this.vjsPlayer.ads||window.console.warn("You may be using a version of videojs-contrib-ads that is not compatible with your version of video.js."),this.vjsPlayer.ads(r)};PlayerWrapper$1.prototype.playerDisposedListener=function(){this.contentEndedListeners=[],this.daiController.onPlayerDisposed()},PlayerWrapper$1.prototype.onPause=function(){this.daiController.isInAdBreak()&&this.vjsControls.show()},PlayerWrapper$1.prototype.onPlay=function(){this.daiController.isInAdBreak()&&this.vjsControls.hide()},PlayerWrapper$1.prototype.onSeekEnd=function(){this.daiController.onSeekEnd(this.vjsPlayer.currentTime())},PlayerWrapper$1.prototype.onPlayerReady=function(){this.h5Player=document.getElementById(this.getPlayerId()).getElementsByClassName("vjs-tech")[0],this.daiController.onPlayerReady()},PlayerWrapper$1.prototype.getStreamPlayer=function(){return this.h5Player},PlayerWrapper$1.prototype.getVjsPlayer=function(){return this.vjsPlayer},PlayerWrapper$1.prototype.getPlayerOptions=function(){return this.vjsPlayer.options_},PlayerWrapper$1.prototype.getPlayerId=function(){return this.vjsPlayer.id()},PlayerWrapper$1.prototype.onAdError=function(e){this.vjsControls.show();var r=void 0!==e.getError?e.getError():e.stack;this.vjsPlayer.trigger({type:"adserror",data:{AdError:r,AdErrorEvent:e}})},PlayerWrapper$1.prototype.onAdBreakStart=function(){this.vjsControls.hide()},PlayerWrapper$1.prototype.onAdBreakEnd=function(){this.vjsControls.show()},PlayerWrapper$1.prototype.reset=function(){this.vjsControls.show()};var SdkImpl$1=function(e){this.daiController=e,this.streamPlayer=null,this.vjsPlayer=null,this.streamManager=null,this.uiSettings=new google.ima.dai.api.UiSettings,this.isAdBreak=!1,this.isSnapback=!1,this.snapForwardTime=0,this.timedMetadata,this.metadataLoaded={},this.SOURCE_TYPES={hls:"application/x-mpegURL",dash:"application/dash+xml"}};SdkImpl$1.prototype.initImaDai=function(){this.streamPlayer=this.daiController.getStreamPlayer(),this.vjsPlayer=this.daiController.getVjsPlayer(),this.createAdUiDiv(),this.daiController.getSettings().locale&&this.uiSettings.setLocale(this.daiController.getSettings().locale),this.streamManager=new google.ima.dai.api.StreamManager(this.streamPlayer,this.adUiDiv,this.uiSettings),this.streamPlayer.addEventListener("pause",this.onStreamPause),this.streamPlayer.addEventListener("play",this.onStreamPlay),this.streamManager.addEventListener([google.ima.dai.api.StreamEvent.Type.LOADED,google.ima.dai.api.StreamEvent.Type.ERROR,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED],this.onStreamEvent.bind(this),!1),this.vjsPlayer.textTracks().onaddtrack=this.onAddTrack.bind(this),this.vjsPlayer.trigger({type:"stream-manager",StreamManager:this.streamManager}),this.requestStream()},SdkImpl$1.prototype.onAddTrack=function(e){var r=this,n=e.track;"metadata"===n.kind&&(n.mode="hidden",n.addEventListener("cuechange",function(e){var i,a=function(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,r)}}(e))){n&&(e=n);var i=0,F=function(){};return{s:F,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}(n.activeCues_);try{for(a.s();!(i=a.n()).done;){var o=i.value,s={};s[o.value.key]=o.value.data,r.streamManager.onTimedMetadata(s)}}catch(e){a.e(e)}finally{a.f()}}))},SdkImpl$1.prototype.createAdUiDiv=function(){var e=document.createElement("div");e.id="ad-ui",e.style.height="calc(100% - 3em)",this.streamPlayer.parentNode.appendChild(e),this.adUiDiv=e},SdkImpl$1.prototype.onStreamPause=function(){this.isAdBreak&&(this.adUiDiv.style.display="none")},SdkImpl$1.prototype.onStreamPlay=function(){this.isAdBreak&&(this.adUiDiv.style.display="block")},SdkImpl$1.prototype.onSeekEnd=function(e){if("live"!==this.daiController.getSettings().streamType){if(this.isSnapback){this.isSnapback=!1;return}var r=this.streamManager.previousCuePointForStreamTime(e);r&&!r.played&&(this.isSnapback=!0,this.snapForwardTime=e,this.vjsPlayer.currentTime(r.start))}},SdkImpl$1.prototype.onStreamEvent=function(e){switch(e.type){case google.ima.dai.api.StreamEvent.Type.LOADED:this.loadUrl(e.getStreamData().url);break;case google.ima.dai.api.StreamEvent.Type.ERROR:window.console.warn("Error loading stream, attempting to play backup stream. "+e.getStreamData().errorMessage),this.daiController.onErrorLoadingAds(e),this.daiController.getSettings().fallbackStreamUrl&&this.loadurl(this.daiController.getSettings().fallbackStreamUrl);break;case google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED:this.isAdBreak=!0,this.adUiDiv.style.display="block",this.daiController.onAdBreakStart();break;case google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED:this.isAdBreak=!1,this.adUiDiv.style.display="none",this.daiController.onAdBreakEnd(),this.snapForwardTime&&this.snapForwardTime>this.vjsPlayer.currentTime()&&(this.vjsPlayer.currentTime(this.snapForwardTime),this.snapForwardTime=0)}},SdkImpl$1.prototype.loadUrl=function(e){this.vjsPlayer.ready((function(){var r=this.daiController.getSettings().streamFormat;this.vjsPlayer.src({src:e,type:this.SOURCE_TYPES[r]});var n=this.daiController.getSettings().bookmarkTime;if(n){var i=this.streamManager.streamTimeForContentTime(n);this.isSnapback=!0,this.vjsPlayer.currentTime(i)}}).bind(this))},SdkImpl$1.prototype.requestStream=function(){var e,r=this.daiController.getSettings().streamType;if("vod"===r?((e=new google.ima.dai.api.VODStreamRequest).contentSourceId=this.daiController.getSettings().cmsId,e.videoId=this.daiController.getSettings().videoId):"live"===r?(e=new google.ima.dai.api.LiveStreamRequest).assetKey=this.daiController.getSettings().assetKey:window.console.warn("No valid stream type selected"),e.format=this.daiController.getSettings().streamFormat,this.daiController.getSettings().apiKey&&(e.apiKey=this.daiController.getSettings().apiKey),this.daiController.getSettings().authToken&&(e.authToken=this.daiController.getSettings().authToken),this.daiController.getSettings().adTagParameters&&(e.adTagParameters=this.daiController.getSettings().adTagParameters),this.daiController.getSettings().streamActivityMonitorId&&(e.streamActivityMonitorId=this.daiController.getSettings().streamActivityMonitorId),this.daiController.getSettings().omidMode){e.omidAccessModeRules={};var n=this.daiController.getSettings().omidMode;n.FULL&&(e.omidAccessModeRules[google.ima.OmidAccessMode.FULL]=n.FULL),n.DOMAIN&&(e.omidAccessModeRules[google.ima.OmidAccessMode.DOMAIN]=n.DOMAIN),n.LIMITED&&(e.omidAccessModeRules[google.ima.OmidAccessMode.LIMITED]=n.LIMITED)}this.streamManager.requestStream(e),this.vjsPlayer.trigger({type:"stream-request",StreamRequest:e})},SdkImpl$1.prototype.onPlayerReady=function(){this.initImaDai()},SdkImpl$1.prototype.onPlayerDisposed=function(){this.streamManager&&this.streamManager.reset()},SdkImpl$1.prototype.getStreamManager=function(){return this.StreamManager},SdkImpl$1.prototype.reset=function(){this.StreamManager&&this.StreamManager.reset()};var DaiController=function(e,r){this.inAdBreak=!1,this.settings={},this.isMobile=navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i),this.isIos=navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i),this.initWithSettings(r);var n=Object.assign({},{debug:this.settings.debug,timeout:this.settings.timeout,prerollTimeout:this.settings.prerollTimeout},r.contribAdsSettings||{});this.playerWrapper=new PlayerWrapper$1(e,n,this),this.sdkImpl=new SdkImpl$1(this)};DaiController.IMA_DEFAULTS={adLabel:"Advertisement",adLabelNofN:"of",debug:!1,disableAdControls:!1,showControlsForJSAds:!0},DaiController.prototype.initWithSettings=function(e){this.settings=Object.assign({},DaiController.IMA_DEFAULTS,e||{}),this.warnAboutDeprecatedSettings(),this.showCountdown=!0,!1===this.settings.showCountdown&&(this.showCountdown=!1)},DaiController.prototype.warnAboutDeprecatedSettings=function(){var e=this;[].forEach(function(r){void 0!==e.settings[r]&&console.warn("WARNING: videojs.imaDai setting "+r+" is deprecated")})},DaiController.prototype.getSettings=function(){return this.settings},DaiController.prototype.getIsMobile=function(){return this.isMobile},DaiController.prototype.getIsIos=function(){return this.isIos},DaiController.prototype.getStreamPlayer=function(){return this.playerWrapper.getStreamPlayer()},DaiController.prototype.getVjsPlayer=function(){return this.playerWrapper.getVjsPlayer()},DaiController.prototype.requestStream=function(){this.sdkImpl.requestStream()},DaiController.prototype.setSetting=function(e,r){this.settings[e]=r},DaiController.prototype.onErrorLoadingAds=function(e){this.playerWrapper.onAdError(e)},DaiController.prototype.onAdError=function(e){this.playerWrapper.onAdError(e)},DaiController.prototype.onAdBreakStart=function(){this.inAdBreak=!0,this.playerWrapper.onAdBreakStart()},DaiController.prototype.onAdBreakEnd=function(){this.inAdBreak=!1,this.playerWrapper.onAdBreakEnd()},DaiController.prototype.onPlayerDisposed=function(){this.contentAndAdsEndedListeners=[],this.sdkImpl.onPlayerDisposed()},DaiController.prototype.isInAdBreak=function(){return this.inAdBreak},DaiController.prototype.onSeekEnd=function(e){this.sdkImpl.onSeekEnd(e)},DaiController.prototype.onPlayerReady=function(){this.sdkImpl.onPlayerReady()},DaiController.prototype.reset=function(){this.sdkImpl.reset(),this.playerWrapper.reset()},DaiController.prototype.addEventListener=function(e,r){this.sdkImpl.addEventListener(e,r)},DaiController.prototype.getStreamManager=function(){return this.sdkImpl.getStreamManager()},DaiController.prototype.getPlayerId=function(){return this.playerWrapper.getPlayerId()},DaiController.prototype.streamWillAutoplay=function(){return void 0!==this.settings.streamWillAutoplay?this.settings.streamWillAutoplay:!!this.playerWrapper.getPlayerOptions().autoplay},DaiController.prototype.triggerPlayerEvent=function(e,r){this.playerWrapper.triggerPlayerEvent(e,r)};var ImaPlugin=function(e,r){this.controller=new Controller(e,r),this.addContentAndAdsEndedListener=(function(e){this.controller.addContentAndAdsEndedListener(e)}).bind(this),this.addContentEndedListener=(function(e){this.controller.addContentEndedListener(e)}).bind(this),this.addEventListener=(function(e,r){this.controller.addEventListener(e,r)}).bind(this),this.changeAdTag=(function(e){this.controller.changeAdTag(e)}).bind(this),this.getAdsManager=(function(){return this.controller.getAdsManager()}).bind(this),this.initializeAdDisplayContainer=(function(){this.controller.initializeAdDisplayContainer()}).bind(this),this.pauseAd=(function(){this.controller.pauseAd()}).bind(this),this.playAdBreak=(function(){this.controller.playAdBreak()}).bind(this),this.requestAds=(function(){this.controller.requestAds()}).bind(this),this.resumeAd=(function(){this.controller.resumeAd()}).bind(this),this.setAdBreakReadyListener=(function(e){this.controller.setAdBreakReadyListener(e)}).bind(this),this.setContentWithAdTag=(function(e,r){this.controller.setContentWithAdTag(e,r)}).bind(this),this.setContentWithAdsResponse=(function(e,r){this.controller.setContentWithAdsResponse(e,r)}).bind(this),this.setContentWithAdsRequest=(function(e,r){this.controller.setContentWithAdsRequest(e,r)}).bind(this),this.setShowCountdown=(function(e){this.controller.setShowCountdown(e)}).bind(this)},ImaDaiPlugin=function(e,r){this.controller=new DaiController(e,r),this.streamEndedListener=(function(e){this.controller.addStreamEndedListener(e)}).bind(this),this.addEventListener=(function(e,r){this.controller.addEventListener(e,r)}
7).bind(this),this.getStreamManager=(function(){return this.controller.getStreamManager()}).bind(this)},a=_createClass(function LiveStream(e,r){if(_classCallCheck(this,LiveStream),"hls"!==(e=e.toLowerCase())&&"dash"!==e){window.console.error("VodStream error: incorrect streamFormat.");return}if("dash"===e){window.console.error("streamFormat error: DASH streams are notcurrently supported by this plugin.");return}if("string"!=typeof r){window.console.error("assetKey error: value must be string.");return}this.streamFormat=e,this.assetKey=r}),o=_createClass(function VodStream(e,r,n){if(_classCallCheck(this,VodStream),"hls"!==(e=e.toLowerCase())&&"dash"!==e){window.console.error("VodStream error: incorrect streamFormat.");return}if("dash"===e){window.console.error("streamFormat error: DASH streams are notcurrently supported by this plugin.");return}if("string"!=typeof r){window.console.error("cmsId error: value must be string.");return}if("string"!=typeof n){window.console.error("videoId error: value must be string.");return}this.streamFormat=e,this.cmsId=r,this.videoId=n}),s=i.default.registerPlugin||i.default.plugin;s("ima",function(e){this.ima=new ImaPlugin(this,e)}),s("imaDai",function(e,r){if(e instanceof a)r.streamType="live",r.assetKey=e.assetKey;else if(e instanceof o)r.streamType="vod",r.cmsId=e.cmsId,r.videoId=e.videoId;else{window.console.error("initDai() first parameter must be an instance of LiveStream or VodStream.");return}r.streamFormat=e.streamFormat,this.imaDai=new ImaDaiPlugin(this,r)})},51796:function(e,r,n){var i=n(59265),a=e.exports={WebVTT:n(91687),VTTCue:n(74770),VTTRegion:n(73810)};i.vttjs=a,i.WebVTT=a.WebVTT;var o=a.VTTCue,s=a.VTTRegion,l=i.VTTCue,u=i.VTTRegion;a.shim=function(){i.VTTCue=o,i.VTTRegion=s},a.restore=function(){i.VTTCue=l,i.VTTRegion=u},i.VTTCue||a.shim()},91687:function(e,r,n){var i=n(27092),a=Object.create||function(){function F(){}return function(e){if(1!=arguments.length)throw Error("Object.create shim only accepts one parameter.");return F.prototype=e,new F}}();function ParsingError(e,r){this.name="ParsingError",this.code=e.code,this.message=r||e.message}function parseTimeStamp(e){function computeSeconds(e,r,n,i){return(0|e)*3600+(0|r)*60+(0|n)+(0|i)/1e3}var r=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return r?r[3]?computeSeconds(r[1],r[2],r[3].replace(":",""),r[4]):r[1]>59?computeSeconds(r[1],r[2],0,r[4]):computeSeconds(0,r[1],r[2],r[4]):null}function Settings(){this.values=a(null)}function parseOptions(e,r,n,i){var a=i?e.split(i):[e];for(var o in a)if("string"==typeof a[o]){var s=a[o].split(n);2===s.length&&r(s[0].trim(),s[1].trim())}}ParsingError.prototype=a(Error.prototype),ParsingError.prototype.constructor=ParsingError,ParsingError.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},Settings.prototype={set:function(e,r){this.get(e)||""===r||(this.values[e]=r)},get:function(e,r,n){return n?this.has(e)?this.values[e]:r[n]:this.has(e)?this.values[e]:r},has:function(e){return e in this.values},alt:function(e,r,n){for(var i=0;i<n.length;++i)if(r===n[i]){this.set(e,r);break}},integer:function(e,r){/^-?\d+$/.test(r)&&this.set(e,parseInt(r,10))},percent:function(e,r){return!!(r.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(r=parseFloat(r))>=0&&r<=100)&&(this.set(e,r),!0)}};var o=i.createElement&&i.createElement("textarea"),s={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},l={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},u={v:"title",lang:"lang"},d={rt:"ruby"};function parseContent(e,r){for(var n,i=e.document.createElement("div"),a=i,c=[];null!==(n=function(){if(!r)return null;var e,n=r.match(/^([^<]*)(<[^>]*>?)?/);return e=n[1]?n[1]:n[2],r=r.substr(e.length),e}());){if("<"===n[0]){if("/"===n[1]){c.length&&c[c.length-1]===n.substr(2).replace(">","")&&(c.pop(),a=a.parentNode);continue}var p,h,g,f,m=parseTimeStamp(n.substr(1,n.length-2));if(m){f=e.document.createProcessingInstruction("timestamp",m),a.appendChild(f);continue}var y=n.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y||!(f=function(r,n){var i=s[r];if(!i)return null;var a=e.document.createElement(i),o=u[r];return o&&n&&(a[o]=n.trim()),a}(y[1],y[3]))||(h=a,d[(g=f).localName]&&d[g.localName]!==h.localName))continue;if(y[2]){var A=y[2].split(".");A.forEach(function(e){var r=/^bg_/.test(e),n=r?e.slice(3):e;if(l.hasOwnProperty(n)){var i=r?"background-color":"color",a=l[n];f.style[i]=a}}),f.className=A.join(" ")}c.push(y[1]),a.appendChild(f),a=f;continue}a.appendChild(e.document.createTextNode((p=n,o.innerHTML=p,p=o.textContent,o.textContent="",p)))}return i}var c=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551
vendor: 5,102 bytes, line 7
7],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function StyleBox(){}function CueStyleBox(e,r,n){StyleBox.call(this),this.cue=r,this.cueDiv=parseContent(e,r.text);var i={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===r.vertical?"horizontal-tb":"lr"===r.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(i,this.cueDiv),this.div=e.document.createElement("div"),i={direction:function(e){var r=[],n="";if(!e||!e.childNodes)return"ltr";function pushNodes(e,r){for(var n=r.childNodes.length-1;n>=0;n--)e.push(r.childNodes[n])}for(pushNodes(r,e);n=function nextTextNode(e){if(!e||!e.length)return null;var r=e.pop(),n=r.textContent||r.innerText;if(n){var i=n.match(/^.*(\n|\r)/);return i?(e.length=0,i[0]):n}return"ruby"===r.tagName?nextTextNode(e):r.childNodes?(pushNodes(e,r),nextTextNode(e)):void 0}(r);)for(var i=0;i<n.length;i++)if(function(e){for(var r=0;r<c.length;r++){var n=c[r];if(e>=n[0]&&e<=n[1])return!0}return!1}(n.charCodeAt(i)))return"rtl";return"ltr"}(this.cueDiv),writingMode:""===r.vertical?"horizontal-tb":"lr"===r.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===r.align?"center":r.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv);var a=0;switch(r.positionAlign){case"start":case"line-left":a=r.position;break;case"center":a=r.position-r.size/2;break;case"end":case"line-right":a=r.position-r.size}""===r.vertical?this.applyStyles({left:this.formatStyle(a,"%"),width:this.formatStyle(r.size,"%")}):this.applyStyles({top:this.formatStyle(a,"%"),height:this.formatStyle(r.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function BoxPosition(e){var r,n,i,a;if(e.div){n=e.div.offsetHeight,i=e.div.offsetWidth,a=e.div.offsetTop;var o=(o=e.div.childNodes)&&(o=o[0])&&o.getClientRects&&o.getClientRects();e=e.div.getBoundingClientRect(),r=o?Math.max(o[0]&&o[0].height||0,e.height/o.length):0}this.left=e.left,this.right=e.right,this.top=e.top||a,this.height=e.height||n,this.bottom=e.bottom||a+(e.height||n),this.width=e.width||i,this.lineHeight=void 0!==r?r:e.lineHeight}function WebVTT(){}StyleBox.prototype.applyStyles=function(e,r){for(var n in r=r||this.div,e)e.hasOwnProperty(n)&&(r.style[n]=e[n])},StyleBox.prototype.formatStyle=function(e,r){return 0===e?0:e+r},CueStyleBox.prototype=a(StyleBox.prototype),CueStyleBox.prototype.constructor=CueStyleBox,BoxPosition.prototype.move=function(e,r){switch(r=void 0!==r?r:this.lineHeight,e){case"+x":this.left+=r,this.right+=r;break;case"-x":this.left-=r,this.right-=r;break;case"+y":this.top+=r,this.bottom+=r;break;case"-y":this.top-=r,this.bottom-=r}},BoxPosition.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},BoxPosition.prototype.overlapsAny=function(e){for(var r=0;r<e.length;r++)if(this.overlaps(e[r]))return!0;return!1},BoxPosition.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},BoxPosition.prototype.overlapsOppositeAxis=function(e,r){switch(r){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},BoxPosition.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},BoxPosition.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},BoxPosition.getSimpleBoxPosition=function(e){var r=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,i=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||i,height:e.height||r,bottom:e.bottom||i+(e.height||r),width:e.width||n}},WebVTT.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},WebVTT.convertCueToDOMTree=function(e,r){return e&&r?parseContent(e,r):null},WebVTT.processCues=function(e,r,n){if(!e||!r||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=e.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",
7i.style.margin="1.5%",n.appendChild(i),!function(e){for(var r=0;r<e.length;r++)if(e[r].hasBeenReset||!e[r].displayState)return!0;return!1}(r)){for(var a=0;a<r.length;a++)i.appendChild(r[a].displayState);return}var o=[],s=BoxPosition.getSimpleBoxPosition(i),l={font:Math.round(5*s.height)/100+"px sans-serif"};!function(){for(var n,a,u=0;u<r.length;u++)a=r[u],n=new CueStyleBox(e,a,l),i.appendChild(n.div),function(e,r,n,i){var a=new BoxPosition(r),o=r.cue,s=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return -1;for(var r=e.track,n=r.textTrackList,i=0,a=0;a<n.length&&n[a]!==r;a++)"showing"===n[a].mode&&i++;return -1*++i}(o),l=[];if(o.snapToLines){switch(o.vertical){case"":l=["+y","-y"],u="height";break;case"rl":l=["+x","-x"],u="width";break;case"lr":l=["-x","+x"],u="width"}var u,d=a.lineHeight,c=d*Math.round(s),p=n[u]+d,h=l[0];Math.abs(c)>p&&(c=(c<0?-1:1)*(Math.ceil(p/d)*d)),s<0&&(c+=""===o.vertical?n.height:n.width,l=l.reverse()),a.move(h,c)}else{var g=a.lineHeight/n.height*100;switch(o.lineAlign){case"center":s-=g/2;break;case"end":s-=g}switch(o.vertical){case"":r.applyStyles({top:r.formatStyle(s,"%")});break;case"rl":r.applyStyles({left:r.formatStyle(s,"%")});break;case"lr":r.applyStyles({right:r.formatStyle(s,"%")})}l=["+y","-x","+x","-y"],a=new BoxPosition(r)}var f=function(e,r){for(var a,o=new BoxPosition(e),s=1,l=0;l<r.length;l++){for(;e.overlapsOppositeAxis(n,r[l])||e.within(n)&&e.overlapsAny(i);)e.move(r[l]);if(e.within(n))return e;var u=e.intersectPercentage(n);s>u&&(a=new BoxPosition(e),s=u),e=new BoxPosition(o)}return a||o}(a,l);r.move(f.toCSSCompatValues(n))}(0,n,s,o),a.displayState=n.div,o.push(BoxPosition.getSimpleBoxPosition(n))}()},WebVTT.Parser=function(e,r,n){n||(n=r,r={}),r||(r={}),this.window=e,this.vttjs=r,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},WebVTT.Parser.prototype={reportOrThrowError:function(e){if(e instanceof ParsingError)this.onparsingerror&&this.onparsingerror(e);else throw e},parse:function(e){var r=this;function collectNextLine(){for(var e=r.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var i=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,r.buffer=e.substr(n),i}e&&(r.buffer+=r.decoder.decode(e,{stream:!0}));try{if("INITIAL"===r.state){if(!/\r\n|\n/.test(r.buffer))return this;var n,i,a=(i=collectNextLine()).match(/^WEBVTT([ \t].*)?$/);if(!a||!a[0])throw new ParsingError(ParsingError.Errors.BadSignature);r.state="HEADER"}for(var o=!1;r.buffer&&/\r\n|\n/.test(r.buffer);)switch(o?o=!1:i=collectNextLine(),r.state){case"HEADER":/:/.test(i)?(n=i).match(/X-TIMESTAMP-MAP/)?parseOptions(n,function(e,n){if("X-TIMESTAMP-MAP"===e){var i;i=new Settings,parseOptions(n,function(e,r){switch(e){case"MPEGT":i.integer(e+"S",r);break;case"LOCA":i.set(e+"L",parseTimeStamp(r))}},/[^\d]:/,/,/),r.ontimestampmap&&r.ontimestampmap({MPEGTS:i.get("MPEGTS"),LOCAL:i.get("LOCAL")})}},/=/):parseOptions(n,function(e,n){"Region"===e&&function(e){var n=new Settings;if(parseOptions(e,function(e,r){switch(e){case"id":n.set(e,r);break;case"width":n.percent(e,r);break;case"lines":n.integer(e,r);break;case"regionanchor":case"viewportanchor":var i=r.split(",");if(2!==i.length)break;var a=new Settings;if(a.percent("x",i[0]),a.percent("y",i[1]),!a.has("x")||!a.has("y"))break;n.set(e+"X",a.get("x")),n.set(e+"Y",a.get("y"));break;case"scroll":n.alt(e,r,["up"])}},/=/,/\s/),n.has("id")){var i=new(r.vttjs.VTTRegion||r.window.VTTRegion);i.width=n.get("width",100),i.lines=n.get("lines",3),i.regionAnchorX=n.get("regionanchorX",0),i.regionAnchorY=n.get("regionanchorY",100),i.viewportAnchorX=n.get("viewportanchorX",0),i.viewportAnchorY=n.get("viewportanchorY",100),i.scroll=n.get("scroll",""),r.onregion&&r.onregion(i),r.regionList.push({id:n.get("id"),region:i})}}(n)},/:/):i||(r.state="ID");continue;case"NOTE":i||(r.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){r.state="NOTE";break}if(!i)continue;r.cue=new(r.vttjs.VTTCue||r.window.VTTCue)(0,0,"");try{r.cue.align="center"}catch(e){r.cue.align="middle"}if(r.state="CUE",-1===i.indexOf("-->")){r.cue.id=i;continue}case"CUE":try{!function(e,r,n){var i=e;function consumeTimeStamp(){var r=parseTimeStamp(e);if(null===r)throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed timestamp: "+i);return e=e.replace(/^[^\sa-zA-Z-]+/,""),r}function skipWhitespace(){e=e.replace(/^\s+/,"")}if(skipWhitespace(),r.startTime=consumeTimeStamp(),skipWhitespace(),"-->"!==e.substr(0,3))throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+i);e=e.substr(3),skipWhitespace(),r.endTime=consumeTimeStamp(),skipWhitespace(),function(e,r){var i=new Settings;parseOptions(e,function(e,r){switch(e){case"region":for(var a=n.length-1;a>=0;a--)if(n[a].id===r){i.set(e,n[a].region);break}break;case"vertical":i.alt(e,r,["rl","lr"]);break;case"line":var o=r.split(","),s=o[0];i.integer(e,s),i.percent(e,s)&&i.set("snapToLines",!1),i.alt(e,s,["auto"]),2===o.length&&i.alt("lineAlign",o[1],["start","center","end"]);break;case"position":o=r.split(","),i.percent(e,o[0]),2===o.length&&i.alt("positionAlign",o[1],["start","center","end"]);break;case"size":i.percent(e,r);break;case"align":i.alt(e,r,["start","center","end","left","right"])}},/:/,/\s/),r.region=i.get("region",null),r.vertical=i.get("vertical","");try{r.line=i.get("line","auto")}catch(e){}r.lineAlign=i.get("lineAlign","start"),r.snapToLines=i.get("snapToLines",!0),r.size=i.get("size",100);try{r.align=i.get("align","center")}catch(e){r.align=i.get("align","middle")}try{r.position=i.get("position","auto")}catch(e){r.position=i.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},r.align)}r.positionAlign=i.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},r.align)}(e,r)}(i,r.cue,r.regionList)}catch(e){r.reportOrThrowError(e),r.cue=null,r.state="BADCUE";continue}r.state="CUETEXT";continue;case"CUETEXT":var s=-1!==i.indexOf("-->");if(!i||s&&(o=!0)){r.oncue&&r.oncue(r.cue),r.cue=null,r.state="ID";continue}r.cue.text&&(r.cue.text+="\n"),r.cue.text+=i.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":i||(r.state="ID");continue}}catch(e){r.reportOrThrowError(e),"CUETEXT"===r.state&&r.cue&&r.oncue&&r.oncue(r.cue),r.cue=null,r.state="INITIAL"===r.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new ParsingError(ParsingError.Errors.BadSignature)}catch(e){this.reportOrThrowError(e)}return this.onflush&&this.onflush(),this}},e.exports=WebVTT}
7,74770:function(e){var r={"":1,lr:1,rl:1},n={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function findAlignSetting(e){return"string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()}function VTTCue(e,n,i){this.hasBeenReset=!1;var a="",o=!1,s=e,l=n,u=i,d=null,c="",p=!0,h="auto",g="start",f="auto",m="auto",y=100,A="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return a},set:function(e){a=""+e}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(e){o=!!e}},startTime:{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e)throw TypeError("Start time must be set to a number.");s=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e)throw TypeError("End time must be set to a number.");l=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return u},set:function(e){u=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return d},set:function(e){d=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return c},set:function(e){var n="string"==typeof e&&!!r[e.toLowerCase()]&&e.toLowerCase();if(!1===n)throw SyntaxError("Vertical: an invalid or illegal direction string was specified.");c=n,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return p},set:function(e){p=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return h},set:function(e){if("number"!=typeof e&&"auto"!==e)throw SyntaxError("Line: an invalid number or illegal string was specified.");h=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return g},set:function(e){var r=findAlignSetting(e);r?(g=r,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return f},set:function(e){if(e<0||e>100)throw Error("Position must be between 0 and 100.");f=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return m},set:function(e){var r=findAlignSetting(e);r?(m=r,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(e){if(e<0||e>100)throw Error("Size must be between 0 and 100.");y=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return A},set:function(e){var r=findAlignSetting(e);if(!r)throw SyntaxError("align: an invalid or illegal alignment string was specified.");A=r,this.hasBeenReset=!0}}}),this.displayState=void 0}VTTCue.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=VTTCue},73810:function(e){var r={"":!0,up:!0};function isValidPercentValue(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,n=3,i=0,a=100,o=0,s=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(r){if(!isValidPercentValue(r))throw Error("Width must be between 0 and 100.");e=r}},lines:{enumerable:!0,get:function(){return n},set:function(e){if("number"!=typeof e)throw TypeError("Lines must be set to a number.");n=e}},regionAnchorY:{enumerable:!0,get:function(){return a}
7,set:function(e){if(!isValidPercentValue(e))throw Error("RegionAnchorX must be between 0 and 100.");a=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!isValidPercentValue(e))throw Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!isValidPercentValue(e))throw Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(e){if(!isValidPercentValue(e))throw Error("ViewportAnchorX must be between 0 and 100.");o=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var n="string"==typeof e&&!!r[e.toLowerCase()]&&e.toLowerCase();!1===n?console.warn("Scroll: an invalid or illegal string was specified."):l=n}}})}},58049:function(e,r,n){var i;i=n(33196),e.exports=function(e){"use strict";var r,n,i,a,o,s,l,u=e.browser.IS_IOS||e.browser.IS_NATIVE_ANDROID,d=e.getTech("Tech");let Youtube=class Youtube extends d{constructor(e,r){super(e,r),this.setPoster(e.poster),this.setSrc(this.options_.source,!0),this.setTimeout((function(){this.el_&&(this.el_.parentNode.className+=" vjs-youtube",u&&(this.el_.parentNode.className+=" vjs-youtube-mobile"),Youtube.isApiReady?this.initYTPlayer():Youtube.apiReadyQueue.push(this))}).bind(this))}dispose(){if(this.ytPlayer)this.ytPlayer.stopVideo&&this.ytPlayer.stopVideo(),this.ytPlayer.destroy&&this.ytPlayer.destroy();else{var e=Youtube.apiReadyQueue.indexOf(this);-1!==e&&Youtube.apiReadyQueue.splice(e,1)}this.ytPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-youtube","").replace(" vjs-youtube-mobile",""),this.el_.parentNode.removeChild(this.el_),d.prototype.dispose.call(this)}createEl(){var e=document.createElement("div");e.setAttribute("id",this.options_.techId),e.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute"),e.setAttribute("class","vjs-tech");var r=document.createElement("div");if(r.appendChild(e),!u&&!this.options_.ytControls){var n=document.createElement("div");n.setAttribute("class","vjs-iframe-blocker"),n.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),n.onclick=(function(){this.pause()}).bind(this),r.appendChild(n)}return r}initYTPlayer(){var e={controls:0,modestbranding:1,rel:0,showinfo:0,loop:this.options_.loop?1:0};if(void 0!==this.options_.autohide&&(e.autohide=this.options_.autohide),void 0!==this.options_.cc_load_policy&&(e.cc_load_policy=this.options_.cc_load_policy),void 0!==this.options_.ytControls&&(e.controls=this.options_.ytControls),void 0!==this.options_.disablekb&&(e.disablekb=this.options_.disablekb),void 0!==this.options_.color&&(e.color=this.options_.color),e.controls?void 0!==this.options_.fs&&(e.fs=this.options_.fs):e.fs=0,-1!==this.options_.source.src.indexOf("end=")){var r=this.options_.source.src.match(/end=([0-9]*)/);this.options_.end=parseInt(r[1])}if(void 0!==this.options_.end&&(e.end=this.options_.end),void 0!==this.options_.hl?e.hl=this.options_.hl:void 0!==this.options_.language&&(e.hl=this.options_.language.substr(0,2)),void 0!==this.options_.iv_load_policy&&(e.iv_load_policy=this.options_.iv_load_policy),void 0!==this.options_.list?e.list=this.options_.list:this.url&&void 0!==this.url.listId&&(e.list=this.url.listId),void 0!==this.options_.listType&&(e.listType=this.options_.listType),void 0!==this.options_.modestbranding&&(e.modestbranding=this.options_.modestbranding),void 0!==this.options_.playlist&&(e.playlist=this.options_.playlist),void 0!==this.options_.playsinline&&(e.playsinline=this.options_.playsinline),void 0!==this.options_.rel&&(e.rel=this.options_.rel),void 0!==this.options_.showinfo&&(e.showinfo=this.options_.showinfo),-1!==this.options_.source.src.indexOf("start=")){var n=this.options_.source.src.match(/start=([0-9]*)/);this.options_.start=parseInt(n[1])}if(void 0!==this.options_.start&&(e.start=this.options_.start),void 0!==this.options_.theme&&(e.theme=this.options_.theme),void 0!==this.options_.customVars){var i=this.options_.customVars;
vendor: 6,385 bytes, line 7
7Object.keys(i).forEach(function(r){e[r]=i[r]})}this.activeVideoId=this.url?this.url.videoId:null,this.activeList=e.list;var a={videoId:this.activeVideoId,playerVars:e,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onPlaybackRateChange:this.onPlayerPlaybackRateChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onVolumeChange:this.onPlayerVolumeChange.bind(this),onError:this.onPlayerError.bind(this)}};void 0!==this.options_.enablePrivacyEnhancedMode&&this.options_.enablePrivacyEnhancedMode&&(a.host="https://www.youtube-nocookie.com"),this.ytPlayer=new YT.Player(this.options_.techId,a)}onPlayerReady(){this.options_.muted&&this.ytPlayer.mute(),this.ytPlayer.getAvailablePlaybackRates().length>1&&(this.featuresPlaybackRate=!0),this.playerReady_=!0,this.triggerReady(),this.playOnReady?this.play():this.cueOnReady&&(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)}onPlayerPlaybackQualityChange(){}onPlayerPlaybackRateChange(){this.trigger("ratechange")}onPlayerStateChange(e){var r=e.data;if(r!==this.lastState&&!this.errorNumber)switch(this.lastState=r,r){case -1:this.trigger("loadstart"),this.trigger("loadedmetadata"),this.trigger("durationchange"),this.trigger("ratechange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate"),this.trigger("durationchange"),this.trigger("playing"),this.trigger("play"),this.isSeeking&&this.onSeeked();break;case YT.PlayerState.PAUSED:this.trigger("canplay"),this.isSeeking?this.onSeeked():this.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate"),this.player_.trigger("waiting")}}onPlayerVolumeChange(){this.trigger("volumechange")}onPlayerError(e){this.errorNumber=e.data,this.trigger("pause"),this.trigger("error")}error(){var e=1e3+this.errorNumber;switch(this.errorNumber){case 5:return{code:e,message:"Error while trying to play the video"};case 2:case 100:return{code:e,message:"Unable to find the video"};case 101:case 150:return{code:e,message:"Playback on other Websites has been disabled by the video owner."}}return{code:e,message:"YouTube unknown error ("+this.errorNumber+")"}}loadVideoById_(e){var r={videoId:e};this.options_.start&&(r.startSeconds=this.options_.start),this.options_.end&&(r.endSeconds=this.options_.end),this.ytPlayer.loadVideoById(r)}cueVideoById_(e){var r={videoId:e};this.options_.start&&(r.startSeconds=this.options_.start),this.options_.end&&(r.endSeconds=this.options_.end),this.ytPlayer.cueVideoById(r)}src(e){return e&&this.setSrc({src:e}),this.source}poster(){return u?null:this.poster_}setPoster(e){this.poster_=e}setSrc(e){e&&e.src&&(delete this.errorNumber,this.source=e,this.url=Youtube.parseUrl(e.src),!this.options_.poster&&this.url.videoId&&(this.poster_="https://img.youtube.com/vi/"+this.url.videoId+"/0.jpg",this.trigger("posterchange"),this.checkHighResPoster()),this.options_.autoplay&&!u?this.isReady_?this.play():this.playOnReady=!0:this.activeVideoId!==this.url.videoId&&(this.isReady_?(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId):this.cueOnReady=!0))}autoplay(){return this.options_.autoplay}setAutoplay(e){this.options_.autoplay=e}loop(){return this.options_.loop}setLoop(e){this.options_.loop=e}play(){this.url&&this.url.videoId&&(this.wasPausedBeforeSeek=!1,this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.loadVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger("waiting"),this.playOnReady=!0))}pause(){this.ytPlayer&&this.ytPlayer.pauseVideo()}paused(){return!this.ytPlayer||this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING}currentTime(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0}setCurrentTime(e){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.isSeeking||(this.wasPausedBeforeSeek=this.paused()),this.ytPlayer.seekTo(e,!0),this.trigger("timeupdate"),this.trigger("seeking"),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==e&&(clearInterval(this.checkSeekedInPauseInterval),this.checkSeekedInPauseInterval=setInterval((function(){this.lastState===YT.PlayerState.PAUSED&&this.isSeeking?this.currentTime()!==this.timeBeforeSeek&&(this.trigger("timeupdate"),this.onSeeked()):clearInterval(this.checkSeekedInPauseInterval)}).bind(this),250))}seeking(){return this.isSeeking}seekable(){return this.ytPlayer?e.createTimeRange(0,this.ytPlayer.getDuration()):e.createTimeRange()}onSeeked(){clearInterval(this.checkSeekedInPauseInterval),this.isSeeking=!1,this.wasPausedBeforeSeek&&this.pause(),this.trigger("seeked")}playbackRate(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1}setPlaybackRate(e){this.ytPlayer&&this.ytPlayer.setPlaybackRate(e)}duration(){return this.ytPlayer?this.ytPlayer.getDuration():0}currentSrc(){return this.source&&this.source.src}ended(){return!!this.ytPlayer&&this.lastState===YT.PlayerState.ENDED}volume(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1}setVolume(e){this.ytPlayer&&this.ytPlayer.setVolume(100*e)}muted(){return!!this.ytPlayer&&this.ytPlayer.isMuted()}setMuted(e){this.ytPlayer&&(this.muted(!0),e?this.ytPlayer.mute():this.ytPlayer.unMute(),this.setTimeout(function(){this.trigger("volumechange")},50))}buffered(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return e.createTimeRange();var r=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return e.createTimeRange(0,r)}preload(){}load(){}reset(){}networkState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case -1:return 0;case 3:return 2;default:return 1}}readyState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case -1:return 0;case 5:return 1;case 3:return 2;default:return 4}}supportsFullScreen(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled}checkHighResPoster(){var e="https://img.youtube.com/vi/"+this.url.videoId+"/maxresdefault.jpg";try{var r=new Image;r.onload=(function(){if("naturalHeight"in r){if(r.naturalHeight<=90||r.naturalWi
7dth<=120)return}else if(r.height<=90||r.width<=120)return;this.poster_=e,this.trigger("posterchange")}).bind(this),r.onerror=function(){},r.src=e}catch(e){}}};Youtube.isSupported=function(){return!0},Youtube.canPlaySource=function(e){return Youtube.canPlayType(e.type)},Youtube.canPlayType=function(e){return"video/youtube"===e},Youtube.parseUrl=function(e){var r={videoId:null},n=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return n&&11===n[2].length&&(r.videoId=n[2]),(n=e.match(/[?&]list=([^#\&\?]+)/))&&n[1]&&(r.listId=n[1]),r},Youtube.apiReadyQueue=[],"undefined"!=typeof document&&(r=function(){YT.ready(function(){Youtube.isApiReady=!0;for(var e=0;e<Youtube.apiReadyQueue.length;++e)Youtube.apiReadyQueue[e].initYTPlayer()})},n=!1,i=document.createElement("script"),(a=document.getElementsByTagName("script")[0])&&(a.parentNode.insertBefore(i,a),i.onload=function(){n||(n=!0,r())},i.onreadystatechange=function(){n||"complete"!==this.readyState&&"loaded"!==this.readyState||(n=!0,r())},i.src="https://www.youtube.com/iframe_api"),o=".vjs-youtube .vjs-iframe-blocker { display: none; }.vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-youtube .vjs-poster { background-size: cover; }.vjs-youtube-mobile .vjs-big-play-button { display: none; }",s=document.head||document.getElementsByTagName("head")[0],(l=document.createElement("style")).type="text/css",l.styleSheet?l.styleSheet.cssText=o:l.appendChild(document.createTextNode(o)),s.appendChild(l)),void 0!==e.registerTech?e.registerTech("Youtube",Youtube):e.registerComponent("Youtube",Youtube)}(i.default||i)},24091:function(){},63498:function(){},18982:function(){},73922:function(e){function _extends(){return e.exports=_extends=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,_extends.apply(null,arguments)}e.exports=_extends,e.exports.__esModule=!0,e.exports.default=e.exports},29947:function(e,r,n){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}n.d(r,{Z:function(){return _extends}})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.