Files
owncast/static/web/_next/static/chunks/7689-b2b4cff6ab72ec89.js
2023-02-03 04:09:17 +00:00

14 lines
137 KiB
JavaScript
Vendored
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7689],{60562:function(t,e,r){"use strict";r.d(e,{Au:function(){return s},G3:function(){return g},Ki:function(){return u},d3:function(){return h},hL:function(){return p},lx:function(){return m},qX:function(){return d},tm:function(){return l}});var n,i,a=r(58908),o=r.n(a),s=function(t){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer},u=function(t){return t instanceof Uint8Array?t:(Array.isArray(t)||s(t)||t instanceof ArrayBuffer||(t="number"!=typeof t||"number"==typeof t&&t!=t?0:[t]),new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0))},c=o().BigInt||Number,f=[c("0x1"),c("0x100"),c("0x10000"),c("0x1000000"),c("0x100000000"),c("0x10000000000"),c("0x1000000000000"),c("0x100000000000000"),c("0x10000000000000000")];n=new Uint16Array([65484]),255===(i=new Uint8Array(n.buffer,n.byteOffset,n.byteLength))[0]||i[0];var l=function(t,e){var r=void 0===e?{}:e,n=r.signed,i=r.le,a=void 0!==i&&i;t=u(t);var o=a?"reduce":"reduceRight",s=(t[o]?t[o]:Array.prototype[o]).call(t,function(e,r,n){var i=a?n:Math.abs(n+1-t.length);return e+c(r)*f[i]},c(0));if(void 0!==n&&n){var l=f[t.length]/c(2)-c(1);(s=c(s))>l&&(s-=l,s-=l,s-=c(2))}return Number(s)},p=function(t,e){var r=(void 0===e?{}:e).le,n=void 0!==r&&r;("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&t!=t)&&(t=0);for(var i=Math.ceil((t=c(t)).toString(2).length/8),a=new Uint8Array(new ArrayBuffer(i)),o=0;o<i;o++){var s=n?o:Math.abs(o+1-a.length);a[s]=Number(t/f[o]&c(255)),t<0&&(a[s]=Math.abs(~a[s]),a[s]-=0===o?1:2)}return a},h=function(t){if(!t)return"";t=Array.prototype.slice.call(t);var e=String.fromCharCode.apply(null,u(t));try{return decodeURIComponent(escape(e))}catch(t){}return e},d=function(t,e){if("string"!=typeof t&&t&&"function"==typeof t.toString&&(t=t.toString()),"string"!=typeof t)return new Uint8Array;e||(t=unescape(encodeURIComponent(t)));for(var r=new Uint8Array(t.length),n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r},m=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];if((e=e.filter(function(t){return t&&(t.byteLength||t.length)&&"string"!=typeof t})).length<=1)return u(e[0]);var n=e.reduce(function(t,e,r){return t+(e.byteLength||e.length)},0),i=new Uint8Array(n),a=0;return e.forEach(function(t){t=u(t),i.set(t,a),a+=t.byteLength}),i},g=function(t,e,r){var n=void 0===r?{}:r,i=n.offset,a=void 0===i?0:i,o=n.mask,s=void 0===o?[]:o;t=u(t);var c=(e=u(e)).every?e.every:Array.prototype.every;return e.length&&t.length-a>=e.length&&c.call(e,function(e,r){return e===(s[r]?s[r]&t[a+r]:t[a+r])})}},92260:function(t,e,r){"use strict";r.d(e,{Hi:function(){return d},Jg:function(){return f},KL:function(){return l},_5:function(){return p},kS:function(){return c},lA:function(){return m},p7:function(){return h},ws:function(){return u},xz:function(){return g}});var n=r(58908),i=r.n(n),a={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^/},o=["video","audio","text"],s=["Video","Audio","Text"],u=function(t){return t?t.replace(/avc1\.(\d+)\.(\d+)/i,function(t,e,r){return"avc1."+("00"+Number(e).toString(16)).slice(-2)+"00"+("00"+Number(r).toString(16)).slice(-2)}):t},c=function(t){void 0===t&&(t="");var e=t.split(","),r=[];return e.forEach(function(t){var e;t=t.trim(),o.forEach(function(n){var i=a[n].exec(t.toLowerCase());if(i&&!(i.length<=1)){e=n;var o=t.substring(0,i[1].length),s=t.replace(o,"");r.push({type:o,details:s,mediaType:n})}}),e||r.push({type:t,details:"",mediaType:"unknown"})}),r},f=function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var r=t.mediaGroups.AUDIO[e];if(!r)return null;for(var n in r){var i=r[n];if(i.default&&i.playlists)return c(i.playlists[0].attributes.CODECS)}return null},l=function(t){return void 0===t&&(t=""),a.audio.test(t.trim().toLowerCase())},p=function(t){if(t&&"string"==typeof t){var e,r=t.toLowerCase().split(",").map(function(t){return u(t.trim())}),n="video";1===r.length&&l(r[0])?n="audio":1===r.length&&(void 0===(e=r[0])&&(e=""),a.text.test(e.trim().toLowerCase()))&&(n="application");var i="mp4";return r.every(function(t){return a.mp4.test(t)})?i="mp4":r.every(function(t){return a.webm.test(t)})?i="webm":r.every(function(t){return a.ogg.test(t)})&&(i="ogg"),n+"/"+i+';codecs="'+t+'"'}},h=function(t){return void 0===t&&(t=""),i().MediaSource&&i().MediaSource.isTypeSupported&&i().MediaSource.isTypeSupported(p(t))||!1},d=function(t){return void 0===t&&(t=""),t.toLowerCase().split(",").every(function(t){t=t.trim();for(var e=0;e<s.length;e++)if(a["muxer"+s[e]].test(t))return!0;return!1})},m="mp4a.40.2",g="avc1.4d400d"},86185:function(t,e,r){"use strict";r.d(e,{Xm:function(){return S},cz:function(){return A}});var n,i=r(60562);new Uint8Array([79,112,117,115,72,101,97,100]);var a=function(t){return"string"==typeof t?(0,i.qX)(t):t},o=function(t){t=(0,i.Ki)(t);for(var e=[],r=0;t.length>r;){var a=t[r],o=0,s=0,u=t[++s];for(s++;128&u;)o=(127&u)<<7,u=t[s],s++;o+=127&u;for(var c=0;c<n.length;c++){var f=n[c],l=f.id,p=f.parser;if(a===l){e.push(p(t.subarray(s,s+o)));break}}r+=o+s}return e};n=[{id:3,parser:function(t){var e={tag:3,id:t[0]<<8|t[1],flags:t[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&e.flags&&(e.dependsOnEsId=t[e.size]<<8|t[e.size+1],e.size+=2),64&e.flags){var r=t[e.size];e.url=(0,i.d3)(t.subarray(e.size+1,e.size+1+r)),e.size+=r}return 32&e.flags&&(e.ocrEsId=t[e.size]<<8|t[e.size+1],e.size+=2),e.descriptors=o(t.subarray(e.size))||[],e}},{id:4,parser:function(t){return{tag:4,oti:t[0],streamType:t[1],bufferSize:t[2]<<16|t[3]<<8|t[4],maxBitrate:t[5]<<24|t[6]<<16|t[7]<<8|t[8],avgBitrate:t[9]<<24|t[10]<<16|t[11]<<8|t[12],descriptors:o(t.subarray(13))}}},{id:5,parser:function(t){return{tag:5,bytes:t}}},{id:6,parser:function(t){return{tag:6,bytes:t}}}];var s=function t(e,r,n){void 0===n&&(n=!1),r=Array.isArray(o=r)?o.map(function(t){return a(t)}):[a(o)],e=(0,i.Ki)(e);var o,s=[];if(!r.length)return s;for(var u=0;u<e.length;){var c=(e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3])>>>0,f=e.subarray(u+4,u+8);if(0===c)break;var l=u+c;if(l>e.length){if(n)break;l=e.length}var p=e.subarray(u+8,l);(0,i.G3)(f,r[0])&&(1===r.length?s.push(p):s.push.apply(s,t(p,r.slice(1),n))),u=l}return s},u={EBML:(0,i.Ki)([26,69,223,163]),DocType:(0,i.Ki)([66,130]),Segment:(0,i.Ki)([24,83,128,103]),SegmentInfo:(0,i.Ki)([21,73,169,102]),Tracks:(0,i.Ki)([22,84,174,107]),Track:(0,i.Ki)([174]),TrackNumber:(0,i.Ki)([215]),DefaultDuration:(0,i.Ki)([35,227,131]),TrackEntry:(0,i.Ki)([174]),TrackType:(0,i.Ki)([131]),FlagDefault:(0,i.Ki)([136]),CodecID:(0,i.Ki)([134]),CodecPrivate:(0,i.Ki)([99,162]),VideoTrack:(0,i.Ki)([224]),AudioTrack:(0,i.Ki)([225]),Cluster:(0,i.Ki)([31,67,182,117]),Timestamp:(0,i.Ki)([231]),TimestampScale:(0,i.Ki)([42,215,177]),BlockGroup:(0,i.Ki)([160]),BlockDuration:(0,i.Ki)([155]),Block:(0,i.Ki)([161]),SimpleBlock:(0,i.Ki)([163])},c=[128,64,32,16,8,4,2,1],f=function(t){for(var e=1,r=0;r<c.length&&!(t&c[r]);r++)e++;return e},l=function(t,e,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var a=f(t[e]),o=t.subarray(e,e+a);return r&&(o=Array.prototype.slice.call(t,e,e+a),o[0]^=c[a-1]),{length:a,value:(0,i.tm)(o,{signed:n}),bytes:o}},p=function t(e){return"string"==typeof e?e.match(/.{1,2}/g).map(function(e){return t(e)}):"number"==typeof e?(0,i.hL)(e):e},h=function t(e,r,n){if(n>=r.length)return r.length;var a=l(r,n,!1);if((0,i.G3)(e.bytes,a.bytes))return n;var o=l(r,n+a.length);return t(e,r,n+o.length+o.value+a.length)},d=function t(e,r){r=Array.isArray(n=r)?n.map(function(t){return p(t)}):[p(n)],e=(0,i.Ki)(e);var n,a=[];if(!r.length)return a;for(var o=0;o<e.length;){var s=l(e,o,!1),u=l(e,o+s.length),c=o+s.length+u.length;127===u.value&&(u.value=h(s,e,c),u.value!==e.length&&(u.value-=c));var f=c+u.value>e.length?e.length:c+u.value,d=e.subarray(c,f);(0,i.G3)(r[0],s.bytes)&&(1===r.length?a.push(d):a=a.concat(t(d,r.slice(1))));var m=s.length+u.length+d.length;o+=m}return a},m=r(68925),g=(0,i.Ki)([0,0,0,1]),y=(0,i.Ki)([0,0,1]),v=(0,i.Ki)([0,0,3]),b=function(t){for(var e=[],r=1;r<t.length-2;)(0,i.G3)(t.subarray(r,r+3),v)&&(e.push(r+2),r++),r++;if(0===e.length)return t;var n=t.length-e.length,a=new Uint8Array(n),o=0;for(r=0;r<n;o++,r++)o===e[0]&&(o++,e.shift()),a[r]=t[o];return a},E=function(t,e,r,n){void 0===n&&(n=1/0),t=(0,i.Ki)(t),r=[].concat(r);for(var a,o=0,s=0;o<t.length&&(s<n||a);){var u=void 0;if((0,i.G3)(t.subarray(o),g)?u=4:(0,i.G3)(t.subarray(o),y)&&(u=3),!u){o++;continue}if(s++,a)return b(t.subarray(a,o));var c=void 0;"h264"===e?c=31&t[o+u]:"h265"===e&&(c=t[o+u]>>1&63),-1!==r.indexOf(c)&&(a=o+u),o+=u+("h264"===e?1:2)}return t.subarray(0,0)},T={webm:(0,i.Ki)([119,101,98,109]),matroska:(0,i.Ki)([109,97,116,114,111,115,107,97]),flac:(0,i.Ki)([102,76,97,67]),ogg:(0,i.Ki)([79,103,103,83]),ac3:(0,i.Ki)([11,119]),riff:(0,i.Ki)([82,73,70,70]),avi:(0,i.Ki)([65,86,73]),wav:(0,i.Ki)([87,65,86,69]),"3gp":(0,i.Ki)([102,116,121,112,51,103]),mp4:(0,i.Ki)([102,116,121,112]),fmp4:(0,i.Ki)([115,116,121,112]),mov:(0,i.Ki)([102,116,121,112,113,116]),moov:(0,i.Ki)([109,111,111,118]),moof:(0,i.Ki)([109,111,111,102])},w={aac:function(t){var e=(0,m.c)(t);return(0,i.G3)(t,[255,16],{offset:e,mask:[255,22]})},mp3:function(t){var e=(0,m.c)(t);return(0,i.G3)(t,[255,2],{offset:e,mask:[255,6]})},webm:function(t){var e=d(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,T.webm)},mkv:function(t){var e=d(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,T.matroska)},mp4:function(t){return!(w["3gp"](t)||w.mov(t))&&(!!((0,i.G3)(t,T.mp4,{offset:4})||(0,i.G3)(t,T.fmp4,{offset:4})||(0,i.G3)(t,T.moof,{offset:4})||(0,i.G3)(t,T.moov,{offset:4}))||void 0)},mov:function(t){return(0,i.G3)(t,T.mov,{offset:4})},"3gp":function(t){return(0,i.G3)(t,T["3gp"],{offset:4})},ac3:function(t){var e=(0,m.c)(t);return(0,i.G3)(t,T.ac3,{offset:e})},ts:function(t){if(t.length<189&&t.length>=1)return 71===t[0];for(var e=0;e+188<t.length&&e<188;){if(71===t[e]&&71===t[e+188])return!0;e+=1}return!1},flac:function(t){var e=(0,m.c)(t);return(0,i.G3)(t,T.flac,{offset:e})},ogg:function(t){return(0,i.G3)(t,T.ogg)},avi:function(t){return(0,i.G3)(t,T.riff)&&(0,i.G3)(t,T.avi,{offset:8})},wav:function(t){return(0,i.G3)(t,T.riff)&&(0,i.G3)(t,T.wav,{offset:8})},h264:function(t){return E(t,"h264",7,3).length},h265:function(t){return E(t,"h265",[32,33],3).length}},N=Object.keys(w).filter(function(t){return"ts"!==t&&"h264"!==t&&"h265"!==t}).concat(["ts","h264","h265"]);N.forEach(function(t){var e=w[t];w[t]=function(t){return e((0,i.Ki)(t))}});var S=function(t){t=(0,i.Ki)(t);for(var e=0;e<N.length;e++){var r=N[e];if(w[r](t))return r}return""},A=function(t){return s(t,["moof"]).length>0}},36722:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(58908),i=r.n(n),a=r(48764).lW;function o(t){for(var e=i().atob?i().atob(t):a.from(t,"base64").toString("binary"),r=new Uint8Array(e.length),n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}},68925:function(t,e,r){"use strict";r.d(e,{c:function(){return o}});var n=r(60562),i=(0,n.Ki)([73,68,51]),a=function(t,e){void 0===e&&(e=0);var r=(t=(0,n.Ki)(t))[e+5],i=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9];return(16&r)>>4?i+20:i+10},o=function t(e,r){return(void 0===r&&(r=0),(e=(0,n.Ki)(e)).length-r<10||!(0,n.G3)(e,i,{offset:r}))?r:(r+=a(e,r),t(e,r))}},8485:function(t,e,r){"use strict";r.d(e,{t:function(){return a}});var n=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,i=/^application\/dash\+xml/i,a=function(t){return n.test(t)?"hls":i.test(t)?"dash":"application/vnd.videojs.vhs+json"===t?"vhs-json":null}},80779:function(t,e,r){"use strict";var n=r(49945),i=r.n(n),a=r(58908),o=r.n(a),s="http://example.com";e.Z=function(t,e){if(/^[a-z]+:/i.test(e))return e;/^data:/.test(t)&&(t=o().location&&o().location.href||"");var r="function"==typeof o().URL,n=/^\/\//.test(t),a=!o().location&&!/\/\//i.test(t);if(r?t=new(o()).URL(t,o().location||s):/\/\//i.test(t)||(t=i().buildAbsoluteURL(o().location&&o().location.href||"",t)),r){var u=new URL(e,t);return a?u.href.slice(s.length):n?u.href.slice(u.protocol.length):u.href}return i().buildAbsoluteURL(t,e)}},13490:function(t,e,r){"use strict";var n=r(58908);t.exports=function(t,e){return void 0===e&&(e=!1),function(r,i,a){if(r){t(r);return}if(i.statusCode>=400&&i.statusCode<=599){var o=a;if(e){if(n.TextDecoder){var s,u=(void 0===(s=i.headers&&i.headers["content-type"])&&(s=""),s.toLowerCase().split(";").reduce(function(t,e){var r=e.split("="),n=r[0],i=r[1];return"charset"===n.trim()?i.trim():t},"utf-8"));try{o=new TextDecoder(u).decode(a)}catch(t){}}else o=String.fromCharCode.apply(null,new Uint8Array(a))}t({cause:o});return}t(null,a)}}},9603:function(t,e,r){"use strict";var n=r(58908),i=r(10434),a=r(27376);u.httpHandler=r(13490);/**
* @license
* slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
* Copyright (c) 2014 David Björklund
* Available under the MIT license
* <https://github.com/kesla/parse-headers/blob/master/LICENCE>
*/var o=function(t){var e={};return t&&t.trim().split("\n").forEach(function(t){var r=t.indexOf(":"),n=t.slice(0,r).trim().toLowerCase(),i=t.slice(r+1).trim();void 0===e[n]?e[n]=i:Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]}),e};function s(t,e,r){var n=t;return a(e)?(r=e,"string"==typeof t&&(n={uri:t})):n=i({},e,{uri:t}),n.callback=r,n}function u(t,e,r){return c(e=s(t,e,r))}function c(t){if(void 0===t.callback)throw Error("callback argument missing");var e,r,n,i=!1,a=function(e,r,n){i||(i=!0,t.callback(e,r,n))};function s(t){return clearTimeout(n),t instanceof Error||(t=Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,a(t,y)}function c(){if(!r){clearTimeout(n);var e,i=y,s=null;return 0!==(e=t.useXDR&&void 0===f.status?200:1223===f.status?204:f.status)?(i={body:function(){var t=void 0;if(t=f.response?f.response:f.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(t){}return null}(f),g)try{t=JSON.parse(t)}catch(t){}return t}(),statusCode:e,method:p,headers:{},url:l,rawRequest:f},f.getAllResponseHeaders&&(i.headers=o(f.getAllResponseHeaders()))):s=Error("Internal XMLHttpRequest Error"),a(s,i,i.body)}}var f=t.xhr||null;f||(f=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var l=f.url=t.uri||t.url,p=f.method=t.method||"GET",h=t.body||t.data,d=f.headers=t.headers||{},m=!!t.sync,g=!1,y={body:void 0,headers:{},statusCode:0,method:p,url:l,rawRequest:f};if("json"in t&&!1!==t.json&&(g=!0,d.accept||d.Accept||(d.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(d["content-type"]||d["Content-Type"]||(d["Content-Type"]="application/json"),h=JSON.stringify(!0===t.json?h:t.json))),f.onreadystatechange=function(){4===f.readyState&&setTimeout(c,0)},f.onload=c,f.onerror=s,f.onprogress=function(){},f.onabort=function(){r=!0},f.ontimeout=s,f.open(p,l,!m,t.username,t.password),m||(f.withCredentials=!!t.withCredentials),!m&&t.timeout>0&&(n=setTimeout(function(){if(!r){r=!0,f.abort("timeout");var t=Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",s(t)}},t.timeout)),f.setRequestHeader)for(e in d)d.hasOwnProperty(e)&&f.setRequestHeader(e,d[e]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(f.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(f),f.send(h||null),f}t.exports=u,t.exports.default=u,u.XMLHttpRequest=n.XMLHttpRequest||function(){},u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r<t.length;r++)e(t[r])}(["get","put","post","patch","head","delete"],function(t){u["delete"===t?"del":t]=function(e,r,n){return(r=s(e,r,n)).method=t.toUpperCase(),c(r)}})},72167:function(t,e){"use strict";function r(t,e){return void 0===e&&(e=Object),e&&"function"==typeof e.freeze?e.freeze(t):t}var n=r({HTML:"text/html",isHTML:function(t){return t===n.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),i=r({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===i.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});e.find=function(t,e,r){if(void 0===r&&(r=Array.prototype),t&&"function"==typeof r.find)return r.find.call(t,e);for(var n=0;n<t.length;n++)if(Object.prototype.hasOwnProperty.call(t,n)){var i=t[n];if(e.call(void 0,i,n,t))return i}},e.freeze=r,e.MIME_TYPE=n,e.NAMESPACE=i},86129:function(t,e,r){var n=r(72167),i=r(41146),a=r(31045),o=r(76925),s=i.DOMImplementation,u=n.NAMESPACE,c=o.ParseError,f=o.XMLReader;function l(t){this.options=t||{locator:{}}}function p(){this.cdata=!1}function h(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}function d(t){if(t)return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function m(t,e,r){return"string"==typeof t?t.substr(e,r):t.length>=e+r||e?new java.lang.String(t,e,r)+"":t}function g(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}l.prototype.parseFromString=function(t,e){var r=this.options,n=new f,i=r.domBuilder||new p,o=r.errorHandler,s=r.locator,c=r.xmlns||{},l=/\/x?html?$/.test(e),h=l?a.HTML_ENTITIES:a.XML_ENTITIES;return s&&i.setDocumentLocator(s),n.errorHandler=function(t,e,r){if(!t){if(e instanceof p)return e;t=e}var n={},i=t instanceof Function;function a(e){var a=t[e];!a&&i&&(a=2==t.length?function(r){t(e,r)}:t),n[e]=a&&function(t){a("[xmldom "+e+"] "+t+d(r))}||function(){}}return r=r||{},a("warning"),a("error"),a("fatalError"),n}(o,i,s),n.domBuilder=r.domBuilder||i,l&&(c[""]=u.HTML),c.xml=c.xml||u.XML,t&&"string"==typeof t?n.parse(t,c,h):n.errorHandler.error("invalid doc source"),i.doc},p.prototype={startDocument:function(){this.doc=new s().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,r,n){var i=this.doc,a=i.createElementNS(t,r||e),o=n.length;g(this,a),this.currentElement=a,this.locator&&h(this.locator,a);for(var s=0;s<o;s++){var t=n.getURI(s),u=n.getValue(s),r=n.getQName(s),c=i.createAttributeNS(t,r);this.locator&&h(n.getLocator(s),c),c.value=c.nodeValue=u,a.setAttributeNode(c)}},endElement:function(t,e,r){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var r=this.doc.createProcessingInstruction(t,e);this.locator&&h(this.locator,r),g(this,r)},ignorableWhitespace:function(t,e,r){},characters:function(t,e,r){if(t=m.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(t);else var n=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(t)&&this.doc.appendChild(n),this.locator&&h(this.locator,n)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,r){t=m.apply(this,arguments);var n=this.doc.createComment(t);this.locator&&h(this.locator,n),g(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,r){var n=this.doc.implementation;if(n&&n.createDocumentType){var i=n.createDocumentType(t,e,r);this.locator&&h(this.locator,i),g(this,i),this.doc.doctype=i}},warning:function(t){console.warn("[xmldom warning] "+t,d(this.locator))},error:function(t){console.error("[xmldom error] "+t,d(this.locator))},fatalError:function(t){throw new c(t,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){p.prototype[t]=function(){return null}}),e.DOMParser=l,i.DOMImplementation,i.XMLSerializer},41146:function(t,e,r){var n=r(72167),i=n.find,a=n.NAMESPACE;function o(t){return""!==t}function s(t,e){return t.hasOwnProperty(e)||(t[e]=!0),t}function u(t){return t?Object.keys((t?t.split(/[\t\n\f\r ]+/).filter(o):[]).reduce(s,{})):[]}function c(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}function f(t,e){var r=t.prototype;if(!(r instanceof e)){function n(){}n.prototype=e.prototype,c(r,n=new n),t.prototype=r=n}r.constructor!=t&&("function"!=typeof t&&console.error("unknown Class:"+t),r.constructor=t)}var l={},p=l.ELEMENT_NODE=1,h=l.ATTRIBUTE_NODE=2,d=l.TEXT_NODE=3,m=l.CDATA_SECTION_NODE=4,g=l.ENTITY_REFERENCE_NODE=5,y=l.ENTITY_NODE=6,v=l.PROCESSING_INSTRUCTION_NODE=7,b=l.COMMENT_NODE=8,E=l.DOCUMENT_NODE=9,T=l.DOCUMENT_TYPE_NODE=10,w=l.DOCUMENT_FRAGMENT_NODE=11,N=l.NOTATION_NODE=12,S={},A={};S.INDEX_SIZE_ERR=(A[1]="Index size error",1),S.DOMSTRING_SIZE_ERR=(A[2]="DOMString size error",2);var x=S.HIERARCHY_REQUEST_ERR=(A[3]="Hierarchy request error",3);S.WRONG_DOCUMENT_ERR=(A[4]="Wrong document",4),S.INVALID_CHARACTER_ERR=(A[5]="Invalid character",5),S.NO_DATA_ALLOWED_ERR=(A[6]="No data allowed",6),S.NO_MODIFICATION_ALLOWED_ERR=(A[7]="No modification allowed",7);var I=S.NOT_FOUND_ERR=(A[8]="Not found",8);S.NOT_SUPPORTED_ERR=(A[9]="Not supported",9);var O=S.INUSE_ATTRIBUTE_ERR=(A[10]="Attribute in use",10);function R(t,e){if(e instanceof Error)var r=e;else r=this,Error.call(this,A[t]),this.message=A[t],Error.captureStackTrace&&Error.captureStackTrace(this,R);return r.code=t,e&&(this.message=this.message+": "+e),r}function D(){}function C(t,e){this._node=t,this._refresh=e,L(this)}function L(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!=e){var r=t._refresh(t._node);tg(t,"length",r.length),c(r,t),t._inc=e}}function U(){}function M(t,e){for(var r=t.length;r--;)if(t[r]===e)return r}function P(t,e,r,n){if(n?e[M(e,n)]=r:e[e.length++]=r,t){r.ownerElement=t;var i,o,s=t.ownerDocument;s&&(n&&H(s,t,n),i=t,o=r,s&&s._inc++,o.namespaceURI===a.XMLNS&&(i._nsMap[o.prefix?o.localName:""]=o.value))}}function B(t,e,r){var n=M(e,r);if(n>=0){for(var i=e.length-1;n<i;)e[n]=e[++n];if(e.length=i,t){var a=t.ownerDocument;a&&(H(a,t,r),r.ownerElement=null)}}else throw new R(I,Error(t.tagName+"@"+r))}function k(){}function _(){}function X(t){return"<"==t&&"&lt;"||">"==t&&"&gt;"||"&"==t&&"&amp;"||'"'==t&&"&quot;"||"&#"+t.charCodeAt()+";"}function G(t,e){if(e(t))return!0;if(t=t.firstChild)do if(G(t,e))return!0;while(t=t.nextSibling)}function F(){this.ownerDocument=this}function H(t,e,r,n){t&&t._inc++,r.namespaceURI===a.XMLNS&&delete e._nsMap[r.prefix?r.localName:""]}function V(t,e,r){if(t&&t._inc){t._inc++;var n=e.childNodes;if(r)n[n.length++]=r;else{for(var i=e.firstChild,a=0;i;)n[a++]=i,i=i.nextSibling;n.length=a,delete n[n.length]}}}function q(t,e){var r=e.previousSibling,n=e.nextSibling;return r?r.nextSibling=n:t.firstChild=n,n?n.previousSibling=r:t.lastChild=r,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,V(t.ownerDocument,t),e}function j(t){return t&&t.nodeType===_.DOCUMENT_TYPE_NODE}function K(t){return t&&t.nodeType===_.ELEMENT_NODE}function z(t){return t&&t.nodeType===_.TEXT_NODE}function Y(t,e){var r=t.childNodes||[];if(i(r,K)||j(e))return!1;var n=i(r,j);return!(e&&n&&r.indexOf(n)>r.indexOf(e))}function $(t,e){var r=t.childNodes||[];if(i(r,function(t){return K(t)&&t!==e}))return!1;var n=i(r,j);return!(e&&n&&r.indexOf(n)>r.indexOf(e))}function W(t,e,r){var n=t.childNodes||[],a=e.childNodes||[];if(e.nodeType===_.DOCUMENT_FRAGMENT_NODE){var o=a.filter(K);if(o.length>1||i(a,z))throw new R(x,"More than one element or text in fragment");if(1===o.length&&!Y(t,r))throw new R(x,"Element in fragment can not be inserted before doctype")}if(K(e)&&!Y(t,r))throw new R(x,"Only one element can be added and only after doctype");if(j(e)){if(i(n,j))throw new R(x,"Only one doctype is allowed");var s=i(n,K);if(r&&n.indexOf(s)<n.indexOf(r))throw new R(x,"Doctype can only be inserted before an element");if(!r&&s)throw new R(x,"Doctype can not be appended since element is present")}}function Z(t,e,r){var n=t.childNodes||[],a=e.childNodes||[];if(e.nodeType===_.DOCUMENT_FRAGMENT_NODE){var o=a.filter(K);if(o.length>1||i(a,z))throw new R(x,"More than one element or text in fragment");if(1===o.length&&!$(t,r))throw new R(x,"Element in fragment can not be inserted before doctype")}if(K(e)&&!$(t,r))throw new R(x,"Only one element can be added and only after doctype");if(j(e)){if(i(n,function(t){return j(t)&&t!==r}))throw new R(x,"Only one doctype is allowed");var s=i(n,K);if(r&&n.indexOf(s)<n.indexOf(r))throw new R(x,"Doctype can only be inserted before an element")}}function Q(t,e,r,n){!function(t,e,r){if(!(t&&(t.nodeType===_.DOCUMENT_NODE||t.nodeType===_.DOCUMENT_FRAGMENT_NODE||t.nodeType===_.ELEMENT_NODE)))throw new R(x,"Unexpected parent node type "+t.nodeType);if(r&&r.parentNode!==t)throw new R(I,"child not in parent");if(!(e&&(K(e)||z(e)||j(e)||e.nodeType===_.DOCUMENT_FRAGMENT_NODE||e.nodeType===_.COMMENT_NODE||e.nodeType===_.PROCESSING_INSTRUCTION_NODE))||j(e)&&t.nodeType!==_.DOCUMENT_NODE)throw new R(x,"Unexpected node type "+e.nodeType+" for parent node type "+t.nodeType)}(t,e,r),t.nodeType===_.DOCUMENT_NODE&&(n||W)(t,e,r);var i=e.parentNode;if(i&&i.removeChild(e),e.nodeType===w){var a=e.firstChild;if(null==a)return e;var o=e.lastChild}else a=o=e;var s=r?r.previousSibling:t.lastChild;a.previousSibling=s,o.nextSibling=r,s?s.nextSibling=a:t.firstChild=a,null==r?t.lastChild=o:r.previousSibling=o;do a.parentNode=t;while(a!==o&&(a=a.nextSibling));return V(t.ownerDocument||t,t),e.nodeType==w&&(e.firstChild=e.lastChild=null),e}function J(){this._nsMap={}}function tt(){}function te(){}function tr(){}function tn(){}function ti(){}function ta(){}function to(){}function ts(){}function tu(){}function tc(){}function tf(){}function tl(){}function tp(t,e){var r=[],n=9==this.nodeType&&this.documentElement||this,i=n.prefix,a=n.namespaceURI;if(a&&null==i){var i=n.lookupPrefix(a);if(null==i)var o=[{namespace:a,prefix:null}]}return tm(this,r,t,e,o),r.join("")}function th(t,e,r){var n=t.prefix||"",i=t.namespaceURI;if(!i||"xml"===n&&i===a.XML||i===a.XMLNS)return!1;for(var o=r.length;o--;){var s=r[o];if(s.prefix===n)return s.namespace!==i}return!0}function td(t,e,r){t.push(" ",e,'="',r.replace(/[<&"]/g,X),'"')}function tm(t,e,r,n,i){if(i||(i=[]),n){if(!(t=n(t)))return;if("string"==typeof t){e.push(t);return}}switch(t.nodeType){case p:var o,s=t.attributes,u=s.length,c=t.firstChild,f=t.tagName;r=a.isHTML(t.namespaceURI)||r;var l=f;if(!r&&!t.prefix&&t.namespaceURI){for(var y=0;y<s.length;y++)if("xmlns"===s.item(y).name){o=s.item(y).value;break}if(!o)for(var N=i.length-1;N>=0;N--){var S=i[N];if(""===S.prefix&&S.namespace===t.namespaceURI){o=S.namespace;break}}if(o!==t.namespaceURI)for(var N=i.length-1;N>=0;N--){var S=i[N];if(S.namespace===t.namespaceURI){S.prefix&&(l=S.prefix+":"+f);break}}}e.push("<",l);for(var A=0;A<u;A++){var x=s.item(A);"xmlns"==x.prefix?i.push({prefix:x.localName,namespace:x.value}):"xmlns"==x.nodeName&&i.push({prefix:"",namespace:x.value})}for(var A=0;A<u;A++){var x=s.item(A);if(th(x,r,i)){var I=x.prefix||"",O=x.namespaceURI;td(e,I?"xmlns:"+I:"xmlns",O),i.push({prefix:I,namespace:O})}tm(x,e,r,n,i)}if(f===l&&th(t,r,i)){var I=t.prefix||"",O=t.namespaceURI;td(e,I?"xmlns:"+I:"xmlns",O),i.push({prefix:I,namespace:O})}if(c||r&&!/^(?:meta|link|img|br|hr|input)$/i.test(f)){if(e.push(">"),r&&/^script$/i.test(f))for(;c;)c.data?e.push(c.data):tm(c,e,r,n,i.slice()),c=c.nextSibling;else for(;c;)tm(c,e,r,n,i.slice()),c=c.nextSibling;e.push("</",l,">")}else e.push("/>");return;case E:case w:for(var c=t.firstChild;c;)tm(c,e,r,n,i.slice()),c=c.nextSibling;return;case h:return td(e,t.name,t.value);case d:return e.push(t.data.replace(/[<&]/g,X).replace(/]]>/g,"]]&gt;"));case m:return e.push("<![CDATA[",t.data,"]]>");case b:return e.push("<!--",t.data,"-->");case T:var R=t.publicId,D=t.systemId;if(e.push("<!DOCTYPE ",t.name),R)e.push(" PUBLIC ",R),D&&"."!=D&&e.push(" ",D),e.push(">");else if(D&&"."!=D)e.push(" SYSTEM ",D,">");else{var C=t.internalSubset;C&&e.push(" [",C,"]"),e.push(">")}return;case v:return e.push("<?",t.target," ",t.data,"?>");case g:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function tg(t,e,r){t[e]=r}S.INVALID_STATE_ERR=(A[11]="Invalid state",11),S.SYNTAX_ERR=(A[12]="Syntax error",12),S.INVALID_MODIFICATION_ERR=(A[13]="Invalid modification",13),S.NAMESPACE_ERR=(A[14]="Invalid namespace",14),S.INVALID_ACCESS_ERR=(A[15]="Invalid access",15),R.prototype=Error.prototype,c(S,R),D.prototype={length:0,item:function(t){return this[t]||null},toString:function(t,e){for(var r=[],n=0;n<this.length;n++)tm(this[n],r,t,e);return r.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}},C.prototype.item=function(t){return L(this),this[t]},f(C,D),U.prototype={length:0,item:D.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var r=this[e];if(r.nodeName==t)return r}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new R(O);var r=this.getNamedItem(t.nodeName);return P(this._ownerElement,this,t,r),r},setNamedItemNS:function(t){var e,r=t.ownerElement;if(r&&r!=this._ownerElement)throw new R(O);return e=this.getNamedItemNS(t.namespaceURI,t.localName),P(this._ownerElement,this,t,e),e},removeNamedItem:function(t){var e=this.getNamedItem(t);return B(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var r=this.getNamedItemNS(t,e);return B(this._ownerElement,this,r),r},getNamedItemNS:function(t,e){for(var r=this.length;r--;){var n=this[r];if(n.localName==e&&n.namespaceURI==t)return n}return null}},k.prototype={hasFeature:function(t,e){return!0},createDocument:function(t,e,r){var n=new F;if(n.implementation=this,n.childNodes=new D,n.doctype=r||null,r&&n.appendChild(r),e){var i=n.createElementNS(t,e);n.appendChild(i)}return n},createDocumentType:function(t,e,r){var n=new ta;return n.name=t,n.nodeName=t,n.publicId=e||"",n.systemId=r||"",n}},_.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return Q(this,t,e)},replaceChild:function(t,e){Q(this,t,e,Z),e&&this.removeChild(e)},removeChild:function(t){return q(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(t){return function t(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 D),i.ownerDocument=e,i.nodeType){case p:var s=r.attributes,u=i.attributes=new U,c=s.length;u._ownerElement=i;for(var f=0;f<c;f++)i.setAttributeNode(t(e,s.item(f),!0));break;case h:n=!0}if(n)for(var l=r.firstChild;l;)i.appendChild(t(e,l,n)),l=l.nextSibling;return i}(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==d&&t.nodeType==d?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var r=e._nsMap;if(r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&r[n]===t)return n}e=e.nodeType==h?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var r=e._nsMap;if(r&&t in r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];e=e.nodeType==h?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},c(l,_),c(l,_.prototype),F.prototype={nodeName:"#document",nodeType:E,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==w){for(var r=t.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,e),r=n}return t}return Q(this,t,e),t.ownerDocument=this,null===this.documentElement&&t.nodeType===p&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),q(this,t)},replaceChild:function(t,e){Q(this,t,e,Z),t.ownerDocument=this,e&&this.removeChild(e),K(t)&&(this.documentElement=t)},importNode:function(t,e){return function t(e,r,n){var i;switch(r.nodeType){case p:(i=r.cloneNode(!1)).ownerDocument=e;case w:break;case h:n=!0}if(i||(i=r.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,n)for(var a=r.firstChild;a;)i.appendChild(t(e,a,n)),a=a.nextSibling;return i}(this,t,e)},getElementById:function(t){var e=null;return G(this.documentElement,function(r){if(r.nodeType==p&&r.getAttribute("id")==t)return e=r,!0}),e},getElementsByClassName:function(t){var e=u(t);return new C(this,function(r){var n=[];return e.length>0&&G(r.documentElement,function(i){if(i!==r&&i.nodeType===p){var a=i.getAttribute("class");if(a){var o=t===a;if(!o){var s=u(a);o=e.every(function(t){return s&&-1!==s.indexOf(t)})}o&&n.push(i)}}}),n})},createElement:function(t){var e=new J;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new D,(e.attributes=new U)._ownerElement=e,e},createDocumentFragment:function(){var t=new tc;return t.ownerDocument=this,t.childNodes=new D,t},createTextNode:function(t){var e=new tr;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new tn;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new ti;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var r=new tf;return r.ownerDocument=this,r.tagName=r.target=t,r.nodeValue=r.data=e,r},createAttribute:function(t){var e=new tt;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new tu;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var r=new J,n=e.split(":"),i=r.attributes=new U;return r.childNodes=new D,r.ownerDocument=this,r.nodeName=e,r.tagName=e,r.namespaceURI=t,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,i._ownerElement=r,r},createAttributeNS:function(t,e){var r=new tt,n=e.split(":");return r.ownerDocument=this,r.nodeName=e,r.name=e,r.namespaceURI=t,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,r}},f(F,_),J.prototype={nodeType:p,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var r=this.ownerDocument.createAttribute(t);r.value=r.nodeValue=""+e,this.setAttributeNode(r)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){var e,r;return t.nodeType===w?this.insertBefore(t,null):(e=this,(r=t).parentNode&&r.parentNode.removeChild(r),r.parentNode=e,r.previousSibling=e.lastChild,r.nextSibling=null,r.previousSibling?r.previousSibling.nextSibling=r:e.firstChild=r,e.lastChild=r,V(e.ownerDocument,e,r),r)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);return r&&r.value||""},setAttributeNS:function(t,e,r){var n=this.ownerDocument.createAttributeNS(t,e);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new C(this,function(e){var r=[];return G(e,function(n){n!==e&&n.nodeType==p&&("*"===t||n.tagName==t)&&r.push(n)}),r})},getElementsByTagNameNS:function(t,e){return new C(this,function(r){var n=[];return G(r,function(i){i!==r&&i.nodeType===p&&("*"===t||i.namespaceURI===t)&&("*"===e||i.localName==e)&&n.push(i)}),n})}},F.prototype.getElementsByTagName=J.prototype.getElementsByTagName,F.prototype.getElementsByTagNameNS=J.prototype.getElementsByTagNameNS,f(J,_),tt.prototype.nodeType=h,f(tt,_),te.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw Error(A[x])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,r){r=this.data.substring(0,t)+r+this.data.substring(t+e),this.nodeValue=this.data=r,this.length=r.length}},f(te,_),tr.prototype={nodeName:"#text",nodeType:d,splitText:function(t){var e=this.data,r=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},f(tr,te),tn.prototype={nodeName:"#comment",nodeType:b},f(tn,te),ti.prototype={nodeName:"#cdata-section",nodeType:m},f(ti,te),ta.prototype.nodeType=T,f(ta,_),to.prototype.nodeType=N,f(to,_),ts.prototype.nodeType=y,f(ts,_),tu.prototype.nodeType=g,f(tu,_),tc.prototype.nodeName="#document-fragment",tc.prototype.nodeType=w,f(tc,_),tf.prototype.nodeType=v,f(tf,_),tl.prototype.serializeToString=function(t,e,r){return tp.call(t,e,r)},_.prototype.toString=tp;try{Object.defineProperty&&(Object.defineProperty(C.prototype,"length",{get:function(){return L(this),this.$$length}}),Object.defineProperty(_.prototype,"textContent",{get:function(){return function t(e){switch(e.nodeType){case p:case w:var r=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&r.push(t(e)),e=e.nextSibling;return r.join("");default:return e.nodeValue}}(this)},set:function(t){switch(this.nodeType){case p:case w:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),tg=function(t,e,r){t["$$"+e]=r})}catch(t){}e.DocumentType=ta,e.DOMException=R,e.DOMImplementation=k,e.Element=J,e.Node=_,e.NodeList=D,e.XMLSerializer=tl},31045:function(t,e,r){var n=r(72167).freeze;e.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=n({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",times:"\xd7",divide:"\xf7",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"",lowast:"",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"",cap:"∩",cup:"",int:"∫",there4:"∴",sim:"",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:"",emsp:"",thinsp:"",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"",mdash:"—",lsquo:"",rsquo:"",sbquo:"",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"",Prime:"″",lsaquo:"",rsaquo:"",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),e.entityMap=e.HTML_ENTITIES},3969:function(t,e,r){var n=r(41146);n.DOMImplementation,n.XMLSerializer,e.DOMParser=r(86129).DOMParser},76925:function(t,e,r){var n=r(72167).NAMESPACE,i=/[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]/,a=RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=RegExp("^"+i.source+a.source+"*(?::"+i.source+a.source+"*)?$");function s(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function u(){}function c(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function f(t,e,r){for(var i=t.tagName,a=null,o=t.length;o--;){var s=t[o],u=s.qName,c=s.value,f=u.indexOf(":");if(f>0)var p=s.prefix=u.slice(0,f),h=u.slice(f+1),d="xmlns"===p&&h;else h=u,p=null,d="xmlns"===u&&"";s.localName=h,!1!==d&&(null==a&&(a={},l(r,r={})),r[d]=a[d]=c,s.uri=n.XMLNS,e.startPrefixMapping(d,c))}for(var o=t.length;o--;){var p=(s=t[o]).prefix;p&&("xml"===p&&(s.uri=n.XML),"xmlns"!==p&&(s.uri=r[p||""]))}var f=i.indexOf(":");f>0?(p=t.prefix=i.slice(0,f),h=t.localName=i.slice(f+1)):(p=null,h=t.localName=i);var m=t.uri=r[p||""];if(e.startElement(m,h,i,t),!t.closed)return t.currentNSMap=r,t.localNSMap=a,!0;if(e.endElement(m,h,i),a)for(p in a)Object.prototype.hasOwnProperty.call(a,p)&&e.endPrefixMapping(p)}function l(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}function p(){this.attributeNames={}}s.prototype=Error(),s.prototype.name=s.name,u.prototype={parse:function(t,e,r){var i=this.domBuilder;i.startDocument(),l(e,e={}),function(t,e,r,i,a){function o(t){var e,n=t.slice(1,-1);return n in r?r[n]:"#"!==n.charAt(0)?(a.error("entity not found:"+t),t):(e=parseInt(n.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}function u(e){if(e>b){var r=t.substring(b,e).replace(/&#?\w+;/g,o);g&&l(b),i.characters(r,0,e-b),b=e}}function l(e,r){for(;e>=d&&(r=m.exec(t));)d=(h=r.index)+r[0].length,g.lineNumber++;g.columnNumber=e-h+1}for(var h=0,d=0,m=/.*(?:\r\n?|\n)|.*$/g,g=i.locator,y=[{currentNSMap:e}],v={},b=0;;){try{var E=t.indexOf("<",b);if(E<0){if(!t.substr(b).match(/^\s*$/)){var T=i.doc,w=T.createTextNode(t.substr(b));T.appendChild(w),i.currentElement=w}return}switch(E>b&&u(E),t.charAt(E+1)){case"/":var N=t.indexOf(">",E+3),S=t.substring(E+2,N).replace(/[ \t\n\r]+$/g,""),A=y.pop();N<0?(S=t.substring(E+2).replace(/[\s<].*/,""),a.error("end tag name: "+S+" is not complete:"+A.tagName),N=E+1+S.length):S.match(/\s</)&&(S=S.replace(/[\s<].*/,""),a.error("end tag name: "+S+" maybe not complete"),N=E+1+S.length);var x=A.localNSMap,I=A.tagName==S;if(I||A.tagName&&A.tagName.toLowerCase()==S.toLowerCase()){if(i.endElement(A.uri,A.localName,S),x)for(var O in x)Object.prototype.hasOwnProperty.call(x,O)&&i.endPrefixMapping(O);I||a.fatalError("end tag name: "+S+" is not match the current start tagName:"+A.tagName)}else y.push(A);N++;break;case"?":g&&l(E),N=function(t,e,r){var n=t.indexOf("?>",e);if(n){var i=t.substring(e,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i)return i[0].length,r.processingInstruction(i[1],i[2]),n+2}return -1}(t,E,i);break;case"!":g&&l(E),N=function(t,e,r,n){if("-"===t.charAt(e+2)){if("-"===t.charAt(e+3)){var i=t.indexOf("-->",e+4);if(i>e)return r.comment(t,e+4,i-e-4),i+3;n.error("Unclosed comment")}}else{if("CDATA["==t.substr(e+3,6)){var i=t.indexOf("]]>",e+9);return r.startCDATA(),r.characters(t,e+9,i-e-9),r.endCDATA(),i+3}var a=function(t,e){var r,n=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=e,i.exec(t);r=i.exec(t);)if(n.push(r),r[1])return n}(t,e),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var s=a[1][0],u=!1,c=!1;o>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],c=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(c=a[3][0]));var f=a[o-1];return r.startDTD(s,u,c),r.endDTD(),f.index+f[0].length}}return -1}(t,E,i,a);break;default:g&&l(E);var R=new p,D=y[y.length-1].currentNSMap,N=function(t,e,r,i,a,o){function s(t,e,n){r.attributeNames.hasOwnProperty(t)&&o.fatalError("Attribute "+t+" redefined"),r.addValue(t,e,n)}for(var u,c,f=++e,l=0;;){var p=t.charAt(f);switch(p){case"=":if(1===l)u=t.slice(e,f),l=3;else if(2===l)l=3;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(3===l||1===l){if(1===l&&(o.warning('attribute value must after "="'),u=t.slice(e,f)),e=f+1,(f=t.indexOf(p,e))>0)s(u,c=t.slice(e,f).replace(/&#?\w+;/g,a),e-1),l=5;else throw Error("attribute value no end '"+p+"' match")}else if(4==l)s(u,c=t.slice(e,f).replace(/&#?\w+;/g,a),e),o.warning('attribute "'+u+'" missed start quot('+p+")!!"),e=f+1,l=5;else throw Error('attribute value must after "="');break;case"/":switch(l){case 0:r.setTagName(t.slice(e,f));case 5:case 6:case 7:l=7,r.closed=!0;case 4:case 1:case 2:break;default:throw Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==l&&r.setTagName(t.slice(e,f)),f;case">":switch(l){case 0:r.setTagName(t.slice(e,f));case 5:case 6:case 7:break;case 4:case 1:"/"===(c=t.slice(e,f)).slice(-1)&&(r.closed=!0,c=c.slice(0,-1));case 2:2===l&&(c=u),4==l?(o.warning('attribute "'+c+'" missed quot(")!'),s(u,c.replace(/&#?\w+;/g,a),e)):(n.isHTML(i[""])&&c.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),s(c,c,e));break;case 3:throw Error("attribute value missed!!")}return f;case"\x80":p=" ";default:if(p<=" ")switch(l){case 0:r.setTagName(t.slice(e,f)),l=6;break;case 1:u=t.slice(e,f),l=2;break;case 4:var c=t.slice(e,f).replace(/&#?\w+;/g,a);o.warning('attribute "'+c+'" missed quot(")!!'),s(u,c,e);case 5:l=6}else switch(l){case 2:r.tagName,n.isHTML(i[""])&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead2!!'),s(u,u,e),e=f,l=1;break;case 5:o.warning('attribute space is required"'+u+'"!!');case 6:l=1,e=f;break;case 3:l=4,e=f;break;case 7:throw Error("elements closed character '/' and '>' must be connected to")}}f++}}(t,E,R,D,o,a),C=R.length;if(!R.closed&&function(t,e,r,n){var i=n[r];return null==i&&((i=t.lastIndexOf("</"+r+">"))<e&&(i=t.lastIndexOf("</"+r)),n[r]=i),i<e}(t,N,R.tagName,v)&&(R.closed=!0,r.nbsp||a.warning("unclosed xml attribute")),g&&C){for(var L=c(g,{}),U=0;U<C;U++){var M=R[U];l(M.offset),M.locator=c(g,{})}i.locator=L,f(R,i,D)&&y.push(R),i.locator=g}else f(R,i,D)&&y.push(R);n.isHTML(R.uri)&&!R.closed?N=function(t,e,r,n,i){if(/^(?:script|textarea)$/i.test(r)){var a=t.indexOf("</"+r+">",e),o=t.substring(e+1,a);if(/[&<]/.test(o))return/^script$/i.test(r)?(i.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,n),i.characters(o,0,o.length),a)}return e+1}(t,N,R.tagName,o,i):N++}}catch(t){if(t instanceof s)throw t;a.error("element parse error: "+t),N=-1}N>b?b=N:u(Math.max(E,b)+1)}}(t,e,r,i,this.errorHandler),i.endDocument()}},p.prototype={setTagName:function(t){if(!o.test(t))throw Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,r){if(!o.test(t))throw Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:r}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},e.XMLReader=u,e.ParseError=s},79742:function(t,e){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,a=u(t),o=a[0],s=a[1],c=new i((o+s)*3/4-s),f=0,l=s>0?o-4:o;for(r=0;r<l;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],c[f++]=e>>16&255,c[f++]=e>>8&255,c[f++]=255&e;return 2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[f++]=255&e),1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(function(t,e,n){for(var i,a=[],o=e;o<n;o+=3)a.push(r[(i=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]))>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}(t,o,o+16383>s?s:o+16383));return 1===i?a.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&a.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),a.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)r[o]=a[o],n[a.charCodeAt(o)]=o;function u(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48764:function(t,e,r){"use strict";/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var n=r(79742),i=r(80645),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(t){if(t>2147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return f(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!s.isEncoding(e))throw TypeError("Unknown encoding: "+e);var r=0|d(t,e),n=o(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(R(t,Uint8Array)){var e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return l(t)}(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(R(t,ArrayBuffer)||t&&R(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(R(t,SharedArrayBuffer)||t&&R(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return s.from(n,e,r);var i=function(t){if(s.isBuffer(t)){var e,r=0|h(t.length),n=o(r);return 0===n.length||t.copy(n,0,0,r),n}return void 0!==t.length?"number"!=typeof t.length||(e=t.length)!=e?o(0):l(t):"Buffer"===t.type&&Array.isArray(t.data)?l(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function f(t){return c(t),o(t<0?0:0|h(t))}function l(t){for(var e=t.length<0?0:0|h(t.length),r=o(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function p(t,e,r){var n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),s.prototype),n}function h(t){if(t>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function d(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||R(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return x(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return I(t).length;default:if(i)return n?-1:x(t).length;e=(""+e).toLowerCase(),i=!0}}function m(t,e,r){var i,a,o=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a<r;++a)i+=D[t[a]];return i}(this,e,r);case"utf8":case"utf-8":return b(this,e,r);case"ascii":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":return i=e,a=r,0===i&&a===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(i,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var n=t.slice(e,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}(this,e,r);default:if(o)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,i){var a;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(a=r=+r)!=a&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return -1;r=t.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,i);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,i);throw TypeError("val must be string, number or Buffer")}function v(t,e,r,n,i){var a,o=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;o=2,s/=2,u/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var f=-1;for(a=r;a<s;a++)if(c(t,a)===c(e,-1===f?0:a-f)){if(-1===f&&(f=a),a-f+1===u)return f*o}else -1!==f&&(a-=a-f),f=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){for(var l=!0,p=0;p<u;p++)if(c(t,a+p)!==c(e,p)){l=!1;break}if(l)return a}return -1}function b(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var a,o,s,u,c=t[i],f=null,l=c>239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:(192&(a=t[i+1]))==128&&(u=(31&c)<<6|63&a)>127&&(f=u);break;case 3:a=t[i+1],o=t[i+2],(192&a)==128&&(192&o)==128&&(u=(15&c)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(u=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}function E(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function T(t,e,r,n,i,a){if(!s.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function w(t,e,r,n,i,a){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function N(t,e,r,n,a){return e=+e,r>>>=0,a||w(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function S(t,e,r,n,a){return e=+e,r>>>=0,a||w(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}e.lW=s,e.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,r){return u(t,e,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,r){return(c(t),t<=0)?o(t):void 0!==e?"string"==typeof r?o(t).fill(e,r):o(t).fill(e):o(t)},s.allocUnsafe=function(t){return f(t)},s.allocUnsafeSlow=function(t){return f(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(R(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),R(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i<a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,n=s.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(R(a,Uint8Array))i+a.length>n.length?s.from(a).copy(n,i):Uint8Array.prototype.set.call(n,a,i);else if(s.isBuffer(a))a.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=a.length}return n},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},s.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?b(this,0,t):m.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t="",r=e.h2;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(t,e,r,n,i){if(R(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var a=i-n,o=r-e,u=Math.min(a,o),c=this.slice(n,i),f=t.slice(e,r),l=0;l<u;++l)if(c[l]!==f[l]){a=c[l],o=f[l];break}return a<o?-1:o<a?1:0},s.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)},s.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,o,s,u,c,f,l,p=this.length-e;if((void 0===r||r>p)&&(r=p),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(e.substr(2*o,2),16);if(s!=s)break;t[r+o]=s}return o}(this,t,e,r);case"utf8":case"utf-8":return i=e,a=r,O(x(t,this.length-i),this,i,a);case"ascii":case"latin1":case"binary":return o=e,s=r,O(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(t),this,o,s);case"base64":return u=e,c=r,O(I(t),this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f=e,l=r,O(function(t,e){for(var r,n,i=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,i.push(r%256),i.push(n);return i}(t,this.length-f),this,f,l);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||E(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(t,e){return t>>>=0,e||E(t,1,this.length),this[t]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||E(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||E(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a<e&&(i*=256);)n+=this[t+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||E(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},s.prototype.readInt8=function(t,e){return(t>>>=0,e||E(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||E(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||E(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||E(t,4,this.length),i.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||E(t,4,this.length),i.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||E(t,8,this.length),i.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||E(t,8,this.length),i.read(this,t,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;T(this,t,e,r,i,0)}var a=1,o=0;for(this[e]=255&t;++o<r&&(a*=256);)this[e+o]=t/a&255;return e+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;T(this,t,e,r,i,0)}var a=r-1,o=1;for(this[e+a]=255&t;--a>=0&&(o*=256);)this[e+a]=t/o&255;return e+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);T(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a<r&&(o*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);T(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,r){return N(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return N(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return S(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return S(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},s.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var i,a=t.charCodeAt(0);("utf8"===n&&a<128||"latin1"===n)&&(t=a)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var o=s.isBuffer(t)?t:s.from(t,n),u=o.length;if(0===u)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=o[i%u]}return this};var A=/[^+/0-9A-Za-z-_]/g;function x(t,e){e=e||1/0;for(var r,n=t.length,i=null,a=[],o=0;o<n;++o){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319||o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function I(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function O(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function R(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var D=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},89144:function(t,e,r){var n,i=void 0!==r.g?r.g:"undefined"!=typeof window?window:{},a=r(25893);"undefined"!=typeof document?n=document:(n=i["__GLOBAL_DOCUMENT_CACHE@4"])||(n=i["__GLOBAL_DOCUMENT_CACHE@4"]=a),t.exports=n},58908:function(t,e,r){var n;n="undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},t.exports=n},80645:function(t,e){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */e.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,u=(1<<s)-1,c=u>>1,f=-7,l=r?i-1:0,p=r?-1:1,h=t[e+l];for(l+=p,a=h&(1<<-f)-1,h>>=-f,f+=s;f>0;a=256*a+t[e+l],l+=p,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=256*o+t[e+l],l+=p,f-=8);if(0===a)a=1-c;else{if(a===u)return o?NaN:(h?-1:1)*(1/0);o+=Math.pow(2,n),a-=c}return(h?-1:1)*o*Math.pow(2,a-n)},e.write=function(t,e,r,n,i,a){var o,s,u,c=8*a-i-1,f=(1<<c)-1,l=f>>1,p=23===i?5960464477539062e-23:0,h=n?0:a-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(s=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+l>=1?e+=p/u:e+=p*Math.pow(2,1-l),e*u>=2&&(o++,u/=2),o+l>=f?(s=0,o=f):o+l>=1?(s=(e*u-1)*Math.pow(2,i),o+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;t[r+h]=255&s,h+=d,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;t[r+h]=255&o,h+=d,o/=256,c-=8);t[r+h-d]|=128*m}},27376:function(t){t.exports=function(t){if(!t)return!1;var r=e.call(t);return"[object Function]"===r||"function"==typeof t&&"[object RegExp]"!==r||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString},27537:function(t,e){function r(t){if(t&&"object"==typeof t){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"==typeof t)return o[t];var r=String(t),a=n[r.toLowerCase()];if(a)return a;var a=i[r.toLowerCase()];return a||(1===r.length?r.charCodeAt(0):void 0)}r.isEventKey=function(t,e){if(t&&"object"==typeof t){var r=t.which||t.keyCode||t.charCode;if(null==r)return!1;if("string"==typeof e){var a=n[e.toLowerCase()];if(a)return a===r;var a=i[e.toLowerCase()];if(a)return a===r}else if("number"==typeof e)return e===r;return!1}};var n=(e=t.exports=r).code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=e.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
* Programatically add the following
*/for(a=97;a<123;a++)n[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)n[a-48]=a;for(a=1;a<13;a++)n["f"+a]=a+111;for(a=0;a<10;a++)n["numpad "+a]=a+96;var o=e.names=e.title={};for(a in n)o[n[a]]=a;for(var s in i)n[s]=i[s]},9323:function(t,e,r){"use strict";r.d(e,{_b:function(){return d}});var n=r(94578),i=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var r=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(r,1),r>-1},e.trigger=function(t){var e=this.listeners[t];if(e){if(2==arguments.length)for(var r=e.length,n=0;n<r;++n)e[n].call(this,arguments[1]);else for(var i=Array.prototype.slice.call(arguments,1),a=e.length,o=0;o<a;++o)e[o].apply(this,i)}},e.dispose=function(){this.listeners={}},e.pipe=function(t){this.on("data",function(e){t.push(e)})},t}(),a=r(87462),o=r(97326),s=r(36722),u=function(t){function e(){var e;return(e=t.call(this)||this).buffer="",e}return(0,n.Z)(e,t),e.prototype.push=function(t){var e;for(this.buffer+=t,e=this.buffer.indexOf("\n");e>-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},e}(i),c=function(t){var e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),r={};return e[1]&&(r.length=parseInt(e[1],10)),e[2]&&(r.offset=parseInt(e[2],10)),r},f=function(t){for(var e,r=t.split(RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},i=r.length;i--;)""!==r[i]&&((e=/([^=]*)=(.*)/.exec(r[i]).slice(1))[0]=e[0].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1"),n[e[0]]=e[1]);return n},l=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}(0,n.Z)(e,t);var r=e.prototype;return r.push=function(t){var e,r,n=this;if(0!==(t=t.trim()).length){if("#"!==t[0]){this.trigger("data",{type:"uri",uri:t});return}this.tagMappers.reduce(function(e,r){var n=r(t);return n===t?e:e.concat([n])},[t]).forEach(function(t){for(var i=0;i<n.customParsers.length;i++)if(n.customParsers[i].call(n,t))return;if(0!==t.indexOf("#EXT")){n.trigger("data",{type:"comment",text:t.slice(1)});return}if(t=t.replace("\r",""),e=/^#EXTM3U/.exec(t)){n.trigger("data",{type:"tag",tagType:"m3u"});return}if(e=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(t)){r={type:"tag",tagType:"inf"},e[1]&&(r.duration=parseFloat(e[1])),e[2]&&(r.title=e[2]),n.trigger("data",r);return}if(e=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(t)){r={type:"tag",tagType:"targetduration"},e[1]&&(r.duration=parseInt(e[1],10)),n.trigger("data",r);return}if(e=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(t)){r={type:"tag",tagType:"version"},e[1]&&(r.version=parseInt(e[1],10)),n.trigger("data",r);return}if(e=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(t)){r={type:"tag",tagType:"media-sequence"},e[1]&&(r.number=parseInt(e[1],10)),n.trigger("data",r);return}if(e=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(t)){r={type:"tag",tagType:"discontinuity-sequence"},e[1]&&(r.number=parseInt(e[1],10)),n.trigger("data",r);return}if(e=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(t)){r={type:"tag",tagType:"playlist-type"},e[1]&&(r.playlistType=e[1]),n.trigger("data",r);return}if(e=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(t)){r=(0,a.Z)(c(e[1]),{type:"tag",tagType:"byterange"}),n.trigger("data",r);return}if(e=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(t)){r={type:"tag",tagType:"allow-cache"},e[1]&&(r.allowed=!/NO/.test(e[1])),n.trigger("data",r);return}if(e=/^#EXT-X-MAP:?(.*)$/.exec(t)){if(r={type:"tag",tagType:"map"},e[1]){var o=f(e[1]);o.URI&&(r.uri=o.URI),o.BYTERANGE&&(r.byterange=c(o.BYTERANGE))}n.trigger("data",r);return}if(e=/^#EXT-X-STREAM-INF:?(.*)$/.exec(t)){if(r={type:"tag",tagType:"stream-inf"},e[1]){if(r.attributes=f(e[1]),r.attributes.RESOLUTION){var s=r.attributes.RESOLUTION.split("x"),u={};s[0]&&(u.width=parseInt(s[0],10)),s[1]&&(u.height=parseInt(s[1],10)),r.attributes.RESOLUTION=u}r.attributes.BANDWIDTH&&(r.attributes.BANDWIDTH=parseInt(r.attributes.BANDWIDTH,10)),r.attributes["PROGRAM-ID"]&&(r.attributes["PROGRAM-ID"]=parseInt(r.attributes["PROGRAM-ID"],10))}n.trigger("data",r);return}if(e=/^#EXT-X-MEDIA:?(.*)$/.exec(t)){r={type:"tag",tagType:"media"},e[1]&&(r.attributes=f(e[1])),n.trigger("data",r);return}if(e=/^#EXT-X-ENDLIST/.exec(t)){n.trigger("data",{type:"tag",tagType:"endlist"});return}if(e=/^#EXT-X-DISCONTINUITY/.exec(t)){n.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(e=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(t)){r={type:"tag",tagType:"program-date-time"},e[1]&&(r.dateTimeString=e[1],r.dateTimeObject=new Date(e[1])),n.trigger("data",r);return}if(e=/^#EXT-X-KEY:?(.*)$/.exec(t)){r={type:"tag",tagType:"key"},e[1]&&(r.attributes=f(e[1]),r.attributes.IV&&("0x"===r.attributes.IV.substring(0,2).toLowerCase()&&(r.attributes.IV=r.attributes.IV.substring(2)),r.attributes.IV=r.attributes.IV.match(/.{8}/g),r.attributes.IV[0]=parseInt(r.attributes.IV[0],16),r.attributes.IV[1]=parseInt(r.attributes.IV[1],16),r.attributes.IV[2]=parseInt(r.attributes.IV[2],16),r.attributes.IV[3]=parseInt(r.attributes.IV[3],16),r.attributes.IV=new Uint32Array(r.attributes.IV))),n.trigger("data",r);return}if(e=/^#EXT-X-START:?(.*)$/.exec(t)){r={type:"tag",tagType:"start"},e[1]&&(r.attributes=f(e[1]),r.attributes["TIME-OFFSET"]=parseFloat(r.attributes["TIME-OFFSET"]),r.attributes.PRECISE=/YES/.test(r.attributes.PRECISE)),n.trigger("data",r);return}if(e=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(t)){r={type:"tag",tagType:"cue-out-cont"},e[1]?r.data=e[1]:r.data="",n.trigger("data",r);return}if(e=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(t)){r={type:"tag",tagType:"cue-out"},e[1]?r.data=e[1]:r.data="",n.trigger("data",r);return}if(e=/^#EXT-X-CUE-IN:?(.*)?$/.exec(t)){r={type:"tag",tagType:"cue-in"},e[1]?r.data=e[1]:r.data="",n.trigger("data",r);return}if((e=/^#EXT-X-SKIP:(.*)$/.exec(t))&&e[1]){(r={type:"tag",tagType:"skip"}).attributes=f(e[1]),r.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(r.attributes["SKIPPED-SEGMENTS"]=parseInt(r.attributes["SKIPPED-SEGMENTS"],10)),r.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(r.attributes["RECENTLY-REMOVED-DATERANGES"]=r.attributes["RECENTLY-REMOVED-DATERANGES"].split(" ")),n.trigger("data",r);return}if((e=/^#EXT-X-PART:(.*)$/.exec(t))&&e[1]){(r={type:"tag",tagType:"part"}).attributes=f(e[1]),["DURATION"].forEach(function(t){r.attributes.hasOwnProperty(t)&&(r.attributes[t]=parseFloat(r.attributes[t]))}),["INDEPENDENT","GAP"].forEach(function(t){r.attributes.hasOwnProperty(t)&&(r.attributes[t]=/YES/.test(r.attributes[t]))}),r.attributes.hasOwnProperty("BYTERANGE")&&(r.attributes.byterange=c(r.attributes.BYTERANGE)),n.trigger("data",r);return}if((e=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(t))&&e[1]){(r={type:"tag",tagType:"server-control"}).attributes=f(e[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(t){r.attributes.hasOwnProperty(t)&&(r.attributes[t]=parseFloat(r.attributes[t]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(t){r.attributes.hasOwnProperty(t)&&(r.attributes[t]=/YES/.test(r.attributes[t]))}),n.trigger("data",r);return}if((e=/^#EXT-X-PART-INF:(.*)$/.exec(t))&&e[1]){(r={type:"tag",tagType:"part-inf"}).attributes=f(e[1]),["PART-TARGET"].forEach(function(t){r.attributes.hasOwnProperty(t)&&(r.attributes[t]=parseFloat(r.attributes[t]))}),n.trigger("data",r);return}if((e=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(t))&&e[1]){(r={type:"tag",tagType:"preload-hint"}).attributes=f(e[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(t){r.attributes.hasOwnProperty(t)&&(r.attributes[t]=parseInt(r.attributes[t],10),r.attributes.byterange=r.attributes.byterange||{},r.attributes.byterange["BYTERANGE-LENGTH"===t?"length":"offset"]=r.attributes[t],delete r.attributes[t])}),n.trigger("data",r);return}if((e=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(t))&&e[1]){(r={type:"tag",tagType:"rendition-report"}).attributes=f(e[1]),["LAST-MSN","LAST-PART"].forEach(function(t){r.attributes.hasOwnProperty(t)&&(r.attributes[t]=parseInt(r.attributes[t],10))}),n.trigger("data",r);return}n.trigger("data",{type:"tag",data:t.slice(4)})})}},r.addParser=function(t){var e=this,r=t.expression,n=t.customType,i=t.dataParser,a=t.segment;"function"!=typeof i&&(i=function(t){return t}),this.customParsers.push(function(t){if(r.exec(t))return e.trigger("data",{type:"custom",data:i(t),customType:n,segment:a}),!0})},r.addTagMapper=function(t){var e=t.expression,r=t.map;this.tagMappers.push(function(t){return e.test(t)?r(t):t})},e}(i),p=function(t){var e={};return Object.keys(t).forEach(function(r){e[r.toLowerCase().replace(/-(\w)/g,function(t){return t[1].toUpperCase()})]=t[r]}),e},h=function(t){var e=t.serverControl,r=t.targetDuration,n=t.partTargetDuration;if(e){var i="#EXT-X-SERVER-CONTROL",a="holdBack",o="partHoldBack",s=r&&3*r,u=n&&2*n;r&&!e.hasOwnProperty(a)&&(e[a]=s,this.trigger("info",{message:i+" defaulting HOLD-BACK to targetDuration * 3 ("+s+")."})),s&&e[a]<s&&(this.trigger("warn",{message:i+" clamping HOLD-BACK ("+e[a]+") to targetDuration * 3 ("+s+")"}),e[a]=s),n&&!e.hasOwnProperty(o)&&(e[o]=3*n,this.trigger("info",{message:i+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+e[o]+")."})),n&&e[o]<u&&(this.trigger("warn",{message:i+" clamping PART-HOLD-BACK ("+e[o]+") to partTargetDuration * 2 ("+u+")."}),e[o]=u)}},d=function(t){function e(){(e=t.call(this)||this).lineStream=new u,e.parseStream=new l,e.lineStream.pipe(e.parseStream);var e,r,n,i=(0,o.Z)(e),c=[],f={},d=!1,m=function(){},g={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},y=0;e.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var v=0,b=0;return e.on("end",function(){!f.uri&&(f.parts||f.preloadHints)&&(!f.map&&r&&(f.map=r),!f.key&&n&&(f.key=n),f.timeline||"number"!=typeof y||(f.timeline=y),e.manifest.preloadSegment=f)}),e.parseStream.on("data",function(t){var e,o;({tag:function(){(({version:function(){t.version&&(this.manifest.version=t.version)},"allow-cache":function(){this.manifest.allowCache=t.allowed,"allowed"in t||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var e={};"length"in t&&(f.byterange=e,e.length=t.length,"offset"in t||(t.offset=v)),"offset"in t&&(f.byterange=e,e.offset=t.offset),v=e.offset+e.length},endlist:function(){this.manifest.endList=!0},inf:function(){"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"})),t.duration>0&&(f.duration=t.duration),0===t.duration&&(f.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=c},key:function(){if(!t.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if("NONE"===t.attributes.METHOD){n=null;return}if(!t.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if("com.apple.streamingkeydelivery"===t.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:t.attributes};return}if("com.microsoft.playready"===t.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:t.attributes.URI};return}if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===t.attributes.KEYFORMAT){if(-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(t.attributes.METHOD)){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if("SAMPLE-AES-CENC"===t.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==t.attributes.URI.substring(0,23)){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(t.attributes.KEYID&&"0x"===t.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:t.attributes.KEYFORMAT,keyId:t.attributes.KEYID.substring(2)},pssh:(0,s.Z)(t.attributes.URI.split(",")[1])};return}t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},void 0!==t.attributes.IV&&(n.iv=t.attributes.IV)},"media-sequence":function(){if(!isFinite(t.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number});return}this.manifest.mediaSequence=t.number},"discontinuity-sequence":function(){if(!isFinite(t.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number});return}this.manifest.discontinuitySequence=t.number,y=t.number},"playlist-type":function(){if(!/VOD|EVENT/.test(t.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist});return}this.manifest.playlistType=t.playlistType},map:function(){r={},t.uri&&(r.uri=t.uri),t.byterange&&(r.byterange=t.byterange),n&&(r.key=n)},"stream-inf":function(){if(this.manifest.playlists=c,this.manifest.mediaGroups=this.manifest.mediaGroups||g,!t.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}f.attributes||(f.attributes={}),(0,a.Z)(f.attributes,t.attributes)},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||g,!(t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}var r=this.manifest.mediaGroups[t.attributes.TYPE];r[t.attributes["GROUP-ID"]]=r[t.attributes["GROUP-ID"]]||{},e=r[t.attributes["GROUP-ID"]],(o={default:/yes/i.test(t.attributes.DEFAULT)}).default?o.autoselect=!0:o.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(o.language=t.attributes.LANGUAGE),t.attributes.URI&&(o.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(o.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(o.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(o.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=o},discontinuity:function(){y+=1,f.discontinuity=!0,this.manifest.discontinuityStarts.push(c.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),f.dateTimeString=t.dateTimeString,f.dateTimeObject=t.dateTimeObject},targetduration:function(){if(!isFinite(t.duration)||t.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration});return}this.manifest.targetDuration=t.duration,h.call(this,this.manifest)},start:function(){if(!t.attributes||isNaN(t.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}},"cue-out":function(){f.cueOut=t.data},"cue-out-cont":function(){f.cueOutCont=t.data},"cue-in":function(){f.cueIn=t.data},skip:function(){this.manifest.skip=p(t.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",t.attributes,["SKIPPED-SEGMENTS"])},part:function(){var e=this;d=!0;var r=this.manifest.segments.length,n=p(t.attributes);f.parts=f.parts||[],f.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=b),b=n.byterange.offset+n.byterange.length);var i=f.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+i+" for segment #"+r,t.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(function(t,r){t.hasOwnProperty("lastPart")||e.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+r+" lacks required attribute(s): LAST-PART"})})},"server-control":function(){var e=this.manifest.serverControl=p(t.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),h.call(this,this.manifest),e.canSkipDateranges&&!e.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":function(){var e=this.manifest.segments.length,r=p(t.attributes),n=r.type&&"PART"===r.type;f.preloadHints=f.preloadHints||[],f.preloadHints.push(r),r.byterange&&!r.byterange.hasOwnProperty("offset")&&(r.byterange.offset=n?b:0,n&&(b=r.byterange.offset+r.byterange.length));var i=f.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+i+" for segment #"+e,t.attributes,["TYPE","URI"]),r.type)for(var a=0;a<f.preloadHints.length-1;a++){var o=f.preloadHints[a];o.type&&o.type===r.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+i+" for segment #"+e+" has the same TYPE "+r.type+" as preload hint #"+a})}},"rendition-report":function(){var e=p(t.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(e);var r=this.manifest.renditionReports.length-1,n=["LAST-MSN","URI"];d&&n.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+r,t.attributes,n)},"part-inf":function(){this.manifest.partInf=p(t.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",t.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),h.call(this,this.manifest)}})[t.tagType]||m).call(i)},uri:function(){f.uri=t.uri,c.push(f),!this.manifest.targetDuration||"duration"in f||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),f.duration=this.manifest.targetDuration),n&&(f.key=n),f.timeline=y,r&&(f.map=r),b=0,f={}},comment:function(){},custom:function(){t.segment?(f.custom=f.custom||{},f.custom[t.customType]=t.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[t.customType]=t.data)}})[t.type].call(i)}),e}(0,n.Z)(e,t);var r=e.prototype;return r.warnOnMissingAttributes_=function(t,e,r){var n=[];r.forEach(function(t){e.hasOwnProperty(t)||n.push(t)}),n.length&&this.trigger("warn",{message:t+" lacks required attribute(s): "+n.join(", ")})},r.push=function(t){this.lineStream.push(t)},r.end=function(){this.lineStream.push("\n"),this.trigger("end")},r.addParser=function(t){this.parseStream.addParser(t)},r.addTagMapper=function(t){this.parseStream.addTagMapper(t)},e}(i)},12955:function(t,e,r){"use strict";r.d(e,{jp:function(){return N},mm:function(){return L},Qc:function(){return tp},LG:function(){return th}});var n=r(80779),i=r(58908),a=r.n(i),o=function(t,e,r){e.forEach(function(e){for(var n in t.mediaGroups[e])for(var i in t.mediaGroups[e][n])r(t.mediaGroups[e][n][i],e,n,i)})},s=r(36722),u=r(3969),c=function(t){return!!t&&"object"==typeof t},f=function t(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.reduce(function(e,r){return"object"!=typeof r||Object.keys(r).forEach(function(n){Array.isArray(e[n])&&Array.isArray(r[n])?e[n]=e[n].concat(r[n]):c(e[n])&&c(r[n])?e[n]=t(e[n],r[n]):e[n]=r[n]}),e},{})},l=function(t){return Object.keys(t).map(function(e){return t[e]})},p=function(t,e){for(var r=[],n=t;n<e;n++)r.push(n);return r},h=function(t){return t.reduce(function(t,e){return t.concat(e)},[])},d=function(t){if(!t.length)return[];for(var e=[],r=0;r<t.length;r++)e.push(t[r]);return e},m=function(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return r;return -1},g={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"},y=function(t){var e=t.baseUrl,r=t.source,i=void 0===r?"":r,o=t.range,s=void 0===o?"":o,u=t.indexRange,c=void 0===u?"":u,f={uri:i,resolvedUri:(0,n.Z)((void 0===e?"":e)||"",i)};if(s||c){var l,p=(s||c).split("-"),h=a().BigInt?a().BigInt(p[0]):parseInt(p[0],10),d=a().BigInt?a().BigInt(p[1]):parseInt(p[1],10);h<Number.MAX_SAFE_INTEGER&&"bigint"==typeof h&&(h=Number(h)),d<Number.MAX_SAFE_INTEGER&&"bigint"==typeof d&&(d=Number(d)),"bigint"==typeof(l="bigint"==typeof d||"bigint"==typeof h?a().BigInt(d)-a().BigInt(h)+a().BigInt(1):d-h+1)&&l<Number.MAX_SAFE_INTEGER&&(l=Number(l)),f.byterange={length:l,offset:h}}return f},v=function(t){var e;return e="bigint"==typeof t.offset||"bigint"==typeof t.length?a().BigInt(t.offset)+a().BigInt(t.length)-a().BigInt(1):t.offset+t.length-1,t.offset+"-"+e},b=function(t){return(t&&"number"!=typeof t&&(t=parseInt(t,10)),isNaN(t))?null:t},E={static:function(t){var e=t.duration,r=t.timescale,n=t.sourceDuration,i=t.periodDuration,a=b(t.endNumber),o=e/(void 0===r?1:r);return"number"==typeof a?{start:0,end:a}:"number"==typeof i?{start:0,end:i/o}:{start:0,end:n/o}},dynamic:function(t){var e=t.NOW,r=t.clientOffset,n=t.availabilityStartTime,i=t.timescale,a=void 0===i?1:i,o=t.duration,s=t.periodStart,u=t.minimumUpdatePeriod,c=t.timeShiftBufferDepth,f=b(t.endNumber),l=(e+r)/1e3,p=n+(void 0===s?0:s);return{start:Math.max(0,Math.floor((l-p-(void 0===c?1/0:c))*a/o)),end:"number"==typeof f?f:Math.min(Math.ceil((l+(void 0===u?0:u)-p)*a/o),Math.floor((l-p)*a/o))}}},T=function(t){var e=t.type,r=t.duration,n=t.timescale,i=t.periodDuration,a=t.sourceDuration,o=E[e](t),s=p(o.start,o.end).map(function(e){var r=t.duration,n=t.timescale,i=t.periodStart,a=t.startNumber;return{number:(void 0===a?1:a)+e,duration:r/(void 0===n?1:n),timeline:i,time:e*r}});if("static"===e){var u=s.length-1;s[u].duration=("number"==typeof i?i:a)-r/(void 0===n?1:n)*u}return s},w=function(t){var e=t.baseUrl,r=t.initialization,n=void 0===r?{}:r,i=t.sourceDuration,a=t.indexRange,o=t.periodStart,s=t.presentationTime,u=t.number,c=t.duration;if(!e)throw Error(g.NO_BASE_URL);var f=y({baseUrl:e,source:n.sourceURL,range:n.range}),l=y({baseUrl:e,source:e,indexRange:void 0===a?"":a});if(l.map=f,c){var p=T(t);p.length&&(l.duration=p[0].duration,l.timeline=p[0].timeline)}else i&&(l.duration=i,l.timeline=o);return l.presentationTime=s||o,l.number=void 0===u?0:u,[l]},N=function(t,e,r){var n,i=t.sidx.map?t.sidx.map:null,o=t.sidx.duration,s=t.timeline||0,u=t.sidx.byterange,c=u.offset+u.length,f=e.timescale,l=e.references.filter(function(t){return 1!==t.referenceType}),p=[],h=t.endList?"static":"dynamic",d=t.sidx.timeline,m=d,g=t.mediaSequence||0;n="bigint"==typeof e.firstOffset?a().BigInt(c)+e.firstOffset:c+e.firstOffset;for(var y=0;y<l.length;y++){var v=e.references[y],b=v.referencedSize,E=v.subsegmentDuration,T=void 0;T="bigint"==typeof n?n+a().BigInt(b)-a().BigInt(1):n+b-1;var N=w({baseUrl:r,timescale:f,timeline:s,periodStart:d,presentationTime:m,number:g,duration:E,sourceDuration:o,indexRange:n+"-"+T,type:h})[0];i&&(N.map=i),p.push(N),"bigint"==typeof n?n+=a().BigInt(b):n+=b,m+=E/f,g++}return t.segments=p,t},S=["AUDIO","SUBTITLES"],A=1/60,x=function(t){return l(t.reduce(function(t,e){return e.forEach(function(e){t[e.timeline]=e}),t},{})).sort(function(t,e){return t.timeline>e.timeline?1:-1})},I=function(t,e){for(var r=0;r<t.length;r++)if(t[r].attributes.NAME===e)return t[r];return null},O=function(t){var e=[];return o(t,S,function(t,r,n,i){e=e.concat(t.playlists||[])}),e},R=function(t){var e=t.playlist,r=t.mediaSequence;e.mediaSequence=r,e.segments.forEach(function(t,r){t.number=e.mediaSequence+r})},D=function(t){var e=t.oldPlaylists,r=t.newPlaylists,n=t.timelineStarts;r.forEach(function(t){t.discontinuitySequence=m(n,function(e){return e.timeline===t.timeline});var r=I(e,t.attributes.NAME);if(r&&!t.sidx){var i=t.segments[0],a=m(r.segments,function(t){return Math.abs(t.presentationTime-i.presentationTime)<A});if(-1===a){R({playlist:t,mediaSequence:r.mediaSequence+r.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),(!r.segments.length&&t.timeline>r.timeline||r.segments.length&&t.timeline>r.segments[r.segments.length-1].timeline)&&t.discontinuitySequence--;return}r.segments[a].discontinuity&&!i.discontinuity&&(i.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),R({playlist:t,mediaSequence:r.segments[a].number})}})},C=function(t){var e=t.oldManifest,r=t.newManifest,n=e.playlists.concat(O(e)),i=r.playlists.concat(O(r));return r.timelineStarts=x([e.timelineStarts,r.timelineStarts]),D({oldPlaylists:n,newPlaylists:i,timelineStarts:r.timelineStarts}),r},L=function(t){return t&&t.uri+"-"+v(t.byterange)},U=function(t){return l(t.reduce(function(t,e){var r,n=e.attributes.id+(e.attributes.lang||"");return t[n]?(e.segments&&(e.segments[0]&&(e.segments[0].discontinuity=!0),(r=t[n].segments).push.apply(r,e.segments)),e.attributes.contentProtection&&(t[n].attributes.contentProtection=e.attributes.contentProtection)):(t[n]=e,t[n].attributes.timelineStarts=[]),t[n].attributes.timelineStarts.push({start:e.attributes.periodStart,timeline:e.attributes.periodStart}),t},{})).map(function(t){return t.discontinuityStarts=(t.segments||[]).reduce(function(t,e,r){return e.discontinuity&&t.push(r),t},[]),t})},M=function(t,e){var r=L(t.sidx),n=r&&e[r]&&e[r].sidx;return n&&N(t,n,t.sidx.resolvedUri),t},P=function(t,e){if(void 0===e&&(e={}),!Object.keys(e).length)return t;for(var r in t)t[r]=M(t[r],e);return t},B=function(t,e){var r,n=t.attributes,i=t.segments,a=t.sidx,o=t.mediaSequence,s=t.discontinuitySequence,u=t.discontinuityStarts,c={attributes:((r={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs})["PROGRAM-ID"]=1,r),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuitySequence:s,discontinuityStarts:u,timelineStarts:n.timelineStarts,mediaSequence:o,segments:i};return n.contentProtection&&(c.contentProtection=n.contentProtection),a&&(c.sidx=a),e&&(c.attributes.AUDIO="audio",c.attributes.SUBTITLES="subs"),c},k=function(t){var e,r=t.attributes,n=t.segments,i=t.mediaSequence,a=t.discontinuityStarts,o=t.discontinuitySequence;void 0===n&&(n=[{uri:r.baseUrl,timeline:r.periodStart,resolvedUri:r.baseUrl||"",duration:r.sourceDuration,number:0}],r.duration=r.sourceDuration);var s=((e={NAME:r.id,BANDWIDTH:r.bandwidth})["PROGRAM-ID"]=1,e);return r.codecs&&(s.CODECS=r.codecs),{attributes:s,uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:r.baseUrl||"",targetDuration:r.duration,timelineStarts:r.timelineStarts,discontinuityStarts:a,discontinuitySequence:o,mediaSequence:i,segments:n}},_=function(t,e,r){void 0===e&&(e={}),void 0===r&&(r=!1);var n,i=t.reduce(function(t,i){var a=i.attributes.role&&i.attributes.role.value||"",o=i.attributes.lang||"",s=i.attributes.label||"main";o&&!i.attributes.label&&(s=""+i.attributes.lang+(a?" ("+a+")":"")),t[s]||(t[s]={language:o,autoselect:!0,default:"main"===a,playlists:[],uri:""});var u=M(B(i,r),e);return t[s].playlists.push(u),void 0===n&&"main"===a&&((n=i).default=!0),t},{});if(!n){var a=Object.keys(i)[0];i[a].default=!0}return i},X=function(t){var e,r=t.attributes,n=t.segments,i=t.sidx,a=t.discontinuityStarts,o={attributes:((e={NAME:r.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:r.width,height:r.height},CODECS:r.codecs,BANDWIDTH:r.bandwidth})["PROGRAM-ID"]=1,e),uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:"",targetDuration:r.duration,discontinuityStarts:a,timelineStarts:r.timelineStarts,segments:n};return r.contentProtection&&(o.contentProtection=r.contentProtection),i&&(o.sidx=i),o},G=function(t){var e=t.attributes;return"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType},F=function(t){var e=t.attributes;return"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType},H=function(t){var e=t.attributes;return"text/vtt"===e.mimeType||"text"===e.contentType},V=function(t,e){t.forEach(function(t){t.mediaSequence=0,t.discontinuitySequence=m(e,function(e){return e.timeline===t.timeline}),t.segments&&t.segments.forEach(function(t,e){t.number=e})})},q=function(t){return t?Object.keys(t).reduce(function(e,r){var n=t[r];return e.concat(n.playlists)},[]):[]},j=function(t){var e,r,n=t.dashPlaylists,i=t.locations,a=t.sidxMapping,o=void 0===a?{}:a,s=t.previousManifest;if(!n.length)return{};var u=n[0].attributes,c=u.sourceDuration,f=u.type,l=u.suggestedPresentationDelay,p=u.minimumUpdatePeriod,h=U(n.filter(G)).map(X),d=U(n.filter(F)),m=U(n.filter(H)),g=n.map(function(t){return t.attributes.captionServices}).filter(Boolean),y={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:((r={AUDIO:{},VIDEO:{}})["CLOSED-CAPTIONS"]={},r.SUBTITLES={},r),uri:"",duration:c,playlists:P(h,o)};p>=0&&(y.minimumUpdatePeriod=1e3*p),i&&(y.locations=i),"dynamic"===f&&(y.suggestedPresentationDelay=l);var v=0===y.playlists.length,b=d.length?_(d,o,v):null,E=m.length?(void 0===(e=o)&&(e={}),m.reduce(function(t,r){var n=r.attributes.lang||"text";return t[n]||(t[n]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),t[n].playlists.push(M(k(r),e)),t},{})):null,T=h.concat(q(b),q(E)),w=T.map(function(t){return t.timelineStarts});return y.timelineStarts=x(w),V(T,y.timelineStarts),b&&(y.mediaGroups.AUDIO.audio=b),E&&(y.mediaGroups.SUBTITLES.subs=E),g.length&&(y.mediaGroups["CLOSED-CAPTIONS"].cc=g.reduce(function(t,e){return e&&e.forEach(function(e){var r=e.channel,n=e.language;t[n]={autoselect:!1,default:!1,instreamId:r,language:n},e.hasOwnProperty("aspectRatio")&&(t[n].aspectRatio=e.aspectRatio),e.hasOwnProperty("easyReader")&&(t[n].easyReader=e.easyReader),e.hasOwnProperty("3D")&&(t[n]["3D"]=e["3D"])}),t},{})),s?C({oldManifest:s,newManifest:y}):y},K=function(t,e,r){var n=t.NOW,i=t.clientOffset,a=t.availabilityStartTime,o=t.timescale,s=t.periodStart,u=t.minimumUpdatePeriod;return Math.ceil((((n+i)/1e3+(void 0===u?0:u)-(a+(void 0===s?0:s)))*(void 0===o?1:o)-e)/r)},z=function(t,e){for(var r=t.type,n=t.minimumUpdatePeriod,i=void 0===n?0:n,a=t.media,o=void 0===a?"":a,s=t.sourceDuration,u=t.timescale,c=void 0===u?1:u,f=t.startNumber,l=void 0===f?1:f,p=t.periodStart,h=[],d=-1,m=0;m<e.length;m++){var g=e[m],y=g.d,v=g.r||0,b=g.t||0;d<0&&(d=b),b&&b>d&&(d=b);var E=void 0;if(v<0){var T=m+1;E=T===e.length?"dynamic"===r&&i>0&&o.indexOf("$Number$")>0?K(t,d,y):(s*c-d)/y:(e[T].t-d)/y}else E=v+1;for(var w=l+h.length+E,N=l+h.length;N<w;)h.push({number:N,duration:y/c,time:d,timeline:p}),d+=y,N++}return h},Y=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,$=function(t,e){return t.replace(Y,function(t,r,n,i){if("$$"===t)return"$";if(void 0===e[r])return t;var a=""+e[r];return"RepresentationID"===r?a:(i=n?parseInt(i,10):1,a.length>=i)?a:""+Array(i-a.length+1).join("0")+a})},W=function(t,e){var r={RepresentationID:t.id,Bandwidth:t.bandwidth||0},i=t.initialization,a=void 0===i?{sourceURL:"",range:""}:i,o=y({baseUrl:t.baseUrl,source:$(a.sourceURL,r),range:a.range});return(t.duration||e?t.duration?T(t):z(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]).map(function(e){r.Number=e.number,r.Time=e.time;var i=$(t.media||"",r),a=t.timescale||1,s=t.presentationTimeOffset||0,u=t.periodStart+(e.time-s)/a;return{uri:i,timeline:e.timeline,duration:e.duration,resolvedUri:(0,n.Z)(t.baseUrl||"",i),map:o,number:e.number,presentationTime:u}})},Z=function(t,e){var r=t.baseUrl,n=t.initialization,i=void 0===n?{}:n,a=y({baseUrl:r,source:i.sourceURL,range:i.range}),o=y({baseUrl:r,source:e.media,range:e.mediaRange});return o.map=a,o},Q=function(t,e){var r,n=t.duration,i=t.segmentUrls,a=t.periodStart;if(!n&&!e||n&&e)throw Error(g.SEGMENT_TIME_UNSPECIFIED);var o=(void 0===i?[]:i).map(function(e){return Z(t,e)});return n&&(r=T(t)),e&&(r=z(t,e)),r.map(function(e,r){if(o[r]){var n=o[r],i=t.timescale||1,s=t.presentationTimeOffset||0;return n.timeline=e.timeline,n.duration=e.duration,n.number=e.number,n.presentationTime=a+(e.time-s)/i,n}}).filter(function(t){return t})},J=function(t){var e,r,n=t.attributes,i=t.segmentInfo;i.template?(r=W,e=f(n,i.template)):i.base?(r=w,e=f(n,i.base)):i.list&&(r=Q,e=f(n,i.list));var a={attributes:n};if(!r)return a;var o=r(e,i.segmentTimeline);if(e.duration){var s=e,u=s.duration,c=s.timescale;e.duration=u/(void 0===c?1:c)}else o.length?e.duration=o.reduce(function(t,e){return Math.max(t,Math.ceil(e.duration))},0):e.duration=0;return a.attributes=e,a.segments=o,i.base&&e.indexRange&&(a.sidx=o[0],a.segments=[]),a},tt=function(t,e){return d(t.childNodes).filter(function(t){return t.tagName===e})},te=function(t){return t.textContent.trim()},tr=function(t){var e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;var r=e.slice(1),n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5];return 31536e3*parseFloat(n||0)+2592e3*parseFloat(i||0)+86400*parseFloat(a||0)+3600*parseFloat(o||0)+60*parseFloat(s||0)+parseFloat(u||0)},tn={mediaPresentationDuration:function(t){return tr(t)},availabilityStartTime:function(t){var e;return e=t,/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)/1e3},minimumUpdatePeriod:function(t){return tr(t)},suggestedPresentationDelay:function(t){return tr(t)},type:function(t){return t},timeShiftBufferDepth:function(t){return tr(t)},start:function(t){return tr(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},presentationTimeOffset:function(t){return parseInt(t,10)},duration:function(t){var e=parseInt(t,10);return isNaN(e)?tr(t):e},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},ti=function(t){return t&&t.attributes?d(t.attributes).reduce(function(t,e){var r=tn[e.name]||tn.DEFAULT;return t[e.name]=r(e.value),t},{}):{}},ta={"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"},to=function(t,e){return e.length?h(t.map(function(t){return e.map(function(e){return(0,n.Z)(t,te(e))})})):t},ts=function(t){var e=tt(t,"SegmentTemplate")[0],r=tt(t,"SegmentList")[0],n=r&&tt(r,"SegmentURL").map(function(t){return f({tag:"SegmentURL"},ti(t))}),i=tt(t,"SegmentBase")[0],a=r||e,o=a&&tt(a,"SegmentTimeline")[0],s=r||i||e,u=s&&tt(s,"Initialization")[0],c=e&&ti(e);c&&u?c.initialization=u&&ti(u):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});var l={template:c,segmentTimeline:o&&tt(o,"S").map(function(t){return ti(t)}),list:r&&f(ti(r),{segmentUrls:n,initialization:ti(u)}),base:i&&f(ti(i),{initialization:ti(u)})};return Object.keys(l).forEach(function(t){l[t]||delete l[t]}),l},tu=function(t){var e=t.attributes,r=t.priorPeriodAttributes,n=t.mpdType;return"number"==typeof e.start?e.start:r&&"number"==typeof r.start&&"number"==typeof r.duration?r.start+r.duration:r||"static"!==n?null:0},tc=function(t,e){void 0===e&&(e={});var r=e,n=r.manifestUri,i=r.NOW,a=void 0===i?Date.now():i,o=r.clientOffset,u=tt(t,"Period");if(!u.length)throw Error(g.INVALID_NUMBER_OF_PERIOD);var c=tt(t,"Location"),l=ti(t),p=to([void 0===n?"":n],tt(t,"BaseURL"));l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=a,l.clientOffset=void 0===o?0:o,c.length&&(l.locations=c.map(te));var d=[];return u.forEach(function(t,e){var r=ti(t),n=d[e-1];r.start=tu({attributes:r,priorPeriodAttributes:n?n.attributes:null,mpdType:l.type}),d.push({node:t,attributes:r})}),{locations:l.locations,representationInfo:h(d.map(function(t,e){var r=to(p,tt(t.node,"BaseURL")),n=f(l,{periodStart:t.attributes.start});"number"==typeof t.attributes.duration&&(n.periodDuration=t.attributes.duration);var i=tt(t.node,"AdaptationSet"),a=ts(t.node);return h(i.map(function(t){var e,i,o=ti(t),u=to(r,tt(t,"BaseURL")),c=f(n,o,{role:ti(tt(t,"Role")[0])}),l="urn:scte:dash:cc:cea-608:2015"===(e=ti(tt(t,"Accessibility")[0])).schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map(function(t){if(r=t,/^CC\d=/.test(t)){var e,r,n=t.split("=");e=n[0],r=n[1]}else/^CC\d$/.test(t)&&(e=t);return{channel:e,language:r}}):"urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map(function(t){var e={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){var r=t.split("="),n=r[0],i=r[1];e.channel=n,e.language=t,(void 0===i?"":i).split(",").forEach(function(t){var r=t.split(":"),n=r[0],i=r[1];"lang"===n?e.language=i:"er"===n?e.easyReader=Number(i):"war"===n?e.aspectRatio=Number(i):"3D"===n&&(e["3D"]=Number(i))})}else e.language=t;return e.channel&&(e.channel="SERVICE"+e.channel),e}):void 0;l&&(c=f(c,{captionServices:l}));var p=tt(t,"Label")[0];p&&p.childNodes.length&&(c=f(c,{label:p.childNodes[0].nodeValue.trim()}));var d=tt(t,"ContentProtection").reduce(function(t,e){var r=ti(e);r.schemeIdUri&&(r.schemeIdUri=r.schemeIdUri.toLowerCase());var n=ta[r.schemeIdUri];if(n){t[n]={attributes:r};var i=tt(e,"cenc:pssh")[0];if(i){var a=te(i);t[n].pssh=a&&(0,s.Z)(a)}}return t},{});Object.keys(d).length&&(c=f(c,{contentProtection:d}));var m=ts(t),g=tt(t,"Representation"),y=f(a,m);return h(g.map((i=c,function(t){var e=to(u,tt(t,"BaseURL")),r=f(i,ti(t)),n=ts(t);return e.map(function(t){return{segmentInfo:f(y,n),attributes:f(r,{baseUrl:t})}})})))}))}))}},tf=function(t){if(""===t)throw Error(g.DASH_EMPTY_MANIFEST);var e,r,n=new u.DOMParser;try{r=(e=n.parseFromString(t,"application/xml"))&&"MPD"===e.documentElement.tagName?e.documentElement:null}catch(t){}if(!r||r&&r.getElementsByTagName("parsererror").length>0)throw Error(g.DASH_INVALID_XML);return r},tl=function(t){var e=tt(t,"UTCTiming")[0];if(!e)return null;var r=ti(e);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.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":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT",r.value=Date.parse(r.value);break;default:throw Error(g.UNSUPPORTED_UTC_TIMING_SCHEME)}return r},tp=function(t,e){void 0===e&&(e={});var r=tc(tf(t),e);return j({dashPlaylists:r.representationInfo.map(J),locations:r.locations,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest})},th=function(t){return tl(tf(t))}},84221:function(t,e,r){var n=r(46894).getUint64;t.exports=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:e.getUint32(4),timescale:e.getUint32(8)},i=12;0===r.version?(r.earliestPresentationTime=e.getUint32(i),r.firstOffset=e.getUint32(i+4),i+=8):(r.earliestPresentationTime=n(t.subarray(i)),r.firstOffset=n(t.subarray(i+8)),i+=16),i+=2;var a=e.getUint16(i);for(i+=2;a>0;i+=12,a--)r.references.push({referenceType:(128&t[i])>>>7,referencedSize:2147483647&e.getUint32(i),subsegmentDuration:e.getUint32(i+4),startsWithSap:!!(128&t[i+8]),sapType:(112&t[i+8])>>>4,sapDeltaTime:268435455&e.getUint32(i+8)});return r}},51489:function(t){var e,r,n,i;e=function(t){return 9e4*t},r=function(t,e){return t*e},n=function(t){return t/9e4},i=function(t,e){return t/e},t.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:e,secondsToAudioTs:r,videoTsToSeconds:n,audioTsToSeconds:i,audioTsToVideoTs:function(t,r){return e(i(t,r))},videoTsToAudioTs:function(t,e){return r(n(t),e)},metadataTsToSeconds:function(t,e,r){return n(r?t:t-e)}}},46894:function(t){t.exports={getUint64:function(t){var e,r=new DataView(t.buffer,t.byteOffset,t.byteLength);return r.getBigUint64?(e=r.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(e):e:4294967296*r.getUint32(0)+r.getUint32(4)},MAX_UINT32:4294967296}},27901:function(){},46977:function(t,e,r){"use strict";r.d(e,{y1:function(){return b}});var n=r(67294);function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}r(85893);var a=["shift","alt","meta","mod","ctrl"],o={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function s(t){return(o[t]||t).trim().toLowerCase().replace("key","").replace("digit","").replace("numpad","").replace("arrow","")}function u(t,e){return(void 0===e&&(e=","),"string"==typeof t)?t.split(e):t}function c(t,e){void 0===e&&(e="+");var r=t.toLocaleLowerCase().split(e).map(function(t){return s(t)});return i({},{alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},{keys:r.filter(function(t){return!a.includes(t)})})}var f=new Set;function l(t){var e=Array.isArray(t)?t:[t];f.has("meta")&&f.forEach(function(t){return!a.includes(t)&&f.delete(t.toLowerCase())}),e.forEach(function(t){return f.add(t.toLowerCase())})}function p(t){var e=Array.isArray(t)?t:[t];"meta"===t?f.clear():e.forEach(function(t){return f.delete(t.toLowerCase())})}function h(t,e){var r=t.target;void 0===e&&(e=!1);var n=r&&r.tagName;return e instanceof Array?Boolean(n&&e&&e.some(function(t){return t.toLowerCase()===n.toLowerCase()})):Boolean(n&&e&&!0===e)}"undefined"!=typeof document&&(document.addEventListener("keydown",function(t){void 0!==t.key&&l([s(t.key),s(t.code)])}),document.addEventListener("keyup",function(t){void 0!==t.key&&p([s(t.key),s(t.code)])})),"undefined"!=typeof window&&window.addEventListener("blur",function(){f.clear()});var d=function(t,e,r){void 0===r&&(r=!1);var n,i=e.alt,a=e.meta,o=e.mod,u=e.shift,c=e.ctrl,l=e.keys,p=t.key,h=t.code,d=t.ctrlKey,m=t.metaKey,g=t.shiftKey,y=t.altKey,v=s(h),b=p.toLowerCase();if(!r){if(!y===i&&"alt"!==b||!g===u&&"shift"!==b)return!1;if(o){if(!m&&!d)return!1}else if(!m===a&&"meta"!==b||!d===c&&"ctrl"!==b)return!1}return!!(l&&1===l.length&&(l.includes(b)||l.includes(v)))||(l?(void 0===n&&(n=","),(Array.isArray(l)?l:l.split(n)).every(function(t){return f.has(t.trim().toLowerCase())})):!l)},m=(0,n.createContext)(void 0),g=(0,n.createContext)({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),y=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},v="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function b(t,e,r,i){var a,o=(0,n.useRef)(null),f=(0,n.useRef)(!1),b=r instanceof Array?i instanceof Array?void 0:i:r,E=(0,n.useCallback)(e,[].concat(r instanceof Array?r:i instanceof Array?i:[])),T=(!function t(e,r){return e&&r&&"object"==typeof e&&"object"==typeof r?Object.keys(e).length===Object.keys(r).length&&Object.keys(e).reduce(function(n,i){return n&&t(e[i],r[i])},!0):e===r}((a=(0,n.useRef)(void 0)).current,b)&&(a.current=b),a.current),w=(0,n.useContext)(g).enabledScopes,N=(0,n.useContext)(m);return v(function(){if((null==T?void 0:T.enabled)!==!1&&(e=w,r=null==T?void 0:T.scopes,0===e.length&&r?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):!!(!r||e.some(function(t){return r.includes(t)})||e.includes("*")))){var e,r,n=function(e,r){var n;if(void 0===r&&(r=!1),!h(e,["input","textarea","select"])||h(e,null==T?void 0:T.enableOnFormTags)){if(null!==o.current&&document.activeElement!==o.current&&!o.current.contains(document.activeElement)){y(e);return}(null==(n=e.target)||!n.isContentEditable||null!=T&&T.enableOnContentEditable)&&u(t,null==T?void 0:T.splitKey).forEach(function(t){var n,i,a,o=c(t,null==T?void 0:T.combinationKey);if(d(e,o,null==T?void 0:T.ignoreModifiers)||null!=(a=o.keys)&&a.includes("*")){if(r&&f.current)return;if(("function"==typeof(n=null==T?void 0:T.preventDefault)&&n(e,o)||!0===n)&&e.preventDefault(),"function"==typeof(i=null==T?void 0:T.enabled)?!i(e,o):!0!==i&&void 0!==i){y(e);return}E(e,o),r||(f.current=!0)}})}},i=function(t){void 0!==t.key&&(l(s(t.code)),((null==T?void 0:T.keydown)===void 0&&(null==T?void 0:T.keyup)!==!0||null!=T&&T.keydown)&&n(t))},a=function(t){void 0!==t.key&&(p(s(t.code)),f.current=!1,null!=T&&T.keyup&&n(t,!0))};return(o.current||(null==b?void 0:b.document)||document).addEventListener("keyup",a),(o.current||(null==b?void 0:b.document)||document).addEventListener("keydown",i),N&&u(t,null==T?void 0:T.splitKey).forEach(function(t){return N.addHotkey(c(t,null==T?void 0:T.combinationKey))}),function(){(o.current||(null==b?void 0:b.document)||document).removeEventListener("keyup",a),(o.current||(null==b?void 0:b.document)||document).removeEventListener("keydown",i),N&&u(t,null==T?void 0:T.splitKey).forEach(function(t){return N.removeHotkey(c(t,null==T?void 0:T.combinationKey))})}}},[t,E,T,w]),o}},75974:function(t){t.exports=function(t,e){var r,n=null;try{r=JSON.parse(t,e)}catch(t){n=t}return[n,r]}},49945:function(t){var e,r,n,i,a;e=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,n=/(?:\/|^)\.(?=\/)/g,i=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,a={buildAbsoluteURL:function(t,e,n){if(n=n||{},t=t.trim(),!(e=e.trim())){if(!n.alwaysNormalize)return t;var i=a.parseURL(t);if(!i)throw Error("Error trying to parse base URL.");return i.path=a.normalizePath(i.path),a.buildURLFromParts(i)}var o=a.parseURL(e);if(!o)throw Error("Error trying to parse relative URL.");if(o.scheme)return n.alwaysNormalize?(o.path=a.normalizePath(o.path),a.buildURLFromParts(o)):e;var s=a.parseURL(t);if(!s)throw Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var u=r.exec(s.path);s.netLoc=u[1],s.path=u[2]}s.netLoc&&!s.path&&(s.path="/");var c={scheme:s.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(c.netLoc=s.netLoc,"/"!==o.path[0])){if(o.path){var f=s.path,l=f.substring(0,f.lastIndexOf("/")+1)+o.path;c.path=a.normalizePath(l)}else c.path=s.path,o.params||(c.params=s.params,o.query||(c.query=s.query))}return null===c.path&&(c.path=n.alwaysNormalize?a.normalizePath(o.path):o.path),a.buildURLFromParts(c)},parseURL:function(t){var r=e.exec(t);return r?{scheme:r[1]||"",netLoc:r[2]||"",path:r[3]||"",params:r[4]||"",query:r[5]||"",fragment:r[6]||""}:null},normalizePath:function(t){for(t=t.split("").reverse().join("").replace(n,"");t.length!==(t=t.replace(i,"")).length;);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}},t.exports=a},13407:function(t,e,r){var n=r(58908),i=t.exports={WebVTT:r(63706),VTTCue:r(22230),VTTRegion:r(13710)};n.vttjs=i,n.WebVTT=i.WebVTT;var a=i.VTTCue,o=i.VTTRegion,s=n.VTTCue,u=n.VTTRegion;i.shim=function(){n.VTTCue=a,n.VTTRegion=o},i.restore=function(){n.VTTCue=s,n.VTTRegion=u},n.VTTCue||i.shim()},63706:function(t,e,r){var n=r(89144),i=Object.create||function(){function t(){}return function(e){if(1!=arguments.length)throw Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function a(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function o(t){function e(t,e,r,n){return(0|t)*3600+(0|e)*60+(0|r)+(0|n)/1e3}var r=t.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return r?r[3]?e(r[1],r[2],r[3].replace(":",""),r[4]):r[1]>59?e(r[1],r[2],0,r[4]):e(0,r[1],r[2],r[4]):null}function s(){this.values=i(null)}function u(t,e,r,n){var i=n?t.split(n):[t];for(var a in i)if("string"==typeof i[a]){var o=i[a].split(r);2===o.length&&e(o[0].trim(),o[1].trim())}}a.prototype=i(Error.prototype),a.prototype.constructor=a,a.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,r){for(var n=0;n<r.length;++n)if(e===r[n]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e))>=0&&e<=100)&&(this.set(t,e),!0)}};var c=n.createElement&&n.createElement("textarea"),f={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)"},p={v:"title",lang:"lang"},h={rt:"ruby"};function d(t,e){for(var r,n=t.document.createElement("div"),i=n,a=[];null!==(r=function(){if(!e)return null;var t,r=e.match(/^([^<]*)(<[^>]*>?)?/);return t=r[1]?r[1]:r[2],e=e.substr(t.length),t}());){if("<"===r[0]){if("/"===r[1]){a.length&&a[a.length-1]===r.substr(2).replace(">","")&&(a.pop(),i=i.parentNode);continue}var s,u,d,m,g=o(r.substr(1,r.length-2));if(g){m=t.document.createProcessingInstruction("timestamp",g),i.appendChild(m);continue}var y=r.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y||!(m=function(e,r){var n=f[e];if(!n)return null;var i=t.document.createElement(n),a=p[e];return a&&r&&(i[a]=r.trim()),i}(y[1],y[3]))||(u=i,h[(d=m).localName]&&h[d.localName]!==u.localName))continue;if(y[2]){var v=y[2].split(".");v.forEach(function(t){var e=/^bg_/.test(t),r=e?t.slice(3):t;if(l.hasOwnProperty(r)){var n=e?"background-color":"color",i=l[r];m.style[n]=i}}),m.className=v.join(" ")}a.push(y[1]),i.appendChild(m),i=m;continue}i.appendChild(t.document.createTextNode((s=r,c.innerHTML=s,s=c.textContent,c.textContent="",s)))}return n}var m=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function g(){}function y(t,e,r){g.call(this),this.cue=e,this.cueDiv=d(t,e.text);var n={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:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(n,this.cueDiv),this.div=t.document.createElement("div"),n={direction:function(t){var e=[],r="";if(!t||!t.childNodes)return"ltr";function n(t,e){for(var r=e.childNodes.length-1;r>=0;r--)t.push(e.childNodes[r])}for(n(e,t);r=function t(e){if(!e||!e.length)return null;var r=e.pop(),i=r.textContent||r.innerText;if(i){var a=i.match(/^.*(\n|\r)/);return a?(e.length=0,a[0]):i}return"ruby"===r.tagName?t(e):r.childNodes?(n(e,r),t(e)):void 0}(e);)for(var i=0;i<r.length;i++)if(function(t){for(var e=0;e<m.length;e++){var r=m[e];if(t>=r[0]&&t<=r[1])return!0}return!1}(r.charCodeAt(i)))return"rtl";return"ltr"}(this.cueDiv),writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===e.align?"center":e.align,font:r.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(n),this.div.appendChild(this.cueDiv);var i=0;switch(e.positionAlign){case"start":i=e.position;break;case"center":i=e.position-e.size/2;break;case"end":i=e.position-e.size}""===e.vertical?this.applyStyles({left:this.formatStyle(i,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(i,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function v(t){var e,r,n,i;if(t.div){r=t.div.offsetHeight,n=t.div.offsetWidth,i=t.div.offsetTop;var a=(a=t.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();t=t.div.getBoundingClientRect(),e=a?Math.max(a[0]&&a[0].height||0,t.height/a.length):0}this.left=t.left,this.right=t.right,this.top=t.top||i,this.height=t.height||r,this.bottom=t.bottom||i+(t.height||r),this.width=t.width||n,this.lineHeight=void 0!==e?e:t.lineHeight}function b(){}g.prototype.applyStyles=function(t,e){for(var r in e=e||this.div,t)t.hasOwnProperty(r)&&(e.style[r]=t[r])},g.prototype.formatStyle=function(t,e){return 0===t?0:t+e},y.prototype=i(g.prototype),y.prototype.constructor=y,v.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},v.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},v.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1},v.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},v.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}},v.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},v.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},v.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,r=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||r}},b.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},b.convertCueToDOMTree=function(t,e){return t&&e?d(t,e):null},b.processCues=function(t,e,r){if(!t||!e||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);var n=t.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",r.appendChild(n),!function(t){for(var e=0;e<t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}(e)){for(var i=0;i<e.length;i++)n.appendChild(e[i].displayState);return}var a=[],o=v.getSimpleBoxPosition(n),s={font:Math.round(5*o.height)/100+"px sans-serif"};!function(){for(var r,i,u=0;u<e.length;u++)i=e[u],r=new y(t,i,s),n.appendChild(r.div),function(t,e,r,n){var i=new v(e),a=e.cue,o=function(t){if("number"==typeof t.line&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return -1;for(var e=t.track,r=e.textTrackList,n=0,i=0;i<r.length&&r[i]!==e;i++)"showing"===r[i].mode&&n++;return -1*++n}(a),s=[];if(a.snapToLines){switch(a.vertical){case"":s=["+y","-y"],u="height";break;case"rl":s=["+x","-x"],u="width";break;case"lr":s=["-x","+x"],u="width"}var u,c=i.lineHeight,f=c*Math.round(o),l=r[u]+c,p=s[0];Math.abs(f)>l&&(f=(f<0?-1:1)*(Math.ceil(l/c)*c)),o<0&&(f+=""===a.vertical?r.height:r.width,s=s.reverse()),i.move(p,f)}else{var h=i.lineHeight/r.height*100;switch(a.lineAlign){case"center":o-=h/2;break;case"end":o-=h}switch(a.vertical){case"":e.applyStyles({top:e.formatStyle(o,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(o,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(o,"%")})}s=["+y","-x","+x","-y"],i=new v(e)}var d=function(t,e){for(var i,a=new v(t),o=1,s=0;s<e.length;s++){for(;t.overlapsOppositeAxis(r,e[s])||t.within(r)&&t.overlapsAny(n);)t.move(e[s]);if(t.within(r))return t;var u=t.intersectPercentage(r);o>u&&(i=new v(t),o=u),t=new v(a)}return i||a}(i,s);e.move(d.toCSSCompatValues(r))}(0,r,o,a),i.displayState=r.div,a.push(v.getSimpleBoxPosition(r))}()},b.Parser=function(t,e,r){r||(r=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=r||new TextDecoder("utf8"),this.regionList=[]},b.Parser.prototype={reportOrThrowError:function(t){if(t instanceof a)this.onparsingerror&&this.onparsingerror(t);else throw t},parse:function(t){var e=this;function r(){for(var t=e.buffer,r=0;r<t.length&&"\r"!==t[r]&&"\n"!==t[r];)++r;var n=t.substr(0,r);return"\r"===t[r]&&++r,"\n"===t[r]&&++r,e.buffer=t.substr(r),n}t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));try{if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;var n,i,c=(i=r()).match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0])throw new a(a.Errors.BadSignature);e.state="HEADER"}for(var f=!1;e.buffer&&/\r\n|\n/.test(e.buffer);)switch(f?f=!1:i=r(),e.state){case"HEADER":/:/.test(i)?(n=i).match(/X-TIMESTAMP-MAP/)?u(n,function(t,r){if("X-TIMESTAMP-MAP"===t){var n;n=new s,u(r,function(t,e){switch(t){case"MPEGT":n.integer(t+"S",e);break;case"LOCA":n.set(t+"L",o(e))}},/[^\d]:/,/,/),e.ontimestampmap&&e.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}},/=/):u(n,function(t,r){"Region"===t&&function(t){var r=new s;if(u(t,function(t,e){switch(t){case"id":r.set(t,e);break;case"width":r.percent(t,e);break;case"lines":r.integer(t,e);break;case"regionanchor":case"viewportanchor":var n=e.split(",");if(2!==n.length)break;var i=new s;if(i.percent("x",n[0]),i.percent("y",n[1]),!i.has("x")||!i.has("y"))break;r.set(t+"X",i.get("x")),r.set(t+"Y",i.get("y"));break;case"scroll":r.alt(t,e,["up"])}},/=/,/\s/),r.has("id")){var n=new(e.vttjs.VTTRegion||e.window.VTTRegion);n.width=r.get("width",100),n.lines=r.get("lines",3),n.regionAnchorX=r.get("regionanchorX",0),n.regionAnchorY=r.get("regionanchorY",100),n.viewportAnchorX=r.get("viewportanchorX",0),n.viewportAnchorY=r.get("viewportanchorY",100),n.scroll=r.get("scroll",""),e.onregion&&e.onregion(n),e.regionList.push({id:r.get("id"),region:n})}}(r)},/:/):i||(e.state="ID");continue;case"NOTE":i||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){e.state="NOTE";break}if(!i)continue;e.cue=new(e.vttjs.VTTCue||e.window.VTTCue)(0,0,"");try{e.cue.align="center"}catch(t){e.cue.align="middle"}if(e.state="CUE",-1===i.indexOf("-->")){e.cue.id=i;continue}case"CUE":try{!function(t,e,r){var n=t;function i(){var e=o(t);if(null===e)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+n);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function c(){t=t.replace(/^\s+/,"")}if(c(),e.startTime=i(),c(),"-->"!==t.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+n);t=t.substr(3),c(),e.endTime=i(),c(),function(t,e){var n=new s;u(t,function(t,e){switch(t){case"region":for(var i=r.length-1;i>=0;i--)if(r[i].id===e){n.set(t,r[i].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var a=e.split(","),o=a[0];n.integer(t,o),n.percent(t,o)&&n.set("snapToLines",!1),n.alt(t,o,["auto"]),2===a.length&&n.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=e.split(","),n.percent(t,a[0]),2===a.length&&n.alt("positionAlign",a[1],["start","center","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","center","end","left","right"])}},/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical","");try{e.line=n.get("line","auto")}catch(t){}e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100);try{e.align=n.get("align","center")}catch(t){e.align=n.get("align","middle")}try{e.position=n.get("position","auto")}catch(t){e.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}(i,e.cue,e.regionList)}catch(t){e.reportOrThrowError(t),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var l=-1!==i.indexOf("-->");if(!i||l&&(f=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+="\n"),e.cue.text+=i.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":i||(e.state="ID");continue}}catch(t){e.reportOrThrowError(t),"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new a(a.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}},t.exports=b},22230:function(t){var e={"":1,lr:1,rl:1},r={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function n(t){return"string"==typeof t&&!!r[t.toLowerCase()]&&t.toLowerCase()}function i(t,r,i){this.hasBeenReset=!1;var a="",o=!1,s=t,u=r,c=i,f=null,l="",p=!0,h="auto",d="start",m="auto",g="auto",y=100,v="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return a},set:function(t){a=""+t}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(t){o=!!t}},startTime:{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t)throw TypeError("Start time must be set to a number.");s=t,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return u},set:function(t){if("number"!=typeof t)throw TypeError("End time must be set to a number.");u=t,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return c},set:function(t){c=""+t,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return f},set:function(t){f=t,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return l},set:function(t){var r="string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase();if(!1===r)throw SyntaxError("Vertical: an invalid or illegal direction string was specified.");l=r,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return p},set:function(t){p=!!t,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return h},set:function(t){if("number"!=typeof t&&"auto"!==t)throw SyntaxError("Line: an invalid number or illegal string was specified.");h=t,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return d},set:function(t){var e=n(t);e?(d=e,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return m},set:function(t){if(t<0||t>100)throw Error("Position must be between 0 and 100.");m=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(t){var e=n(t);e?(g=e,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(t){if(t<0||t>100)throw Error("Size must be between 0 and 100.");y=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return v},set:function(t){var e=n(t);if(!e)throw SyntaxError("align: an invalid or illegal alignment string was specified.");v=e,this.hasBeenReset=!0}}}),this.displayState=void 0}i.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=i},13710:function(t){var e={"":!0,up:!0};function r(t){return"number"==typeof t&&t>=0&&t<=100}t.exports=function(){var t=100,n=3,i=0,a=100,o=0,s=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!r(e))throw Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return n},set:function(t){if("number"!=typeof t)throw TypeError("Lines must be set to a number.");n=t}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!r(t))throw Error("RegionAnchorX must be between 0 and 100.");a=t}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(t){if(!r(t))throw Error("RegionAnchorY must be between 0 and 100.");i=t}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!r(t))throw Error("ViewportAnchorY must be between 0 and 100.");s=t}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!r(t))throw Error("ViewportAnchorX must be between 0 and 100.");o=t}},scroll:{enumerable:!0,get:function(){return u},set:function(t){var r="string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase();!1===r?console.warn("Scroll: an invalid or illegal string was specified."):u=r}}})}},5647:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(89611),i=r(78814);function a(t,e,r){return(a=(0,i.Z)()?Reflect.construct.bind():function(t,e,r){var i=[null];i.push.apply(i,e);var a=new(Function.bind.apply(t,i));return r&&(0,n.Z)(a,r.prototype),a}).apply(null,arguments)}},94578:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});var n=r(89611);function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,(0,n.Z)(t,e)}}}]);