chunk-vendors.a7c29380.js 1.3 MB

12345678910111213141516171819202122232425262728
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(e,t,n){var i=n("b622"),r=i("toStringTag"),a={};a[r]="z",e.exports="[object z]"===String(a)},"0366":function(e,t,n){var i=n("1c0b");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},"0538":function(e,t,n){"use strict";var i=n("1c0b"),r=n("861d"),a=[].slice,o={},s=function(e,t,n){if(!(t in o)){for(var i=[],r=0;r<t;r++)i[r]="a["+r+"]";o[t]=Function("C,a","return new C("+i.join(",")+")")}return o[t](e,n)};e.exports=Function.bind||function(e){var t=i(this),n=a.call(arguments,1),o=function(){var i=n.concat(a.call(arguments));return this instanceof o?s(t,i.length,i):t.apply(e,i)};return r(t.prototype)&&(o.prototype=t.prototype),o}},"057f":function(e,t,n){var i=n("fc6a"),r=n("241c").f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(t){return o.slice()}};e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?s(e):r(i(e))}},"06c5":function(e,t,n){"use strict";n("a630"),n("fb6a"),n("d3b7"),n("25f0"),n("3ca3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var i=r(n("6b75"));function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(e){if("string"===typeof e)return(0,i.default)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,i.default)(e,t):void 0}}},"06cf":function(e,t,n){var i=n("83ab"),r=n("d1e7"),a=n("5c6c"),o=n("fc6a"),s=n("c04e"),u=n("5135"),c=n("0cfb"),l=Object.getOwnPropertyDescriptor;t.f=i?l:function(e,t){if(e=o(e),t=s(t,!0),c)try{return l(e,t)}catch(n){}if(u(e,t))return a(!r.f.call(e,t),e[t])}},"07ac":function(e,t,n){var i=n("23e7"),r=n("6f53").values;i({target:"Object",stat:!0},{values:function(e){return r(e)}})},"0834":function(e,t,n){n("ac1f"),n("5319");var i=n("3597"),r=n("252a"),a=n("15b4"),o=n("7800"),s=r.DOMImplementation,u=i.NAMESPACE,c=o.ParseError,l=o.XMLReader;function d(e){this.options=e||{locator:{}}}function h(e,t,n){if(!e){if(t instanceof f)return t;e=t}var i={},r=e instanceof Function;function a(t){var a=e[t];!a&&r&&(a=2==e.length?function(n){e(t,n)}:e),i[t]=a&&function(e){a("[xmldom "+t+"]\t"+e+m(n))}||function(){}}return n=n||{},a("warning"),a("error"),a("fatalError"),i}function f(){this.cdata=!1}function p(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function m(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function g(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function v(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}d.prototype.parseFromString=function(e,t){var n=this.options,i=new l,r=n.domBuilder||new f,o=n.errorHandler,s=n.locator,c=n.xmlns||{},d=/\/x?html?$/.test(t),p=d?a.HTML_ENTITIES:a.XML_ENTITIES;return s&&r.setDocumentLocator(s),i.errorHandler=h(o,r,s),i.domBuilder=n.domBuilder||r,d&&(c[""]=u.HTML),c.xml=c.xml||u.XML,e&&"string"===typeof e?i.parse(e,c,p):i.errorHandler.error("invalid doc source"),r.doc},f.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,i){var r=this.doc,a=r.createElementNS(e,n||t),o=i.length;v(this,a),this.currentElement=a,this.locator&&p(this.locator,a);for(var s=0;s<o;s++){e=i.getURI(s);var u=i.getValue(s),c=(n=i.getQName(s),r.createAttributeNS(e,n));this.locator&&p(i.getLocator(s),c),c.value=c.nodeValue=u,a.setAttributeNode(c)}},endElement:function(e,t,n){var i=this.currentElement;i.tagName;this.currentElement=i.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&p(this.locator,n),v(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=g.apply(this,arguments),e){if(this.cdata)var i=this.doc.createCDATASection(e);else i=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(e)&&this.doc.appendChild(i),this.locator&&p(this.locator,i)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=g.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&p(this.locator,i),v(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var r=i.createDocumentType(e,t,n);this.locator&&p(this.locator,r),v(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning]\t"+e,m(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,m(this.locator))},fatalError:function(e){throw new c(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){f.prototype[e]=function(){return null}})),t.__DOMHandler=f,t.DOMParser=d,t.DOMImplementation=r.DOMImplementation,t.XMLSerializer=r.XMLSerializer},"08ff":function(e,t){var n="auto",i={"":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 a(e){if("string"!==typeof e)return!1;var t=i[e.toLowerCase()];return!!t&&e.toLowerCase()}function o(e){if("string"!==typeof e)return!1;var t=r[e.toLowerCase()];return!!t&&e.toLowerCase()}function s(e,t,i){this.hasBeenReset=!1;var r="",s=!1,u=e,c=t,l=i,d=null,h="",f=!0,p="auto",m="start",g="auto",v="auto",y=100,b="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return r},set:function(e){r=""+e}},pauseOnExit:{enumerable:!0,get:function(){return s},set:function(e){s=!!e}},startTime:{enumerable:!0,get:function(){return u},set:function(e){if("number"!==typeof e)throw new TypeError("Start time must be set to a number.");u=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return c},set:function(e){if("number"!==typeof e)throw new TypeError("End time must be set to a number.");c=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return l},set:function(e){l=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return d},set:function(e){d=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return h},set:function(e){var t=a(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");h=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return f},set:function(e){f=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return p},set:function(e){if("number"!==typeof e&&e!==n)throw new SyntaxError("Line: an invalid number or illegal string was specified.");p=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return m},set:function(e){var t=o(e);t?(m=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return g},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");g=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return v},set:function(e){var t=o(e);t?(v=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");y=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return b},set:function(e){var t=o(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");b=t,this.hasBeenReset=!0}}}),this.displayState=void 0}s.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=s},"09f0":function(e,t,n){"use strict";function i(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(n.push(o.value),t&&n.length===t)break}catch(u){r=!0,a=u}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw a}}return n}}n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},"0b25":function(e,t,n){var i=n("a691"),r=n("50c4");e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=r(t);if(t!==n)throw RangeError("Wrong length or index");return n}},"0c47":function(e,t,n){var i=n("da84"),r=n("d44e");r(i.JSON,"JSON",!0)},"0ccb":function(e,t,n){var i=n("50c4"),r=n("1148"),a=n("1d80"),o=Math.ceil,s=function(e){return function(t,n,s){var u,c,l=String(a(t)),d=l.length,h=void 0===s?" ":String(s),f=i(n);return f<=d||""==h?l:(u=f-d,c=r.call(h,o(u/h.length)),c.length>u&&(c=c.slice(0,u)),e?l+c:c+l)}};e.exports={start:s(!1),end:s(!0)}},"0cfb":function(e,t,n){var i=n("83ab"),r=n("d039"),a=n("cc12");e.exports=!i&&!r((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},"0d21":function(e,t,n){"use strict";function i(e){if(Array.isArray(e))return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},"0d3b":function(e,t,n){var i=n("d039"),r=n("b622"),a=n("c430"),o=r("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t["delete"]("b"),n+=i+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"0f2d":function(e,t,n){"use strict";var i=n("4ea4");n("a623"),n("4de4"),n("4160"),n("13d5"),n("26e9"),n("fb6a"),n("c19f"),n("82da"),n("ace4"),n("a9e3"),n("d3b7"),n("25f0"),n("5cc6"),n("84c3"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.reverseBytes=t.sliceBytes=t.bytesMatch=t.concatTypedArrays=t.stringToBytes=t.bytesToString=t.numberToBytes=t.bytesToNumber=t.IS_LITTLE_ENDIAN=t.IS_BIG_ENDIAN=t.ENDIANNESS=t.toBinaryString=t.toHexString=t.toUint8=t.isTypedArray=t.isArrayBufferView=t.padStart=t.countBytes=t.countBits=void 0;var r=i(n("a8d6")),a=function(e,t){var n="";while(t--)n+=e;return n},o=function(e){return e.toString(2).length};t.countBits=o;var s=function(e){return Math.ceil(o(e)/8)};t.countBytes=s;var u=function(e,t,n){return void 0===n&&(n=" "),(a(n,t)+e.toString()).slice(-t)};t.padStart=u;var c=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer};t.isArrayBufferView=c;var l=function(e){return c(e)};t.isTypedArray=l;var d=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||l(e)||e instanceof ArrayBuffer||(e="number"!==typeof e||"number"===typeof e&&e!==e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))};t.toUint8=d;var h=function(e){e=d(e);for(var t="",n=0;n<e.length;n++)t+=u(e[n].toString(16),2,"0");return t};t.toHexString=h;var f=function(e){e=d(e);for(var t="",n=0;n<e.length;n++)t+=u(e[n].toString(2),8,"0");return t};t.toBinaryString=f;var p=r.default.BigInt||Number,m=[p("0x1"),p("0x100"),p("0x10000"),p("0x1000000"),p("0x100000000"),p("0x10000000000"),p("0x1000000000000"),p("0x100000000000000"),p("0x10000000000000000")],g=function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return 255===t[0]?"big":204===t[0]?"little":"unknown"}();t.ENDIANNESS=g;var v="big"===g;t.IS_BIG_ENDIAN=v;var y="little"===g;t.IS_LITTLE_ENDIAN=y;var b=function(e,t){var n=void 0===t?{}:t,i=n.signed,r=void 0!==i&&i,a=n.le,o=void 0!==a&&a;e=d(e);var s=o?"reduce":"reduceRight",u=e[s]?e[s]:Array.prototype[s],c=u.call(e,(function(t,n,i){var r=o?i:Math.abs(i+1-e.length);return t+p(n)*m[r]}),p(0));if(r){var l=m[e.length]/p(2)-p(1);c=p(c),c>l&&(c-=l,c-=l,c-=p(2))}return Number(c)};t.bytesToNumber=b;var _=function(e,t){var n=void 0===t?{}:t,i=n.le,r=void 0!==i&&i;("bigint"!==typeof e&&"number"!==typeof e||"number"===typeof e&&e!==e)&&(e=0),e=p(e);for(var a=s(e),o=new Uint8Array(new ArrayBuffer(a)),u=0;u<a;u++){var c=r?u:Math.abs(u+1-o.length);o[c]=Number(e/m[u]&p(255)),e<0&&(o[c]=Math.abs(~o[c]),o[c]-=0===u?1:2)}return o};t.numberToBytes=_;var T=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,d(e));try{return decodeURIComponent(escape(t))}catch(n){}return t};t.bytesToString=T;var w=function(e,t){if("string"!==typeof e&&e&&"function"===typeof e.toString&&(e=e.toString()),"string"!==typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n};t.stringToBytes=w;var S=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t=t.filter((function(e){return e&&(e.byteLength||e.length)&&"string"!==typeof e})),t.length<=1)return d(t[0]);var i=t.reduce((function(e,t,n){return e+(t.byteLength||t.length)}),0),r=new Uint8Array(i),a=0;return t.forEach((function(e){e=d(e),r.set(e,a),a+=e.byteLength})),r};t.concatTypedArrays=S;var k=function(e,t,n){var i=void 0===n?{}:n,r=i.offset,a=void 0===r?0:r,o=i.mask,s=void 0===o?[]:o;e=d(e),t=d(t);var u=t.every?t.every:Array.prototype.every;return t.length&&e.length-a>=t.length&&u.call(t,(function(t,n){var i=s[n]?s[n]&e[a+n]:e[a+n];return t===i}))};t.bytesMatch=k;var C=function(e,t,n){return Uint8Array.prototype.slice?Uint8Array.prototype.slice.call(e,t,n):new Uint8Array(Array.prototype.slice.call(e,t,n))};t.sliceBytes=C;var x=function(e){return e.reverse?e.reverse():Array.prototype.reverse.call(e)};t.reverseBytes=x},"10d1":function(e,t,n){"use strict";var i,r=n("da84"),a=n("e2cc"),o=n("f183"),s=n("6d61"),u=n("acac"),c=n("861d"),l=n("69f3").enforce,d=n("7f9a"),h=!r.ActiveXObject&&"ActiveXObject"in r,f=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},m=e.exports=s("WeakMap",p,u);if(d&&h){i=u.getConstructor(p,"WeakMap",!0),o.REQUIRED=!0;var g=m.prototype,v=g["delete"],y=g.has,b=g.get,_=g.set;a(g,{delete:function(e){if(c(e)&&!f(e)){var t=l(this);return t.frozen||(t.frozen=new i),v.call(this,e)||t.frozen["delete"](e)}return v.call(this,e)},has:function(e){if(c(e)&&!f(e)){var t=l(this);return t.frozen||(t.frozen=new i),y.call(this,e)||t.frozen.has(e)}return y.call(this,e)},get:function(e){if(c(e)&&!f(e)){var t=l(this);return t.frozen||(t.frozen=new i),y.call(this,e)?b.call(this,e):t.frozen.get(e)}return b.call(this,e)},set:function(e,t){if(c(e)&&!f(e)){var n=l(this);n.frozen||(n.frozen=new i),y.call(this,e)?_.call(this,e,t):n.frozen.set(e,t)}else _.call(this,e,t);return this}})}},1148:function(e,t,n){"use strict";var i=n("a691"),r=n("1d80");e.exports="".repeat||function(e){var t=String(r(this)),n="",a=i(e);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},1276:function(e,t,n){"use strict";var i=n("d784"),r=n("44e7"),a=n("825a"),o=n("1d80"),s=n("4840"),u=n("8aa5"),c=n("50c4"),l=n("14c3"),d=n("9263"),h=n("d039"),f=[].push,p=Math.min,m=4294967295,g=!h((function(){return!RegExp(m,"y")}));i("split",2,(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(o(this)),a=void 0===n?m:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!r(e))return t.call(i,e,a);var s,u,c,l=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,g=new RegExp(e.source,h+"g");while(s=d.call(g,i)){if(u=g.lastIndex,u>p&&(l.push(i.slice(p,s.index)),s.length>1&&s.index<i.length&&f.apply(l,s.slice(1)),c=s[0].length,p=u,l.length>=a))break;g.lastIndex===s.index&&g.lastIndex++}return p===i.length?!c&&g.test("")||l.push(""):l.push(i.slice(p)),l.length>a?l.slice(0,a):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=o(this),a=void 0==t?void 0:t[e];return void 0!==a?a.call(t,r,n):i.call(String(r),t,n)},function(e,r){var o=n(i,e,this,r,i!==t);if(o.done)return o.value;var d=a(e),h=String(this),f=s(d,RegExp),v=d.unicode,y=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(g?"y":"g"),b=new f(g?d:"^(?:"+d.source+")",y),_=void 0===r?m:r>>>0;if(0===_)return[];if(0===h.length)return null===l(b,h)?[h]:[];var T=0,w=0,S=[];while(w<h.length){b.lastIndex=g?w:0;var k,C=l(b,g?h:h.slice(w));if(null===C||(k=p(c(b.lastIndex+(g?0:w)),h.length))===T)w=u(h,w,v);else{if(S.push(h.slice(T,w)),S.length===_)return S;for(var x=1;x<=C.length-1;x++)if(S.push(C[x]),S.length===_)return S;w=T=k}}return S.push(h.slice(T)),S}]}),!g)},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"131a":function(e,t,n){var i=n("23e7"),r=n("d2bb");i({target:"Object",stat:!0},{setPrototypeOf:r})},"13d5":function(e,t,n){"use strict";var i=n("23e7"),r=n("d58f").left,a=n("a640"),o=n("ae40"),s=a("reduce"),u=o("reduce",{1:0});i({target:"Array",proto:!0,forced:!s||!u},{reduce:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"143c":function(e,t,n){var i=n("74e8");i("Int32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},1450:function(e,t){function n(e,t){var n,i=null;try{n=JSON.parse(e,t)}catch(r){i=r}return[i,n]}e.exports=n},"145e":function(e,t,n){"use strict";var i=n("7b0b"),r=n("23cb"),a=n("50c4"),o=Math.min;e.exports=[].copyWithin||function(e,t){var n=i(this),s=a(n.length),u=r(e,s),c=r(t,s),l=arguments.length>2?arguments[2]:void 0,d=o((void 0===l?s:r(l,s))-c,s-u),h=1;c<u&&u<c+d&&(h=-1,c+=d-1,u+=d-1);while(d-- >0)c in n?n[u]=n[c]:delete n[u],u+=h,c+=h;return n}},"14c3":function(e,t,n){var i=n("c6b6"),r=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var a=n.call(e,t);if("object"!==typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},"159b":function(e,t,n){var i=n("da84"),r=n("fdbc"),a=n("17c2"),o=n("9112");for(var s in r){var u=i[s],c=u&&u.prototype;if(c&&c.forEach!==a)try{o(c,"forEach",a)}catch(l){c.forEach=a}}},"15a4":function(e,t){var n={"":!0,up:!0};function i(e){if("string"!==typeof e)return!1;var t=n[e.toLowerCase()];return!!t&&e.toLowerCase()}function r(e){return"number"===typeof e&&e>=0&&e<=100}function a(){var e=100,t=3,n=0,a=100,o=0,s=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!==typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");a=e}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");n=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");o=e}},scroll:{enumerable:!0,get:function(){return u},set:function(e){var t=i(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):u=t}}})}e.exports=a},"15b4":function(e,t,n){var i=n("3597").freeze;t.XML_ENTITIES=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=i({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",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:"♦"}),t.entityMap=t.HTML_ENTITIES},"17c2":function(e,t,n){"use strict";var i=n("b727").forEach,r=n("a640"),a=n("ae40"),o=r("forEach"),s=a("forEach");e.exports=o&&s?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},"182d":function(e,t,n){var i=n("f8cd");e.exports=function(e,t){var n=i(e);if(n%t)throw RangeError("Wrong offset");return n}},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"1be4":function(e,t,n){var i=n("d066");e.exports=i("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c31":function(e,t,n){n("a4d3"),n("e01a"),n("d28b"),n("944a"),n("99af"),n("4de4"),n("7db0"),n("c740"),n("4160"),n("a630"),n("caad"),n("c975"),n("d81d"),n("13d5"),n("26e9"),n("fb6a"),n("45fc"),n("4e82"),n("a434"),n("c19f"),n("ace4"),n("0c47"),n("23dc"),n("a9e3"),n("e439"),n("dbb4"),n("3410"),n("b64b"),n("131a"),n("d3b7"),n("07ac"),n("acd8"),n("e25e"),n("4ae1"),n("5d41"),n("4d63"),n("ac1f"),n("25f0"),n("2532"),n("3ca3"),n("466d"),n("5319"),n("841c"),n("1276"),n("2ca0"),n("498a"),n("5cc6"),n("8a59"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("159b"),n("ddb0"),n("2b3d"),function(t,i){e.exports=i(n("a7a7"),n("e143"),n("37dc"))}("undefined"!==typeof self&&self,(function(e,t,n){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fae3")}({"0001":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"loadFontFace",(function(){return a}));var i=n("a118"),r=n("db70");function a(t,n){var i=Object(r["a"])();if(!i)return{errMsg:"loadFontFace:fail not font page"};e.publishHandler("loadFontFace",{options:t,callbackId:n},i)}e.subscribe("onLoadFontFaceCallback",(function(e){var t=e.callbackId,n=e.data;Object(i["a"])(t,n)}))}.call(this,n("0dd1"))},"00b2":function(e,t,n){},"0138":function(e,t,n){"use strict";n.r(t),function(e){var i=n("052f"),r=n("3d1f"),a=n("98be"),o=n("abbf");n.d(t,"getApp",(function(){return o["b"]})),n.d(t,"getCurrentPages",(function(){return o["c"]})),Object(i["a"])(e.on,{getApp:o["b"],getCurrentPages:o["c"]}),Object(r["a"])(e.subscribe,{getApp:o["b"],getCurrentPages:o["c"]}),t["default"]=a["a"]}.call(this,n("0dd1"))},"01d0":function(e,t,n){},"02b5":function(e,t,n){"use strict";var i=n("8e72"),r=n.n(i);r.a},"02c9":function(e,t,n){"use strict";function i(e){if(0===e.indexOf("#")){var t=e.substr(1);return function(e){return!(!e.componentInstance||e.componentInstance.id!==t)||!(!e.data||!e.data.attrs||e.data.attrs.id!==t)}}if(0===e.indexOf(".")){var n=e.substr(1);return function(e){return e.data&&a(n,e.data.staticClass,e.data.class)}}}n.d(t,"a",(function(){return u}));var r=/\s+/;function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t?-1!==t.split(r).indexOf(e):n&&"string"===typeof n?-1!==n.split(r).indexOf(e):void 0}function o(e,t){if(t(e.$vnode||e._vnode))return e;for(var n=e.$children,i=0;i<n.length;i++){var r=o(n[i],t);if(r)return r}}function s(e,t,n){t(e.$vnode||e._vnode)&&n.push(e);for(var i=e.$children,r=0;r<i.length;r++)s(i[r],t,n);return n}function u(e){e.prototype.createIntersectionObserver=function(e){return uni.createIntersectionObserver(this,e)},e.prototype.createMediaQueryObserver=function(e){return uni.createMediaQueryObserver(this,e)},e.prototype.selectComponent=function(e){return o(this,i(e))},e.prototype.selectAllComponents=function(e){return s(this,i(e),[])}}},"02ed":function(e){e.exports=JSON.parse('{"uni.app.quit":"再按一次退出應用","uni.async.error":"連接服務器超時,點擊屏幕重試","uni.showActionSheet.cancel":"取消","uni.showToast.unpaired":"請注意 showToast 與 hideToast 必須配對使用","uni.showLoading.unpaired":"請注意 showLoading 與 hideLoading 必須配對使用","uni.showModal.cancel":"取消","uni.showModal.confirm":"確定","uni.chooseImage.cancel":"取消","uni.chooseImage.sourceType.album":"從相冊選擇","uni.chooseImage.sourceType.camera":"拍攝","uni.chooseVideo.cancel":"取消","uni.chooseVideo.sourceType.album":"從相冊選擇","uni.chooseVideo.sourceType.camera":"拍攝","uni.chooseFile.notUserActivation":"文件選擇器對話框只能在由用戶激活時顯示","uni.previewImage.cancel":"取消","uni.previewImage.button.save":"保存圖像","uni.previewImage.save.success":"保存圖像到相冊成功","uni.previewImage.save.fail":"保存圖像到相冊失敗","uni.setClipboardData.success":"內容已復制","uni.scanCode.title":"掃碼","uni.scanCode.album":"相冊","uni.scanCode.fail":"識別失敗","uni.scanCode.flash.on":"輕觸照亮","uni.scanCode.flash.off":"輕觸關閉","uni.startSoterAuthentication.authContent":"指紋識別中...","uni.picker.done":"完成","uni.picker.cancel":"取消","uni.video.danmu":"彈幕","uni.video.volume":"音量","uni.button.feedback.title":"問題反饋","uni.button.feedback.send":"發送","uni.chooseLocation.search":"搜索地點","uni.chooseLocation.cancel":"取消"}')},"052f":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("a741"),r=n("45db");function a(e,t){var n=e.name,i=e.arg;"postMessage"===n||uni[n](i)}function o(e,t){var n=t.getApp,o=t.getCurrentPages;function s(e){Object(i["a"])(n(),"onError",e)}function u(e){Object(i["a"])(n(),"onPageNotFound",e)}function c(e,t){var n=o().find((function(e){return e.$page.id===t}));n&&Object(i["b"])(n,"onResize",e)}function l(e,t){var n=o().find((function(e){return e.$page.id===t}));n&&(Object(r["setPullDownRefreshPageId"])(t),Object(i["b"])(n,"onPullDownRefresh"))}function d(e,t){var n=o();n.length&&Object(i["b"])(n[n.length-1],e,t)}function h(e){return function(t){d(e,t)}}function f(){Object(i["a"])(n(),"onHide"),d("onHide")}function p(e){Object(i["a"])(n(),"onShow",e);var t=o();0!==t.length&&d("onShow")}e("onError",s),e("onPageNotFound",u),e("onAppEnterBackground",f),e("onAppEnterForeground",p),e("onResize",c),e("onPullDownRefresh",l),e("onTabItemTap",h("onTabItemTap")),e("onNavigationBarButtonTap",h("onNavigationBarButtonTap")),e("onNavigationBarSearchInputChanged",h("onNavigationBarSearchInputChanged")),e("onNavigationBarSearchInputConfirmed",h("onNavigationBarSearchInputConfirmed")),e("onNavigationBarSearchInputClicked",h("onNavigationBarSearchInputClicked")),e("onNavigationBarSearchInputFocusChanged",h("onNavigationBarSearchInputFocusChanged")),e("onWebInvokeAppService",a)}},"0554":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"getLocation",(function(){return a}));var i=n("ffdc"),r=n("636c");function a(t,n){var a=t.type,o=t.altitude,s=t.isHighAccuracy,u=t.highAccuracyExpireTime,c=e,l=c.invokeCallbackHandler,d=Object(r["d"])();new Promise((function(e,t){navigator.geolocation?navigator.geolocation.getCurrentPosition((function(t){return e(t.coords)}),t,{enableHighAccuracy:s||o,timeout:u||1e5}):t(new Error("device nonsupport geolocation"))})).catch((function(){return new Promise((function(e,t){d.type===r["c"].QQ?Object(i["a"])("https://apis.map.qq.com/ws/location/v1/ip?output=jsonp&key=".concat(d.key),{callback:"callback"},(function(n){if("result"in n&&n.result.location){var i=n.result.location;e({latitude:i.lat,longitude:i.lng},!0)}else t(new Error(n.message||JSON.stringify(n)))}),(function(){return t(new Error("network error"))})):d.type===r["c"].GOOGLE?uni.request({method:"POST",url:"https://www.googleapis.com/geolocation/v1/geolocate?key=".concat(d.key),success:function(n){var i=n.data;"location"in i?e({latitude:i.location.lat,longitude:i.location.lng,accuracy:i.accuracy}):t(new Error(i.error&&i.error.message||JSON.stringify(n)))},fail:function(){t(new Error("network error"))}}):t(new Error("network error"))}))})).then((function(e,t){return"WGS84"===a.toUpperCase()||d.type!==r["c"].QQ||t?e:new Promise((function(t,n){Object(i["a"])("https://apis.map.qq.com/jsapi?qt=translate&type=1&points=".concat(e.longitude,",").concat(e.latitude,"&key=").concat(d.key,"&output=jsonp&pf=jsapi&ref=jsapi"),{callback:"cb"},(function(n){if("detail"in n&&"points"in n.detail&&n.detail.points.length){var i=n.detail.points[0];t(Object.assign({},e,{longitude:i.lng,latitude:i.lat}))}else t(e)}),(function(){return t(e)}))}))})).then((function(e){l(n,Object.assign(e,{errMsg:"getLocation:ok",verticalAccuracy:e.altitudeAccuracy||0,horizontalAccuracy:e.accuracy}))})).catch((function(e){l(n,{errMsg:"getLocation:fail "+e.message})}))}}.call(this,n("0dd1"))},"0741":function(e,t,n){"use strict";var i=n("3c79"),r=n.n(i);r.a},"0758":function(e,t,n){"use strict";n.r(t),function(e){function i(t,n,i,r){var a=n.$page.id;e.publishHandler(a+"-map-"+t,{mapId:t,type:i,data:r},a)}n.d(t,"operateMapPlayer",(function(){return i}))}.call(this,n("0dd1"))},"0784":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("f2b3"),r=n("a741"),a=n("28c0");function o(e,t){var n=e.$route;e.route=n.meta.pagePath,e.options||(e.options=t);var r=Object(i["i"])(n.params,"__id__")?n.params.__id__:n.meta.id;e.__page__={id:r,path:n.path,route:n.meta.pagePath,fullPath:n.meta.isEntry?n.meta.pagePath:n.fullPath,options:t,meta:Object.assign({},n.meta)};var o=e.$router.$eventChannel||new a["a"];e.getOpenerEventChannel=function(){return o},e.$vm=e,e.$root=e,e.$holder=e.$parent.$parent,e.$mp={mpType:"page",page:e,query:{},status:""}}function s(){return{created:function(){var e=Object(i["e"])(this.$route.query);o(this,e),Object(r["b"])(this,"onLoad",e),Object(r["b"])(this,"onShow")}}}},"091a":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"createIntersectionObserver",(function(){return h}));var i=n("62b5"),r=n("1634"),a=n("db70");function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}var c=Object(i["a"])("requestComponentObserver"),l={thresholds:[0],initialRatio:0,observeAll:!1},d=function(){function t(e,n){o(this,t),this.pageId=e.$page&&e.$page.id,this.component=e._$id||e,this.options=Object.assign({},l,n)}return u(t,[{key:"_makeRootMargin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options.rootMargin=["top","right","bottom","left"].map((function(t){return"".concat(Number(e[t])||0,"px")})).join(" ")}},{key:"relativeTo",value:function(e,t){return this.options.relativeToSelector=e,this._makeRootMargin(t),this}},{key:"relativeToViewport",value:function(e){return this.options.relativeToSelector=null,this._makeRootMargin(e),this}},{key:"observe",value:function(t,n){"function"===typeof n&&(this.options.selector=t,this.reqId=c.push(n),e.publishHandler("requestComponentObserver",{reqId:this.reqId,component:this.component,options:this.options},Object(r["a"])(this.component)?this.component:this.pageId))}},{key:"disconnect",value:function(){e.publishHandler("destroyComponentObserver",{reqId:this.reqId},Object(r["a"])(this.component)?this.component:this.pageId)}}]),t}();function h(e,t){return e._isVue||(t=e,e=null),new d(e||Object(a["b"])("createIntersectionObserver"),t)}}.call(this,n("0dd1"))},"0998":function(e,t,n){"use strict";var i=n("927d"),r=n.n(i);r.a},"09e5":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"requestComponentInfo",(function(){return o}));var i=n("62b5"),r=n("1634"),a=Object(i["a"])("requestComponentInfo");function o(t,n,i){e.publishHandler("requestComponentInfo",{reqId:a.push(i),reqs:n},Object(r["a"])(t)?t:t.$page.id)}}.call(this,n("0dd1"))},"0baa":function(e,t,n){"use strict";n.r(t),n.d(t,"chooseFile",(function(){return a}));var i=["all","image","video"],r=["album","camera"],a={count:{type:Number,required:!1,default:100,validator:function(e,t){e<=0&&(t.count=100)}},sourceType:{type:Array,required:!1,default:r,validator:function(e,t){e=e.filter((function(e){return r.includes(e)})),t.sourceType=e.length?e:r}},type:{type:String,required:!1,default:"all",validator:function(e,t){i.includes(e)||(t.type=i[0]),t.type="all"===t.type?t.type="*":t.type}},extension:{type:Array,default:[""],validator:function(e,t){if(0===e.length)return"param extension should not be empty."}}}},"0dd1":function(e,t,n){"use strict";n.r(t),n.d(t,"on",(function(){return u})),n.d(t,"off",(function(){return c})),n.d(t,"once",(function(){return l})),n.d(t,"emit",(function(){return d})),n.d(t,"subscribe",(function(){return h})),n.d(t,"unsubscribe",(function(){return f})),n.d(t,"subscribeHandler",(function(){return p}));var i=n("8bbf"),r=n.n(i),a=n("27a7");n.d(t,"invokeCallbackHandler",(function(){return a["a"]})),n.d(t,"removeCallbackHandler",(function(){return a["b"]}));var o=n("b865");n.d(t,"publishHandler",(function(){return o["b"]}));var s=new r.a,u=s.$on.bind(s),c=s.$off.bind(s),l=s.$once.bind(s),d=s.$emit.bind(s);function h(e,t){return u("view."+e,t)}function f(e,t){return c("view."+e,t)}function p(e,t,n){return d("view."+e,t,n)}},"0e5c":function(e,t,n){"use strict";n.r(t),n.d(t,"showTopWindow",(function(){return a})),n.d(t,"hideTopWindow",(function(){return o})),n.d(t,"showLeftWindow",(function(){return s})),n.d(t,"hideLeftWindow",(function(){return u})),n.d(t,"showRightWindow",(function(){return c})),n.d(t,"hideRightWindow",(function(){return l})),n.d(t,"getTopWindowStyle",(function(){return h})),n.d(t,"getLeftWindowStyle",(function(){return f})),n.d(t,"getRightWindowStyle",(function(){return p})),n.d(t,"setTopWindowStyle",(function(){return g})),n.d(t,"setLeftWindowStyle",(function(){return v})),n.d(t,"setRightWindowStyle",(function(){return y}));var i=n("f2b3");function r(e,t){var n=t?"show":"hide"+Object(i["c"])(e)+"Window",r=getApp();if(r){var a=r.$children[0].$refs.layout.showWindow(e,t);return a?{errMsg:"".concat(n,":fail ").concat(a)}:{}}return{errMsg:"".concat(n,":fail app not ready")}}function a(){return r("top",!0)}function o(){return r("top",!1)}function s(){return r("left",!0)}function u(){return r("left",!1)}function c(){return r("right",!0)}function l(){return r("right",!1)}function d(e){var t="get"+Object(i["c"])(e)+"WindowStyle",n=getApp();if(!n)return{errMsg:"".concat(t,":fail app not ready")};var r=n.$children[0].$refs.layout.getWindowStyle(e);return"string"===typeof r&&-1!==r.indexOf("Window not found")?{errMsg:"".concat(t,":fail ").concat(r)}:r}function h(e){return d("top")}function f(e){return d("left")}function p(e){return d("right")}function m(e,t){var n="set"+Object(i["c"])(e)+"WindowStyle",r=getApp();if(!r)return{errMsg:"".concat(n,":fail app not ready")};var a=r.$children[0].$refs.layout.setWindowStyle(e,t);return a?{errMsg:"".concat(n,":fail ").concat(a)}:{}}function g(e){return m("top",e)}function v(e){return m("left",e)}function y(e){return m("right",e)}},"0f55":function(e,t,n){"use strict";var i=n("2190"),r=n.n(i);r.a},"0f74":function(e,t,n){"use strict";function i(e,t){if(t){if(0===t.indexOf("/"))return t}else{if(t=e,0===t.indexOf("/"))return t;var n=getCurrentPages();e=n.length?n[n.length-1].$page.route:""}if(0===t.indexOf("./"))return i(e,t.substr(2));for(var r=t.split("/"),a=r.length,o=0;o<a&&".."===r[o];o++);r.splice(0,o),t=r.join("/");var s=e.length>0?e.split("/"):[];return s.splice(s.length-o-1,o+1),"/"+s.concat(r).join("/")}n.d(t,"a",(function(){return i}))},1082:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-image",e._g({},e.$listeners),[n("div",{ref:"content",style:e.style}),e.contentPath?n("img",{attrs:{src:e.contentPath,draggable:e.draggable}}):e._e(),"widthFix"===e.mode||"heightFix"===e.mode?n("v-uni-resize-sensor",{ref:"sensor",on:{resize:function(t){return e._fixSize()}}}):e._e()],1)},r=[];function a(e){return a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e){return("undefined"===typeof navigator||a(navigator))&&"Google Inc."===navigator.vendor&&e>10&&(e=2*Math.round(e/2)),e}var s={name:"Image",props:{src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},data:function(){return{originalWidth:0,originalHeight:0,originalStyle:{width:"",height:""},contentPath:""}},computed:{ratio:function(){return this.originalWidth&&this.originalHeight?this.originalWidth/this.originalHeight:0},style:function(){var e="auto",t="",n="no-repeat";switch(this.mode){case"aspectFit":e="contain",t="center center";break;case"aspectFill":e="cover",t="center center";break;case"widthFix":case"heightFix":e="100% 100%";break;case"top":t="center top";break;case"bottom":t="center bottom";break;case"center":t="center center";break;case"left":t="left center";break;case"right":t="right center";break;case"top left":t="left top";break;case"top right":t="right top";break;case"bottom left":t="left bottom";break;case"bottom right":t="right bottom";break;default:e="100% 100%",t="0% 0%";break}return{"background-image":this.contentPath?'url("'.concat(this.contentPath,'")'):"none","background-position":t,"background-size":e,"background-repeat":n}}},watch:{src:function(e,t){this._loadImage()},mode:function(e,t){"widthFix"!==t&&"heightFix"!==t||this._resetSize(),"widthFix"!==e&&"heightFix"!==e||this._fixSize()}},mounted:function(){this.originalStyle.width=this.$el.style.width||"",this.originalStyle.height=this.$el.style.height||"",this._loadImage()},beforeDestroy:function(){this._clearImage()},methods:{_fixSize:function(){if(this.ratio){var e=this.$el;if("widthFix"===this.mode){var t=e.offsetWidth;t&&(e.style.height=o(t/this.ratio)+"px")}else if("heightFix"===this.mode){var n=e.offsetHeight;n&&(e.style.width=o(n*this.ratio)+"px")}}window.dispatchEvent(new CustomEvent("updateview"))},_resetSize:function(){this.$el.style.width=this.originalStyle.width,this.$el.style.height=this.originalStyle.height},_resetData:function(){this.originalWidth=0,this.originalHeight=0,this.contentPath=""},_loadImage:function(){var e=this,t=this.$getRealPath(this.src);if(t){var n=this._img=this._img||new Image;n.onload=function(i){e._img=null,e.originalWidth=n.width,e.originalHeight=n.height,e._fixSize(),e.contentPath=t,e.$trigger("load",i,{width:n.width,height:n.height})},n.onerror=function(t){e._img=null,e._resetData(),e.$trigger("error",t,{errMsg:"GET ".concat(e.src," 404 (Not Found)")})},n.src=t}else this._clearImage(),this._resetData()},_clearImage:function(){var e=this._img;e&&(e.onload=null,e.onerror=null,this._img=null)}}},u=s,c=(n("db18"),n("2877")),l=Object(c["a"])(u,i,r,!1,null,null,null);t["default"]=l.exports},"10a3":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-ad",e._g(e._b({},"uni-ad",e.attrs,!1),e.$listeners),[n("div",{ref:"container",staticClass:"uni-ad-container",on:{click:e._onhandle}})])},r=[],a=n("8af1");function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(){function e(){o(this,e),this._instance=null,this._adConfig=null,this._isLoading=!1,this._lastError=null,this._callbacks=[]}return u(e,null,[{key:"instance",get:function(){return null==this._instance&&(this._instance=new e,this._instance._init()),this._instance}}]),u(e,[{key:"_init",value:function(){var e=this._getConfig();null!==e&&e.last&&(this.isExpired||(this._adConfig=e.data))}},{key:"get",value:function(t,n,i){if(e.IC++,null!=this._adConfig)return this._doCallback(t,n,i),void(this.isExpired&&this._loadAdConfig(t));this._callbacks.push({adpid:t,success:n,fail:i}),this._loadAdConfig(t)}},{key:"_doCallback",value:function(t,n,i){e.IS++;var r=this._adConfig,a=r.a,o=r.b;a[t]?n(o,a[t]):i(this.ERROR_INVALID_ADPID)}},{key:"_loadAdConfig",value:function(e){var t=this;!0!==this._isLoading&&(this._isLoading=!0,uni.request({url:this.URL,method:"GET",timeout:8e3,data:{d:location.hostname,a:e},dataType:"json",success:function(e){var n=e.data;if(0===n.ret){var i=n.data;t._adConfig=i,t._setConfig(i),t._callbacks.forEach((function(e){var n=e.adpid,i=e.success,r=e.fail;t._doCallback(n,i,r)}))}else t._callbacks.forEach((function(e){e.fail({errCode:n.ret,errMsg:n.msg})}));t._callbacks=[]},fail:function(e){t._callbacks.forEach((function(t){t.fail(e)})),t._callbacks=[]},complete:function(e){t._isLoading=!1}}))}},{key:"_getConfig",value:function(){if(!navigator.cookieEnabled||!window.localStorage)return null;var e=localStorage.getItem(this.KEY);return e?JSON.parse(e):null}},{key:"_setConfig",value:function(e){if(!navigator.cookieEnabled||!window.localStorage)return null;localStorage.setItem(this.KEY,JSON.stringify({last:Date.now(),data:e}))}},{key:"adConfig",get:function(){return this._adConfig}},{key:"isExpired",get:function(){return null==this._adConfig||Math.abs(Date.now()-this._adConfig.last)>this.CACHE_TIME}}]),e}();c(l,"IC",0),c(l,"IS",0),Object.assign(l.prototype,{URL:"https://hac1.dcloud.net.cn/ah5",KEY:"uni_app_ad_config",CACHE_TIME:6e5,ERROR_INVALID_ADPID:{"-5002":"invalid adpid"}});var d=function(){function e(){o(this,e),this._instance=null,this._adConfig=null,this._guid=null}return u(e,null,[{key:"instance",get:function(){return null==this._instance&&(this._instance=new e,this._instance._init()),this._instance}}]),u(e,[{key:"_init",value:function(){var e=this._getConfig();null!==e&&e.guid?this._guid=e.guid:(this._guid=this._newGUID(),this._setConfig(this._guid))}},{key:"get",value:function(e){this._process(Object.assign(e,{d:location.hostname,i:this._guid}))}},{key:"_process",value:function(e){uni.request({url:this.URL,method:"GET",data:e,dataType:"json",success:function(){}})}},{key:"_newGUID",value:function(){for(var e="",t="xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx",n=0;n<t.length;n++)"x"===t[n]?e+=(16*Math.random()|0).toString(16):e+=t[n];return e.toUpperCase()}},{key:"_getConfig",value:function(){if(!navigator.cookieEnabled||!window.localStorage)return null;var e=localStorage.getItem(this.KEY);return e?JSON.parse(e):null}},{key:"_setConfig",value:function(e){if(!navigator.cookieEnabled||!window.localStorage)return null;localStorage.setItem(this.KEY,JSON.stringify({last:Date.now(),guid:e}))}}]),e}();Object.assign(d.prototype,{URL:"https://has1.dcloud.net.cn/ahl",KEY:"uni_app_ad_guid"});var h=function(){function e(){o(this,e),this._instance=null,this._callback={},this._cache={}}return u(e,null,[{key:"instance",get:function(){return null==this._instance&&(this._instance=new e),this._instance}}]),u(e,[{key:"load",value:function(e,t,n,i){void 0===this._cache[e]&&this.loadScript(e,t),1===this._cache[e]?n():(this._callback[e]||(this._callback[e]=[]),this._callback[e].push({success:n,fail:i}))}},{key:"loadScript",value:function(e,t){var n=this;this._cache[e]=0;var i=document.createElement("script");for(var r in i.setAttribute("id","uniad_provider"+e),t)i.setAttribute(r,t[r]);i.onload=function(){n._cache[e]=1,n._callback[e].forEach((function(e){var t=e.success;t()})),n._callback[e].length=0},i.onerror=function(t){n._cache[e]=void 0,n._callback[e].forEach((function(e){var n=e.fail;n(t)})),n._callback[e].length=0},document.body.append(i)}}]),e}(),f=function(){function e(){o(this,e),this._instance=null,this._callback={},this._cache={},window.TencentGDT=window.TencentGDT||[]}return u(e,null,[{key:"instance",get:function(){return null==this._instance&&(this._instance=new e),this._instance}}]),u(e,[{key:"load",value:function(e,t,n,i){var r=this;this._callback[t]||(this._callback[t]=[]),this._callback[t].push({success:n,fail:i}),this._cache[t]||(this._cache[t]={isReady:!1},window.TencentGDT.push({app_id:e,placement_id:t,type:"native",count:1,onComplete:function(e){r._cache[t].isReady=!0,r._callback[t].forEach((function(n){var i=n.success,a=n.fail;e&&Array.isArray(e)&&e.length?i(e[0]):a(e),r._callback[t].length=0}))}})),!0===this._cache[t].isReady&&window.TencentGDT.NATIVE.loadAd(t)}}]),e}(),p=1e3,m=5,g=750,v={name:"Ad",mixins:[a["g"]],props:{adpid:{type:[Number,String],default:""},adpidWidescreen:{type:[Number,String],default:""},widescreenWidth:{type:[Number,String],default:g}},watch:{adpid:function(e){e&&this._loadData(e)},adpidWidescreen:function(e){e&&this._loadData(e)}},mounted:function(){this._p={},this._pl=[],this._pi=0,this._checkTimer=null,this._checkTimerCount=0,this._isWidescreen=this.$refs.container.clientWidth>parseInt(this.widescreenWidth),this._loadData(),d.instance.get({h:__uniConfig.compilerVersion,a:this.adpid,at:-3,ic:l.IC,is:l.IS})},beforeDestroy:function(){this._clearCheckTimer(),this.$refs.container.innerHTML="",this._shanhuAd&&delete this._shanhuAd},methods:{_onhandle:function(e){this._report(41)},_reset:function(){this._p={},this._pl=[],this._pi=0,this._clearCheckTimer(),this.$refs.container.innerHTML="",this._isReady=!1},_loadData:function(e){var t=this;this._reset();var n=e||this.adpid,i=this._isWidescreen&&this.adpidWidescreen||n;l.instance.get(i,(function(e,n){t._b=e,t._pl=n,t._renderAd()}),(function(e){t.$trigger("error",{},e)}))},_renderAd:function(){var e=this;if(!(this._pi>this._pl.length-1)){var t=this._pl[this._pi],n=this._b[t.a1][t.t],i=n.script;this._currentChannel=t.a1;var r=this._randomId(),a=this._createView(r);"10011"===t.a1?(f.instance.load(t.a3,t.a2,(function(e){window.TencentGDT.NATIVE.renderAd(e,r)})),this._startCheckTimer()):"10012"===t.a1?this._renderScript(a,i):"10014"===t.a1?h.instance.load(t.t,i,(function(){e._renderShanhu(r,t.tt,t.tar)}),(function(t){e.$trigger("error",{},t)})):h.instance.load(t.t,i,(function(){e._renderAdView(r,a,i,t)}),(function(t){e.$trigger("error",{},t)}))}},_createView:function(e){var t=document.createElement("div");return t.setAttribute("id",e),t.setAttribute("class",e),this.$refs.container.innerHTML="",this.$refs.container.append(t),t},_renderScript:function(e,t){var n=document.createElement("script");for(var i in t)n.setAttribute(i,t[i]);e.appendChild(n),this._startCheckTimer()},_renderAdView:function(e,t,n,i){var r=window;n.s.split(".").reduce((function(e,t){return r=e,e[t]}),window).bind(r)(i.a2,e,2),this._startCheckTimer()},_renderShanhu:function(e,t,n){var i=this;this._shanhuAd=new window.CoralTBSAdv(e,{type:t,target:n,advShowCb:function(){i._report(42),i.$trigger("load",{},{})},advClickCb:function(){i._report(43),i.$trigger("adclicked",{},{})},advCloseCb:function(){i.$trigger("close",{},{})},advErrorCb:function(e){i.$trigger("error",{},e)}}),this._startCheckTimer()},_renderNext:function(){this._pi>=this._pl.length-1||(this._pi++,this._renderAd())},_checkRender:function(){var e=this.$refs.container.children.length>0&&this.$refs.container.clientHeight>40;return e&&this._report(40,this._currentChannel),e},_startCheckTimer:function(){var e=this;this._clearCheckTimer(),this._checkTimer=setInterval((function(){if(e._checkTimerCount++,e._checkTimerCount>=m)return e._clearCheckTimer(),void e._renderNext();e._checkRender()&&e._clearCheckTimer()}),p)},_clearCheckTimer:function(){this._checkTimerCount=0,null!=this._checkTimer&&(window.clearInterval(this._checkTimer),this._checkTimer=null)},_report:function(e,t){var n={h:__uniConfig.compilerVersion,a:this.adpid,at:e};t&&(n.t=t),d.instance.get(n)},_randomId:function(){for(var e="",t=0;t<4;t++)e+=(65536*(1+Math.random())|0).toString(16).substring(1);return"_u"+e}}},y=v,b=(n("e4bc"),n("2877")),_=Object(b["a"])(y,i,r,!1,null,null,null);t["default"]=_.exports},1164:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return u}));var i=n("a6b0"),r=n("23e5"),a=!1;function o(){return a}function s(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=[],r=o();if(!r)return n&&e.error("app is not ready"),[];var a=r.$children[0];if(a&&a.$children.length){var s=a.$children.find((function(e){return"TabBar"===e.$options.name})),u=a.$children.find((function(e){return"Layout"===e.$options.name}));u&&(a=u),a.$children.forEach((function(e){if(s!==e&&e.$children.length&&"Page"===e.$children[0].$options.name&&e.$children[0].$slots.page){var n=e.$children[0].$children.find((function(e){return"PageBody"===e.$options.name})),a=n&&n.$children.find((function(e){return!!e.$page}));if(a){var o=!0;!t&&s&&a.$page&&a.$page.meta.isTabBar&&(r.$route.meta&&r.$route.meta.isTabBar?r.$route.path!==a.$page.path&&(o=!1):s.__path__!==a.$page.path&&(o=!1)),o&&i.push(a)}}}))}var c=i.length;if(c>1){var l=i[c-1];l.$page.path!==r.$route.path&&i.splice(c-1,1)}return i}function u(e,t,n){a=t,a.$vm=t,a.globalData=a.$options.globalData||{},Object(i["d"])(e,a),Object(r["a"])(a,n)}}).call(this,n("3ad9")["default"])},"11fb":function(e,t,n){"use strict";n.r(t),n.d(t,"previewImage",(function(){return r}));var i=n("cb0f"),r={urls:{type:Array,required:!0,validator:function(e,t){var n;if(t.urls=e.map((function(e){if("string"===typeof e)return Object(i["a"])(e);n=!0})),n)return"url is not string"}},current:{type:[String,Number],validator:function(e,t){"number"===typeof e?t.current=e>0&&e<t.urls.length?e:0:"string"===typeof e&&e&&(t.current=Object(i["a"])(e))},default:0}}},1307:function(e,t,n){},1348:function(e,t,n){"use strict";(function(e){var i=n("8af1"),r=["navigate","redirect","switchTab","reLaunch","navigateBack"];t["a"]={name:"Navigator",mixins:[i["c"]],props:{hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:function(e){return~r.indexOf(e)}},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""}},methods:{_onClick:function(t){if("navigateBack"===this.openType||this.url)switch(this.openType){case"navigate":uni.navigateTo({url:this.url});break;case"redirect":uni.redirectTo({url:this.url,exists:this.exists});break;case"switchTab":uni.switchTab({url:this.url});break;case"reLaunch":uni.reLaunch({url:this.url});break;case"navigateBack":uni.navigateBack({delta:this.delta});break;default:break}else e.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab")}}}}).call(this,n("3ad9")["default"])},"15bb":function(e,t,n){"use strict";(function(e){var i=n("f2b3");t["a"]={mounted:function(){var t=this;if("transparent"===this.type){for(var n=this.$el.querySelector(".uni-page-head-transparent").style,i=this.$el.querySelector(".uni-page-head__title"),r=this.$el.querySelectorAll(".uni-btn-icon"),a=[],o=this.textColor,s=0;s<r.length;s++)a.push(r[s].style);for(var u=this.$el.querySelectorAll(".uni-page-head-btn"),c=[],l=[],d=0;d<u.length;d++){var h=u[d];c.push(getComputedStyle(h).backgroundColor),l.push(h.style)}this._A=0,e.on("onPageScroll",(function(e){var r=e.scrollTop,s=Math.min(r/t.offset,1);1===s&&1===t._A||(s>.5&&t._A<=.5?a.forEach((function(e){e.color=o})):s<=.5&&t._A>.5&&a.forEach((function(e){e.color="#fff"})),t._A=s,i&&(i.style.opacity=s),n.backgroundColor="rgba(".concat(t._R,",").concat(t._G,",").concat(t._B,",").concat(s,")"),l.forEach((function(e,t){var n=c[t],i=n.match(/[\d+\.]+/g);i[3]=(1-s)*(4===i.length?i[3]:1),e.backgroundColor="rgba(".concat(i,")")})))}))}else if("float"===this.type){for(var f=this.$el.querySelectorAll(".uni-btn-icon"),p=[],m=0;m<f.length;m++)p.push(f[m].style);for(var g=this.$el.querySelectorAll(".uni-page-head-btn"),v=[],y=[],b=0;b<g.length;b++){var _=g[b];v.push(getComputedStyle(_).backgroundColor),y.push(_.style)}}},computed:{color:function(){return"transparent"===this.type?"#fff":this.textColor},offset:function(){return parseInt(this.coverage)},bgColor:function(){if("transparent"===this.type){var e=Object(i["j"])(this.backgroundColor),t=e.r,n=e.g,r=e.b;return this._R=t,this._G=n,this._B=r,"rgba(".concat(t,",").concat(n,",").concat(r,",0)")}return this.backgroundColor}}}}).call(this,n("501c"))},"15ff":function(e,t,n){},1634:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=["VUniLeftWindow","VUniTopWindow","VUniRightWindow"];function r(e){while(e){if(-1!==i.indexOf(e.$options.name))return!0;e=e.$parent}}},"167a":function(e,t,n){"use strict";var i=n("5d70"),r=n.n(i);r.a},"17fd":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hoverClass&&"none"!==e.hoverClass?n("uni-navigator",e._g({class:[e.hovering?e.hoverClass:""],on:{touchstart:e._hoverTouchStart,touchend:e._hoverTouchEnd,touchcancel:e._hoverTouchCancel,click:e._onClick}},e.$listeners),[e._t("default")],2):n("uni-navigator",e._g({on:{click:e._onClick}},e.$listeners),[e._t("default")],2)},r=[],a=n("1348"),o=a["a"],s=(n("f7fd"),n("2877")),u=Object(s["a"])(o,i,r,!1,null,null,null);t["default"]=u.exports},"18fd":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,r=/^<\/([-A-Za-z0-9_]+)[^>]*>/,a=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,o=f("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),s=f("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),u=f("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),c=f("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),l=f("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),d=f("script,style");function h(e,t){var n,h,f,p=[],m=e;p.last=function(){return this[this.length-1]};while(e){if(h=!0,p.last()&&d[p.last()])e=e.replace(new RegExp("([\\s\\S]*?)</"+p.last()+"[^>]*>"),(function(e,n){return n=n.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,"$1$2"),t.chars&&t.chars(n),""})),y("",p.last());else if(0==e.indexOf("\x3c!--")?(n=e.indexOf("--\x3e"),n>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),h=!1)):0==e.indexOf("</")?(f=e.match(r),f&&(e=e.substring(f[0].length),f[0].replace(r,y),h=!1)):0==e.indexOf("<")&&(f=e.match(i),f&&(e=e.substring(f[0].length),f[0].replace(i,v),h=!1)),h){n=e.indexOf("<");var g=n<0?e:e.substring(0,n);e=n<0?"":e.substring(n),t.chars&&t.chars(g)}if(e==m)throw"Parse Error: "+e;m=e}function v(e,n,i,r){if(n=n.toLowerCase(),s[n])while(p.last()&&u[p.last()])y("",p.last());if(c[n]&&p.last()==n&&y("",n),r=o[n]||!!r,r||p.push(n),t.start){var d=[];i.replace(a,(function(e,t){var n=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:l[t]?t:"";d.push({name:t,value:n,escaped:n.replace(/(^|[^\\])"/g,'$1\\"')})})),t.start&&t.start(n,d,r)}}function y(e,n){if(n){for(i=p.length-1;i>=0;i--)if(p[i]==n)break}else var i=0;if(i>=0){for(var r=p.length-1;r>=i;r--)t.end&&t.end(p[r]);p.length=i}}y()}function f(e){for(var t={},n=e.split(","),i=0;i<n.length;i++)t[n[i]]=!0;return t}},1934:function(e,t,n){"use strict";n.r(t),n.d(t,"setNavigationBarColor",(function(){return r})),n.d(t,"setNavigationBarTitle",(function(){return a}));var i=["#ffffff","#000000"],r={frontColor:{type:String,required:!0,validator:function(e,t){if(-1===i.indexOf(e))return'invalid frontColor "'.concat(e,'"')}},backgroundColor:{type:String,required:!0},animation:{type:Object,default:function(){return{duration:0,timingFunc:"linear"}},validator:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;t.animation={duration:e.duration||0,timingFunc:e.timingFunc||"linear"}}}},a={title:{type:String,required:!0}}},1955:function(e,t,n){"use strict";n.r(t);var i=n("ba15"),r=n("8aec"),a=n("5363"),o=n("72b3"),s=n("d4cd");function u(e){var t=20,n=0,i=0;e.addEventListener("touchstart",(function(e){var t=e.changedTouches[0];n=t.clientX,i=t.clientY})),e.addEventListener("touchend",(function(e){var r=e.changedTouches[0];if(Math.abs(r.clientX-n)<t&&Math.abs(r.clientY-i)<t){var a=new CustomEvent("click",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((function(e){a[e]=r[e]})),e.target.dispatchEvent(a)}}))}var c,l,d={name:"PickerViewColumn",mixins:[i["a"],r["a"]],data:function(){return{scope:"picker-view-column-".concat(Date.now()),inited:!1,indicatorStyle:"",indicatorClass:"",indicatorHeight:34,maskStyle:"",maskClass:"",current:this.$parent.getItemValue(this),length:0}},computed:{height:function(){return this.$parent.height},maskSize:function(){return(this.height-this.indicatorHeight)/2}},watch:{indicatorHeight:function(e){this._setItemHeight(e),this.inited&&this.update()},current:function(e){this.$parent.setItemValue(this,e)},length:function(e){this.inited&&this.update(e)}},created:function(){var e=this.$parent;this.indicatorStyle=e.indicatorStyle,this.indicatorClass=e.indicatorClass,this.maskStyle=e.maskStyle,this.maskClass=e.maskClass,this.deltaY=0},mounted:function(){var e=this;this.touchtrack(this.$refs.main,"_handleTrack",!0),this.setCurrent(this.current),this.$nextTick((function(){e.init(),e.update()})),u(this.$el),Object(s["b"])();var t=this;while(t){var n=t.$options._scopeId;n&&this.$refs.indicator.setAttribute(n,""),t=t.$parent}},methods:{_setItemHeight:function(e){var t=document.createElement("style");t.innerText=".uni-picker-view-content.".concat(this.scope,">*{height: ").concat(e,"px;overflow: hidden;}"),document.head.appendChild(t)},_handleTrack:function(e){if(this._scroller)switch(e.detail.state){case"start":this._handleTouchStart(e),Object(s["a"])({disable:!0});break;case"move":this._handleTouchMove(e),e.stopPropagation();break;case"end":case"cancel":this._handleTouchEnd(e),Object(s["a"])({disable:!1})}},_handleTap:function(e){var t=e.clientY;if(!this._scroller.isScrolling()){var n=this.$el.getBoundingClientRect(),i=t-n.top-this.height/2,r=this.indicatorHeight/2;if(!(Math.abs(i)<=r)){var a=Math.ceil((Math.abs(i)-r)/this.indicatorHeight),o=i<0?-a:a,s=Math.min(this.current+o,this.length-1);this.current=s=Math.max(s,0),this._scroller.scrollTo(s*this.indicatorHeight)}}},_handleWheel:function(e){var t=this.deltaY+e.deltaY;if(Math.abs(t)>10){this.deltaY=0;var n=Math.min(this.current+(t<0?-1:1),this.length-1);this.current=n=Math.max(n,0),this._scroller.scrollTo(n*this.indicatorHeight)}else this.deltaY=t;e.preventDefault()},setCurrent:function(e){e!==this.current&&(this.current=e,this.inited&&this.update())},init:function(){var e=this;this.initScroller(this.$refs.content,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:this.indicatorHeight,friction:new a["a"](1e-4),spring:new o["a"](2,90,20),onSnap:function(t){isNaN(t)||t===e.current||(e.current=t)}}),this.inited=!0},update:function(){var e=this;this.$nextTick((function(){var t=Math.min(e.current,e.length-1);t=Math.max(t,0),e._scroller.update(t*e.indicatorHeight,void 0,e.indicatorHeight)}))},_resize:function(e){var t=e.height;this.indicatorHeight=t}},render:function(e){return this.length=this.$slots.default&&this.$slots.default.length||0,e("uni-picker-view-column",{on:{on:this.$listeners}},[e("div",{ref:"main",staticClass:"uni-picker-view-group",on:{wheel:this._handleWheel,click:this._handleTap}},[e("div",{ref:"mask",staticClass:"uni-picker-view-mask",class:this.maskClass,style:"background-size: 100% ".concat(this.maskSize,"px;").concat(this.maskStyle)}),e("div",{ref:"indicator",staticClass:"uni-picker-view-indicator",class:this.indicatorClass,style:this.indicatorStyle},[e("v-uni-resize-sensor",{attrs:{initial:!0},on:{resize:this._resize}})]),e("div",{ref:"content",staticClass:"uni-picker-view-content",class:this.scope,style:"padding: ".concat(this.maskSize,"px 0;")},[this.$slots.default])])])}},h=d,f=(n("edfa"),n("2877")),p=Object(f["a"])(h,c,l,!1,null,null,null);t["default"]=p.exports},"19c4":function(e,t,n){var i={"./base/base64.js":"6481","./base/can-i-use.js":"957a","./base/event-bus.js":"b0ef","./base/interceptor.js":"a954","./base/upx2px.js":"2289","./context/canvas.js":"82b9","./context/context.js":"3bfb","./device/make-phone-call.js":"f102","./device/scan-code.js":"ea0f","./device/set-clipboard-data.js":"b501","./file/file.js":"2da2","./file/open-document.js":"2604","./location/choose-location.js":"e5bb","./location/get-location.js":"19d9","./location/open-location.js":"70bb","./media/choose-file.js":"0baa","./media/choose-image.js":"f1b2","./media/choose-video.js":"ed9f","./media/compress-image.js":"dc12","./media/compress-video.js":"5243","./media/get-image-info.js":"b866","./media/get-video-info.js":"3f15","./media/preview-image.js":"11fb","./media/save-image-to-photos-album.js":"4f53","./network/download-file.js":"439a","./network/request.js":"a201","./network/socket.js":"abb2","./network/upload-file.js":"9a3e","./plugin/get-provider.js":"4e7c","./plugin/load-sub-package.js":"d013","./plugin/pre-login.js":"f68f","./route/route.js":"332a","./storage/storage.js":"ec33","./ui/load-font-face.js":"5ff9","./ui/navigation-bar.js":"1934","./ui/page-scroll-to.js":"232e","./ui/popup.js":"2246","./ui/tab-bar.js":"5621"};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id="19c4"},"19d9":function(e,t,n){"use strict";n.r(t),n.d(t,"getLocation",(function(){return r}));var i=["wgs84","gcj02"],r={type:{type:String,validator:function(e,t){e=(e||"").toLowerCase(),t.type=i.indexOf(e)<0?i[0]:e}},altitude:{type:Boolean,default:!1}}},"1a12":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"request",(function(){return l}));var i=n("f2b3");function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(){function e(t){r(this,e),s(this,"_xhr",void 0),this._xhr=t}return o(e,[{key:"abort",value:function(){this._xhr&&(this._xhr.abort(),delete this._xhr)}}]),e}();function c(e){var t={},n=e.split("\n");return n.forEach((function(e){var n=e.match(/(\S+\s*):\s*(.*)/);if(n&&3===n.length){var i=n[1],r=n[2];t[i]=r}})),t}function l(t,n){var r,a=t.url,o=t.data,s=t.header,l=t.method,d=t.dataType,h=t.responseType,f=t.withCredentials,p=t.timeout,m=void 0===p?__uniConfig.networkTimeout&&__uniConfig.networkTimeout.request||6e4:p,g=e,v=g.invokeCallbackHandler,y=null;for(var b in s)if(Object(i["i"])(s,b)&&"content-type"===b.toLowerCase()){r=s[b],r=0===r.indexOf("application/json")?"json":0===r.indexOf("application/x-www-form-urlencoded")?"urlencoded":"string";break}if("GET"!==l)if("string"===typeof o||o instanceof ArrayBuffer)y=o;else if("json"===r)try{y=JSON.stringify(o)}catch(x){y=o.toString()}else if("urlencoded"===r){var _=[];for(var T in o)Object(i["i"])(o,T)&&_.push(encodeURIComponent(T)+"="+encodeURIComponent(o[T]));y=_.join("&")}else y=o.toString();var w=new XMLHttpRequest,S=new u(w);for(var k in w.open(l,a),s)Object(i["i"])(s,k)&&w.setRequestHeader(k,s[k]);var C=setTimeout((function(){w.onload=w.onabort=w.onerror=null,S.abort(),v(n,{errMsg:"request:fail timeout"})}),m);return w.responseType=h,w.onload=function(){clearTimeout(C);var e=w.status,t="text"===h?w.responseText:w.response;if("text"===h&&"json"===d)try{t=JSON.parse(t)}catch(x){}v(n,{data:t,statusCode:e,header:c(w.getAllResponseHeaders()),errMsg:"request:ok"})},w.onabort=function(){clearTimeout(C),v(n,{errMsg:"request:fail abort"})},w.onerror=function(){clearTimeout(C),v(n,{errMsg:"request:fail"})},w.withCredentials=f,w.send(y),S}}.call(this,n("0dd1"))},"1a8c":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"redirectTo",(function(){return u})),n.d(t,"navigateTo",(function(){return c})),n.d(t,"navigateBack",(function(){return l})),n.d(t,"reLaunch",(function(){return d})),n.d(t,"switchTab",(function(){return h})),n.d(t,"preloadPage",(function(){return f}));var i=n("85b6"),r=n("d65e"),a=e,o=a.invokeCallbackHandler;function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.url,a=t.delta,o=t.events,u=t.exists,c=t.animationType,l=t.animationDuration,d=t.from,h=void 0===d?"navigateBack":d,f=t.detail,p=getApp().$router;switch(delete p.$eventChannel,e){case"redirectTo":if("back"===u){var m=Object(i["a"])(n);if(-1!==m){var g=getCurrentPages().length-1-m;if(g>0)return s("navigateBack",{delta:g})}}p.replace({type:e,path:n});break;case"navigateTo":return p.$eventChannel=Object(r["a"])(o),p.push({type:e,path:n,animationType:c,animationDuration:l}),{errMsg:e+":ok",eventChannel:p.$eventChannel};case"navigateBack":var v=!0,y=getCurrentPages();if(y.length){var b=y[y.length-1];Object(i["c"])(b.$options,"onBackPress")&&!0===b.__call_hook("onBackPress",{from:h})&&(v=!1)}v&&(a>1&&(p._$delta=a),p.go(-a,{animationType:c,animationDuration:l}));break;case"reLaunch":p.replace({type:e,path:n});break;case"switchTab":p.replace({type:e,path:n,params:{detail:f}});break}return{errMsg:e+":ok"}}function u(e){return s("redirectTo",e)}function c(e){return s("navigateTo",e)}function l(e){return s("navigateBack",e)}function d(e){return s("reLaunch",e)}function h(e){return s("switchTab",e)}function f(e,t){var n=e.url,i=n.split("?")[0].replace(/\//g,"-");__uniConfig.__webpack_chunk_load__(i.substr(1)).then((function(){o(t,{url:n,errMsg:"preloadPage:ok"})})).catch((function(e){o(t,{url:n,errMsg:"preloadPage:fail "+e})}))}}.call(this,n("0dd1"))},"1b6f":function(e,t,n){"use strict";(function(e){var i=n("f2b3");t["a"]={mounted:function(){var e=this;this._toggleListeners("subscribe",this.id),this.$watch("id",(function(t,n){e._toggleListeners("unsubscribe",n,!0),e._toggleListeners("subscribe",t,!0)}))},beforeDestroy:function(){this._toggleListeners("unsubscribe",this.id),this._contextId&&this._toggleListeners("unsubscribe",this._contextId)},methods:{_toggleListeners:function(t,n,r){r&&!n||Object(i["k"])(this._handleSubscribe)&&e[t](this.$page.id+"-"+this.$options.name.replace(/VUni([A-Z])/,"$1").toLowerCase()+"-"+n,this._handleSubscribe)},_getContextInfo:function(){var e="context-".concat(this._uid);return this._contextId||(this._toggleListeners("subscribe",e),this._contextId=e),{name:this.$options.name.replace(/VUni([A-Z])/,"$1").toLowerCase(),id:e,page:this.$page.id}}}}}).call(this,n("501c"))},"1c64":function(e,t,n){"use strict";var i=n("60ee"),r=n.n(i);r.a},"1c73":function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));var i={},r={};function a(e){for(var t=[],n=["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"],i=0,r=n;i<r.length;i++){var a=r[i];"orientation"!==a&&""!==e[a]&&Number(e[a])>=0&&t.push("(".concat(o(a),": ").concat(Number(e[a]),"px)")),"orientation"===a&&e[a]&&t.push("(".concat(o(a),": ").concat(e[a],")"))}return t=t.join(" and "),t}function o(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function s(t){var n=t.reqId,o=t.options,s=i[n]=window.matchMedia(a(o)),u=r[n]=function(t){e.publishHandler("onRequestMediaQueryObserver",{reqId:n,res:t.matches})};u(s),s.addListener(u)}function u(t){var n=t.reqId,a=r[n],o=i[n];o&&(o.removeListener(a),delete i[n],e.publishHandler("onRequestMediaQueryObserver",{reqId:n,reqEnd:!0}))}}).call(this,n("501c"))},"1ca3":function(e,t,n){"use strict";n.r(t),n.d(t,"base64ToArrayBuffer",(function(){return r})),n.d(t,"arrayBufferToBase64",(function(){return a}));var i=n("8390");function r(e){return Object(i["decode"])(e)}function a(e){return Object(i["encode"])(e)}},"1e4d":function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.r(t),n.d(t,"createAnimation",(function(){return d}));var o={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"},s=function(){function e(t){i(this,e),this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=Object.assign({},o,t)}return a(e,[{key:"_getOption",value:function(e){var t={transition:Object.assign({},this.option,e)};return t.transformOrigin=t.transition.transformOrigin,delete t.transition.transformOrigin,t}},{key:"_pushAnimates",value:function(e,t){this.currentStepAnimates.push({type:e,args:t})}},{key:"_converType",value:function(e){return e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}))}},{key:"_getValue",value:function(e){return"number"===typeof e?"".concat(e,"px"):e}},{key:"export",value:function(){var e=this.actions;return this.actions=[],{actions:e}}},{key:"step",value:function(e){var t=this;return this.currentStepAnimates.forEach((function(e){"style"!==e.type?t.currentTransform[e.type]=e:t.currentTransform["".concat(e.type,".").concat(e.args[0])]=e})),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(e)}),this.currentStepAnimates=[],this}}]),e}(),u=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"],c=["opacity","backgroundColor"],l=["width","height","left","right","top","bottom"];function d(e){return new s(e)}u.concat(c,l).forEach((function(e){s.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return c.concat(l).includes(e)?this._pushAnimates("style",[this._converType(e),l.includes(e)?this._getValue(n[0]):n[0]]):this._pushAnimates(e,n),this}}))},"1efd":function(e,t,n){"use strict";n.r(t);var i=n("8bbf"),r=n.n(i),a=n("cb0f"),o=n("d4b6"),s={methods:{$getRealPath:function(e){return e?Object(a["a"])(e):e},$trigger:function(e,t,n){this.$emit(e,o["b"].call(this,e,t,n,this.$el,this.$el))}}};function u(e){return h(e)||d(e)||l(e)||c()}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function d(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function h(e){if(Array.isArray(e))return f(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function p(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(function(e,t){return"".concat(uni.upx2px(parseFloat(t)),"px")})):/^-?[\d\.]+$/.test(e)?"".concat(e,"px"):e||""}function m(e){return e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})).replace("webkit","-webkit")}function g(e){var t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],i=["opacity","background-color"],r=["width","height","left","right","top","bottom"],a=e.animates,o=e.option,s=o.transition,c={},l=[];return a.forEach((function(e){var a=e.type,o=u(e.args);if(t.concat(n).includes(a))a.startsWith("rotate")||a.startsWith("skew")?o=o.map((function(e){return parseFloat(e)+"deg"})):a.startsWith("translate")&&(o=o.map(p)),n.indexOf(a)>=0&&(o.length=1),l.push("".concat(a,"(").concat(o.join(","),")"));else if(i.concat(r).includes(o[0])){a=o[0];var s=o[1];c[a]=r.includes(a)?p(s):s}})),c.transform=c.webkitTransform=l.join(" "),c.transition=c.webkitTransition=Object.keys(c).map((function(e){return"".concat(m(e)," ").concat(s.duration,"ms ").concat(s.timingFunction," ").concat(s.delay,"ms")})).join(","),c.transformOrigin=c.webkitTransformOrigin=o.transformOrigin,c}function v(e){var t=e.animation;if(t&&t.actions&&t.actions.length){var n=0,i=t.actions,r=t.actions.length;setTimeout((function(){a()}),0)}function a(){var t=i[n],o=t.option.transition,s=g(t);Object.keys(s).forEach((function(t){e.$el.style[t]=s[t]})),n+=1,n<r&&setTimeout(a,o.duration+o.delay)}}var y={props:["animation"],watch:{animation:function(){v(this)}},mounted:function(){v(this)}},b=[n("5408"),n("93a5")];b.forEach((function(e,t){e.keys().forEach((function(t){var n=e(t),i=n.default||n;i.mixins=i.mixins?[].concat(s,i.mixins):[s],i.mixins.push(y),i.name="VUni"+i.name,i.isReserved=!0,r.a.component(i.name,i)}))}))},"1ff3":function(e,t,n){"use strict";n.r(t),n.d(t,"uploadFile",(function(){return l}));var i=n("a118"),r=n("db70");function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}var u=function(){function e(t,n){a(this,e),this.id=t,this._callbackId=n,this._callbacks=[]}return s(e,[{key:"abort",value:function(){Object(r["c"])("operateUploadTask",{uploadTaskId:this.id,operationType:"abort"})}},{key:"onProgressUpdate",value:function(e){"function"===typeof e&&this._callbacks.push(e)}},{key:"onHeadersReceived",value:function(){}},{key:"offProgressUpdate",value:function(e){var t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}},{key:"offHeadersReceived",value:function(){}}]),e}(),c=Object.create(null);function l(e,t){var n=Object(r["c"])("createUploadTask",e),i=n.uploadTaskId,a=new u(i,t);return c[i]=a,a}Object(r["d"])("onUploadTaskStateChange",(function(e){var t=e.uploadTaskId,n=e.state,r=e.data,a=e.statusCode,o=e.progress,s=e.totalBytesSent,u=e.totalBytesExpectedToSend,l=e.errMsg,d=c[t],h=d._callbackId;switch(n){case"progressUpdate":d._callbacks.forEach((function(e){e({progress:o,totalBytesSent:s,totalBytesExpectedToSend:u})}));break;case"success":Object(i["a"])(h,{data:r,statusCode:a,errMsg:"request:ok"});case"fail":Object(i["a"])(h,{errMsg:"request:fail "+l});default:setTimeout((function(){delete c[t]}),100);break}}))},2190:function(e,t,n){},2209:function(e){e.exports=JSON.parse('{"uni.app.quit":"再按一次退出应用","uni.async.error":"连接服务器超时,点击屏幕重试","uni.showActionSheet.cancel":"取消","uni.showToast.unpaired":"请注意 showToast 与 hideToast 必须配对使用","uni.showLoading.unpaired":"请注意 showLoading 与 hideLoading 必须配对使用","uni.showModal.cancel":"取消","uni.showModal.confirm":"确定","uni.chooseImage.cancel":"取消","uni.chooseImage.sourceType.album":"从相册选择","uni.chooseImage.sourceType.camera":"拍摄","uni.chooseVideo.cancel":"取消","uni.chooseVideo.sourceType.album":"从相册选择","uni.chooseVideo.sourceType.camera":"拍摄","uni.chooseFile.notUserActivation":"文件选择器对话框只能在由用户激活时显示","uni.previewImage.cancel":"取消","uni.previewImage.button.save":"保存图像","uni.previewImage.save.success":"保存图像到相册成功","uni.previewImage.save.fail":"保存图像到相册失败","uni.setClipboardData.success":"内容已复制","uni.scanCode.title":"扫码","uni.scanCode.album":"相册","uni.scanCode.fail":"识别失败","uni.scanCode.flash.on":"轻触照亮","uni.scanCode.flash.off":"轻触关闭","uni.startSoterAuthentication.authContent":"指纹识别中...","uni.picker.done":"完成","uni.picker.cancel":"取消","uni.video.danmu":"弹幕","uni.video.volume":"音量","uni.button.feedback.title":"问题反馈","uni.button.feedback.send":"发送","uni.chooseLocation.search":"搜索地点","uni.chooseLocation.cancel":"取消"}')},2246:function(e,t,n){"use strict";n.r(t),n.d(t,"showModal",(function(){return a})),n.d(t,"showToast",(function(){return o})),n.d(t,"showLoading",(function(){return s})),n.d(t,"showActionSheet",(function(){return u}));var i=n("a6b0"),r=n("cb0f"),a={title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:function(){return Object(i["g"])("uni.showModal.cancel")}},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:function(){return Object(i["g"])("uni.showModal.confirm")}},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean,default:!0}},o={title:{type:String,default:""},icon:{default:"success",validator:function(e,t){-1===["success","loading","error","none"].indexOf(e)&&(t.icon="success")}},image:{type:String,default:"",validator:function(e,t){e&&(t.image=Object(r["a"])(e))}},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},s={title:{type:String,default:""},icon:{type:String,default:"loading"},duration:{type:Number,default:1e8},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},u={itemList:{type:Array,required:!0,validator:function(e,t){if(!e.length)return"parameter.itemList should have at least 1 item"}},itemColor:{type:String,default:"#000000"},visible:{type:Boolean,default:!0},popover:{type:Object}}},2289:function(e,t,n){"use strict";n.r(t),n.d(t,"upx2px",(function(){return i}));var i=[{name:"upx",type:[Number,String],required:!0}]},"232e":function(e,t,n){"use strict";n.r(t),n.d(t,"pageScrollTo",(function(){return i}));var i={scrollTop:{type:Number,required:!0},duration:{type:Number,default:300,validator:function(e,t){t.duration=Math.max(0,e)}}}},2399:function(e,t,n){},"23e5":function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return m}));var i=n("a741");function r(e){-1===this.keepAliveInclude.indexOf(e)&&this.keepAliveInclude.push(e)}var a=[];function o(e){if("number"===typeof e)a=this.keepAliveInclude.splice(-(e-1)).map((function(e){return parseInt(e.split("-").pop())}));else{var t=this.keepAliveInclude.indexOf(e);-1!==t&&this.keepAliveInclude.splice(t,1)}}var s=Object.create(null);function u(e){return s[e]}function c(e){s[e]={x:window.pageXOffset,y:window.pageYOffset}}function l(e,t,n){t&&n&&t.meta.isTabBar&&n.meta.isTabBar&&c(n.params.__id__);for(var r=getCurrentPages(),a=r.length-1;a>=0;a--){var s=r[a],u=s.$page.meta;u.isTabBar||(o.call(this,u.name+"-"+s.$page.id),Object(i["b"])(s,"onUnload"))}}function d(e){__uniConfig.reLaunch=(__uniConfig.reLaunch||1)+1;for(var t=getCurrentPages(!0),n=t.length-1;n>=0;n--)Object(i["b"])(t[n],"onUnload"),t[n].$destroy();this.keepAliveInclude=[],s=Object.create(null)}var h=[];function f(e,t,n,i){h=getCurrentPages(!0);var a=t.params.__id__,s=e.params.__id__,u=e.meta.name+"-"+s;if(s===a&&"reLaunch"!==e.type)e.fullPath!==t.fullPath?(r.call(this,u),n()):n(!1);else if(e.meta.id&&e.meta.id!==s)n({path:e.path,replace:!0});else{var c=t.meta.name+"-"+a;switch(e.type){case"navigateTo":break;case"redirectTo":o.call(this,c),t.meta&&t.meta.isQuit&&(e.meta.isQuit=!0,e.meta.isEntry=!!t.meta.isEntry);break;case"switchTab":l.call(this,i,e,t);break;case"reLaunch":d.call(this,u),e.meta.isQuit=!0;break;default:a&&a>s&&(o.call(this,c),this.$router._$delta>1&&o.call(this,this.$router._$delta));break}if("reLaunch"!==e.type&&"redirectTo"!==e.type&&t.meta.id&&r.call(this,c),r.call(this,u),e.meta&&e.meta.name){document.body.className="uni-body "+e.meta.name;var f="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.meta.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(f,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(f))}n()}}function p(t,n){var r=n.params.__id__,o=t.params.__id__,s=h.find((function(e){return e.$page.id===r}));function u(e){if(e){Object(i["b"])(e,"onUnload");var t=h.indexOf(e);t>=0&&h.splice(t,1)}}switch(t.type){case"navigateTo":s&&Object(i["b"])(s,"onHide");break;case"redirectTo":u(s);break;case"switchTab":n.meta.isTabBar&&s&&Object(i["b"])(s,"onHide");break;case"reLaunch":break;default:r&&r>o&&(u(s),this.$router._$delta>1&&a.reverse().forEach((function(e){var t=h.find((function(t){return t.$page.id===e}));u(t)})));break}if(delete this.$router._$delta,a.length=0,"reLaunch"!==t.type){var c=getCurrentPages(!0).find((function(e){return e.$page.id===o}));c&&(setTimeout((function(){e.emit("onNavigationBarChange",c.$parent.$parent.navigationBar),Object(i["b"])(c,"onShow")}),0),document.title=c.$parent.$parent.navigationBar.titleText)}}function m(e,t){e.$router.beforeEach((function(n,i,r){f.call(e,n,i,r,t)})),e.$router.afterEach((function(t,n){p.call(e,t,n)}))}}).call(this,n("0dd1"))},"24d9":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o}));var i=n("f2b3");function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function a(e){return e.mp=Object.assign({"@warning":"mp is deprecated"},e),e._processed=!0,e}function o(e,t){return Object(i["l"])(t)&&(Object(i["i"])(t,"backgroundColor")&&(e.backgroundColor=t.backgroundColor),Object(i["i"])(t,"buttons")&&(e.buttons=t.buttons),Object(i["i"])(t,"titleColor")&&(e.textColor=t.titleColor),Object(i["i"])(t,"titleText")&&(e.titleText=t.titleText),Object(i["i"])(t,"titleSize")&&(e.titleSize=t.titleSize),Object(i["i"])(t,"type")&&(e.type=t.type),Object(i["i"])(t,"searchInput")&&"object"===r(t.searchInput)&&(e.searchInput=Object.assign({autoFocus:!1,align:"center",color:"#000000",backgroundColor:"rgba(255,255,255,0.5)",borderRadius:"0px",placeholder:"",placeholderColor:"#CCCCCC",disabled:!1},t.searchInput))),e}},"250d":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-input",e._g({},e.$listeners),[n("div",{ref:"wrapper",staticClass:"uni-input-wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!(e.composing||e.valueSync.length||"-"===e.cachedValue),expression:"!(composing || valueSync.length || cachedValue === '-')"}],ref:"placeholder",staticClass:"uni-input-placeholder",class:e.placeholderClass,style:e.placeholderStyle,domProps:{textContent:e._s(e.placeholder)}}),"checkbox"!==e.inputType||e.disabled&&e.fixColor?"radio"!==e.inputType||e.disabled&&e.fixColor?e.disabled&&e.fixColor?e._e():n("input",{directives:[{name:"model",rawName:"v-model",value:e.valueSync,expression:"valueSync"},{name:"keyboard",rawName:"v-keyboard"},{name:"field",rawName:"v-field"}],ref:"input",staticClass:"uni-input-input",attrs:{disabled:e.disabled,maxlength:e.maxlength,step:e.step,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":null,autocomplete:e.autocomplete,type:e.inputType},domProps:{value:e.valueSync},on:{change:function(e){e.stopPropagation()},focus:e._onFocus,blur:e._onBlur,input:[function(t){t.target.composing||(e.valueSync=t.target.value)},function(t){return t.stopPropagation(),e._onInput(t)}],compositionstart:function(t){return t.stopPropagation(),e._onComposition(t)},compositionend:function(t){return t.stopPropagation(),e._onComposition(t)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e._onKeyup(t))}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.valueSync,expression:"valueSync"},{name:"keyboard",rawName:"v-keyboard"},{name:"field",rawName:"v-field"}],ref:"input",staticClass:"uni-input-input",attrs:{disabled:e.disabled,maxlength:e.maxlength,step:e.step,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":null,autocomplete:e.autocomplete,type:"radio"},domProps:{checked:e._q(e.valueSync,null)},on:{change:[function(t){e.valueSync=null},function(e){e.stopPropagation()}],focus:e._onFocus,blur:e._onBlur,input:function(t){return t.stopPropagation(),e._onInput(t)},compositionstart:function(t){return t.stopPropagation(),e._onComposition(t)},compositionend:function(t){return t.stopPropagation(),e._onComposition(t)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e._onKeyup(t))}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.valueSync,expression:"valueSync"},{name:"keyboard",rawName:"v-keyboard"},{name:"field",rawName:"v-field"}],ref:"input",staticClass:"uni-input-input",attrs:{disabled:e.disabled,maxlength:e.maxlength,step:e.step,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":null,autocomplete:e.autocomplete,type:"checkbox"},domProps:{checked:Array.isArray(e.valueSync)?e._i(e.valueSync,null)>-1:e.valueSync},on:{change:[function(t){var n=e.valueSync,i=t.target,r=!!i.checked;if(Array.isArray(n)){var a=null,o=e._i(n,a);i.checked?o<0&&(e.valueSync=n.concat([a])):o>-1&&(e.valueSync=n.slice(0,o).concat(n.slice(o+1)))}else e.valueSync=r},function(e){e.stopPropagation()}],focus:e._onFocus,blur:e._onBlur,input:function(t){return t.stopPropagation(),e._onInput(t)},compositionstart:function(t){return t.stopPropagation(),e._onComposition(t)},compositionend:function(t){return t.stopPropagation(),e._onComposition(t)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e._onKeyup(t))}}}),e.disabled&&e.fixColor?n("input",{ref:"input",staticClass:"uni-input-input",attrs:{tabindex:"-1",readonly:e.disabled,type:e.inputType,maxlength:e.maxlength,step:e.step},domProps:{value:e.valueSync},on:{focus:function(e){return e.target.blur()}}}):e._e()])])},r=[],a=n("8af1"),o=n("f2b3"),s=["text","number","idcard","digit","password","tel"],u=["number","digit"],c=["off","one-time-code"],l={name:"Input",mixins:[a["b"]],props:{name:{type:String,default:""},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:"input-placeholder"},disabled:{type:[Boolean,String],default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},textContentType:{type:String,default:""}},data:function(){return{wrapperHeight:0,cachedValue:""}},computed:{inputType:function(){var e="";switch(this.type){case"text":"search"===this.confirmType&&(e="search");break;case"idcard":e="text";break;case"digit":e="number";break;default:e=~s.indexOf(this.type)?this.type:"text";break}return this.password?"password":e},step:function(){return~u.indexOf(this.type)?"0.000000000000000001":""},autocomplete:function(){var e=c.indexOf(this.textContentType),t=c.indexOf(Object(o["n"])(this.textContentType)),n=-1!==e?e:-1!==t?t:0;return c[n]}},watch:{maxlength:function(e){var t=this.valueSync.slice(0,parseInt(e,10));t!==this.valueSync&&(this.valueSync=t)}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},mounted:function(){if("search"===this.confirmType){var e=document.createElement("form");e.action="",e.onsubmit=function(){return!1},e.className="uni-input-form",e.appendChild(this.$refs.input),this.$refs.wrapper.appendChild(e)}var t=this;while(t){var n=t.$options._scopeId;n&&this.$refs.placeholder.setAttribute(n,""),t=t.$parent}},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onKeyup:function(e){var t=e.target;this.$trigger("confirm",e,{value:t.value}),this.confirmHold||t.blur()},_onInput:function(e,t){var n=this,i=!1;if(!this.composing){if("number"===this.inputType){var r=parseInt(this.maxlength,10);if(r>0&&e.target.value.length>r&&(this.cachedValue.length===r?(this.valueSync=this.cachedValue,i=!0):(e.target.value=e.target.value.slice(0,r),this.valueSync=e.target.value)),this.__clearCachedValue&&e.target.removeEventListener("blur",this.__clearCachedValue),e.target.validity&&!e.target.validity.valid){if(!this.cachedValue&&"-"===e.data||"-"===this.cachedValue[0]&&"deleteContentBackward"===e.inputType){this.cachedValue="-";var a=this.__clearCachedValue=function(){n.cachedValue=""};return void e.target.addEventListener("blur",a)}return void(this.cachedValue=this.valueSync=e.target.value="-"===this.cachedValue?"":this.cachedValue)}this.cachedValue=this.valueSync}i||this.$triggerInput(e,{value:this.valueSync},t)}},_onComposition:function(e){"compositionstart"===e.type?this.composing=!0:this.composing&&(this.composing=!1,this._onInput(e))},_resetFormData:function(){this.valueSync=""},_getFormData:function(){return this.name?{value:this.valueSync,key:this.name}:{}}}},d=l,h=(n("0f55"),n("2877")),f=Object(h["a"])(d,i,r,!1,null,null,null);t["default"]=f.exports},"25ce":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-checkbox-group",e._g({},e.$listeners),[e._t("default")],2)},r=[],a=n("8af1"),o={name:"CheckboxGroup",mixins:[a["a"],a["f"]],props:{name:{type:String,default:""}},data:function(){return{checkboxList:[]}},listeners:{"@checkbox-change":"_changeHandler","@checkbox-group-update":"_checkboxGroupUpdateHandler"},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_changeHandler:function(e){var t=[];this.checkboxList.forEach((function(e){e.checkboxChecked&&t.push(e.value)})),this.$trigger("change",e,{value:t})},_checkboxGroupUpdateHandler:function(e){if("add"===e.type)this.checkboxList.push(e.vm);else{var t=this.checkboxList.indexOf(e.vm);this.checkboxList.splice(t,1)}},_getFormData:function(){var e={};if(""!==this.name){var t=[];this.checkboxList.forEach((function(e){e.checkboxChecked&&t.push(e.value)})),e.value=t,e.key=this.name}return e}}},s=o,u=(n("0998"),n("2877")),c=Object(u["a"])(s,i,r,!1,null,null,null);t["default"]=c.exports},2604:function(e,t,n){"use strict";n.r(t),n.d(t,"openDocument",(function(){return i}));var i={filePath:{type:String,required:!0},fileType:{type:String}}},2608:function(e,t,n){"use strict";(function(e){function i(t){return function(){try{return t.apply(t,arguments)}catch(n){e.error(n)}}}function r(t){return function(){try{return t.apply(t,arguments)}catch(n){e.error(n)}}}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}))}).call(this,n("3ad9")["default"])},2765:function(e,t,n){"use strict";var i=n("3590"),r=n.n(i);r.a},"27a7":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return b})),n.d(t,"d",(function(){return _})),n.d(t,"c",(function(){return w}));var i=n("f2b3"),r=n("2608"),a=n("ed1a"),o=n("cc76"),s=n("de29");function u(e,t,n){var i="".concat(t,":fail ").concat(e);if(-1===n)throw new Error(i);return"number"===typeof n&&y(n,{errMsg:i}),!1}var c=[{name:"callback",type:Function,required:!0}],l=["beforeValidate","beforeAll","beforeSuccess"];function d(e,t,n){var r=o["a"][e];if(!r&&Object(a["a"])(e)&&(r=c),r){if(Array.isArray(r)&&Array.isArray(t)){var d=Object.create(null),h=Object.create(null),f=t.length;r.forEach((function(e,n){d[e.name]=e,f>n&&(h[e.name]=t[n])})),r=d,t=h}if(Object(i["k"])(r.beforeValidate)){var p=r.beforeValidate(t);if(p)return u(p,e,n)}for(var m=Object.keys(r),g=0;g<m.length;g++)if(-1===l.indexOf(m[g])){var v=Object(s["a"])(m[g],r,t);if(v)return u(v,e,n)}}return!0}var h=1,f={};function p(e,t){var n=h++,i="api."+e+"."+n;return f[n]={name:i,keepAlive:!0,callback:t},n}function m(e,t){for(var n in f){var i=f[n];if(i.name.startsWith("api."+e.replace(/^off/,"on"))&&i.callback===t)return delete f[n],Number(n)}return"fail"}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Object(i["l"])(t))return{params:t};t=Object.assign({},t);var a={};for(var o in t){var s=t[o];Object(i["k"])(s)&&(a[o]=Object(r["a"])(s),delete t[o])}var u=a.success,c=a.fail,l=a.cancel,d=a.complete,p=Object(i["k"])(u),m=Object(i["k"])(c),g=Object(i["k"])(l),v=Object(i["k"])(d);if(!p&&!m&&!g&&!v)return{params:t};var y={};for(var b in n){var _=n[b];Object(i["k"])(_)&&(y[b]=Object(r["b"])(_))}var T=y.beforeSuccess,w=y.afterSuccess,S=y.beforeFail,k=y.afterFail,C=y.beforeCancel,x=y.afterCancel,E=y.beforeAll,A=y.afterAll,O=h++,j="api."+e+"."+O,I=function(n){if(n.errMsg=n.errMsg||e+":ok",-1!==n.errMsg.indexOf(":ok"))n.errMsg=e+":ok";else if(-1!==n.errMsg.indexOf(":cancel"))n.errMsg=e+":cancel";else if(-1!==n.errMsg.indexOf(":fail")){var r="",a=n.errMsg.indexOf(" ");a>-1&&(r=n.errMsg.substr(a)),n.errMsg=e+":fail"+r}Object(i["k"])(E)&&E(n);var o=n.errMsg;0===o.indexOf(e+":ok")?(Object(i["k"])(T)&&T(n,t),p&&u(n),Object(i["k"])(w)&&w(n)):0===o.indexOf(e+":cancel")?(n.errMsg=n.errMsg.replace(e+":cancel",e+":fail cancel"),m&&c(n),Object(i["k"])(C)&&C(n),g&&l(n),Object(i["k"])(x)&&x(n)):0===o.indexOf(e+":fail")&&(Object(i["k"])(S)&&S(n),m&&c(n),Object(i["k"])(k)&&k(n)),v&&d(n),Object(i["k"])(A)&&A(n)};return f[O]={name:j,callback:I},{params:t,callbackId:O}}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=g(e,t,n),a=r.params,o=r.callbackId;return Object(i["l"])(a)&&!d(e,a,o)?{params:a,callbackId:!1}:{params:a,callbackId:o}}function y(e,t,n){if("number"===typeof e){var i=f[e];if(i)return i.keepAlive||delete f[e],i.callback(t,n)}return t}function b(e){delete f[e]}function _(t){return function(n){e.error("API `"+t+"` is not yet implemented")}}function T(e,t){var n=o["a"][e];n&&(Object(i["k"])(n.beforeAll)&&(t.beforeAll=n.beforeAll),Object(i["k"])(n.beforeSuccess)&&(t.beforeSuccess=n.beforeSuccess))}function w(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(i["k"])(t)?(T(e,n),function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];if(Object(a["b"])(e)){if(d(e,o,-1))return t.apply(null,o)}else if(Object(a["a"])(e)){if(d(e,o,-1))return t((e.startsWith("off")?m:p)(e,o[0]))}else{var u={};o.length&&(u=o[0]);var c,l=v(e,u,n),h=l.params,f=l.callbackId;if(!1!==f)return c=Object(i["k"])(h)?t(f):t(h,f),c&&!Object(a["c"])(e)&&(c=y(f,c),Object(i["l"])(c)&&(c.errMsg=c.errMsg||e+":ok")),c}}):t}}).call(this,n("3ad9")["default"])},"27ab":function(e,t,n){"use strict";n.r(t);var i=n("f2b3");function r(e){return u(e)||s(e)||o(e)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function s(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function u(e){if(Array.isArray(e))return c(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var l,d,h={name:"PickerView",props:{value:{type:Array,default:function(){return[]},validator:function(e){return Array.isArray(e)&&e.filter((function(e){return"number"===typeof e})).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},data:function(){return{valueSync:r(this.value),height:34,items:[],changeSource:""}},watch:{value:function(e,t){var n=this;this.valueSync.length=e.length,e.forEach((function(e,t){e!==n.valueSync[t]&&n.$set(n.valueSync,t,e)}))},valueSync:{deep:!0,handler:function(e,t){if(""===this.changeSource)this._valueChanged(e);else{this.changeSource="";var n=e.map((function(e){return e}));this.$emit("update:value",n),this.$trigger("change",{},{value:n})}}}},methods:{getItemIndex:function(e){return this.items.indexOf(e)},getItemValue:function(e){return this.valueSync[this.getItemIndex(e.$vnode)]||0},setItemValue:function(e,t){var n=this.getItemIndex(e.$vnode),i=this.valueSync[n];i!==t&&(this.changeSource="touch",this.$set(this.valueSync,n,t))},_valueChanged:function(e){this.items.forEach((function(t,n){t.componentInstance.setCurrent(e[n]||0)}))},_resize:function(e){var t=e.height;this.height=t}},render:function(e){var t=[];return this.$slots.default&&Object(i["f"])(this.$slots.default,e).forEach((function(e){e.componentOptions&&"v-uni-picker-view-column"===e.componentOptions.tag&&t.push(e)})),this.items=t,e("uni-picker-view",{on:this.$listeners},[e("v-uni-resize-sensor",{attrs:{initial:!0},on:{resize:this._resize}}),e("div",{ref:"wrapper",class:"uni-picker-view-wrapper"},t)])}},f=h,p=(n("6062"),n("2877")),m=Object(p["a"])(f,l,d,!1,null,null,null);t["default"]=m.exports},"27c2":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-editor",e._g({staticClass:"ql-container",attrs:{id:e.id}},e.$listeners))},r=[],a=n("8188"),o=a["a"],s=(n("e298"),n("2877")),u=Object(s["a"])(o,i,r,!1,null,null,null);t["default"]=u.exports},"27d0":function(e,t,n){"use strict";(function(e){var i=n("85b6"),r=n("a6b0"),a=n("65a8"),o=n("f2b3"),s=n("24d9"),u=n("2d02"),c=n("a402"),l=n("90f7"),d=n("be12"),h=n("d8c8"),f=n.n(h);function p(e){return p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}t["a"]={name:"Page",mpType:"page",components:{PageHead:u["a"],PageBody:c["a"],PageRefresh:l["a"]},mixins:[d["a"]],props:{isQuit:{type:Boolean,default:!1},isEntry:{type:Boolean,default:!1},isTabBar:{type:Boolean,default:!1},tabBarIndex:{type:Number,default:-1},navigationBarBackgroundColor:{type:String,default:"#000"},navigationBarTextStyle:{default:"white",validator:function(e){return-1!==["white","black"].indexOf(e)}},navigationBarTitleText:{type:String,default:""},navigationStyle:{default:"default",validator:function(e){return-1!==["default","custom"].indexOf(e)}},backgroundColor:{type:String,default:"#ffffff"},backgroundTextStyle:{default:"dark",validator:function(e){return-1!==["dark","light"].indexOf(e)}},backgroundColorTop:{type:String,default:"#fff"},backgroundColorBottom:{type:String,default:"#fff"},enablePullDownRefresh:{type:Boolean,default:!1},onReachBottomDistance:{type:Number,default:50},disableScroll:{type:Boolean,default:!1},titleNView:{type:[Boolean,Object,String],default:""},pullToRefresh:{type:Object,default:function(){return{}}},titleImage:{type:String,default:""},transparentTitle:{type:String,default:""},titlePenetrate:{type:String,default:"NO"},navigationBarShadow:{type:Object,default:function(){return{}}},topWindow:{type:Boolean,default:!0}},data:function(){var e={},t={none:"default",auto:"transparent",always:"float"},n=this.titleNView;n=!1===n||"false"===n||"custom"===this.navigationStyle&&!Object(o["l"])(n)||"always"===this.transparentTitle&&!Object(o["l"])(n)?{type:"none"}:Object.assign({},{type:"custom"===this.navigationStyle?"none":"default"},this.transparentTitle in t?{type:t[this.transparentTitle]}:null,"object"===p(n)?n:"boolean"===typeof n?{type:n?"default":"none"}:null);var u={YES:!0,NO:!1};e=Object(s["a"])({loading:!1,backButton:!this.isQuit&&!this.$route.meta.isQuit,backgroundColor:this.navigationBarBackgroundColor,textColor:"black"===this.navigationBarTextStyle?"#000":"#fff",titleText:this.navigationBarTitleText,titleImage:this.titleImage,duration:"0",timingFunc:"",titlePenetrate:u[this.titlePenetrate]},n),e.shadow=this.navigationBarShadow,Object(r["e"])(e);var c=Object.assign({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},this.pullToRefresh),l=Object(i["e"])(c.offset);return"none"!==n.type&&"transparent"!==n.type&&(l+=a["a"]+f.a.top),c.offset=l,c.height=Object(i["e"])(c.height),c.range=Object(i["e"])(c.range),{navigationBar:e,refreshOptions:c}},created:function(){var t=this.navigationBar;document.title=t.titleText,e.emit("onNavigationBarChange",t)}}}).call(this,n("0dd1"))},2877:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var u,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=u):r&&(u=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(e,t){return u.call(t),l(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,u):[u]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},2883:function(e,t,n){},"28c0":function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}));var o=function(){function e(t,n){var r=this;i(this,e),this.id=t,this.listener={},this.emitCache={},n&&Object.keys(n).forEach((function(e){r.on(e,n[e])}))}return a(e,[{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=this.listener[e];if(!r)return(this.emitCache[e]||(this.emitCache[e]=[])).push(n);r.forEach((function(e){e.fn.apply(e.fn,n)})),this.listener[e]=r.filter((function(e){return"once"!==e.type}))}},{key:"on",value:function(e,t){this._addListener(e,"on",t),this._clearCache(e)}},{key:"once",value:function(e,t){this._addListener(e,"once",t),this._clearCache(e)}},{key:"off",value:function(e,t){var n=this.listener[e];if(n)if(t)for(var i=0;i<n.length;)n[i].fn===t&&(n.splice(i,1),i--),i++;else delete this.listener[e]}},{key:"_clearCache",value:function(e){var t=this.emitCache[e];if(t)for(;t.length>0;)this.emit.apply(this,[e].concat(t.shift()))}},{key:"_addListener",value:function(e,t,n){(this.listener[e]||(this.listener[e]=[])).push({fn:n,type:t})}}]),e}()},"28da":function(e,t,n){},"29a2":function(e,t,n){},"2bbe":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hoverClass&&"none"!==e.hoverClass?n("uni-view",e._g({class:[e.hovering?e.hoverClass:""],on:{touchstart:e._hoverTouchStart,touchend:e._hoverTouchEnd,touchcancel:e._hoverTouchCancel}},e.$listeners),[e._t("default")],2):n("uni-view",e._g({},e.$listeners),[e._t("default")],2)},r=[],a=n("83a6"),o={name:"View",mixins:[a["a"]],listeners:{"label-click":"clickHandler"}},s=o,u=(n("e865"),n("2877")),c=Object(u["a"])(s,i,r,!1,null,null,null);t["default"]=c.exports},"2bdd":function(e,t,n){"use strict";n.r(t),function(e){var i;n.d(t,"startAccelerometer",(function(){return a})),n.d(t,"stopAccelerometer",(function(){return o})),n.d(t,"onAccelerometerChange",(function(){return s})),n.d(t,"offAccelerometerChange",(function(){return u}));var r=[];function a(t,n){var a=e,o=a.invokeCallbackHandler;if(!window.DeviceMotionEvent)return{errMsg:"startAccelerometer:fail"};function s(){i=function(e){var t=e.acceleration||e.accelerationIncludingGravity;r.forEach((function(e){o(e,{x:t.x||0,y:t.y||0,z:t.z||0})}))},window.addEventListener("devicemotion",i,!1)}if(!i){if(DeviceMotionEvent.requestPermission)return void DeviceMotionEvent.requestPermission().then((function(e){"granted"===e?(s(),o(n,{errMsg:"startAccelerometer:ok"})):o(n,{errMsg:"startAccelerometer:fail ".concat(e)})})).catch((function(e){o(n,{errMsg:"startAccelerometer:fail ".concat(e)})}));s()}return{}}function o(){return i&&(window.removeEventListener("devicemotion",i,!1),i=null),{}}function s(e){r.length||a(),r.push(e)}function u(e){if(e){var t=r.indexOf(e);t>=0&&r.splice(t,1)}r.length||o()}}.call(this,n("0dd1"))},"2c45":function(e,t,n){},"2c67":function(e,t,n){"use strict";n.r(t),function(e){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function o(t,n,i,r){e.publishHandler(n+"-audio-"+t,{audioId:t,type:i,data:r},n)}n.d(t,"createAudioContext",(function(){return u}));var s=function(){function e(t,n){i(this,e),this.id=t,this.pageId=n}return a(e,[{key:"setSrc",value:function(e){o(this.id,this.pageId,"setSrc",{src:e})}},{key:"play",value:function(){o(this.id,this.pageId,"play")}},{key:"pause",value:function(){o(this.id,this.pageId,"pause")}},{key:"seek",value:function(e){o(this.id,this.pageId,"seek",{position:e})}}]),e}();function u(t,n){if(n)return new s(t,n.$page.id);var i=getApp();if(i.$route&&i.$route.params.__id__)return new s(t,i.$route.params.__id__);e.emit("onError","createAudioContext:fail")}}.call(this,n("0dd1"))},"2d02":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-page-head",{attrs:{"uni-page-head-type":e.type}},[n("div",{staticClass:"uni-page-head",class:e.headClass,style:{transitionDuration:e.duration,transitionTimingFunction:e.timingFunc,backgroundColor:e.bgColor,color:e.textColor}},[n("div",{staticClass:"uni-page-head-hd"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.backButton,expression:"backButton"}],staticClass:"uni-page-head-btn",on:{click:e._back}},[n("i",{staticClass:"uni-btn-icon",style:{color:e.color,fontSize:"27px"}},[e._v("")])]),n("div",{staticClass:"uni-page-head-ft"},[e._l(e.btns,(function(t,i){return["left"===t.float?n("div",{key:i,staticClass:"uni-page-head-btn",class:{"uni-page-head-btn-red-dot":t.redDot||t.badgeText,"uni-page-head-btn-select":t.select},style:{backgroundColor:"transparent"===e.type?t.background:"transparent",width:t.width},attrs:{"badge-text":t.badgeText}},[n("i",{staticClass:"uni-btn-icon",style:e._formatBtnStyle(t),domProps:{innerHTML:e._s(e._formatBtnFontText(t))},on:{click:function(t){return e._onBtnClick(i)}}})]):e._e()]}))],2)]),e.searchInput?e._e():n("div",{staticClass:"uni-page-head-bd"},[n("div",{staticClass:"uni-page-head__title",style:{fontSize:e.titleSize,opacity:"transparent"===e.type?0:1}},[e.loading?n("i",{staticClass:"uni-loading"}):e._e(),""!==e.titleImage?n("img",{staticClass:"uni-page-head__title_image",attrs:{src:e.titleImage}}):[e._v(" "+e._s(e.titleText)+" ")]],2)]),e.searchInput?n("div",{staticClass:"uni-page-head-search",style:{"border-radius":e.searchInput.borderRadius,"background-color":e.searchInput.backgroundColor}},[n("div",{staticClass:"uni-page-head-search-placeholder",class:["uni-page-head-search-placeholder-"+(e.focus||e.showPlaceholder?"left":e.searchInput.align)],style:{color:e.searchInput.placeholderColor},domProps:{textContent:e._s(e.showPlaceholder||e.composing?"":e.searchInput.placeholder)}}),n("v-uni-input",{ref:"input",staticClass:"uni-page-head-search-input",style:{color:e.searchInput.color},attrs:{focus:e.searchInput.autoFocus,disabled:e.searchInput.disabled,"placeholder-style":"color:"+e.searchInput.placeholderColor,"confirm-type":"search"},on:{focus:e._focus,blur:e._blur,"update:value":e._input},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}}),e.text?n("i",{staticClass:"uni-icon-clear",on:{click:e._clearInput}}):e._e()],1):e._e(),n("div",{staticClass:"uni-page-head-ft"},[e._l(e.btns,(function(t,i){return["left"!==t.float?n("div",{key:i,staticClass:"uni-page-head-btn",class:{"uni-page-head-btn-red-dot":t.redDot||t.badgeText,"uni-page-head-btn-select":t.select},style:{backgroundColor:"transparent"===e.type?t.background:"transparent",width:t.width},attrs:{"badge-text":t.badgeText}},[n("i",{staticClass:"uni-btn-icon",style:e._formatBtnStyle(t),domProps:{innerHTML:e._s(e._formatBtnFontText(t))},on:{click:function(t){return e._onBtnClick(i)}}})]):e._e()]}))],2)]),"transparent"!==e.type&&"float"!==e.type?n("div",{staticClass:"uni-placeholder",class:{"uni-placeholder-titlePenetrate":e.titlePenetrate}}):e._e()])},r=[],a=n("dd35"),o=a["a"],s=(n("8e16"),n("2877")),u=Object(s["a"])(o,i,r,!1,null,null,null);t["a"]=u.exports},"2d89":function(e,t,n){"use strict";var i=n("d29c"),r=n.n(i);r.a},"2da2":function(e,t,n){"use strict";n.r(t),n.d(t,"saveFile",(function(){return r})),n.d(t,"getFileInfo",(function(){return o})),n.d(t,"getSavedFileInfo",(function(){return s})),n.d(t,"removeSavedFile",(function(){return u}));var i=n("cb0f"),r={tempFilePath:{type:String,required:!0,validator:function(e,t){t.tempFilePath=Object(i["a"])(e)}}},a=["md5","sha1"],o={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=Object(i["a"])(e)}},digestAlgorithm:{type:String,validator:function(e,t){t.digestAlgorithm=a.includes(e)?e:a[0]},default:a[0]}},s={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=Object(i["a"])(e)}}},u={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=Object(i["a"])(e)}}}},"2eae":function(e,t,n){"use strict";n.r(t),n.d(t,"interceptors",(function(){return r}));var i=n("8542");n.d(t,"addInterceptor",(function(){return i["a"]})),n.d(t,"removeInterceptor",(function(){return i["d"]}));var r={promiseInterceptor:i["c"]}},"2ec6":function(e,t,n){"use strict";n.r(t),function(e){function i(t){var n=getCurrentPages();return n.length&&e.publishHandler("setPageMeta",t,n[n.length-1].$page.id),{}}n.d(t,"setPageMeta",(function(){return i}))}.call(this,n("0dd1"))},"2ef3":function(e,t,n){"use strict";(function(e,t,i){var r=n("8bbf"),a=n.n(r),o=n("442e");function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}var l=function(){function r(){s(this,r),this._init()}return c(r,[{key:"_init",value:function(){t.UniViewJSBridge={subscribe:e.subscribe,publishHandler:e.publishHandler,subscribeHandler:e.subscribeHandler},t.UniServiceJSBridge={subscribe:i.subscribe,publishHandler:i.publishHandler,subscribeHandler:i.subscribeHandler};var r=n("0138"),s=r.default,u=r.getApp,c=r.getCurrentPages,l=["chooseImage"];l.forEach((function(e){Object.defineProperty(s,e,{writable:!1,configurable:!1})})),t.uni=s,t.wx=t.uni,t.getApp=u,t.getCurrentPages=c,a.a.use(n("4ca9").default,{routes:__uniRoutes}),a.a.use(n("8c15").default,{routes:__uniRoutes}),Object(o["a"])(a.a),n("8f7e"),n("1efd")}}]),r}();t.UniApp=l,t.__uniConfig&&new l}).call(this,n("501c"),n("c8ba"),n("0dd1"))},"303f":function(e,t,n){"use strict";n.r(t),function(e,i){n.d(t,"CanvasContext",(function(){return j})),n.d(t,"createCanvasContext",(function(){return I})),n.d(t,"canvasGetImageData",(function(){return P})),n.d(t,"canvasPutImageData",(function(){return L})),n.d(t,"canvasToTempFilePath",(function(){return M}));var r=n("f2b3"),a=n("62b5"),o=n("db70"),s=n("a118"),u=n("8b67");function c(e){return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e){return p(e)||f(e)||h(e)||d()}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,t){if(e){if("string"===typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function f(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function p(e){if(Array.isArray(e))return m(e)}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function y(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}var b=Object(a["a"])("canvasEvent");function _(t,n,i,r){e.publishHandler(n+"-canvas-"+t,{canvasId:t,type:i,data:r},n)}e.subscribe("onCanvasMethodCallback",(function(e){var t=e.callbackId,n=e.data,i=b.pop(t);i&&i(n)}));var T={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#00000000"};function w(e){e=e||"#000000";var t=null;if(null!=(t=/^#([0-9|A-F|a-f]{6})$/.exec(e))){var n=parseInt(t[1].slice(0,2),16),a=parseInt(t[1].slice(2,4),16),o=parseInt(t[1].slice(4),16);return[n,a,o,255]}if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){var s=t[1].slice(0,1),u=t[1].slice(1,2),c=t[1].slice(2,3);return s=parseInt(s+s,16),u=parseInt(u+u,16),c=parseInt(c+c,16),[s,u,c,255]}if(null!=(t=/^rgb\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e){return Math.min(255,parseInt(e.trim()))})).concat(255);if(null!=(t=/^rgba\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e,t){return 3===t?Math.floor(255*parseFloat(e.trim())):Math.min(255,parseInt(e.trim()))}));var l=e.toLowerCase();if(Object(r["i"])(T,l)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(T[l]);var d=parseInt(t[1].slice(0,2),16),h=parseInt(t[1].slice(2,4),16),f=parseInt(t[1].slice(4,6),16),p=parseInt(t[1].slice(6,8),16);return p=p>=0?p:255,[d,h,f,p]}return i.error("unsupported color:"+e),[0,0,0,255]}function S(e,t){this.type="pattern",this.data=e,this.colorStop=t}var k=function(){function e(t,n){g(this,e),this.type=t,this.data=n,this.colorStop=[]}return y(e,[{key:"addColorStop",value:function(e,t){this.colorStop.push([e,w(t)])}}]),e}(),C=["scale","rotate","translate","setTransform","transform"],x=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],E=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];function A(e,t){var n=document.createElement("canvas"),i=n.getContext("2d");return i.font=t,i.measureText(e).width||0}function O(e){this.width=e}var j=function(){function e(t,n){g(this,e),this.id=t,this.pageId=n,this.actions=[],this.path=[],this.subpath=[],this.currentTransform=[],this.currentStepAnimates=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}return y(e,[{key:"draw",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,i=l(this.actions);this.actions=[],this.path=[],"function"===typeof n&&(e=b.push(n)),_(this.id,this.pageId,"actionsChanged",{actions:i,reserve:t,callbackId:e})}},{key:"createLinearGradient",value:function(e,t,n,i){return new k("linear",[e,t,n,i])}},{key:"createCircularGradient",value:function(e,t,n){return new k("radial",[e,t,n])}},{key:"createPattern",value:function(e,t){if(void 0===t)i.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(t)<0))return new S(e,t);i.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+t+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}},{key:"measureText",value:function(e){var t=this.state.font,n=0;return n=A(e,t),new O(n)}},{key:"save",value:function(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}},{key:"restore",value:function(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}},{key:"beginPath",value:function(){this.path=[],this.subpath=[]}},{key:"moveTo",value:function(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]}},{key:"lineTo",value:function(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])}},{key:"quadraticCurveTo",value:function(e,t,n,i){this.path.push({method:"quadraticCurveTo",data:[e,t,n,i]}),this.subpath.push([n,i])}},{key:"bezierCurveTo",value:function(e,t,n,i,r,a){this.path.push({method:"bezierCurveTo",data:[e,t,n,i,r,a]}),this.subpath.push([r,a])}},{key:"arc",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.path.push({method:"arc",data:[e,t,n,i,r,a]}),this.subpath.push([e,t])}},{key:"rect",value:function(e,t,n,i){this.path.push({method:"rect",data:[e,t,n,i]}),this.subpath=[[e,t]]}},{key:"arcTo",value:function(e,t,n,i,r){this.path.push({method:"arcTo",data:[e,t,n,i,r]}),this.subpath.push([n,i])}},{key:"clip",value:function(){this.actions.push({method:"clip",data:l(this.path)})}},{key:"closePath",value:function(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}},{key:"clearActions",value:function(){this.actions=[],this.path=[],this.subpath=[]}},{key:"getActions",value:function(){var e=l(this.actions);return this.clearActions(),e}},{key:"lineDashOffset",set:function(e){this.actions.push({method:"setLineDashOffset",data:[e]})}},{key:"globalCompositeOperation",set:function(e){this.actions.push({method:"setGlobalCompositeOperation",data:[e]})}},{key:"shadowBlur",set:function(e){this.actions.push({method:"setShadowBlur",data:[e]})}},{key:"shadowColor",set:function(e){this.actions.push({method:"setShadowColor",data:[e]})}},{key:"shadowOffsetX",set:function(e){this.actions.push({method:"setShadowOffsetX",data:[e]})}},{key:"shadowOffsetY",set:function(e){this.actions.push({method:"setShadowOffsetY",data:[e]})}},{key:"font",set:function(e){var t=this;this.state.font=e;var n=e.match(/^(([\w\-]+\s)*)(\d+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var r=n[1].trim().split(/\s/),a=parseFloat(n[3]),o=n[7],s=[];r.forEach((function(e,n){["italic","oblique","normal"].indexOf(e)>-1?(s.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal"].indexOf(e)>-1?(s.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===n?(s.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===n&&u()})),1===r.length&&u(),r=s.map((function(e){return e.data[0]})).join(" "),this.state.fontSize=a,this.state.fontFamily=o,this.actions.push({method:"setFont",data:["".concat(r," ").concat(a,"px ").concat(o)]})}else i.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function u(){s.push({method:"setFontWeight",data:["normal"]}),t.state.fontWeight="normal"}},get:function(){return this.state.font}},{key:"fillStyle",set:function(e){this.setFillStyle(e)}},{key:"strokeStyle",set:function(e){this.setStrokeStyle(e)}},{key:"globalAlpha",set:function(e){e=Math.floor(255*parseFloat(e)),this.actions.push({method:"setGlobalAlpha",data:[e]})}},{key:"textAlign",set:function(e){this.actions.push({method:"setTextAlign",data:[e]})}},{key:"lineCap",set:function(e){this.actions.push({method:"setLineCap",data:[e]})}},{key:"lineJoin",set:function(e){this.actions.push({method:"setLineJoin",data:[e]})}},{key:"lineWidth",set:function(e){this.actions.push({method:"setLineWidth",data:[e]})}},{key:"miterLimit",set:function(e){this.actions.push({method:"setMiterLimit",data:[e]})}},{key:"textBaseline",set:function(e){this.actions.push({method:"setTextBaseline",data:[e]})}}]),e}();function I(t,n){if(n)return new j(t,n.$page.id);var i=Object(o["a"])();if(i)return new j(t,i);e.emit("onError","createCanvasContext:fail")}function P(e,t){var n=e.canvasId,i=e.x,r=e.y,a=e.width,u=e.height,c=Object(o["a"])();if(c){var l=b.push((function(e){var n=e.data;n&&n.length&&(e.data=new Uint8ClampedArray(n)),Object(s["a"])(t,e)}));_(n,c,"getImageData",{x:i,y:r,width:a,height:u,callbackId:l})}else Object(s["a"])(t,{errMsg:"canvasGetImageData:fail"})}function L(e,t){var n=e.canvasId,i=e.data,r=e.x,a=e.y,u=e.width,c=e.height,l=Object(o["a"])();if(l){var d,h=b.push((function(e){Object(s["a"])(t,e)}));i=Array.prototype.slice.call(i),_(n,l,"putImageData",{data:i,x:r,y:a,width:u,height:c,compressed:d,callbackId:h})}else Object(s["a"])(t,{errMsg:"canvasPutImageData:fail"})}function M(e,t){var n=e.x,i=void 0===n?0:n,r=e.y,a=void 0===r?0:r,c=e.width,l=e.height,d=e.destWidth,h=e.destHeight,f=e.canvasId,p=e.fileType,m=e.quality,g=Object(o["a"])();if(g){var v=b.push((function(e){Object(s["a"])(t,e)})),y="".concat(u["TEMP_PATH"],"/canvas");_(f,g,"toTempFilePath",{x:i,y:a,width:c,height:l,destWidth:d,destHeight:h,fileType:p,quality:m,dirname:y,callbackId:v})}else Object(s["a"])(t,{errMsg:"canvasToTempFilePath:fail"})}[].concat(C,x).forEach((function(e){function t(e){switch(e){case"fill":case"stroke":return function(){this.actions.push({method:e+"Path",data:l(this.path)})};case"fillRect":return function(e,t,n,i){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,i]}]})};case"strokeRect":return function(e,t,n,i){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,i]}]})};case"fillText":case"strokeText":return function(t,n,i,r){var a=[t.toString(),n,i];"number"===typeof r&&a.push(r),this.actions.push({method:e,data:a})};case"drawImage":return function(t,n,i,r,a,o,s,u,c){var l;function d(e){return"number"===typeof e}void 0===c&&(o=n,s=i,u=r,c=a,n=void 0,i=void 0,r=void 0,a=void 0),l=d(n)&&d(i)&&d(r)&&d(a)?[t,o,s,u,c,n,i,r,a]:d(u)&&d(c)?[t,o,s,u,c]:[t,o,s],this.actions.push({method:e,data:l})};default:return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this.actions.push({method:e,data:n})}}}j.prototype[e]=t(e)})),E.forEach((function(e){function t(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!==c(t)?this.actions.push({method:e,data:["normal",w(t)]}):this.actions.push({method:e,data:[t.type,t.data,t.colorStop]})};case"setGlobalAlpha":return function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:e,data:[t]})};case"setShadow":return function(t,n,i,r){r=w(r),this.actions.push({method:e,data:[t,n,i,r]}),this.state.shadowBlur=i,this.state.shadowColor=r,this.state.shadowOffsetX=t,this.state.shadowOffsetY=n};case"setLineDash":return function(t,n){t=t||[0,0],n=n||0,this.actions.push({method:e,data:[t,n]}),this.state.lineDash=t};case"setFontSize":return function(t){this.state.font=this.state.font.replace(/\d+\.?\d*px/,t+"px"),this.state.fontSize=t,this.actions.push({method:e,data:[t]})};default:return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this.actions.push({method:e,data:n})}}}j.prototype[e]=t(e)}))}.call(this,n("0dd1"),n("3ad9")["default"])},"31c6":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var i,r=n("636c"),a=n("3b51"),o={},s="__map_callback__";function u(t,n){var u=Object(r["d"])();if(u.key){var c=o[u.type]=o[u.type]||[];if(i)n(i);else if(window[u.type]&&window[u.type].maps)i=window[u.type].maps,i.Callout=i.Callout||Object(a["a"])(i),n(i);else if(c.length)c.push(n);else{c.push(n);var l=window,d=s+u.type;l[d]=function(){delete l[d],i=window[u.type].maps,i.Callout=Object(a["a"])(i),c.forEach((function(e){return e(i)})),c.length=0};var h=document.createElement("script"),f=u.type===r["c"].GOOGLE?"https://maps.googleapis.com/maps/api/js?":"https://map.qq.com/api/js?v=2.exp&";u.type===r["c"].QQ&&t.push("geometry"),t.length&&(f+="libraries=".concat(t.join("%2C"),"&")),h.src="".concat(f,"key=").concat(u.key,"&callback=").concat(d),h.onerror=function(){e.error("Map load failed.")},document.body.appendChild(h)}}else e.error("Map key not configured.")}}).call(this,n("3ad9")["default"])},"31e2":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-video",e._g({attrs:{id:e.id}},e.$listeners),[n("div",{ref:"container",staticClass:"uni-video-container",on:{touchstart:e.touchstart,touchend:e.touchend,touchmove:e.touchmove,fullscreenchange:function(t){return t.stopPropagation(),e.onFullscreenChange(t)},webkitfullscreenchange:function(t){return t.stopPropagation(),e.onFullscreenChange(t,!0)}}},[n("video",e._b({ref:"video",staticClass:"uni-video-video",style:{objectFit:e.objectFit},attrs:{loop:e.loop,src:e.srcSync,poster:e.poster,autoplay:e.autoplay,"webkit-playsinline":"",playsinline:""},domProps:{muted:e.muted},on:{click:e.triggerControls,durationchange:e.onDurationChange,loadedmetadata:e.onLoadedMetadata,progress:e.onProgress,waiting:e.onWaiting,error:e.onVideoError,play:e.onPlay,pause:e.onPause,ended:e.onEnded,timeupdate:e.onTimeUpdate,webkitbeginfullscreen:function(t){return e.emitFullscreenChange(!0)},x5videoenterfullscreen:function(t){return e.emitFullscreenChange(!0)},webkitendfullscreen:function(t){return e.emitFullscreenChange(!1)},x5videoexitfullscreen:function(t){return e.emitFullscreenChange(!1)}}},"video",e.$attrs,!1)),n("div",{directives:[{name:"show",rawName:"v-show",value:e.controlsShow,expression:"controlsShow"}],staticClass:"uni-video-bar uni-video-bar-full",on:{click:function(e){e.stopPropagation()}}},[n("div",{staticClass:"uni-video-controls"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPlayBtn,expression:"showPlayBtn"}],staticClass:"uni-video-control-button",class:{"uni-video-control-button-play":!e.playing,"uni-video-control-button-pause":e.playing},on:{click:function(t){return t.stopPropagation(),e.trigger(t)}}}),n("div",{staticClass:"uni-video-current-time"},[e._v(" "+e._s(e._f("time")(e.currentTime))+" ")]),n("div",{ref:"progress",staticClass:"uni-video-progress-container",on:{click:function(t){return t.stopPropagation(),e.clickProgress(t)}}},[n("div",{staticClass:"uni-video-progress"},[n("div",{staticClass:"uni-video-progress-buffered",style:{width:e.buffered+"%"}}),n("div",{ref:"ball",staticClass:"uni-video-ball",style:{left:e.progress+"%"}},[n("div",{staticClass:"uni-video-inner"})])])]),n("div",{staticClass:"uni-video-duration"},[e._v(" "+e._s(e._f("time")(e.duration||e.durationTime))+" ")])]),e.danmuBtn?n("div",{staticClass:"uni-video-danmu-button",class:{"uni-video-danmu-button-active":e.enableDanmuSync},on:{click:function(t){return t.stopPropagation(),e.triggerDanmu(t)}}},[e._v(" "+e._s(e.$$t("uni.video.danmu"))+" ")]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showFullscreenBtn,expression:"showFullscreenBtn"}],staticClass:"uni-video-fullscreen",class:{"uni-video-type-fullscreen":e.fullscreen},on:{click:function(t){return t.stopPropagation(),e.triggerFullscreen(!e.fullscreen)}}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.start&&e.enableDanmuSync,expression:"start&&enableDanmuSync"}],ref:"danmu",staticClass:"uni-video-danmu",staticStyle:{"z-index":"0"}}),e.centerPlayBtnShow?n("div",{staticClass:"uni-video-cover",on:{click:function(e){e.stopPropagation()}}},[n("div",{staticClass:"uni-video-cover-play-button",on:{click:function(t){return t.stopPropagation(),e.play(t)}}}),n("p",{staticClass:"uni-video-cover-duration"},[e._v(" "+e._s(e._f("time")(e.duration||e.durationTime))+" ")])]):e._e(),n("div",{staticClass:"uni-video-toast",class:{"uni-video-toast-volume":"volume"===e.gestureType}},[n("div",{staticClass:"uni-video-toast-title"},[e._v(" "+e._s(e.$$t("uni.video.volume"))+" ")]),n("svg",{staticClass:"uni-video-toast-icon",attrs:{width:"200px",height:"200px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M475.400704 201.19552l0 621.674496q0 14.856192-10.856448 25.71264t-25.71264 10.856448-25.71264-10.856448l-190.273536-190.273536-149.704704 0q-14.856192 0-25.71264-10.856448t-10.856448-25.71264l0-219.414528q0-14.856192 10.856448-25.71264t25.71264-10.856448l149.704704 0 190.273536-190.273536q10.856448-10.856448 25.71264-10.856448t25.71264 10.856448 10.856448 25.71264zm219.414528 310.837248q0 43.425792-24.28416 80.851968t-64.2816 53.425152q-5.71392 2.85696-14.2848 2.85696-14.856192 0-25.71264-10.570752t-10.856448-25.998336q0-11.999232 6.856704-20.284416t16.570368-14.2848 19.427328-13.142016 16.570368-20.284416 6.856704-32.569344-6.856704-32.569344-16.570368-20.284416-19.427328-13.142016-16.570368-14.2848-6.856704-20.284416q0-15.427584 10.856448-25.998336t25.71264-10.570752q8.57088 0 14.2848 2.85696 39.99744 15.427584 64.2816 53.139456t24.28416 81.137664zm146.276352 0q0 87.422976-48.56832 161.41824t-128.5632 107.707392q-7.428096 2.85696-14.2848 2.85696-15.427584 0-26.284032-10.856448t-10.856448-25.71264q0-22.284288 22.284288-33.712128 31.997952-16.570368 43.425792-25.141248 42.283008-30.855168 65.995776-77.423616t23.712768-99.136512-23.712768-99.136512-65.995776-77.423616q-11.42784-8.57088-43.425792-25.141248-22.284288-11.42784-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 79.99488 33.712128 128.5632 107.707392t48.56832 161.41824zm146.276352 0q0 131.42016-72.566784 241.41312t-193.130496 161.989632q-7.428096 2.85696-14.856192 2.85696-14.856192 0-25.71264-10.856448t-10.856448-25.71264q0-20.570112 22.284288-33.712128 3.999744-2.285568 12.85632-5.999616t12.85632-5.999616q26.284032-14.2848 46.854144-29.140992 70.281216-51.996672 109.707264-129.705984t39.426048-165.132288-39.426048-165.132288-109.707264-129.705984q-20.570112-14.856192-46.854144-29.140992-3.999744-2.285568-12.85632-5.999616t-12.85632-5.999616q-22.284288-13.142016-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 120.563712 51.996672 193.130496 161.989632t72.566784 241.41312z"}})]),n("div",{staticClass:"uni-video-toast-value"},[n("div",{staticClass:"uni-video-toast-value-content",style:{width:100*e.volumeNew+"%"}},[n("div",{staticClass:"uni-video-toast-volume-grids"},e._l(10,(function(e,t){return n("div",{key:t,staticClass:"uni-video-toast-volume-grids-item"})})),0)])])]),n("div",{staticClass:"uni-video-toast",class:{"uni-video-toast-progress":"progress"==e.gestureType}},[n("div",{staticClass:"uni-video-toast-title"},[e._v(" "+e._s(e._f("time")(e.currentTimeNew))+" / "+e._s(e._f("time")(e.durationTime))+" ")])]),n("div",{staticClass:"uni-video-slots"},[e._t("default")],2)])])},r=[],a=n("8af1"),o=n("f2b3"),s=n("a6b0"),u=!!o["q"]&&{passive:!1},c={NONE:"none",STOP:"stop",VOLUME:"volume",PROGRESS:"progress"},l={name:"Video",filters:{time:function(e){e=e>0&&e<1/0?e:0;var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);t=(t<10?"0":"")+t,n=(n<10?"0":"")+n,i=(i<10?"0":"")+i;var r=n+":"+i;return"00"!==t&&(r=t+":"+r),r}},mixins:[s["c"],a["g"],a["d"]],props:{id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:function(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0}},data:function(){return{start:!1,playing:!1,currentTime:0,durationTime:0,progress:0,touching:!1,enableDanmuSync:Boolean(this.enableDanmu),controlsVisible:!0,fullscreen:!1,controlsTouching:!1,touchStartOrigin:{x:0,y:0},gestureType:c.NONE,currentTimeOld:0,currentTimeNew:0,volumeOld:null,volumeNew:null,buffered:0,isSafari:/^Apple/.test(navigator.vendor)}},computed:{centerPlayBtnShow:function(){return this.showCenterPlayBtn&&!this.start},controlsShow:function(){return!this.centerPlayBtnShow&&this.controls&&this.controlsVisible},autoHideContorls:function(){return this.controlsShow&&this.playing&&!this.controlsTouching},srcSync:function(){return this.$getRealPath(this.src)}},watch:{enableDanmuSync:function(e){this.$emit("update:enableDanmu",e)},autoHideContorls:function(e){e?this.autoHideStart():this.autoHideEnd()},srcSync:function(e){this.playing=!1,this.currentTime=0},currentTime:function(){this.updateProgress()},duration:function(){this.updateProgress()},buffered:function(e){0!==e&&this.$trigger("progress",{},{buffered:e})}},created:function(){this.otherData={danmuList:[],danmuIndex:{time:0,index:-1},hideTiming:null};var e=this.otherData.danmuList=JSON.parse(JSON.stringify(this.danmuList||[]));e.sort((function(e,t){return(e.time||0)-(t.time||0)}))},mounted:function(){var e,t,n,i=this,r=this,a=!0,o=this.$refs.ball;function s(i){var o=i.targetTouches[0],s=o.pageX,u=o.pageY;if(a&&Math.abs(s-e)<Math.abs(u-t))c();else{a=!1;var l=r.$refs.progress.offsetWidth,d=n+(s-e)/l*100;d<0?d=0:d>100&&(d=100),r.progress=d,i.preventDefault(),i.stopPropagation()}}function c(e){r.controlsTouching=!1,r.touching&&(o.removeEventListener("touchmove",s,u),a||(e.preventDefault(),e.stopPropagation(),r.seek(r.$refs.video.duration*r.progress/100)),r.touching=!1)}o.addEventListener("touchstart",(function(r){i.controlsTouching=!0;var c=r.targetTouches[0];e=c.pageX,t=c.pageY,n=i.progress,a=!0,i.touching=!0,o.addEventListener("touchmove",s,u)})),o.addEventListener("touchend",c),o.addEventListener("touchcancel",c)},beforeDestroy:function(){this.triggerFullscreen(!1),clearTimeout(this.otherData.hideTiming)},methods:{_handleSubscribe:function(e){var t,n=e.type,i=e.data,r=void 0===i?{}:i,a=["play","pause","seek","sendDanmu","playbackRate","requestFullScreen","exitFullScreen"];switch(n){case"seek":t=r.position;break;case"sendDanmu":t=r;break;case"playbackRate":t=r.rate;break}a.indexOf(n)>=0&&this[n](t)},trigger:function(){this.playing?this.$refs.video.pause():this.$refs.video.play()},play:function(){this.start=!0,this.$refs.video.play()},pause:function(){this.$refs.video.pause()},seek:function(e){e=Number(e),"number"!==typeof e||isNaN(e)||(this.$refs.video.currentTime=e)},clickProgress:function(e){var t=this.$refs.progress,n=e.target,i=e.offsetX;while(n!==t)i+=n.offsetLeft,n=n.parentNode;var r=t.offsetWidth,a=0;i>=0&&i<=r&&(a=i/r,this.seek(this.$refs.video.duration*a))},triggerDanmu:function(){this.enableDanmuSync=!this.enableDanmuSync},playDanmu:function(e){var t=document.createElement("p");t.className="uni-video-danmu-item",t.innerText=e.text;var n="bottom: ".concat(100*Math.random(),"%;color: ").concat(e.color,";");t.setAttribute("style",n),this.$refs.danmu.appendChild(t),setTimeout((function(){n+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",t.setAttribute("style",n),setTimeout((function(){t.remove()}),4e3)}),17)},sendDanmu:function(e){var t=this.otherData;t.danmuList.splice(t.danmuIndex.index+1,0,{text:String(e.text),color:e.color,time:this.$refs.video.currentTime||0})},playbackRate:function(e){this.$refs.video.playbackRate=e},triggerFullscreen:function(e){var t,n=this.$refs.container,i=this.$refs.video;e?!document.fullscreenEnabled&&!document.webkitFullscreenEnabled||this.isSafari&&!this.userInteract?i.webkitEnterFullScreen?i.webkitEnterFullScreen():(t=!0,n.remove(),n.classList.add("uni-video-type-fullscreen"),document.body.appendChild(n)):n[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():i.webkitExitFullScreen?i.webkitExitFullScreen():(t=!0,n.remove(),n.classList.remove("uni-video-type-fullscreen"),this.$el.appendChild(n)),t&&this.emitFullscreenChange(e)},onFullscreenChange:function(e,t){t&&document.fullscreenEnabled||this.emitFullscreenChange(!(!document.fullscreenElement&&!document.webkitFullscreenElement))},emitFullscreenChange:function(e){this.fullscreen=e,this.$trigger("fullscreenchange",{},{fullScreen:e,direction:"vertical"})},requestFullScreen:function(){this.triggerFullscreen(!0)},exitFullScreen:function(){this.triggerFullscreen(!1)},onDurationChange:function(e){var t=e.target;this.durationTime=t.duration},onLoadedMetadata:function(e){var t=Number(this.initialTime)||0,n=e.target;t>0&&(n.currentTime=t),this.$trigger("loadedmetadata",e,{width:n.videoWidth,height:n.videoHeight,duration:n.duration}),this.onProgress(e)},onProgress:function(e){var t=e.target,n=t.buffered;n.length&&(this.buffered=n.end(n.length-1)/t.duration*100)},onWaiting:function(e){this.$trigger("waiting",e,{})},onVideoError:function(e){this.playing=!1,this.$trigger("error",e,{})},onPlay:function(e){this.start=!0,this.playing=!0,this.$trigger("play",e,{})},onPause:function(e){this.playing=!1,this.$trigger("pause",e,{})},onEnded:function(e){this.playing=!1,this.$trigger("ended",e,{})},onTimeUpdate:function(e){var t=e.target,n=this.otherData,i=this.currentTime=t.currentTime,r=n.danmuIndex,a={time:i,index:r.index},o=n.danmuList;if(i>r.time)for(var s=r.index+1;s<o.length;s++){var u=o[s];if(!(i>=(u.time||0)))break;a.index=s,this.playing&&this.enableDanmuSync&&this.playDanmu(u)}else if(i<r.time)for(var c=r.index-1;c>-1;c--){var l=o[c];if(!(i<=(l.time||0)))break;a.index=c-1}n.danmuIndex=a,this.$trigger("timeupdate",e,{currentTime:i,duration:t.duration})},triggerControls:function(){this.controlsVisible=!this.controlsVisible},touchstart:function(e){var t=e.targetTouches[0];this.touchStartOrigin={x:t.pageX,y:t.pageY},this.gestureType=c.NONE,this.volumeOld=null,this.currentTimeOld=this.currentTimeNew=0},touchmove:function(e){function t(){e.stopPropagation(),e.preventDefault()}this.fullscreen&&t();var n=this.gestureType;if(n!==c.STOP){var i=e.targetTouches[0],r=i.pageX,a=i.pageY,o=this.touchStartOrigin;if(n===c.PROGRESS?this.changeProgress(r-o.x):n===c.VOLUME&&this.changeVolume(a-o.y),n===c.NONE)if(Math.abs(r-o.x)>Math.abs(a-o.y)){if(!this.enableProgressGesture)return void(this.gestureType=c.STOP);this.gestureType=c.PROGRESS,this.currentTimeOld=this.currentTimeNew=this.$refs.video.currentTime,this.fullscreen||t()}else{if(!this.pageGesture)return void(this.gestureType=c.STOP);this.gestureType=c.VOLUME,this.volumeOld=this.$refs.video.volume,this.fullscreen||t()}}},touchend:function(e){this.gestureType!==c.NONE&&this.gestureType!==c.STOP&&(e.stopPropagation(),e.preventDefault()),this.gestureType===c.PROGRESS&&this.currentTimeOld!==this.currentTimeNew&&(this.$refs.video.currentTime=this.currentTimeNew),this.gestureType=c.NONE},changeProgress:function(e){var t=this.$refs.video.duration,n=e/600*t+this.currentTimeOld;n<0?n=0:n>t&&(n=t),this.currentTimeNew=n},changeVolume:function(e){var t,n=this.volumeOld;"number"===typeof n&&(t=n-e/200,t<0?t=0:t>1&&(t=1),this.$refs.video.volume=t,this.volumeNew=t)},autoHideStart:function(){var e=this;this.otherData.hideTiming=setTimeout((function(){e.controlsVisible=!1}),3e3)},autoHideEnd:function(){var e=this.otherData;e.hideTiming&&(clearTimeout(e.hideTiming),e.hideTiming=null)},updateProgress:function(){this.touching||(this.progress=this.currentTime/this.durationTime*100)}}},d=l,h=(n("856e"),n("2877")),f=Object(h["a"])(d,i,r,!1,null,null,null);t["default"]=f.exports},"324c":function(e,t,n){},"332a":function(e,t,n){"use strict";n.r(t),n.d(t,"redirectTo",(function(){return c})),n.d(t,"reLaunch",(function(){return l})),n.d(t,"navigateTo",(function(){return d})),n.d(t,"switchTab",(function(){return h})),n.d(t,"navigateBack",(function(){return f})),n.d(t,"preloadPage",(function(){return p})),n.d(t,"unPreloadPage",(function(){return m}));var i,r=n("0f74");function a(e){if("string"!==typeof e)return e;var t=e.indexOf("?");if(-1===t)return e;var n=e.substr(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.substr(0,t);var i=[];return n.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),n=t.shift(),r=t.length>0?t.join("="):"";i.push(n+"="+encodeURIComponent(r))})),i.length?e+"?"+i.join("&"):e}function o(e){return function(t,n){t=Object(r["a"])(t);var o=t.split("?")[0],s=__uniRoutes.find((function(e){var t=e.path,n=e.alias;return t===o||n===o}));if(!s)return"page `"+t+"` is not found";if("navigateTo"===e||"redirectTo"===e){if(s.meta.isTabBar)return"can not ".concat(e," a tabbar page")}else if("switchTab"===e&&!s.meta.isTabBar)return"can not switch to no-tabBar page";if("switchTab"!==e&&"preloadPage"!==e||!s.meta.isTabBar||"appLaunch"===n.openType||(t=o),s.meta.isEntry&&(t=t.replace(s.alias,"/")),n.url=a(t),"unPreloadPage"!==e)if("preloadPage"!==e){if(i===t&&"appLaunch"!==n.openType)return"".concat(i," locked");__uniConfig.ready&&!1!==__uniConfig.enableNavigatorLock&&(i=t)}else if(s.meta.isTabBar){var u=getCurrentPages(!0),c=(s.alias||s.path).substr(1);if(u.find((function(e){return e.route===c})))return"tabBar page `"+c+"` already exists"}}}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({url:{type:String,required:!0,validator:o(e)},beforeAll:function(){i=""}},t)}function u(e){return{animationType:{type:String,validator:function(t){if(t&&-1===e.indexOf(t))return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}var c=s("redirectTo"),l=s("reLaunch"),d=s("navigateTo",u(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"])),h=s("switchTab"),f=Object.assign({delta:{type:Number,validator:function(e,t){e=parseInt(e)||1,t.delta=Math.min(getCurrentPages().length-1,e)}}},u(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"])),p={url:{type:String,required:!0,validator:o("preloadPage")}},m={url:{type:String,required:!0,validator:o("unPreloadPage")}}},"33b4":function(e,t,n){},"33ed":function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return u}));var i,r=n("4a59");function a(e){e.preventDefault()}function o(e){var t=e.scrollTop,n=e.duration,i=document.documentElement,r=i.clientHeight,a=i.scrollHeight;function o(e){if(e<=0)window.scrollTo(0,t);else{var n=t-window.scrollY;requestAnimationFrame((function(){window.scrollTo(0,window.scrollY+n/e*10),o(e-10)}))}}t=Math.min(t,a-r),0!==n?window.scrollY!==t&&o(n):i.scrollTop=document.body.scrollTop=t}var s=0;function u(t,n){var a=n.enablePageScroll,o=n.enablePageReachBottom,u=n.onReachBottomDistance,c=n.enableTransparentTitleNView,l=!1,d=!1,h=!0;function f(){var e=document.documentElement.scrollHeight,t=window.innerHeight,n=window.scrollY,i=n>0&&e>t&&n+t+u>=e,r=Math.abs(e-s)>u;return!i||d&&!r?(!i&&d&&(d=!1),!1):(s=e,d=!0,!0)}function p(){var n=getCurrentPages();if(n.length&&n[n.length-1].$page.id===t){var s=window.pageYOffset;a&&Object(r["a"])("onPageScroll",{scrollTop:s},t),c&&e.emit("onPageScroll",{scrollTop:s}),o&&h&&(u()||(i=setTimeout(u,300))),l=!1}function u(){if(f())return Object(r["a"])("onReachBottom",{},t),h=!1,setTimeout((function(){h=!0}),350),!0}}return function(){clearTimeout(i),l||requestAnimationFrame(p),l=!0}}}).call(this,n("501c"))},"34b2":function(e,t,n){"use strict";n.r(t),function(e){function i(){return window.location.protocol+"//"+window.location.host}function r(t,n){var r=t.src,a=e,o=a.invokeCallbackHandler,s=new Image,u=r;s.onload=function(){o(n,{errMsg:"getImageInfo:ok",width:s.naturalWidth,height:s.naturalHeight,path:0===u.indexOf("/")?i()+u:u})},s.onerror=function(e){o(n,{errMsg:"getImageInfo:fail"})},s.src=r}n.d(t,"getImageInfo",(function(){return r}))}.call(this,n("0dd1"))},3563:function(e,t,n){"use strict";n.r(t);var i=n("f2b3"),r=n("bd97"),a=n("8af1");a["d"].addInteractListener();var o="*";function s(){var e=window.navigator.userAgent.toLowerCase();return!(!e.match(/MicroMessenger/i)||"micromessenger"!==e.match(/MicroMessenger/i)[0])}t["default"]=function(e){var t=e.count,n=e.sourceType,a=e.type,u=e.extension,c=document.createElement("input");return c.type="file",Object(i["u"])(c,{position:"absolute",visibility:"hidden","z-index":-999,width:0,height:0,top:0,left:0}),c.accept=u.map((function(e){if(a!==o){var t=e.replace(".","");return"".concat(a,"/").concat(r["default"][a][t]||t)}return s()?".":0===e.indexOf(".")?e:".".concat(e)})).join(","),t>1&&(c.multiple="multiple"),1===n.length&&"camera"===n[0]&&(c.capture="camera"),c}},3590:function(e,t,n){},3648:function(e,t,n){"use strict";n.r(t),n.d(t,"canIUse",(function(){return o}));var i=n("f2b3");function r(e){return window.CSS&&CSS.supports&&(CSS.supports(e)||CSS.supports.apply(CSS,e.split(":")))}var a={"css.var":r("--a:0"),"css.env":r("top:env(a)"),"css.constant":r("top:constant(a)")};function o(e){return!Object(i["i"])(a,e)||a[e]}},3676:function(e,t,n){"use strict";n.r(t),n.d(t,"getRecorderManager",(function(){return l}));var i=n("db70");function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}var s,u={pause:null,resume:null,start:null,stop:null,error:null},c=function(){function e(){r(this,e),Object(i["d"])("onRecorderStateChange",(function(e){var t=e.state;delete e.state,delete e.errMsg,"function"===typeof u[t]&&u[t](e)}))}return o(e,[{key:"onError",value:function(e){u.error=e}},{key:"onFrameRecorded",value:function(e){}},{key:"onInterruptionBegin",value:function(e){}},{key:"onInterruptionEnd",value:function(e){}},{key:"onPause",value:function(e){u.pause=e}},{key:"onResume",value:function(e){u.resume=e}},{key:"onStart",value:function(e){u.start=e}},{key:"onStop",value:function(e){u.stop=e}},{key:"pause",value:function(){Object(i["c"])("operateRecorder",{operationType:"pause"})}},{key:"resume",value:function(){Object(i["c"])("operateRecorder",{operationType:"resume"})}},{key:"start",value:function(e){Object(i["c"])("operateRecorder",Object.assign({},e,{operationType:"start"}))}},{key:"stop",value:function(){Object(i["c"])("operateRecorder",{operationType:"stop"})}}]),e}();function l(){return s||(s=new c)}},3898:function(e,t,n){"use strict";n.r(t),function(e,i){n.d(t,"chooseFile",(function(){return d}));var r=n("e2e2"),a=n("a6b0"),o=n("3563"),s=n("8af1"),u=e,c=u.invokeCallbackHandler,l=null;function d(e,t){var n=e.count,u=e.sourceType,d=e.type,h=e.extension;l&&(document.body.removeChild(l),l=null),l=Object(o["default"])({count:n,sourceType:u,type:d,extension:h}),document.body.appendChild(l),l.addEventListener("change",(function(e){for(var i=[],a=e.target.files.length,o=function(t){var a=e.target.files[t],o=void 0;Object.defineProperty(a,"path",{get:function(){return o=o||Object(r["b"])(a),o}}),t<n&&i.push(a)},s=0;s<a;s++)o(s);var u={errMsg:"chooseFile:ok",get tempFilePaths(){return i.map((function(e){var t=e.path;return t}))},tempFiles:i};c(t,u)})),l.click(),s["d"].getStatus()||i.warn("".concat(Object(a["g"])("uni.chooseFile.notUserActivation")))}}.call(this,n("0dd1"),n("3ad9")["default"])},"39aa":function(e){e.exports=JSON.parse('{"uni.app.quit":"Press back button again to exit","uni.async.error":"The connection timed out, click the screen to try again.","uni.showActionSheet.cancel":"Cancel","uni.showToast.unpaired":"Please note showToast must be paired with hideToast","uni.showLoading.unpaired":"Please note showLoading must be paired with hideLoading","uni.showModal.cancel":"Cancel","uni.showModal.confirm":"OK","uni.chooseImage.cancel":"Cancel","uni.chooseImage.sourceType.album":"Album","uni.chooseImage.sourceType.camera":"Camera","uni.chooseVideo.cancel":"Cancel","uni.chooseVideo.sourceType.album":"Album","uni.chooseVideo.sourceType.camera":"Camera","uni.chooseFile.notUserActivation":"File chooser dialog can only be shown with a user activation","uni.previewImage.cancel":"Cancel","uni.previewImage.button.save":"Save Image","uni.previewImage.save.success":"Saved successfully","uni.previewImage.save.fail":"Save failed","uni.setClipboardData.success":"Content copied","uni.scanCode.title":"Scan code","uni.scanCode.album":"Album","uni.scanCode.fail":"Recognition failure","uni.scanCode.flash.on":"Tap to turn light on","uni.scanCode.flash.off":"Tap to turn light off","uni.startSoterAuthentication.authContent":"Fingerprint recognition","uni.picker.done":"Done","uni.picker.cancel":"Cancel","uni.video.danmu":"Danmu","uni.video.volume":"Volume","uni.button.feedback.title":"feedback","uni.button.feedback.send":"send","uni.chooseLocation.search":"Find Place","uni.chooseLocation.cancel":"Cancel"}')},"3ad9":function(e,t,n){"use strict";n.r(t),function(e){var n=Array.prototype.unshift;function i(e){return n.call(e,"[system]"),e}function r(t){return function(){var n=!0;"debug"!==t||__uniConfig.debug||(n=!1),n&&e.console[t].apply(e.console,i(arguments))}}t["default"]={log:r("log"),info:r("info"),warn:r("warn"),debug:r("debug"),error:r("error")}}.call(this,n("c8ba"))},"3b51":function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){var t=new(e.OverlayView||e.Overlay);function n(){var e=this.div,t=this.getPanes();t.floatPane.appendChild(e)}function r(){var e=this.div.parentNode;e&&e.removeChild(this.div)}var s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),o(this,"option",void 0),o(this,"position",void 0),o(this,"index",void 0),o(this,"visible",void 0),o(this,"alwaysVisible",void 0),o(this,"div",void 0),o(this,"triangle",void 0),o(this,"onAdd",n),o(this,"construct",n),o(this,"onRemove",r),o(this,"destroy",r),this.option=t||{};var a=t.map;this.position=t.position,this.index=1;var s=this.visible=this.alwaysVisible="ALWAYS"===t.display,u=this.div=document.createElement("div"),c=u.style;c.position="absolute",c.whiteSpace="nowrap",c.transform="translateX(-50%) translateY(-100%)",c.zIndex="1",c.boxShadow=t.boxShadow||"none",c.display=s?"block":"none";var l=this.triangle=document.createElement("div");l.setAttribute("style","position: absolute;white-space: nowrap;border-width: 4px;border-style: solid;border-color: #fff transparent transparent;border-image: initial;font-size: 12px;padding: 0px;background-color: transparent;width: 0px;height: 0px;transform: translate(-50%, 100%);left: 50%;bottom: 0;"),this.setStyle(t),u.appendChild(l),a&&this.setMap(a)}return a(e,[{key:"onclick",set:function(e){this.div.onclick=e},get:function(){return this.div.onclick}}]),a(e,[{key:"setOption",value:function(e){this.option=e,this.setPosition(e.position),"ALWAYS"===e.display?this.alwaysVisible=this.visible=!0:this.alwaysVisible=!1,this.setStyle(e)}},{key:"setStyle",value:function(e){var t=this.div,n=t.style;t.innerText=e.content||"",n.lineHeight=(e.fontSize||14)+"px",n.fontSize=(e.fontSize||14)+"px",n.padding=(e.padding||8)+"px",n.color=e.color||"#000",n.borderRadius=(e.borderRadius||0)+"px",n.backgroundColor=e.bgColor||"#fff",n.marginTop="-"+((e.top||0)+5)+"px",this.triangle.style.borderColor="".concat(e.bgColor||"#fff"," transparent transparent")}},{key:"setPosition",value:function(e){this.position=e,this.draw()}},{key:"draw",value:function(){var e=this.getProjection();if(this.position&&this.div&&e){var t=e.fromLatLngToDivPixel(this.position),n=this.div.style;n.left=t.x+"px",n.top=t.y+"px"}}},{key:"changed",value:function(){var e=this.div.style;e.display=this.visible?"block":"none"}}]),e}(),u=s.prototype;for(var c in t)c in u||(u[c]=t[c]);return s}n.d(t,"a",(function(){return s}))},"3b54":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"getFileInfo",(function(){return o}));var i=n("e2e2"),r=e,a=r.invokeCallbackHandler;function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filePath,n=arguments.length>1?arguments[1]:void 0;Object(i["f"])(t).then((function(e){a(n,{errMsg:"getFileInfo:ok",size:e.size})})).catch((function(e){a(n,{errMsg:"getFileInfo:fail "+e.message})}))}}.call(this,n("0dd1"))},"3b67":function(e,t,n){"use strict";var i=Object.create(null),r=n("e3a7");r.keys().forEach((function(e){Object.assign(i,r(e))})),t["a"]=i},"3bfb":function(e,t,n){"use strict";n.r(t),n.d(t,"createAudioContext",(function(){return r})),n.d(t,"createVideoContext",(function(){return a})),n.d(t,"createMapContext",(function(){return o})),n.d(t,"createCanvasContext",(function(){return s}));var i=[{name:"id",type:String,required:!0}],r=i,a=i,o=i,s=[{name:"canvasId",type:String,required:!0},{name:"componentInstance",type:Object}]},"3c79":function(e,t,n){},"3d1f":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("62b5"),r=n("a741");function a(e,t){t.getApp;var n=t.getCurrentPages;function a(e){return function(t,i){i=parseInt(i);var a=n(),o=a.find((function(e){return e.$page.id===i}));o&&Object(r["b"])(o,e,t)}}var o=Object(i["a"])("requestComponentInfo");function s(e){var t=e.reqId,n=e.res,i=o.pop(t);i&&i(n)}var u=Object(i["a"])("requestComponentObserver");function c(e){var t=e.reqId,n=e.reqEnd,i=e.res,r=u.get(t);if(r){if(n)return void u.pop(t);r(i)}}var l=Object(i["a"])("requestMediaQueryObserver");function d(e){var t=e.reqId,n=e.reqEnd,i=e.res,r=l.get(t);if(r){if(n)return void l.pop(t);r(i)}}e("onPageReady",a("onReady")),e("onPageScroll",a("onPageScroll")),e("onReachBottom",a("onReachBottom")),e("onRequestComponentInfo",s),e("onRequestComponentObserver",c),e("onRequestMediaQueryObserver",d)}},"3d64":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"onNetworkStatusChange",(function(){return s})),n.d(t,"offNetworkStatusChange",(function(){return u})),n.d(t,"getNetworkType",(function(){return c}));var i=e,r=i.invokeCallbackHandler,a=[];function o(){var e=c(),t=e.networkType;a.forEach((function(e){r(e,{errMsg:"onNetworkStatusChange:ok",isConnected:"none"!==t,networkType:t})}))}function s(e){var t=navigator.connection||navigator.webkitConnection;a.push(e),t?t.addEventListener("change",o):(window.addEventListener("offline",o),window.addEventListener("online",o))}function u(e){if(e){var t=a.indexOf(e);t>=0&&a.splice(t,1)}if(!a.length){var n=navigator.connection||navigator.webkitConnection;n?n.removeEventListener("change",o):(window.removeEventListener("offline",o),window.removeEventListener("online",o))}}function c(){var e=navigator.connection||navigator.webkitConnection,t="unknown";return e?(t=e.type,"cellular"===t&&e.effectiveType?t=e.effectiveType.replace("slow-",""):["none","wifi"].includes(t)||(t="unknown")):!1===navigator.onLine&&(t="none"),{errMsg:"getNetworkType:ok",networkType:t}}}.call(this,n("0dd1"))},"3da9":function(e,t,n){"use strict";var i=n("bfbd"),r=n.n(i);r.a},"3e8c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-resize-sensor",{on:{"~animationstart":function(t){return e.update(t)}}},[n("div",{on:{scroll:e.update}},[n("div")]),n("div",{on:{scroll:e.update}},[n("div")])])},r=[],a=1e5,o={name:"ResizeSensor",props:{initial:{type:[Boolean,String],default:!1}},data:function(){return{size:{width:-1,height:-1}}},watch:{size:{deep:!0,handler:function(e){this.$emit("resize",Object.assign({},e))}}},mounted:function(){!0===this.initial&&this.$nextTick(this.update),this.$el.offsetParent!==this.$el.parentNode&&(this.$el.parentNode.style.position="relative"),"AnimationEvent"in window||this.reset()},activated:function(){this.reset()},methods:{reset:function(){var e=this.$el.firstChild;e.scrollLeft=a,e.scrollTop=a;var t=this.$el.lastChild;t.scrollLeft=a,t.scrollTop=a},update:function(){this.size.width=this.$el.offsetWidth,this.size.height=this.$el.offsetHeight,this.reset()}}},s=o,u=(n("64d0"),n("2877")),c=Object(u["a"])(s,i,r,!1,null,null,null);t["default"]=c.exports},"3f15":function(e,t,n){"use strict";n.r(t),n.d(t,"getVideoInfo",(function(){return r}));var i=n("cb0f"),r={src:{type:String,required:!0,validator:function(e,t){t.src=Object(i["a"])(e)}}}},"3f7e":function(e,t,n){"use strict";var i=n("e692"),r=n.n(i);r.a},"439a":function(e,t,n){"use strict";n.r(t),n.d(t,"downloadFile",(function(){return i}));var i={url:{type:String,required:!0},header:{type:Object,validator:function(e,t){t.header=e||{}}}}},"43a1":function(e,t,n){},"442e":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var i=n("5129"),r=n.n(i),a=n("85b6"),o=n("f2b3");function s(t){t.config.errorHandler=function(n,i,r){var s=Object(o["s"])(n);t.util.warn("Error in ".concat(r,': "').concat("Error"===s?n.toString():n,'"'),i);var u="function"===typeof getApp&&getApp();u&&Object(a["c"])(u.$options,"onError")?u.__call_hook("onError",n):e.error(n)};var n=t.config.isReservedTag;t.config.isReservedTag=function(e){return-1!==r.a.indexOf(e)||n(e)},t.config.ignoredElements=r.a;var i=t.config.getTagNamespace,s=["switch","image","text","view"];t.config.getTagNamespace=function(e){return!~s.indexOf(e)&&i(e)}}}).call(this,n("3ad9")["default"])},"44de":function(e,t,n){"use strict";n.r(t),n.d(t,"vibrateLong",(function(){return r})),n.d(t,"vibrateShort",(function(){return a}));var i=!!window.navigator.vibrate;function r(){return i&&window.navigator.vibrate(400)?{errMsg:"vibrateLong:ok"}:{errMsg:"vibrateLong:fail"}}function a(){return i&&window.navigator.vibrate(15)?{errMsg:"vibrateShort:ok"}:{errMsg:"vibrateShort:fail"}}},"453f":function(e,t,n){"use strict";(function(e){var i=n("cb0f");t["a"]={props:{id:{type:[Number,String],default:""},latitude:{type:[Number,String],require:!0},longitude:{type:[Number,String],require:!0},title:{type:String,default:""},iconPath:{type:String,require:!0},rotate:{type:[Number,String],default:0},alpha:{type:[Number,String],default:1},width:{type:[Number,String],default:""},height:{type:[Number,String],default:""},callout:{type:Object,default:null},label:{type:Object,default:null},anchor:{type:Object,default:null},clusterId:{type:[Number,String],default:""},customCallout:{type:Object,default:null},ariaLabel:{type:String,default:""}},mounted:function(){var e=this,t=this.$parent;t.mapReady((function(){e._maps=t._maps,e._map=t._map,e.addMarker(e.$props),Object.keys(e.$props).forEach((function(t){e.$watch(t,(function(){e.updateMarker(e.$props)}))}))}))},beforeDestroy:function(){this.removeMarker()},methods:{addMarker:function(e){var t=this,n=this._maps,i=this._map,r=this._marker=new n.Marker({map:i,flat:!0,autoRotation:!1});this.$parent._markers[this.id]=r,this.updateMarker(e),n.event.addListener(r,"click",(function(){var e=r.callout;if(e){var n=e.div,i=n.parentNode;e.alwaysVisible||e.set("visible",!e.visible),e.visible&&(i.removeChild(n),i.appendChild(n))}t.id&&t.$parent.$trigger("markertap",{},{markerId:t.id})}))},updateMarker:function(t){var n=this,r=this._map,a=this._maps,o=this._marker,s=t.title,u=new a.LatLng(t.latitude,t.longitude),c=new Image;c.onload=function(){var e,i,l,d=t.anchor||{},h="number"===typeof d.x?d.x:.5,f="number"===typeof d.y?d.y:1;t.iconPath&&(t.width||t.height)?(i=t.width||c.width/c.height*t.height,l=t.height||c.height/c.width*t.width):(i=c.width/2,l=c.height/2);var p=l-(l-f*l);e="MarkerImage"in a?new a.MarkerImage(c.src,null,null,new a.Point(h*i,f*l),new a.Size(i,l)):{url:c.src,anchor:new a.Point(h,f),size:new a.Size(i,l)},o.setPosition(u),o.setIcon(e),"setRotation"in o&&o.setRotation(t.rotate||0);var m,g=t.label||{};if("label"in o&&(o.label.setMap(null),delete o.label),g.content){var v={borderColor:g.borderColor,borderWidth:(Number(g.borderWidth)||0)+"px",padding:(Number(g.padding)||0)+"px",borderRadius:(Number(g.borderRadius)||0)+"px",backgroundColor:g.bgColor,color:g.color,fontSize:(g.fontSize||14)+"px",lineHeight:(g.fontSize||14)+"px",marginLeft:(Number(g.anchorX||g.x)||0)+"px",marginTop:(Number(g.anchorY||g.y)||0)+"px"};if("Label"in a)m=new a.Label({position:u,map:r,clickable:!1,content:g.content,style:v}),o.label=m;else if("setLabel"in o){var y=n.updateMarkerLabelStyle(n.id,v);o.setLabel({text:g.content,color:v.color,fontSize:v.fontSize,className:y})}}var b,_=t.callout||{},T=o.callout;if(_.content||s){var w="0px 0px 3px 1px rgba(0,0,0,0.5)";b=_.content?{position:u,map:r,top:p,content:_.content,color:_.color,fontSize:_.fontSize,borderRadius:_.borderRadius,bgColor:_.bgColor,padding:_.padding,boxShadow:_.boxShadow||w,display:_.display}:{position:u,map:r,top:p,content:s,boxShadow:w},T?T.setOption(b):(T=o.callout=new a.Callout(b),T.div.onclick=function(e){""!==n.id&&n.$parent.$trigger("callouttap",e,{markerId:n.id}),e.stopPropagation(),e.preventDefault()})}else T&&(T.setMap(null),delete o.callout)},t.iconPath?c.src=Object(i["a"])(t.iconPath):e.error("Marker.iconPath is required.")},updateMarkerLabelStyle:function(e,t){var n="uni-map-marker-label-"+e,i=document.getElementById(n);i||(i=document.createElement("style"),i.id=n,document.head.appendChild(i),this.$once("hook:destroyed",(function(){i.remove()})));var r=Object.assign({},t,{position:"absolute",top:"70px",borderStyle:"solid"}),a=document.createElement("div");return Object.keys(r).forEach((function(e){a.style[e]=r[e]||""})),i.innerText=".".concat(n,"{").concat(a.getAttribute("style"),"}"),n},removeMarker:function(){var e=this._marker;e&&(e.label&&"setMap"in e.label&&e.label.setMap(null),e.callout&&e.callout.setMap(null),e.setMap(null)),delete this.$parent._markers[this.id],this._marker=null}},render:function(){return null}}}).call(this,n("3ad9")["default"])},"454d":function(e,t,n){"use strict";n.r(t),n.d(t,"removeTabBarBadge",(function(){return a})),n.d(t,"showTabBarRedDot",(function(){return o})),n.d(t,"hideTabBarRedDot",(function(){return s})),n.d(t,"onTabBarMidButtonTap",(function(){return c}));var i=n("db70"),r=n("a118");function a(e){var t=e.index;return Object(i["c"])("setTabBarBadge",{index:t,type:"none"})}function o(e){var t=e.index;return Object(i["c"])("setTabBarBadge",{index:t,type:"redDot"})}var s=a,u=[];function c(e){u.push(e)}Object(i["d"])("onTabBarMidButtonTap",(function(e){u.forEach((function(t){Object(r["a"])(t,e)}))}))},"45d2":function(e,t,n){"use strict";n.r(t),n.d(t,"upx2px",(function(){return l}));var i=1e-4,r=750,a=!1,o=0,s=0;function u(){var e=uni.getSystemInfoSync(),t=e.platform,n=e.pixelRatio,i=e.windowWidth;o=i,s=n,a="ios"===t}function c(e,t){return e=Number(e),isNaN(e)?t:e}function l(e,t){if(0===o&&u(),e=Number(e),0===e)return 0;var n=__uniConfig.globalStyle||__uniConfig.window||{},l=c(n.rpxCalcMaxDeviceWidth,960),d=c(n.rpxCalcBaseDeviceWidth,375),h=c(n.rpxCalcIncludeWidth,750),f=t||o;f=e===h||f<=l?f:d;var p=e/r*f;return p<0&&(p=-p),p=Math.floor(p+i),0===p&&(p=1!==s&&a?.5:1),e<0?-p:p}},"45db":function(e,t,n){"use strict";n.r(t),function(e){var i;function r(e){i=e}function a(){i&&e.emit(i+".stopPullDownRefresh",{},i);var t=getCurrentPages();return t.length&&(i=t[t.length-1].$page.id,e.emit(i+".startPullDownRefresh",{},i)),{}}function o(){if(i)e.emit(i+".stopPullDownRefresh",{},i),i=null;else{var t=getCurrentPages();t.length&&(i=t[t.length-1].$page.id,e.emit(i+".stopPullDownRefresh",{},i))}return{}}n.d(t,"setPullDownRefreshPageId",(function(){return r})),n.d(t,"startPullDownRefresh",(function(){return a})),n.d(t,"stopPullDownRefresh",(function(){return o}))}.call(this,n("0dd1"))},"4a59":function(e,t,n){"use strict";(function(e){function i(t,n,i){e.UniServiceJSBridge.subscribeHandler(t,n,i)}n.d(t,"a",(function(){return i}))}).call(this,n("c8ba"))},"4ca9":function(e,t,n){"use strict";n.r(t),function(e){var i=n("6389"),r=n.n(i),a=n("85b6"),o=n("abbf"),s=n("0784"),u=n("aa92"),c=n("02c9"),l=n("23e5"),d=n("f2b3");function h(e){var t=0;return e.forEach((function(e){e.meta.id&&t++})),t}function f(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":decodeURI(e.slice(t+1))}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=decodeURI(window.location.pathname);return e&&0===t.indexOf(e)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}t["default"]={install:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.routes;t.config.devtools&&"undefined"!==typeof window&&-1!==window.navigator.userAgent.toLowerCase().indexOf("hbuilderx")&&(t.config.devtools=!1),Object(c["a"])(t),Object(u["a"])(t),Object(d["t"])(t),"undefined"!==typeof __UNI_ROUTER_BASE__&&(__uniConfig.router.base=__UNI_ROUTER_BASE__);var m=h(i),g=new r.a({id:m,mode:__uniConfig.router.mode,base:__uniConfig.router.base,routes:i,scrollBehavior:function(e,t,n){if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){var i=Object(l["b"])(e.params.__id__);if(i)return i}return{x:0,y:0}}}),v=[],y=g.match("history"===__uniConfig.router.mode?p(__uniConfig.router.base):f());if(y.meta.name&&(y.meta.id?v.push(y.meta.name+"-"+y.meta.id):v.push(y.meta.name+"-"+(m+1))),y.meta&&y.meta.name&&(document.body.className="uni-body "+y.meta.name,y.meta.isNVue)){var b="nvue-dir-"+__uniConfig.nvue["flex-direction"];document.body.setAttribute("nvue",""),document.body.setAttribute(b,"")}t.mixin({beforeCreate:function(){var n=this.$options;if("app"===n.mpType){n.data=function(){return{keepAliveInclude:v}};var r=Object(o["a"])(t,i,y);Object.keys(r).forEach((function(e){n[e]=n[e]?[].concat(r[e],n[e]):[r[e]]})),n.router=g,Array.isArray(n.onError)&&0!==n.onError.length||(n.onError=[function(t){e.error(t)}])}else if(Object(a["d"])(this)){var u=Object(s["a"])();Object.keys(u).forEach((function(e){n.mpOptions?n[e]=n[e]?[].concat(n[e],u[e]):[u[e]]:n[e]=n[e]?[].concat(u[e],n[e]):[u[e]]}))}else this.$parent&&this.$parent.__page__&&(this.__page__=this.$parent.__page__)}}),Object.defineProperty(t.prototype,"$page",{get:function(){return this.__page__}}),t.prototype.createSelectorQuery=function(){return uni.createSelectorQuery().in(this)},t.prototype.createIntersectionObserver=function(e){return uni.createIntersectionObserver(this,e)},t.prototype.createMediaQueryObserver=function(e){return uni.createMediaQueryObserver(this,e)},t.use(r.a)}}}.call(this,n("3ad9")["default"])},"4ccd":function(e,t,n){"use strict";n.r(t),t["default"]={data:function(){return{popupWidth:0,popupHeight:0}},computed:{isDesktop:function(){return this.popupWidth>=500&&this.popupHeight>=500},popupStyle:function(){var e={},t=e.content={},n=e.triangle={},i=this.popover;function r(e){return Number(e)||0}if(this.isDesktop&&i){Object.assign(n,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});var a=r(i.left),o=r(i.width),s=r(i.top),u=r(i.height),c=a+o/2;t.transform="none !important";var l=Math.max(0,c-150);t.left="".concat(l,"px");var d=Math.max(12,c-l);d=Math.min(288,d),n.left="".concat(d,"px");var h=this.popupHeight/2;s+u-h>h-s?(t.top="auto",t.bottom="".concat(this.popupHeight-s+6,"px"),n.bottom="-6px",n["border-width"]="6px 6px 0 6px",n["border-color"]="#fcfcfd transparent transparent transparent"):(t.top="".concat(s+u+6,"px"),n.top="-6px",n["border-width"]="0 6px 6px 6px",n["border-color"]="transparent transparent #fcfcfd transparent")}return e}},mounted:function(){var e=this,t=function(){var t=uni.getSystemInfoSync(),n=t.windowWidth,i=t.windowHeight,r=t.windowTop;e.popupWidth=n,e.popupHeight=i+r};window.addEventListener("resize",t),t(),this.$once("hook:beforeDestroy",(function(){window.removeEventListener("resize",t)}))}}},"4da7":function(e,t,n){"use strict";n.r(t);var i,r,a=n("5881"),o=a["a"],s=(n("c8ed"),n("2877")),u=Object(s["a"])(o,i,r,!1,null,null,null);t["default"]=u.exports},"4e0b":function(e,t,n){},"4e7c":function(e,t,n){"use strict";n.r(t),n.d(t,"getProvider",(function(){return r}));var i={OAUTH:"OAUTH",SHARE:"SHARE",PAYMENT:"PAYMENT",PUSH:"PUSH"},r={service:{type:String,required:!0,validator:function(e,t){if(e=(e||"").toUpperCase(),e&&Object.values(i).indexOf(e)<0)return"service error"}}}},"4f1c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-switch",e._g({attrs:{disabled:e.disabled},on:{click:e._onClick}},e.$listeners),[n("div",{staticClass:"uni-switch-wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:"switch"===e.type,expression:"type === 'switch'"}],staticClass:"uni-switch-input",class:[e.switchChecked?"uni-switch-input-checked":""],style:{backgroundColor:e.switchChecked?e.color:"#DFDFDF",borderColor:e.switchChecked?e.color:"#DFDFDF"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:"checkbox"===e.type,expression:"type === 'checkbox'"}],staticClass:"uni-checkbox-input",class:[e.switchChecked?"uni-checkbox-input-checked":""],style:{color:e.color}})])])},r=[],a=n("8af1"),o={name:"Switch",mixins:[a["a"],a["f"]],props:{name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"}},data:function(){return{switchChecked:this.checked}},watch:{checked:function(e){this.switchChecked=e}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},listeners:{"label-click":"_onClick","@label-click":"_onClick"},methods:{_onClick:function(e){this.disabled||(this.switchChecked=!this.switchChecked,this.$trigger("change",e,{value:this.switchChecked}))},_resetFormData:function(){this.switchChecked=!1},_getFormData:function(){var e={};return""!==this.name&&(e.value=this.switchChecked,e.key=this.name),e}}},s=o,u=(n("a5ec"),n("2877")),c=Object(u["a"])(s,i,r,!1,null,null,null);t["default"]=c.exports},"4f43":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"downloadFile",(function(){return c}));var i=n("e2e2");function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(){function e(t){r(this,e),s(this,"_xhr",void 0),s(this,"_callbacks",[]),this._xhr=t}return o(e,[{key:"onProgressUpdate",value:function(e){"function"===typeof e&&this._callbacks.push(e)}},{key:"offProgressUpdate",value:function(e){var t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}},{key:"abort",value:function(){this._xhr&&(this._xhr.abort(),delete this._xhr)}}]),e}();function c(t,n){var r,a=t.url,o=t.header,s=t.timeout,c=void 0===s?__uniConfig.networkTimeout&&__uniConfig.networkTimeout.request||6e4:s,l=e,d=l.invokeCallbackHandler,h=new XMLHttpRequest,f=new u(h);return h.open("GET",a,!0),Object.keys(o).forEach((function(e){h.setRequestHeader(e,o[e])})),h.responseType="blob",h.onload=function(){clearTimeout(r);var e,t=h.status,o=this.response,s=h.getResponseHeader("content-disposition");if(s){var u=s.match(/filename="?(\S+)"?\b/);u&&(e=u[1])}o.name=e||Object(i["c"])(a),d(n,{errMsg:"downloadFile:ok",statusCode:t,tempFilePath:Object(i["b"])(o)})},h.onabort=function(){clearTimeout(r),d(n,{errMsg:"downloadFile:fail abort"})},h.onerror=function(){clearTimeout(r),d(n,{errMsg:"downloadFile:fail"})},h.onprogress=function(e){f._callbacks.forEach((function(t){var n=e.loaded,i=e.total,r=Math.round(n/i*100);t({progress:r,totalBytesWritten:n,totalBytesExpectedToWrite:i})}))},h.send(),r=setTimeout((function(){h.onprogress=h.onload=h.onabort=h.onerror=null,f.abort(),d(n,{errMsg:"downloadFile:fail timeout"})}),c),f}}.call(this,n("0dd1"))},"4f53":function(e,t,n){"use strict";n.r(t),n.d(t,"saveImageToPhotosAlbum",(function(){return r}));var i=n("cb0f"),r={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=Object(i["a"])(e)}}}},"4fef":function(e,t,n){"use strict";var i=n("7572"),r=n.n(i);r.a},"501c":function(e,t,n){"use strict";n.r(t),n.d(t,"on",(function(){return g})),n.d(t,"off",(function(){return v})),n.d(t,"once",(function(){return y})),n.d(t,"emit",(function(){return b})),n.d(t,"subscribe",(function(){return _})),n.d(t,"unsubscribe",(function(){return T})),n.d(t,"subscribeHandler",(function(){return w})),n.d(t,"publishHandler",(function(){return p["a"]}));var i=n("8bbf"),r=n.n(i);function a(e){var t=e.pageStyle,n=e.rootFontSize,i=document.querySelector("uni-page-body")||document.body;i.setAttribute("style",t),n&&document.documentElement.style.fontSize!==n&&(document.documentElement.style.fontSize=n)}var o=n("6bdf"),s=n("5dc1"),u=n("1c73"),c={setPageMeta:a,requestComponentInfo:o["a"],requestComponentObserver:s["b"],destroyComponentObserver:s["a"],requestMediaQueryObserver:u["b"],destroyMediaQueryObserver:u["a"]},l=n("33ed"),d=n("7107"),h=n("764a");function f(e){Object.keys(c).forEach((function(t){e(t,c[t])})),e("pageScrollTo",l["c"]),e("loadFontFace",d["a"]),Object(h["a"])(e)}var p=n("4a59"),m=new r.a,g=m.$on.bind(m),v=m.$off.bind(m),y=m.$once.bind(m),b=m.$emit.bind(m);function _(e,t){return g("service."+e,t)}function T(e,t){return v("service."+e,t)}function w(e,t,n){b("service."+e,t,n)}f(_)},"50c5":function(e,t,n){},5129:function(e,t){e.exports=["uni-app","uni-layout","uni-content","uni-main","uni-top-window","uni-left-window","uni-right-window","uni-tabbar","uni-page","uni-page-head","uni-page-wrapper","uni-page-body","uni-page-refresh","uni-actionsheet","uni-modal","uni-toast","uni-resize-sensor","uni-shadow-root","uni-ad","uni-audio","uni-button","uni-camera","uni-canvas","uni-checkbox","uni-checkbox-group","uni-cover-image","uni-cover-view","uni-editor","uni-form","uni-functional-page-navigator","uni-icon","uni-image","uni-input","uni-label","uni-live-player","uni-live-pusher","uni-map","uni-movable-area","uni-movable-view","uni-navigator","uni-official-account","uni-open-data","uni-picker","uni-picker-view","uni-picker-view-column","uni-progress","uni-radio","uni-radio-group","uni-rich-text","uni-scroll-view","uni-slider","uni-swiper","uni-swiper-item","uni-switch","uni-text","uni-textarea","uni-video","uni-view","uni-web-view"]},"515d":function(e,t,n){},5222:function(e,t,n){"use strict";(function(e){var i=n("5a56");t["a"]={name:"Toast",mixins:[i["default"]],props:{title:{type:String,default:""},icon:{default:"success",validator:function(e){return-1!==["success","loading","error","none"].indexOf(e)}},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!1}},computed:{iconClass:function(){return"success"===this.icon?"uni-icon-success-no-circle":"loading"===this.icon?"uni-loading":"error"===this.icon?"uni-icon-error":""}},beforeUpdate:function(){this.visible&&(this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=setTimeout((function(){e.emit("onHideToast")}),this.duration))}}}).call(this,n("0dd1"))},5243:function(e,t,n){"use strict";n.r(t),n.d(t,"compressVideo",(function(){return r}));var i=n("cb0f"),r={src:{type:String,required:!0,validator:function(e,t){t.src=Object(i["a"])(e)}},quality:{type:String},bitrate:{type:Number},fps:{type:Number},resolution:{type:Number}}},5363:function(e,t,n){"use strict";function i(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}n.d(t,"a",(function(){return i})),i.prototype.set=function(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()},i.prototype.setVelocityByEnd=function(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)},i.prototype.x=function(e){var t;return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e),this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog},i.prototype.dx=function(e){var t;return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e),this._dt=e,this._v*t},i.prototype.done=function(){return Math.abs(this.dx())<3},i.prototype.reconfigure=function(e){var t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)},i.prototype.configuration=function(){var e=this;return[{label:"Friction",read:function(){return e._drag},write:function(t){e.reconfigure(t)},min:.001,max:.1,step:.001}]}},5378:function(e,t,n){"use strict";var i=n("43a1"),r=n.n(i);r.a},5408:function(e,t,n){var i={"./audio/index.vue":"6150","./button/index.vue":"d3bd","./canvas/index.vue":"bacd","./checkbox-group/index.vue":"25ce","./checkbox/index.vue":"7bb3","./editor/index.vue":"27c2","./form/index.vue":"b34d","./icon/index.vue":"9a8b","./image/index.vue":"1082","./input/index.vue":"250d","./label/index.vue":"70f4","./movable-area/index.vue":"c61c","./movable-view/index.vue":"8842","./navigator/index.vue":"17fd","./picker-view-column/index.vue":"1955","./picker-view/index.vue":"27ab","./progress/index.vue":"9b1f","./radio-group/index.vue":"d5ec","./radio/index.vue":"6491","./resize-sensor/index.vue":"3e8c","./rich-text/index.vue":"b705","./scroll-view/index.vue":"f1ef","./slider/index.vue":"9f96","./swiper-item/index.vue":"9213","./swiper/index.vue":"5513","./switch/index.vue":"4f1c","./text/index.vue":"4da7","./textarea/index.vue":"5768","./view/index.vue":"2bbe"};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id="5408"},"54bc":function(e,t,n){},"54f4":function(e,t,n){"use strict";function i(){var e=document.activeElement;!e||"TEXTAREA"!==e.tagName&&"INPUT"!==e.tagName||e.blur()}n.r(t),n.d(t,"hideKeyboard",(function(){return i}))},5513:function(e,t,n){"use strict";n.r(t);var i,r,a=n("ba15"),o=n("f2b3"),s={name:"Swiper",mixins:[a["a"]],props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1}},data:function(){return{currentSync:Math.round(this.current)||0,currentItemIdSync:this.currentItemId||"",userTracking:!1,currentChangeSource:"",items:[]}},computed:{intervalNumber:function(){var e=Number(this.interval);return isNaN(e)?5e3:e},durationNumber:function(){var e=Number(this.duration);return isNaN(e)?500:e},displayMultipleItemsNumber:function(){var e=Math.round(this.displayMultipleItems);return isNaN(e)?1:e},slidesStyle:function(){var e={};return(this.nextMargin||this.previousMargin)&&(e=this.vertical?{left:0,right:0,top:this._upx2px(this.previousMargin),bottom:this._upx2px(this.nextMargin)}:{top:0,bottom:0,left:this._upx2px(this.previousMargin),right:this._upx2px(this.nextMargin)}),e},slideFrameStyle:function(){var e=Math.abs(100/this.displayMultipleItemsNumber)+"%";return{width:this.vertical?"100%":e,height:this.vertical?e:"100%"}},circularEnabled:function(){return this.circular&&this.items.length>this.displayMultipleItemsNumber}},watch:{vertical:function(){this._resetLayout()},circular:function(){this._resetLayout()},intervalNumber:function(e){this._timer&&(this._cancelSchedule(),this._scheduleAutoplay())},current:function(e){this._currentCheck()},currentSync:function(e,t){this._currentChanged(e,t),this.$emit("update:current",e)},currentItemId:function(e){this._currentCheck()},currentItemIdSync:function(e){this.$emit("update:currentItemId",e)},displayMultipleItemsNumber:function(){this._resetLayout()}},created:function(){this._invalid=!0,this._viewportPosition=0,this._viewportMoveRatio=1,this._animating=null,this._requestedAnimation=!1,this._userDirectionChecked=!1,this._contentTrackViewport=0,this._contentTrackSpeed=0,this._contentTrackT=0},mounted:function(){var e=this;this._currentCheck(),this.touchtrack(this.$refs.slidesWrapper,"_handleContentTrack",!0),this._resetLayout(),this.$watch((function(){return e.autoplay&&!e.userTracking}),this._inintAutoplay),this._inintAutoplay(this.autoplay&&!this.userTracking),this.$watch("items.length",this._resetLayout)},beforeDestroy:function(){this._cancelSchedule(),cancelAnimationFrame(this._animationFrame)},methods:{_inintAutoplay:function(e){e?this._scheduleAutoplay():this._cancelSchedule()},_currentCheck:function(){var e=-1;if(this.currentItemId)for(var t=0,n=this.items;t<n.length;t++){var i=n[t].componentInstance;if(i&&i.itemId===this.currentItemId){e=t;break}}e<0&&(e=Math.round(this.current)||0),e=e<0?0:e,this.currentSync!==e&&(this.currentChangeSource="",this.currentSync=e)},_itemReady:function(e,t){e.componentInstance&&e.componentInstance._isMounted?t():(e._callbacks=e._callbacks||[],e._callbacks.push(t))},_currentChanged:function(e,t){var n=this,i=this.currentChangeSource;if(this.currentChangeSource="",!i){var r=this.items.length;this._animateViewport(e,"",this.circularEnabled&&t+(r-e)%r>r/2?1:0)}var a=this.items[e];a&&this._itemReady(a,(function(){var e=n.currentItemIdSync=a.componentInstance.itemId||"";n.$trigger("change",{},{current:n.currentSync,currentItemId:e,source:i})}))},_scheduleAutoplay:function(){var e=this;function t(){e._timer=null,e.currentChangeSource="autoplay",e.circularEnabled?e.currentSync=e._normalizeCurrentValue(e.currentSync+1):e.currentSync=e.currentSync+e.displayMultipleItemsNumber<e.items.length?e.currentSync+1:0,e._animateViewport(e.currentSync,"autoplay",e.circularEnabled?1:0),e._timer=setTimeout(t,e.intervalNumber)}this._cancelSchedule(),!this._isMounted||this._invalid||this.items.length<=this.displayMultipleItemsNumber||(this._timer=setTimeout(t,this.intervalNumber))},_cancelSchedule:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_normalizeCurrentValue:function(e){var t=this.items.length;if(!t)return-1;var n=(Math.round(e)%t+t)%t;if(this.circularEnabled){if(t<=this.displayMultipleItemsNumber)return 0}else if(n>t-this.displayMultipleItemsNumber)return t-this.displayMultipleItemsNumber;return n},_upx2px:function(e){return/\d+[ur]px$/i.test(e)&&e.replace(/\d+[ur]px$/i,(function(e){return"".concat(uni.upx2px(parseFloat(e)),"px")})),e||""},_resetLayout:function(){if(this._isMounted){this._cancelSchedule(),this._endViewportAnimation();for(var e=this.items,t=0;t<e.length;t++)this._updateItemPos(t,t);if(this._viewportMoveRatio=1,1===this.displayMultipleItemsNumber&&e.length){var n=e[0].componentInstance.$el.getBoundingClientRect(),i=this.$refs.slideFrame.getBoundingClientRect();this._viewportMoveRatio=n.width/i.width,this._viewportMoveRatio>0&&this._viewportMoveRatio<1||(this._viewportMoveRatio=1)}var r=this._viewportPosition;this._viewportPosition=-2;var a=this.currentSync;a>=0?(this._invalid=!1,this.userTracking?(this._updateViewport(r+a-this._contentTrackViewport),this._contentTrackViewport=a):(this._updateViewport(a),this.autoplay&&this._scheduleAutoplay())):(this._invalid=!0,this._updateViewport(-this.displayMultipleItemsNumber-1))}},_checkCircularLayout:function(e){if(!this._invalid)for(var t=this.items,n=t.length,i=e+this.displayMultipleItemsNumber,r=0;r<n;r++){var a=t[r],o=a._position,s=Math.floor(e/n)*n+r,u=s+n,c=s-n,l=Math.max(e-(s+1),s-i,0),d=Math.max(e-(u+1),u-i,0),h=Math.max(e-(c+1),c-i,0),f=Math.min(l,d,h),p=[s,u,c][[l,d,h].indexOf(f)];o!==p&&this._updateItemPos(r,p)}},_updateItemPos:function(e,t){var n=this.vertical?"0":100*t+"%",i=this.vertical?100*t+"%":"0",r="translate("+n+", "+i+") translateZ(0)",a=this.items[e];this._itemReady(a,(function(){var e=a.componentInstance.$el;e.style["-webkit-transform"]=r,e.style.transform=r,e._position=t}))},_updateViewport:function(e){Math.floor(2*this._viewportPosition)===Math.floor(2*e)&&Math.ceil(2*this._viewportPosition)===Math.ceil(2*e)||this.circularEnabled&&this._checkCircularLayout(e);var t=this.vertical?"0":100*-e*this._viewportMoveRatio+"%",n=this.vertical?100*-e*this._viewportMoveRatio+"%":"0",i="translate("+t+", "+n+") translateZ(0)",r=this.$refs.slideFrame;if(r&&(r.style["-webkit-transform"]=i,r.style.transform=i),this._viewportPosition=e,!this._transitionStart){if(e%1===0)return;this._transitionStart=e}e-=Math.floor(this._transitionStart),e<=-(this.items.length-1)?e+=this.items.length:e>=this.items.length&&(e-=this.items.length),e=this._transitionStart%1>.5||this._transitionStart<0?e-1:e,this.$trigger("transition",{},{dx:this.vertical?0:e*r.offsetWidth,dy:this.vertical?e*r.offsetHeight:0})},_animateFrameFuncProto:function(){var e=this;if(this._animating){var t=this._animating,n=t.toPos,i=t.acc,r=t.endTime,a=t.source,o=r-Date.now();if(o<=0){this._updateViewport(n),this._animating=null,this._requestedAnimation=!1,this._transitionStart=null;var s=this.items[this.currentSync];s&&this._itemReady(s,(function(){var t=s.componentInstance.itemId||"";e.$trigger("animationfinish",{},{current:e.currentSync,currentItemId:t,source:a})}))}else{var u=i*o*o/2,c=n+u;this._updateViewport(c),this._animationFrame=requestAnimationFrame(this._animateFrameFuncProto.bind(this))}}else this._requestedAnimation=!1},_animateViewport:function(e,t,n){this._cancelViewportAnimation();var i=this.durationNumber,r=this.items.length,a=this._viewportPosition;if(this.circularEnabled)if(n<0){for(;a<e;)a+=r;for(;a-r>e;)a-=r}else if(n>0){for(;a>e;)a-=r;for(;a+r<e;)a+=r;a+r-e<e-a&&(a+=r)}else{for(;a+r<e;)a+=r;for(;a-r>e;)a-=r;a+r-e<e-a&&(a+=r)}this._animating={toPos:e,acc:2*(a-e)/(i*i),endTime:Date.now()+i,source:t},this._requestedAnimation||(this._requestedAnimation=!0,this._animationFrame=requestAnimationFrame(this._animateFrameFuncProto.bind(this)))},_cancelViewportAnimation:function(){this._animating=null},_endViewportAnimation:function(){this._animating&&(this._updateViewport(this._animating.toPos),this._animating=null)},_handleTrackStart:function(){this.items.length&&(this._cancelSchedule(),this._contentTrackViewport=this._viewportPosition,this._contentTrackSpeed=0,this._contentTrackT=Date.now(),this._cancelViewportAnimation())},_handleTrackMove:function(e){if(this.items.length){var t=this,n=this._contentTrackT;this._contentTrackT=Date.now();var i=this.items.length,r=i-this.displayMultipleItemsNumber,a=this._contentTrackT-n||1;this.vertical?s(-e.dy/this.$refs.slideFrame.offsetHeight,-e.ddy/a):s(-e.dx/this.$refs.slideFrame.offsetWidth,-e.ddx/a)}function o(e){return.5-.25/(e+.5)}function s(e,n){var i=t._contentTrackViewport+e;t._contentTrackSpeed=.6*t._contentTrackSpeed+.4*n,t.circularEnabled||(i<0||i>r)&&(i<0?i=-o(-i):i>r&&(i=r+o(i-r)),t._contentTrackSpeed=0),t._updateViewport(i)}},_handleTrackEnd:function(e){if(this.items.length){this.userTracking=!1;var t=this._contentTrackSpeed/Math.abs(this._contentTrackSpeed),n=0;!e&&Math.abs(this._contentTrackSpeed)>.2&&(n=.5*t);var i=this._normalizeCurrentValue(this._viewportPosition+n);e?this._updateViewport(this._contentTrackViewport):(this.currentChangeSource="touch",this.currentSync=i,this._animateViewport(i,"touch",0!==n?n:0===i&&this.circularEnabled&&this._viewportPosition>=1?1:0))}},_handleContentTrack:function(e){if(!this.disableTouch&&this.items.length&&!this._invalid){if("start"===e.detail.state)return this.userTracking=!0,this._userDirectionChecked=!1,this._handleTrackStart();if("end"===e.detail.state)return this._handleTrackEnd(!1);if("cancel"===e.detail.state)return this._handleTrackEnd(!0);if(this.userTracking){if(!this._userDirectionChecked){this._userDirectionChecked=!0;var t=Math.abs(e.detail.dx),n=Math.abs(e.detail.dy);if((t>=n&&this.vertical||t<=n&&!this.vertical)&&(this.userTracking=!1),!this.userTracking)return void(this.autoplay&&this._scheduleAutoplay())}return this._handleTrackMove(e.detail),!1}}}},render:function(e){var t=this,n=[],i=[];this.$slots.default&&Object(o["f"])(this.$slots.default,e).forEach((function(e){e.componentOptions&&"v-uni-swiper-item"===e.componentOptions.tag&&i.push(e)}));for(var r=function(i,r){var a=t.currentSync;n.push(e("div",{on:{click:function(){t._animateViewport(t.currentSync=i,t.currentChangeSource="click",t.circularEnabled?1:0)}},class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":i<a+t.displayMultipleItemsNumber&&i>=a||i<a+t.displayMultipleItemsNumber-r},style:{background:i===a?t.indicatorActiveColor:t.indicatorColor}}))},a=0,s=i.length;a<s;a++)r(a,s);this.items=i;var u=[e("div",{ref:"slides",style:this.slidesStyle,class:"uni-swiper-slides"},[e("div",{ref:"slideFrame",class:"uni-swiper-slide-frame",style:this.slideFrameStyle},i)])];return this.indicatorDots&&u.push(e("div",{ref:"slidesDots",class:["uni-swiper-dots",this.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},n)),e("uni-swiper",{on:this.$listeners},[e("div",{ref:"slidesWrapper",class:"uni-swiper-wrapper"},u)])}},u=s,c=(n("1c64"),n("2877")),l=Object(c["a"])(u,i,r,!1,null,null,null);t["default"]=l.exports},5621:function(e,t,n){"use strict";n.r(t),n.d(t,"setTabBarItem",(function(){return o})),n.d(t,"setTabBarStyle",(function(){return s})),n.d(t,"hideTabBar",(function(){return u})),n.d(t,"showTabBar",(function(){return c})),n.d(t,"hideTabBarRedDot",(function(){return l})),n.d(t,"showTabBarRedDot",(function(){return d})),n.d(t,"removeTabBarBadge",(function(){return h})),n.d(t,"setTabBarBadge",(function(){return f}));var i=n("f2b3"),r=n("cb0f"),a={type:Number,required:!0},o={index:a,text:{type:String},iconPath:{type:String},selectedIconPath:{type:String},pagePath:{type:String}},s={color:{type:String},selectedColor:{type:String},backgroundColor:{type:String},backgroundImage:{type:String,validator:function(e,t){e&&!/^(linear|radial)-gradient\(.+?\);?$/.test(e)&&(t.backgroundImage=Object(r["a"])(e))}},backgroundRepeat:{type:String},borderStyle:{type:String,validator:function(e,t){e&&(t.borderStyle="black"===e?"black":"white")}}},u={animation:{type:Boolean,default:!1}},c={animation:{type:Boolean,default:!1}},l={index:a},d={index:a},h={index:a},f={index:a,text:{type:String,required:!0,validator:function(e,t){Object(i["h"])(e)>=4&&(t.text="...")}}}},5676:function(e,t,n){"use strict";var i=n("c33a"),r=n.n(i);r.a},"56e9":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"showModal",(function(){return o})),n.d(t,"showToast",(function(){return s})),n.d(t,"hideToast",(function(){return u})),n.d(t,"showLoading",(function(){return c})),n.d(t,"hideLoading",(function(){return l})),n.d(t,"showActionSheet",(function(){return d}));var i=e,r=i.emit,a=i.invokeCallbackHandler;function o(e,t){r("onShowModal",e,(function(e){a(t,e)}))}function s(e){return r("onShowToast",e),{}}function u(){return r("onHideToast"),{}}function c(e){return r("onShowLoading",e),{}}function l(){return r("onHideLoading"),{}}function d(e,t){r("onShowActionSheet",e,(function(e){a(t,-1===e?{errMsg:"showActionSheet:fail cancel"}:{tapIndex:e})}))}}.call(this,n("0dd1"))},5727:function(e,t,n){"use strict";var i=n("28da"),r=n.n(i);r.a},5768:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-textarea",e._g({},e.$listeners),[n("div",{ref:"wrapper",staticClass:"uni-textarea-wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!(e.composing||e.valueSync.length),expression:"!(composing || valueSync.length)"}],ref:"placeholder",staticClass:"uni-textarea-placeholder",class:e.placeholderClass,style:e.placeholderStyle,domProps:{textContent:e._s(e.placeholder)}}),n("div",{ref:"line",staticClass:"uni-textarea-line",domProps:{textContent:e._s(" ")}}),n("div",{staticClass:"uni-textarea-compute"},[e._l(e.valueCompute,(function(t,i){return n("div",{key:i,domProps:{textContent:e._s(t.trim()?t:".")}})})),n("v-uni-resize-sensor",{ref:"sensor",on:{resize:e._resize}})],2),e.disabled&&e.fixColor?e._e():n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.valueSync,expression:"valueSync"},{name:"keyboard",rawName:"v-keyboard"},{name:"field",rawName:"v-field"}],ref:"textarea",staticClass:"uni-textarea-textarea",class:{"uni-textarea-textarea-fix-margin":e.fixMargin},style:{"overflow-y":e.autoHeight?"hidden":"auto"},attrs:{disabled:e.disabled,maxlength:e.maxlengthNumber,enterkeyhint:e.confirmType},domProps:{value:e.valueSync},on:{change:function(e){e.stopPropagation()},compositionstart:function(t){return t.stopPropagation(),e._onCompositionstart(t)},compositionend:function(t){return t.stopPropagation(),e._onCompositionend(t)},input:[function(t){t.target.composing||(e.valueSync=t.target.value)},function(t){return t.stopPropagation(),e._onInput(t)}],focus:e._onFocus,blur:e._onBlur,"&touchstart":function(t){return e._onTouchstart(t)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e._onKeyUpEnter(t)},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e._onKeyDownEnter(t)}}}),e._v(" "),e.disabled&&e.fixColor?n("textarea",{ref:"textarea",staticClass:"uni-textarea-textarea",class:{"uni-textarea-textarea-fix-margin":e.fixMargin},style:{"overflow-y":e.autoHeight?"hidden":"auto"},attrs:{tabindex:"-1",readonly:e.disabled,maxlength:e.maxlengthNumber},domProps:{value:e.valueSync},on:{focus:function(e){return e.target.blur()}}}):e._e()])])},r=[],a=n("8af1"),o="(prefers-color-scheme: dark)",s={name:"Textarea",mixins:[a["b"]],props:{name:{type:String,default:""},maxlength:{type:[Number,String],default:140},placeholder:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},placeholderClass:{type:String,default:"textarea-placeholder"},placeholderStyle:{type:String,default:""},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:""}},data:function(){return{valueComposition:"",height:0,focusChangeSource:"",fixMargin:0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(o).media!==o}},computed:{maxlengthNumber:function(){var e=Number(this.maxlength);return isNaN(e)?140:e},valueCompute:function(){return(this.composing?this.valueComposition:this.valueSync).split("\n")},isDone:function(){return["done","go","next","search","send"].includes(this.confirmType)}},watch:{focus:function(e){e&&(this.focusChangeSource="focus")},height:function(e){var t=parseFloat(getComputedStyle(this.$el).lineHeight);isNaN(t)&&(t=this.$refs.line.offsetHeight);var n=Math.round(e/t);this.$trigger("linechange",{},{height:e,heightRpx:750/window.innerWidth*e,lineCount:n}),this.autoHeight&&(this.$el.style.height="auto",this.$refs.wrapper.style.height=this.height+"px")}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},mounted:function(){this._resize({height:this.$refs.sensor.$el.offsetHeight});var e=this;while(e){var t=e.$options._scopeId;t&&this.$refs.placeholder.setAttribute(t,""),e=e.$parent}},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onKeyDownEnter:function(e){this.isDone&&e.preventDefault()},_onKeyUpEnter:function(e){this.isDone&&(this._confirm(e),!this.confirmHold&&this.$refs.textarea.blur())},_onCompositionstart:function(e){this.composing=!0},_onCompositionend:function(e){this.composing&&(this.composing=!1,this._onInput(e))},_confirm:function(e){this.$trigger("confirm",e,{value:this.valueSync})},_linechange:function(e){this.$trigger("linechange",e,{value:this.valueSync})},_onTouchstart:function(){this.focusChangeSource="touch"},_resize:function(e){var t=e.height;this.height=t},_onInput:function(e,t){this.composing?this.valueComposition=e.target.value:this.$triggerInput(e,{value:this.valueSync,cursor:this.$refs.textarea.selectionEnd},t)},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){this.valueSync=""}}},u=s,c=(n("9400"),n("2877")),l=Object(c["a"])(u,i,r,!1,null,null,null);t["default"]=l.exports},"57a7":function(e,t,n){"use strict";n.r(t),n.d(t,"createInnerAudioContext",(function(){return h}));var i=n("db70");function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}var s=["canplay","play","pause","stop","ended","timeUpdate","error","waiting","seeking","seeked"],u=[{name:"src",cache:!0},{name:"startTime",default:0,cache:!0},{name:"autoplay",default:!1,cache:!0},{name:"loop",default:!1,cache:!0},{name:"obeyMuteSwitch",default:!0,readonly:!0,cache:!0},{name:"duration",readonly:!0},{name:"currentTime",readonly:!0},{name:"paused",readonly:!0},{name:"buffered",readonly:!0},{name:"volume"},{name:"sessionCategory"}],c=function(){function e(t){var n=this;r(this,e),this.id=t,this._callbacks={},this._options={},s.forEach((function(e){n._callbacks[e.toLowerCase()]=[]})),u.forEach((function(e){var t=e.name,r={get:function(){var n=e.cache?this._options:Object(i["c"])("getAudioState",{audioId:this.id}),r=t in n?n[t]:e.default;return"number"===typeof r&&"volume"!==t?r/1e3:r}};e.readonly||(r.set=function(e){this._options[t]=e,Object(i["c"])("setAudioState",Object.assign({},this._options,{audioId:this.id}))}),Object.defineProperty(n,t,r)}))}return o(e,[{key:"play",value:function(){this._operate("play")}},{key:"pause",value:function(){this._operate("pause")}},{key:"stop",value:function(){this._operate("stop")}},{key:"seek",value:function(e){this._operate("seek",{currentTime:1e3*e})}},{key:"destroy",value:function(){clearInterval(this.__timing),Object(i["c"])("destroyAudioInstance",{audioId:this.id}),delete d[this.id]}},{key:"_operate",value:function(e,t){Object(i["c"])("operateAudio",Object.assign({},t,{audioId:this.id,operationType:e}))}}]),e}();function l(e,t,n,i){e._callbacks[t].forEach((function(e){"function"===typeof e&&e("error"===t?{errMsg:n,errCode:i}:{})}))}s.forEach((function(e){var t=e[0].toUpperCase()+e.substr(1);e=e.toLowerCase(),c.prototype["on".concat(t)]=function(t){this._callbacks[e].push(t)},c.prototype["off".concat(t)]=function(t){var n=this._callbacks[e],i=n.indexOf(t);i>=0&&n.splice(i,1)}})),Object(i["d"])("onAudioStateChange",(function(e){var t=e.state,n=e.audioId,i=e.errMsg,r=e.errCode,a=d[n];if(a)if(l(a,t,i,r),"play"===t){var o=a.currentTime;a.__timing=setInterval((function(){var e=a.currentTime;e!==o&&l(a,"timeupdate")}),200)}else"pause"!==t&&"stop"!==t&&"error"!==t||clearInterval(a.__timing)}));var d=Object.create(null);function h(){var e=Object(i["c"])("createAudioInstance"),t=e.audioId,n=new c(t);return d[t]=n,n}},"581a":function(e,t,n){},5881:function(e,t,n){"use strict";(function(e){var n={ensp:" ",emsp:" ",nbsp:" "};t["a"]={name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},methods:{_decodeHtml:function(e){return this.space&&n[this.space]&&(e=e.replace(/ /g,n[this.space])),this.decode&&(e=e.replace(/&nbsp;/g,n.nbsp).replace(/&ensp;/g,n.ensp).replace(/&emsp;/g,n.emsp).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&apos;/g,"'")),e}},render:function(t){var n=this,i=[];return this.$slots.default&&this.$slots.default.forEach((function(r){if(r.text){var a=r.text.replace(/\\n/g,"\n"),o=a.split("\n");o.forEach((function(e,r){i.push(n._decodeHtml(e)),r!==o.length-1&&i.push(t("br"))}))}else r.componentOptions&&"v-uni-text"!==r.componentOptions.tag&&e.warn("Do not nest other components in the text component, as there may be display differences on different platforms."),i.push(r)})),t("uni-text",{on:this.$listeners,attrs:{selectable:!!this.selectable}},[t("span",{},i)])}}}).call(this,n("3ad9")["default"])},"594d":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-map",e._g({attrs:{id:e.id}},e.$listeners),[e._l(e.markers,(function(t){return n("map-marker",e._b({key:t.id},"map-marker",t,!1))})),n("div",{ref:"map",staticStyle:{width:"100%",height:"100%",position:"relative",overflow:"hidden"}}),n("div",{staticStyle:{position:"absolute",top:"0",width:"100%",height:"100%",overflow:"hidden","pointer-events":"none"}},[e._t("default")],2)],2)},r=[],a=n("738e"),o=a["a"],s=(n("3f7e"),n("2877")),u=Object(s["a"])(o,i,r,!1,null,null,null);t["default"]=u.exports},5964:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"setNavigationBarColor",(function(){return a})),n.d(t,"showNavigationBarLoading",(function(){return o})),n.d(t,"hideNavigationBarLoading",(function(){return s})),n.d(t,"setNavigationBarTitle",(function(){return u}));var i=n("79d5");function r(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object(i["getPageHolder"])(n.__page__);if(r)switch(t){case"setNavigationBarColor":var a=n.frontColor,o=n.backgroundColor,s=n.animation,u=s.duration,c=s.timingFunc;a&&(r.navigationBar.textColor="#000000"===a?"black":"white"),o&&(r.navigationBar.backgroundColor=o),e.emit("onNavigationBarChange",{textColor:"#000000"===a?"#000":"#fff",backgroundColor:r.navigationBar.backgroundColor}),r.navigationBar.duration=u+"ms",r.navigationBar.timingFunc=c;break;case"showNavigationBarLoading":r.navigationBar.loading=!0;break;case"hideNavigationBarLoading":r.navigationBar.loading=!1;break;case"setNavigationBarTitle":var l=n.title;r.navigationBar.titleText=l,Object(i["isCurrentPage"])(r)&&(document.title=l),e.emit("onNavigationBarChange",{titleText:l});break}return{}}function a(e){return r("setNavigationBarColor",e)}function o(e){return r("showNavigationBarLoading",e)}function s(e){return r("hideNavigationBarLoading",e)}function u(e){return r("setNavigationBarTitle",e)}}.call(this,n("0dd1"))},"5a23":function(e,t,n){"use strict";n("f2b3");var i,r=n("5cf8");function a(){}t["a"]={name:"Keyboard",mixins:[r["a"]],props:{cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},directives:{keyboard:{inserted:function(e,t,n){n.context.initKeyboard(e)}}},methods:{initKeyboard:function(e){e.addEventListener("focus",(function(){clearTimeout(i),document.addEventListener("click",a,!1)}));var t=function(){document.removeEventListener("click",a,!1),0===String(navigator.vendor).indexOf("Apple")&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)};e.addEventListener("blur",(function(){e.blur(),t()}))}}}},"5a56":function(e,t,n){"use strict";n.r(t),t["default"]={methods:{beforeTransition:function(){},afterTransition:function(){}}}},"5ab3":function(e,t,n){"use strict";var i=n("b2bb"),r=n.n(i);r.a},"5abe":function(e,t){(function(){"use strict";if("object"===typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=window.document,t=[];i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function(e){var t=this._observationTargets.some((function(t){return t.element==e}));if(!t){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},i.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},i.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},i.prototype._parseRootMargin=function(e){var t=e||"0px",n=t.split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return n[1]=n[1]||n[0],n[2]=n[2]||n[0],n[3]=n[3]||n[1],n},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(window,"resize",this._checkForIntersections,!0),o(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(window,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),t=e?this._getRootRect():l();this._observationTargets.forEach((function(i){var a=i.element,o=c(a),s=this._rootContainsTarget(a),u=i.entry,l=e&&s&&this._computeTargetAndRootIntersection(a,t),d=i.entry=new n({time:r(),target:a,boundingClientRect:o,rootBounds:t,intersectionRect:l});u?e&&s?this._hasCrossedThreshold(u,d)&&this._queuedEntries.push(d):u&&u.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(t,n){if("none"!=window.getComputedStyle(t).display){var i=c(t),r=i,a=h(t),o=!1;while(!o){var s=null,l=1==a.nodeType?window.getComputedStyle(a):{};if("none"==l.display)return;if(a==this.root||a==e?(o=!0,s=n):a!=e.body&&a!=e.documentElement&&"visible"!=l.overflow&&(s=c(a)),s&&(r=u(s,r),!r))break;a=h(a)}return r}},i.prototype._getRootRect=function(){var t;if(this.root)t=c(this.root);else{var n=e.documentElement,i=e.body;t={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},i.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,i=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==i)for(var r=0;r<this.thresholds.length;r++){var a=this.thresholds[r];if(a==n||a==i||a<n!==a<i)return!0}},i.prototype._rootIsInDom=function(){return!this.root||d(e,this.root)},i.prototype._rootContainsTarget=function(t){return d(this.root||e,t)},i.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},i.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=i,window.IntersectionObserverEntry=n}function n(e){this.time=e.time,this.target=e.target,this.rootBounds=e.rootBounds,this.boundingClientRect=e.boundingClientRect,this.intersectionRect=e.intersectionRect||l(),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,i=this.intersectionRect,r=i.width*i.height;this.intersectionRatio=n?Number((r/n).toFixed(4)):this.isIntersecting?1:0}function i(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=a(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" ")}function r(){return window.performance&&performance.now&&performance.now()}function a(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}function o(e,t,n,i){"function"==typeof e.addEventListener?e.addEventListener(t,n,i||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function s(e,t,n,i){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,i||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function u(e,t){var n=Math.max(e.top,t.top),i=Math.min(e.bottom,t.bottom),r=Math.max(e.left,t.left),a=Math.min(e.right,t.right),o=a-r,s=i-n;return o>=0&&s>=0&&{top:n,bottom:i,left:r,right:a,width:o,height:s}}function c(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):l()}function l(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function d(e,t){var n=t;while(n){if(n==e)return!0;n=h(n)}return!1}function h(e){var t=e.parentNode;return t&&11==t.nodeType&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}})()},"5cf8":function(e,t,n){"use strict";function i(e,t){for(var n=this.$children,r=n.length,a=arguments.length,o=new Array(a>2?a-2:0),s=2;s<a;s++)o[s-2]=arguments[s];for(var u=0;u<r;u++){var c=n[u],l=c.$options.name&&c.$options.name.substr(4);if(~e.indexOf(l))return c.$emit.apply(c,[t].concat(o)),!1;if(!1===i.apply(c,[e,t].concat([o])))return!1}}t["a"]={methods:{$dispatch:function(e,t){"string"===typeof e&&(e=[e]);var n=this.$parent||this.$root,i=n.$options.name&&n.$options.name.substr(4);while(n&&(!i||!~e.indexOf(i)))n=n.$parent,n&&(i=n.$options.name&&n.$options.name.substr(4));if(n){for(var r=arguments.length,a=new Array(r>2?r-2:0),o=2;o<r;o++)a[o-2]=arguments[o];n.$emit.apply(n,[t].concat(a))}},$broadcast:function(e,t){"string"===typeof e&&(e=[e]);for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];i.apply(this,[e,t].concat(r))}}}},"5d1d":function(e,t,n){"use strict";var i=n("50c5"),r=n.n(i);r.a},"5d70":function(e,t,n){},"5dc1":function(e,t,n){"use strict";(function(e,i){n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l})),n("5abe");var r=n("85b6"),a=n("db8e");function o(e){return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function s(e){var t=e.intersectionRatio,n=e.boundingClientRect,i=n.height,r=n.width,a=e.intersectionRect,o=a.height,s=a.width;return 0!==t?t:o===i?s/r:o/i}var u={};function c(t,n){var c,l=t.reqId,d=t.component,h=t.options;if(n._isVue)c=n;else{var f=getCurrentPages(),p=f.find((function(e){return e.$page.id===n}));if(!p)throw new Error("Not Found:Page[".concat(n,"]"));c=p.$vm}var m=Object(a["b"])(d,c),g=h.relativeToSelector?m.querySelector(h.relativeToSelector):null,v=u[l]=new IntersectionObserver((function(t,n){t.forEach((function(t){e.publishHandler("onRequestComponentObserver",{reqId:l,res:{intersectionRatio:s(t),intersectionRect:o(t.intersectionRect),boundingClientRect:o(t.boundingClientRect),relativeRect:o(t.rootBounds),time:Date.now(),dataset:Object(r["b"])(t.target),id:t.target.id}})}))}),{root:g,rootMargin:h.rootMargin,threshold:h.thresholds});if(h.observeAll)v.USE_MUTATION_OBSERVER=!0,Array.prototype.map.call(m.querySelectorAll(h.selector),(function(e){e?v.observe(e):i.warn("Node ".concat(h.selector," is not found. Intersection observer will not trigger."))}));else{v.USE_MUTATION_OBSERVER=!1;var y=m.querySelector(h.selector);if(!y)return void i.warn("Node ".concat(h.selector," is not found. Intersection observer will not trigger."));v.observe(y)}}function l(t){var n=t.reqId,i=u[n];i&&(i.disconnect(),delete u[n],e.publishHandler("onRequestComponentObserver",{reqId:n,reqEnd:!0}))}}).call(this,n("501c"),n("3ad9")["default"])},"5dc4":function(e,t,n){},"5ff9":function(e,t,n){"use strict";n.r(t),n.d(t,"loadFontFace",(function(){return i}));var i={family:{type:String,required:!0},source:{type:String,required:!0},desc:{type:Object,required:!1},success:{type:Function,required:!1},fail:{type:Function,required:!1},complete:{type:Function,required:!1}}},6062:function(e,t,n){"use strict";var i=n("ef36"),r=n.n(i);r.a},"60db":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"EditorContext",(function(){return c}));var i=n("f2b3");function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function s(t,n,i,r){e.publishHandler(n+"-editor-"+t,{componentId:t,type:i,data:r},n)}e.subscribe("onEditorMethodCallback",(function(e){var t=e.callbackId,n=e.data;i["a"].invoke(t,n)}));var u=["insertDivider","insertImage","insertText","setContents","getContents","clear","removeFormat","undo","redo","blur","getSelectionText","scrollIntoView"],c=function(){function e(t,n){r(this,e),this.id=t,this.pageId=n}return o(e,[{key:"format",value:function(e,t){s(this.id,this.pageId,"format",{options:{name:e,value:t}})}}]),e}();u.forEach((function(e){c.prototype[e]=i["a"].warp((function(t,n){s(this.id,this.pageId,e,{options:t,callbackId:n})}))}))}.call(this,n("0dd1"))},"60ee":function(e,t,n){},6150:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-audio",e._g({attrs:{id:e.id,controls:!!e.controls}},e.$listeners),[n("audio",{ref:"audio",staticStyle:{display:"none"},attrs:{loop:e.loop}}),n("div",{staticClass:"uni-audio-default"},[n("div",{staticClass:"uni-audio-left",style:"background-image: url("+e.$getRealPath(e.poster)+");"},[n("div",{staticClass:"uni-audio-button",class:{play:!e.playing,pause:e.playing},on:{click:e.trigger}})]),n("div",{staticClass:"uni-audio-right"},[n("div",{staticClass:"uni-audio-time"},[e._v(" "+e._s(e.currentTime)+" ")]),n("div",{staticClass:"uni-audio-info"},[n("div",{staticClass:"uni-audio-name"},[e._v(" "+e._s(e.name)+" ")]),n("div",{staticClass:"uni-audio-author"},[e._v(" "+e._s(e.author)+" ")])])])])])},r=[],a=n("8af1"),o={name:"Audio",mixins:[a["g"]],props:{id:{type:String,default:""},src:{type:String,default:""},loop:{type:[Boolean,String],default:!1},controls:{type:[Boolean,String],default:!1},poster:{type:String,default:""},name:{type:String,default:""},author:{type:String,default:""}},data:function(){return{playing:!1,currentTime:this.getTime(0)}},watch:{src:function(e){this.$refs.audio&&(this.$refs.audio.src=this.$getRealPath(e))}},mounted:function(){var e=this,t=this.$refs.audio;t.addEventListener("error",(function(t){e.playing=!1,e.$trigger("error",t,{})})),t.addEventListener("play",(function(t){e.playing=!0,e.$trigger("play",t,{})})),t.addEventListener("pause",(function(t){e.playing=!1,e.$trigger("pause",t,{})})),t.addEventListener("ended",(function(t){e.playing=!1,e.$trigger("ended",t,{})})),t.addEventListener("timeupdate",(function(n){var i=t.currentTime;e.currentTime=e.getTime(i);var r=t.duration;e.$trigger("timeupdate",n,{currentTime:i,duration:r})})),t.src=this.$getRealPath(this.src)},methods:{_handleSubscribe:function(e){var t=e.type,n=e.data,i=void 0===n?{}:n,r=this.$refs.audio;switch(t){case"setSrc":r.src=this.$getRealPath(i.src),this.$emit("update:src",i.src);break;case"play":r.play();break;case"pause":r.pause();break;case"seek":r.currentTime=i.position;break}},trigger:function(){this.playing?this.$refs.audio.pause():this.$refs.audio.play()},getTime:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);t=(t<10?"0":"")+t,n=(n<10?"0":"")+n,i=(i<10?"0":"")+i;var r=n+":"+i;return"00"!==t&&(r=t+":"+r),r}}},s=o,u=(n("02b5"),n("2877")),c=Object(u["a"])(s,i,r,!1,null,null,null);t["default"]=c.exports},"61c2":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("f2b3"),r=n("8af1");function a(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})}function o(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})}var s={name:"uni://form-field",init:function(e,t){t.constructor.options.props&&t.constructor.options.props.name&&t.constructor.options.props.value||(t.constructor.options.props||(t.constructor.options.props={}),t.constructor.options.props.name||(t.constructor.options.props.name=e.props.name={type:String}),t.constructor.options.props.value||(t.constructor.options.props.value=e.props.value={type:null})),e.propsData||(e.propsData={});var n=t.$vnode;if(n&&n.data&&n.data.attrs&&(Object(i["i"])(n.data.attrs,"name")&&(e.propsData.name=n.data.attrs.name),Object(i["i"])(n.data.attrs,"value")&&(e.propsData.value=n.data.attrs.value)),!t.constructor.options.methods||!t.constructor.options.methods._getFormData){t.constructor.options.methods||(t.constructor.options.methods={}),e.methods||(e.methods={});var s={_getFormData:function(){return this.name?{key:this.name,value:this.value}:{}},_resetFormData:function(){this.value=""}};Object.assign(t.constructor.options.methods,s),Object.assign(e.methods,s),Object.assign(t.constructor.options.methods,r["a"].methods),Object.assign(e.methods,r["a"].methods);var u=e.created;t.constructor.options.created=e.created=u?[].concat(a,u):[a];var c=e.beforeDestroy;t.constructor.options.beforeDestroy=e.beforeDestroy=c?[].concat(o,c):[o]}}};function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=u({},s.name,s);function l(e,t){e.behaviors.forEach((function(n){var i=c[n];i&&i.init(e,t)}))}},6226:function(e,t,n){"use strict";var i=n("77d5"),r=n.n(i);r.a},"626d":function(e,t,n){"use strict";n.r(t),function(e){var i=n("f2b3");t["default"]={data:function(){return{showActionSheet:{visible:!1}}},created:function(){var t=this;e.on("onShowActionSheet",(function(e,n){t.showActionSheet=e,t.onActionSheetCloseCallback=n})),e.on("onHidePopup",(function(e){t.showActionSheet.visible=!1}))},methods:{_onActionSheetClose:function(e){this.showActionSheet.visible=!1,Object(i["k"])(this.onActionSheetCloseCallback)&&this.onActionSheetCloseCallback(e)}}}}.call(this,n("0dd1"))},"62b5":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i={};function r(e){var t=i[e];return t||(t={id:1,callbacks:Object.create(null)},i[e]=t),{get:function(e){return t.callbacks[e]},pop:function(e){var n=t.callbacks[e];return n&&delete t.callbacks[e],n},push:function(e){var n=t.id++;return t.callbacks[n]=e,n}}}},"636c":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return o}));var i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAMAAABmmnOVAAAC01BMVEUAAAAAef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef96quGStdqStdpbnujMzMzCyM7Gyc7Ky83MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMwAef8GfP0yjfNWnOp0qOKKsdyYt9mju9aZt9mMstx1qeJYnekyjvIIfP0qivVmouaWttnMzMyat9lppOUujPQKffxhoOfNzc3Y2Njh4eHp6enu7u7y8vL19fXv7+/i4uLZ2dnOzs6auNgOf/sKff15quHR0dHx8fH9/f3////j4+N6quFdn+iywdPb29vw8PD+/v7c3NyywtLa2tr29vbS0tLd3d38/Pzf39/o6Ojc7f+q0v+HwP9rsf9dqv9Hnv9Vpv/q6urj8P+Vx/9Am/8Pgf8Iff/z8/OAvP95uf/n5+c5l//V6f+52v+y1//7+/vt7e0rkP/09PTQ0NDq9P8Whf+cy//W1tbe3t7A3v/m5ubs7OxOov/r6+vk5OQiaPjKAAAAknRSTlMACBZ9oB71/jiqywJBZATT6hBukRXv+zDCAVrkDIf4JbQsTb7eVeJLbwfa8Rh4G/OlPS/6/kxQ9/xdmZudoJxNVhng7B6wtWdzAtQOipcF1329wS44doK/BAkyP1pvgZOsrbnGXArAg34G2IsD1eMRe7bi7k5YnqFT9V0csyPedQyYD3p/Fje+hDpskq/MwpRBC6yKp2MAAAQdSURBVHja7Zn1exMxGIAPHbrhDsPdneHuNtzd3d3dIbjLh93o2o4i7TpgG1Jk0g0mMNwd/gTa5rq129reHnK5e/bk/TFNk/dJ7r5894XjGAwGg8GgTZasCpDIll1+hxw5vXLJLpEboTx5ZXbIhyzkl9fB28cqUaCgrBKFkI3CcjoUKYolihWXUSI7EihRUjaHXF52CVRKLoe8eZIdUOkyMknkRw6UlcehYAFHiXK+skgURk6Ul8OhQjFnCVRRBolKqRxQ5SzUHaqgNGSj7VCmalqJnDkoS5RF6ZCbroNvufQkUD6qEuXTdUA+3hQdqiEXVKfnUKOmK4latalJ1EEuoZZ6162HJ9x/4OChw0eOHj12/MTJU6dxG7XUu751tjNnz4ET5y9ctLZTSr0beKFLl89bpuUDrqgC1RqNWqsKuqqzNFw7e51S6u3tc+OmZUJ9kCHY6ECwOkRvab51iUrqXej2HYDQsHBjWgx3Ae7dppB6N2wEcF9jdMGDUIDGTaR2aNoM9FqjG7QmaN5CWgc/gIePjG559BigpZQOrYB/4jBfRGRUtDkmJjY6KjLCofkpD62lc2gDfMpWPIuLdwyV8XEpHgaddBZ+wBuSFcwJqSN2ovmZ/dfnOvCTxqGtwzq8SEjv4EhISn48eWgnhUP7DvDSvgzxrs6vV6+FLiro2EkCic4QKkzwJsH1KYreCp0eQhfyDl1B/w4P/xa5JVJ4U03QjbRD9x7wXlgH5IE3wmMBHXoSlugFAcI6f/AkkSi8q6HQm6xDn77wEQ8djTwSj3tqAMguRTe4ikeOQyJ4YV+KfkQl+oNW5GbY4gWOWgbwJ+kwAD6Fi90MK2ZsrIeBBCUGwRXbqJ+/iJMQliIEBhOU6AJhtlG/IpHE2bqrYQg5h6HA4yQiRqwEfkGCdTCMmMRw+IbPDCQaHCsCYAQxiZHw3TbmD/ESOHgHwShiEqPhp/gggYkSztIxxCRawy/bmEniJaJtfwiEscQkxkFgRqJESqQwwHhiEuMBp3Vm8RK/cZoHEzKXhCK2QxEPpiJe0YlKCFaKCNv/cYBNUsBRPlkJSc0U+dM7E9H0ThGJbgZT/iR7yj+VqMS06Qr4+OFm2JdCxIa8lugzkJs5K6MfxAaYPUcBpYG5khZJEkUUSb7DPCnKRfPBXj6M8FwuegoLpCgXcQszVjhbJFUJUee2hBhLoYTIcYtB57KY+opSMdVqwatSlZVj05aV//CwJLMX2DluaUcwhXm4ali2XOoLjxUrPV26zFtF4f5p0Gp310+z13BUWNvbehEXona6iAtX/zVZmtfN4WixfsNky4S6gCCVVq3RPLdfSfpv3MRRZfPoLc6Xs/5bt3EyMGzE9h07/Xft2t15z6i9+zgGg8FgMBgMBoPBYDAYDAYj8/APG67Rie8pUDsAAAAASUVORK5CYII=",r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAACcCAMAAAC3Fl5oAAAB3VBMVEVMaXH/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/EhL/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/Dw//AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/GRn/NTX/Dw//Fhb/AAD/AAD/AAD/GRn/GRn/Y2P/AAD/AAD/ExP/Ghr/AAD/AAD/MzP/GRn/AAD/Hh7/AAD/RUX/AAD/AAD/AAD/AAD/AAD/AAD/Dg7/AAD/HR3/Dw//FRX/SUn/AAD/////kJD/DQ3/Zmb/+/v/wMD/mJj/6en/vb3/1NT//Pz/ODj/+fn/3Nz/nJz/j4//9/f/7e3/9vb/7Oz/2Nj/x8f/Ozv/+Pj/3d3/nZ3/2dn//f3/6Oj/2tr/v7//09P/vr7/mZn/l5cdSvP3AAAAe3RSTlMAAhLiZgTb/vztB/JMRhlp6lQW86g8mQ4KFPs3UCH5U8huwlesWtTYGI7RsdVeJGfTW5rxnutLsvXWF8vQNdo6qQbuz7D4hgVIx2xtw8GC1TtZaIw0i84P98tU0/fsj7PKaAgiZZxeVfo8Z52eg1P0nESrENnjXVPUgw/uuSmDAAADsUlEQVR42u3aZ3cTRxgF4GtbYleSLdnGcsENG2ODjbExEHrvhAQCIb1Bem+QdkeuuFMNBBJIfmuOckzZI8/srHYmH3Lm+QNXK632LTvQ03Tu/IWeU/tTGTKT2n+q58L5c00wpXJd47DHEt5w47pKxLbhdLdPKb/7dBYxVLxw1GcI/2h1BcpzKNFHLX2JQ4gumaiitqpEEhEdOMJI9h5AFC3feYzI+7IF2tpSLEOqDXpObPRYFm/jCWho/4Ble7MdoT7fzhhq9yHEz28wltU1UPrJZ0wd66HwicfYvEFIfePTAP8tSLTupBHvtGJFH9bSkNrNWEHzERrT34xSH9Ogr1CijkbVAUH1KRqVqkdQAw07iIAaGlcTqI+/0LjeJJ5J0IIEnkpXMdzs4sTtW9dnZq7fuj2xOMtwVWk88RHDjBYejYvnjD8qjOpfQsUqhvj7oSjxcJIhVj3pyKqpNjYvVjQ/RrXq5YABKi3MCYm5BSrtWO5v11DlmlC4RpU1WRS9SJU7QukOVbpQ9JLu549+Dd0AUOlTbkGEuk85vxLAK5QbuytC3R2j3HoAjZSbFxrmKTcCoJdSk0LLJKV6gSaPMqNTQsvUKGW8JrxKqUWhaZFSeWyh1LTQNE2pHF6mzOy40DQ+S5mLimJcENoKlOnBWsr8KbRNUGYt5LXgd6HtD3lNQIoyN4S2G5RJIUOZm0LbTcqsBqVmhLYZSlkPsP4VWf+Rrd+m1v9o9h8Vv5p42C1R5qL1x7WRglOgVN52yfwNOBu76P+lLPoYidu23KPciIHGa07ZeIW1jvcNtI7q5vexCPGYCmf+m/Y9a3sAwQ5bI9T7ukPgPcn9GToEao+xk1OixJT+GIsvNAbx6eAgPq0xiF+KtkpYKhRXCQ8eFFcJhSWGu3rZ8jJkCM8kz9K4TUnrC6mAgzTsB9tLwQ2W15qfosQ2GrQNpZr7aczbzVjBZsvLcaC1g0bsbIVEnU8DOr6H1KDH2LwtUBi0/JII6Dxm9zUXkH+XMWzfh1Dte1i2Pe3QkC77Zel7aehpO8wyHG6Dtt0NjKxhN6I4uSli/TqJiJJDUQ4NDCURXTrXRy1XcumyD24M+AzhD1RXIIZsl/LoyZmurJHDM7s8lvB2FQ/PmPJ6PseAXP5HGMYAAC7ABbgAF+ACXIALcAEuwAW4ABfgAlyAC3ABLsAFuID/d8Cx4NEt8/byOf0wLnis8zjMq9/Kp7bWw4JOj8u8TlhRl+G/Mp2wpOX48GffvvZ1CyL4B53LAS6zb08EAAAAAElFTkSuQmCC",a={QQ:"qq",GOOGLE:"google",UNKNOWN:""};function o(){var e=a.UNKNOWN,t="";return __uniConfig.qqMapKey?(e=a.QQ,t=__uniConfig.qqMapKey):__uniConfig.googleMapKey&&(e=a.GOOGLE,t=__uniConfig.googleMapKey),{type:e,key:t}}},6389:function(t,n){t.exports=e},"639e":function(e,t,n){"use strict";var i=n("15ff"),r=n.n(i);r.a},6428:function(e,t,n){"use strict";var i=n("f756"),r=n.n(i);r.a},6481:function(e,t,n){"use strict";n.r(t),n.d(t,"base64ToArrayBuffer",(function(){return i})),n.d(t,"arrayBufferToBase64",(function(){return r}));var i=[{name:"base64",type:String,required:!0}],r=[{name:"arrayBuffer",type:[ArrayBuffer,Uint8Array],required:!0}]},6491:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-radio",e._g({attrs:{disabled:e.disabled},on:{click:e._onClick}},e.$listeners),[n("div",{staticClass:"uni-radio-wrapper"},[n("div",{staticClass:"uni-radio-input",class:e.radioChecked?"uni-radio-input-checked":"",style:e.radioChecked?e.checkedStyle:""}),e._t("default")],2)])},r=[],a=n("8af1"),o={name:"Radio",mixins:[a["a"],a["f"]],props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007AFF"},value:{type:String,default:""}},data:function(){return{radioChecked:this.checked,radioValue:this.value}},computed:{checkedStyle:function(){return"background-color: ".concat(this.color,";border-color: ").concat(this.color,";")}},watch:{checked:function(e){this.radioChecked=e},value:function(e){this.radioValue=e}},listeners:{"label-click":"_onClick","@label-click":"_onClick"},created:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"add",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"remove",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onClick:function(e){this.disabled||this.radioChecked||(this.radioChecked=!0,this.$dispatch("RadioGroup","uni-radio-change",e,this))},_resetFormData:function(){this.radioChecked=this.min}}},s=o,u=(n("c96e"),n("2877")),c=Object(u["a"])(s,i,r,!1,null,null,null);t["default"]=c.exports},"64d0":function(e,t,n){"use strict";var i=n("c0e5"),r=n.n(i);r.a},6575:function(e,t,n){"use strict";n.r(t),function(e){function i(t,n){var i=t.latitude,r=t.longitude,a=t.scale,o=t.name,s=t.address,u=e,c=u.invokeCallbackHandler;getApp().$router.push({type:"navigateTo",path:"/open-location",query:{latitude:i,longitude:r,scale:a,name:o,address:s}},(function(){c(n,{errMsg:"openLocation:ok"})}),(function(){c(n,{errMsg:"openLocation:fail"})}))}n.d(t,"openLocation",(function(){return i}))}.call(this,n("0dd1"))},"65a8":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return o}));var i=44,r=50,a=768,o="UNI_LOCALE"},6730:function(e,t,n){"use strict";var i=n("00b2"),r=n.n(i);r.a},"68fb":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"createMediaQueryObserver",(function(){return d}));var i=n("62b5"),r=n("db70"),a=n("1634");function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}var c=Object(i["a"])("requestMediaQueryObserver"),l=function(){function t(e,n){o(this,t),this.pageId=e.$page&&e.$page.id,this.component=e._$id||e,this.options=n}return u(t,[{key:"observe",value:function(t,n){"function"===typeof n&&(this.options=t,this.reqId=c.push(n),e.publishHandler("requestMediaQueryObserver",{reqId:this.reqId,component:this.component,options:this.options},Object(a["a"])(this.component)?this.component:this.pageId))}},{key:"disconnect",value:function(){e.publishHandler("destroyMediaQueryObserver",{reqId:this.reqId},Object(a["a"])(this.component)?this.component:this.pageId)}}]),t}();function d(e,t){return e._isVue||(t=e,e=null),new l(e||Object(r["b"])("createMediaQueryObserver"),t)}}.call(this,n("0dd1"))},"69c3":function(e,t,n){},"6bdf":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var i=n("85b6"),r=n("a470"),a=n("db8e");function o(e){var t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){var n=document.documentElement,i=document.body;t.scrollLeft=n.scrollLeft||i.scrollLeft||0,t.scrollTop=n.scrollTop||i.scrollTop||0,t.scrollHeight=n.scrollHeight||i.scrollHeight||0,t.scrollWidth=n.scrollWidth||i.scrollWidth||0}return t}function s(e,t){var n={},a=Object(r["a"])(),o=a.top;if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=Object(i["b"])(e)),t.rect||t.size){var s=e.getBoundingClientRect();t.rect&&(n.left=s.left,n.right=s.right,n.top=s.top-o,n.bottom=s.bottom-o),t.size&&(n.width=s.width,n.height=s.height)}if(Array.isArray(t.properties)&&t.properties.forEach((function(e){e=e.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}))})),t.scrollOffset&&("UNI-SCROLL-VIEW"===e.tagName&&e.__vue__&&e.__vue__.getScrollPosition?Object.assign(n,e.__vue__.getScrollPosition()):(n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0)),Array.isArray(t.computedStyle)){var u=getComputedStyle(e);t.computedStyle.forEach((function(e){n[e]=u[e]}))}return t.context&&e.__vue__&&e.__vue__._getContextInfo&&(n.context=e.__vue__._getContextInfo()),n}function u(e,t,n,i,r){var o=Object(a["a"])(Object(a["b"])(t,e));if(!o||o&&8===o.nodeType)return i?null:[];if(i){var u=o.matches(n)?o:o.querySelector(n);return u?s(u,r):null}var c=[],l=o.querySelectorAll(n);return l&&l.length&&(c=[].map.call(l,(function(e){return s(e,r)}))),o.matches(n)&&c.unshift(s(o,r)),c}function c(t,n){var i,r=t.reqId,a=t.reqs;if(n._isVue)i=n;else{var s=getCurrentPages(),c=s.find((function(e){return e.$page.id===n}));if(!c)throw new Error("Not Found:Page[".concat(n,"]"));i=c.$vm}var l=[];a.forEach((function(e){var t=e.component,n=e.selector,r=e.single,a=e.fields;0===t?l.push(o(a)):l.push(u(i,t,n,r,a))})),e.publishHandler("onRequestComponentInfo",{reqId:r,res:l})}}).call(this,n("501c"))},"6e0c":function(e,t,n){"use strict";n.r(t),n.d(t,"$on",(function(){return s})),n.d(t,"$off",(function(){return u})),n.d(t,"$once",(function(){return c})),n.d(t,"$emit",(function(){return l}));var i=n("8bbf"),r=n.n(i),a=new r.a;function o(e,t,n){return e[t].apply(e,n)}function s(){return o(a,"$on",Array.prototype.slice.call(arguments))}function u(){return o(a,"$off",Array.prototype.slice.call(arguments))}function c(){return o(a,"$once",Array.prototype.slice.call(arguments))}function l(){return o(a,"$emit",Array.prototype.slice.call(arguments))}},"6fa7":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-picker",e._g({attrs:{disabled:e.disabled},on:{click:e._show}},e.$listeners),[n("div",{ref:"picker",staticClass:"uni-picker-container",class:"uni-"+e.mode+"-"+e.selectorTypeComputed,on:{wheel:function(e){e.preventDefault()},touchmove:function(e){e.preventDefault()}}},[n("transition",{attrs:{name:"uni-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"uni-mask uni-picker-mask",on:{click:e._cancel,mousemove:e._fixInputPosition}})]),e.system?e._e():n("div",{staticClass:"uni-picker-custom",class:{"uni-picker-toggle":e.visible},style:e.popupStyle.content},[n("div",{staticClass:"uni-picker-header",on:{click:function(e){e.stopPropagation()}}},[n("div",{staticClass:"uni-picker-action uni-picker-action-cancel",on:{click:e._cancel}},[e._v(" "+e._s(e.$$t("uni.picker.cancel"))+" ")]),n("div",{staticClass:"uni-picker-action uni-picker-action-confirm",on:{click:e._change}},[e._v(" "+e._s(e.$$t("uni.picker.done"))+" ")])]),e.contentVisible?n("v-uni-picker-view",{staticClass:"uni-picker-content",attrs:{value:e._l10nColumn(e.valueArray)},on:{change:e._pickerViewChange}},e._l(e._l10nColumn(e.rangeArray),(function(t,i){return n("v-uni-picker-view-column",{key:i},e._l(t,(function(t,r){return n("div",{key:r,staticClass:"uni-picker-item"},[e._v(" "+e._s("object"===typeof t?t[e.rangeKey]||"":e._l10nItem(t,i))+" ")])})),0)})),1):e._e(),n("div",{ref:"select",staticClass:"uni-picker-select",on:{wheel:function(e){e.stopPropagation()},touchmove:function(e){e.stopPropagation()}}},e._l(e.rangeArray[0],(function(t,i){return n("div",{key:i,staticClass:"uni-picker-item",class:{selected:e.valueArray[0]===i},on:{click:function(t){e.valueArray[0]=i,e._change()}}},[e._v(" "+e._s("object"===typeof t?t[e.rangeKey]||"":t)+" ")])})),0),n("div",{style:e.popupStyle.triangle})],1)],1),n("div",[e._t("default")],2),e.system?n("div",{staticClass:"uni-picker-system",on:{mousemove:e._fixInputPosition}},[n("input",{ref:"input",class:[e.system,e.popupStyle.dock],attrs:{type:e.mode,tabindex:"-1",min:e.start,max:e.end},domProps:{value:e.valueSync},on:{change:function(t){return t.stopPropagation(),e._input(t)}}})]):e._e(),n("keypress",{attrs:{disable:!e.visible},on:{esc:e._cancel,enter:e._change}})],1)},r=[],a=n("8af1"),o=n("f2b3"),s=n("4ccd"),u=n("da71"),c=n("a6b0");function l(e){return p(e)||f(e)||h(e)||d()}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,t){if(e){if("string"===typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function f(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function p(e){if(Array.isArray(e))return m(e)}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function g(){if(this.mode===y.TIME)return"00:00";if(this.mode===y.DATE){var e=(new Date).getFullYear()-100;switch(this.fields){case b.YEAR:return e.toString();case b.MONTH:return e+"-01";default:return e+"-01-01"}}return""}function v(){if(this.mode===y.TIME)return"23:59";if(this.mode===y.DATE){var e=(new Date).getFullYear()+100;switch(this.fields){case b.YEAR:return e.toString();case b.MONTH:return e+"-12";default:return e+"-12-31"}}return""}var y={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},b={YEAR:"year",MONTH:"month",DAY:"day"},_={PICKER:"picker",SELECT:"select"},T={name:"Picker",components:{keypress:u["a"]},mixins:[c["c"],a["a"],s["default"]],props:{name:{type:String,default:""},range:{type:Array,default:function(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:y.SELECTOR,validator:function(e){return Object.values(y).includes(e)}},fields:{type:String,default:""},start:{type:String,default:g},end:{type:String,default:v},disabled:{type:[Boolean,String],default:!1},selectorType:{type:String,default:""}},data:function(){return{valueSync:null,visible:!1,contentVisible:!1,popover:null,valueChangeSource:"",timeArray:[],dateArray:[],valueArray:[],oldValueArray:[]}},computed:{rangeArray:function(){var e=this.range;switch(this.mode){case y.SELECTOR:return[e];case y.MULTISELECTOR:return e;case y.TIME:return this.timeArray;case y.DATE:var t=this.dateArray;switch(this.fields){case b.YEAR:return[t[0]];case b.MONTH:return[t[0],t[1]];default:return[t[0],t[1],t[2]]}}return[]},startArray:function(){return this._getDateValueArray(this.start,g.bind(this)())},endArray:function(){return this._getDateValueArray(this.end,v.bind(this)())},selectorTypeComputed:function(){var e=this.selectorType;return Object.values(_).includes(e)?e:0===String(navigator.vendor).indexOf("Apple")&&navigator.maxTouchPoints>0?_.PICKER:_.SELECT},system:function(){if(this.mode===y.DATE&&!Object.values(b).includes(this.fields)&&this.isDesktop&&/win|mac/i.test(navigator.platform)){if("Google Inc."===navigator.vendor)return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""}},watch:{visible:function(e){var t=this;e?(clearTimeout(this.__contentVisibleDelay),this.contentVisible=e,this._select()):this.__contentVisibleDelay=setTimeout((function(){t.contentVisible=e}),300)},value:function(){this._setValueSync()},mode:function(){this._setValueSync()},range:function(){this._setValueSync()},valueSync:function(){this._setValueArray()},valueArray:function(e){var t=this;if(this.mode===y.TIME||this.mode===y.DATE){var n=this.mode===y.TIME?this._getTimeValue:this._getDateValue,i=this.valueArray,r=this.startArray,a=this.endArray;if(this.mode===y.DATE){var o=this.dateArray,s=o[2].length,u=Number(o[2][i[2]])||1,c=new Date("".concat(o[0][i[0]],"/").concat(o[1][i[1]],"/").concat(u)).getDate();c<u&&(i[2]-=c+s-u)}n(i)<n(r)?this._cloneArray(i,r):n(i)>n(a)&&this._cloneArray(i,a)}e.forEach((function(e,n){e!==t.oldValueArray[n]&&(t.oldValueArray[n]=e,t.mode===y.MULTISELECTOR&&t.$trigger("columnchange",{},{column:n,value:e}))}))}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this}),this._createTime(),this._createDate(),this._setValueSync()},beforeDestroy:function(){this.$refs.picker.remove(),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_show:function(e){var t=this;if(!this.disabled){this.valueChangeSource="";var n=this.$refs.picker;n.remove(),(document.querySelector("uni-app")||document.body).appendChild(n),n.style.display="block";var i=e.currentTarget.getBoundingClientRect();this.popover={top:i.top,left:i.left,width:i.width,height:i.height},setTimeout((function(){t.visible=!0}),20)}},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){switch(this.mode){case y.SELECTOR:this.valueSync=0;break;case y.MULTISELECTOR:this.valueSync=this.value.map((function(e){return 0}));break;case y.DATE:case y.TIME:this.valueSync="";break;default:break}},_createTime:function(){var e=[],t=[];e.splice(0,e.length);for(var n=0;n<24;n++)e.push((n<10?"0":"")+n);t.splice(0,t.length);for(var i=0;i<60;i++)t.push((i<10?"0":"")+i);this.timeArray.push(e,t)},_createDate:function(){for(var e=[],t=(new Date).getFullYear(),n=t-150,i=t+150;n<=i;n++)e.push(String(n));for(var r=[],a=1;a<=12;a++)r.push((a<10?"0":"")+a);for(var o=[],s=1;s<=31;s++)o.push((s<10?"0":"")+s);this.dateArray.push(e,r,o)},_getTimeValue:function(e){return 60*e[0]+e[1]},_getDateValue:function(e){var t=31;return e[0]*t*12+(e[1]||0)*t+(e[2]||0)},_cloneArray:function(e,t){for(var n=0;n<e.length&&n<t.length;n++)e[n]=t[n]},_setValueSync:function(){var e=this.value;switch(this.mode){case y.MULTISELECTOR:Array.isArray(e)||(e=this.valueArray),Array.isArray(this.valueSync)||(this.valueSync=[]);for(var t=this.valueSync.length=Math.max(e.length,this.range.length),n=0;n<t;n++){var i=Number(e[n]),r=Number(this.valueSync[n]),a=isNaN(i)?isNaN(r)?0:r:i,o=this.range[n]?this.range[n].length-1:0;this.valueSync.splice(n,1,a<0||a>o?0:a)}break;case y.TIME:case y.DATE:this.valueSync=String(e);break;default:var s=Number(e);this.valueSync=s<0?0:s;break}},_setValueArray:function(){var e,t=this.valueSync;switch(this.mode){case y.MULTISELECTOR:e=l(t);break;case y.TIME:e=this._getDateValueArray(t,Object(o["g"])({mode:y.TIME}));break;case y.DATE:e=this._getDateValueArray(t,Object(o["g"])({mode:y.DATE}));break;default:e=[t];break}this.oldValueArray=l(e),this.valueArray=l(e)},_getValue:function(){var e=this,t=this.valueArray;switch(this.mode){case y.SELECTOR:return t[0];case y.MULTISELECTOR:return t.map((function(e){return e}));case y.TIME:return this.valueArray.map((function(t,n){return e.timeArray[n][t]})).join(":");case y.DATE:return this.valueArray.map((function(t,n){return e.dateArray[n][t]})).join("-")}},_getDateValueArray:function(e,t){var n,i=this.mode===y.DATE?"-":":",r=this.mode===y.DATE?this.dateArray:this.timeArray;if(this.mode===y.TIME)n=2;else switch(this.fields){case b.YEAR:n=1;break;case b.MONTH:n=2;break;default:n=3;break}for(var a=String(e).split(i),o=[],s=0;s<n;s++){var u=a[s];o.push(r[s].indexOf(u))}return o.indexOf(-1)>=0&&(o=t?this._getDateValueArray(t):o.map((function(){return 0}))),o},_change:function(){this._close(),this.valueChangeSource="click";var e=this._getValue();this.valueSync=Array.isArray(e)?e.map((function(e){return e})):e,this.$trigger("change",{},{value:e})},_cancel:function(e){if("firefox"===this.system){var t=this.popover,n=t.top,i=t.left,r=t.width,a=t.height,o=e.pageX,s=e.pageY;if(o>i&&o<i+r&&s>n&&s<n+a)return}this._close(),this.$trigger("cancel",{},{})},_close:function(){var e=this;this.visible=!1,setTimeout((function(){var t=e.$refs.picker;t.remove(),e.$el.prepend(t),t.style.display="none"}),260)},_select:function(){this.mode===y.SELECTOR&&this.selectorTypeComputed===_.SELECT&&(this.$refs.select.scrollTop=34*this.valueArray[0])},_input:function(e){var t=this;this.valueSync=e.target.value,this.$nextTick((function(){t._change()}))},_fixInputPosition:function(e){if("chrome"===this.system){var t=this.$el.getBoundingClientRect(),n=this.$refs.input.style,i=32;n.left="".concat(e.clientX-t.left-1.5*i,"px"),n.top="".concat(e.clientY-t.top-.5*i,"px")}},_pickerViewChange:function(e){this.valueArray=this._l10nColumn(e.detail.value,!0)},_l10nColumn:function(e,t){if(this.mode===y.DATE){var n=Object(c["a"])();if(!n.startsWith("zh"))switch(this.fields){case b.YEAR:return e;case b.MONTH:return[e[1],e[0]];default:switch(n){case"es":case"fr":return[e[2],e[1],e[0]];default:return t?[e[2],e[0],e[1]]:[e[1],e[2],e[0]]}}}return e},_l10nItem:function(e,t){if(this.mode===y.DATE){var n=Object(c["a"])();if(n.startsWith("zh")){var i=["年","月","日"];return e+i[t]}if(this.fields!==b.YEAR&&t===(this.fields===b.MONTH||"es"!==n&&"fr"!==n?0:1)){var r;switch(n){case"es":r=["enero","febrero","marzo","abril","mayo","junio","​​julio","agosto","septiembre","octubre","noviembre","diciembre"];break;case"fr":r=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"];break;default:r=["January","February","March","April","May","June","July","August","September","October","November","December"];break}return r[Number(e)-1]}}return e}}},w=T,S=(n("2d89"),n("2877")),k=Object(S["a"])(w,i,r,!1,null,null,null);t["default"]=k.exports},"70bb":function(e,t,n){"use strict";n.r(t),n.d(t,"openLocation",(function(){return i}));var i={latitude:{type:Number,required:!0},longitude:{type:Number,required:!0},scale:{type:Number,validator:function(e,t){e=Math.floor(e),t.scale=e>=5&&e<=18?e:18},default:18},name:{type:String},address:{type:String}}},"70f4":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-label",e._g({class:{"uni-label-pointer":e.pointer},on:{click:e._onClick}},e.$listeners),[e._t("default")],2)},r=[],a=n("f2ce"),o=a["a"],s=(n("6730"),n("2877")),u=Object(s["a"])(o,i,r,!1,null,null,null);t["default"]=u.exports},7107:function(e,t,n){"use strict";(function(e){function i(t){var n=t.options,i=t.callbackId,r=n.family,a=n.source,o=n.desc,s=void 0===o?{}:o,u=document.fonts;if(u){var c=new FontFace(r,a,s);c.load().then((function(){u.add(c),e.publishHandler("onLoadFontFaceCallback",{callbackId:i,data:{errMsg:"loadFontFace:ok"}})})).catch((function(t){e.publishHandler("onLoadFontFaceCallback",{callbackId:i,data:{errMsg:"loadFontFace:fail ".concat(t)}})}))}else{var l=document.createElement("style");l.innerText='@font-face{font-family:"'.concat(r,'";src:').concat(a,";font-style:").concat(s.style,";font-weight:").concat(s.weight,";font-stretch:").concat(s.stretch,";unicode-range:").concat(s.unicodeRange,";font-variant:").concat(s.variant,";font-feature-settings:").concat(s.featureSettings,";}"),document.head.appendChild(l),e.publishHandler("onLoadFontFaceCallback",{callbackId:i,data:{errMsg:"loadFontFace:ok"}})}}n.d(t,"a",(function(){return i}))}).call(this,n("501c"))},"72ad":function(e,t,n){},"72b3":function(e,t,n){"use strict";function i(e,t,n){return e>t-n&&e<t+n}function r(e,t){return i(e,0,t)}function a(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}n.d(t,"a",(function(){return a})),a.prototype._solve=function(e,t){var n=this._c,i=this._m,r=this._k,a=n*n-4*i*r;if(0===a){var o=-n/(2*i),s=e,u=t/(o*e);return{x:function(e){return(s+u*e)*Math.pow(Math.E,o*e)},dx:function(e){var t=Math.pow(Math.E,o*e);return o*(s+u*e)*t+u*t}}}if(a>0){var c=(-n-Math.sqrt(a))/(2*i),l=(-n+Math.sqrt(a))/(2*i),d=(t-c*e)/(l-c),h=e-d;return{x:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,c*e)),n||(n=this._powER2T=Math.pow(Math.E,l*e)),h*t+d*n},dx:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,c*e)),n||(n=this._powER2T=Math.pow(Math.E,l*e)),h*c*t+d*l*n}}}var f=Math.sqrt(4*i*r-n*n)/(2*i),p=-n/2*i,m=e,g=(t-p*e)/f;return{x:function(e){return Math.pow(Math.E,p*e)*(m*Math.cos(f*e)+g*Math.sin(f*e))},dx:function(e){var t=Math.pow(Math.E,p*e),n=Math.cos(f*e),i=Math.sin(f*e);return t*(g*f*n-m*f*i)+p*t*(g*i+m*n)}}},a.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},a.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},a.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!r(t,.4)){t=t||0;var i=this._endPosition;this._solution&&(r(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),r(t,.4)&&(t=0),r(i,.4)&&(i=0),i+=this._endPosition),this._solution&&r(i-e,.4)&&r(t,.4)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=n)}},a.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},a.prototype.done=function(e){return e||(e=(new Date).getTime()),i(this.x(),this._endPosition,.4)&&r(this.dx(),.4)},a.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},a.prototype.springConstant=function(){return this._k},a.prototype.damping=function(){return this._c},a.prototype.configuration=function(){function e(e,t){e.reconfigure(1,t,e.damping())}function t(e,t){e.reconfigure(1,e.springConstant(),t)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:e.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:t.bind(this,this),min:1,max:500}]}},"738e":function(e,t,n){"use strict";(function(e){var i=n("8af1"),r=n("31c6"),a=n("453f"),o=n("636c");function s(e){return"getLat"in e?e.getLat():e.lat()}function u(e){return"getLng"in e?e.getLng():e.lng()}t["a"]={name:"Map",components:{mapMarker:a["a"]},mixins:[i["g"]],props:{id:{type:String,default:""},latitude:{type:[String,Number],default:39.92},longitude:{type:[String,Number],default:116.46},scale:{type:[String,Number],default:16},markers:{type:Array,default:function(){return[]}},covers:{type:Array,default:function(){return[]}},includePoints:{type:Array,default:function(){return[]}},polyline:{type:Array,default:function(){return[]}},circles:{type:Array,default:function(){return[]}},controls:{type:Array,default:function(){return[]}},showLocation:{type:[Boolean,String],default:!1},libraries:{type:Array,default:function(){return[]}}},data:function(){return{center:{latitude:116.46,longitude:116.46},isMapReady:!1,isBoundsReady:!1,polylineSync:[],circlesSync:[],controlsSync:[]}},watch:{latitude:function(){this.centerChange()},longitude:function(){this.centerChange()},scale:function(e){var t=this;this.mapReady((function(){t._map.setZoom(Number(e)||16)}))},polyline:function(e){var t=this;this.mapReady((function(){t.createPolyline()}))},circles:function(){var e=this;this.mapReady((function(){e.createCircles()}))},controls:function(){var e=this;this.mapReady((function(){e.createControls()}))},includePoints:function(){var e=this;this.mapReady((function(){e.fitBounds(e.includePoints)}))},showLocation:function(e){var t=this;this.mapReady((function(){t[e?"createLocation":"removeLocation"]()}))}},created:function(){this._markers={};var e=this.latitude,t=this.longitude;e&&t&&(this.center.latitude=e,this.center.longitude=t)},mounted:function(){var e=this;Object(r["a"])(this.libraries,(function(t){e._maps=t,e.init()}))},beforeDestroy:function(){this.removePolyline(),this.removeCircles(),this.removeControls(),this.removeLocation()},methods:{_handleSubscribe:function(e){var t=this,n=e.type,i=e.data,r=void 0===i?{}:i,a=this._maps;function o(e,t){e=e||{},e.errMsg="".concat(n,":").concat(t?"fail"+t:"ok");var i=t?r.fail:r.success;"function"===typeof i&&i(e),"function"===typeof r.complete&&r.complete(e)}switch(n){case"getCenterLocation":this.mapReady((function(){var e,n,i=t._map.getCenter();e=s(i),n=u(i),o({latitude:e,longitude:n})}));break;case"moveToLocation":var c=r.latitude,l=r.longitude,d=c&&l?new a.LatLng(c,l):this._locationPosition;d&&(this._map.setCenter(d),o({}));break;case"translateMarker":this.mapReady((function(){try{var e=t.getMarker(r.markerId),n=r.destination,i=r.duration,s=!!r.autoRotate,u=Number(r.rotate)?r.rotate:0,c=0;"getRotation"in e&&(c=e.getRotation());var l=e.getPosition(),d=new a.LatLng(n.latitude,n.longitude),h=a.geometry.spherical.computeDistanceBetween(l,d)/1e3,f=("number"===typeof i?i:1e3)/36e5,p=h/f,m=a.event.addListener(e,"moving",(function(t){var n=t.latLng,i=e.label;i&&i.setPosition(n);var r=e.callout;r&&r.setPosition(n)})),g=a.event.addListener(e,"moveend",(function(t){g.remove(),m.remove(),e.lastPosition=l,e.setPosition(d);var n=e.label;n&&n.setPosition(d);var i=e.callout;i&&i.setPosition(d);var a=r.animationEnd;"function"===typeof a&&a()})),v=0;s&&(e.lastPosition&&(v=a.geometry.spherical.computeHeading(e.lastPosition,l)),u=a.geometry.spherical.computeHeading(l,d)-v),"setRotation"in e&&e.setRotation(c+u),"moveTo"in e?e.moveTo(d,p):(e.setPosition(d),a.event.trigger(e,"moveend",{}))}catch(y){o(null,y)}}));break;case"includePoints":this.fitBounds(r.points);break;case"getRegion":this.boundsReady((function(){var e=t._map.getBounds(),n=e.getSouthWest(),i=e.getNorthEast();o({southwest:{latitude:s(n),longitude:u(n)},northeast:{latitude:s(i),longitude:u(i)}})}));break;case"getScale":this.mapReady((function(){o({scale:t._map.getZoom()})}));break}},init:function(){var e=this,t=this._maps,n=new t.LatLng(this.center.latitude,this.center.longitude),i=this._map=new t.Map(this.$refs.map,{center:n,zoom:Number(this.scale),disableDoubleClickZoom:!0,mapTypeControl:!1,zoomControl:!1,scaleControl:!1,panControl:!1,fullscreenControl:!1,streetViewControl:!1,keyboardShortcuts:!1,minZoom:5,maxZoom:18,draggable:!0}),r=t.event.addListener(i,"bounds_changed",(function(t){r.remove(),e.isBoundsReady=!0,e.$emit("boundsready")}));function a(){var e=i.getCenter();return{scale:i.getZoom(),centerLocation:{latitude:s(e),longitude:u(e)}}}t.event.addListener(i,"click",(function(){e.$trigger("click",{},{})})),t.event.addListener(i,"dragstart",(function(){e.$trigger("regionchange",{},{type:"begin",causedBy:"gesture"})})),t.event.addListener(i,"dragend",(function(){e.$trigger("regionchange",{},Object.assign({type:"end",causedBy:"drag"},a()))})),t.event.addListener(i,"zoom_changed",(function(){e.$emit("update:scale",i.getZoom()),e.$trigger("regionchange",{},Object.assign({type:"end",causedBy:"scale"},a()))})),t.event.addListener(i,"center_changed",(function(){var t,n,r=i.getCenter();t=s(r),n=u(r),e.$emit("update:latitude",t),e.$emit("update:longitude",n)})),this.polyline&&Array.isArray(this.polyline)&&this.polyline.length&&this.createPolyline(),this.circles&&Array.isArray(this.circles)&&this.circles.length&&this.createCircles(),this.controls&&Array.isArray(this.controls)&&this.controls.length&&this.createControls(),this.showLocation&&this.createLocation(),this.includePoints&&Array.isArray(this.includePoints)&&this.includePoints.length&&this.fitBounds(this.includePoints,(function(){i.setCenter(n)})),this.isMapReady=!0,this.$emit("mapready")},centerChange:function(){var e=this,t=this._maps,n=Number(this.latitude),i=Number(this.longitude);n===this.center.latitude&&i===this.center.longitude||(this.center.latitude=n,this.center.longitude=i,this._map&&this.mapReady((function(){e._map.setCenter(new t.LatLng(n,i))})))},createPolyline:function(){var e=this._maps,t=this._map,n=this.polylineSync;this.removePolyline(),this.polyline.forEach((function(i){var r=[];if(i.points.forEach((function(t){r.push(new e.LatLng(t.latitude,t.longitude))})),i.borderWidth){var a=new e.Polyline({map:t,clickable:!1,path:r,strokeWeight:i.width+i.borderWidth,strokeColor:i.borderColor,strokeDashStyle:i.dottedLine?"dash":"solid"});n.push(a)}var o=new e.Polyline({map:t,clickable:!1,path:r,strokeWeight:i.width,strokeColor:i.color,strokeDashStyle:i.dottedLine?"dash":"solid"});n.push(o)}))},removePolyline:function(){var e=this.polylineSync;e.forEach((function(e){e.setMap(null)})),e.splice(0,e.length)},createCircles:function(){var e=this._maps,t=this._map,n=this.circlesSync;this.removeCircles(),this.circles.forEach((function(i){var r=new e.LatLng(i.latitude,i.longitude);function a(t){var n=t&&t.match(/#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?/);return"Color"in e?n&&n.length?e.Color.fromHex(n[0],Number("0x"+n[1]||!1)/255):void 0:t}var o=new e.Circle({map:t,center:r,clickable:!1,radius:i.radius,strokeWeight:Number(i.strokeWidth)||1,fillColor:a(i.fillColor)||a("#00000001"),strokeColor:a(i.color)||"#000000",strokeDashStyle:"solid"});n.push(o)}))},removeCircles:function(){var e=this.circlesSync;e.forEach((function(e){e.setMap(null)})),e.splice(0,e.length)},createControls:function(){var e=this,t=this._maps,n=this,i=this._map,r=this.controlsSync;this.removeControls(),this.controls.forEach((function(a){var o=a.position||{},s=document.createElement("div"),u=new Image;s.appendChild(u);var c=s.style;c.position="absolute",c.width=0,c.height=0,u.onload=function(){a.position.width&&(u.width=a.position.width),a.position.height&&(u.height=a.position.height);var e=u.style;e.position="absolute",e.left=(o.left||0)+"px",e.top=(o.top||0)+"px",e.maxWidth="initial"},u.src=e.$getRealPath(a.iconPath),u.onclick=function(e){a.clickable&&n.$trigger("controltap",e,{controlId:a.id})},i.controls[t.ControlPosition.TOP_LEFT].push(s),r.push(s)}))},removeControls:function(){var e=this.controlsSync;e.forEach((function(e){e.remove()})),e.splice(0,e.length)},createLocation:function(){var t=this,n=this._maps,i=this._map,r=this._location;r&&this.removeLocation(),uni.getLocation({type:"gcj02",success:function(e){if(r===t._location){var a=new n.LatLng(e.latitude,e.longitude);r=new n.Marker({position:a,map:i,icon:new n.MarkerImage(o["a"],null,null,new n.Point(22,22),new n.Size(44,44)),flat:!0,rotation:0}),t._location=r,s(),t.__onCompassChange=function(e){r.setRotation(e.direction)},uni.onCompassChange(t.__onCompassChange)}},fail:function(t){e.error(t)}});var a=this;function s(){r===a._location&&setTimeout((function(){uni.getLocation({type:"gcj02",success:function(e){var t=a._locationPosition=new n.LatLng(e.latitude,e.longitude);r.setPosition(t)},fail:function(t){e.error(t)},complete:function(){s()}})}),3e4)}},removeLocation:function(){var e=this._location;e&&(e.setMap(null),this._location=null,this._locationPosition=null,uni.offCompassChange(this.__onCompassChange))},fitBounds:function(e,t){var n=this,i=this._maps;this.boundsReady((function(){var r=n._map,a=new i.LatLngBounds;e.forEach((function(e){var t=e.longitude,n=e.latitude,r=new i.LatLng(n,t);a.extend(r)})),r.fitBounds(a),"function"===typeof t&&t()}))},mapReady:function(e){this.isMapReady?e():this.$once("mapready",(function(){e()}))},boundsReady:function(e){this.isBoundsReady?e():this.$once("boundsready",(function(){e()}))},getMarker:function(e){var t=this._markers[e];if(!t)throw new Error("translateMarker: fail cannot find marker with id "+e);return t}}}}).call(this,n("3ad9")["default"])},7572:function(e,t,n){},"764a":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var i=n("f2b3"),r=n("85b6"),a=n("65a8"),o=n("33ed"),s=!!i["q"]&&{passive:!1};function u(t){if(uni.canIUse("css.var")){var n=parseFloat(__uniConfig.tabBar.height),i=t.$parent.$parent,r=i.navigationBar.type,o="default"===r||"float"===r?a["a"]:0,s=getApp().$children[0].showTabBar?isNaN(n)?a["c"]:n:0,u=uni.canIUse("css.env")?"env":uni.canIUse("css.constant")?"constant":"",c=o&&u?"calc(".concat(o,"px + ").concat(u,"(safe-area-inset-top))"):"".concat(o,"px"),l=s&&u?"calc(".concat(s,"px + ").concat(u,"(safe-area-inset-bottom))"):"".concat(s,"px"),d=document.documentElement.style;d.setProperty("--window-top","calc(var(--top-window-height) + ".concat(c,")")),d.setProperty("--window-bottom",l),e.debug("".concat(t.$page.route,"[").concat(t.$page.id,"]:--window-top=").concat(c)),e.debug("".concat(t.$page.route,"[").concat(t.$page.id,"]:--window-bottom=").concat(l))}}function c(e){var t=!1,n=!1;e("onPageLoad",(function(e){u(e)})),e("onPageShow",(function(e){var a=e.$parent.$parent;e._isMounted&&u(e),n&&document.removeEventListener("touchmove",n,s),a.disableScroll&&(n=o["b"],document.addEventListener("touchmove",n,s));var c=Object(r["c"])(e.$options,"onPageScroll"),l=Object(r["c"])(e.$options,"onReachBottom"),d=a.onReachBottomDistance,h=Object(i["l"])(a.titleNView)&&"transparent"===a.titleNView.type||Object(i["l"])(a.navigationBar)&&"transparent"===a.navigationBar.type;t&&document.removeEventListener("scroll",t),(h||c||l)&&(t=Object(o["a"])(e.$page.id,{enablePageScroll:c,enablePageReachBottom:l,onReachBottomDistance:d,enableTransparentTitleNView:h}),requestAnimationFrame((function(){document.addEventListener("scroll",t)})))}))}}).call(this,n("3ad9")["default"])},"77d5":function(e,t,n){},"77e0":function(e,t,n){"use strict";n.r(t),function(e,i){var r=n("a6b0");t["default"]={data:function(){return{showToast:{visible:!1}}},created:function(){var t=this,n="",a=function(e){return function(i){n=e,setTimeout((function(){t.showToast=i}),10)}};e.on("onShowToast",a("onShowToast")),e.on("onShowLoading",a("onShowLoading"));var o=function(e){return function(){if(n){var a="";if("onHideToast"===e&&"onShowToast"!==n?a=Object(r["g"])("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==n&&(a=Object(r["g"])("uni.showLoading.unpaired")),a)return i.warn(a);n="",setTimeout((function(){t.showToast.visible=!1}),10)}}};e.on("onHidePopup",o("onHidePopup")),e.on("onHideToast",o("onHideToast")),e.on("onHideLoading",o("onHideLoading"))}}}.call(this,n("0dd1"),n("3ad9")["default"])},"78c8":function(e,t,n){"use strict";n.r(t),n.d(t,"getSystemInfoSync",(function(){return v})),n.d(t,"getSystemInfo",(function(){return y}));var i,r=n("a470"),a="__DC_STAT_UUID",o=window.localStorage||window.sessionStorage||{},s=function(){if(i=i||o[a],!i){i=Date.now()+""+Math.floor(1e7*Math.random());try{o[a]=i}catch(e){}}return i},u=n("d8c8"),c=n.n(u),l=navigator.userAgent,d=/android/i.test(l),h=/iphone|ipad|ipod/i.test(l),f=l.match(/Windows NT ([\d|\d.\d]*)/i),p=/Macintosh|Mac/i.test(l),m=/Linux|X11/i.test(l),g=p&&navigator.maxTouchPoints>0;function v(){var e,t,n,i=window.screen,a=window.devicePixelRatio,o=/^Apple/.test(navigator.vendor)&&"number"===typeof window.orientation,u=o&&90===Math.abs(window.orientation),v=o?Math[u?"max":"min"](i.width,i.height):i.width,y=o?Math[u?"min":"max"](i.height,i.width):i.height,b=Math.min(window.innerWidth,document.documentElement.clientWidth,v)||v,_=window.innerHeight,T=navigator.language,w=c.a.top;if(h){e="iOS";var S=l.match(/OS\s([\w_]+)\slike/);S&&(t=S[1].replace(/_/g,"."));var k=l.match(/\(([a-zA-Z]+);/);k&&(n=k[1])}else if(d){e="Android";var C=l.match(/Android[\s/]([\w\.]+)[;\s]/);C&&(t=C[1]);for(var x=l.match(/\((.+?)\)/),E=x?x[1].split(";"):l.split(" "),A=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i],O=0;O<E.length;O++){var j=E[O];if(j.indexOf("Build")>0){n=j.split("Build")[0].trim();break}for(var I=void 0,P=0;P<A.length;P++)if(A[P].test(j)){I=!0;break}if(!I){n=j.trim();break}}}else if(g)n="iPad",e="iOS",t="function"===typeof window.BigInt?"14.0":"13.0";else if(f||p||m){n="PC";var L=l.match(/\((.+?)\)/)[1];if(f){switch(e="Windows",t="",f[1]){case"5.1":t="XP";break;case"6.0":t="Vista";break;case"6.1":t="7";break;case"6.2":t="8";break;case"6.3":t="8.1";break;case"10.0":t="10";break}var M=L.match(/[Win|WOW]([\d]+)/);M&&(t+=" x".concat(M[1]))}else p?(e="Mac",t=L.match(/Mac OS X (.+)/)||"",t&&(t=t[1].replace(/_/g,"."),-1!==t.indexOf(";")&&(t=t.split(";")[0]))):m&&(e="Linux",t=L.match(/Linux (.*)/)||"",t&&(t=t[1],-1!==t.indexOf(";")&&(t=t.split(";")[0])))}else e="Other",t="0";var D="".concat(e," ").concat(t),R=e.toLocaleLowerCase(),N={left:c.a.left,right:b-c.a.right,top:c.a.top,bottom:_-c.a.bottom,width:b-c.a.left-c.a.right,height:_-c.a.top-c.a.bottom},B=Object(r["a"])(),U=B.top,F=B.bottom;return _-=U,_-=F,{windowTop:U,windowBottom:F,windowWidth:b,windowHeight:_,pixelRatio:a,screenWidth:v,screenHeight:y,language:T,statusBarHeight:w,system:D,platform:R,model:n,safeArea:N,safeAreaInsets:{top:c.a.top,right:c.a.right,bottom:c.a.bottom,left:c.a.left},deviceId:s()}}function y(){return v()}},"79d5":function(e,t,n){"use strict";function i(e){if(e)return e.$holder;var t=getCurrentPages(),n=t.length;return n?t[n-1].$holder:void 0}function r(e){var t=getCurrentPages(),n=t.length;return!!n&&t[n-1].$holder===e}n.r(t),n.d(t,"getPageHolder",(function(){return i})),n.d(t,"isCurrentPage",(function(){return r}))},"7ac7":function(e,t,n){"use strict";(function(e){var i,r=n("8bbf"),a=n.n(r),o=n("f2b3"),s=n("65a8"),u=["top","left","right"],c=document.documentElement;function l(e,t){i||(i=c.style),i.setProperty(e,t)}function d(e){var t=window.screen,n=[window.outerWidth,window.outerHeight,t.width,t.height,c.clientWidth,c.clientHeight];return Math.max.apply(null,n)>e}t["a"]={name:"Layout",props:{routerKey:{type:String,default:""},keepAliveInclude:{type:Array,default:function(){return[]}}},data:function(){return{marginWidth:0,leftWindowStyle:"",rightWindowStyle:"",topWindowStyle:"",topWindowMediaQuery:!1,leftWindowMediaQuery:!1,rightWindowMediaQuery:!1,topWindowHeight:"0px",apiShowTopWindow:!1,apiShowLeftWindow:!1,apiShowRightWindow:!1,navigationBarTitleText:"",maxWidthMeidaQuery:!1}},computed:{bindWindow:function(){return{matchTopWindow:this.topWindowMediaQuery,showTopWindow:this.showTopWindow||this.apiShowTopWindow,matchLeftWindow:this.leftWindowMediaQuery,showLeftWindow:this.showLeftWindow||this.apiShowLeftWindow,matchRightWindow:this.rightWindowMediaQuery,showRightWindow:this.showRightWindow||this.apiShowRightWindow}},showLayout:function(){return this.showTopWindow||this.showLeftWindow||this.showRightWindow},showTopWindow:function(){return this.resetApiShowWindow(),!1!==this.$route.meta.topWindow&&this.topWindowMediaQuery},showLeftWindow:function(){return this.resetApiShowWindow(),!1!==this.$route.meta.leftWindow&&this.leftWindowMediaQuery},showRightWindow:function(){return this.resetApiShowWindow(),!1!==this.$route.meta.rightWindow&&this.rightWindowMediaQuery}},watch:{$route:function(){this.checkMaxWidth()},showLayout:function(){this.checkLayout()},showTopWindow:function(e,t){e?this.$nextTick(this.onTopWindowInit):l("--top-window-height","0px")},showLeftWindow:function(e,t){e?this.$nextTick(this.onLeftWindowInit):l("--window-left","0px")},showRightWindow:function(e,t){e?this.$nextTick(this.onRightWindowInit):l("--window-right","0px")},marginWidth:function(e){l("--window-margin",e+"px")}},beforeCreate:function(){l("--top-window-height","0px"),l("--window-left","0px"),l("--window-right","0px"),l("--window-margin","0px")},created:function(){var t=this;this.topWindow=a.a.component("VUniTopWindow"),this.leftWindow=a.a.component("VUniLeftWindow"),this.rightWindow=a.a.component("VUniRightWindow"),(this.topWindow||this.leftWindow||this.rightWindow)&&uni.canIUse("css.var")&&window.matchMedia&&(u.forEach((function(e){return t.initWindowMinWidth(e)})),this.responsive=d(this.minWidth),this.responsive&&(this.topWindow&&this.topWindow.options.style&&(this.topWindowStyle=this.topWindow.options.style),this.leftWindow&&this.leftWindow.options.style&&(this.leftWindowStyle=this.leftWindow.options.style),this.rightWindow&&this.rightWindow.options.style&&(this.rightWindowStyle=this.rightWindow.options.style),u.forEach((function(e){return t.initMediaQuery(e)})),e.on("onNavigationBarChange",(function(e){t.navigationBarTitleText=e.titleText})))),this.initMaxWidth()},mounted:function(){this.checkLayout(),this.checkMaxWidth()},methods:{resetApiShowWindow:function(){this.apiShowLeftWindow=!1,this.apiShowRightWindow=!1},showWindow:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this[e+"Window"])return e+"Window not found";var n=Object(o["c"])(e);if(!this["show"+n+"Window"]){var i="apiShow"+n+"Window";this[i]!==t&&(this[i]=t,"top"===e&&(t?this.$nextTick(this.onTopWindowInit):l("--top-window-height","0px")))}},getWindowStyle:function(e){if(!this[e+"Window"])return e+"Window not found";var t=Object.assign({},this[e+"WindowStyle"]);return t},setWindowStyle:function(e,t){if(!this[e+"Window"])return e+"Window not found";t&&(this[e+"WindowStyle"]=t,this.$nextTick(this["on"+Object(o["c"])(e)+"WindowInit"]))},initMaxWidth:function(){var e=this;window.addEventListener("resize",(function(){e.checkMaxWidth()}))},checkLayout:function(){this.$emit("layout",this.showLayout)},checkMaxWidth:function(){var e=this,t=document.body.clientWidth,n=parseInt(this.$route.meta.maxWidth),i=!1;i=t>n,this.$emit("maxWidth",i),this.$containerElem||(this.$containerElem=document.querySelector("uni-app")),this.$containerElem&&(i&&n?(this.marginWidth=(t-n)/2,this.$nextTick((function(){e.onLeftWindowInit(),e.onRightWindowInit(),e.$containerElem.setAttribute("style","max-width:"+n+"px;margin:0 auto;")}))):(this.marginWidth=0,this.$nextTick((function(){e.onLeftWindowInit(),e.onRightWindowInit(),e.$containerElem.removeAttribute("style")}))))},initWindowMinWidth:function(e){var t=e+"Window";if(this[t]){var n=e+"WindowMinWidth";this[n]=s["b"];var i=__uniConfig[t];i&&i.matchMedia&&Object(o["i"])(i.matchMedia,"minWidth")&&(this[n]=i.matchMedia.minWidth),("undefined"===typeof this.minWidth||this.minWidth>this[n])&&(this.minWidth=this[n])}},initMediaQuery:function(e){var t=this;if(this[e+"Window"]){var n=e+"WindowMediaQuery",i=window.matchMedia("(min-width: "+this[e+"WindowMinWidth"]+"px)");i.addListener((function(i){t[n]=i.matches,t.$nextTick((function(){t["on"+Object(o["c"])(e)+"WindowInit"]()}))})),this[n]=i.matches}},onTopWindowInit:function(){if(this.responsive&&this.topWindow){var e="0px";e=this.topWindowStyle&&this.topWindowStyle.height?this.$refs.topWindow.offsetHeight+"px":this.$refs.top.$el.offsetHeight+"px",this.topWindowHeight=e,l("--top-window-height",e)}},onLeftWindowInit:function(){this.responsive&&this.leftWindow?this.leftWindowStyle&&this.leftWindowStyle.width?l("--window-left",this.$refs.leftWindow.offsetWidth+this.marginWidth+"px"):l("--window-left",this.$refs.left.$el.offsetWidth+this.marginWidth+"px"):l("--window-left",this.marginWidth+"px")},onRightWindowInit:function(){this.responsive&&this.rightWindow?this.rightWindowStyle&&this.rightWindowStyle.width?l("--window-right",this.$refs.rightWindow.offsetWidth+this.marginWidth+"px"):l("--window-right",this.$refs.right.$el.offsetWidth+this.marginWidth+"px"):l("--window-right",this.marginWidth+"px")}}}}).call(this,n("0dd1"))},"7bab":function(e,t,n){"use strict";function i(){var e=document.getElementById("#clipboard"),t=e?e.value:void 0;return t?{data:t,errMsg:"getClipboardData:ok"}:{errMsg:"getClipboardData:fail"}}function r(e){var t=e.data,n=document.getElementById("#clipboard");n&&n.remove();var i=document.createElement("textarea");i.id="#clipboard",i.style.position="fixed",i.style.top="-9999px",i.style.zIndex="-9999",document.body.appendChild(i),i.value=t,i.focus(),i.select();var r=document.execCommand("Copy",!1,null);return i.blur(),r?{errMsg:"setClipboardData:ok"}:{errMsg:"setClipboardData:fail"}}n.r(t),n.d(t,"getClipboardData",(function(){return i})),n.d(t,"setClipboardData",(function(){return r}))},"7bb3":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-checkbox",e._g({attrs:{disabled:e.disabled},on:{click:e._onClick}},e.$listeners),[n("div",{staticClass:"uni-checkbox-wrapper"},[n("div",{staticClass:"uni-checkbox-input",class:{"uni-checkbox-input-checked":e.checkboxChecked,"uni-checkbox-input-disabled":e.disabled},style:{color:e.color}}),e._t("default")],2)])},r=[],a=n("8af1"),o={name:"Checkbox",mixins:[a["a"],a["f"]],props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},data:function(){return{checkboxChecked:this.checked,checkboxValue:this.value}},watch:{checked:function(e){this.checkboxChecked=e},value:function(e){this.checkboxValue=e}},listeners:{"label-click":"_onClick","@label-click":"_onClick"},created:function(){this.$dispatch("CheckboxGroup","uni-checkbox-group-update",{type:"add",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("CheckboxGroup","uni-checkbox-group-update",{type:"remove",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onClick:function(e){this.disabled||(this.checkboxChecked=!this.checkboxChecked,this.$dispatch("CheckboxGroup","uni-checkbox-change",e))},_resetFormData:function(){this.checkboxChecked=!1}}},s=o,u=(n("f53a"),n("2877")),c=Object(u["a"])(s,i,r,!1,null,null,null);t["default"]=c.exports},"7c2b":function(e,t,n){"use strict";var i=n("2c45"),r=n.n(i);r.a},"7d18":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"uploadFile",(function(){return c}));var i=n("e2e2");function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(){function e(t,n){r(this,e),s(this,"_xhr",void 0),s(this,"_isAbort",void 0),s(this,"_callbacks",[]),this._xhr=t,this._callbackId=n}return o(e,[{key:"onProgressUpdate",value:function(e){"function"===typeof e&&this._callbacks.push(e)}},{key:"offProgressUpdate",value:function(e){var t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}},{key:"abort",value:function(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}}]),e}();function c(t,n){var r=t.url,a=t.file,o=t.filePath,s=t.name,c=t.files,l=t.header,d=t.formData,h=t.timeout,f=void 0===h?__uniConfig.networkTimeout&&__uniConfig.networkTimeout.uploadFile||6e4:h,p=e,m=p.invokeCallbackHandler,g=new u(null,n);function v(e){var t,i=new XMLHttpRequest,a=new FormData;Object.keys(d).forEach((function(e){a.append(e,d[e])})),Object.values(c).forEach((function(t,n){var i=t.name,r=e[n];a.append(i||"file",r,r.name||"file-".concat(Date.now()))})),i.open("POST",r),Object.keys(l).forEach((function(e){i.setRequestHeader(e,l[e])})),i.upload.onprogress=function(e){g._callbacks.forEach((function(t){var n=e.loaded,i=e.total,r=Math.round(n/i*100);t({progress:r,totalBytesSent:n,totalBytesExpectedToSend:i})}))},i.onerror=function(){clearTimeout(t),m(n,{errMsg:"uploadFile:fail"})},i.onabort=function(){clearTimeout(t),m(n,{errMsg:"uploadFile:fail abort"})},i.onload=function(){clearTimeout(t);var e=i.status;m(n,{errMsg:"uploadFile:ok",statusCode:e,data:i.responseText||i.response})},g._isAbort?m(n,{errMsg:"uploadFile:fail abort"}):(t=setTimeout((function(){i.upload.onprogress=i.onload=i.onabort=i.onerror=null,g.abort(),m(n,{errMsg:"uploadFile:fail timeout"})}),f),i.send(a),g._xhr=i)}return Array.isArray(c)&&c.length||(c=[{name:s,file:a,uri:o}]),Promise.all(c.map((function(e){var t=e.file,n=e.uri;return t instanceof Blob?Promise.resolve(Object(i["a"])(t)):Object(i["f"])(n)}))).then(v).catch((function(){setTimeout((function(){m(n,{errMsg:"uploadFile:fail file error"})}),0)})),g}}.call(this,n("0dd1"))},"7df2":function(e,t,n){},"7e6a":function(e,t,n){"use strict";var i=n("515d"),r=n.n(i);r.a},"7f4e":function(e,t,n){"use strict";function i(e){var t=e.phoneNumber;return window.location.href="tel:".concat(t),{errMsg:"makePhoneCall:ok"}}n.r(t),n.d(t,"makePhoneCall",(function(){return i}))},"80e5":function(e){e.exports=JSON.parse('{"uni.app.quit":"Pulse otra vez para salir","uni.async.error":"Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo.","uni.showActionSheet.cancel":"Cancelar","uni.showToast.unpaired":"Tenga en cuenta que showToast debe estar emparejado con hideToast","uni.showLoading.unpaired":"Tenga en cuenta que showLoading debe estar emparejado con hideLoading","uni.showModal.cancel":"Cancelar","uni.showModal.confirm":"OK","uni.chooseImage.cancel":"Cancelar","uni.chooseImage.sourceType.album":"Álbum","uni.chooseImage.sourceType.camera":"Cámara","uni.chooseVideo.cancel":"Cancelar","uni.chooseVideo.sourceType.album":"Álbum","uni.chooseVideo.sourceType.camera":"Cámara","uni.chooseFile.notUserActivation":"El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario","uni.previewImage.cancel":"Cancelar","uni.previewImage.button.save":"Guardar imagen","uni.previewImage.save.success":"Guardado exitosamente","uni.previewImage.save.fail":"Error al guardar","uni.setClipboardData.success":"Contenido copiado","uni.scanCode.title":"Código de escaneo","uni.scanCode.album":"Álbum","uni.scanCode.fail":"Échec de la reconnaissance","uni.scanCode.flash.on":"Toque para encender la luz","uni.scanCode.flash.off":"Toque para apagar la luz","uni.startSoterAuthentication.authContent":"Reconocimiento de huellas dactilares","uni.picker.done":"OK","uni.picker.cancel":"Cancelar","uni.video.danmu":"Danmu","uni.video.volume":"Volumen","uni.button.feedback.title":"realimentación","uni.button.feedback.send":"enviar","uni.chooseLocation.search":"Encontrar","uni.chooseLocation.cancel":"Cancelar"}')},"811a":function(e,t,n){"use strict";n.r(t),n.d(t,"connectSocket",(function(){return h})),n.d(t,"sendSocketMessage",(function(){return f})),n.d(t,"closeSocket",(function(){return p})),n.d(t,"onSocketOpen",(function(){return m})),n.d(t,"onSocketError",(function(){return g})),n.d(t,"onSocketMessage",(function(){return v})),n.d(t,"onSocketClose",(function(){return y}));var i=n("a118"),r=n("db70");function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}var u=function(){function e(t){a(this,e),this.id=t,this._callbacks={open:[],close:[],error:[],message:[]},this.CLOSED=3,this.CLOSING=2,this.CONNECTING=0,this.OPEN=1,this.readyState=this.CLOSED}return s(e,[{key:"send",value:function(e){this.readyState!==this.OPEN&&this._callback(e,"sendSocketMessage:fail WebSocket is not connected");var t=Object(r["c"])("operateSocketTask",Object.assign({},e,{operationType:"send",socketTaskId:this.id})),n=t.errMsg;this._callback(e,n.replace("operateSocketTask","sendSocketMessage"))}},{key:"close",value:function(e){this.readyState=this.CLOSING;var t=Object(r["c"])("operateSocketTask",Object.assign({},e,{operationType:"close",socketTaskId:this.id})),n=t.errMsg;this._callback(e,n.replace("operateSocketTask","closeSocket"))}},{key:"onOpen",value:function(e){this._callbacks.open.push(e)}},{key:"onClose",value:function(e){this._callbacks.close.push(e)}},{key:"onError",value:function(e){this._callbacks.error.push(e)}},{key:"onMessage",value:function(e){this._callbacks.message.push(e)}},{key:"_callback",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.success,n=e.fail,i=e.complete,r=arguments.length>1?arguments[1]:void 0,a={errMsg:r};/:ok$/.test(r)?"function"===typeof t&&t(a):"function"===typeof n&&n(a),"function"===typeof i&&i(a)}}]),e}(),c=Object.create(null),l=[],d=Object.create(null);function h(e,t){var n=Object(r["c"])("createSocketTask",e),a=n.socketTaskId,o=new u(a);return c[a]=o,l.push(o),setTimeout((function(){Object(i["a"])(t,{errMsg:"connectSocket:ok"})}),0),o}function f(e,t){var n=l[0];if(n&&n.readyState===n.OPEN)return Object(r["c"])("operateSocketTask",Object.assign({},e,{operationType:"send",socketTaskId:n.id}));Object(i["a"])(t,{errMsg:"sendSocketMessage:fail WebSocket is not connected"})}function p(e,t){var n=l[0];if(n)return n.readyState=n.CLOSING,Object(r["c"])("operateSocketTask",Object.assign({},e,{operationType:"close",socketTaskId:n.id}));Object(i["a"])(t,{errMsg:"closeSocket:fail WebSocket is not connected"})}function m(e){d.open=e}function g(e){d.error=e}function v(e){d.message=e}function y(e){d.close=e}Object(r["d"])("onSocketTaskStateChange",(function(e){var t=e.socketTaskId,n=e.state,r=e.data,a=(e.errMsg,c[t]);if(a){if("open"===n&&(a.readyState=a.OPEN),a===l[0]&&d[n]&&Object(i["a"])(d[n],"message"===n?{data:r}:{}),"error"===n||"close"===n){a.readyState=a.CLOSED,delete c[t];var o=l.indexOf(a);o>=0&&l.splice(o,1)}a._callbacks[n].forEach((function(e){"function"===typeof e&&e("message"===n?{data:r}:{})}))}}))},8188:function(e,t,n){"use strict";(function(e){var i=n("8af1"),r=n("18fd"),a=n("b253"),o=n("93ab");function s(e){return s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(){var e=navigator.userAgent,t=/iphone|ipad|ipod/i.test(e),n=/Macintosh|Mac/i.test(e),i=n&&navigator.maxTouchPoints>0;return t||i}var c=!1;t["a"]={name:"Editor",mixins:[i["g"],i["a"],i["e"]],props:{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}},data:function(){return{quillReady:!1}},computed:{},watch:{readOnly:function(e){if(this.quillReady){var t=this.quill;t.enable(!e),e||t.blur()}},placeholder:function(e){this.quillReady&&this.setPlaceHolder(e)}},mounted:function(){var e=this,t=[];this.showImgSize&&t.push("DisplaySize"),this.showImgToolbar&&t.push("Toolbar"),this.showImgResize&&t.push("Resize");var n="https://unpkg.com/quill@1.3.7/dist/quill.min.js";Object(o["a"])(window.Quill,n,(function(){if(t.length){var n="https://unpkg.com/quill-image-resize-mp@3.0.1/image-resize.min.js";Object(o["a"])(window.ImageResize,n,(function(){e.initQuill(t)}))}else e.initQuill(t)}))},methods:{_handleSubscribe:function(t){var n,i,r,a=t.type,o=t.data,u=o.options,l=o.callbackId,d=this.quill,h=window.Quill;if(this.quillReady){switch(a){case"format":var f=u.name,p=void 0===f?"":f,m=u.value,g=void 0!==m&&m;i=d.getSelection(!0);var v=d.getFormat(i)[p]||!1;if(["bold","italic","underline","strike","ins"].includes(p))g=!v;else if("direction"===p){g=("rtl"!==g||!v)&&g;var y=d.getFormat(i).align;"rtl"!==g||y?g||"right"!==y||d.format("align",!1,h.sources.USER):d.format("align","right",h.sources.USER)}else if("indent"===p){var b="rtl"===d.getFormat(i).direction;g="+1"===g,b&&(g=!g),g=g?"+1":"-1"}else"list"===p&&(g="check"===g?"unchecked":g,v="checked"===v?"unchecked":v),g=v&&v!==(g||!1)||!v&&g?g:!v;d.format(p,g,h.sources.USER);break;case"insertDivider":i=d.getSelection(!0),d.insertText(i.index,"\n",h.sources.USER),d.insertEmbed(i.index+1,"divider",!0,h.sources.USER),d.setSelection(i.index+2,h.sources.SILENT);break;case"insertImage":i=d.getSelection(!0);var _=u.src,T=void 0===_?"":_,w=u.alt,S=void 0===w?"":w,k=u.width,C=void 0===k?"":k,x=u.height,E=void 0===x?"":x,A=u.extClass,O=void 0===A?"":A,j=u.data,I=void 0===j?{}:j,P=this.$getRealPath(T);d.insertEmbed(i.index,"image",P,h.sources.USER);var L=!!/^(file|blob):/.test(P)&&P;c=!0,d.formatText(i.index,1,"data-local",L),d.formatText(i.index,1,"alt",S),d.formatText(i.index,1,"width",C),d.formatText(i.index,1,"height",E),d.formatText(i.index,1,"class",O),c=!1,d.formatText(i.index,1,"data-custom",Object.keys(I).map((function(e){return"".concat(e,"=").concat(I[e])})).join("&")),d.setSelection(i.index+1,h.sources.SILENT);break;case"insertText":i=d.getSelection(!0);var M=u.text,D=void 0===M?"":M;d.insertText(i.index,D,h.sources.USER),d.setSelection(i.index+D.length,0,h.sources.SILENT);break;case"setContents":var R=u.delta,N=u.html;"object"===s(R)?d.setContents(R,h.sources.SILENT):"string"===typeof N?d.setContents(this.html2delta(N),h.sources.SILENT):r="contents is missing";break;case"getContents":n=this.getContents();break;case"clear":d.setContents([]);break;case"removeFormat":i=d.getSelection(!0);var B=h.import("parchment");i.length?d.removeFormat(i,h.sources.USER):Object.keys(d.getFormat(i)).forEach((function(e){B.query(e,B.Scope.INLINE)&&d.format(e,!1)}));break;case"undo":d.history.undo();break;case"redo":d.history.redo();break;case"blur":d.blur();break;case"getSelectionText":i=d.selection.savedRange,n={text:""},i&&0!==i.length&&(n.text=d.getText(i.index,i.length));break;case"scrollIntoView":d.scrollIntoView();break;default:break}this.updateStatus(i)}else r="not ready";l&&e.publishHandler("onEditorMethodCallback",{callbackId:l,data:Object.assign({},n,{errMsg:"".concat(a,":").concat(r?"fail "+r:"ok")})},this.$page.id)},setPlaceHolder:function(e){var t="data-placeholder",n=this.quill.root;n.getAttribute(t)!==e&&n.setAttribute(t,e)},initQuill:function(e){var t=this,n=window.Quill;a["a"](n);var i={toolbar:!1,readOnly:this.readOnly,placeholder:this.placeholder,modules:{}};e.length&&(n.register("modules/ImageResize",window.ImageResize.default),i.modules.ImageResize={modules:e});var r=this.quill=new n(this.$el,i),o=r.root,s=["focus","blur","input"];s.forEach((function(e){o.addEventListener(e,(function(n){var i=t.getContents();if("input"===e){if(u()){var r=(i.html.match(/<span [\s\S]*>([\s\S]*)<\/span>/)||[])[1],a=r&&r.replace(/\s/g,"")?"":t.placeholder;t.setPlaceHolder(a)}n.stopPropagation()}else t.$trigger(e,n,i)}))})),r.on(n.events.TEXT_CHANGE,(function(){c||t.$trigger("input",{},t.getContents())})),r.on(n.events.SELECTION_CHANGE,this.updateStatus.bind(this)),r.on(n.events.SCROLL_OPTIMIZE,(function(){var e=r.selection.getRange()[0];t.updateStatus(e)})),r.clipboard.addMatcher(Node.ELEMENT_NODE,(function(e,n){return t.skipMatcher||(n.ops=n.ops.filter((function(e){var t=e.insert;return"string"===typeof t})).map((function(e){var t=e.insert;return{insert:t}}))),n})),this.initKeyboard(o),this.quillReady=!0,this.$trigger("ready",event,{})},getContents:function(){var e=this.quill,t=e.root.innerHTML,n=e.getText(),i=e.getContents();return{html:t,text:n,delta:i}},html2delta:function(e){var t,n=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"],i="";Object(r["a"])(e,{start:function(e,r,a){if(n.includes(e)){t=!1;var o=r.map((function(e){var t=e.name,n=e.value;return"".concat(t,'="').concat(n,'"')})).join(" "),s="<".concat(e," ").concat(o," ").concat(a?"/":"",">");i+=s}else t=!a},end:function(e){t||(i+="</".concat(e,">"))},chars:function(e){t||(i+=e)}}),this.skipMatcher=!0;var a=this.quill.clipboard.convert(i);return this.skipMatcher=!1,a},updateStatus:function(e){var t=this,n=e?this.quill.getFormat(e):{},i=Object.keys(n);(i.length!==Object.keys(this.__status||{}).length||i.find((function(e){return n[e]!==t.__status[e]})))&&(this.__status=n,this.$trigger("statuschange",{},n))}}}}).call(this,n("501c"))},"81ea":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-tabbar",{class:["uni-tabbar-"+e.position]},[n("div",{staticClass:"uni-tabbar",style:{backgroundColor:e.tabbarBackgroundColor,"backdrop-filter":"none"!==e.blurEffect?"blur(10px)":e.blurEffect}},[n("div",{staticClass:"uni-tabbar-border",style:{backgroundColor:e.borderColor}}),e._l(e.visibleList,(function(t,i){return n("div",{key:t.isMidButton?i:t.pagePath,staticClass:"uni-tabbar__item",style:t.isMidButton?{flex:"0 0 "+t.width,position:"relative"}:{},on:{click:function(n){return e._switchTab(t,i)}}},[t.isMidButton?n("div",{staticClass:"uni-tabbar__mid",style:e._uniTabbarBdStyle(t)},[t.iconPath?n("img",{style:{width:t.iconWidth,height:t.iconWidth},attrs:{src:e._getRealPath(t.iconPath)}}):e._e()]):e._e(),n("div",{staticClass:"uni-tabbar__bd",style:{height:e.height}},[e.getIconPath(t,i)||t.iconPath||t.isMidButton?n("div",{staticClass:"uni-tabbar__icon",class:{"uni-tabbar__icon__diff":!t.text},style:{width:e.iconWidth,height:e.iconWidth}},[t.isMidButton?e._e():n("img",{attrs:{src:e._getRealPath(e.getIconPath(t,i))}}),t.redDot?n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!t.badge}},[e._v(" "+e._s(t.badge)+" ")]):e._e()]):e._e(),t.text?n("div",{staticClass:"uni-tabbar__label",style:{color:e.selectedIndex===i?e.selectedColor:e.color,fontSize:e.fontSize,lineHeight:t.iconPath?"normal":1.8,marginTop:t.iconPath?e.spacing:"inherit"}},[e._v(" "+e._s(t.text)+" "),t.redDot&&!t.iconPath?n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!t.badge}},[e._v(" "+e._s(t.badge)+" ")]):e._e()]):e._e()])])}))],2),n("div",{staticClass:"uni-placeholder",style:{height:e.height}})])},r=[],a=n("a919"),o=a["a"],s=(n("f4e0"),n("2877")),u=Object(s["a"])(o,i,r,!1,null,null,null),c=u.exports,l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.responsive?n("uni-layout",{class:{"uni-app--showlayout":e.showLayout,"uni-app--showtopwindow":e.showTopWindow,"uni-app--showleftwindow":e.showLeftWindow,"uni-app--showrightwindow":e.showRightWindow}},[e.topWindow?n("uni-top-window",{directives:[{name:"show",rawName:"v-show",value:e.showTopWindow||e.apiShowTopWindow,expression:"showTopWindow || apiShowTopWindow"}]},[n("div",{ref:"topWindow",staticClass:"uni-top-window",style:e.topWindowStyle},[n("v-uni-top-window",e._b({ref:"top",attrs:{"navigation-bar-title-text":e.navigationBarTitleText},on:{"hook:mounted":e.onTopWindowInit}},"v-uni-top-window",e.bindWindow,!1))],1),n("div",{staticClass:"uni-top-window--placeholder",style:{height:e.topWindowHeight}})]):e._e(),n("uni-content",[n("uni-main",[n("keep-alive",{attrs:{include:e.keepAliveInclude}},[n("router-view",{key:e.routerKey})],1)],1),e.leftWindow?n("uni-left-window",{directives:[{name:"show",rawName:"v-show",value:e.showLeftWindow||e.apiShowLeftWindow,expression:"showLeftWindow || apiShowLeftWindow"}],ref:"leftWindow",style:e.leftWindowStyle,attrs:{"data-show":e.apiShowLeftWindow}},[e.apiShowLeftWindow?n("div",{staticClass:"uni-mask",on:{click:function(t){e.apiShowLeftWindow=!1}}}):e._e(),n("div",{staticClass:"uni-left-window"},[n("v-uni-left-window",e._b({ref:"left",on:{"hook:mounted":e.onLeftWindowInit}},"v-uni-left-window",e.bindWindow,!1))],1)]):e._e(),e.rightWindow?n("uni-right-window",{directives:[{name:"show",rawName:"v-show",value:e.showRightWindow||e.apiShowRightWindow,expression:"showRightWindow || apiShowRightWindow"}],ref:"rightWindow",style:e.rightWindowStyle,attrs:{"data-show":e.apiShowRightWindow}},[e.apiShowRightWindow?n("div",{staticClass:"uni-mask",on:{click:function(t){e.apiShowRightWindow=!1}}}):e._e(),n("div",{staticClass:"uni-right-window"},[n("v-uni-right-window",e._b({ref:"right",on:{"hook:mounted":e.onRightWindowInit}},"v-uni-right-window",e.bindWindow,!1))],1)]):e._e()],1)],1):n("keep-alive",{attrs:{include:e.keepAliveInclude}},[n("router-view",{key:e.routerKey})],1)},d=[],h=n("7ac7"),f=h["a"],p=(n("639e"),Object(s["a"])(f,l,d,!1,null,null,null)),m=p.exports,g=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"uni-fade"}},[e.visible?n("uni-toast",{attrs:{"data-duration":e.duration}},[e.mask?n("div",{staticClass:"uni-mask",staticStyle:{background:"transparent"},on:{touchmove:function(e){e.preventDefault()}}}):e._e(),e.image||e.iconClass?n("div",{staticClass:"uni-toast"},[e.image?n("img",{staticClass:"uni-toast__icon",attrs:{src:e.image}}):n("i",{staticClass:"uni-icon_toast",class:e.iconClass}),n("p",{staticClass:"uni-toast__content"},[e._v(" "+e._s(e.title)+" ")])]):n("div",{staticClass:"uni-sample-toast"},[n("p",{staticClass:"uni-simple-toast__text"},[e._v(" "+e._s(e.title)+" ")])])]):e._e()],1)},v=[],y=n("5222"),b=y["a"],_=(n("ff28"),Object(s["a"])(b,g,v,!1,null,null,null)),T=_.exports,w=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"uni-fade"}},[n("uni-modal",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],on:{touchmove:function(e){e.preventDefault()}}},[n("div",{staticClass:"uni-mask"}),n("div",{staticClass:"uni-modal"},[e.title?n("div",{staticClass:"uni-modal__hd"},[n("strong",{staticClass:"uni-modal__title",domProps:{textContent:e._s(e.title)}})]):e._e(),e.editable?n("textarea",{ref:"editContent",staticClass:"uni-modal__textarea",attrs:{rows:"1",placeholder:e.placeholderText},domProps:{value:e.content}}):n("div",{staticClass:"uni-modal__bd",domProps:{textContent:e._s(e.content)},on:{touchmove:function(e){e.stopPropagation()}}}),n("div",{staticClass:"uni-modal__ft"},[e.showCancel?n("div",{staticClass:"uni-modal__btn uni-modal__btn_default",style:{color:e.cancelColor},on:{click:function(t){return e._close("cancel")}}},[e._v(" "+e._s(e.cancelText)+" ")]):e._e(),n("div",{staticClass:"uni-modal__btn uni-modal__btn_primary",style:{color:e.confirmColor},on:{click:function(t){return e._close("confirm")}}},[e._v(" "+e._s(e.confirmText)+" ")])])]),n("keypress",{attrs:{disable:!e.visible},on:{esc:function(t){return e._close("cancel")},enter:function(t){!e.editable&&e._close("confirm")}}})],1)],1)},S=[],k=n("5a56"),C=n("da71");function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E={name:"Modal",components:{keypress:C["a"]},mixins:[k["default"]],props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},methods:{_close:function(e){var t=x({},e,!0);this.editable&&"confirm"===e&&(t.content=this.$refs.editContent.value),this.$emit("close",t)}}},A=E,O=(n("2765"),Object(s["a"])(A,w,S,!1,null,null,null)),j=O.exports,I=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-actionsheet",{on:{touchmove:function(e){e.preventDefault()}}},[n("transition",{attrs:{name:"uni-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"uni-mask uni-actionsheet__mask",on:{click:function(t){return e._close(-1)}}})]),n("div",{staticClass:"uni-actionsheet",class:{"uni-actionsheet_toggle":e.visible},style:e.popupStyle.content},[n("div",{ref:"main",staticClass:"uni-actionsheet__menu",on:{wheel:e._handleWheel}},[e.title?n("div",{staticClass:"uni-actionsheet__cell",style:{height:e.titleHeight+"px"}}):e._e(),e.title?n("div",{staticClass:"uni-actionsheet__title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),n("div",{style:{maxHeight:e.HEIGHT+"px",overflow:"hidden"}},[n("div",{ref:"content"},e._l(e.itemList,(function(t,i){return n("div",{key:i,staticClass:"uni-actionsheet__cell",style:{color:e.itemColor},on:{click:function(t){return e._close(i)}}},[e._v(" "+e._s(t)+" ")])})),0)])]),n("div",{staticClass:"uni-actionsheet__action"},[n("div",{staticClass:"uni-actionsheet__cell",style:{color:e.itemColor},on:{click:function(t){return e._close(-1)}}},[e._v(" "+e._s(e.$$t("uni.showActionSheet.cancel"))+" ")])]),n("div",{style:e.popupStyle.triangle})]),n("keypress",{attrs:{disable:!e.visible},on:{esc:function(t){return e._close(-1)}}})],1)},P=[],L=n("4ccd"),M=n("a6b0"),D=n("ba15"),R=n("8aec"),N=n("5363"),B=n("72b3"),U=n("d4cd");function F(e){var t=20,n=0,i=0;e.addEventListener("touchstart",(function(e){var t=e.changedTouches[0];n=t.clientX,i=t.clientY})),e.addEventListener("touchend",(function(e){var r=e.changedTouches[0];if(Math.abs(r.clientX-n)<t&&Math.abs(r.clientY-i)<t){var a=new CustomEvent("click",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((function(e){a[e]=r[e]})),e.target.dispatchEvent(a)}}))}var $={name:"ActionSheet",components:{keypress:C["a"]},mixins:[M["c"],L["default"],D["a"],R["a"]],props:{title:{type:String,default:""},itemList:{type:Array,default:function(){return[]}},itemColor:{type:String,default:"#000000"},popover:{type:Object,default:null},visible:{type:Boolean,default:!1}},data:function(){return{HEIGHT:260,contentHeight:0,titleHeight:0,deltaY:0,scrollTop:0}},watch:{visible:function(e){var t=this;e&&this.$nextTick((function(){t.title&&(t.titleHeight=document.querySelector(".uni-actionsheet__title").offsetHeight),t._scroller.update(),t.contentHeight=t.$refs.content.clientHeight-t.HEIGHT,document.querySelectorAll(".uni-actionsheet__cell").forEach((function(e){F(e)}))}))}},mounted:function(){var e=this;this.touchtrack(this.$refs.content,"_handleTrack",!0),this.$nextTick((function(){e.initScroller(e.$refs.content,{enableY:!0,friction:new N["a"](1e-4),spring:new B["a"](2,90,20),onScroll:function(t){e.scrollTop=t.target.scrollTop}})})),Object(U["b"])()},methods:{_close:function(e){this.$emit("close",e)},_handleTrack:function(e){if(this._scroller)switch(e.detail.state){case"start":this._handleTouchStart(e),Object(U["a"])({disable:!0});break;case"move":this._handleTouchMove(e);break;case"end":case"cancel":this._handleTouchEnd(e),Object(U["a"])({disable:!1})}},_handleWheel:function(e){var t=this.deltaY+e.deltaY;Math.abs(t)>10?(this.scrollTop+=t/3,this.scrollTop=this.scrollTop>=this.contentHeight?this.contentHeight:this.scrollTop<=0?0:this.scrollTop,this._scroller.scrollTo(this.scrollTop)):this.deltaY=t,e.preventDefault()}}},H=$,V=(n("4fef"),Object(s["a"])(H,I,P,!1,null,null,null)),q=V.exports,z={Toast:T,Modal:j,ActionSheet:q};function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){Y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t["a"]=G({TabBar:c,Layout:m},z)},"82b9":function(e,t,n){"use strict";function i(e){return function(t,n){t&&(n[e]=Math.round(t))}}n.r(t),n.d(t,"canvasGetImageData",(function(){return r})),n.d(t,"canvasPutImageData",(function(){return a})),n.d(t,"canvasToTempFilePath",(function(){return s})),n.d(t,"drawCanvas",(function(){return u}));var r={canvasId:{type:String,required:!0},x:{type:Number,required:!0,validator:i("x")},y:{type:Number,required:!0,validator:i("y")},width:{type:Number,required:!0,validator:i("width")},height:{type:Number,required:!0,validator:i("height")}},a={canvasId:{type:String,required:!0},data:{type:Uint8ClampedArray,required:!0},x:{type:Number,required:!0,validator:i("x")},y:{type:Number,required:!0,validator:i("y")},width:{type:Number,required:!0,validator:i("width")},height:{type:Number,validator:i("height")}},o={PNG:"png",JPG:"jpg",JPEG:"jpg"},s={x:{type:Number,default:0,validator:i("x")},y:{type:Number,default:0,validator:i("y")},width:{type:Number,validator:i("width")},height:{type:Number,validator:i("height")},destWidth:{type:Number,validator:i("destWidth")},destHeight:{type:Number,validator:i("destHeight")},canvasId:{type:String,required:!0},fileType:{type:String,validator:function(e,t){e=(e||"").toUpperCase(),t.fileType=e in o?o[e]:o.PNG}},quality:{type:Number,validator:function(e,t){t.quality=e>0&&e<1?e:1}}},u={canvasId:{type:String,required:!0},actions:{type:Array,required:!0},reserve:{type:Boolean,default:!1}}},"82c2":function(e,t,n){"use strict";n.r(t),n.d(t,"request",(function(){return h}));var i=n("f2b3"),r=n("a118"),a=n("db70");function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}var c=Object.create(null);function l(e,t){if("string"===typeof e.data&&65279===e.data.charCodeAt(0)&&(e.data=e.data.substr(1)),e.statusCode=parseInt(e.statusCode,10),Object(i["l"])(e.header)&&(e.header=Object.keys(e.header).reduce((function(t,n){var i=e.header[n];return Array.isArray(i)?t[n]=i.join(","):"string"===typeof i&&(t[n]=i),t}),{})),t.dataType&&"json"===t.dataType.toLowerCase())try{e.data=JSON.parse(e.data)}catch(n){}return e}Object(a["d"])("onRequestTaskStateChange",(function(e){var t=e.requestTaskId,n=e.state,i=e.data,a=e.statusCode,o=e.header,s=e.errMsg,u=e.cookies,d=c[t]||{},h=d.args,f=d.callbackId;if(f)switch(delete c[t],n){case"success":Object(r["a"])(f,l({data:i,statusCode:a,header:o,errMsg:"request:ok",cookies:u},h));break;case"fail":Object(r["a"])(f,{errMsg:"request:fail "+s});break}}));var d=function(){function e(t){o(this,e),this.id=t}return u(e,[{key:"abort",value:function(){Object(a["c"])("operateRequestTask",{requestTaskId:this.id,operationType:"abort"})}},{key:"offHeadersReceived",value:function(){}},{key:"onHeadersReceived",value:function(){}}]),e}();function h(e,t){var n;for(var r in e.header)if("content-type"===r.toLowerCase()){n=e.header[r];break}"GET"!==e.method&&0===n.indexOf("application/json")&&Object(i["l"])(e.data)&&(e.data=JSON.stringify(e.data));var o=Object(a["c"])("createRequestTask",e),s=o.requestTaskId;return c[s]={args:e,callbackId:t},new d(s)}},8390:function(e,t){(function(){"use strict";for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),i=0;i<e.length;i++)n[e.charCodeAt(i)]=i;t.encode=function(t){var n,i=new Uint8Array(t),r=i.length,a="";for(n=0;n<r;n+=3)a+=e[i[n]>>2],a+=e[(3&i[n])<<4|i[n+1]>>4],a+=e[(15&i[n+1])<<2|i[n+2]>>6],a+=e[63&i[n+2]];return r%3===2?a=a.substring(0,a.length-1)+"=":r%3===1&&(a=a.substring(0,a.length-2)+"=="),a},t.decode=function(e){var t,i,r,a,o,s=.75*e.length,u=e.length,c=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var l=new ArrayBuffer(s),d=new Uint8Array(l);for(t=0;t<u;t+=4)i=n[e.charCodeAt(t)],r=n[e.charCodeAt(t+1)],a=n[e.charCodeAt(t+2)],o=n[e.charCodeAt(t+3)],d[c++]=i<<2|r>>4,d[c++]=(15&r)<<4|a>>2,d[c++]=(3&a)<<6|63&o;return l}})()},"83a6":function(e,t,n){"use strict";t["a"]={data:function(){return{hovering:!1}},props:{hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}},methods:{_hoverTouchStart:function(e){var t=this;e._hoverPropagationStopped||this.hoverClass&&"none"!==this.hoverClass&&!this.disabled&&(e.touches.length>1||(this.hoverStopPropagation&&(e._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout((function(){t.hovering=!0,t._hoverTouch||t._hoverReset()}),this.hoverStartTime)))},_hoverTouchEnd:function(e){this._hoverTouch=!1,this.hovering&&this._hoverReset()},_hoverReset:function(){var e=this;requestAnimationFrame((function(){clearTimeout(e._hoverStayTimer),e._hoverStayTimer=setTimeout((function(){e.hovering=!1}),e.hoverStayTime)}))},_hoverTouchCancel:function(e){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}}},"84e0":function(e,t,n){"use strict";n.r(t),function(e){function i(t){var n=getCurrentPages();return n.length&&e.publishHandler("pageScrollTo",t,n[n.length-1].$page.id),{}}n.d(t,"pageScrollTo",(function(){return i}))}.call(this,n("0dd1"))},8542:function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"d",(function(){return _})),n.d(t,"e",(function(){return C})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return A}));var i=n("f2b3");function r(e){return u(e)||s(e)||o(e)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function s(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function u(e){if(Array.isArray(e))return c(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var d=["invoke","success","fail","complete","returnValue"],h={},f={};function p(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?m(n):n}function m(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function g(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}function v(e,t){Object.keys(t).forEach((function(n){-1!==d.indexOf(n)&&Object(i["k"])(t[n])&&(e[n]=p(e[n],t[n]))}))}function y(e,t){e&&t&&Object.keys(t).forEach((function(n){-1!==d.indexOf(n)&&Object(i["k"])(t[n])&&g(e[n],t[n])}))}function b(e,t){"string"===typeof e&&Object(i["l"])(t)?v(f[e]||(f[e]={}),t):Object(i["l"])(e)&&v(h,e)}function _(e,t){"string"===typeof e?Object(i["l"])(t)?y(f[e],t):delete f[e]:Object(i["l"])(e)&&y(h,e)}function T(e){return function(t){return e(t)||t}}function w(e){return!!e&&("object"===l(e)||"function"===typeof e)&&"function"===typeof e.then}function S(e,t){for(var n=!1,i=0;i<e.length;i++){var r=e[i];if(n)n=Promise.resolve(T(r));else{var a=r(t);if(w(a)&&(n=Promise.resolve(a)),!1===a)return{then:function(){}}}}return n||{then:function(e){return e(t)}}}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(e[n])){var r=t[n];t[n]=function(t){S(e[n],t).then((function(e){return Object(i["k"])(r)&&r(e)||e}))}}})),t}function C(e,t){var n=[];Array.isArray(h.returnValue)&&n.push.apply(n,r(h.returnValue));var i=f[e];return i&&Array.isArray(i.returnValue)&&n.push.apply(n,r(i.returnValue)),n.forEach((function(e){t=e(t)||t})),t}function x(e){var t=Object.create(null);Object.keys(h).forEach((function(e){"returnValue"!==e&&(t[e]=h[e].slice())}));var n=f[e];return n&&Object.keys(n).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function E(e,t,n){for(var i=arguments.length,r=new Array(i>3?i-3:0),a=3;a<i;a++)r[a-3]=arguments[a];var o=x(e);if(o&&Object.keys(o).length){if(Array.isArray(o.invoke)){var s=S(o.invoke,n);return s.then((function(e){return t.apply(void 0,[k(o,e)].concat(r))}))}return t.apply(void 0,[k(o,n)].concat(r))}return t.apply(void 0,[n].concat(r))}var A={returnValue:function(e){return w(e)?new Promise((function(t,n){e.then((function(e){e[0]?n(e[0]):t(e[1])}))})):e}}},"854d":function(e,t,n){"use strict";var i=n("2883"),r=n.n(i);r.a},"856e":function(e,t,n){"use strict";var i=n("01d0"),r=n.n(i);r.a},"85b6":function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return u})),n.d(t,"e",(function(){return c})),n.d(t,"a",(function(){return l}));var i=n("f2b3"),r=["SystemAsyncLoading","SystemAsyncError"];function a(e){return!(!e.$parent||"PageBody"!==e.$parent.$options.name)&&-1===r.indexOf(e.$options.name)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return Array.isArray(e[t])&&e[t].length}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e)),n=Object.keys(t),i=n.length;if(i)for(var r=0;r<i;r++){var a=n[r],o=a.length;"v"!==a.substr(0,1)||9!==o&&10!==o||delete t[a]}return t}function u(e){var t={},n=e.__vue__;function r(e,n){var r=e.$attrs;for(var a in r)if(a.startsWith("data-")){var o=Object(i["b"])(a.substr(5).toLowerCase()),s=r[a];t[o]=n?s:t[o]||s}}if(n){var a=n;while(a&&a.$el===e)r(a),a=a.$children[0];var o=n.$parent;while(o&&o.$el===e)r(o,!0),o=o.$parent}else t=e.dataset||{};return s(t)}function c(e){return e+="",-1!==e.indexOf("upx")?uni.upx2px(parseInt(e)||0):parseInt(e)||0}function l(e){var t=getCurrentPages(),n=t.length;while(n--){var i=t[n];if(i.$page&&i.$page.fullPath===e)return n}return-1}},8793:function(e,t,n){var i={"./action-sheet.js":"626d","./index.js":"f1ea","./modal.js":"ee4f","./popup.js":"4ccd","./toast.js":"77e0","./transition.js":"5a56"};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id="8793"},8842:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-movable-view",e._g({},e.$listeners),[n("v-uni-resize-sensor",{on:{resize:e.setParent}}),e._t("default")],2)},r=[],a=n("ba15");function o(e,t,n){return e>t-n&&e<t+n}function s(e,t){return o(e,0,t)}function u(){}function c(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}function l(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function d(e,t,n){this._springX=new l(e,t,n),this._springY=new l(e,t,n),this._springScale=new l(e,t,n),this._startTime=0}u.prototype.x=function(e){return Math.sqrt(e)},c.prototype.setV=function(e,t){var n=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/n,this._y_a=-this._f*this._y_v/n,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=(new Date).getTime()},c.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},c.prototype.s=function(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t,this._lastDt=e);var t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&n<this._endPositionY||this._y_a<0&&n>this._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},c.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},c.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},c.prototype.dt=function(){return-this._x_v/this._x_a},c.prototype.done=function(){var e=o(this.s().x,this._endPositionX)||o(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},c.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},c.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},l.prototype._solve=function(e,t){var n=this._c,i=this._m,r=this._k,a=n*n-4*i*r;if(0===a){var o=-n/(2*i),s=e,u=t/(o*e);return{x:function(e){return(s+u*e)*Math.pow(Math.E,o*e)},dx:function(e){var t=Math.pow(Math.E,o*e);return o*(s+u*e)*t+u*t}}}if(a>0){var c=(-n-Math.sqrt(a))/(2*i),l=(-n+Math.sqrt(a))/(2*i),d=(t-c*e)/(l-c),h=e-d;return{x:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,c*e)),n||(n=this._powER2T=Math.pow(Math.E,l*e)),h*t+d*n},dx:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,c*e)),n||(n=this._powER2T=Math.pow(Math.E,l*e)),h*c*t+d*l*n}}}var f=Math.sqrt(4*i*r-n*n)/(2*i),p=-n/2*i,m=e,g=(t-p*e)/f;return{x:function(e){return Math.pow(Math.E,p*e)*(m*Math.cos(f*e)+g*Math.sin(f*e))},dx:function(e){var t=Math.pow(Math.E,p*e),n=Math.cos(f*e),i=Math.sin(f*e);return t*(g*f*n-m*f*i)+p*t*(g*i+m*n)}}},l.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},l.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},l.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!s(t,.1)){t=t||0;var i=this._endPosition;this._solution&&(s(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),s(t,.1)&&(t=0),s(i,.1)&&(i=0),i+=this._endPosition),this._solution&&s(i-e,.1)&&s(t,.1)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=n)}},l.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},l.prototype.done=function(e){return e||(e=(new Date).getTime()),o(this.x(),this._endPosition,.1)&&s(this.dx(),.1)},l.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},l.prototype.springConstant=function(){return this._k},l.prototype.damping=function(){return this._c},l.prototype.configuration=function(){function e(e,t){e.reconfigure(1,t,e.damping())}function t(e,t){e.reconfigure(1,e.springConstant(),t)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:e.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:t.bind(this,this),min:1,max:500}]},d.prototype.setEnd=function(e,t,n,i){var r=(new Date).getTime();this._springX.setEnd(e,i,r),this._springY.setEnd(t,i,r),this._springScale.setEnd(n,i,r),this._startTime=r},d.prototype.x=function(){var e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},d.prototype.done=function(){var e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},d.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};var h=n("d4cd"),f=!1;function p(e){f||(f=!0,requestAnimationFrame((function(){e(),f=!1})))}function m(e,t){if(e===t)return 0;var n=e.offsetLeft;return e.offsetParent?n+=m(e.offsetParent,t):0}function g(e,t){if(e===t)return 0;var n=e.offsetTop;return e.offsetParent?n+=g(e.offsetParent,t):0}function v(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}function y(e,t,n){var i=function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)},r={id:0,cancelled:!1};function a(t,n,i,r){if(!t||!t.cancelled){i(n);var o=e.done();o||t.cancelled||(t.id=requestAnimationFrame(a.bind(null,t,n,i,r))),o&&r&&r(n)}}return a(r,e,t,n),{cancel:i.bind(null,r),model:e}}var b={name:"MovableView",mixins:[a["a"]],props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},data:function(){return{xSync:this._getPx(this.x),ySync:this._getPx(this.y),scaleValueSync:Number(this.scaleValue)||1,width:0,height:0,minX:0,minY:0,maxX:0,maxY:0}},computed:{dampingNumber:function(){var e=Number(this.damping);return isNaN(e)?20:e},frictionNumber:function(){var e=Number(this.friction);return isNaN(e)||e<=0?2:e},scaleMinNumber:function(){var e=Number(this.scaleMin);return isNaN(e)?.5:e},scaleMaxNumber:function(){var e=Number(this.scaleMax);return isNaN(e)?10:e},xMove:function(){return"all"===this.direction||"horizontal"===this.direction},yMove:function(){return"all"===this.direction||"vertical"===this.direction}},watch:{x:function(e){this.xSync=this._getPx(e)},xSync:function(e){this._setX(e)},y:function(e){this.ySync=this._getPx(e)},ySync:function(e){this._setY(e)},scaleValue:function(e){this.scaleValueSync=Number(e)||0},scaleValueSync:function(e){this._setScaleValue(e)},scaleMinNumber:function(){this._setScaleMinOrMax()},scaleMaxNumber:function(){this._setScaleMinOrMax()}},created:function(){this._offset={x:0,y:0},this._scaleOffset={x:0,y:0},this._translateX=0,this._translateY=0,this._scale=1,this._oldScale=1,this._STD=new d(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this._friction=new c(1,this.frictionNumber),this._declineX=new u,this._declineY=new u,this.__touchInfo={historyX:[0,0],historyY:[0,0],historyT:[0,0]}},mounted:function(){this.touchtrack(this.$el,"_onTrack"),this.setParent(),this._friction.reconfigure(1,this.frictionNumber),this._STD.reconfigure(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this.$el.style.transformOrigin="center",Object(h["b"])()},methods:{_getPx:function(e){return/\d+[ur]px$/i.test(e)?uni.upx2px(parseFloat(e)):Number(e)||0},_setX:function(e){if(this.xMove){if(e+this._scaleOffset.x===this._translateX)return this._translateX;this._SFA&&this._SFA.cancel(),this._animationTo(e+this._scaleOffset.x,this.ySync+this._scaleOffset.y,this._scale)}return e},_setY:function(e){if(this.yMove){if(e+this._scaleOffset.y===this._translateY)return this._translateY;this._SFA&&this._SFA.cancel(),this._animationTo(this.xSync+this._scaleOffset.x,e+this._scaleOffset.y,this._scale)}return e},_setScaleMinOrMax:function(){if(!this.scale)return!1;this._updateScale(this._scale,!0),this._updateOldScale(this._scale)},_setScaleValue:function(e){return!!this.scale&&(e=this._adjustScale(e),this._updateScale(e,!0),this._updateOldScale(e),e)},__handleTouchStart:function(){this._isScaling||this.disabled||(Object(h["a"])({disable:!0}),this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel(),this.__touchInfo.historyX=[0,0],this.__touchInfo.historyY=[0,0],this.__touchInfo.historyT=[0,0],this.xMove&&(this.__baseX=this._translateX),this.yMove&&(this.__baseY=this._translateY),this.$el.style.willChange="transform",this._checkCanMove=null,this._firstMoveDirection=null,this._isTouching=!0)},__handleTouchMove:function(e){var t=this;if(!this._isScaling&&!this.disabled&&this._isTouching){var n=this._translateX,i=this._translateY;if(null===this._firstMoveDirection&&(this._firstMoveDirection=Math.abs(e.detail.dx/e.detail.dy)>1?"htouchmove":"vtouchmove"),this.xMove&&(n=e.detail.dx+this.__baseX,this.__touchInfo.historyX.shift(),this.__touchInfo.historyX.push(n),this.yMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(e.detail.dx/e.detail.dy)<1)),this.yMove&&(i=e.detail.dy+this.__baseY,this.__touchInfo.historyY.shift(),this.__touchInfo.historyY.push(i),this.xMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(e.detail.dy/e.detail.dx)<1)),this.__touchInfo.historyT.shift(),this.__touchInfo.historyT.push(e.detail.timeStamp),!this._checkCanMove){e.preventDefault();var r="touch";n<this.minX?this.outOfBounds?(r="touch-out-of-bounds",n=this.minX-this._declineX.x(this.minX-n)):n=this.minX:n>this.maxX&&(this.outOfBounds?(r="touch-out-of-bounds",n=this.maxX+this._declineX.x(n-this.maxX)):n=this.maxX),i<this.minY?this.outOfBounds?(r="touch-out-of-bounds",i=this.minY-this._declineY.x(this.minY-i)):i=this.minY:i>this.maxY&&(this.outOfBounds?(r="touch-out-of-bounds",i=this.maxY+this._declineY.x(i-this.maxY)):i=this.maxY),p((function(){t._setTransform(n,i,t._scale,r)}))}}},__handleTouchEnd:function(){var e=this;if(!this._isScaling&&!this.disabled&&this._isTouching&&(Object(h["a"])({disable:!1}),this.$el.style.willChange="auto",this._isTouching=!1,!this._checkCanMove&&!this._revise("out-of-bounds")&&this.inertia)){var t=1e3*(this.__touchInfo.historyX[1]-this.__touchInfo.historyX[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]),n=1e3*(this.__touchInfo.historyY[1]-this.__touchInfo.historyY[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]);this._friction.setV(t,n),this._friction.setS(this._translateX,this._translateY);var i=this._friction.delta().x,r=this._friction.delta().y,a=i+this._translateX,o=r+this._translateY;a<this.minX?(a=this.minX,o=this._translateY+(this.minX-this._translateX)*r/i):a>this.maxX&&(a=this.maxX,o=this._translateY+(this.maxX-this._translateX)*r/i),o<this.minY?(o=this.minY,a=this._translateX+(this.minY-this._translateY)*i/r):o>this.maxY&&(o=this.maxY,a=this._translateX+(this.maxY-this._translateY)*i/r),this._friction.setEnd(a,o),this._FA=y(this._friction,(function(){var t=e._friction.s(),n=t.x,i=t.y;e._setTransform(n,i,e._scale,"friction")}),(function(){e._FA.cancel()}))}},_onTrack:function(e){switch(e.detail.state){case"start":this.__handleTouchStart();break;case"move":this.__handleTouchMove(e);break;case"end":this.__handleTouchEnd()}},_getLimitXY:function(e,t){var n=!1;return e>this.maxX?(e=this.maxX,n=!0):e<this.minX&&(e=this.minX,n=!0),t>this.maxY?(t=this.maxY,n=!0):t<this.minY&&(t=this.minY,n=!0),{x:e,y:t,outOfBounds:n}},setParent:function(){if(this.$parent._isMounted){this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel();var e=this.scale?this.scaleValueSync:1;this._updateOffset(),this._updateWH(e),this._updateBoundary(),this._translateX=this.xSync+this._scaleOffset.x,this._translateY=this.ySync+this._scaleOffset.y;var t=this._getLimitXY(this._translateX,this._translateY),n=t.x,i=t.y;this._setTransform(n,i,e,"",!0),this._updateOldScale(e)}},_updateOffset:function(){this._offset.x=m(this.$el,this.$parent.$el),this._offset.y=g(this.$el,this.$parent.$el)},_updateWH:function(e){e=e||this._scale,e=this._adjustScale(e);var t=this.$el.getBoundingClientRect();this.height=t.height/this._scale,this.width=t.width/this._scale;var n=this.height*e,i=this.width*e;this._scaleOffset.x=(i-this.width)/2,this._scaleOffset.y=(n-this.height)/2},_updateBoundary:function(){var e=0-this._offset.x+this._scaleOffset.x,t=this.$parent.width-this.width-this._offset.x-this._scaleOffset.x;this.minX=Math.min(e,t),this.maxX=Math.max(e,t);var n=0-this._offset.y+this._scaleOffset.y,i=this.$parent.height-this.height-this._offset.y-this._scaleOffset.y;this.minY=Math.min(n,i),this.maxY=Math.max(n,i)},_beginScale:function(){this._isScaling=!0},_endScale:function(){this._isScaling=!1,this._updateOldScale(this._scale)},_setScale:function(e){this.scale&&(e=this._oldScale*e,this._beginScale(),this._updateScale(e))},_updateScale:function(e,t){var n=this;if(this.scale){e=this._adjustScale(e),this._updateWH(e),this._updateBoundary();var i=this._getLimitXY(this._translateX,this._translateY),r=i.x,a=i.y;t?this._animationTo(r,a,e,"",!0,!0):p((function(){n._setTransform(r,a,e,"",!0,!0)}))}},_updateOldScale:function(e){this._oldScale=e},_adjustScale:function(e){return e=Math.max(.5,this.scaleMinNumber,e),e=Math.min(10,this.scaleMaxNumber,e),e},_animationTo:function(e,t,n,i,r,a){var o=this;this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel(),this.xMove||(e=this._translateX),this.yMove||(t=this._translateY),this.scale||(n=this._scale);var s=this._getLimitXY(e,t);e=s.x,t=s.y,this.animation?(this._STD._springX._solution=null,this._STD._springY._solution=null,this._STD._springScale._solution=null,this._STD._springX._endPosition=this._translateX,this._STD._springY._endPosition=this._translateY,this._STD._springScale._endPosition=this._scale,this._STD.setEnd(e,t,n,1),this._SFA=y(this._STD,(function(){var e=o._STD.x(),t=e.x,n=e.y,s=e.scale;o._setTransform(t,n,s,i,r,a)}),(function(){o._SFA.cancel()}))):this._setTransform(e,t,n,i,r,a)},_revise:function(e){var t=this._getLimitXY(this._translateX,this._translateY),n=t.x,i=t.y,r=t.outOfBounds;return r&&this._animationTo(n,i,this._scale,e),r},_setTransform:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;null!==e&&"NaN"!==e.toString()&&"number"===typeof e||(e=this._translateX||0),null!==t&&"NaN"!==t.toString()&&"number"===typeof t||(t=this._translateY||0),e=Number(e.toFixed(1)),t=Number(t.toFixed(1)),n=Number(n.toFixed(1)),this._translateX===e&&this._translateY===t||r||this.$trigger("change",{},{x:v(e,this._scaleOffset.x),y:v(t,this._scaleOffset.y),source:i}),this.scale||(n=this._scale),n=this._adjustScale(n),n=+n.toFixed(3),a&&n!==this._scale&&this.$trigger("scale",{},{x:e,y:t,scale:n});var o="translateX("+e+"px) translateY("+t+"px) translateZ(0px) scale("+n+")";this.$el.style.transform=o,this.$el.style.webkitTransform=o,this._translateX=e,this._translateY=t,this._scale=n}}},_=b,T=(n("7c2b"),n("2877")),w=Object(T["a"])(_,i,r,!1,null,null,null);t["default"]=w.exports},8875:function(e,t,n){var i,r,a;(function(n,o){r=[],i=o,a="function"===typeof i?i.apply(t,r):i,void 0===a||(e.exports=a)})("undefined"!==typeof self&&self,(function(){function e(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(d){var e,t,n,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,r=/@([^@]*):(\d+):(\d+)\s*$/gi,a=i.exec(d.stack)||r.exec(d.stack),o=a&&a[1]||!1,s=a&&a[2]||!1,u=document.location.href.replace(document.location.hash,""),c=document.getElementsByTagName("script");o===u&&(e=document.documentElement.outerHTML,t=new RegExp("(?:[^\\n]+?\\n){0,"+(s-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=e.replace(t,"$1").trim());for(var l=0;l<c.length;l++){if("interactive"===c[l].readyState)return c[l];if(c[l].src===o)return c[l];if(o===u&&c[l].innerHTML&&c[l].innerHTML.trim()===n)return c[l]}return null}}return e}))},"893e":function(e,t,n){"use strict";n.r(t),function(e,i){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"connectSocket",(function(){return p})),n.d(t,"sendSocketMessage",(function(){return m})),n.d(t,"closeSocket",(function(){return g})),n.d(t,"onSocketOpen",(function(){return y})),n.d(t,"onSocketError",(function(){return b})),n.d(t,"onSocketMessage",(function(){return _})),n.d(t,"onSocketClose",(function(){return T}));var u=e,c=u.invokeCallbackHandler,l=["open","close","error","message"],d={},h=[],f=function(){function e(t,n,a){var o,u=this;r(this,e),s(this,"_webSocket",void 0);try{var f=this._webSocket=new WebSocket(t,n);f.binaryType="arraybuffer",this._callbacks={},l.forEach((function(e){u._callbacks[e]=[],f.addEventListener(e,(function(t){var n="message"===e?{data:t.data}:{};if(u._callbacks[e].forEach((function(t){try{t(n)}catch(r){i.error("thirdScriptError\n".concat(r,";at socketTask.on").concat(e[0].toUpperCase()+e.substr(1)," callback function\n"),r)}})),u===h[0]&&d[e]&&c(d[e],n),"error"===e||"close"===e){var r=h.indexOf(u);r>=0&&h.splice(r,1)}}))}));var p=["CLOSED","CLOSING","CONNECTING","OPEN","readyState"];p.forEach((function(e){Object.defineProperty(u,e,{get:function(){return f[e]}})}))}catch(m){o=m}a(o,this)}return o(e,[{key:"send",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=this._webSocket;try{if(n.readyState!==n.OPEN)throw new Error("SocketTask.readyState is not OPEN");n.send(t),this._callback(e,"sendSocketMessage:ok")}catch(i){this._callback(e,"sendSocketMessage:fail ".concat(i))}}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._webSocket,n=[];n.push(e.code||1e3),"string"===typeof e.reason&&n.push(e.reason);try{t.close.apply(t,n),this._callback(e,"closeSocket:ok")}catch(i){this._callback(e,"closeSocket:fail ".concat(i))}}},{key:"_callback",value:function(e,t){var n=e.success,i=e.fail,r=e.complete,a={errMsg:t};/:ok$/.test(t)?"function"===typeof n&&n(a):"function"===typeof i&&i(a),"function"===typeof r&&r(a)}}]),e}();function p(e,t){var n=e.url,i=e.protocols;return new f(n,i,(function(e,n){e||h.push(n),c(t,{errMsg:"connectSocket:"+(e?"fail ".concat(e):"ok")})}))}function m(e,t){var n=h[0];n&&n.readyState===n.OPEN?n.send(Object.assign({},e,{complete:function(e){c(t,e)}})):c(t,{errMsg:"sendSocketMessage:fail WebSocket is not connected "})}function g(e,t){var n=h[0];n?n.close(Object.assign({},e,{complete:function(e){c(t,e)}})):c(t,{errMsg:"closeSocket:fail WebSocket is not connected"})}function v(e){return function(t){d[e]=t}}l.forEach((function(e){var t=e[0].toUpperCase()+e.substr(1);f.prototype["on".concat(t)]=function(t){this._callbacks[e].push(t)}}));var y=v("open"),b=v("error"),_=v("message"),T=v("close")}.call(this,n("0dd1"),n("3ad9")["default"])},"898f":function(e,t,n){"use strict";n.r(t),n.d(t,"previewImage",(function(){return o})),n.d(t,"closePreviewImage",(function(){return s}));var i=n("db70"),r="longPressActionsCallback",a={};function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a=e.longPressActions||{},(a.success||a.fail||a.complete)&&(a.callbackId=r),Object(i["c"])("previewImagePlus",e)}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i["c"])("closePreviewImagePlus",e)}Object(i["d"])(r,(function(e){var t=e.errMsg||"";new RegExp("\\:\\s*fail").test(t)?a.fail&&a.fail(e):a.success&&a.success(e),a.complete&&a.complete(e)}))},"8a36":function(e,t,n){"use strict";(function(e){var i=n("f2b3");t["a"]={props:{id:{type:String,default:""}},created:function(){var e=this;this._addListeners(this.id),this.$watch("id",(function(t,n){e._removeListeners(n,!0),e._addListeners(t,!0)}))},beforeDestroy:function(){this._removeListeners(this.id)},methods:{_addListeners:function(t,n){var r=this;if(!n||t){var a=this.$options.listeners;Object(i["l"])(a)&&Object.keys(a).forEach((function(i){n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&e.on("uni-".concat(i,"-").concat(r.$page.id,"-").concat(t),r[a[i]]):0===i.indexOf("@")?r.$on("uni-".concat(i.substr(1)),r[a[i]]):0===i.indexOf("uni-")?e.on(i,r[a[i]]):t&&e.on("uni-".concat(i,"-").concat(r.$page.id,"-").concat(t),r[a[i]])}))}},_removeListeners:function(t,n){var r=this;if(!n||t){var a=this.$options.listeners;Object(i["l"])(a)&&Object.keys(a).forEach((function(i){n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&e.off("uni-".concat(i,"-").concat(r.$page.id,"-").concat(t),r[a[i]]):0===i.indexOf("@")?r.$off("uni-".concat(i.substr(1)),r[a[i]]):0===i.indexOf("uni-")?e.off(i,r[a[i]]):t&&e.off("uni-".concat(i,"-").concat(r.$page.id,"-").concat(t),r[a[i]])}))}}}}}).call(this,n("501c"))},"8aec":function(e,t,n){"use strict";var i=n("5363"),r=n("72b3");function a(e,t,n){this._extent=e,this._friction=t||new i["a"](.01),this._spring=n||new r["a"](1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}function o(e,t,n){function i(e,t,n,r){if(!e||!e.cancelled){n(t);var a=t.done();a||e.cancelled||(e.id=requestAnimationFrame(i.bind(null,e,t,n,r))),a&&r&&r(t)}}function r(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}var a={id:0,cancelled:!1};return i(a,e,t,n),{cancel:r.bind(null,a),model:e}}function s(e,t){t=t||{},this._element=e,this._options=t,this._enableSnap=t.enableSnap||!1,this._itemSize=t.itemSize||0,this._enableX=t.enableX||!1,this._enableY=t.enableY||!1,this._shouldDispatchScrollEvent=!!t.onScroll,this._enableX?(this._extent=(t.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=t.scrollWidth):(this._extent=(t.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=t.scrollHeight),this._position=0,this._scroll=new a(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}a.prototype.snap=function(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)},a.prototype.set=function(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()},a.prototype.x=function(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t},a.prototype.dx=function(e){var t=0;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t},a.prototype.done=function(){return this._springing?this._spring.done():this._friction.done()},a.prototype.setVelocityByEnd=function(e){this._friction.setVelocityByEnd(e)},a.prototype.configuration=function(){var e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e},s.prototype.onTouchStart=function(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()},s.prototype.onTouchMove=function(e,t){var n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()},s.prototype.onTouchEnd=function(e,t,n){var i=this;if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)<this._itemSize&&Math.abs(n.y)<300||Math.abs(n.y)<150))return void this.snap();if(this._enableX&&(Math.abs(e)<this._itemSize&&Math.abs(n.x)<300||Math.abs(n.x)<150))return void this.snap()}if(this._enableX?this._scroll.set(this._position,n.x):this._enableY&&this._scroll.set(this._position,n.y),this._enableSnap){var r=this._scroll._friction.x(100),a=r%this._itemSize,s=Math.abs(a)>this._itemSize/2?r-(this._itemSize-Math.abs(a)):r-a;s<=0&&s>=-this._extent&&this._scroll.setVelocityByEnd(s)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=o(this._scroll,(function(){var e=Date.now(),t=(e-i._scroll._startTime)/1e3,n=i._scroll.x(t);i._position=n,i.updatePosition();var r=i._scroll.dx(t);i._shouldDispatchScrollEvent&&e-i._lastTime>i._lastDelay&&(i.dispatchScroll(),i._lastDelay=Math.abs(2e3/r),i._lastTime=e)}),(function(){i._enableSnap&&(s<=0&&s>=-i._extent&&(i._position=s,i.updatePosition()),"function"===typeof i._options.onSnap&&i._options.onSnap(Math.floor(Math.abs(i._position)/i._itemSize))),i._shouldDispatchScrollEvent&&i.dispatchScroll(),i._scrolling=!1}))},s.prototype.onTransitionEnd=function(){this._element.style.transition="",this._element.style.webkitTransition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._element.removeEventListener("webkitTransitionEnd",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()},s.prototype.snap=function(){var e=this._itemSize,t=this._position%e,n=Math.abs(t)>this._itemSize/2?this._position-(e-Math.abs(t)):this._position-t;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),"function"===typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))},s.prototype.scrollTo=function(e,t){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"===typeof e&&(this._position=-e),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0),this._element.style.transition="transform "+(t||.2)+"s ease-out",this._element.style.webkitTransition="-webkit-transform "+(t||.2)+"s ease-out",this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd),this._element.addEventListener("webkitTransitionEnd",this._onTransitionEnd)},s.prototype.dispatchScroll=function(){if("function"===typeof this._options.onScroll&&Math.round(this._lastPos)!==Math.round(this._position)){this._lastPos=this._position;var e={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(e)}},s.prototype.update=function(e,t,n){var i=0,r=this._position;this._enableX?(i=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(i=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"===typeof e&&(this._position=-e),this._position<-i?this._position=-i:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),r!==this._position&&(this.dispatchScroll(),"function"===typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=i,this._scroll._extent=i},s.prototype.updatePosition=function(){var e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e},s.prototype.isScrolling=function(){return this._scrolling||this._snapping},t["a"]={methods:{initScroller:function(e,t){this._touchInfo={trackingID:-1,maxDy:0,maxDx:0},this._scroller=new s(e,t),this.__handleTouchStart=this._handleTouchStart.bind(this),this.__handleTouchMove=this._handleTouchMove.bind(this),this.__handleTouchEnd=this._handleTouchEnd.bind(this),this._initedScroller=!0},_findDelta:function(e){var t=this._touchInfo;return"move"===e.detail.state||"end"===e.detail.state?{x:e.detail.dx,y:e.detail.dy}:{x:e.screenX-t.x,y:e.screenY-t.y}},_handleTouchStart:function(e){var t=this._touchInfo,n=this._scroller;n&&("start"===e.detail.state?(t.trackingID="touch",t.x=e.detail.x,t.y=e.detail.y):(t.trackingID="mouse",t.x=e.screenX,t.y=e.screenY),t.maxDx=0,t.maxDy=0,t.historyX=[0],t.historyY=[0],t.historyTime=[e.detail.timeStamp],t.listener=n,n.onTouchStart&&n.onTouchStart(),e.preventDefault())},_handleTouchMove:function(e){var t=this._touchInfo;if(-1!==t.trackingID){e.preventDefault();var n=this._findDelta(e);if(n){for(t.maxDy=Math.max(t.maxDy,Math.abs(n.y)),t.maxDx=Math.max(t.maxDx,Math.abs(n.x)),t.historyX.push(n.x),t.historyY.push(n.y),t.historyTime.push(e.detail.timeStamp);t.historyTime.length>10;)t.historyTime.shift(),t.historyX.shift(),t.historyY.shift();t.listener&&t.listener.onTouchMove&&t.listener.onTouchMove(n.x,n.y,e.detail.timeStamp)}}},_handleTouchEnd:function(e){var t=this._touchInfo;if(-1!==t.trackingID){e.preventDefault();var n=this._findDelta(e);if(n){var i=t.listener;t.trackingID=-1,t.listener=null;var r=t.historyTime.length,a={x:0,y:0};if(r>2)for(var o=t.historyTime.length-1,s=t.historyTime[o],u=t.historyX[o],c=t.historyY[o];o>0;){o--;var l=t.historyTime[o],d=s-l;if(d>30&&d<50){a.x=(u-t.historyX[o])/(d/1e3),a.y=(c-t.historyY[o])/(d/1e3);break}}t.historyTime=[],t.historyX=[],t.historyY=[],i&&i.onTouchEnd&&i.onTouchEnd(n.x,n.y,a)}}}}}},"8af1":function(e,t,n){"use strict";var i=n("5cf8");n.d(t,"a",(function(){return i["a"]}));var r=n("8a36");n.d(t,"f",(function(){return r["a"]}));var a=n("83a6");n.d(t,"c",(function(){return a["a"]}));var o=n("1b6f");n.d(t,"g",(function(){return o["a"]}));var s=n("5a23");n.d(t,"e",(function(){return s["a"]}));var u=n("b282");n.d(t,"b",(function(){return u["a"]}));var c=n("a878");n.d(t,"d",(function(){return c["a"]}))},"8b18":function(e,t,n){},"8b3f":function(e,t,n){"use strict";n.r(t),n.d(t,"onNetworkStatusChange",(function(){return o})),n.d(t,"offNetworkStatusChange",(function(){return s}));var i=n("a118"),r=n("db70"),a=[];function o(e){a.push(e)}function s(e){if(e){var t=a.indexOf(e);t>=0&&a.splice(t,1)}}Object(r["d"])("onNetworkStatusChange",(function(e){a.forEach((function(t){Object(i["a"])(t,e)}))}))},"8b61":function(e,t,n){},"8b67":function(e,t,n){"use strict";n.r(t),n.d(t,"TEMP_PATH",(function(){return i}));var i=""},"8bbf":function(e,n){e.exports=t},"8c15":function(e,t,n){"use strict";n.r(t),function(e){var i=n("85b6"),r=n("d4b6"),a=n("61c2"),o=n("c4c5");function s(){e.publishHandler("onPageReady",{},this.$page.id)}t["default"]={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.routes,Object(r["a"])();var n=function(e,t){for(var n=e.target;n&&n!==t;n=n.parentNode)if(n.tagName&&0===n.tagName.indexOf("UNI-"))break;return n};e.prototype.$handleEvent=function(e){if(e instanceof Event){var t=n(e,this.$el);e=r["b"].call(this,e.type,e,{},t||e.target,e.currentTarget)}return e},e.prototype.$getComponentDescriptor=function(e,t){return Object(o["a"])(e||this,t)},Object.defineProperty(e.prototype,"$ownerInstance",{get:function(){return this.$getComponentDescriptor(this)}}),e.prototype.$handleWxsEvent=function(e){if(e instanceof Event){var t=e.currentTarget,i=t&&t.__vue__&&t.__vue__.$getComponentDescriptor(t.__vue__,!1),a=e;e=r["b"].call(this,a.type,a,{},n(a,this.$el)||a.target,a.currentTarget),e.instance=i,e.preventDefault=function(){return a.preventDefault()},e.stopPropagation=function(){return a.stopPropagation()}}return e},e.mixin({beforeCreate:function(){var e=this,t=this.$options,n=t.wxs;n&&Object.keys(n).forEach((function(t){e[t]=n[t]})),t.behaviors&&t.behaviors.length&&Object(a["a"])(t,this),Object(i["d"])(this)&&(t.mounted=t.mounted?[].concat(s,t.mounted):[s])}})}}}.call(this,n("501c"))},"8ce3":function(e,t,n){"use strict";n.r(t),function(e,i){n.d(t,"chooseVideo",(function(){return d}));var r=n("e2e2"),a=n("a6b0"),o=n("3563"),s=n("8af1"),u=e,c=u.invokeCallbackHandler,l=null;function d(e,t){var n=e.sourceType,u=e.extension;l&&(document.body.removeChild(l),l=null),l=Object(o["default"])({sourceType:n,extension:u,type:"video"}),document.body.appendChild(l),l.addEventListener("change",(function(e){var n,i=e.target.files[0],a={errMsg:"chooseVideo:ok",tempFile:i,size:i.size,duration:0,width:0,height:0,name:i.name};Object.defineProperty(a,"tempFilePath",{get:function(){return n=n||Object(r["b"])(this.tempFile),n}});var o=document.createElement("video");if(void 0!==o.onloadedmetadata){var s=Object(r["b"])(i);o.onloadedmetadata=function(){Object(r["e"])(s),c(t,Object.assign(a,{duration:o.duration||0,width:o.videoWidth||0,height:o.videoHeight||0}))},setTimeout((function(){o.onloadedmetadata=null,Object(r["e"])(s),c(t,a)}),300),o.src=s}else c(t,a)})),l.click(),s["d"].getStatus()||i.warn("".concat(Object(a["g"])("uni.chooseFile.notUserActivation")))}}.call(this,n("0dd1"),n("3ad9")["default"])},"8e16":function(e,t,n){"use strict";var i=n("ea49"),r=n.n(i);r.a},"8e72":function(e,t,n){},"8f7e":function(e,t,n){"use strict";n.r(t);var i=n("8bbf"),r=n.n(i),a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-app",{class:{"uni-app--showtabbar":e.showTabBar,"uni-app--maxwidth":e.showMaxWidth}},[n("layout",{ref:"layout",attrs:{"router-key":e.key,"keep-alive-include":e.keepAliveInclude},on:{maxWidth:e.onMaxWidth,layout:e.onLayout}}),e.hasTabBar?n("tab-bar",e._b({directives:[{name:"show",rawName:"v-show",value:e.showTabBar,expression:"showTabBar"}],ref:"tabBar"},"tab-bar",e.tabBarOptions,!1)):e._e(),e.$options.components.Toast?n("toast",e._b({},"toast",e.showToast,!1)):e._e(),e.$options.components.ActionSheet?n("action-sheet",e._b({on:{close:e._onActionSheetClose}},"action-sheet",e.showActionSheet,!1)):e._e(),e.$options.components.Modal?n("modal",e._b({on:{close:e._onModalClose}},"modal",e.showModal,!1)):e._e(),e.sysComponents&&e.sysComponents.length?e._l(e.sysComponents,(function(e,t){return n(e,{key:t,tag:"component"})})):e._e()],2)},o=[],s=n("cdc1"),u=s["a"],c=(n("854d"),n("2877")),l=Object(c["a"])(u,a,o,!1,null,null,null),d=l.exports,h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-page",{attrs:{"data-page":e.$route.meta.pagePath}},["none"!==e.navigationBar.type?n("page-head",e._b({},"page-head",e.navigationBar,!1)):e._e(),e.enablePullDownRefresh?n("page-refresh",{ref:"refresh",attrs:{color:e.refreshOptions.color,offset:e.refreshOptions.offset}}):e._e(),e.enablePullDownRefresh?n("page-body",{nativeOn:{touchstart:function(t){return e._touchstart(t)},touchmove:function(t){return e._touchmove(t)},touchend:function(t){return e._touchend(t)},touchcancel:function(t){return e._touchend(t)}}},[e._t("page")],2):n("page-body",[e._t("page")],2)],1)},f=[],p=n("27d0"),m=p["a"],g=(n("6226"),Object(c["a"])(m,h,f,!1,null,null,null)),v=g.exports,y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uni-async-error",on:{click:e._onClick}},[e._v(" "+e._s(e.$$t("uni.async.error"))+" ")])},b=[],_=n("a6b0"),T={name:"AsyncError",mixins:[_["c"]],methods:{_onClick:function(){window.location.reload()}}},w=T,S=(n("b628"),Object(c["a"])(w,y,b,!1,null,null,null)),k=S.exports,C=function(){var e=this;e.$createElement;return e._self._c,e._m(0)},x=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uni-async-loading"},[n("i",{staticClass:"uni-loading"})])}],E={name:"AsyncLoading"},A=E,O=(n("5727"),Object(c["a"])(A,C,x,!1,null,null,null)),j=O.exports,I=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hasTabBar?n("uni-tabbar",{directives:[{name:"show",rawName:"v-show",value:e.showTabBar,expression:"showTabBar"}]},[n("div",{staticClass:"uni-tabbar",style:{"flex-direction":"vertical"===e.direction?"column":"row",backgroundColor:e.tabBarOptions.backgroundColor}},e._l(e.tabBarOptions.list,(function(t,i){return n("div",{key:t.pagePath,staticClass:"uni-tabbar__item",on:{click:function(n){return e._switchTab(t,i)}}},[n("div",{staticClass:"uni-tabbar__bd"},[e.showIcon&&t.iconPath?n("div",{staticClass:"uni-tabbar__icon",class:{"uni-tabbar__icon__diff":!t.text}},[n("img",{attrs:{src:e._getRealPath(e.selectedIndex===i?t.selectedIconPath:t.iconPath)}}),t.redDot?n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!t.badge}},[e._v(" "+e._s(t.badge)+" ")]):e._e()]):e._e(),t.text?n("div",{staticClass:"uni-tabbar__label",style:{color:e.selectedIndex===i?e.tabBarOptions.selectedColor:e.tabBarOptions.color,fontSize:e.showIcon&&t.iconPath?"10px":"14px"}},[e._v(" "+e._s(t.text)+" "),!t.redDot||e.showIcon&&t.iconPath?e._e():n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!t.badge}},[e._v(" "+e._s(t.badge)+" ")])]):e._e()])])})),0)]):e._e()},P=[],L=n("e243"),M=L["a"],D=Object(c["a"])(M,I,P,!1,null,null,null),R=D.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uni-system-choose-location"},[n("v-uni-map",{staticClass:"map",attrs:{latitude:e.latitude,longitude:e.longitude,"show-location":"",libraries:["places"]},on:{updated:e.getList,regionchange:e.onRegionChange}},[n("div",{staticClass:"map-location",style:e.locationStyle}),n("div",{staticClass:"map-move",on:{click:e.moveToLocation}},[n("i",[e._v("")])])]),n("div",{staticClass:"nav"},[n("div",{staticClass:"nav-btn back",on:{click:e.back}},[n("i",{staticClass:"uni-btn-icon"},[e._v("")])]),n("div",{staticClass:"nav-btn confirm",class:{disable:!e.selected},on:{click:e.choose}},[n("i",{staticClass:"uni-btn-icon"},[e._v("")])])]),n("div",{staticClass:"menu"},[n("div",{staticClass:"search"},[n("v-uni-input",{staticClass:"search-input",attrs:{placeholder:e.$$t("uni.chooseLocation.search")},on:{focus:function(t){e.searching=!0},input:e.input},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}}),e.searching?n("div",{staticClass:"search-btn",on:{click:function(t){e.searching=!1,e.keyword=""}}},[e._v(" "+e._s(e.$$t("uni.chooseLocation.cancel"))+" ")]):e._e()],1),n("v-uni-scroll-view",{staticClass:"list",attrs:{"scroll-y":""},on:{scrolltolower:e.loadMore}},[e.loading?n("div",{staticClass:"list-loading"},[n("i",{staticClass:"uni-loading"})]):e._e(),e._l(e.list,(function(t,i){return n("div",{key:i,staticClass:"list-item",class:{selected:e.selectedIndex===i},on:{click:function(n){e.selectedIndex=i,e.latitude=t.latitude,e.longitude=t.longitude}}},[n("div",{staticClass:"list-item-title"},[e._v(" "+e._s(t.name)+" ")]),n("div",{staticClass:"list-item-detail"},[e._v(" "+e._s(e._f("distance")(t.distance))+e._s(t.address)+" ")])])}))],2)],1)],1)},B=[],U=n("fda5"),F=U["a"],$=(n("9470"),Object(c["a"])(F,N,B,!1,null,null,null)),H=$.exports,V=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uni-system-open-location"},[n("v-uni-map",{staticClass:"map",attrs:{latitude:e.center.latitude,longitude:e.center.longitude,markers:[e.marker,e.location]},on:{regionchange:e.onRegionChange}},[n("div",{staticClass:"map-move",on:{click:e.moveToLocation}},[n("i",[e._v("")])])]),n("div",{staticClass:"info"},[n("div",{staticClass:"name",on:{click:function(t){return e.setCenter(e.marker)}}},[e._v(" "+e._s(e.name)+" ")]),n("div",{staticClass:"address",on:{click:function(t){return e.setCenter(e.marker)}}},[e._v(" "+e._s(e.address)+" ")]),n("div",{staticClass:"nav",on:{click:e.nav}},[n("svg",{attrs:{width:"26",height:"26",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M896 544c-207.807 0-388.391 82.253-480 203.149V173.136l201.555 201.555c12.412 12.412 32.723 12.412 45.136 0 12.412-12.412 12.412-32.723 0-45.136L408.913 75.777a31.93 31.93 0 0 0-2.222-2.468c-6.222-6.222-14.429-9.324-22.631-9.308l-0.059-0.002-0.059 0.002c-8.202-0.016-16.409 3.085-22.631 9.308a31.93 31.93 0 0 0-2.222 2.468l-253.78 253.778c-12.412 12.412-12.412 32.723 0 45.136 12.412 12.412 32.723 12.412 45.136 0L352 173.136V928c0 17.6 14.4 32 32 32s32-14.4 32-32c0-176.731 214.903-320 480-320 17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32z",fill:"#ffffff"}})])])]),n("div",{staticClass:"nav-btn-back",on:{click:e.back}},[n("i",{staticClass:"uni-btn-icon"},[e._v("")])])],1)},q=[],z=n("636c"),W={name:"SystemOpenLocation",data:function(){var e=this.$route.query,t=e.latitude,n=e.longitude,i=e.scale,r=void 0===i?18:i,a=e.name,o=void 0===a?"":a,s=e.address,u=void 0===s?"":s;return{latitude:t,longitude:n,scale:r,name:o,address:u,center:{latitude:t,longitude:n},marker:{id:1,latitude:t,longitude:n,iconPath:z["b"],width:32,height:52},location:{id:2,latitude:0,longitude:0,iconPath:z["a"],width:44,height:44}}},methods:{onRegionChange:function(e){var t=e.detail.centerLocation;t&&(this.center.latitude=t.latitude,this.center.longitude=t.longitude)},setCenter:function(e){var t=e.latitude,n=e.longitude;this.center.latitude=t,this.center.longitude=n},moveToLocation:function(){uni.getLocation({type:"gcj02",success:this.move.bind(this),fail:function(){}})},move:function(e){var t=e.latitude,n=e.longitude;this.location.latitude=t,this.location.longitude=n,this.setCenter({latitude:t,longitude:n})},back:function(){getApp().$router.back()},nav:function(){var e=Object(z["d"])(),t="";if(e.type===z["c"].GOOGLE){var n=this.location.latitude?"&origin=".concat(this.location.latitude,"%2C").concat(this.location.longitude):"";t="https://www.google.com/maps/dir/?api=1".concat(n,"&destination=").concat(this.latitude,"%2C").concat(this.longitude)}else if(e.type===z["c"].QQ){var i=this.location.latitude?"&fromcoord=".concat(this.location.latitude,"%2C").concat(this.location.longitude):"";t="https://apis.map.qq.com/uri/v1/routeplan?type=drive".concat(i,"&tocoord=").concat(this.latitude,"%2C").concat(this.longitude,"&from=").concat(encodeURIComponent("我的位置"),"&to=").concat(encodeURIComponent(this.name||"目的地"),"&ref=").concat(e.key)}window.open(t)}}},G=W,Y=(n("3da9"),Object(c["a"])(G,V,q,!1,null,null,null)),X=Y.exports,K=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uni-system-preview-image",on:{click:e._click}},[n("v-uni-swiper",{staticClass:"uni-system-preview-image-swiper",attrs:{current:e.index,"indicator-dots":!1,autoplay:!1},on:{"update:current":function(t){e.index=t}}},e._l(e.urls,(function(e,t){return n("v-uni-swiper-item",{key:t},[n("image-view",{attrs:{src:e}})],1)})),1)],1)},Q=[],J=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-movable-area",{staticClass:"image-view-area",nativeOn:{touchstart:function(t){return e.onTouchStart(t)},touchmove:function(t){return e.checkDirection(t)},touchend:function(t){return e.onTouchEnd(t)}}},[n("v-uni-movable-view",{staticClass:"image-view-view",attrs:{direction:e.direction,inertia:"",scale:"","scale-min":"1","scale-max":"4"},on:{scale:e.onScale}},[n("img",{staticClass:"image-view-img",attrs:{src:e.src},on:{load:e.onImgLoad}})])],1)},Z=[],ee={name:"ImageView",props:{src:{type:String,default:""}},data:function(){return{direction:"none"}},created:function(){this.scale=1,this.imgWidth=0,this.imgHeight=0,this.width=0,this.height=0},methods:{onScale:function(e){var t=e.detail.scale;this.scale=t},onImgLoad:function(e){var t=e.target,n=t.getBoundingClientRect();this.imgWidth=n.width,this.imgHeight=n.height},onTouchStart:function(e){var t=this.$el,n=t.getBoundingClientRect();this.width=n.width,this.height=n.height,this.checkDirection(e)},onTouchEnd:function(e){var t=this.scale,n=t*this.imgWidth>this.width,i=t*this.imgHeight>this.height;this.direction=n&&i?"all":n?"horizontal":i?"vertical":"none",this.checkDirection(e)},checkDirection:function(e){var t=this.direction;"all"!==t&&"horizontal"!==t||e.stopPropagation()}}},te=ee,ne=(n("5378"),Object(c["a"])(te,J,Z,!1,null,null,null)),ie=ne.exports,re={name:"SystemPreviewImage",components:{imageView:ie},data:function(){var e=this.$route.params,t=e.urls,n=e.current;return{urls:t||[],current:n,index:0}},created:function(){var e="number"===typeof this.current?this.current:this.urls.indexOf(this.current);this.index=e<0?0:e},mounted:function(){var e=this,t=20,n=0,i=0;this.$el.addEventListener("mousedown",(function(t){e.preventDefault=!1,n=t.clientX,i=t.clientY})),this.$el.addEventListener("mouseup",(function(r){(Math.abs(r.clientX-n)>t||Math.abs(r.clientY-i)>t)&&(e.preventDefault=!0)}))},methods:{_click:function(){this.preventDefault||getApp().$router.back()}}},ae=re,oe=(n("f10e"),Object(c["a"])(ae,K,Q,!1,null,null,null)),se=oe.exports,ue={ChooseLocation:H,OpenLocation:X,PreviewImage:se};r.a.component(d.name,d),r.a.component(v.name,v),r.a.component(k.name,k),r.a.component(j.name,j),r.a.component(R.name,R),Object.keys(ue).forEach((function(e){var t=ue[e];r.a.component(t.name,t)}))},"90f7":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-page-refresh",[n("div",{staticClass:"uni-page-refresh",style:{"margin-top":e.offset+"px"}},[n("div",{staticClass:"uni-page-refresh-inner"},[n("svg",{staticClass:"uni-page-refresh__icon",attrs:{fill:e.color,width:"24",height:"24",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}}),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})]),n("svg",{staticClass:"uni-page-refresh__spinner",attrs:{width:"24",height:"24",viewBox:"25 25 50 50"}},[n("circle",{staticClass:"uni-page-refresh__path",attrs:{stroke:e.color,cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"}})])])])])},r=[],a={name:"PageRefresh",props:{color:{type:String,default:"#2BD009"},offset:{type:Number,default:0}}},o=a,s=(n("9b5b"),n("2877")),u=Object(s["a"])(o,i,r,!1,null,null,null);t["a"]=u.exports},9213:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-swiper-item",e._g({},e.$listeners),[e._t("default")],2)},r=[],a={name:"SwiperItem",props:{itemId:{type:String,default:""}},mounted:function(){var e=this.$el;e.style.position="absolute",e.style.width="100%",e.style.height="100%";var t=this.$vnode._callbacks;t&&t.forEach((function(e){e()}))}},o=a,s=(n("bfea"),n("2877")),u=Object(s["a"])(o,i,r,!1,null,null,null);t["default"]=u.exports},9250:function(e,t){var n=["base64ToArrayBuffer","arrayBufferToBase64","addInterceptor","removeInterceptor","interceptors"],i=["request","uploadFile","downloadFile","connectSocket","onSocketOpen","onSocketError","sendSocketMessage","onSocketMessage","closeSocket","onSocketClose","getUpdateManager","configMTLS"],r=["navigateTo","redirectTo","reLaunch","switchTab","navigateBack"],a=["setStorage","setStorageSync","getStorage","getStorageSync","getStorageInfo","getStorageInfoSync","removeStorage","removeStorageSync","clearStorage","clearStorageSync"],o=["getLocation","chooseLocation","openLocation","createMapContext"],s=["chooseImage","chooseFile","previewImage","closePreviewImage","getImageInfo","getVideoInfo","saveImageToPhotosAlbum","compressImage","compressVideo","getRecorderManager","getBackgroundAudioManager","createAudioContext","createInnerAudioContext","chooseVideo","saveVideoToPhotosAlbum","createVideoContext","createCameraContext","createLivePlayerContext","createLivePusherContext"],u=["getSystemInfo","getSystemInfoSync","canIUse","onMemoryWarning","getNetworkType","onNetworkStatusChange","offNetworkStatusChange","onAccelerometerChange","offAccelerometerChange","startAccelerometer","stopAccelerometer","onCompassChange","offCompassChange","startCompass","stopCompass","onGyroscopeChange","startGyroscope","stopGyroscope","makePhoneCall","scanCode","setClipboardData","getClipboardData","setScreenBrightness","getScreenBrightness","setKeepScreenOn","onUserCaptureScreen","vibrateLong","vibrateShort","addPhoneContact","openBluetoothAdapter","startBluetoothDevicesDiscovery","onBluetoothDeviceFound","stopBluetoothDevicesDiscovery","onBluetoothAdapterStateChange","getConnectedBluetoothDevices","getBluetoothDevices","getBluetoothAdapterState","closeBluetoothAdapter","writeBLECharacteristicValue","readBLECharacteristicValue","onBLEConnectionStateChange","onBLECharacteristicValueChange","notifyBLECharacteristicValueChange","getBLEDeviceServices","getBLEDeviceCharacteristics","createBLEConnection","closeBLEConnection","setBLEMTU","getBLEDeviceRSSI","onBeaconServiceChange","onBeaconUpdate","getBeacons","startBeaconDiscovery","stopBeaconDiscovery","checkIsSupportSoterAuthentication","checkIsSoterEnrolledInDevice","startSoterAuthentication","onThemeChange","onUIStyleChange"],c=["hideKeyboard","onKeyboardHeightChange","offKeyboardHeightChange","getSelectedTextRange"],l=["showToast","hideToast","showLoading","hideLoading","showModal","showActionSheet","setNavigationBarTitle","setNavigationBarColor","showNavigationBarLoading","hideNavigationBarLoading","setTabBarItem","setTabBarStyle","hideTabBar","showTabBar","setTabBarBadge","removeTabBarBadge","showTabBarRedDot","hideTabBarRedDot","onTabBarMidButtonTap","setBackgroundColor","setBackgroundTextStyle","createAnimation","pageScrollTo","onWindowResize","offWindowResize","loadFontFace","startPullDownRefresh","stopPullDownRefresh","createSelectorQuery","createIntersectionObserver","createMediaQueryObserver","getMenuButtonBoundingClientRect","showTopWindow","showLeftWindow","showRightWindow","hideTopWindow","hideLeftWindow","hideRightWindow","getTopWindowStyle","getLeftWindowStyle","getRightWindowStyle","setTopWindowStyle","setLeftWindowStyle","setRightWindowStyle","getLocale","setLocale","onLocaleChange"],d=["$emit","$on","$once","$off"],h=["saveFile","getSavedFileList","getSavedFileInfo","removeSavedFile","getFileInfo","openDocument","getFileSystemManager"],f=["createOffscreenCanvas","createCanvasContext","canvasToTempFilePath","canvasPutImageData","canvasGetImageData"],p=["getProvider","login","checkSession","getUserInfo","getUserProfile","preLogin","closeAuthView","getCheckBoxState","getUniverifyManager","share","shareWithSystem","showShareMenu","hideShareMenu","requestPayment","subscribePush","unsubscribePush","onPush","offPush","requireNativePlugin","upx2px","restoreGlobal","getSubNVueById","getCurrentSubNVue","setPageMeta","onHostEventReceive","onNativeEventReceive","sendNativeEvent","preloadPage","unPreloadPage","loadSubPackage","sendHostEvent","navigateToMiniProgram"],m=["createRewardedVideoAd","createFullScreenVideoAd","createInterstitialAd","createInteractiveAd"],g=[].concat(n,i,r,a,o,s,u,c,l,d,h,f,p,m);e.exports=g},"927d":function(e,t,n){},"93a5":function(e,t,n){var i={"./ad/index.vue":"10a3","./cover-image/index.vue":"d677","./cover-view/index.vue":"c41f","./map/index.vue":"594d","./picker/index.vue":"6fa7","./video/index.vue":"31e2","./web-view/index.vue":"9980"};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id="93a5"},"93ab":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i={};function r(e,t,n){var r="string"===typeof e?window[e]:e;if(r)n();else{var a=i[t];if(!a){a=i[t]=[];var o=document.createElement("script");o.src=t,document.body.appendChild(o),o.onload=function(){a.forEach((function(e){return e()})),delete i[t]}}a.push(n)}}},9400:function(e,t,n){"use strict";var i=n("cc89"),r=n.n(i);r.a},"944e":function(e,t,n){"use strict";var i=n("a6bb"),r=n.n(i);r.a},9470:function(e,t,n){"use strict";var i=n("69c3"),r=n.n(i);r.a},"956d":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"getVideoInfo",(function(){return r}));var i=n("e2e2");function r(t,n){var r=t.src,a=e,o=a.invokeCallbackHandler;Object(i["f"])(r,!0).then((function(e){return e})).catch((function(){return{}})).then((function(e){var t=e.size?{size:e.size,errMsg:"getVideoInfo:ok"}:{errMsg:"getVideoInfo:fail"},i=document.createElement("video");if(void 0!==i.onloadedmetadata){var a=setTimeout((function(){i.onloadedmetadata=null,i.onerror=null,o(n,t)}),r.startsWith("data:")||r.startsWith("blob:")?300:3e3);i.onloadedmetadata=function(){clearTimeout(a),i.onerror=null,o(n,Object.assign(t,{size:e.size,duration:i.duration||0,width:i.videoWidth||0,height:i.videoHeight||0,errMsg:"getVideoInfo:ok"}))},i.onerror=function(){clearTimeout(a),i.onloadedmetadata=null,o(n,t)},i.src=r}else o(n,t)}))}}.call(this,n("0dd1"))},"957a":function(e,t,n){"use strict";n.r(t),n.d(t,"canIUse",(function(){return i}));var i=[{name:"schema",type:String,required:!0}]},9776:function(e,t,n){"use strict";n.r(t),n.d(t,"getLocale",(function(){return o})),n.d(t,"setLocale",(function(){return s})),n.d(t,"onLocaleChange",(function(){return c}));var i=n("a118"),r=n("a6b0"),a=n("65a8");function o(){var e=getApp({allowDefault:!0});return e&&e.$vm?e.$vm.$locale:r["b"].getLocale()}function s(e){var t=getApp().$vm.$locale;return t!==e&&(getApp().$vm.$locale=e,window.localStorage&&(localStorage[a["d"]]=e),u.forEach((function(t){Object(i["a"])(t,{locale:e})})),!0)}var u=[];function c(e){u.push(e)}},"98be":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i=n("9250"),r=n.n(i),a=n("27a7"),o=n("ed1a"),s=Object.create(null),u=n("bdb1");u.keys().forEach((function(e){Object.assign(s,u(e))}));var c=s,l=n("3b67"),d=Object.assign(Object.create(null),c,l["a"]),h=Object.create(null);r.a.forEach((function(e){d[e]?h[e]=Object(o["d"])(e,Object(a["c"])(e,d[e])):h[e]=Object(a["d"])(e)}))},9980:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-web-view",e._g({},e.$listeners),[n("v-uni-resize-sensor",{ref:"sensor",on:{resize:e._resize}})],1)},r=[],a={name:"WebView",props:{src:{type:String,default:""}},watch:{src:function(e,t){this.iframe&&(this.iframe.src=this.$getRealPath(this.src))}},mounted:function(){var e=this;this.iframe=document.createElement("iframe"),Object.keys(this.$attrs).forEach((function(t){e.iframe[t]=e.$attrs[t]})),this.iframe.src=this.$getRealPath(this.src),document.body.appendChild(this.iframe),this._resize()},activated:function(){this.iframe.style.display="block"},deactivated:function(){this.iframe.style.display="none"},beforeDestroy:function(){document.body.removeChild(this.iframe)},methods:{_resize:function(){var e=this.$el.getBoundingClientRect(),t=e.top,n=e.left,i=e.width,r=e.height;this.iframe.style.position="absolute",this.iframe.style.display="block",this.iframe.style.border=0,this.iframe.style.top=t+"px",this.iframe.style.left=n+"px",this.iframe.style.width=i+"px",this.iframe.style.height=r+"px"}}},o=a,s=(n("c33f"),n("2877")),u=Object(s["a"])(o,i,r,!1,null,null,null);t["default"]=u.exports},"9a3e":function(e,t,n){"use strict";n.r(t),n.d(t,"uploadFile",(function(){return r}));var i=n("cb0f"),r={url:{type:String,required:!0},files:{type:Array},filePath:{type:String,validator:function(e,t){e&&(t.filePath=Object(i["a"])(e))}},name:{type:String},header:{type:Object,validator:function(e,t){t.header=e||{}}},formData:{type:Object,validator:function(e,t){t.formData=e||{}}}}},"9a8b":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-icon",e._g({},e.$listeners),[n("i",{class:"uni-icon-"+e.type,style:{"font-size":e._converPx(e.size),color:e.color},attrs:{role:"img"}})])},r=[],a={name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},methods:{_converPx:function(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(function(e,t){return"".concat(uni.upx2px(parseFloat(t)),"px")})):/^-?[\d\.]+$/.test(e)?"".concat(e,"px"):e||""}}},o=a,s=(n("7e6a"),n("2877")),u=Object(s["a"])(o,i,r,!1,null,null,null);t["default"]=u.exports},"9b1b":function(e,t,n){"use strict";n.r(t),n.d(t,"onWindowResize",(function(){return o})),n.d(t,"offWindowResize",(function(){return s}));var i=n("a118"),r=n("db70"),a=[];function o(e){a.push(e)}function s(e){a.splice(a.indexOf(e),1)}Object(r["d"])("onViewDidResize",(function(e){a.forEach((function(t){Object(i["a"])(t,e)}))}))},"9b1f":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-progress",e._g({staticClass:"uni-progress"},e.$listeners),[n("div",{staticClass:"uni-progress-bar",style:e.outerBarStyle},[n("div",{staticClass:"uni-progress-inner-bar",style:e.innerBarStyle})]),e.showInfo?[n("p",{staticClass:"uni-progress-info"},[e._v(" "+e._s(e.currentPercent)+"% ")])]:e._e()],2)},r=[],a={activeColor:"#007AFF",backgroundColor:"#EBEBEB",activeMode:"backwards"},o={name:"Progress",props:{percent:{type:[Number,String],default:0,validator:function(e){return!isNaN(parseFloat(e,10))}},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator:function(e){return!isNaN(parseFloat(e,10))}},color:{type:String,default:a.activeColor},activeColor:{type:String,default:a.activeColor},backgroundColor:{type:String,default:a.backgroundColor},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:a.activeMode},duration:{type:[Number,String],default:30,validator:function(e){return!isNaN(parseFloat(e,10))}}},data:function(){return{currentPercent:0,strokeTimer:0,lastPercent:0}},computed:{outerBarStyle:function(){return"background-color: ".concat(this.backgroundColor,"; height: ").concat(this.strokeWidth,"px;")},innerBarStyle:function(){var e="";return e=this.color!==a.activeColor&&this.activeColor===a.activeColor?this.color:this.activeColor,"width: ".concat(this.currentPercent,"%;background-color: ").concat(e)},realPercent:function(){var e=parseFloat(this.percent,10);return e<0&&(e=0),e>100&&(e=100),e}},watch:{realPercent:function(e,t){this.strokeTimer&&clearInterval(this.strokeTimer),this.lastPercent=t||0,this._activeAnimation()}},created:function(){this._activeAnimation()},methods:{_activeAnimation:function(){var e=this;this.active?(this.currentPercent=this.activeMode===a.activeMode?0:this.lastPercent,this.strokeTimer=setInterval((function(){e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1}),parseFloat(this.duration))):this.currentPercent=this.realPercent}}},s=o,u=(n("944e"),n("2877")),c=Object(u["a"])(s,i,r,!1,null,null,null);t["default"]=c.exports},"9b5b":function(e,t,n){"use strict";var i=n("8b61"),r=n.n(i);r.a},"9e56":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"previewImage",(function(){return a})),n.d(t,"closePreviewImage",(function(){return o}));var i=e,r=i.invokeCallbackHandler;function a(e,t){var n=e.urls,i=e.current;getApp().$router.push({type:"navigateTo",path:"/preview-image",params:{urls:n,current:i}},(function(){r(t,{errMsg:"previewImage:ok"})}),(function(){r(t,{errMsg:"previewImage:fail"})}))}function o(e,t){var n=getApp().$router;"/preview-image"===n.history.current.path?(n.back(),r(t,{errMsg:"closePreviewImage:ok"})):r(t,{errMsg:"closePreviewImage:fail"})}}.call(this,n("0dd1"))},"9f96":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-slider",e._g({ref:"uni-slider",on:{click:e._onClick}},e.$listeners),[n("div",{staticClass:"uni-slider-wrapper"},[n("div",{staticClass:"uni-slider-tap-area"},[n("div",{staticClass:"uni-slider-handle-wrapper",style:e.setBgColor},[n("div",{ref:"uni-slider-handle",staticClass:"uni-slider-handle",style:e.setBlockBg}),n("div",{staticClass:"uni-slider-thumb",style:e.setBlockStyle}),n("div",{staticClass:"uni-slider-track",style:e.setActiveColor})])]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.showValue,expression:"showValue"}],ref:"uni-slider-value",staticClass:"uni-slider-value"},[e._v(e._s(e.sliderValue))])]),e._t("default")],2)},r=[],a=n("8af1"),o=n("ba15"),s={add:function(e){var t,n,i;try{t=this.toString().split(".")[1].length}catch(r){t=0}try{n=e.toString().split(".")[1].length}catch(r){n=0}return i=Math.pow(10,Math.max(t,n)),(this*i+e*i)/i},sub:function(e){return this.add(-e)},mul:function(e){var t=0,n=this.toString(),i=e.toString();try{t+=n.split(".")[1].length}catch(r){}try{t+=i.split(".")[1].length}catch(r){}return Number(n.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,t)},div:function(e){var t,n,i=0,r=0;try{i=this.toString().split(".")[1].length}catch(a){}try{r=e.toString().split(".")[1].length}catch(a){}return t=Number(this.toString().replace(".","")),n=Number(e.toString().replace(".","")),t/n*Math.pow(10,r-i)},mod:function(e){var t,n,i=0,r=0;try{i=this.toString().split(".")[1].length}catch(s){}try{r=e.toString().split(".")[1].length}catch(s){}var a=Math.pow(10,Math.abs(i-r));1==a&&(a=Math.pow(10,i)),t=(this*a).toString().split(".")[0],n=e*a;var o=(this*a).toString().split(".")[1]?(this*a).toString().split(".")[1]:"";return(t%n+o)/a}},u={name:"Slider",mixins:[a["a"],a["f"],o["a"]],props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},data:function(){return{sliderValue:Number(this.value)}},computed:{setBlockStyle:function(){return{width:this.blockSize+"px",height:this.blockSize+"px",marginLeft:-this.blockSize/2+"px",marginTop:-this.blockSize/2+"px",left:this._getValueWidth(),backgroundColor:this.blockColor}},setBgColor:function(){return{backgroundColor:this._getBgColor()}},setBlockBg:function(){return{left:this._getValueWidth()}},setActiveColor:function(){return{backgroundColor:this._getActiveColor(),width:this._getValueWidth()}}},watch:{value:function(e){this.sliderValue=Number(e)}},mounted:function(){this.touchtrack(this.$refs["uni-slider-handle"],"_onTrack")},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onUserChangedValue:function(e){var t=this.$refs["uni-slider-value"],n=getComputedStyle(t,null).marginLeft,i=t.offsetWidth;i+=parseInt(n);var r=this.$refs["uni-slider"],a=r.offsetWidth-(this.showValue?i:0),o=r.getBoundingClientRect().left,s=(e.x-o)*(this.max-this.min)/a+Number(this.min);this.sliderValue=this._filterValue(s)},_filterValue:function(e){var t=Number(this.max),n=Number(this.min);return e<n?n:e>t?t:s.mul.call(Math.round((e-n)/this.step),this.step)+n},_getValueWidth:function(){return 100*(this.sliderValue-this.min)/(this.max-this.min)+"%"},_getBgColor:function(){return"#e9e9e9"!==this.backgroundColor?this.backgroundColor:"#007aff"!==this.color?this.color:"#007aff"},_getActiveColor:function(){return"#007aff"!==this.activeColor?this.activeColor:"#e9e9e9"!==this.selectedColor?this.selectedColor:"#e9e9e9"},_onTrack:function(e){if(!this.disabled)return"move"===e.detail.state?(this._onUserChangedValue({x:e.detail.x}),this.$trigger("changing",e,{value:this.sliderValue}),!1):"end"===e.detail.state&&this.$trigger("change",e,{value:this.sliderValue})},_onClick:function(e){this.disabled||(this._onUserChangedValue(e),this.$trigger("change",e,{value:this.sliderValue}))},_resetFormData:function(){this.sliderValue=this.min},_getFormData:function(){var e={};return""!==this.name&&(e.value=this.sliderValue,e.key=this.name),e}}},c=u,l=(n("6428"),n("2877")),d=Object(l["a"])(c,i,r,!1,null,null,null);t["default"]=d.exports},a118:function(e,t,n){"use strict";(function(e){function i(){var t;return(t=e).invokeCallbackHandler.apply(t,arguments)}function r(t){return e.removeCallbackHandler(t)}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}))}).call(this,n("0dd1"))},a201:function(e,t,n){"use strict";n.r(t),n.d(t,"request",(function(){return c})),n.d(t,"configMTLS",(function(){return l}));var i=n("f2b3"),r={OPTIONS:"OPTIONS",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",DELETE:"DELETE",TRACE:"TRACE",CONNECT:"CONNECT",PATCH:"PATCH"},a={JSON:"json"},o={TEXT:"text",ARRAYBUFFER:"arraybuffer"},s=encodeURIComponent;function u(e,t){var n=e.split("#"),r=n[1]||"";n=n[0].split("?");var a=n[1]||"";e=n[0];var o=a.split("&").filter((function(e){return e}));for(var u in a={},o.forEach((function(e){e=e.split("="),a[e[0]]=e[1]})),t)if(Object(i["i"])(t,u)){var c=t[u];"undefined"===typeof c||null===c?c="":Object(i["l"])(c)&&(c=JSON.stringify(c)),a[s(u)]=s(c)}return a=Object.keys(a).map((function(e){return"".concat(e,"=").concat(a[e])})).join("&"),e+(a?"?"+a:"")+(r?"#"+r:"")}var c={method:{type:String,validator:function(e,t){e=(e||"").toUpperCase(),t.method=Object.values(r).indexOf(e)<0?r.GET:e}},data:{type:[Object,String,Array,ArrayBuffer],validator:function(e,t){t.data=e||""}},url:{type:String,required:!0,validator:function(e,t){t.method===r.GET&&Object(i["l"])(t.data)&&Object.keys(t.data).length&&(t.url=u(e,t.data))}},header:{type:Object,validator:function(e,t){var n=t.header=e||{};t.method!==r.GET&&(Object.keys(n).find((function(e){return"content-type"===e.toLowerCase()}))||(n["Content-Type"]="application/json"))}},dataType:{type:String,validator:function(e,t){t.dataType=(e||a.JSON).toLowerCase()}},responseType:{type:String,validator:function(e,t){e=(e||"").toLowerCase(),t.responseType=Object.values(o).indexOf(e)<0?o.TEXT:e}},withCredentials:{type:Boolean},timeout:{type:Number}},l={certificates:{type:Array,required:!0,validator:function(e){if(e.some((function(e){return"String"!==Object(i["s"])(e.host)})))return"参数配置错误,请确认后重试"}}}},a20f:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return u}));var i=n("f2b3"),r=function(){var e=document.createElement("canvas");e.height=e.width=0;var t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}(),a=function(e,t){for(var n in e)Object(i["i"])(e,n)&&t(e[n],n)},o={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",setTransform:[4,5]},s=CanvasRenderingContext2D.prototype;function u(e){e.width=e.offsetWidth*r,e.height=e.offsetHeight*r,e.__hidpi__=!0,e.__context2d__=e.getContext("2d"),e.__context2d__.__hidpi__=!0}s.drawImageByCanvas=function(e){return function(t,n,i,a,o,s,u,c,l,d){if(!this.__hidpi__)return e.apply(this,arguments);n*=r,i*=r,a*=r,o*=r,s*=r,u*=r,c=d?c*r:c,l=d?l*r:l,e.call(this,t,n,i,a,o,s,u,c,l)}}(s.drawImage),1!==r&&(a(o,(function(e,t){s[t]=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);var n=Array.prototype.slice.call(arguments);if("all"===e)n=n.map((function(e){return e*r}));else if(Array.isArray(e))for(var i=0;i<e.length;i++)n[e[i]]*=r;return t.apply(this,n)}}(s[t])})),s.stroke=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.lineWidth*=r,e.apply(this,arguments),this.lineWidth/=r}}(s.stroke),s.fillText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var t=Array.prototype.slice.call(arguments);t[1]*=r,t[2]*=r;var n=this.__font__||this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(e,t,n){return t*r+n})),e.apply(this,t),this.font=n}}(s.fillText),s.strokeText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var t=Array.prototype.slice.call(arguments);t[1]*=r,t[2]*=r;var n=this.__font__||this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(e,t,n){return t*r+n})),e.apply(this,t),this.font=n}}(s.strokeText),s.drawImage=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.scale(r,r),e.apply(this,arguments),this.scale(1/r,1/r)}}(s.drawImage))},a3e5:function(e,t,n){"use strict";var i=n("df1e"),r=n.n(i);r.a},a402:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-page-wrapper",[n("uni-page-body",[e._t("default")],2)],1)},r=[],a=n("e949"),o=n("bdbe"),s={name:"PageBody",mounted:function(){var e=o["a"].height||"50px",t=".uni-app--showtabbar uni-page-wrapper {\n display: block;\n height: calc(100% - ".concat(e,");\n height: calc(100% - ").concat(e," - constant(safe-area-inset-bottom));\n height: calc(100% - ").concat(e," - env(safe-area-inset-bottom));\n }");t+="\n",t+='.uni-app--showtabbar uni-page-wrapper::after {\n content: "";\n display: block;\n width: 100%;\n height: '.concat(e,";\n height: calc(").concat(e," + constant(safe-area-inset-bottom));\n height: calc(").concat(e," + env(safe-area-inset-bottom));\n }"),t+="\n",t+='.uni-app--showtabbar uni-page-head[uni-page-head-type="default"] ~ uni-page-wrapper {\n height: calc(100% - 44px - '.concat(e,");\n height: calc(100% - 44px - constant(safe-area-inset-top) - ").concat(e," - constant(safe-area-inset-bottom));\n height: calc(100% - 44px - env(safe-area-inset-top) - ").concat(e," - env(safe-area-inset-bottom));\n }"),Object(a["a"])(t)}},u=s,c=(n("167a"),n("2877")),l=Object(c["a"])(u,i,r,!1,null,null,null);t["a"]=l.exports},a470:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("65a8"),r=n("d8c8"),a=n.n(r);function o(){if(uni.canIUse("css.var")){var e=document.documentElement.style,t=parseInt((e.getPropertyValue("--window-top").match(/\d+/)||["0"])[0]),n=parseInt((e.getPropertyValue("--window-bottom").match(/\d+/)||["0"])[0]),r=parseInt((e.getPropertyValue("--window-left").match(/\d+/)||["0"])[0]),o=parseInt((e.getPropertyValue("--window-right").match(/\d+/)||["0"])[0]),s=parseInt((e.getPropertyValue("--top-window-height").match(/\d+/)||["0"])[0]);return{top:(t?t+a.a.top:0)+(s||0),bottom:n?n+a.a.bottom:0,left:r?r+a.a.left:0,right:o?o+a.a.right:0}}var u=0,c=0,l=getCurrentPages();if(l.length){var d=l[l.length-1].$parent.$parent,h=d.navigationBar.type;u="default"===h||"float"===h?i["a"]:0}var f=getApp();return f&&(c=f.$children[0]&&f.$children[0].showTabBar?i["c"]:0),{top:u,bottom:c,left:0,right:0}}},a5ec:function(e,t,n){"use strict";var i=n("54bc"),r=n.n(i);r.a},a6b0:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"g",(function(){return m})),n.d(t,"c",(function(){return g})),n.d(t,"a",(function(){return v})),n.d(t,"d",(function(){return y})),n.d(t,"e",(function(){return x})),n.d(t,"f",(function(){return E}));var i,r=n("d46d"),a=n("f2b3"),o=n("65a8"),s=n("39aa"),u=n("80e5"),c=n("b3b1"),l=n("2209"),d=n("02ed"),h={};function f(){if(C()){var e=Object.keys(__uniConfig.locales);e.length&&e.forEach((function(e){var t=h[e],n=__uniConfig.locales[e];t?Object.assign(t,n):h[e]=n}))}}Object.assign(h,{en:s,es:u,fr:c,"zh-Hans":l,"zh-Hant":d}),i=window.localStorage&&localStorage[o["d"]]||__uniConfig.locale||navigator.language,f();var p=Object(r["initVueI18n"])(i,h),m=p.t,g=p.mixin={beforeCreate:function(){var e=this,t=p.i18n.watchLocale((function(){e.$forceUpdate()}));this.$once("hook:beforeDestroy",(function(){t()}))},methods:{$$t:function(e,t){return m(e,t)}}},v=(p.setLocale,p.getLocale);function y(e,t,n){var i=e.observable({locale:n||p.getLocale()}),r=[];t.$watchLocale=function(e){r.push(e)},Object.defineProperty(t,"$locale",{get:function(){return i.locale},set:function(e){i.locale=e,r.forEach((function(t){return t(e)}))}})}var b=["%","%"];function _(){var e=uni.getLocale(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}function T(e){return Object(r["isI18nStr"])(e,b)?p.f(e,_(),b):e}function w(e,t){if(1!==t.length){var n=t.shift();return w(e&&e[n],t)}if(e){var i=e[t[0]];if(Object(a["m"])(i)&&Object(r["isI18nStr"])(i,b))return e}}function S(e,t){return t.map((function(t){return k(e,t)}))}function k(e,t){var n=w(e,t);if(!n)return!1;var i=t[t.length-1],r=n[i];return Object.defineProperty(n,i,{get:function(){return T(r)},set:function(e){r=e}}),!0}function C(){return"undefined"!==typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length}function x(e){if(C())return S(e,[["titleText"],["searchInput","placeholder"]])}function E(e){return C()&&e.list&&e.list.forEach((function(e){k(e,["text"])})),e}},a6bb:function(e,t,n){},a741:function(e,t,n){"use strict";(function(e,i){function r(e,t,n){return e=e.$vm||e,e.__call_hook&&e.__call_hook(t,n)}function a(t,n,i){return"onError"!==n&&e.debug("App:".concat(n," have been invoked")+(i?" ".concat(JSON.stringify(i)):"")),t=t.$vm||t,t.__call_hook&&t.__call_hook(n,i)}function o(t,n,a){return"onLoad"===n&&(t.$mp.query=a,i.publishHandler("onPageLoad",t,t.$page.id)),"onShow"===n&&(t.$route.meta.isTabBar&&t.$route.params.detail&&setTimeout((function(){i.emit("onTabItemTap",t.$route.params.detail)}),0),i.publishHandler("onPageShow",t,t.$page.id)),"onPageScroll"!==n&&e.debug("".concat(t.$page.route,"[").concat(t.$page.id,"]:").concat(n," have been invoked")),r(t,n,a)}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o}))}).call(this,n("3ad9")["default"],n("0dd1"))},a878:function(e,t,n){"use strict";var i,r=n("f2b3"),a=!r["q"]||{passive:!0,capture:!0},o=[],s=0;function u(e){o.forEach((function(t){return t.userInteract=e}))}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!i){var t=["touchstart","touchmove","touchend","mousedown","mouseup"];t.forEach((function(e){document.addEventListener(e,(function(){!s&&u(!0),s++,setTimeout((function(){!--s&&u(!1)}),0)}),a)})),i=!0}o.push(e)}function l(e){var t=o.indexOf(e);t>=0&&o.splice(t,1)}t["a"]={data:function(){return{userInteract:!1}},mounted:function(){c(this)},beforeDestroy:function(){l(this)},addInteractListener:c,getStatus:function(){return!!s}}},a919:function(e,t,n){"use strict";(function(e){var i=n("cb0f"),r=n("f2b3"),a=n("b865");function o(e){return window.CSS&&CSS.supports&&(CSS.supports(e)||CSS.supports.apply(CSS,e.split(":")))}t["a"]={name:"TabBar",props:{position:{default:"bottom",validator:function(e){return-1!==["bottom","top"].indexOf(e)}},color:{type:String,default:"#999"},selectedColor:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderStyle:{type:String,default:"black"},list:{type:Array,default:function(){return[]}},matchMedia:{type:Object,default:function(){return{}}},blurEffect:{type:String,default:"none"},fontSize:{type:String,default:"10px"},iconWidth:{type:String,default:"24px"},spacing:{type:String,default:"3px"},height:{type:String,default:"50px"},midButton:{type:Object,default:null}},data:function(){return{selectedIndex:0,visibleList:[]}},computed:{tabbarBackgroundColor:function(){var e="#f7f7fa";if(this.backgroundColor)return this.backgroundColor;if(o("backdrop-filter:blur(10px)")&&"none"!==this.blurEffect){if("dark"===this.blurEffect)return"rgb(0, 0, 0, 0.8)";if(["light","extralight"].includes(this.blurEffect))return"rgb(250, 250, 250, 0.8)"}return e},borderColor:function(){return"white"===this.borderStyle?"rgba(255, 255, 255, 0.33)":"black"===this.borderStyle?"rgba(0, 0, 0, 0.33)":this.borderStyle}},watch:{$route:{immediate:!0,handler:function(){this.visibleList.length||this._initVisibleList(),this.setSelectedIndex()}},list:{deep:!0,handler:function(){this._initVisibleList(),this.setSelectedIndex()}}},created:function(){var e=this;this.list.forEach((function(t){void 0===t.visible&&e.$set(t,"visible",!0)}))},beforeCreate:function(){this.__path__=this.$route.path},methods:{getIconPath:function(e,t){return this.selectedIndex===t&&e.selectedIconPath||e.iconPath||""},setSelectedIndex:function(){var e=this;if(this.$route.meta.isTabBar){this.__path__=this.$route.path;var t=this.visibleList.findIndex((function(t){return e.$route.meta.pagePath===t.pagePath}));this.selectedIndex=t}},_initVisibleList:function(){this.visibleList=this._initMidButton(this.list.filter((function(e){return!1!==e.visible})))},_getRealPath:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=/^([a-z-]+:)?\/\//i,n=/^data:.*,.*/;return t.test(e)||n.test(e)||0===e.indexOf("/")||(e="/"+e),Object(i["a"])(e)},_switchTab:function(t,n){var i=t.text,r=t.pagePath,o=t.isMidButton,s=void 0!==o&&o;if(s)Object(a["a"])("onTabBarMidButtonTap");else{this.selectedIndex=n;var u="/"+r;u===__uniRoutes[0].alias&&(u="/");var c={index:n,text:i,pagePath:r};this.$route.path!==u?(this.__path__=this.$route.path,uni.switchTab({from:"tabBar",url:u,detail:c})):e.emit("onTabItemTap",c)}},_initMidButton:function(e){var t=e.length;if(t%2===0&&Object(r["l"])(this.midButton)){var n={width:"50px",height:"50px",iconWidth:"24px"};for(var i in n)this.midButton[i]=this.midButton[i]||n[i];e.splice(~~(t/2),0,Object.assign({},this.midButton,{isMidButton:!0}))}return e},_uniTabbarBdStyle:function(e){return Object.assign({},{width:e.width,height:e.height,backgroundImage:e.backgroundImage?"url('"+this._getRealPath(e.backgroundImage)+"')":""})}}}}).call(this,n("0dd1"))},a954:function(e,t,n){"use strict";n.r(t),n.d(t,"addInterceptor",(function(){return i})),n.d(t,"removeInterceptor",(function(){return r}));var i=[{name:"method",type:[String,Object],required:!0}],r=i},aa92:function(e,t,n){"use strict";function i(e){return s(e)||o(e)||a(e)||r()}function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function o(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function s(e){if(Array.isArray(e))return u(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}n.d(t,"a",(function(){return p}));var c=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onInit","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onNavigationBarSearchInputFocusChanged","onPageShow","onPageHide","onPageResize","onServiceCreated","onServiceAttached"],l=["data","properties","options","relations"];function d(e,t,n){t[n]&&Object.assign(e[n]||(e[n]={}),t[n])}function h(e,t){e.push.apply(e,i(t))}function f(e,t){l.forEach((function(n){d(e,t,n)})),t.externalClasses&&h(e.externalClasses||(e.externalClasses=[]),t.externalClasses),t.path&&(e.path=t.path)}function p(e){var t=e.extend;e.extend=function(e){e=e||{};var n=e.methods;return n&&Object.keys(n).forEach((function(t){-1!==c.indexOf(t)&&(e[t]=n[t],delete n[t])})),t.call(this,e)};var n=e.config.optionMergeStrategies,i=n.created;c.forEach((function(e){n[e]=i})),n.mpOptions=function(e,t){if(!e)return t;var n=Object.create(null);return f(n,e),t&&f(n,t),n}}},abb2:function(e,t,n){"use strict";n.r(t),n.d(t,"connectSocket",(function(){return r})),n.d(t,"sendSocketMessage",(function(){return a})),n.d(t,"closeSocket",(function(){return o}));var i={OPTIONS:"OPTIONS",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",DELETE:"DELETE",TRACE:"TRACE",CONNECT:"CONNECT"},r={url:{type:String,required:!0},header:{type:Object,validator:function(e,t){t.header=e||{}}},method:{type:String,validator:function(e,t){e=(e||"").toUpperCase(),t.method=Object.values(i).indexOf(e)<0?i.GET:e}},protocols:{type:[Array,String],validator:function(e,t){"string"===typeof e&&(e=[e]),t.protocols=(e||[]).filter((function(e){return"string"===typeof e}))}}},a={data:{type:[String,ArrayBuffer]}},o={code:{type:Number},reason:{type:String}}},abbf:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var i=n("a741"),r=n("1164");function a(t,n,a){return{created:function(){Object(r["a"])(t,this,n),a.meta.name||e.emit("onPageNotFound",{path:a.path,query:a.query,isEntryPage:!0})},beforeMount:function(){this.$el=document.getElementById("app")},mounted:function(){var e={path:this.$route.meta&&this.$route.meta.pagePath,query:this.$route.query,scene:1001};Object(i["a"])(this,"onLaunch",e),Object(i["a"])(this,"onShow",e)}}}n.d(t,"b",(function(){return r["b"]})),n.d(t,"c",(function(){return r["c"]}))}).call(this,n("0dd1"))},abea:function(e,t,n){"use strict";function i(e){var t=e.service;return{service:t,provider:[]}}n.r(t),n.d(t,"getProvider",(function(){return i}))},add1:function(e,t,n){},af33:function(e,t,n){"use strict";n.r(t),n.d(t,"createSelectorQuery",(function(){return g}));var i=n("f2b3"),r=n("db70"),a=n("303f"),o=n("bfa6"),s=n("ee03"),u=n("60db");function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}var h={canvas:a["CanvasContext"],map:o["MapContext"],video:s["VideoContext"],editor:u["EditorContext"]};function f(e){if(e&&e.context){var t=e.context,n=t.id,i=t.name,r=t.page,a=h[i];e.context=a&&new a(n,r)}}var p=function(){function e(t,n,i,r){c(this,e),this._selectorQuery=t,this._component=n,this._selector=i,this._single=r}return d(e,[{key:"boundingClientRect",value:function(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,rect:!0,size:!0},e),this._selectorQuery}},{key:"fields",value:function(e,t){return this._selectorQuery._push(this._selector,this._component,this._single,e,t),this._selectorQuery}},{key:"scrollOffset",value:function(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,scrollOffset:!0},e),this._selectorQuery}},{key:"context",value:function(e){return this._selectorQuery._push(this._selector,this._component,this._single,{context:!0},e),this._selectorQuery}}]),e}(),m=function(){function e(t){c(this,e),this._page=t,this._queue=[],this._queueCb=[]}return d(e,[{key:"exec",value:function(e){var t=this;Object(r["c"])("requestComponentInfo",this._page,this._queue,(function(n){var r=t._queueCb;n.forEach((function(e,n){Array.isArray(e)?e.forEach(f):f(e);var a=r[n];Object(i["k"])(a)&&a.call(t,e)})),Object(i["k"])(e)&&e.call(t,n)}))}},{key:"in",value:function(e){return this._component=e._$id||e,this}},{key:"select",value:function(e){return new p(this,this._component,e,!0)}},{key:"selectAll",value:function(e){return new p(this,this._component,e,!1)}},{key:"selectViewport",value:function(){return new p(this,0,"",!0)}},{key:"_push",value:function(e,t,n,i,r){this._queue.push({component:t,selector:e,single:n,fields:i}),this._queueCb.push(r)}}]),e}();function g(e){return new m(e||Object(r["b"])("createSelectorQuery"))}},b0ef:function(e,t,n){"use strict";n.r(t),n.d(t,"$on",(function(){return i})),n.d(t,"$once",(function(){return r})),n.d(t,"$off",(function(){return a})),n.d(t,"$emit",(function(){return o}));var i=[{name:"event",type:[String,Array],required:!0},{name:"callback",type:Function,required:!0}],r=i,a=[{name:"event",type:[String,Array]},{name:"callback",type:Function}],o=[{name:"event",type:String,required:!0}]},b10a:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var i=n("18fd");function r(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/<!doctype.*>\n/,"").replace(/<!DOCTYPE.*>\n/,"")}function a(e){return e.reduce((function(e,t){var n=t.value,i=t.name;return n.match(/ /)&&"style"!==i&&(n=n.split(" ")),e[i]?Array.isArray(e[i])?e[i].push(n):e[i]=[e[i],n]:e[i]=n,e}),{})}function o(t){t=r(t);var n=[],o={node:"root",children:[]};return Object(i["a"])(t,{start:function(e,t,i){var r={name:e};if(0!==t.length&&(r.attrs=a(t)),i){var s=n[0]||o;s.children||(s.children=[]),s.children.push(r)}else n.unshift(r)},end:function(t){var i=n.shift();if(i.name!==t&&e.error("invalid state: mismatch end tag"),0===n.length)o.children.push(i);else{var r=n[0];r.children||(r.children=[]),r.children.push(i)}},chars:function(e){var t={type:"text",text:e};if(0===n.length)o.children.push(t);else{var i=n[0];i.children||(i.children=[]),i.children.push(t)}},comment:function(e){var t={node:"comment",text:e},i=n[0];i.children||(i.children=[]),i.children.push(t)}}),o.children}}).call(this,n("3ad9")["default"])},b253:function(e,t,n){"use strict";function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function s(e){return function(){var t,n=d(e);if(l()){var i=d(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return u(this,t)}}function u(e,t){return!t||"object"!==i(t)&&"function"!==typeof t?c(e):t}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}n.d(t,"a",(function(){return Y}));var h=function(e){var t=e.import("blots/block/embed"),n=function(e){a(n,e);var t=s(n);function n(){return r(this,n),t.apply(this,arguments)}return n}(t);return n.blotName="divider",n.tagName="HR",{"formats/divider":n}};function f(e){return f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function v(e){return function(){var t,n=T(e);if(_()){var i=T(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return y(this,t)}}function y(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var w=function(e){var t=e.import("blots/inline"),n=function(e){m(n,e);var t=v(n);function n(){return p(this,n),t.apply(this,arguments)}return n}(t);return n.blotName="ins",n.tagName="INS",{"formats/ins":n}},S=function(e){var t=e.import("parchment"),n=t.Scope,i=t.Attributor,r={scope:n.BLOCK,whitelist:["left","right","center","justify"]},a=new i.Style("align","text-align",r);return{"formats/align":a}},k=function(e){var t=e.import("parchment"),n=t.Scope,i=t.Attributor,r={scope:n.BLOCK,whitelist:["rtl"]},a=new i.Style("direction","direction",r);return{"formats/direction":a}};function C(e){return C="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function O(e,t,n){return t&&A(e.prototype,t),n&&A(e,n),e}function j(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}function I(e,t){return I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},I(e,t)}function P(e){return function(){var t,n=B(e);if(D()){var i=B(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return L(this,t)}}function L(e,t){return!t||"object"!==C(t)&&"function"!==typeof t?M(e):t}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function R(e,t,n){return R="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=N(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}},R(e,t,n||e)}function N(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=B(e),null===e)break;return e}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},B(e)}var U=function(e){var t=e.import("parchment"),n=e.import("blots/container"),i=e.import("formats/list/item"),r=function(e){j(r,e);var n=P(r);function r(e){var i;E(this,r),i=n.call(this,e);var a=function(n){if(n.target.parentNode===e){var r=i.statics.formats(e),a=t.find(n.target);"checked"===r?a.format("list","unchecked"):"unchecked"===r&&a.format("list","checked")}};return e.addEventListener("click",a),i}return O(r,null,[{key:"create",value:function(e){var t="ordered"===e?"OL":"UL",n=R(B(r),"create",this).call(this,t);return"checked"!==e&&"unchecked"!==e||n.setAttribute("data-checked","checked"===e),n}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),O(r,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return x({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,t){if(e instanceof i)R(B(r.prototype),"insertBefore",this).call(this,e,t);else{var n=null==t?this.length():t.offset(this),a=this.split(n);a.parent.insertBefore(e,a)}}},{key:"optimize",value:function(e){R(B(r.prototype),"optimize",this).call(this,e);var t=this.next;null!=t&&t.prev===this&&t.statics.blotName===this.statics.blotName&&t.domNode.tagName===this.domNode.tagName&&t.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(t.moveChildren(this),t.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=t.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}R(B(r.prototype),"replace",this).call(this,e)}}]),r}(n);return r.blotName="list",r.scope=t.Scope.BLOCK_BLOT,r.tagName=["OL","UL"],r.defaultChild="list-item",r.allowedChildren=[i],{"formats/list":r}},F=function(e){var t=e.import("parchment"),n=t.Scope,i=e.import("formats/background"),r=new i.constructor("backgroundColor","background-color",{scope:n.INLINE});return{"formats/backgroundColor":r}},$=n("f2b3"),H=function(e){var t=e.import("parchment"),n=t.Scope,i=t.Attributor,r={scope:n.BLOCK},a=["margin","marginTop","marginBottom","marginLeft","marginRight"],o=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],s={};return a.concat(o).forEach((function(e){s["formats/".concat(e)]=new i.Style(e,Object($["n"])(e),r)})),s},V=function(e){var t=e.import("parchment"),n=t.Scope,i=t.Attributor,r={scope:n.INLINE},a=["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"],o={};return a.forEach((function(e){o["formats/".concat(e)]=new i.Style(e,Object($["n"])(e),r)})),o},q=function(e){var t=e.import("parchment"),n=t.Scope,i=t.Attributor,r=[{name:"lineHeight",scope:n.BLOCK},{name:"letterSpacing",scope:n.INLINE},{name:"textDecoration",scope:n.INLINE},{name:"textIndent",scope:n.BLOCK}],a={};return r.forEach((function(e){var t=e.name,n=e.scope;a["formats/".concat(t)]=new i.Style(t,Object($["n"])(t),{scope:n})})),a},z=n("cb0f"),W=function(e){var t=e.import("formats/image"),n=["alt","height","width","data-custom","class","data-local"];t.sanitize=function(e){return e?Object(z["a"])(e):e},t.formats=function(e){return n.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})};var i=t.prototype.format;t.prototype.format=function(e,t){n.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):i.call(this,e,t)}},G=function(e){var t=e.import("formats/link");t.sanitize=function(e){var n=document.createElement("a");n.href=e;var i=n.href.slice(0,n.href.indexOf(":"));return t.PROTOCOL_WHITELIST.concat("file").indexOf(i)>-1?e:t.SANITIZED_URL}};function Y(e){var t={divider:h,ins:w,align:S,direction:k,list:U,background:F,box:H,font:V,text:q,image:W,link:G},n={};Object.values(t).forEach((function(t){return Object.assign(n,t(e))})),e.register(n,!0)}},b282:function(e,t,n){"use strict";(function(e){var i,r=n("f2b3"),a=n("5cf8"),o=n("5a23"),s=n("a878");e.subscribe("getSelectedTextRange",(function(t){var n=t.pageId,i=t.callbackId,r=document.activeElement,a=r.tagName.toLowerCase(),o=["input","textarea"],s={};o.includes(a)?(s.errMsg="getSelectedTextRange:ok",s.start=r.selectionStart,s.end=r.selectionEnd):s.errMsg="getSelectedTextRange:fail no focused",e.publishHandler("onGetSelectedTextRange",{callbackId:i,data:s},n)})),t["a"]={name:"Field",mixins:[a["a"],o["a"],s["a"]],model:{prop:"value",event:"update:value"},props:{value:{type:[String,Number],default:""},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},confirmHold:{type:Boolean,default:!1}},data:function(){return{composing:!1,valueSync:this._getValueString(this.value),focusSync:this.focus,fixColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image")}},watch:{focus:function(e){e?this._focus():this._blur()},focusSync:function(e){this.$emit("update:focus",e)},cursorNumber:function(){this._checkCursor()},selectionStartNumber:function(){this._checkSelection()},selectionEndNumber:function(){this._checkSelection()}},computed:{needFocus:function(){return this.autoFocus||this.focus},cursorNumber:function(){var e=Number(this.cursor);return isNaN(e)?-1:e},selectionStartNumber:function(){var e=Number(this.selectionStart);return isNaN(e)?-1:e},selectionEndNumber:function(){var e=Number(this.selectionEnd);return isNaN(e)?-1:e}},created:function(){var e=this,t=this.__valueChange=Object(r["d"])((function(t){e.valueSync=e._getValueString(t)}),100);this.$watch("value",t),this.__triggerInput=Object(r["r"])((function(t,n){e.__valueChange.cancel(),e.$emit("update:value",n.value),e.$trigger("input",t,n)}),100),this.$triggerInput=function(t,n,i){e.__valueChange.cancel(),e.__triggerInput(t,n),i&&e.__triggerInput.flush()}},beforeDestroy:function(){this.__valueChange.cancel(),this.__triggerInput.cancel()},directives:{field:{inserted:function(e,t,n){n.context._initField(e)}}},methods:{_getValueString:function(e){return null===e?"":String(e)},_initField:function(e){var t=this;this._field=e,i=i||Date.now(),this.needFocus&&setTimeout((function(){t._focus()}))},_focus:function(){if(this.needFocus){var e=this._field;e?e.focus():setTimeout(this._focus.bind(this),100)}},_blur:function(){var e=this._field;e&&e.blur()},_onFocus:function(e){this.focusSync=!0,this.$trigger("focus",e,{value:this.valueSync}),this._checkSelection(),this._checkCursor()},_onBlur:function(e){this.composing&&(this.composing=!1,this._onInput(e,!0)),this.focusSync=!1;var t,n=e.target;"number"===n.type?(n.type="text",t=n.selectionEnd,n.type="number"):t=n.selectionEnd,this.$trigger("blur",e,{value:this.valueSync,cursor:t})},_checkSelection:function(){var e=this._field;this.focusSync&&this.selectionStartNumber>-1&&this.selectionEndNumber>-1&&"number"!==e.type&&(e.selectionStart=this.selectionStartNumber,e.selectionEnd=this.selectionEndNumber)},_checkCursor:function(){var e=this._field;this.focusSync&&this.selectionStartNumber<0&&this.selectionEndNumber<0&&this.cursorNumber>-1&&"number"!==e.type&&(e.selectionEnd=e.selectionStart=this.cursorNumber)}}}}).call(this,n("501c"))},b2bb:function(e,t,n){},b34d:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-form",e._g({},e.$listeners),[n("span",[e._t("default")],2)])},r=[],a=n("8af1"),o={name:"Form",mixins:[a["f"]],data:function(){return{childrenList:[]}},listeners:{"@form-submit":"_onSubmit","@form-reset":"_onReset","@form-group-update":"_formGroupUpdateHandler"},methods:{_onSubmit:function(e){var t={};this.childrenList.forEach((function(e){e._getFormData&&e._getFormData().key&&(t[e._getFormData().key]=e._getFormData().value)})),this.$trigger("submit",e,{value:t})},_onReset:function(e){this.$trigger("reset",e,{}),this.childrenList.forEach((function(e){e._resetFormData&&e._resetFormData()}))},_formGroupUpdateHandler:function(e){if("add"===e.type)this.childrenList.push(e.vm);else{var t=this.childrenList.indexOf(e.vm);this.childrenList.splice(t,1)}}}},s=o,u=n("2877"),c=Object(u["a"])(s,i,r,!1,null,null,null);t["default"]=c.exports},b3b1:function(e){e.exports=JSON.parse('{"uni.app.quit":"Appuyez à nouveau pour quitter l\'application","uni.async.error":"La connexion a expiré, cliquez sur l\'écran pour réessayer.","uni.showActionSheet.cancel":"Annuler","uni.showToast.unpaired":"Veuillez noter que showToast doit être associé à hideToast","uni.showLoading.unpaired":"Veuillez noter que showLoading doit être associé à hideLoading","uni.showModal.cancel":"Annuler","uni.showModal.confirm":"OK","uni.chooseImage.cancel":"Annuler","uni.chooseImage.sourceType.album":"Album","uni.chooseImage.sourceType.camera":"Caméra","uni.chooseVideo.cancel":"Annuler","uni.chooseVideo.sourceType.album":"Album","uni.chooseVideo.sourceType.camera":"Caméra","uni.chooseFile.notUserActivation":"La boîte de dialogue du sélecteur de fichier ne peut être affichée qu\'avec une activation par l\'utilisateur","uni.previewImage.cancel":"Annuler","uni.previewImage.button.save":"Guardar imagen","uni.previewImage.save.success":"Enregistré avec succès","uni.previewImage.save.fail":"Échec de la sauvegarde","uni.setClipboardData.success":"Contenu copié","uni.scanCode.title":"Code d’analyse","uni.scanCode.album":"Album","uni.scanCode.fail":"Fallo de reconocimiento","uni.scanCode.flash.on":"Appuyez pour activer l\'éclairage","uni.scanCode.flash.off":"Appuyez pour désactiver l\'éclairage","uni.startSoterAuthentication.authContent":"Reconnaissance de l\'empreinte digitale","uni.picker.done":"OK","uni.picker.cancel":"Annuler","uni.video.danmu":"Danmu","uni.video.volume":"Le Volume","uni.button.feedback.title":"retour d\'information","uni.button.feedback.send":"envoyer","uni.chooseLocation.search":"Trouve","uni.chooseLocation.cancel":"Annuler"}')},b501:function(e,t,n){"use strict";n.r(t),n.d(t,"setClipboardData",(function(){return r}));var i=n("a6b0"),r={data:{type:String,required:!0},showToast:{type:Boolean,default:!0},beforeSuccess:function(e,t){if(t.showToast){var n=Object(i["g"])("uni.setClipboardData.success");n&&uni.showToast({title:n,icon:"success",mask:!1,style:{width:void 0}})}}}},b628:function(e,t,n){"use strict";var i=n("8b18"),r=n.n(i);r.a},b705:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-rich-text",e._g({},e.$listeners),[n("div",{ref:"content"},[n("v-uni-resize-sensor",{ref:"sensor",on:{resize:function(t){return e._updateView()}}})],1)])},r=[],a=n("b10a"),o=n("f2b3"),s=n("cb0f"),u={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},c={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function l(e){return e.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,(function(e,t){if(Object(o["i"])(c,t)&&c[t])return c[t];if(/^#[0-9]{1,4}$/.test(t))return String.fromCharCode(t.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(t))return String.fromCharCode("0"+t.slice(1));var n=document.createElement("div");return n.innerHTML=e,n.innerText||n.textContent}))}function d(e,t,n){return"img"===e&&"src"===t?Object(s["a"])(n):n}function h(e,t,n,i){return e.forEach((function(e){if(Object(o["l"])(e))if(Object(o["i"])(e,"type")&&"node"!==e.type)"text"===e.type&&"string"===typeof e.text&&""!==e.text&&t.appendChild(document.createTextNode(l(e.text)));else{if("string"!==typeof e.name||!e.name)return;var r=e.name.toLowerCase();if(!Object(o["i"])(u,r))return;var a=document.createElement(r);if(!a)return;var s=e.attrs;if(Object(o["l"])(s)){var c=u[r]||[];Object.keys(s).forEach((function(e){var t=s[e];switch(e){case"class":Array.isArray(t)&&(t=t.join(" "));case"style":a.setAttribute(e,t),n&&a.setAttribute(n,"");break;default:-1!==c.indexOf(e)&&a.setAttribute(e,d(r,e,t))}}))}f(e,a,i);var p=e.children;Array.isArray(p)&&p.length&&h(e.children,a,n,i),t.appendChild(a)}})),t}function f(e,t,n){["a","img"].includes(e.name)&&n&&(t.setAttribute("onClick","return false;"),t.addEventListener("click",(function(t){n(t,{node:e}),t.stopPropagation()}),!0))}var p={name:"RichText",props:{nodes:{type:[Array,String],default:function(){return[]}}},watch:{nodes:function(e){this._renderNodes(e)}},mounted:function(){this._renderNodes(this.nodes)},methods:{_renderNodes:function(e){var t="",n=this;while(n)!t&&(t=n.$options._scopeId),n=n.$parent;var i=!!this.$listeners.itemclick;if(this._isMounted){"string"===typeof e&&(e=Object(a["a"])(e));var r=h(e,document.createDocumentFragment(),t,i&&this.triggerItemClick);r.appendChild(this.$refs.sensor.$el);var o=this.$refs.content;o.innerHTML="",o.appendChild(r)}},_updateView:function(){window.dispatchEvent(new CustomEvent("updateview"))},triggerItemClick:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$trigger("itemclick",e,t)}}},m=p,g=n("2877"),v=Object(g["a"])(m,i,r,!1,null,null,null);t["default"]=v.exports},b865:function(e,t,n){"use strict";(function(e,i){function r(t,n){return e.emit("api."+t,n)}function a(e,t,n){i.UniViewJSBridge.subscribeHandler(e,t,n)}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}))}).call(this,n("0dd1"),n("c8ba"))},b866:function(e,t,n){"use strict";n.r(t),n.d(t,"getImageInfo",(function(){return r}));var i=n("cb0f"),r={src:{type:String,required:!0,validator:function(e,t){t.src=Object(i["a"])(e)}}}},ba15:function(e,t,n){"use strict";var i=function(e,t,n,i){e.addEventListener(t,(function(e){"function"===typeof n&&!1===n(e)&&(e.preventDefault(),e.stopPropagation())}),{capture:i,passive:!1})};t["a"]={beforeDestroy:function(){document.removeEventListener("mousemove",this.__mouseMoveEventListener),document.removeEventListener("mouseup",this.__mouseUpEventListener)},methods:{touchtrack:function(e,t,n){var r,a,o,s=this,u=this,c=0,l=0,d=0,h=0,f=function(e,n,i,r){if(!1===u[t]({target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:i,y:r,dx:i-c,dy:r-l,ddx:i-d,ddy:r-h,timeStamp:e.timeStamp}}))return!1},p=null;i(e,"touchstart",(function(e){if(a=!0,1===e.touches.length&&!p)return p=e,c=d=e.touches[0].pageX,l=h=e.touches[0].pageY,f(e,"start",c,l)})),i(e,"mousedown",(function(e){if(o=!0,!a&&!p)return p=e,c=d=e.pageX,l=h=e.pageY,f(e,"start",c,l)})),i(e,"touchmove",(function(e){if(1===e.touches.length&&p){var t=f(e,"move",e.touches[0].pageX,e.touches[0].pageY);return d=e.touches[0].pageX,h=e.touches[0].pageY,t}}));var m=this.__clickEventListener=function(e){e.preventDefault(),e.stopPropagation()},g=this.__mouseMoveEventListener=function(e){if(!a&&o&&p){!r&&(Math.abs(d-c)>2||Math.abs(h-l)>2)&&(document.addEventListener("click",m,!0),r=!0);var t=f(e,"move",e.pageX,e.pageY);return d=e.pageX,h=e.pageY,t}};document.addEventListener("mousemove",g),i(e,"touchend",(function(e){if(0===e.touches.length&&p)return a=!1,p=null,f(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));var v=this.__mouseUpEventListener=function(e){if(o=!1,!a&&p)return r&&setTimeout((function(){document.removeEventListener("click",s.__clickEventListener,!0),r=!1}),0),p=null,f(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",v),i(e,"touchcancel",(function(e){if(p){a=!1;var t=p;return p=null,f(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}}}},bacd:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-canvas",e._g({attrs:{"canvas-id":e.canvasId,"disable-scroll":e.disableScroll}},e._listeners),[n("canvas",{ref:"canvas",attrs:{width:"300",height:"150"}}),n("div",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",overflow:"hidden"}},[e._t("default")],2),n("v-uni-resize-sensor",{ref:"sensor",on:{resize:e._resize}})],1)},r=[],a=n("d8ca"),o=a["a"],s=(n("0741"),n("2877")),u=Object(s["a"])(o,i,r,!1,null,null,null);t["default"]=u.exports},bb00:function(e,t,n){"use strict";n.r(t),n.d(t,"onKeyboardHeightChange",(function(){return o})),n.d(t,"offKeyboardHeightChange",(function(){return s}));var i,r=n("a118"),a=n("db70");function o(e){Object(r["b"])(i),i=e}function s(){i=null}Object(a["d"])("onKeyboardHeightChange",(function(e){i&&Object(r["a"])(i,e)}))},bd97:function(e,t,n){"use strict";n.r(t),t["default"]={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}}},bdb1:function(e,t,n){var i={"./base/base64.js":"1ca3","./base/can-i-use.js":"3648","./base/interceptor.js":"2eae","./base/upx2px.js":"45d2","./context/audio.js":"2c67","./context/background-audio.js":"c3f2","./context/canvas.js":"303f","./context/create-map-context.js":"bfa6","./context/create-video-context.js":"ee03","./context/editor.js":"60db","./context/inner-audio.js":"57a7","./device/network.js":"8b3f","./device/theme.js":"d001","./keyboard/get-selected-text-range.js":"d502","./keyboard/keyboard.js":"bb00","./media/preview-image.js":"898f","./media/recorder.js":"3676","./network/download-file.js":"f0c3","./network/request.js":"82c2","./network/socket.js":"811a","./network/update.js":"c7d8","./network/upload-file.js":"1ff3","./ui/create-animation.js":"1e4d","./ui/create-intersection-observer.js":"091a","./ui/create-media-query-observer.js":"68fb","./ui/create-selector-query.js":"af33","./ui/load-font-face.js":"0001","./ui/locale.js":"9776","./ui/page-scroll-to.js":"84e0","./ui/set-page-meta.js":"2ec6","./ui/tab-bar.js":"454d","./ui/window.js":"9b1b"};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id="bdb1"},bdbe:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("8bbf"),r=n.n(i),a=n("a6b0");__uniConfig.tabBar=r.a.observable(Object(a["f"])(__uniConfig.tabBar||{}));var o=__uniConfig.tabBar},be12:function(e,t,n){"use strict";(function(e){function n(e,t,n){var i=Array.prototype.slice.call(e.changedTouches).filter((function(e){return e.identifier===t}))[0];return!!i&&(e.deltaY=i.pageY-n,!0)}var i="pulling",r="reached",a="aborting",o="refreshing",s="restoring";t["a"]={mounted:function(){var t=this;this.enablePullDownRefresh&&(this.refreshContainerElem=this.$refs.refresh.$el,this.refreshControllerElem=this.refreshContainerElem.querySelector(".uni-page-refresh"),this.refreshInnerElemStyle=this.refreshControllerElem.querySelector(".uni-page-refresh-inner").style,e.on(this.$route.params.__id__+".startPullDownRefresh",(function(){t.state||(t.state=o,t._addClass(),setTimeout((function(){t._refreshing()}),50))})),e.on(this.$route.params.__id__+".stopPullDownRefresh",(function(){t.state===o&&(t._removeClass(),t.state=s,t._addClass(),t._restoring((function(){t._removeClass(),t.state=t.distance=t.offset=null})))})))},methods:{_touchstart:function(e){var t=e.changedTouches[0];this.touchId=t.identifier,this.startY=t.pageY,[a,o,s].indexOf(this.state)>=0?this.canRefresh=!1:this.canRefresh=!0},_touchmove:function(e){if(this.canRefresh&&n(e,this.touchId,this.startY)){var t=e.deltaY;if(0===(document.documentElement.scrollTop||document.body.scrollTop)){if(!(t<0)||this.state){e.preventDefault(),null==this.distance&&(this.offset=t,this.state=i,this._addClass()),t-=this.offset,t<0&&(t=0),this.distance=t;var a=t>=this.refreshOptions.range&&this.state!==r,o=t<this.refreshOptions.range&&this.state!==i;(a||o)&&(this._removeClass(),this.state=this.state===r?i:r,this._addClass()),this._pulling(t)}}else this.touchId=null}},_touchend:function(e){var t=this;n(e,this.touchId,this.startY)&&null!==this.state&&(this.state===i?(this._removeClass(),this.state=a,this._addClass(),this._aborting((function(){t._removeClass(),t.state=t.distance=t.offset=null}))):this.state===r&&(this._removeClass(),this.state=o,this._addClass(),this._refreshing()))},_toggleClass:function(e){if(this.state){var t=this.refreshContainerElem;t&&t.classList[e]("uni-page-refresh--"+this.state)}},_addClass:function(){this._toggleClass("add")},_removeClass:function(){this._toggleClass("remove")},_pulling:function(e){var t=this.refreshControllerElem;if(t){var n=t.style,i=e/this.refreshOptions.range;i>1?i=1:i*=i*i;var r=Math.round(e/(this.refreshOptions.range/this.refreshOptions.height)),a=r?"translate3d(-50%, "+r+"px, 0)":0;n.webkitTransform=a,n.clip="rect("+(45-r)+"px,45px,45px,-5px)",this.refreshInnerElemStyle.webkitTransform="rotate("+360*i+"deg)"}},_aborting:function(e){var t=this.refreshControllerElem;if(t){var n=t.style;if(n.webkitTransform){n.webkitTransition="-webkit-transform 0.3s",n.webkitTransform="translate3d(-50%, 0, 0)";var i=function i(){r&&clearTimeout(r),t.removeEventListener("webkitTransitionEnd",i),n.webkitTransition="",e()};t.addEventListener("webkitTransitionEnd",i);var r=setTimeout(i,350)}else e()}},_refreshing:function(){var t=this.refreshControllerElem;if(t){var n=t.style;n.webkitTransition="-webkit-transform 0.2s",n.webkitTransform="translate3d(-50%, "+this.refreshOptions.height+"px, 0)",e.emit("onPullDownRefresh",{},this.$route.params.__id__)}},_restoring:function(e){var t=this.refreshControllerElem;if(t){var n=t.style;n.webkitTransition="-webkit-transform 0.3s",n.webkitTransform+=" scale(0.01)";var i=function i(){r&&clearTimeout(r),t.removeEventListener("webkitTransitionEnd",i),n.webkitTransition="",n.webkitTransform="translate3d(-50%, 0, 0)",e()};t.addEventListener("webkitTransitionEnd",i);var r=setTimeout(i,350)}}}}}).call(this,n("0dd1"))},be14:function(e,t,n){"use strict";n.r(t),function(e){function i(t,n){var i=e,r=i.invokeCallbackHandler;getApp().$router.push({type:"navigateTo",path:"/choose-location"},(function(){var t=function t(i){e.unsubscribe("onChooseLocation",t),r(n,i?Object.assign(i,{errMsg:"chooseLocation:ok"}):{errMsg:"chooseLocation:fail"})};e.subscribe("onChooseLocation",t)}),(function(){r(n,{errMsg:"chooseLocation:fail"})}))}n.d(t,"chooseLocation",(function(){return i}))}.call(this,n("0dd1"))},bfa6:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"MapContext",(function(){return l})),n.d(t,"createMapContext",(function(){return d}));var i=n("db70"),r=n("f2b3");function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function u(e,t,n,r){Object(i["c"])("operateMapPlayer",e,t,n,r)}e.subscribe("onMapMethodCallback",(function(e){var t=e.callbackId,n=e.data;r["a"].invoke(t,n)}));var c=["getCenterLocation","moveToLocation","getScale","getRegion","includePoints","translateMarker","addCustomLayer","removeCustomLayer","addGroundOverlay","removeGroundOverlay","updateGroundOverlay","initMarkerCluster","addMarkers","removeMarkers","moveAlong","openMapApp"],l=function(){function e(t,n){a(this,e),this.id=t,this.pageVm=n}return s(e,[{key:"on",value:function(e,t){u(this.id,this.pageVm,"on",{name:e,callback:t})}}]),e}();function d(e,t){return new l(e,t||Object(i["b"])("createMapContext"))}l.prototype.$getAppMap=function(){},c.forEach((function(e){l.prototype[e]=r["a"].warp((function(t,n){t.callbackId=n,u(this.id,this.pageVm,e,t)}))}))}.call(this,n("0dd1"))},bfbd:function(e,t,n){},bfea:function(e,t,n){"use strict";var i=n("4e0b"),r=n.n(i);r.a},c0e5:function(e,t,n){},c195:function(e,t,n){},c2aa:function(e,t,n){},c33a:function(e,t,n){},c33f:function(e,t,n){"use strict";var i=n("c195"),r=n.n(i);r.a},c3f2:function(e,t,n){"use strict";n.r(t),n.d(t,"getBackgroundAudioManager",(function(){return h}));var i=n("db70");function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}var s=["canplay","play","pause","stop","ended","timeUpdate","prev","next","error","waiting"],u={};s.forEach((function(e){u[e]=[]}));var c,l=[{name:"duration",readonly:!0},{name:"currentTime",readonly:!0},{name:"paused",readonly:!0},{name:"src",cache:!0},{name:"startTime",default:0,cache:!0},{name:"buffered",readonly:!0},{name:"title",cache:!0},{name:"epname",cache:!0},{name:"singer",cache:!0},{name:"coverImgUrl",cache:!0},{name:"webUrl",cache:!0},{name:"protocol",readonly:!0,default:"http"}],d=function(){function e(){var t=this;r(this,e),this._options={},Object(i["d"])("onBackgroundAudioStateChange",(function(e){var t=e.state,n=e.errMsg,i=e.errCode;u[t].forEach((function(e){"function"===typeof e&&e("error"===t?{errMsg:n,errCode:i}:{})}))})),l.forEach((function(e){var n=e.name,r={get:function(){var t=e.cache?this._options:Object(i["c"])("getBackgroundAudioState");return n in t?t[n]:e.default}};e.readonly||(r.set=function(e){this._options[n]=e,Object(i["c"])("setBackgroundAudioState",Object.assign({},this._options,{audioId:this.id}))}),Object.defineProperty(t,n,r)}))}return o(e,[{key:"play",value:function(){this._operate("play")}},{key:"pause",value:function(){this._operate("pause")}},{key:"stop",value:function(){this._operate("stop")}},{key:"seek",value:function(e){this._operate("seek",{currentTime:e})}},{key:"_operate",value:function(e,t){Object(i["c"])("operateBackgroundAudio",Object.assign({},t,{operationType:e}))}}]),e}();function h(){return c||(c=new d)}s.forEach((function(e){var t=e[0].toUpperCase()+e.substr(1);d.prototype["on".concat(t)]=function(t){u[e].push(t)}}))},c418:function(e,t,n){},c41f:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-cover-view",e._g({attrs:{"scroll-top":e.scrollTop}},e.$listeners),[n("div",{ref:"content",staticClass:"uni-cover-view"},[e._t("default")],2)])},r=[],a={name:"CoverView",props:{scrollTop:{type:[String,Number],default:0}},watch:{scrollTop:function(e){this.setScrollTop(e)}},mounted:function(){this.setScrollTop(this.scrollTop)},methods:{setScrollTop:function(e){var t=this.$refs.content;"scroll"===getComputedStyle(t).overflowY&&(t.scrollTop=this._upx2pxNum(e))},_upx2pxNum:function(e){return/\d+[ur]px$/i.test(e)&&e.replace(/\d+[ur]px$/i,(function(e){return uni.upx2px(parseFloat(e))})),parseFloat(e)||0}}},o=a,s=(n("cc5f"),n("2877")),u=Object(s["a"])(o,i,r,!1,null,null,null);t["default"]=u.exports},c4c5:function(e,t,n){"use strict";(function(e,i){n.d(t,"a",(function(){return f}));var r=n("f2b3");function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}var u=/^\s+|\s+$/g,c=/\s+/;function l(e,t,n){var i=[],r=function(e){return r=n?function(e){return!t.contains(e)}:function(e){return t.contains(e)},r(e)};return e.forEach((function(e){e=e.replace(u,""),r(e)&&i.push(e)})),i}function d(e){var t={},n=/;(?![^(]*\))/g,i=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}var h=function(){function t(e){a(this,t),this.$vm=e,this.$el=e.$el}return s(t,[{key:"selectComponent",value:function(e){if(this.$el&&e){var t=this.$el.querySelector(e);return t&&t.__vue__&&f(t.__vue__,!1)}}},{key:"selectAllComponents",value:function(e){if(!this.$el||!e)return[];for(var t=[],n=this.$el.querySelectorAll(e),i=0;i<n.length;i++){var r=n[i];r.__vue__&&t.push(f(r.__vue__,!1))}return t}},{key:"setStyle",value:function(e){return this.$el&&e?("string"===typeof e&&(e=d(e)),Object(r["l"])(e)&&(this.$el.__wxsStyle=e,this.$vm.$forceUpdate()),this):this}},{key:"addClass",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!this.$el||!t.length)return this;var i=l(t,this.$el.classList,!0);if(i.length){var r=this.$el.__wxsAddClass||"";this.$el.__wxsAddClass=r+(r?" ":"")+i.join(" "),this.$vm.$forceUpdate()}return this}},{key:"removeClass",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!this.$el||!t.length)return this;var i=this.$el.classList,r=this.$el.__wxsAddClass?this.$el.__wxsAddClass.split(c):[],a=l(t,i,!1);if(a.length){var o=[];a.forEach((function(e){var t=r.findIndex((function(t){return t===e}));-1!==t&&r.splice(t,1),o.push(e)})),this.$el.__wxsRemoveClass=o,this.$el.__wxsAddClass=r.join(" "),this.$vm.$forceUpdate()}return this}},{key:"hasClass",value:function(e){return this.$el&&this.$el.classList.contains(e)}},{key:"getComputedStyle",value:function(){return this.$el?window.getComputedStyle(this.$el):{}}},{key:"getDataset",value:function(){return this.$el&&this.$el.dataset}},{key:"callMethod",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t in this.$vm?this.$vm[t](JSON.parse(JSON.stringify(n))):this.$vm._$id&&e.publishHandler("onWxsInvokeCallMethod",{cid:this.$vm._$id,method:t,args:n})}},{key:"requestAnimationFrame",value:function(e){return i.requestAnimationFrame(e),this}},{key:"getState",value:function(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}},{key:"triggerEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.$vm.$emit(e,t),this}},{key:"setTimeout",value:function(e,t){return window.setTimeout(e,t)}},{key:"clearTimeout",value:function(e){return window.clearTimeout(e)}},{key:"getBoundingClientRect",value:function(){return this.$el.getBoundingClientRect()}}]),t}();function f(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t&&e&&e.$options.name&&0===e.$options.name.indexOf("VUni")&&(e=e.$parent),e)return"__wxsComponentDescriptor"in e||(e.__wxsComponentDescriptor=new h(e)),e.__wxsComponentDescriptor}}).call(this,n("501c"),n("c8ba"))},c61c:function(e,t,n){"use strict";n.r(t);var i=n("f2b3"),r=n("d4cd");function a(e){return Math.sqrt(e.x*e.x+e.y*e.y)}var o,s,u={name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},data:function(){return{width:0,height:0,items:[]}},created:function(){this.gapV={x:null,y:null},this.pinchStartLen=null},mounted:function(){this._resize(),Object(r["b"])()},methods:{_resize:function(){this._getWH(),this.items.forEach((function(e,t){e.componentInstance.setParent()}))},_find:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.items,n=this.$el;function i(e){for(var r=0;r<t.length;r++){var a=t[r];if(e===a.componentInstance.$el)return a}return e===n||e===document.body||e===document?null:i(e.parentNode)}return i(e)},_touchstart:function(e){Object(r["a"])({disable:!0});var t=e.touches;if(t&&t.length>1){var n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(this.pinchStartLen=a(n),this.gapV=n,!this.scaleArea){var i=this._find(t[0].target),o=this._find(t[1].target);this._scaleMovableView=i&&i===o?i:null}}},_touchmove:function(e){var t=e.touches;if(t&&t.length>1){e.preventDefault();var n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==this.gapV.x&&this.pinchStartLen>0){var i=a(n)/this.pinchStartLen;this._updateScale(i)}this.gapV=n}},_touchend:function(e){Object(r["a"])({disable:!1});var t=e.touches;t&&t.length||e.changedTouches&&(this.gapV.x=0,this.gapV.y=0,this.pinchStartLen=null,this.scaleArea?this.items.forEach((function(e){e.componentInstance._endScale()})):this._scaleMovableView&&this._scaleMovableView.componentInstance._endScale())},_updateScale:function(e){e&&1!==e&&(this.scaleArea?this.items.forEach((function(t){t.componentInstance._setScale(e)})):this._scaleMovableView&&this._scaleMovableView.componentInstance._setScale(e))},_getWH:function(){var e=window.getComputedStyle(this.$el),t=this.$el.getBoundingClientRect();this.width=t.width-["Left","Right"].reduce((function(t,n){return t+parseFloat(e["border"+n+"Width"])+parseFloat(e["padding"+n])}),0),this.height=t.height-["Top","Bottom"].reduce((function(t,n){return t+parseFloat(e["border"+n+"Width"])+parseFloat(e["padding"+n])}),0)}},render:function(e){var t=this,n=[],r=this.$slots.default&&Object(i["f"])(this.$slots.default,e);r&&r.forEach((function(e){e.componentOptions&&"v-uni-movable-view"===e.componentOptions.tag&&n.push(e)})),this.items=n;var a=Object.assign({},this.$listeners),o=["touchstart","touchmove","touchend"];return o.forEach((function(e){var n=a[e],i=t["_".concat(e)];a[e]=n?[].concat(n,i):i})),e("uni-movable-area",{on:a},[e("v-uni-resize-sensor",{on:{resize:this._resize}}),r])}},c=u,l=(n("a3e5"),n("2877")),d=Object(l["a"])(c,o,s,!1,null,null,null);t["default"]=d.exports},c7d8:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.r(t),n.d(t,"getUpdateManager",(function(){return u}));var o,s=function(){function e(){i(this,e)}return a(e,[{key:"onCheckForUpdate",value:function(){}},{key:"onUpdateReady",value:function(){}},{key:"onUpdateFailed",value:function(){}},{key:"applyUpdate",value:function(){}}]),e}();function u(){return o||(o=new s)}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},c8ed:function(e,t,n){"use strict";var i=n("72ad"),r=n.n(i);r.a},c96e:function(e,t,n){"use strict";var i=n("1307"),r=n.n(i);r.a},cb0f:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("0f74"),r=/^([a-z-]+:)?\/\//i,a=/^data:.*,.*/;function o(e){var t=__uniConfig.router.base;return t?"/"!==t&&0===("/"+e).indexOf(t)?"/"+e:t+e:e}function s(e){if("./"===__uniConfig.router.base&&(e=e.replace(/^\.\/static\//,"/static/")),0===e.indexOf("/")){if(0!==e.indexOf("//"))return o(e.substr(1));e="https:"+e}if(r.test(e)||a.test(e)||0===e.indexOf("blob:"))return e;var t=getCurrentPages();return t.length?o(Object(i["a"])(t[t.length-1].$page.route,e).substr(1)):e}},cc5f:function(e,t,n){"use strict";var i=n("324c"),r=n.n(i);r.a},cc76:function(e,t,n){"use strict";var i=Object.create(null),r=n("19c4");r.keys().forEach((function(e){Object.assign(i,r(e))})),t["a"]=i},cc89:function(e,t,n){},cdc1:function(e,t,n){"use strict";(function(e,i){var r=n("f2b3"),a=n("65a8"),o=n("81ea"),s=n("f1ea"),u=n("bdbe");t["a"]={name:"App",components:o["a"],mixins:s["default"],props:{keepAliveInclude:{type:Array,default:function(){return[]}}},data:function(){return{transitionName:"fade",hideTabBar:!1,sysComponents:this.$sysComponents,showLayout:!1,showMaxWidth:!1,tabBarMediaQuery:!1}},computed:{key:function(){return this.$route.meta.name+"-"+this.$route.params.__id__+"-"+(__uniConfig.reLaunch||1)},tabBarOptions:function(){return u["a"]},hasTabBar:function(){return u["a"].list&&u["a"].list.length},showTabBar:function(){return!this.hideTabBar&&(this.$route.meta.isTabBar||this.tabBarMediaQuery)}},watch:{$route:function(t,n){e.emit("onHidePopup")},hideTabBar:function(e,t){if(uni.canIUse("css.var")){var n=e?0:a["c"],r=uni.canIUse("css.env")?"env":uni.canIUse("css.constant")?"constant":"",o=n&&r?"calc(".concat(n,"px + ").concat(r,"(safe-area-inset-bottom))"):"".concat(n,"px");document.documentElement.style.setProperty("--window-bottom",o),i.debug("uni.".concat(o?"showTabBar":"hideTabBar",":--window-bottom=").concat(o))}window.dispatchEvent(new CustomEvent("resize"))}},created:function(){uni.canIUse("css.var")&&document.documentElement.style.setProperty("--status-bar-height","0px"),this.initMediaQuery()},mounted:function(){window.addEventListener("message",(function(t){Object(r["l"])(t.data)&&"WEB_INVOKE_APPSERVICE"===t.data.type&&e.emit("onWebInvokeAppService",t.data.data,t.data.pageId)})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?e.emit("onAppEnterForeground",{}):e.emit("onAppEnterBackground")}))},methods:{onLayout:function(e){this.showLayout=e},onMaxWidth:function(e){this.showMaxWidth=e},initMediaQuery:function(){var e=this;if(window.matchMedia&&u["a"].matchMedia&&Object(r["i"])(u["a"].matchMedia,"minWidth")){var t=window.matchMedia("(min-width: "+u["a"].matchMedia.minWidth+"px)");t.addListener((function(t){e.tabBarMediaQuery=t.matches})),this.tabBarMediaQuery=t.matches}}}}}).call(this,n("0dd1"),n("3ad9")["default"])},cf6f:function(e,t,n){"use strict";function i(e,t,n){n(null,e)}n.d(t,"a",(function(){return i}))},d001:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"onThemeChange",(function(){return o})),n.d(t,"onUIStyleChange",(function(){return s}));var i=n("a118"),r=n("db70"),a=[];function o(e){a.push(e)}function s(t){a.push(t),e.warn('The "uni.onUIStyleChange" API is deprecated, please use "uni.onThemeChange". Learn more: https://uniapp.dcloud.net.cn/api/system/theme.')}Object(r["d"])("onThemeChange",(function(e){a.forEach((function(t){Object(i["a"])(t,e)}))})),Object(r["d"])("onUIStyleChange",(function(e){a.forEach((function(t){Object(i["a"])(t,e)}))}))}.call(this,n("3ad9")["default"])},d013:function(e,t,n){"use strict";n.r(t),n.d(t,"loadSubPackage",(function(){return i}));var i={root:{type:String,required:!0,validator:function(e,t){var n=__uniConfig.subPackages;return Array.isArray(n)&&0!==n.length?n.find((function(t){return t.root===e}))?void 0:"root `"+e+"` is not found":"no subPackages"}}}},d218:function(e,t){},d29c:function(e,t,n){},d3bd:function(e,t,n){"use strict";n.r(t),n("a6b0");var i,r,a=n("8af1"),o={name:"Button",mixins:[a["c"],a["a"],a["f"]],props:{hoverClass:{type:String,default:"button-hover"},disabled:{type:[Boolean,String],default:!1},id:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},formType:{type:String,default:"",validator:function(e){return~["","submit","reset"].indexOf(e)}},openType:{type:String,default:""}},data:function(){return{clickFunction:null}},methods:{_onClick:function(e,t){this.disabled||(t&&this.$el.click(),this.formType?this.$dispatch("Form","submit"===this.formType?"uni-form-submit":"uni-form-reset",{type:this.formType}):this.openType)},_bindObjectListeners:function(e,t){if(t)for(var n in t){var i=e.on[n],r=t[n];e.on[n]=i?[].concat(i,r):r}return e}},render:function(e){var t=this,n=Object.create(null);return this.$listeners&&Object.keys(this.$listeners).forEach((function(e){(!t.disabled||"click"!==e&&"tap"!==e)&&(n[e]=t.$listeners[e])})),this.hoverClass&&"none"!==this.hoverClass?e("uni-button",this._bindObjectListeners({class:[this.hovering?this.hoverClass:""],attrs:{disabled:this.disabled},on:{touchstart:this._hoverTouchStart,touchend:this._hoverTouchEnd,touchcancel:this._hoverTouchCancel,click:this._onClick}},n),this.$slots.default):e("uni-button",this._bindObjectListeners({class:[this.hovering?this.hoverClass:""],attrs:{disabled:this.disabled},on:{click:this._onClick}},n),this.$slots.default)},listeners:{"label-click":"_onClick","@label-click":"_onClick"}},s=o,u=(n("5676"),n("2877")),c=Object(u["a"])(s,i,r,!1,null,null,null);t["default"]=c.exports},d46d:function(e,t){e.exports=n},d4b6:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return _}));var i=n("f2b3"),r=n("85b6"),a=n("24d9"),o=n("a470");function s(e,t){var n={id:e.id,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,dataset:Object(r["b"])(e)};return t&&Object.assign(n,t),n}function u(e){if(e){for(var t=[],n=Object(o["a"])(),i=n.top,r=0;r<e.length;r++){var a=e[r];t.push({identifier:a.identifier,pageX:a.pageX,pageY:a.pageY-i,clientX:a.clientX,clientY:a.clientY-i,force:a.force||0})}return t}return[]}function c(e){return e.startsWith("mouse")||["contextmenu"].includes(e)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(t._processed)return t.type=n.type||e,t;if("click"===e){var l=Object(o["a"])(),d=l.top;n={x:t.x,y:t.y-d},t.touches=t.changedTouches=[{force:1,identifier:0,clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY}]}var h=Object(a["b"])({type:n.type||e,timeStamp:t.timeStamp||0,detail:n,target:s(i,n),currentTarget:s(r,!1,!0),touches:t instanceof Event||t instanceof CustomEvent?u(t.touches):t.touches,changedTouches:t instanceof Event||t instanceof CustomEvent?u(t.changedTouches):t.changedTouches,preventDefault:function(){},stopPropagation:function(){}});if(c(e)){var f=Object(o["a"])(),p=f.top;h.pageX=t.pageX,h.pageY=t.pageY-p,h.clientX=t.clientX,h.clientY=t.clientY-p}return h}var d=350,h=10,f=!!i["q"]&&{passive:!0},p=!1;function m(){p&&(clearTimeout(p),p=!1)}var g=0,v=0;function y(e){if(m(),1===e.touches.length){var t=e.touches[0],n=t.pageX,i=t.pageY;g=n,v=i,p=setTimeout((function(){var t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)}),d)}}function b(e){if(p){if(1!==e.touches.length)return m();var t=e.touches[0],n=t.pageX,i=t.pageY;return Math.abs(n-g)>h||Math.abs(i-v)>h?m():void 0}}function _(){window.addEventListener("touchstart",y,f),window.addEventListener("touchmove",b,f),window.addEventListener("touchend",m,f),window.addEventListener("touchcancel",m,f)}},d4cd:function(e,t,n){"use strict";function i(){}function r(e){e.disable}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}))},d502:function(e,t,n){"use strict";n.r(t),function(e,i){n.d(t,"getSelectedTextRange",(function(){return u}));var r=n("62b5"),a=n("db70"),o=n("a118"),s=Object(r["a"])("getSelectedTextRangeEvent");function u(t,n){var i=Object(a["a"])();e.publishHandler("getSelectedTextRange",{pageId:i,callbackId:s.push((function(e){Object(o["a"])(n,e)}))},i)}e.subscribe("onGetSelectedTextRange",(function(e){var t=e.callbackId,n=e.data;i.log("onGetSelectedTextRange");var r=s.pop(t);r&&r(n)}))}.call(this,n("0dd1"),n("3ad9")["default"])},d5be:function(e,t,n){"use strict";n.r(t),function(e,i){n.d(t,"chooseImage",(function(){return d}));var r=n("e2e2"),a=n("a6b0"),o=n("3563"),s=n("8af1"),u=e,c=u.invokeCallbackHandler,l=null;function d(e,t){var n=e.count,u=e.sourceType,d=e.extension;l&&(document.body.removeChild(l),l=null),l=Object(o["default"])({count:n,sourceType:u,extension:d,type:"image"}),document.body.appendChild(l),l.addEventListener("change",(function(e){for(var i=[],a=e.target.files.length,o=function(t){var a=e.target.files[t],o=void 0;Object.defineProperty(a,"path",{get:function(){return o=o||Object(r["b"])(a),o}}),t<n&&i.push(a)},s=0;s<a;s++)o(s);var u={errMsg:"chooseImage:ok",get tempFilePaths(){return i.map((function(e){var t=e.path;return t}))},tempFiles:i};c(t,u)})),l.click(),s["d"].getStatus()||i.warn("".concat(Object(a["g"])("uni.chooseFile.notUserActivation")))}}.call(this,n("0dd1"),n("3ad9")["default"])},d5ec:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-radio-group",e._g({},e.$listeners),[e._t("default")],2)},r=[],a=n("8af1"),o={name:"RadioGroup",mixins:[a["a"],a["f"]],props:{name:{type:String,default:""}},data:function(){return{radioList:[]}},listeners:{"@radio-change":"_changeHandler","@radio-group-update":"_radioGroupUpdateHandler"},mounted:function(){this._resetRadioGroupValue(this.radioList.length-1)},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_changeHandler:function(e,t){var n=this.radioList.indexOf(t);this._resetRadioGroupValue(n,!0),this.$trigger("change",e,{value:t.radioValue})},_radioGroupUpdateHandler:function(e){if("add"===e.type)this.radioList.push(e.vm);else{var t=this.radioList.indexOf(e.vm);this.radioList.splice(t,1)}},_resetRadioGroupValue:function(e,t){var n=this;this.radioList.forEach((function(i,r){r!==e&&(t?n.radioList[r].radioChecked=!1:n.radioList.forEach((function(e,t){r>=t||n.radioList[t].radioChecked&&(n.radioList[r].radioChecked=!1)})))}))},_getFormData:function(){var e={};if(""!==this.name){var t="";this.radioList.forEach((function(e){e.radioChecked&&(t=e.value)})),e.value=t,e.key=this.name}return e}}},s=o,u=(n("fb61"),n("2877")),c=Object(u["a"])(s,i,r,!1,null,null,null);t["default"]=c.exports},d65e:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("28c0"),r={},a=[],o=0;function s(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];o++;var n=new i["a"](o,e);return t&&(r[o]=n,a.push(n)),n}},d677:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-cover-image",e._g({attrs:{src:e.src}},e.$listeners),[n("div",{staticClass:"uni-cover-image"},[e.src?n("img",{attrs:{src:e.$getRealPath(e.src)},on:{load:e._load,error:e._error}}):e._e()])])},r=[],a={name:"CoverImage",props:{src:{type:String,default:""}},methods:{_load:function(e){this.$trigger("load",e)},_error:function(e){this.$trigger("error",e)}}},o=a,s=(n("5d1d"),n("2877")),u=Object(s["a"])(o,i,r,!1,null,null,null);t["default"]=u.exports},d8c8:function(e,t,n){"use strict";var i,r,a=["top","left","right","bottom"],o={};function s(){return r="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":"",r}function u(){if(r="string"===typeof r?r:s(),r){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(f){}var u=document.createElement("div");c(u,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),a.forEach((function(e){h(u,e)})),document.body.appendChild(u),l(),i=!0}else a.forEach((function(e){o[e]=0}));function c(e,t){var n=e.style;Object.keys(t).forEach((function(e){var i=t[e];n[e]=i}))}function l(t){t?e.push(t):e.forEach((function(e){e()}))}function h(e,n){var i=document.createElement("div"),a=document.createElement("div"),s=document.createElement("div"),u=document.createElement("div"),h=100,f=1e4,p={position:"absolute",width:h+"px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:r+"(safe-area-inset-"+n+")"};c(i,p),c(a,p),c(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),c(u,{transition:"0s",animation:"none",width:"250%",height:"250%"}),i.appendChild(s),a.appendChild(u),e.appendChild(i),e.appendChild(a),l((function(){i.scrollTop=a.scrollTop=f;var e=i.scrollTop,r=a.scrollTop;function o(){this.scrollTop!==(this===i?e:r)&&(i.scrollTop=a.scrollTop=f,e=i.scrollTop,r=a.scrollTop,d(n))}i.addEventListener("scroll",o,t),a.addEventListener("scroll",o,t)}));var m=getComputedStyle(i);Object.defineProperty(o,n,{configurable:!0,get:function(){return parseFloat(m.paddingBottom)}})}}function c(e){return i||u(),o[e]}var l=[];function d(e){l.length||setTimeout((function(){var e={};l.forEach((function(t){e[t]=o[t]})),l.length=0,h.forEach((function(t){t(e)}))}),0),l.push(e)}var h=[];function f(e){s()&&(i||u(),"function"===typeof e&&h.push(e))}function p(e){var t=h.indexOf(e);t>=0&&h.splice(t,1)}var m={get support(){return 0!=("string"===typeof r?r:s()).length},get top(){return c("top")},get left(){return c("left")},get right(){return c("right")},get bottom(){return c("bottom")},onChange:f,offChange:p};e.exports=m},d8ca:function(e,t,n){"use strict";(function(e){var i,r=n("8af1"),a=n("a20f"),o=n("cf6f"),s=n("e2e2");function u(e){return h(e)||d(e)||l(e)||c()}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function d(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function h(e){if(Array.isArray(e))return f(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function p(e){return e=e.slice(0),e[3]=e[3]/255,"rgba("+e.join(",")+")"}function m(e,t){return[].map.call(t,(function(t){var n=e.getBoundingClientRect();return{identifier:t.identifier,x:t.clientX-n.left,y:t.clientY-n.top}}))}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return i||(i=document.createElement("canvas")),i.width=e,i.height=t,i}t["a"]={name:"Canvas",mixins:[r["g"]],props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1}},data:function(){return{actionsWaiting:!1}},computed:{id:function(){return this.canvasId},_listeners:function(){var e=this,t=Object.assign({},this.$listeners),n=["touchstart","touchmove","touchend"];return n.forEach((function(n){var i=t[n],r=[];i&&r.push((function(t){e.$trigger(n,Object.assign({},t,{touches:m(t.currentTarget,t.touches),changedTouches:m(t.currentTarget,t.changedTouches)}))})),e.disableScroll&&"touchmove"===n&&r.push(e._touchmove),t[n]=r})),t}},created:function(){this._actionsDefer=[],this._images={}},mounted:function(){this._resize()},beforeDestroy:function(){var e=this.$refs.canvas;e.height=e.width=0},methods:{_handleSubscribe:function(e){var t=e.type,n=e.data,i=void 0===n?{}:n,r=this[t];0!==t.indexOf("_")&&"function"===typeof r&&r(i)},_resize:function(e){var t=this.$refs.canvas,n=!e||t.width!==Math.floor(e.width*a["a"])||t.height!==Math.floor(e.height*a["a"]);if(n)if(t.width>0&&t.height>0){var i=t.getContext("2d"),r=i.getImageData(0,0,t.width,t.height);Object(a["b"])(t),i.putImageData(r,0,0)}else Object(a["b"])(t)},_touchmove:function(e){e.preventDefault()},actionsChanged:function(t){var n=this,i=t.actions,r=t.reserve,a=t.callbackId,o=this;if(i)if(this.actionsWaiting)this._actionsDefer.push([i,r,a]);else{var s=this.$refs.canvas,c=s.getContext("2d");r||(c.fillStyle="#000000",c.strokeStyle="#000000",c.shadowColor="#000000",c.shadowBlur=0,c.shadowOffsetX=0,c.shadowOffsetY=0,c.setTransform(1,0,0,1,0,0),c.clearRect(0,0,s.width,s.height)),this.preloadImage(i);var l=function(e){var t=i[e],r=t.method,s=t.data;if(/^set/.test(r)&&"setTransform"!==r){var l,d=r[3].toLowerCase()+r.slice(4);if("fillStyle"===d||"strokeStyle"===d){if("normal"===s[0])l=p(s[1]);else if("linear"===s[0]){var m=c.createLinearGradient.apply(c,u(s[1]));s[2].forEach((function(e){var t=e[0],n=p(e[1]);m.addColorStop(t,n)})),l=m}else if("radial"===s[0]){var g=s[1][0],v=s[1][1],y=s[1][2],b=c.createRadialGradient(g,v,0,g,v,y);s[2].forEach((function(e){var t=e[0],n=p(e[1]);b.addColorStop(t,n)})),l=b}else if("pattern"===s[0]){var _=n.checkImageLoaded(s[1],i.slice(e+1),a,(function(e){e&&(c[d]=c.createPattern(e,s[2]))}));return _?"continue":"break"}c[d]=l}else if("globalAlpha"===d)c[d]=s[0]/255;else if("shadow"===d)h=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"],s.forEach((function(e,t){c[h[t]]="shadowColor"===h[t]?p(e):e}));else if("fontSize"===d){var T=c.__font__||c.font;c.__font__=c.font=T.replace(/\d+\.?\d*px/,s[0]+"px")}else"lineDash"===d?(c.setLineDash(s[0]),c.lineDashOffset=s[1]||0):"textBaseline"===d?("normal"===s[0]&&(s[0]="alphabetic"),c[d]=s[0]):"font"===d?c.__font__=c.font=s[0]:c[d]=s[0]}else if("fillPath"===r||"strokePath"===r)r=r.replace(/Path/,""),c.beginPath(),s.forEach((function(e){c[e.method].apply(c,e.data)})),c[r]();else if("fillText"===r)c.fillText.apply(c,s);else if("drawImage"===r){if(f=function(){var t=u(s),n=t[0],r=t.slice(1);if(o._images=o._images||{},!o.checkImageLoaded(n,i.slice(e+1),a,(function(e){e&&c.drawImage.apply(c,[e].concat(u(r.slice(4,8)),u(r.slice(0,4))))})))return"break"}(),"break"===f)return"break"}else"clip"===r?(s.forEach((function(e){c[e.method].apply(c,e.data)})),c.clip()):c[r].apply(c,s)};e:for(var d=0;d<i.length;d++){var h,f,m=l(d);switch(m){case"break":break e;case"continue":continue}}!this.actionsWaiting&&a&&e.publishHandler("onCanvasMethodCallback",{callbackId:a,data:{errMsg:"drawCanvas:ok"}},this.$page.id)}},preloadImage:function(e){var t=this;e.forEach((function(e){var n=e.method,i=e.data,r="";function a(){var e=t._images[r]=new Image;e.onload=function(){e.ready=!0},Object(s["d"])(r).then((function(t){e.src=t})).catch((function(){e.src=r}))}"drawImage"===n?(r=i[0],r=t.$getRealPath(r),i[0]=r):"setFillStyle"===n&&"pattern"===i[0]&&(r=i[1],r=t.$getRealPath(r),i[1]=r),r&&!t._images[r]&&a()}))},checkImageLoaded:function(e,t,n,i){var r=this,a=this._images[e];return a.ready?(i(a),!0):(this._actionsDefer.unshift([t,!0]),this.actionsWaiting=!0,a.onload=function(){a.ready=!0,i(a),r.actionsWaiting=!1;var e=r._actionsDefer.slice(0);r._actionsDefer=[];for(var t=e.shift();t;)r.actionsChanged({actions:t[0],reserve:t[1],callbackId:n}),t=e.shift()},!1)},getImageData:function(t){var n,i=t.x,r=void 0===i?0:i,o=t.y,s=void 0===o?0:o,u=t.width,c=t.height,l=t.destWidth,d=t.destHeight,h=t.hidpi,f=void 0===h||h,p=t.dataType,m=t.quality,v=void 0===m?1:m,y=t.type,b=void 0===y?"png":y,_=t.callbackId,T=this.$refs.canvas,w=T.offsetWidth-r;u=u?Math.min(u,w):w;var S=T.offsetHeight-s;c=c?Math.min(c,S):S,f?(l=u,d=c):l||d?l?d||(d=Math.round(c/u*l)):l=Math.round(u/c*d):(l=Math.round(u*a["a"]),d=Math.round(c*a["a"]));var k,C=g(l,d),x=C.getContext("2d");"jpeg"!==b&&"jpg"!==b||(b="jpeg",x.fillStyle="#fff",x.fillRect(0,0,l,d)),x.__hidpi__=!0,x.drawImageByCanvas(T,r,s,u,c,0,0,l,d,!1);try{var E;if("base64"===p)n=C.toDataURL("image/".concat(b),v);else{var A=x.getImageData(0,0,l,d);n=Array.prototype.slice.call(A.data)}k={errMsg:"canvasGetImageData:ok",data:n,compressed:E,width:l,height:d}}catch(O){k={errMsg:"canvasGetImageData:fail ".concat(O)}}if(C.height=C.width=0,x.__hidpi__=!1,!_)return k;e.publishHandler("onCanvasMethodCallback",{callbackId:_,data:k},this.$page.id)},putImageData:function(t){var n=t.data,i=t.x,r=t.y,a=t.width,o=t.height,s=(t.compressed,t.callbackId);try{o||(o=Math.round(n.length/4/a));var u=g(a,o),c=u.getContext("2d");c.putImageData(new ImageData(new Uint8ClampedArray(n),a,o),0,0),this.$refs.canvas.getContext("2d").drawImage(u,i,r,a,o),u.height=u.width=0}catch(l){return void e.publishHandler("onCanvasMethodCallback",{callbackId:s,data:{errMsg:"canvasPutImageData:fail"}},this.$page.id)}e.publishHandler("onCanvasMethodCallback",{callbackId:s,data:{errMsg:"canvasPutImageData:ok"}},this.$page.id)},toTempFilePath:function(t){var n=this,i=t.x,r=void 0===i?0:i,a=t.y,s=void 0===a?0:a,u=t.width,c=t.height,l=t.destWidth,d=t.destHeight,h=t.fileType,f=t.quality,p=t.dirname,m=t.callbackId,g=this.getImageData({x:r,y:s,width:u,height:c,destWidth:l,destHeight:d,hidpi:!1,dataType:"base64",type:h,quality:f});g.data&&g.data.length?Object(o["a"])(g.data,p,(function(t,i){var r="toTempFilePath:".concat(t?"fail":"ok");t&&(r+=" ".concat(t.message)),e.publishHandler("onCanvasMethodCallback",{callbackId:m,data:{errMsg:r,tempFilePath:i}},n.$page.id)})):e.publishHandler("onCanvasMethodCallback",{callbackId:m,data:{errMsg:g.errMsg.replace("canvasPutImageData","toTempFilePath")}},this.$page.id)}}}}).call(this,n("501c"))},da71:function(e,t,n){"use strict";t["a"]={name:"Keypress",props:{disable:{type:Boolean,default:!1}},mounted:function(){var e=this,t={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},n=function(n){if(!e.disable){var i=Object.keys(t).find((function(e){var i=n.key,r=t[e];return r===i||Array.isArray(r)&&r.includes(i)}));i&&setTimeout((function(){e.$emit(i,n)}),0)}};document.addEventListener("keyup",n),this.$once("hook:beforeDestroy",(function(){document.removeEventListener("keyup",n)}))},render:function(){return null}}},db18:function(e,t,n){"use strict";var i=n("db76"),r=n.n(i);r.a},db70:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var i=n("3b67");function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return i["a"][e].apply(null,n)}function a(t,n){return e.on("api."+t,n)}function o(t){var n=getCurrentPages(),i=n.length;i||e.emit("onError","".concat(t,":fail"));var r=n[i-1];return r.$vm}function s(){var e=getCurrentPages(),t=e[e.length-1];return t&&t.$page.id}}).call(this,n("0dd1"))},db76:function(e,t,n){},db8e:function(e,t,n){"use strict";(function(e){function i(t,n){return n?t?t.$el:n.$el:e.error("page is not ready")}function r(e){return e.matches||(e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;while(--n>=0&&t.item(n)!==this);return n>-1}),e}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}))}).call(this,n("3ad9")["default"])},dc12:function(e,t,n){"use strict";n.r(t),n.d(t,"compressImage",(function(){return r}));var i=n("cb0f"),r={src:{type:String,required:!0,validator:function(e,t){t.src=Object(i["a"])(e)}}}},dd35:function(e,t,n){"use strict";(function(e){var i=n("e949"),r=n("cb0f"),a=n("15bb"),o={forward:"&#xe600;",back:"&#xe601;",share:"&#xe602;",favorite:"&#xe604;",home:"&#xe605;",menu:"&#xe606;",close:"&#xe650;"};t["a"]={name:"PageHead",mixins:[a["a"]],props:{backButton:{type:Boolean,default:!0},backgroundColor:{type:String,default:function(){return"transparent"===this.type?"#000":"#F8F8F8"}},textColor:{type:String,default:"#fff"},titleText:{type:String,default:""},duration:{type:String,default:"0"},timingFunc:{type:String,default:""},loading:{type:Boolean,default:!1},titleSize:{type:String,default:"16px"},type:{default:"default",validator:function(e){return-1!==["default","transparent","float"].indexOf(e)}},coverage:{type:String,default:"132px"},buttons:{type:Array,default:function(){return[]}},searchInput:{type:[Object,Boolean],default:function(){return!1}},titleImage:{type:String,default:""},titlePenetrate:{type:Boolean,default:!1},shadow:{type:Object,default:function(){return{}}}},data:function(){return{focus:!1,text:"",composing:!1,showPlaceholder:!1}},computed:{btns:function(){var e=this,t=[],n={};return this.buttons.length&&this.buttons.forEach((function(a){var o=Object.assign({},a);if(o.fontSrc&&!o.fontFamily){var s,u=o.fontSrc=Object(r["a"])(o.fontSrc);if(u in n)s=n[u];else{s="font".concat(Date.now()),n[u]=s;var c='@font-face{font-family: "'.concat(s,'";src: url("').concat(u,'") format("truetype")}');Object(i["a"])(c,"uni-btn-font-"+s)}o.fontFamily=s}o.color="transparent"===e.type?"#fff":o.color||e.textColor;var l=o.fontSize||("transparent"===e.type||/\\u/.test(o.text)?"22px":"27px");/\d$/.test(l)&&(l+="px"),o.fontSize=l,o.fontWeight=o.fontWeight||"normal",t.push(o)})),t},headClass:function(){var e=this.shadow.colorType,t={"uni-page-head-transparent":"transparent"===this.type,"uni-page-head-titlePenetrate":this.titlePenetrate,"uni-page-head-shadow":e};return e&&(t["uni-page-head-shadow-".concat(e)]=e),t}},mounted:function(){var t=this;if(this.searchInput){var n=this.$refs.input;n.$watch("composing",(function(e){t.composing=e})),n.$watch("valueSync",(function(e){t.showPlaceholder=!!e})),this.searchInput.disabled?n.$el.addEventListener("click",(function(){e.emit("onNavigationBarSearchInputClicked","")})):(n.$refs.input.addEventListener("keyup",(function(n){"ENTER"===n.key.toUpperCase()&&e.emit("onNavigationBarSearchInputConfirmed",{text:t.text})})),n.$refs.input.addEventListener("focus",(function(){e.emit("onNavigationBarSearchInputFocusChanged",{focus:!0})})),n.$refs.input.addEventListener("blur",(function(){e.emit("onNavigationBarSearchInputFocusChanged",{focus:!1})})))}},methods:{_back:function(){1===getCurrentPages().length?uni.reLaunch({url:"/"}):uni.navigateBack({from:"backbutton"})},_onBtnClick:function(t){e.emit("onNavigationBarButtonTap",Object.assign({},this.btns[t],{index:t}))},_formatBtnFontText:function(e){return e.fontSrc&&e.fontFamily?e.text.replace("\\u","&#x"):o[e.type]?o[e.type]:e.text||""},_formatBtnStyle:function(e){var t={color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight};return e.fontFamily&&(t.fontFamily=e.fontFamily),t},_focus:function(){this.focus=!0},_blur:function(){this.focus=!1},_input:function(t){e.emit("onNavigationBarSearchInputChanged",{text:t})},_clearInput:function(){this.text="",this._input(this.text)}}}}).call(this,n("0dd1"))},de29:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("f2b3");function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function a(e,t,n){var r=t[e],a=!Object(i["i"])(n,e),s=n[e],u=d(Boolean,r.type);if(u>-1&&a&&!Object(i["i"])(r,"default")&&(s=!1),void 0===s&&Object(i["i"])(r,"default")){var c=r.default;s=Object(i["k"])(c)?c():c,n[e]=s}return o(r,e,s,a,n)}function o(e,t,n,i,r){if(e.required&&i)return"Missing required parameter `".concat(t,"`");if(null==n&&!e.required){var a=e.validator;return a?a(n,r):void 0}var o=e.type,s=!o||!0===o,c=[];if(o){Array.isArray(o)||(o=[o]);for(var l=0;l<o.length&&!s;l++){var d=u(n,o[l]);c.push(d.expectedType||""),s=d.valid}}if(!s)return h(t,n,c);var f=e.validator;return f?f(n,r):void 0}var s=/^(String|Number|Boolean|Function|Symbol)$/;function u(e,t){var n,a=c(t);if(s.test(a)){var o=r(e);n=o===a.toLowerCase(),n||"object"!==o||(n=e instanceof t)}else n=e.byteLength>=0||("Object"===a?Object(i["l"])(e):"Array"===a?Array.isArray(e):e instanceof t||Object(i["s"])(e)===c(t));return{valid:n,expectedType:a}}function c(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function l(e,t){return c(e)===c(t)}function d(e,t){if(!Array.isArray(t))return l(t,e)?0:-1;for(var n=0,i=t.length;n<i;n++)if(l(t[n],e))return n;return-1}function h(e,t,n){var r="parameter `".concat(e,"`.")+" Expected ".concat(n.join(", ")),a=n[0],o=Object(i["s"])(t),s=f(t,a),u=f(t,o);return 1===n.length&&m(a)&&!g(a,o)&&(r+=" with value ".concat(s)),r+=", got ".concat(o," "),m(o)&&(r+="with value ".concat(u,".")),r}function f(e,t){return"String"===t?'"'.concat(e,'"'):"".concat("Number"===t?Number(e):e)}var p=["string","number","boolean"];function m(e){return p.some((function(t){return e.toLowerCase()===t}))}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return"boolean"===e.toLowerCase()}))}},df1e:function(e,t,n){},e243:function(e,t,n){"use strict";(function(e){var i=n("cb0f"),r=n("bdbe");t["a"]={name:"CustomTabBar",props:{selected:{type:Number,default:0},showIcon:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},data:function(){return{selectedIndex:this.selected}},computed:{tabBarOptions:function(){return r["a"]},hasTabBar:function(){return r["a"].list&&r["a"].list.length},showTabBar:function(){var e=getApp();return!e||!e.$children[0].hideTabBar}},watch:{selected:function(e){this.selectedIndex=e;var t=getApp().$children[0].$refs.tabBar;t&&(t.selectedIndex=e)},$route:function(e,t){if(e.meta.isTabBar){var n=r["a"].list.findIndex((function(t){return e.meta.pagePath===t.pagePath}));n>-1&&(this.selectedIndex=n)}}},methods:{_getRealPath:function(e){var t=/^([a-z-]+:)?\/\//i,n=/^data:.*,.*/;return t.test(e)||n.test(e)||0===e.indexOf("/")||(e="/"+e),Object(i["a"])(e)},_switchTab:function(t,n){var i=t.text,r=t.pagePath;this.selectedIndex=n;var a="/"+r;a===__uniRoutes[0].alias&&(a="/");var o={index:n,text:i,pagePath:r};this.$emit("onTabItemTap",o),this.$route.path===a&&e.emit("onTabItemTap",o)}}}}).call(this,n("0dd1"))},e298:function(e,t,n){"use strict";var i=n("add1"),r=n.n(i);r.a},e2e2:function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return h}));var i=n("f2b3"),r={};function a(e,t){var n=r[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(o(e)):t?Promise.reject(new Error("not find")):new Promise((function(t,n){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(){t(this.response)},i.onerror=n,i.send()}))}function o(e){e=e.split(",");var t=e[0].match(/:(.*?);/)[1],n=atob(e[1]),i=n.length,r=new Uint8Array(i);while(i--)r[i]=n.charCodeAt(i);return c(r,t)}function s(e){var t=e.split("/")[1];return t?".".concat(t):""}function u(e){e=e.split("#")[0].split("?")[0];var t=e.split("/");return t[t.length-1]}function c(e,t){if(!(e instanceof File)){t=t||e.type||"";var n="".concat(Date.now()).concat(s(t));try{e=new File([e],n,{type:t})}catch(i){e=e instanceof Blob?e:new Blob([e],{type:t}),e.name=e.name||n}}return e}function l(e){for(var t in r)if(Object(i["i"])(r,t)){var n=r[t];if(n===e)return t}var a=(window.URL||window.webkitURL).createObjectURL(e);return r[a]=e,a}function d(e){var t=document.createElement("a");return t.href=e,t.origin===location.origin?Promise.resolve(e):a(e).then(l)}function h(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete r[e]}},e3a7:function(e,t,n){var i={"./base/event-bus.js":"6e0c","./constants.js":"8b67","./context/inner-audio.js":"f9d2","./context/operate-map-player.js":"0758","./context/operate-video-player.js":"f941","./device/accelerometer.js":"2bdd","./device/clipboard.js":"7bab","./device/compass.js":"f7b4","./device/get-system-info.js":"78c8","./device/make-phone-call.js":"7f4e","./device/network-info.js":"3d64","./device/vibrate.js":"44de","./file/file.js":"3b54","./file/open-document.js":"e826","./index.js":"d218","./keyboard/keyboard.js":"54f4","./location/choose-location.js":"be14","./location/get-location.js":"0554","./location/open-location.js":"6575","./media/MIMEType.js":"bd97","./media/choose-file.js":"3898","./media/choose-image.js":"d5be","./media/choose-video.js":"8ce3","./media/create_input.js":"3563","./media/get-image-info.js":"34b2","./media/get-video-info.js":"956d","./media/preview-image.js":"9e56","./network/download-file.js":"4f43","./network/request.js":"1a12","./network/socket.js":"893e","./network/upload-file.js":"7d18","./plugin/get-provider.js":"abea","./route/route.js":"1a8c","./storage/storage.js":"e649","./ui/navigation-bar.js":"5964","./ui/popup.js":"56e9","./ui/pull-down-refresh.js":"45db","./ui/request-component-info.js":"09e5","./ui/tab-bar.js":"fcd1","./ui/window.js":"e8b5","./ui/windows.js":"0e5c","./util.js":"79d5"};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id="e3a7"},e4bc:function(e,t,n){"use strict";var i=n("581a"),r=n.n(i);r.a},e5bb:function(e,t,n){"use strict";n.r(t),n.d(t,"chooseLocation",(function(){return i}));var i={keyword:{type:String}}},e649:function(e,t,n){"use strict";function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n.r(t),n.d(t,"setStorage",(function(){return o})),n.d(t,"setStorageSync",(function(){return s})),n.d(t,"getStorage",(function(){return u})),n.d(t,"getStorageSync",(function(){return c})),n.d(t,"removeStorage",(function(){return l})),n.d(t,"removeStorageSync",(function(){return d})),n.d(t,"clearStorage",(function(){return h})),n.d(t,"clearStorageSync",(function(){return f})),n.d(t,"getStorageInfo",(function(){return p})),n.d(t,"getStorageInfoSync",(function(){return m}));var r="uni-storage-keys";function a(e){var t=["object","string","number","boolean","undefined"];try{var n="string"===typeof e?JSON.parse(e):e,r=n.type;if(t.indexOf(r)>=0){var a=Object.keys(n);if(2===a.length&&"data"in n){if(i(n.data)===r)return n.data;if("object"===r&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===a.length)return""}}catch(o){}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key,n=e.data,r=i(n),a="string"===r?n:JSON.stringify({type:r,data:n});try{localStorage.setItem(t,a)}catch(o){return{errMsg:"setStorage:fail ".concat(o)}}return{errMsg:"setStorage:ok"}}function s(e,t){o({key:e,data:t})}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key,n=localStorage&&localStorage.getItem(t);if("string"!==typeof n)return{data:"",errMsg:"getStorage:fail"};var i=n;try{var r=JSON.parse(n),o=a(r);void 0!==o&&(i=o)}catch(s){}return{data:i,errMsg:"getStorage:ok"}}function c(e){var t=u({key:e});return t.data}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key;return localStorage&&localStorage.removeItem(t),{errMsg:"removeStorage:ok"}}function d(e){l({key:e})}function h(){return localStorage&&localStorage.clear(),{errMsg:"clearStorage:ok"}}function f(){h()}function p(){for(var e=localStorage&&localStorage.length||0,t=[],n=0,i=0;i<e;i++){var a=localStorage.key(i),o=localStorage.getItem(a);n+=a.length+o.length,a!==r&&t.push(a)}return{keys:t,currentSize:Math.ceil(2*n/1024),limitSize:Number.MAX_VALUE,errMsg:"getStorageInfo:ok"}}function m(){var e=p();return delete e.errMsg,e}},e692:function(e,t,n){},e826:function(e,t,n){"use strict";n.r(t),function(e){function i(t,n){var i=t.filePath,r=e,a=r.invokeCallbackHandler;window.open(i),a(n,{errMsg:"openDocument:ok"})}n.d(t,"openDocument",(function(){return i}))}.call(this,n("0dd1"))},e865:function(e,t,n){"use strict";var i=n("5dc4"),r=n.n(i);r.a},e8b5:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"onWindowResize",(function(){return o})),n.d(t,"offWindowResize",(function(){return s}));var i=[],r=[];function a(){r.push(setTimeout((function(){r.forEach((function(e){return clearTimeout(e)})),r.length=0;var t=e,n=t.invokeCallbackHandler,a=uni.getSystemInfoSync(),o=a.windowWidth,s=a.windowHeight,u=a.screenWidth,c=a.screenHeight,l=90===Math.abs(window.orientation),d=l?"landscape":"portrait";i.forEach((function(e){n(e,{deviceOrientation:d,size:{windowWidth:o,windowHeight:s,screenWidth:u,screenHeight:c}})}))}),20))}function o(e){i.length||window.addEventListener("resize",a),i.push(e)}function s(e){i.splice(i.indexOf(e),1),i.length||window.removeEventListener("resize",a)}}.call(this,n("0dd1"))},e949:function(e,t,n){"use strict";function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=document.getElementById(t);i&&n&&(i.parentNode.removeChild(i),i=null),i||(i=document.createElement("style"),i.type="text/css",t&&(i.id=t),document.getElementsByTagName("head")[0].appendChild(i)),i.appendChild(document.createTextNode(e))}n.d(t,"a",(function(){return i}))},ea0f:function(e,t,n){"use strict";n.r(t),n.d(t,"scanCode",(function(){return i}));var i={onlyFromCamera:{type:Boolean},scanType:{type:Array},autoDecodeCharSet:{type:Boolean}}},ea49:function(e,t,n){},ec33:function(e,t,n){"use strict";n.r(t),n.d(t,"getStorage",(function(){return i})),n.d(t,"getStorageSync",(function(){return r})),n.d(t,"setStorage",(function(){return a})),n.d(t,"setStorageSync",(function(){return o})),n.d(t,"removeStorage",(function(){return s})),n.d(t,"removeStorageSync",(function(){return u}));var i={key:{type:String,required:!0}},r=[{name:"key",type:String,required:!0}],a={key:{type:String,required:!0},data:{required:!0}},o=[{name:"key",type:String,required:!0},{name:"data",required:!0}],s=i,u=r},ed1a:function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return v}));var i=n("f2b3"),r=n("8542"),a=/^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale/,o=/^create|Manager$/,s=["createBLEConnection"],u=["request","downloadFile","uploadFile","connectSocket"],c=["createBLEConnection"],l=/^on|^off/;function d(e){return o.test(e)&&-1===s.indexOf(e)}function h(e){return a.test(e)&&-1===c.indexOf(e)}function f(e){return l.test(e)&&"onPush"!==e}function p(e){return-1!==u.indexOf(e)}function m(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))}function g(e){return!(d(e)||h(e)||f(e))}function v(e,t){return g(e)?function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length,o=new Array(a>1?a-1:0),s=1;s<a;s++)o[s-1]=arguments[s];return Object(i["k"])(n.success)||Object(i["k"])(n.fail)||Object(i["k"])(n.complete)?Object(r["e"])(e,r["b"].apply(void 0,[e,t,n].concat(o))):Object(r["e"])(e,m(new Promise((function(i,a){r["b"].apply(void 0,[e,t,Object.assign({},n,{success:i,fail:a})].concat(o))}))))}:t}Promise.prototype.finally||(Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))})},ed78:function(e,t,n){"use strict";(function(e){var i=n("8aec"),r=n("f2b3"),a=n("d4cd"),o=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return!!r["q"]&&{passive:e}},s=o();t["a"]={name:"ScrollView",mixins:[i["a"]],props:{scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},data:function(){return{lastScrollTop:this.scrollTopNumber,lastScrollLeft:this.scrollLeftNumber,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""}},computed:{upperThresholdNumber:function(){var e=Number(this.upperThreshold);return isNaN(e)?50:e},lowerThresholdNumber:function(){var e=Number(this.lowerThreshold);return isNaN(e)?50:e},scrollTopNumber:function(){return Number(this.scrollTop)||0},scrollLeftNumber:function(){return Number(this.scrollLeft)||0}},watch:{scrollTopNumber:function(e){this._scrollTopChanged(e)},scrollLeftNumber:function(e){this._scrollLeftChanged(e)},scrollIntoView:function(e){this._scrollIntoViewChanged(e)},refresherTriggered:function(e){!0===e?this._setRefreshState("refreshing"):!1===e&&this._setRefreshState("restore")}},mounted:function(){var e=this,t=null,n=null;this._attached=!0,this.toUpperNumber=0,this.triggerAbort=!1,this.beforeRefreshing=!1,this._scrollTopChanged(this.scrollTopNumber),this._scrollLeftChanged(this.scrollLeftNumber),this._scrollIntoViewChanged(this.scrollIntoView),this.__handleScroll=function(t){t.preventDefault(),t.stopPropagation(),e._handleScroll.bind(e,t)()},this.__handleTouchMove=function(i){if(null!==t){var r=i.touches[0].pageX,a=i.touches[0].pageY,o=e.$refs.main;if(Math.abs(r-t.x)>Math.abs(a-t.y))if(e.scrollX){if(0===o.scrollLeft&&r>t.x)return void(n=!1);if(o.scrollWidth===o.offsetWidth+o.scrollLeft&&r<t.x)return void(n=!1);n=!0}else n=!1;else if(e.scrollY)if(0===o.scrollTop&&a>t.y)n=!1,e.refresherEnabled&&!1!==i.cancelable&&i.preventDefault();else{if(o.scrollHeight===o.offsetHeight+o.scrollTop&&a<t.y)return void(n=!1);n=!0}else n=!1;if(n&&i.stopPropagation(),0===o.scrollTop&&1===i.touches.length&&(e.refreshState="pulling"),e.refresherEnabled&&"pulling"===e.refreshState){var s=a-t.y;0===e.toUpperNumber&&(e.toUpperNumber=a),e.beforeRefreshing?(e.refresherHeight=s+e.refresherThreshold,e.triggerAbort=!1):(e.refresherHeight=a-e.toUpperNumber,e.refresherHeight>0&&(e.triggerAbort=!0,e.$trigger("refresherpulling",i,{deltaY:s})));var u=e.refresherHeight/e.refresherThreshold;e.refreshRotate=360*(u>1?1:u)}}},this.__handleTouchStart=function(e){1===e.touches.length&&(Object(a["a"])({disable:!0}),t={x:e.touches[0].pageX,y:e.touches[0].pageY})},this.__handleTouchEnd=function(n){t=null,Object(a["a"])({disable:!1}),e.refresherHeight>=e.refresherThreshold?e._setRefreshState("refreshing"):e._setRefreshState("refresherabort")},this.$refs.main.addEventListener("touchstart",this.__handleTouchStart,s),this.$refs.main.addEventListener("touchmove",this.__handleTouchMove,o(!1)),this.$refs.main.addEventListener("scroll",this.__handleScroll,o(!1)),this.$refs.main.addEventListener("touchend",this.__handleTouchEnd,s),Object(a["b"])()},activated:function(){this.scrollY&&(this.$refs.main.scrollTop=this.lastScrollTop),this.scrollX&&(this.$refs.main.scrollLeft=this.lastScrollLeft)},beforeDestroy:function(){this.$refs.main.removeEventListener("touchstart",this.__handleTouchStart,s),this.$refs.main.removeEventListener("touchmove",this.__handleTouchMove,s),this.$refs.main.removeEventListener("scroll",this.__handleScroll,o(!1)),this.$refs.main.removeEventListener("touchend",this.__handleTouchEnd,s)},methods:{scrollTo:function(e,t){var n=this.$refs.main;e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight);var i=0,r="";"x"===t?i=n.scrollLeft-e:"y"===t&&(i=n.scrollTop-e),0!==i&&(this.$refs.content.style.transition="transform .3s ease-out",this.$refs.content.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?r="translateX("+i+"px) translateZ(0)":"y"===t&&(r="translateY("+i+"px) translateZ(0)"),this.$refs.content.removeEventListener("transitionend",this.__transitionEnd),this.$refs.content.removeEventListener("webkitTransitionEnd",this.__transitionEnd),this.__transitionEnd=this._transitionEnd.bind(this,e,t),this.$refs.content.addEventListener("transitionend",this.__transitionEnd),this.$refs.content.addEventListener("webkitTransitionEnd",this.__transitionEnd),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),this.$refs.content.style.transform=r,this.$refs.content.style.webkitTransform=r)},_handleTrack:function(e){if("start"===e.detail.state)return this._x=e.detail.x,this._y=e.detail.y,void(this._noBubble=null);"end"===e.detail.state&&(this._noBubble=!1),null===this._noBubble&&this.scrollY&&(Math.abs(this._y-e.detail.y)/Math.abs(this._x-e.detail.x)>1?this._noBubble=!0:this._noBubble=!1),null===this._noBubble&&this.scrollX&&(Math.abs(this._x-e.detail.x)/Math.abs(this._y-e.detail.y)>1?this._noBubble=!0:this._noBubble=!1),this._x=e.detail.x,this._y=e.detail.y,this._noBubble&&e.stopPropagation()},_handleScroll:function(e){var t=e.target;this.$trigger("scroll",e,{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,scrollHeight:t.scrollHeight,scrollWidth:t.scrollWidth,deltaX:this.lastScrollLeft-t.scrollLeft,deltaY:this.lastScrollTop-t.scrollTop}),this.scrollY&&(t.scrollTop<=this.upperThresholdNumber&&this.lastScrollTop-t.scrollTop>0&&e.timeStamp-this.lastScrollToUpperTime>200&&(this.$trigger("scrolltoupper",e,{direction:"top"}),this.lastScrollToUpperTime=e.timeStamp),t.scrollTop+t.offsetHeight+this.lowerThresholdNumber>=t.scrollHeight&&this.lastScrollTop-t.scrollTop<0&&e.timeStamp-this.lastScrollToLowerTime>200&&(this.$trigger("scrolltolower",e,{direction:"bottom"}),this.lastScrollToLowerTime=e.timeStamp)),this.scrollX&&(t.scrollLeft<=this.upperThresholdNumber&&this.lastScrollLeft-t.scrollLeft>0&&e.timeStamp-this.lastScrollToUpperTime>200&&(this.$trigger("scrolltoupper",e,{direction:"left"}),this.lastScrollToUpperTime=e.timeStamp),t.scrollLeft+t.offsetWidth+this.lowerThresholdNumber>=t.scrollWidth&&this.lastScrollLeft-t.scrollLeft<0&&e.timeStamp-this.lastScrollToLowerTime>200&&(this.$trigger("scrolltolower",e,{direction:"right"}),this.lastScrollToLowerTime=e.timeStamp)),this.lastScrollTop=t.scrollTop,this.lastScrollLeft=t.scrollLeft},_scrollTopChanged:function(e){this.scrollY&&(this._innerSetScrollTop?this._innerSetScrollTop=!1:this.scrollWithAnimation?this.scrollTo(e,"y"):this.$refs.main.scrollTop=e)},_scrollLeftChanged:function(e){this.scrollX&&(this._innerSetScrollLeft?this._innerSetScrollLeft=!1:this.scrollWithAnimation?this.scrollTo(e,"x"):this.$refs.main.scrollLeft=e)},_scrollIntoViewChanged:function(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void e.error("id error: scroll-into-view=".concat(t));var n=this.$el.querySelector("#"+t);if(n){var i=this.$refs.main.getBoundingClientRect(),r=n.getBoundingClientRect();if(this.scrollX){var a=r.left-i.left,o=this.$refs.main.scrollLeft,s=o+a;this.scrollWithAnimation?this.scrollTo(s,"x"):this.$refs.main.scrollLeft=s}if(this.scrollY){var u=r.top-i.top,c=this.$refs.main.scrollTop,l=c+u;this.scrollWithAnimation?this.scrollTo(l,"y"):this.$refs.main.scrollTop=l}}}},_transitionEnd:function(e,t){this.$refs.content.style.transition="",this.$refs.content.style.webkitTransition="",this.$refs.content.style.transform="",this.$refs.content.style.webkitTransform="";var n=this.$refs.main;"x"===t?(n.style.overflowX=this.scrollX?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=this.scrollY?"auto":"hidden",n.scrollTop=e),this.$refs.content.removeEventListener("transitionend",this.__transitionEnd),this.$refs.content.removeEventListener("webkitTransitionEnd",this.__transitionEnd)},_setRefreshState:function(e){switch(e){case"refreshing":this.refresherHeight=this.refresherThreshold,this.beforeRefreshing||(this.beforeRefreshing=!0,this.$trigger("refresherrefresh",{},{}));break;case"restore":case"refresherabort":this.beforeRefreshing=!1,this.refresherHeight=this.toUpperNumber=0,"restore"===e&&(this.triggerAbort=!1,this.$trigger("refresherrestore",{},{})),"refresherabort"===e&&this.triggerAbort&&(this.triggerAbort=!1,this.$trigger("refresherabort",{},{}));break}this.refreshState=e},getScrollPosition:function(){var e=this.$refs.main;return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth}}}}}).call(this,n("3ad9")["default"])},ed9f:function(e,t,n){"use strict";n.r(t),n.d(t,"chooseVideo",(function(){return r}));var i=["album","camera"],r={sourceType:{type:Array,required:!1,default:i,validator:function(e,t){e=e.filter((function(e){return i.includes(e)})),t.sourceType=e.length?e:i}},compressed:{type:Boolean,default:!0},maxDuration:{type:Number,default:60},camera:{type:String,default:"back"},extension:{type:Array,default:["*"],validator:function(e,t){if(0===e.length)return"param extension should not be empty."}}}},edfa:function(e,t,n){"use strict";var i=n("c418"),r=n.n(i);r.a},ee03:function(e,t,n){"use strict";n.r(t),n.d(t,"VideoContext",(function(){return c})),n.d(t,"createVideoContext",(function(){return l}));var i=n("db70");function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}var s=[.5,.8,1,1.25,1.5,2];function u(e,t,n,r){Object(i["c"])("operateVideoPlayer",e,t,n,r)}var c=function(){function e(t,n){r(this,e),this.id=t,this.pageVm=n}return o(e,[{key:"play",value:function(){u(this.id,this.pageVm,"play")}},{key:"pause",value:function(){u(this.id,this.pageVm,"pause")}},{key:"stop",value:function(){u(this.id,this.pageVm,"stop")}},{key:"seek",value:function(e){u(this.id,this.pageVm,"seek",{position:e})}},{key:"sendDanmu",value:function(e){u(this.id,this.pageVm,"sendDanmu",e)}},{key:"playbackRate",value:function(e){~s.indexOf(e)||(e=1),u(this.id,this.pageVm,"playbackRate",{rate:e})}},{key:"requestFullScreen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this.id,this.pageVm,"requestFullScreen",e)}},{key:"exitFullScreen",value:function(){u(this.id,this.pageVm,"exitFullScreen")}},{key:"showStatusBar",value:function(){u(this.id,this.pageVm,"showStatusBar")}},{key:"hideStatusBar",value:function(){u(this.id,this.pageVm,"hideStatusBar")}}]),e}();function l(e,t){return new c(e,t||Object(i["b"])("createVideoContext"))}},ee4f:function(e,t,n){"use strict";n.r(t),function(e){var i=n("f2b3");t["default"]={data:function(){return{showModal:{visible:!1}}},created:function(){var t=this;e.on("onShowModal",(function(e,n){t.showModal=e,t.onModalCloseCallback=n})),e.on("onHidePopup",(function(e){t.showModal.visible=!1}))},methods:{_onModalClose:function(e){this.showModal.visible=!1,Object(i["k"])(this.onModalCloseCallback)&&this.onModalCloseCallback(e)}}}}.call(this,n("0dd1"))},ef36:function(e,t,n){},f0c3:function(e,t,n){"use strict";n.r(t),n.d(t,"downloadFile",(function(){return l}));var i=n("a118"),r=n("db70");function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}var u=function(){function e(t,n){a(this,e),this.id=t,this._callbackId=n,this._callbacks=[]}return s(e,[{key:"abort",value:function(){Object(r["c"])("operateDownloadTask",{downloadTaskId:this.id,operationType:"abort"})}},{key:"onProgressUpdate",value:function(e){"function"===typeof e&&this._callbacks.push(e)}},{key:"onHeadersReceived",value:function(){}},{key:"offProgressUpdate",value:function(e){var t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}},{key:"offHeadersReceived",value:function(){}}]),e}(),c=Object.create(null);function l(e,t){var n=Object(r["c"])("createDownloadTask",e),i=n.downloadTaskId,a=new u(i,t);return c[i]=a,a}Object(r["d"])("onDownloadTaskStateChange",(function(e){var t=e.downloadTaskId,n=e.state,r=e.tempFilePath,a=e.statusCode,o=e.progress,s=e.totalBytesWritten,u=e.totalBytesExpectedToWrite,l=e.errMsg,d=c[t],h=d._callbackId;switch(n){case"progressUpdate":d._callbacks.forEach((function(e){e({progress:o,totalBytesWritten:s,totalBytesExpectedToWrite:u})}));break;case"success":Object(i["a"])(h,{tempFilePath:r,statusCode:a,errMsg:"request:ok"});case"fail":Object(i["a"])(h,{errMsg:"request:fail "+l});default:setTimeout((function(){delete c[t]}),100);break}}))},f102:function(e,t,n){"use strict";n.r(t),n.d(t,"makePhoneCall",(function(){return i}));var i={phoneNumber:{type:String,required:!0,validator:function(e){if(!e)return"makePhoneCall:fail parameter error: parameter.phoneNumber should not be empty String;"}}}},f10e:function(e,t,n){"use strict";var i=n("29a2"),r=n.n(i);r.a},f1b2:function(e,t,n){"use strict";n.r(t),n.d(t,"chooseImage",(function(){return a}));var i=["original","compressed"],r=["album","camera"],a={count:{type:Number,required:!1,default:9,validator:function(e,t){e<=0&&(t.count=9)}},sizeType:{type:[Array,String],required:!1,default:i,validator:function(e,t){e="string"===typeof e?[e]:e,e=e.filter((function(e){return i.includes(e)})),t.sizeType=e.length?e:i}},sourceType:{type:Array,required:!1,default:r,validator:function(e,t){e=e.filter((function(e){return r.includes(e)})),t.sourceType=e.length?e:r}},extension:{type:Array,default:["*"],validator:function(e,t){if(0===e.length)return"param extension should not be empty."}}}},f1ea:function(e,t,n){"use strict";n.r(t);var i=[],r=n("8793");r.keys().forEach((function(e){"./index.js"!==e&&i.push(r(e).default)})),t["default"]=i},f1ef:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-scroll-view",e._g({},e.$listeners),[n("div",{ref:"wrap",staticClass:"uni-scroll-view"},[n("div",{ref:"main",staticClass:"uni-scroll-view",style:{"overflow-x":e.scrollX?"auto":"hidden","overflow-y":e.scrollY?"auto":"hidden"}},[n("div",{ref:"content",staticClass:"uni-scroll-view-content"},[e.refresherEnabled?n("div",{ref:"refresherinner",staticClass:"uni-scroll-view-refresher",style:{"background-color":e.refresherBackground,height:e.refresherHeight+"px"}},["none"!==e.refresherDefaultStyle?n("div",{staticClass:"uni-scroll-view-refresh"},[n("div",{staticClass:"uni-scroll-view-refresh-inner"},["pulling"==e.refreshState?n("svg",{key:"refresh__icon",staticClass:"uni-scroll-view-refresh__icon",style:{transform:"rotate("+e.refreshRotate+"deg)"},attrs:{fill:"#2BD009",width:"24",height:"24",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}}),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})]):e._e(),"refreshing"==e.refreshState?n("svg",{key:"refresh__spinner",staticClass:"uni-scroll-view-refresh__spinner",attrs:{width:"24",height:"24",viewBox:"25 25 50 50"}},[n("circle",{staticStyle:{color:"#2bd009"},attrs:{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"3"}})]):e._e()])]):e._e(),"none"==e.refresherDefaultStyle?e._t("refresher"):e._e()],2):e._e(),e._t("default")],2)])])])},r=[],a=n("ed78"),o=a["a"],s=(n("5ab3"),n("2877")),u=Object(s["a"])(o,i,r,!1,null,null,null);t["default"]=u.exports},f2b3:function(e,t,n){"use strict";n.d(t,"q",(function(){return r})),n.d(t,"k",(function(){return p})),n.d(t,"m",(function(){return m})),n.d(t,"l",(function(){return g})),n.d(t,"i",(function(){return v})),n.d(t,"s",(function(){return y})),n.d(t,"b",(function(){return T})),n.d(t,"c",(function(){return w})),n.d(t,"p",(function(){return S})),n.d(t,"h",(function(){return k})),n.d(t,"g",(function(){return C})),n.d(t,"u",(function(){return x})),n.d(t,"d",(function(){return E})),n.d(t,"r",(function(){return A})),n.d(t,"n",(function(){return O})),n.d(t,"f",(function(){return j})),n.d(t,"t",(function(){return l})),n.d(t,"j",(function(){return I})),n.d(t,"e",(function(){return L})),n.d(t,"o",(function(){return M})),n.d(t,"a",(function(){return U}));var i,r=!1;try{var a={};Object.defineProperty(a,"passive",{get:function(){r=!0}}),window.addEventListener("test-passive",null,a)}catch(F){}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function u(e){return decodeURIComponent(i(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function c(){var e,t=uni.getStorageSync("uni_id_token")||"",n=t.split(".");if(!t||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse(u(n[1]))}catch(i){throw new Error("获取当前用户信息出错,详细错误信息为:"+i.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}function l(e){e.prototype.uniIDHasRole=function(e){var t=c(),n=t.role;return n.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=c(),n=t.permission;return this.uniIDHasRole("admin")||n.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=c(),t=e.tokenExpired;return t>Date.now()}}i="function"!==typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!s.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,i,r="",a=0;a<e.length;)t=o.indexOf(e.charAt(a++))<<18|o.indexOf(e.charAt(a++))<<12|(n=o.indexOf(e.charAt(a++)))<<6|(i=o.indexOf(e.charAt(a++))),r+=64===n?String.fromCharCode(t>>16&255):64===i?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return r}:atob;var d=Object.prototype.toString,h=Object.prototype.hasOwnProperty,f=function(e){return e>9?e:"0"+e};function p(e){return"function"===typeof e}function m(e){return"string"===typeof e}function g(e){return"[object Object]"===d.call(e)}function v(e,t){return h.call(e,t)}function y(e){return d.call(e).slice(8,-1)}function b(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var _=/-(\w)/g,T=b((function(e){return e.replace(_,(function(e,t){return t?t.toUpperCase():""}))})),w=b((function(e){return e.charAt(0).toUpperCase()+e.slice(1)}));function S(e,t,n){t.forEach((function(t){v(n,t)&&(e[t]=n[t])}))}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(""+e).replace(/[^\x00-\xff]/g,"**").length}function C(e){var t=e.date,n=void 0===t?new Date:t,i=e.mode,r=void 0===i?"date":i;return"time"===r?f(n.getHours())+":"+f(n.getMinutes()):n.getFullYear()+"-"+f(n.getMonth()+1)+"-"+f(n.getDate())}function x(e,t){for(var n in t)e.style[n]=t[n]}function E(e,t){var n,i=function(){var i=arguments,r=this;clearTimeout(n);var a=function(){return e.apply(r,i)};n=setTimeout(a,t)};return i.cancel=function(){clearTimeout(n)},i}function A(e,t){var n,i,r=0,a=function(){for(var a=this,o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var c=Date.now();clearTimeout(n),i=function(){i=null,r=c,e.apply(a,s)},c-r<t?n=setTimeout(i,t-(c-r)):i()};return a.cancel=function(){clearTimeout(n),i=null},a.flush=function(){clearTimeout(n),i&&i()},a}function O(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))}function j(e,t){function n(e){var i=e.children&&e.children.map(n),r=t(e.tag,e.data,i);return r.text=e.text,r.isComment=e.isComment,r.componentOptions=e.componentOptions,r.elm=e.elm,r.context=e.context,r.ns=e.ns,r.isStatic=e.isStatic,r.key=e.key,r}return e.map(n)}function I(e){var t,n,i;if(e=e.replace("#",""),6===e.length)t=e.substring(0,2),n=e.substring(2,4),i=e.substring(4,6);else{if(3!==e.length)return!1;t=e.substring(0,1),n=e.substring(1,2),i=e.substring(2,3)}return 1===t.length&&(t+=t),1===n.length&&(n+=n),1===i.length&&(i+=i),t=parseInt(t,16),n=parseInt(n,16),i=parseInt(i,16),{r:t,g:n,b:i}}var P=decodeURIComponent;function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.keys(e).forEach((function(n){try{t[n]=P(e[n])}catch(F){t[n]=e[n]}})),t}function M(e){if("function"===typeof e)return window.plus?e():void document.addEventListener("plusready",e)}var D=0,R={};function N(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=String(D++);R[n]={success:t.success,fail:t.fail,complete:t.complete};var i=Object.assign({},t),r=e.bind(this)(i,n);r&&B(n,r)}}function B(e,t){var n=R[e]||{};delete R[e];var i=t.errMsg||"";new RegExp("\\:\\s*fail").test(i)?n.fail&&n.fail(t):n.success&&n.success(t),n.complete&&n.complete(t)}var U={warp:N,invoke:B}},f2ce:function(e,t,n){"use strict";(function(e){var i=n("8af1");t["a"]={name:"Label",mixins:[i["a"]],props:{for:{type:String,default:""}},computed:{pointer:function(){return this.for||this.$slots.default&&this.$slots.default.length}},methods:{_onClick:function(t){var n=/^uni-(checkbox|radio|switch)-/.test(t.target.className);n||(n=/^uni-(checkbox|radio|switch|button)$/i.test(t.target.tagName)),n||(this.for?e.emit("uni-label-click-"+this.$page.id+"-"+this.for,t,!0):this.$broadcast(["Checkbox","Radio","Switch","Button"],"uni-label-click",t,!0))}}}}).call(this,n("501c"))},f4e0:function(e,t,n){"use strict";var i=n("c2aa"),r=n.n(i);r.a},f53a:function(e,t,n){"use strict";var i=n("f735"),r=n.n(i);r.a},f68f:function(e,t,n){"use strict";n.r(t),n.d(t,"preLogin",(function(){return r}));var i={UNIVERIFY:"univerify"},r={provider:{type:String,required:!0,default:i.UNIVERIFY,validator:function(e,t){if(Object.values(i).indexOf(e)<0)return"provider error"}}}},f735:function(e,t,n){},f756:function(e,t,n){},f7b4:function(e,t,n){"use strict";n.r(t),function(e){var i;n.d(t,"startCompass",(function(){return a})),n.d(t,"stopCompass",(function(){return o})),n.d(t,"onCompassChange",(function(){return s})),n.d(t,"offCompassChange",(function(){return u}));var r=[];function a(t,n){var a=e,o=a.invokeCallbackHandler;if(!window.DeviceOrientationEvent)return{errMsg:"startCompass:fail"};function s(){i=function(e){var t=360-e.alpha;r.forEach((function(e){o(e,{direction:t||0})}))},window.addEventListener("deviceorientation",i,!1)}if(!i){if(DeviceOrientationEvent.requestPermission)return void DeviceOrientationEvent.requestPermission().then((function(e){"granted"===e?(s(),o(n,{errMsg:"startCompass:ok"})):o(n,{errMsg:"startCompass:fail ".concat(e)})})).catch((function(e){o(n,{errMsg:"startCompass:fail ".concat(e)})}));s()}return{}}function o(){return i&&(window.removeEventListener("deviceorientation",i,!1),i=null),{}}function s(e){r.length||a(),r.push(e)}function u(e){if(e){var t=r.indexOf(e);t>=0&&r.splice(t,1)}r.length||o()}}.call(this,n("0dd1"))},f7fd:function(e,t,n){"use strict";var i=n("33b4"),r=n.n(i);r.a},f941:function(e,t,n){"use strict";n.r(t),function(e){function i(t,n,i,r){var a=n.$page.id;e.publishHandler(a+"-video-"+t,{videoId:t,type:i,data:r},a)}n.d(t,"operateVideoPlayer",(function(){return i}))}.call(this,n("0dd1"))},f9d2:function(e,t,n){"use strict";n.r(t),n.d(t,"createInnerAudioContext",(function(){return d}));var i=n("cb0f");function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=["onCanplay","onPlay","onPause","onStop","onEnded","onTimeUpdate","onError","onWaiting","onSeeking","onSeeked"],c=["offCanplay","offPlay","offPause","offStop","offEnded","offTimeUpdate","offError","offWaiting","offSeeking","offSeeked"],l=function(){function e(){var t=this;r(this,e),s(this,"_audio",void 0),s(this,"_stoping",void 0),s(this,"startTime",void 0),s(this,"_events",void 0),s(this,"_src",void 0);var n=this._audio=new Audio;this._stoping=!1;var a=["src","autoplay","loop","duration","currentTime","paused","volume"];a.forEach((function(e){Object.defineProperty(t,e,{set:"src"===e?function(e){return n.src=Object(i["a"])(e),t._src=e,e}:function(t){return n[e]=t,t},get:"src"===e?function(){return t._src}:function(){return n[e]}})})),this.startTime=0,Object.defineProperty(this,"obeyMuteSwitch",{set:function(e){return!1},get:function(){return!1}}),Object.defineProperty(this,"buffered",{get:function(){var e=n.buffered;return e.length?e.end(e.length-1):0}}),this._events={},u.forEach((function(e){t._events[e]=[]})),n.addEventListener("loadedmetadata",(function(){var e=Number(t.startTime)||0;e>0&&(n.currentTime=e)}));var o=["canplay","play","pause","ended","timeUpdate","error","waiting","seeking","seeked"],c=["canplay","pause","seeking","seeked","timeUpdate"];o.forEach((function(e){n.addEventListener(e.toLowerCase(),(function(){t._stoping&&c.indexOf(e)>=0||t._events["on".concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))].forEach((function(e){e()}))}),!1)}))}return o(e,[{key:"play",value:function(){this._stoping=!1,this._audio.play()}},{key:"pause",value:function(){this._audio.pause()}},{key:"stop",value:function(){this._stoping=!0,this._audio.pause(),this._audio.currentTime=0,this._events.onStop.forEach((function(e){e()}))}},{key:"seek",value:function(e){this._stoping=!1,e=Number(e),"number"!==typeof e||isNaN(e)||(this._audio.currentTime=e)}},{key:"destroy",value:function(){this.stop()}}]),e}();function d(){return new l}u.forEach((function(e){l.prototype[e]=function(t){"function"===typeof t&&this._events[e].push(t)}})),c.forEach((function(e){l.prototype[e]=function(t){var n=this._events[e.replace("off","on")],i=n.indexOf(t);i>=0&&n.splice(i,1)}}))},fae3:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var i=window.document.currentScript,r=n("8875");i=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var a=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}n("2ef3")},fb61:function(e,t,n){"use strict";var i=n("7df2"),r=n.n(i);r.a},fcd1:function(e,t,n){"use strict";n.r(t),n.d(t,"setTabBarItem",(function(){return u})),n.d(t,"setTabBarStyle",(function(){return c})),n.d(t,"hideTabBar",(function(){return l})),n.d(t,"showTabBar",(function(){return d})),n.d(t,"hideTabBarRedDot",(function(){return h})),n.d(t,"showTabBarRedDot",(function(){return f})),n.d(t,"removeTabBarBadge",(function(){return p})),n.d(t,"setTabBarBadge",(function(){return m}));var i=n("f2b3"),r=["text","iconPath","selectedIconPath","visible"],a=["color","selectedColor","backgroundColor","borderStyle"],o=["badge","redDot"];function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=getApp();if(n){var s=!1,u=getCurrentPages();if(u.length?u[u.length-1].$page.meta.isTabBar&&(s=!0):n.$children[0].hasTabBar&&(s=!0),!s)return{errMsg:"".concat(e,":fail not TabBar page")};var c=t.index,l=__uniConfig.tabBar;if(c>=__uniConfig.tabBar.list.length)return{errMsg:"".concat(e,":fail tabbar item not found")};switch(e){case"showTabBar":n.$children[0].hideTabBar=!1;break;case"hideTabBar":n.$children[0].hideTabBar=!0;break;case"setTabBarItem":Object(i["p"])(l.list[c],r,t);var d=t.pagePath,h=d&&__uniRoutes.find((function(e){var t=e.path;return t===d}));if(h){var f=h.meta;f.isTabBar=!0,f.tabBarIndex=c,f.isQuit=!0;var p=__uniConfig.tabBar;p&&p.list&&p.list[c]&&(p.list[c].pagePath=d.startsWith("/")?d.substring(1):d)}break;case"setTabBarStyle":Object(i["p"])(l,a,t);break;case"showTabBarRedDot":Object(i["p"])(l.list[c],o,{badge:"",redDot:!0});break;case"setTabBarBadge":Object(i["p"])(l.list[c],o,{badge:t.text,redDot:!0});break;case"hideTabBarRedDot":case"removeTabBarBadge":Object(i["p"])(l.list[c],o,{badge:"",redDot:!1});break}}return{}}function u(e){return s("setTabBarItem",e)}function c(e){return s("setTabBarStyle",e)}function l(e){return s("hideTabBar",e)}function d(e){return s("showTabBar",e)}function h(e){return s("hideTabBarRedDot",e)}function f(e){return s("showTabBarRedDot",e)}function p(e){return s("removeTabBarBadge",e)}function m(e){return s("setTabBarBadge",e)}},fda5:function(e,t,n){"use strict";(function(e){var i=n("f2b3"),r=n("ffdc"),a=n("a6b0"),o=n("636c");t["a"]={name:"SystemChooseLocation",filters:{distance:function(e){return e>100?"".concat(e>1e3?(e/1e3).toFixed(1)+"k":e.toFixed(0),"m | "):e>0?"<100m | ":""}},mixins:[a["c"]],data:function(){var e=this.$route.query,t=e.latitude,n=e.longitude;return{latitude:t,longitude:n,pageSize:20,pageIndex:1,hasNextPage:!0,nextPage:null,selectedIndex:-1,list:[],keyword:"",searching:!1,loading:!0,adcode:"",locationStyle:'background-image: url("'.concat(o["b"],'")')}},computed:{selected:function(){return this.list[this.selectedIndex]},boundary:function(){return this.adcode?"region(".concat(this.adcode,",1,").concat(this.latitude,",").concat(this.longitude,")"):"nearby(".concat(this.latitude,",").concat(this.longitude,",5000)")}},created:function(){var e=this;this.latitude&&this.longitude||this.moveToLocation(),this.search=Object(i["d"])((function(){e.reset(),e.keyword&&e.getList()}),1e3),this.$watch("searching",(function(t){e.reset(),t||e.getList()}))},methods:{choose:function(){this.selected&&(e.publishHandler("onChooseLocation",Object.assign({},this.selected)),getApp().$router.back())},back:function(){e.publishHandler("onChooseLocation",null),getApp().$router.back()},moveToLocation:function(){uni.getLocation({type:"gcj02",success:this.move.bind(this),fail:function(){}})},onRegionChange:function(e){var t=e.detail.centerLocation;t&&this.move(t)},pushData:function(e){var t=this;e.forEach((function(e){t.list.push({name:e.title,address:e.address,distance:e._distance,latitude:e.location.lat,longitude:e.location.lng})}))},getList:function(){var e=this;this.loading=!0;var t=Object(o["d"])();if(t.type===o["c"].GOOGLE){if(this.pageIndex>1&&this.nextPage)return void this.nextPage();var n=new window.google.maps.places.PlacesService(document.createElement("div"));n[this.searching?"textSearch":"nearbySearch"]({location:{lat:this.latitude,lng:this.longitude},query:this.keyword,radius:5e3},(function(t,n,i){e.loading=!1,t&&t.length&&t.forEach((function(t){e.list.push({name:t.name||"",address:t.vicinity||t.formatted_address||"",distance:0,latitude:t.geometry.location.lat(),longitude:t.geometry.location.lng()})})),i&&(i.hasNextPage?e.nextPage=function(){i.nextPage()}:e.hasNextPage=!1)}))}else if(t.type===o["c"].QQ){var i=this.searching?"https://apis.map.qq.com/ws/place/v1/search?output=jsonp&key=".concat(t.key,"&boundary=").concat(this.boundary,"&keyword=").concat(this.keyword,"&page_size=").concat(this.pageSize,"&page_index=").concat(this.pageIndex):"https://apis.map.qq.com/ws/geocoder/v1/?output=jsonp&key=".concat(t.key,"&location=").concat(this.latitude,",").concat(this.longitude,"&get_poi=1&poi_options=page_size=").concat(this.pageSize,";page_index=").concat(this.pageIndex);Object(r["a"])(i,{callback:"callback"},(function(t){if(e.loading=!1,e.searching&&"data"in t&&t.data.length)e.pushData(t.data);else if("result"in t){var n=t.result;e.adcode=n.ad_info?n.ad_info.adcode:"",n.pois&&e.pushData(n.pois),e.list.length===e.pageSize*e.pageIndex&&(e.hasNextPage=!1)}}),(function(){e.loading=!1}))}},loadMore:function(){!this.loading&&this.hasNextPage&&(this.pageIndex++,this.getList())},reset:function(){this.selectedIndex=-1,this.pageIndex=1,this.hasNextPage=!0,this.nextPage=null,this.list=[]},move:function(e){var t=e.latitude,n=e.longitude;this.latitude=t,this.longitude=n,this.searching||(this.reset(),this.getList())},input:function(){this.search()}}}}).call(this,n("501c"))},ff28:function(e,t,n){"use strict";var i=n("2399"),r=n.n(i);r.a},ffdc:function(e,t,n){"use strict";function i(e,t,n,i){var r,a=document.createElement("script"),o=t.callback||"callback",s="__callback"+Date.now(),u=t.timeout||3e4;function c(){clearTimeout(r),delete window[s],a.remove()}window[s]=function(e){"function"===typeof n&&n(e),c()},a.onerror=function(){"function"===typeof i&&i(),c()},r=setTimeout((function(){"function"===typeof i&&i(),c()}),u),a.src=e+(e.indexOf("?")>=0?"&":"?")+o+"="+s,document.body.appendChild(a)}n.d(t,"a",(function(){return i}))}})}))},"1c7e":function(e,t,n){var i=n("b622"),r=i("iterator"),a=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){a=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(u){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(u){}return n}},"1cdc":function(e,t,n){var i=n("342f");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(i)},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1da1":function(e,t,n){"use strict";function i(e,t,n,i,r,a,o){try{var s=e[a](o),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function s(e){i(o,r,a,s,u,"next",e)}function u(e){i(o,r,a,s,u,"throw",e)}s(void 0)}))}}n("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},"1dde":function(e,t,n){var i=n("d039"),r=n("b622"),a=n("2d00"),o=r("species");e.exports=function(e){return a>=51||!i((function(){var t=[],n=t.constructor={};return n[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1fb5":function(e,t,n){"use strict";t.byteLength=l,t.toByteArray=h,t.fromByteArray=m;for(var i=[],r=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=o.length;s<u;++s)i[s]=o[s],r[o.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function l(e){var t=c(e),n=t[0],i=t[1];return 3*(n+i)/4-i}function d(e,t,n){return 3*(t+n)/4-n}function h(e){var t,n,i=c(e),o=i[0],s=i[1],u=new a(d(e,o,s)),l=0,h=s>0?o-4:o;for(n=0;n<h;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[l++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u}function f(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}function p(e,t,n){for(var i,r=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),r.push(f(i));return r.join("")}function m(e){for(var t,n=e.length,r=n%3,a=[],o=16383,s=0,u=n-r;s<u;s+=o)a.push(p(e,s,s+o>u?u:s+o));return 1===r?(t=e[n-1],a.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],a.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"219c":function(e,t,n){"use strict";var i=n("ebb5"),r=i.aTypedArray,a=i.exportTypedArrayMethod,o=[].sort;a("sort",(function(e){return o.call(r(this),e)}))},2266:function(e,t,n){var i=n("825a"),r=n("e95a"),a=n("50c4"),o=n("0366"),s=n("35a1"),u=n("9bdd"),c=function(e,t){this.stopped=e,this.result=t},l=e.exports=function(e,t,n,l,d){var h,f,p,m,g,v,y,b=o(t,n,l?2:1);if(d)h=e;else{if(f=s(e),"function"!=typeof f)throw TypeError("Target is not iterable");if(r(f)){for(p=0,m=a(e.length);m>p;p++)if(g=l?b(i(y=e[p])[0],y[1]):b(e[p]),g&&g instanceof c)return g;return new c(!1)}h=f.call(e)}v=h.next;while(!(y=v.call(h)).done)if(g=u(h,b,y.value,l),"object"==typeof g&&g&&g instanceof c)return g;return new c(!1)};l.stop=function(e){return new c(!0,e)}},"23cb":function(e,t,n){var i=n("a691"),r=Math.max,a=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):a(n,t)}},"23dc":function(e,t,n){var i=n("d44e");i(Math,"Math",!0)},"23e7":function(e,t,n){var i=n("da84"),r=n("06cf").f,a=n("9112"),o=n("6eeb"),s=n("ce4e"),u=n("e893"),c=n("94ca");e.exports=function(e,t){var n,l,d,h,f,p,m=e.target,g=e.global,v=e.stat;if(l=g?i:v?i[m]||s(m,{}):(i[m]||{}).prototype,l)for(d in t){if(f=t[d],e.noTargetGet?(p=r(l,d),h=p&&p.value):h=l[d],n=c(g?d:m+(v?".":"#")+d,e.forced),!n&&void 0!==h){if(typeof f===typeof h)continue;u(f,h)}(e.sham||h&&h.sham)&&a(f,"sham",!0),o(l,d,f,e)}}},"241c":function(e,t,n){var i=n("ca84"),r=n("7839"),a=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,a)}},"24fb":function(e,t,n){"use strict";function i(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"===typeof btoa){var a=r(i),o=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([a]).join("\n")}return[n].join("\n")}function r(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=i(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"===typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(r[o]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);i&&r[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},"252a":function(e,t,n){n("a623"),n("4de4"),n("c975"),n("13d5"),n("fb6a"),n("b64b"),n("d3b7"),n("ac1f"),n("25f0"),n("5319"),n("1276");var i=n("3597"),r=i.NAMESPACE;function a(e){return""!==e}function o(e){return e?e.split(/[\t\n\f\r ]+/).filter(a):[]}function s(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function u(e){if(!e)return[];var t=o(e);return Object.keys(t.reduce(s,{}))}function c(e){return function(t){return e&&-1!==e.indexOf(t)}}function l(e,t){for(var n in e)t[n]=e[n]}function d(e,t){var n=e.prototype;if(!(n instanceof t)){var i=function(){};i.prototype=t.prototype,i=new i,l(n,i),e.prototype=n=i}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var h={},f=h.ELEMENT_NODE=1,p=h.ATTRIBUTE_NODE=2,m=h.TEXT_NODE=3,g=h.CDATA_SECTION_NODE=4,v=h.ENTITY_REFERENCE_NODE=5,y=h.ENTITY_NODE=6,b=h.PROCESSING_INSTRUCTION_NODE=7,_=h.COMMENT_NODE=8,T=h.DOCUMENT_NODE=9,w=h.DOCUMENT_TYPE_NODE=10,S=h.DOCUMENT_FRAGMENT_NODE=11,k=h.NOTATION_NODE=12,C={},x={},E=(C.INDEX_SIZE_ERR=(x[1]="Index size error",1),C.DOMSTRING_SIZE_ERR=(x[2]="DOMString size error",2),C.HIERARCHY_REQUEST_ERR=(x[3]="Hierarchy request error",3)),A=(C.WRONG_DOCUMENT_ERR=(x[4]="Wrong document",4),C.INVALID_CHARACTER_ERR=(x[5]="Invalid character",5),C.NO_DATA_ALLOWED_ERR=(x[6]="No data allowed",6),C.NO_MODIFICATION_ALLOWED_ERR=(x[7]="No modification allowed",7),C.NOT_FOUND_ERR=(x[8]="Not found",8)),O=(C.NOT_SUPPORTED_ERR=(x[9]="Not supported",9),C.INUSE_ATTRIBUTE_ERR=(x[10]="Attribute in use",10));C.INVALID_STATE_ERR=(x[11]="Invalid state",11),C.SYNTAX_ERR=(x[12]="Syntax error",12),C.INVALID_MODIFICATION_ERR=(x[13]="Invalid modification",13),C.NAMESPACE_ERR=(x[14]="Invalid namespace",14),C.INVALID_ACCESS_ERR=(x[15]="Invalid access",15);function j(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,x[e]),this.message=x[e],Error.captureStackTrace&&Error.captureStackTrace(this,j);return n.code=e,t&&(this.message=this.message+": "+t),n}function I(){}function P(e,t){this._node=e,this._refresh=t,L(this)}function L(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);pe(e,"length",n.length),l(n,e),e._inc=t}}function M(){}function D(e,t){var n=e.length;while(n--)if(e[n]===t)return n}function R(e,t,n,i){if(i?t[D(t,i)]=n:t[t.length++]=n,e){n.ownerElement=e;var r=e.ownerDocument;r&&(i&&q(r,e,i),V(r,e,n))}}function N(e,t,n){var i=D(t,n);if(!(i>=0))throw j(A,new Error(e.tagName+"@"+n));var r=t.length-1;while(i<r)t[i]=t[++i];if(t.length=r,e){var a=e.ownerDocument;a&&(q(a,e,n),n.ownerElement=null)}}function B(){}function U(){}function F(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function $(e,t){if(t(e))return!0;if(e=e.firstChild)do{if($(e,t))return!0}while(e=e.nextSibling)}function H(){}function V(e,t,n){e&&e._inc++;var i=n.namespaceURI;i===r.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}function q(e,t,n,i){e&&e._inc++;var a=n.namespaceURI;a===r.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function z(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n)i[i.length++]=n;else{var r=t.firstChild,a=0;while(r)i[a++]=r,r=r.nextSibling;i.length=a}}}function W(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,z(e.ownerDocument,e),t}function G(e,t,n){var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===S){var r=t.firstChild;if(null==r)return t;var a=t.lastChild}else r=a=t;var o=n?n.previousSibling:e.lastChild;r.previousSibling=o,a.nextSibling=n,o?o.nextSibling=r:e.firstChild=r,null==n?e.lastChild=a:n.previousSibling=a;do{r.parentNode=e}while(r!==a&&(r=r.nextSibling));return z(e.ownerDocument||e,e),t.nodeType==S&&(t.firstChild=t.lastChild=null),t}function Y(e,t){var n=t.parentNode;if(n){var i=e.lastChild;n.removeChild(t);i=e.lastChild}i=e.lastChild;return t.parentNode=e,t.previousSibling=i,t.nextSibling=null,i?i.nextSibling=t:e.firstChild=t,e.lastChild=t,z(e.ownerDocument,e,t),t}function X(){this._nsMap={}}function K(){}function Q(){}function J(){}function Z(){}function ee(){}function te(){}function ne(){}function ie(){}function re(){}function ae(){}function oe(){}function se(){}function ue(e,t){var n=[],i=9==this.nodeType&&this.documentElement||this,r=i.prefix,a=i.namespaceURI;if(a&&null==r){r=i.lookupPrefix(a);if(null==r)var o=[{namespace:a,prefix:null}]}return de(this,n,e,t,o),n.join("")}function ce(e,t,n){var i=e.prefix||"",a=e.namespaceURI;if(!a)return!1;if("xml"===i&&a===r.XML||a===r.XMLNS)return!1;var o=n.length;while(o--){var s=n[o];if(s.prefix===i)return s.namespace!==a}return!0}function le(e,t,n){e.push(" ",t,'="',n.replace(/[<&"]/g,F),'"')}function de(e,t,n,i,a){if(a||(a=[]),i){if(e=i(e),!e)return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case f:var o=e.attributes,s=o.length,u=e.firstChild,c=e.tagName;n=r.isHTML(e.namespaceURI)||n;var l=c;if(!n&&!e.prefix&&e.namespaceURI){for(var d,h=0;h<o.length;h++)if("xmlns"===o.item(h).name){d=o.item(h).value;break}if(!d)for(var y=a.length-1;y>=0;y--){var k=a[y];if(""===k.prefix&&k.namespace===e.namespaceURI){d=k.namespace;break}}if(d!==e.namespaceURI)for(y=a.length-1;y>=0;y--){k=a[y];if(k.namespace===e.namespaceURI){k.prefix&&(l=k.prefix+":"+c);break}}}t.push("<",l);for(var C=0;C<s;C++){var x=o.item(C);"xmlns"==x.prefix?a.push({prefix:x.localName,namespace:x.value}):"xmlns"==x.nodeName&&a.push({prefix:"",namespace:x.value})}for(C=0;C<s;C++){x=o.item(C);if(ce(x,n,a)){var E=x.prefix||"",A=x.namespaceURI;le(t,E?"xmlns:"+E:"xmlns",A),a.push({prefix:E,namespace:A})}de(x,t,n,i,a)}if(c===l&&ce(e,n,a)){E=e.prefix||"",A=e.namespaceURI;le(t,E?"xmlns:"+E:"xmlns",A),a.push({prefix:E,namespace:A})}if(u||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(c)){if(t.push(">"),n&&/^script$/i.test(c))while(u)u.data?t.push(u.data):de(u,t,n,i,a.slice()),u=u.nextSibling;else while(u)de(u,t,n,i,a.slice()),u=u.nextSibling;t.push("</",l,">")}else t.push("/>");return;case T:case S:u=e.firstChild;while(u)de(u,t,n,i,a.slice()),u=u.nextSibling;return;case p:return le(t,e.name,e.value);case m:return t.push(e.data.replace(/[<&]/g,F).replace(/]]>/g,"]]&gt;"));case g:return t.push("<![CDATA[",e.data,"]]>");case _:return t.push("\x3c!--",e.data,"--\x3e");case w:var O=e.publicId,j=e.systemId;if(t.push("<!DOCTYPE ",e.name),O)t.push(" PUBLIC ",O),j&&"."!=j&&t.push(" ",j),t.push(">");else if(j&&"."!=j)t.push(" SYSTEM ",j,">");else{var I=e.internalSubset;I&&t.push(" [",I,"]"),t.push(">")}return;case b:return t.push("<?",e.target," ",e.data,"?>");case v:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function he(e,t,n){var i;switch(t.nodeType){case f:i=t.cloneNode(!1),i.ownerDocument=e;case S:break;case p:n=!0;break}if(i||(i=t.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,n){var r=t.firstChild;while(r)i.appendChild(he(e,r,n)),r=r.nextSibling}return i}function fe(e,t,n){var i=new t.constructor;for(var r in t){var a=t[r];"object"!=typeof a&&a!=i[r]&&(i[r]=a)}switch(t.childNodes&&(i.childNodes=new I),i.ownerDocument=e,i.nodeType){case f:var o=t.attributes,s=i.attributes=new M,u=o.length;s._ownerElement=i;for(var c=0;c<u;c++)i.setAttributeNode(fe(e,o.item(c),!0));break;case p:n=!0}if(n){var l=t.firstChild;while(l)i.appendChild(fe(e,l,n)),l=l.nextSibling}return i}function pe(e,t,n){e[t]=n}j.prototype=Error.prototype,l(C,j),I.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],i=0;i<this.length;i++)de(this[i],n,e,t);return n.join("")}},P.prototype.item=function(e){return L(this),this[e]},d(P,I),M.prototype={length:0,item:I.prototype.item,getNamedItem:function(e){var t=this.length;while(t--){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new j(O);var n=this.getNamedItem(e.nodeName);return R(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new j(O);return t=this.getNamedItemNS(e.namespaceURI,e.localName),R(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return N(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return N(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){var n=this.length;while(n--){var i=this[n];if(i.localName==t&&i.namespaceURI==e)return i}return null}},B.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var i=new H;if(i.implementation=this,i.childNodes=new I,i.doctype=n||null,n&&i.appendChild(n),t){var r=i.createElementNS(e,t);i.appendChild(r)}return i},createDocumentType:function(e,t,n){var i=new te;return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=n||"",i}},U.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return G(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return W(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return fe(this.ownerDocument||this,this,e)},normalize:function(){var e=this.firstChild;while(e){var t=e.nextSibling;t&&t.nodeType==m&&e.nodeType==m?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){var t=this;while(t){var n=t._nsMap;if(n)for(var i in n)if(n[i]==e)return i;t=t.nodeType==p?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){var t=this;while(t){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==p?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return null==t}},l(h,U),l(h,U.prototype),H.prototype={nodeName:"#document",nodeType:T,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==S){var n=e.firstChild;while(n){var i=n.nextSibling;this.insertBefore(n,t),n=i}return e}return null==this.documentElement&&e.nodeType==f&&(this.documentElement=e),G(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),W(this,e)},importNode:function(e,t){return he(this,e,t)},getElementById:function(e){var t=null;return $(this.documentElement,(function(n){if(n.nodeType==f&&n.getAttribute("id")==e)return t=n,!0})),t},getElementsByClassName:function(e){var t=u(e);return new P(this,(function(n){var i=[];return t.length>0&&$(n.documentElement,(function(r){if(r!==n&&r.nodeType===f){var a=r.getAttribute("class");if(a){var o=e===a;if(!o){var s=u(a);o=t.every(c(s))}o&&i.push(r)}}})),i}))},createElement:function(e){var t=new X;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new I;var n=t.attributes=new M;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new ae;return e.ownerDocument=this,e.childNodes=new I,e},createTextNode:function(e){var t=new J;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new Z;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new ee;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new oe;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new K;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new re;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new X,i=t.split(":"),r=n.attributes=new M;return n.childNodes=new I,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,r._ownerElement=n,n},createAttributeNS:function(e,t){var n=new K,i=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,n}},d(H,U),X.prototype={nodeType:f,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===S?this.insertBefore(e,null):Y(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var i=this.ownerDocument.createAttributeNS(e,t);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new P(this,(function(t){var n=[];return $(t,(function(i){i===t||i.nodeType!=f||"*"!==e&&i.tagName!=e||n.push(i)})),n}))},getElementsByTagNameNS:function(e,t){return new P(this,(function(n){var i=[];return $(n,(function(r){r===n||r.nodeType!==f||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||i.push(r)})),i}))}},H.prototype.getElementsByTagName=X.prototype.getElementsByTagName,H.prototype.getElementsByTagNameNS=X.prototype.getElementsByTagNameNS,d(X,U),K.prototype.nodeType=p,d(K,U),Q.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(x[E])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){var i=this.data.substring(0,e),r=this.data.substring(e+t);n=i+n+r,this.nodeValue=this.data=n,this.length=n.length}},d(Q,U),J.prototype={nodeName:"#text",nodeType:m,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}},d(J,Q),Z.prototype={nodeName:"#comment",nodeType:_},d(Z,Q),ee.prototype={nodeName:"#cdata-section",nodeType:g},d(ee,Q),te.prototype.nodeType=w,d(te,U),ne.prototype.nodeType=k,d(ne,U),ie.prototype.nodeType=y,d(ie,U),re.prototype.nodeType=v,d(re,U),ae.prototype.nodeName="#document-fragment",ae.prototype.nodeType=S,d(ae,U),oe.prototype.nodeType=b,d(oe,U),se.prototype.serializeToString=function(e,t,n){return ue.call(e,t,n)},U.prototype.toString=ue;try{if(Object.defineProperty){var me=function e(t){switch(t.nodeType){case f:case S:var n=[];t=t.firstChild;while(t)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}};Object.defineProperty(P.prototype,"length",{get:function(){return L(this),this.$$length}}),Object.defineProperty(U.prototype,"textContent",{get:function(){return me(this)},set:function(e){switch(this.nodeType){case f:case S:while(this.firstChild)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),pe=function(e,t,n){e["$$"+t]=n}}}catch(ge){}t.DocumentType=te,t.DOMException=j,t.DOMImplementation=B,t.Element=X,t.Node=U,t.NodeList=I,t.XMLSerializer=se},2532:function(e,t,n){"use strict";var i=n("23e7"),r=n("5a34"),a=n("1d80"),o=n("ab13");i({target:"String",proto:!0,forced:!o("includes")},{includes:function(e){return!!~String(a(this)).indexOf(r(e),arguments.length>1?arguments[1]:void 0)}})},"25a1":function(e,t,n){"use strict";var i=n("ebb5"),r=n("d58f").right,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("reduceRight",(function(e){return r(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},"25f0":function(e,t,n){"use strict";var i=n("6eeb"),r=n("825a"),a=n("d039"),o=n("ad6d"),s="toString",u=RegExp.prototype,c=u[s],l=a((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),d=c.name!=s;(l||d)&&i(RegExp.prototype,s,(function(){var e=r(this),t=String(e.source),n=e.flags,i=String(void 0===n&&e instanceof RegExp&&!("flags"in u)?o.call(e):n);return"/"+t+"/"+i}),{unsafe:!0})},2626:function(e,t,n){"use strict";var i=n("d066"),r=n("9bf2"),a=n("b622"),o=n("83ab"),s=a("species");e.exports=function(e){var t=i(e),n=r.f;o&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},"26e9":function(e,t,n){"use strict";var i=n("23e7"),r=n("e8b5"),a=[].reverse,o=[1,2];i({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),a.call(this)}})},"286d":function(e,t,n){var i=n("252a");t.DOMImplementation=i.DOMImplementation,t.XMLSerializer=i.XMLSerializer,t.DOMParser=n("0834").DOMParser},2954:function(e,t,n){"use strict";var i=n("ebb5"),r=n("4840"),a=n("d039"),o=i.aTypedArray,s=i.aTypedArrayConstructor,u=i.exportTypedArrayMethod,c=[].slice,l=a((function(){new Int8Array(1).slice()}));u("slice",(function(e,t){var n=c.call(o(this),e,t),i=r(this,this.constructor),a=0,u=n.length,l=new(s(i))(u);while(u>a)l[a]=n[a++];return l}),l)},"2b3d":function(e,t,n){"use strict";n("3ca3");var i,r=n("23e7"),a=n("83ab"),o=n("0d3b"),s=n("da84"),u=n("37e8"),c=n("6eeb"),l=n("19aa"),d=n("5135"),h=n("60da"),f=n("4df4"),p=n("6547").codeAt,m=n("5fb2"),g=n("d44e"),v=n("9861"),y=n("69f3"),b=s.URL,_=v.URLSearchParams,T=v.getState,w=y.set,S=y.getterFor("URL"),k=Math.floor,C=Math.pow,x="Invalid authority",E="Invalid scheme",A="Invalid host",O="Invalid port",j=/[A-Za-z]/,I=/[\d+-.A-Za-z]/,P=/\d/,L=/^(0x|0X)/,M=/^[0-7]+$/,D=/^\d+$/,R=/^[\dA-Fa-f]+$/,N=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,B=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,U=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,F=/[\u0009\u000A\u000D]/g,$=function(e,t){var n,i,r;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return A;if(n=V(t.slice(1,-1)),!n)return A;e.host=n}else if(J(e)){if(t=m(t),N.test(t))return A;if(n=H(t),null===n)return A;e.host=n}else{if(B.test(t))return A;for(n="",i=f(t),r=0;r<i.length;r++)n+=K(i[r],W);e.host=n}},H=function(e){var t,n,i,r,a,o,s,u=e.split(".");if(u.length&&""==u[u.length-1]&&u.pop(),t=u.length,t>4)return e;for(n=[],i=0;i<t;i++){if(r=u[i],""==r)return e;if(a=10,r.length>1&&"0"==r.charAt(0)&&(a=L.test(r)?16:8,r=r.slice(8==a?1:2)),""===r)o=0;else{if(!(10==a?D:8==a?M:R).test(r))return e;o=parseInt(r,a)}n.push(o)}for(i=0;i<t;i++)if(o=n[i],i==t-1){if(o>=C(256,5-t))return null}else if(o>255)return null;for(s=n.pop(),i=0;i<n.length;i++)s+=n[i]*C(256,3-i);return s},V=function(e){var t,n,i,r,a,o,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,d=0,h=function(){return e.charAt(d)};if(":"==h()){if(":"!=e.charAt(1))return;d+=2,c++,l=c}while(h()){if(8==c)return;if(":"!=h()){t=n=0;while(n<4&&R.test(h()))t=16*t+parseInt(h(),16),d++,n++;if("."==h()){if(0==n)return;if(d-=n,c>6)return;i=0;while(h()){if(r=null,i>0){if(!("."==h()&&i<4))return;d++}if(!P.test(h()))return;while(P.test(h())){if(a=parseInt(h(),10),null===r)r=a;else{if(0==r)return;r=10*r+a}if(r>255)return;d++}u[c]=256*u[c]+r,i++,2!=i&&4!=i||c++}if(4!=i)return;break}if(":"==h()){if(d++,!h())return}else if(h())return;u[c++]=t}else{if(null!==l)return;d++,c++,l=c}}if(null!==l){o=c-l,c=7;while(0!=c&&o>0)s=u[c],u[c--]=u[l+o-1],u[l+--o]=s}else if(8!=c)return;return u},q=function(e){for(var t=null,n=1,i=null,r=0,a=0;a<8;a++)0!==e[a]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=a),++r);return r>n&&(t=i,n=r),t},z=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=k(e/256);return t.join(".")}if("object"==typeof e){for(t="",i=q(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},W={},G=h({},W,{" ":1,'"':1,"<":1,">":1,"`":1}),Y=h({},G,{"#":1,"?":1,"{":1,"}":1}),X=h({},Y,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),K=function(e,t){var n=p(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},J=function(e){return d(Q,e.scheme)},Z=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var n;return 2==e.length&&j.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ne=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ie=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},re=function(e){return"."===e||"%2e"===e.toLowerCase()},ae=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},oe={},se={},ue={},ce={},le={},de={},he={},fe={},pe={},me={},ge={},ve={},ye={},be={},_e={},Te={},we={},Se={},ke={},Ce={},xe={},Ee=function(e,t,n,r){var a,o,s,u,c=n||oe,l=0,h="",p=!1,m=!1,g=!1;n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(U,"")),t=t.replace(F,""),a=f(t);while(l<=a.length){switch(o=a[l],c){case oe:if(!o||!j.test(o)){if(n)return E;c=ue;continue}h+=o.toLowerCase(),c=se;break;case se:if(o&&(I.test(o)||"+"==o||"-"==o||"."==o))h+=o.toLowerCase();else{if(":"!=o){if(n)return E;h="",c=ue,l=0;continue}if(n&&(J(e)!=d(Q,h)||"file"==h&&(Z(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,n)return void(J(e)&&Q[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?c=be:J(e)&&r&&r.scheme==e.scheme?c=ce:J(e)?c=fe:"/"==a[l+1]?(c=le,l++):(e.cannotBeABaseURL=!0,e.path.push(""),c=ke)}break;case ue:if(!r||r.cannotBeABaseURL&&"#"!=o)return E;if(r.cannotBeABaseURL&&"#"==o){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment="",e.cannotBeABaseURL=!0,c=xe;break}c="file"==r.scheme?be:de;continue;case ce:if("/"!=o||"/"!=a[l+1]){c=de;continue}c=pe,l++;break;case le:if("/"==o){c=me;break}c=Se;continue;case de:if(e.scheme=r.scheme,o==i)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if("/"==o||"\\"==o&&J(e))c=he;else if("?"==o)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query="",c=Ce;else{if("#"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),c=Se;continue}e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment="",c=xe}break;case he:if(!J(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,c=Se;continue}c=me}else c=pe;break;case fe:if(c=pe,"/"!=o||"/"!=h.charAt(l+1))continue;l++;break;case pe:if("/"!=o&&"\\"!=o){c=me;continue}break;case me:if("@"==o){p&&(h="%40"+h),p=!0,s=f(h);for(var v=0;v<s.length;v++){var y=s[v];if(":"!=y||g){var b=K(y,X);g?e.password+=b:e.username+=b}else g=!0}h=""}else if(o==i||"/"==o||"?"==o||"#"==o||"\\"==o&&J(e)){if(p&&""==h)return x;l-=f(h).length+1,h="",c=ge}else h+=o;break;case ge:case ve:if(n&&"file"==e.scheme){c=Te;continue}if(":"!=o||m){if(o==i||"/"==o||"?"==o||"#"==o||"\\"==o&&J(e)){if(J(e)&&""==h)return A;if(n&&""==h&&(Z(e)||null!==e.port))return;if(u=$(e,h),u)return u;if(h="",c=we,n)return;continue}"["==o?m=!0:"]"==o&&(m=!1),h+=o}else{if(""==h)return A;if(u=$(e,h),u)return u;if(h="",c=ye,n==ve)return}break;case ye:if(!P.test(o)){if(o==i||"/"==o||"?"==o||"#"==o||"\\"==o&&J(e)||n){if(""!=h){var _=parseInt(h,10);if(_>65535)return O;e.port=J(e)&&_===Q[e.scheme]?null:_,h=""}if(n)return;c=we;continue}return O}h+=o;break;case be:if(e.scheme="file","/"==o||"\\"==o)c=_e;else{if(!r||"file"!=r.scheme){c=Se;continue}if(o==i)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if("?"==o)e.host=r.host,e.path=r.path.slice(),e.query="",c=Ce;else{if("#"!=o){ne(a.slice(l).join(""))||(e.host=r.host,e.path=r.path.slice(),ie(e)),c=Se;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",c=xe}}break;case _e:if("/"==o||"\\"==o){c=Te;break}r&&"file"==r.scheme&&!ne(a.slice(l).join(""))&&(te(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),c=Se;continue;case Te:if(o==i||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&te(h))c=Se;else if(""==h){if(e.host="",n)return;c=we}else{if(u=$(e,h),u)return u;if("localhost"==e.host&&(e.host=""),n)return;h="",c=we}continue}h+=o;break;case we:if(J(e)){if(c=Se,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(o!=i&&(c=Se,"/"!=o))continue}else e.fragment="",c=xe;else e.query="",c=Ce;break;case Se:if(o==i||"/"==o||"\\"==o&&J(e)||!n&&("?"==o||"#"==o)){if(ae(h)?(ie(e),"/"==o||"\\"==o&&J(e)||e.path.push("")):re(h)?"/"==o||"\\"==o&&J(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(o==i||"?"==o||"#"==o))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==o?(e.query="",c=Ce):"#"==o&&(e.fragment="",c=xe)}else h+=K(o,Y);break;case ke:"?"==o?(e.query="",c=Ce):"#"==o?(e.fragment="",c=xe):o!=i&&(e.path[0]+=K(o,W));break;case Ce:n||"#"!=o?o!=i&&("'"==o&&J(e)?e.query+="%27":e.query+="#"==o?"%23":K(o,W)):(e.fragment="",c=xe);break;case xe:o!=i&&(e.fragment+=K(o,G));break}l++}},Ae=function(e){var t,n,i=l(this,Ae,"URL"),r=arguments.length>1?arguments[1]:void 0,o=String(e),s=w(i,{type:"URL"});if(void 0!==r)if(r instanceof Ae)t=S(r);else if(n=Ee(t={},String(r)),n)throw TypeError(n);if(n=Ee(s,o,null,t),n)throw TypeError(n);var u=s.searchParams=new _,c=T(u);c.updateSearchParams(s.query),c.updateURL=function(){s.query=String(u)||null},a||(i.href=je.call(i),i.origin=Ie.call(i),i.protocol=Pe.call(i),i.username=Le.call(i),i.password=Me.call(i),i.host=De.call(i),i.hostname=Re.call(i),i.port=Ne.call(i),i.pathname=Be.call(i),i.search=Ue.call(i),i.searchParams=Fe.call(i),i.hash=$e.call(i))},Oe=Ae.prototype,je=function(){var e=S(this),t=e.scheme,n=e.username,i=e.password,r=e.host,a=e.port,o=e.path,s=e.query,u=e.fragment,c=t+":";return null!==r?(c+="//",Z(e)&&(c+=n+(i?":"+i:"")+"@"),c+=z(r),null!==a&&(c+=":"+a)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},Ie=function(){var e=S(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(i){return"null"}return"file"!=t&&J(e)?t+"://"+z(e.host)+(null!==n?":"+n:""):"null"},Pe=function(){return S(this).scheme+":"},Le=function(){return S(this).username},Me=function(){return S(this).password},De=function(){var e=S(this),t=e.host,n=e.port;return null===t?"":null===n?z(t):z(t)+":"+n},Re=function(){var e=S(this).host;return null===e?"":z(e)},Ne=function(){var e=S(this).port;return null===e?"":String(e)},Be=function(){var e=S(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ue=function(){var e=S(this).query;return e?"?"+e:""},Fe=function(){return S(this).searchParams},$e=function(){var e=S(this).fragment;return e?"#"+e:""},He=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(a&&u(Oe,{href:He(je,(function(e){var t=S(this),n=String(e),i=Ee(t,n);if(i)throw TypeError(i);T(t.searchParams).updateSearchParams(t.query)})),origin:He(Ie),protocol:He(Pe,(function(e){var t=S(this);Ee(t,String(e)+":",oe)})),username:He(Le,(function(e){var t=S(this),n=f(String(e));if(!ee(t)){t.username="";for(var i=0;i<n.length;i++)t.username+=K(n[i],X)}})),password:He(Me,(function(e){var t=S(this),n=f(String(e));if(!ee(t)){t.password="";for(var i=0;i<n.length;i++)t.password+=K(n[i],X)}})),host:He(De,(function(e){var t=S(this);t.cannotBeABaseURL||Ee(t,String(e),ge)})),hostname:He(Re,(function(e){var t=S(this);t.cannotBeABaseURL||Ee(t,String(e),ve)})),port:He(Ne,(function(e){var t=S(this);ee(t)||(e=String(e),""==e?t.port=null:Ee(t,e,ye))})),pathname:He(Be,(function(e){var t=S(this);t.cannotBeABaseURL||(t.path=[],Ee(t,e+"",we))})),search:He(Ue,(function(e){var t=S(this);e=String(e),""==e?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Ee(t,e,Ce)),T(t.searchParams).updateSearchParams(t.query)})),searchParams:He(Fe),hash:He($e,(function(e){var t=S(this);e=String(e),""!=e?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Ee(t,e,xe)):t.fragment=null}))}),c(Oe,"toJSON",(function(){return je.call(this)}),{enumerable:!0}),c(Oe,"toString",(function(){return je.call(this)}),{enumerable:!0}),b){var Ve=b.createObjectURL,qe=b.revokeObjectURL;Ve&&c(Ae,"createObjectURL",(function(e){return Ve.apply(b,arguments)})),qe&&c(Ae,"revokeObjectURL",(function(e){return qe.apply(b,arguments)}))}g(Ae,"URL"),r({global:!0,forced:!o,sham:!a},{URL:Ae})},"2ca0":function(e,t,n){"use strict";var i=n("23e7"),r=n("06cf").f,a=n("50c4"),o=n("5a34"),s=n("1d80"),u=n("ab13"),c=n("c430"),l="".startsWith,d=Math.min,h=u("startsWith"),f=!c&&!h&&!!function(){var e=r(String.prototype,"startsWith");return e&&!e.writable}();i({target:"String",proto:!0,forced:!f&&!h},{startsWith:function(e){var t=String(s(this));o(e);var n=a(d(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return l?l.call(t,i,n):t.slice(n,n+i.length)===i}})},"2cf4":function(e,t,n){var i,r,a,o=n("da84"),s=n("d039"),u=n("c6b6"),c=n("0366"),l=n("1be4"),d=n("cc12"),h=n("1cdc"),f=o.location,p=o.setImmediate,m=o.clearImmediate,g=o.process,v=o.MessageChannel,y=o.Dispatch,b=0,_={},T="onreadystatechange",w=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},S=function(e){return function(){w(e)}},k=function(e){w(e.data)},C=function(e){o.postMessage(e+"",f.protocol+"//"+f.host)};p&&m||(p=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return _[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},i(b),b},m=function(e){delete _[e]},"process"==u(g)?i=function(e){g.nextTick(S(e))}:y&&y.now?i=function(e){y.now(S(e))}:v&&!h?(r=new v,a=r.port2,r.port1.onmessage=k,i=c(a.postMessage,a,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||s(C)||"file:"===f.protocol?i=T in d("script")?function(e){l.appendChild(d("script"))[T]=function(){l.removeChild(this),w(e)}}:function(e){setTimeout(S(e),0)}:(i=C,o.addEventListener("message",k,!1))),e.exports={set:p,clear:m}},"2d00":function(e,t,n){var i,r,a=n("da84"),o=n("342f"),s=a.process,u=s&&s.versions,c=u&&u.v8;c?(i=c.split("."),r=i[0]+i[1]):o&&(i=o.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/),i&&(r=i[1]))),e.exports=r&&+r},3280:function(e,t,n){"use strict";var i=n("ebb5"),r=n("e58c"),a=i.aTypedArray,o=i.exportTypedArrayMethod;o("lastIndexOf",(function(e){return r.apply(a(this),arguments)}))},3410:function(e,t,n){var i=n("23e7"),r=n("d039"),a=n("7b0b"),o=n("e163"),s=n("e177"),u=r((function(){o(1)}));i({target:"Object",stat:!0,forced:u,sham:!s},{getPrototypeOf:function(e){return o(a(e))}})},"342f":function(e,t,n){var i=n("d066");e.exports=i("navigator","userAgent")||""},"355b":function(e,t,n){"use strict";n("99af"),n("4de4"),n("4160"),n("b64b"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.isLikelyFmp4MediaSegment=t.detectContainerForBytes=t.isLikely=void 0;var i=n("0f2d"),r=n("3667"),a=n("7c6e"),o=n("680e"),s=n("c52f"),u={webm:(0,i.toUint8)([119,101,98,109]),matroska:(0,i.toUint8)([109,97,116,114,111,115,107,97]),flac:(0,i.toUint8)([102,76,97,67]),ogg:(0,i.toUint8)([79,103,103,83]),ac3:(0,i.toUint8)([11,119]),riff:(0,i.toUint8)([82,73,70,70]),avi:(0,i.toUint8)([65,86,73]),wav:(0,i.toUint8)([87,65,86,69]),"3gp":(0,i.toUint8)([102,116,121,112,51,103]),mp4:(0,i.toUint8)([102,116,121,112]),fmp4:(0,i.toUint8)([115,116,121,112]),mov:(0,i.toUint8)([102,116,121,112,113,116]),moov:(0,i.toUint8)([109,111,111,118]),moof:(0,i.toUint8)([109,111,111,102])},c={aac:function(e){var t=(0,o.getId3Offset)(e);return(0,i.bytesMatch)(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=(0,o.getId3Offset)(e);return(0,i.bytesMatch)(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=(0,a.findEbml)(e,[a.EBML_TAGS.EBML,a.EBML_TAGS.DocType])[0];return(0,i.bytesMatch)(t,u.webm)},mkv:function(e){var t=(0,a.findEbml)(e,[a.EBML_TAGS.EBML,a.EBML_TAGS.DocType])[0];return(0,i.bytesMatch)(t,u.matroska)},mp4:function(e){return!c["3gp"](e)&&!c.mov(e)&&(!(!(0,i.bytesMatch)(e,u.mp4,{offset:4})&&!(0,i.bytesMatch)(e,u.fmp4,{offset:4}))||(!(!(0,i.bytesMatch)(e,u.moof,{offset:4})&&!(0,i.bytesMatch)(e,u.moov,{offset:4}))||void 0))},mov:function(e){return(0,i.bytesMatch)(e,u.mov,{offset:4})},"3gp":function(e){return(0,i.bytesMatch)(e,u["3gp"],{offset:4})},ac3:function(e){var t=(0,o.getId3Offset)(e);return(0,i.bytesMatch)(e,u.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];var t=0;while(t+188<e.length&&t<188){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=(0,o.getId3Offset)(e);return(0,i.bytesMatch)(e,u.flac,{offset:t})},ogg:function(e){return(0,i.bytesMatch)(e,u.ogg)},avi:function(e){return(0,i.bytesMatch)(e,u.riff)&&(0,i.bytesMatch)(e,u.avi,{offset:8})},wav:function(e){return(0,i.bytesMatch)(e,u.riff)&&(0,i.bytesMatch)(e,u.wav,{offset:8})},h264:function(e){return(0,s.findH264Nal)(e,7,3).length},h265:function(e){return(0,s.findH265Nal)(e,[32,33],3).length}},l=Object.keys(c).filter((function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e})).concat(["ts","h264","h265"]);l.forEach((function(e){var t=c[e];c[e]=function(e){return t((0,i.toUint8)(e))}}));var d=c;t.isLikely=d;var h=function(e){e=(0,i.toUint8)(e);for(var t=0;t<l.length;t++){var n=l[t];if(d[n](e))return n}return""};t.detectContainerForBytes=h;var f=function(e){return(0,r.findBox)(e,["moof"]).length>0};t.isLikelyFmp4MediaSegment=f},3597:function(e,t,n){"use strict";function i(e,t){return void 0===t&&(t=Object),t&&"function"===typeof t.freeze?t.freeze(e):e}var r=i({HTML:"text/html",isHTML:function(e){return e===r.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),a=i({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===a.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.freeze=i,t.MIME_TYPE=r,t.NAMESPACE=a},"35a1":function(e,t,n){var i=n("f5df"),r=n("3f8c"),a=n("b622"),o=a("iterator");e.exports=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||r[i(e)]}},3667:function(e,t,n){"use strict";n("4de4"),n("4160"),n("c975"),n("d81d"),n("fb6a"),n("ace4"),n("d3b7"),n("5377"),n("25f0"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.parseMediaInfo=t.parseTracks=t.addSampleDescription=t.buildFrameTable=t.findNamedBox=t.findBox=t.parseDescriptors=void 0;var i,r=n("0f2d"),a=n("c3f7"),o=n("439d"),s=function(e){return"string"===typeof e?(0,r.stringToBytes)(e):e},u=function(e){return Array.isArray(e)?e.map((function(e){return s(e)})):[s(e)]},c=function(e){e=(0,r.toUint8)(e);var t=[],n=0;while(e.length>n){var a=e[n],o=0,s=0;s++;var u=e[s];s++;while(128&u)o=(127&u)<<7,u=e[s],s++;o+=127&u;for(var c=0;c<i.length;c++){var l=i[c],d=l.id,h=l.parser;if(a===d){t.push(h(e.subarray(s,s+o)));break}}n+=o+s}return t};t.parseDescriptors=c,i=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&t.flags&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),64&t.flags){var n=e[t.size];t.url=(0,r.bytesToString)(e.subarray(t.size+1,t.size+1+n)),t.size+=n}return 32&t.flags&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=c(e.subarray(t.size))||[],t}},{id:4,parser:function(e){var t={tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:c(e.subarray(13))};return t}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var l=function e(t,n,i){void 0===i&&(i=!1),n=u(n),t=(0,r.toUint8)(t);var a=[];if(!n.length)return a;var o=0;while(o<t.length){var s=(t[o]<<24|t[o+1]<<16|t[o+2]<<8|t[o+3])>>>0,c=t.subarray(o+4,o+8);if(0===s)break;var l=o+s;if(l>t.length){if(i)break;l=t.length}var d=t.subarray(o+8,l);(0,r.bytesMatch)(c,n[0])&&(1===n.length?a.push(d):a.push.apply(a,e(d,n.slice(1),i))),o=l}return a};t.findBox=l;var d=function(e,t){if(t=s(t),!t.length)return e.subarray(e.length);var n=0;while(n<e.length){if((0,r.bytesMatch)(e.subarray(n,n+t.length),t)){var i=(e[n-4]<<24|e[n-3]<<16|e[n-2]<<8|e[n-1])>>>0,a=i>1?n+i:e.byteLength;return e.subarray(n+4,a)}n++}return e.subarray(e.length)};t.findNamedBox=d;var h=function(e,t,n){void 0===t&&(t=4),void 0===n&&(n=function(e){return(0,r.bytesToNumber)(e)});var i=[];if(!e||!e.length)return i;for(var a=(0,r.bytesToNumber)(e.subarray(4,8)),o=8;a;o+=t,a--)i.push(n(e.subarray(o,o+t)));return i},f=function(e,t){for(var n=h(l(e,["stss"])[0]),i=h(l(e,["stco"])[0]),a=h(l(e,["stts"])[0],8,(function(e){return{sampleCount:(0,r.bytesToNumber)(e.subarray(0,4)),sampleDelta:(0,r.bytesToNumber)(e.subarray(4,8))}})),o=h(l(e,["stsc"])[0],12,(function(e){return{firstChunk:(0,r.bytesToNumber)(e.subarray(0,4)),samplesPerChunk:(0,r.bytesToNumber)(e.subarray(4,8)),sampleDescriptionIndex:(0,r.bytesToNumber)(e.subarray(8,12))}})),s=l(e,["stsz"])[0],u=h(s&&s.length&&s.subarray(4)||null),c=[],d=0;d<i.length;d++){for(var f=void 0,p=0;p<o.length;p++){var m=o[p],g=d+1>=m.firstChunk&&(p+1>=o.length||d+1<o[p+1].firstChunk);if(g){f=m.samplesPerChunk;break}}for(var v=i[d],y=0;y<f;y++){var b=u[c.length],_=!n.length;n.length&&-1!==n.indexOf(c.length+1)&&(_=!0);for(var T={keyframe:_,start:v,end:v+b},w=0;w<a.length;w++){var S=a[w],k=S.sampleCount,C=S.sampleDelta;if(c.length<=k){var x=c.length?c[c.length-1].timestamp:0;T.timestamp=x+C/t*1e3,T.duration=C;break}}c.push(T),v+=b}}return c};t.buildFrameTable=f;var p=function(e,t){var n=(0,r.bytesToString)(t.subarray(0,4));if("video"===e.type?(e.info=e.info||{},e.info.width=t[28]<<8|t[29],e.info.height=t[30]<<8|t[31]):"audio"===e.type&&(e.info=e.info||{},e.info.channels=t[20]<<8|t[21],e.info.bitDepth=t[22]<<8|t[23],e.info.sampleRate=t[28]<<8|t[29]),"avc1"===n){var i=d(t,"avcC");n+="."+(0,a.getAvcCodec)(i),e.info.avcC=i}else if("hvc1"===n||"hev1"===n)n+="."+(0,a.getHvcCodec)(d(t,"hvcC"));else if("mp4a"===n||"mp4v"===n){var s=d(t,"esds"),u=c(s.subarray(4))[0],l=u&&u.descriptors.filter((function(e){var t=e.tag;return 4===t}))[0];l?(n+="."+(0,r.toHexString)(l.oti),64===l.oti?n+="."+(l.descriptors[0].bytes[0]>>3).toString():32===l.oti?n+="."+l.descriptors[0].bytes[4].toString():221===l.oti&&(n="vorbis")):"audio"===e.type?n+=".40.2":n+=".20.9"}else if("av01"===n)n+="."+(0,a.getAv1Codec)(d(t,"av1C"));else if("vp09"===n){var h=d(t,"vpcC"),f=h[0],p=h[1],m=h[2]>>4,g=(15&h[2])>>1,v=(15&h[2])>>3,y=h[3],b=h[4],_=h[5];n+="."+(0,r.padStart)(f,2,"0"),n+="."+(0,r.padStart)(p,2,"0"),n+="."+(0,r.padStart)(m,2,"0"),n+="."+(0,r.padStart)(g,2,"0"),n+="."+(0,r.padStart)(y,2,"0"),n+="."+(0,r.padStart)(b,2,"0"),n+="."+(0,r.padStart)(_,2,"0"),n+="."+(0,r.padStart)(v,2,"0")}else if("theo"===n)n="theora";else if("spex"===n)n="speex";else if(".mp3"===n)n="mp4a.40.34";else if("msVo"===n)n="vorbis";else if("Opus"===n){n="opus";var T=d(t,"dOps");e.info.opus=(0,o.parseOpusHead)(T),e.info.codecDelay=65e5}else n=n.toLowerCase();e.codec=n};t.addSampleDescription=p;var m=function(e,t){void 0===t&&(t=!0),e=(0,r.toUint8)(e);var n=l(e,["moov","trak"],!0),i=[];return n.forEach((function(e){var n={bytes:e},a=l(e,["mdia"])[0],o=l(a,["hdlr"])[0],s=(0,r.bytesToString)(o.subarray(8,12));n.type="soun"===s?"audio":"vide"===s?"video":s;var u=l(e,["tkhd"])[0];if(u){var c=new DataView(u.buffer,u.byteOffset,u.byteLength),d=c.getUint8(0);n.number=0===d?c.getUint32(12):c.getUint32(20)}var h=l(a,["mdhd"])[0];if(h){var m=h[0],g=0===m?12:20;n.timescale=(h[g]<<24|h[g+1]<<16|h[g+2]<<8|h[g+3])>>>0}var v=l(a,["minf","stbl"])[0],y=l(v,["stsd"])[0],b=(0,r.bytesToNumber)(y.subarray(4,8)),_=8;while(b--){var T=(0,r.bytesToNumber)(y.subarray(_,_+4)),w=y.subarray(_+4,_+4+T);p(n,w),_+=4+T}t&&(n.frameTable=f(v,n.timescale)),i.push(n)})),i};t.parseTracks=m;var g=function(e){var t=l(e,["moov","mvhd"],!0)[0];if(t&&t.length){var n={};return 1===t[0]?(n.timestampScale=(0,r.bytesToNumber)(t.subarray(20,24)),n.duration=(0,r.bytesToNumber)(t.subarray(24,32))):(n.timestampScale=(0,r.bytesToNumber)(t.subarray(12,16)),n.duration=(0,r.bytesToNumber)(t.subarray(16,20))),n.bytes=t,n}};t.parseMediaInfo=g},"37dc":function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("99af"),n("7db0"),n("4160"),n("c975"),n("a434"),n("b64b"),n("d3b7"),n("e25e"),n("ac1f"),n("5319"),n("1276"),n("498a"),n("159b"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.compileI18nJsonStr=M,t.hasI18nJson=P,t.initVueI18n=O,t.isI18nStr=D,t.normalizeLocale=C,t.parseI18nJson=L,t.resolveLocale=F,t.isString=t.LOCALE_ZH_HANT=t.LOCALE_ZH_HANS=t.LOCALE_FR=t.LOCALE_ES=t.LOCALE_EN=t.I18n=t.Formatter=void 0;var r=i(n("3835")),a=i(n("d4ec")),o=i(n("bee2")),s=Array.isArray,u=function(e){return null!==e&&"object"===typeof e},c=["{","}"],l=function(){function e(){(0,a.default)(this,e),this._caches=Object.create(null)}return(0,o.default)(e,[{key:"interpolate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c;if(!t)return[e];var i=this._caches[e];return i||(i=f(e,n),this._caches[e]=i),p(i,t)}}]),e}();t.Formatter=l;var d=/^(?:\d)+/,h=/^(?:\w)+/;function f(e,t){var n=(0,r.default)(t,2),i=n[0],a=n[1],o=[],s=0,u="";while(s<e.length){var c=e[s++];if(c===i){u&&o.push({type:"text",value:u}),u="";var l="";c=e[s++];while(void 0!==c&&c!==a)l+=c,c=e[s++];var f=c===a,p=d.test(l)?"list":f&&h.test(l)?"named":"unknown";o.push({value:l,type:p})}else u+=c}return u&&o.push({type:"text",value:u}),o}function p(e,t){var n=[],i=0,r=s(t)?"list":u(t)?"named":"unknown";if("unknown"===r)return n;while(i<e.length){var a=e[i];switch(a.type){case"text":n.push(a.value);break;case"list":n.push(t[parseInt(a.value,10)]);break;case"named":"named"===r&&n.push(t[a.value]);break;case"unknown":0;break}i++}return n}var m="zh-Hans";t.LOCALE_ZH_HANS=m;var g="zh-Hant";t.LOCALE_ZH_HANT=g;var v="en";t.LOCALE_EN=v;var y="fr";t.LOCALE_FR=y;var b="es";t.LOCALE_ES=b;var _=Object.prototype.hasOwnProperty,T=function(e,t){return _.call(e,t)},w=new l;function S(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}function k(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}function C(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),0===e.indexOf("zh"))return e.indexOf("-hans")>-1?m:e.indexOf("-hant")>-1||S(e,["-tw","-hk","-mo","-cht"])?g:m;var n=k(e,[v,y,b]);return n||void 0}}var x=function(){function e(t){var n=t.locale,i=t.fallbackLocale,r=t.messages,o=t.watcher,s=t.formater;(0,a.default)(this,e),this.locale=v,this.fallbackLocale=v,this.message={},this.messages={},this.watchers=[],i&&(this.fallbackLocale=i),this.formater=s||w,this.messages=r||{},this.setLocale(n||v),o&&this.watchLocale(o)}return(0,o.default)(e,[{key:"setLocale",value:function(e){var t=this,n=this.locale;this.locale=C(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach((function(e){e(t.locale,n)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,n=this.watchers.push(e)-1;return function(){t.watchers.splice(n,1)}}},{key:"add",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.messages[e];i?n?Object.assign(i,t):Object.keys(t).forEach((function(e){T(i,e)||(i[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,n){return this.formater.interpolate(e,t,n).join("")}},{key:"t",value:function(e,t,n){var i=this.message;return"string"===typeof t?(t=C(t,this.messages),t&&(i=this.messages[t])):n=t,T(i,e)?this.formater.interpolate(i[e],n).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}]),e}();function E(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function A(){return"undefined"!==typeof uni&&uni.getLocale?uni.getLocale():"undefined"!==typeof e&&e.getLocale?e.getLocale():v}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if("string"!==typeof e){var r=[t,e];e=r[0],t=r[1]}"string"!==typeof e&&(e=A()),"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||v);var a=new x({locale:e,fallbackLocale:n,messages:t,watcher:i}),o=function(e,t){if("function"!==typeof getApp)o=function(e,t){return a.t(e,t)};else{var n=!1;o=function(e,t){var i=getApp().$vm;return i&&(i.$locale,n||(n=!0,E(i,a))),a.t(e,t)}}return o(e,t)};return{i18n:a,f:function(e,t,n){return a.f(e,t,n)},t:function(e,t){return o(e,t)},add:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return a.add(e,t,n)},watch:function(e){return a.watchLocale(e)},getLocale:function(){return a.getLocale()},setLocale:function(e){return a.setLocale(e)}}}t.I18n=x;var j,I=function(e){return"string"===typeof e};function P(e,t){return j||(j=new l),U(e,(function(e,n){var i=e[n];return I(i)?!!D(i,t)||void 0:P(i,t)}))}function L(e,t,n){return j||(j=new l),U(e,(function(e,i){var r=e[i];I(r)?D(r,n)&&(e[i]=R(r,t,n)):L(r,t,n)})),e}function M(e,t){var n=t.locale,i=t.locales,r=t.delimiters;if(!D(e,r))return e;j||(j=new l);var a=[];Object.keys(i).forEach((function(e){e!==n&&a.push({locale:e,values:i[e]})})),a.unshift({locale:n,values:i[n]});try{return JSON.stringify(B(JSON.parse(e),a,r),null,2)}catch(o){}return e}function D(e,t){return e.indexOf(t[0])>-1}function R(e,t,n){return j.interpolate(e,t,n).join("")}function N(e,t,n,i){var r=e[t];if(I(r)){if(D(r,i)&&(e[t]=R(r,n[0].values,i),n.length>1)){var a=e[t+"Locales"]={};n.forEach((function(e){a[e.locale]=R(r,e.values,i)}))}}else B(r,n,i)}function B(e,t,n){return U(e,(function(e,i){N(e,i,t,n)})),e}function U(e,t){if(s(e)){for(var n=0;n<e.length;n++)if(t(e,n))return!0}else if(u(e))for(var i in e)if(t(e,i))return!0;return!1}function F(e){return function(t){return t?(t=C(t)||t,$(t).find((function(t){return e.indexOf(t)>-1}))):t}}function $(e){var t=[],n=e.split("-");while(n.length)t.push(n.join("-")),n.pop();return t}t.isString=I}).call(this,n("c8ba"))},"37e8":function(e,t,n){var i=n("83ab"),r=n("9bf2"),a=n("825a"),o=n("df75");e.exports=i?Object.defineProperties:function(e,t){a(e);var n,i=o(t),s=i.length,u=0;while(s>u)r.f(e,n=i[u++],t[n]);return e}},3835:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var i=s(n("0d21")),r=s(n("09f0")),a=s(n("06c5")),o=s(n("3d8c"));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return(0,i.default)(e)||(0,r.default)(e,t)||(0,a.default)(e,t)||(0,o.default)()}},"386a":function(e,t,n){n("4160"),n("c975"),n("26e9"),n("fb6a"),n("d3b7"),n("acd8"),n("e25e"),n("ac1f"),n("466d"),n("5319"),n("1276"),n("498a"),n("159b"),n("ddb0");var i=n("79ac"),r=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function a(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function o(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(0|n)+(0|i)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function s(){this.values=r(null)}function u(e,t,n,i){var r=i?e.split(i):[e];for(var a in r)if("string"===typeof r[a]){var o=r[a].split(n);if(2===o.length){var s=o[0].trim(),u=o[1].trim();t(s,u)}}}function c(e,t,n){var i=e;function r(){var t=o(e);if(null===t)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+i);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function c(e,t){var i=new s;u(e,(function(e,t){switch(e){case"region":for(var r=n.length-1;r>=0;r--)if(n[r].id===t){i.set(e,n[r].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":var a=t.split(","),o=a[0];i.integer(e,o),i.percent(e,o)&&i.set("snapToLines",!1),i.alt(e,o,["auto"]),2===a.length&&i.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=t.split(","),i.percent(e,a[0]),2===a.length&&i.alt("positionAlign",a[1],["start","center","end"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start","center","end","left","right"]);break}}),/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical","");try{t.line=i.get("line","auto")}catch(r){}t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100);try{t.align=i.get("align","center")}catch(r){t.align=i.get("align","middle")}try{t.position=i.get("position","auto")}catch(r){t.position=i.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=i.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}function l(){e=e.replace(/^\s+/,"")}if(l(),t.startTime=r(),l(),"--\x3e"!==e.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);e=e.substr(3),l(),t.endTime=r(),l(),c(e,t)}a.prototype=r(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(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var i=0;i<n.length;++i)if(t===n[i]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t),t>=0&&t<=100))&&(this.set(e,t),!0)}};var l=i.createElement&&i.createElement("textarea"),d={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={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)"},f={v:"title",lang:"lang"},p={rt:"ruby"};function m(e,t){function n(){if(!t)return null;function e(e){return t=t.substr(e.length),e}var n=t.match(/^([^<]*)(<[^>]*>?)?/);return e(n[1]?n[1]:n[2])}function i(e){return l.innerHTML=e,e=l.textContent,l.textContent="",e}function r(e,t){return!p[t.localName]||p[t.localName]===e.localName}function a(t,n){var i=d[t];if(!i)return null;var r=e.document.createElement(i),a=f[t];return a&&n&&(r[a]=n.trim()),r}var s,u=e.document.createElement("div"),c=u,m=[];while(null!==(s=n()))if("<"!==s[0])c.appendChild(e.document.createTextNode(i(s)));else{if("/"===s[1]){m.length&&m[m.length-1]===s.substr(2).replace(">","")&&(m.pop(),c=c.parentNode);continue}var g,v=o(s.substr(1,s.length-2));if(v){g=e.document.createProcessingInstruction("timestamp",v),c.appendChild(g);continue}var y=s.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(g=a(y[1],y[3]),!g)continue;if(!r(c,g))continue;if(y[2]){var b=y[2].split(".");b.forEach((function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(h.hasOwnProperty(n)){var i=t?"background-color":"color",r=h[n];g.style[i]=r}})),g.className=b.join(" ")}m.push(y[1]),c.appendChild(g),c=g}return u}var g=[[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 v(e){for(var t=0;t<g.length;t++){var n=g[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function y(e){var t,n=[],i="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function a(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var i=n.match(/^.*(\n|\r)/);return i?(e.length=0,i[0]):n}return"ruby"===t.tagName?a(e):t.childNodes?(r(e,t),a(e)):void 0}r(n,e);while(i=a(n))for(var o=0;o<i.length;o++)if(t=i.charCodeAt(o),v(t))return"rtl";return"ltr"}function b(e){if("number"===typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,i=0,r=0;r<n.length&&n[r]!==t;r++)"showing"===n[r].mode&&i++;return-1*++i}function _(){}function T(e,t,n){_.call(this),this.cue=t,this.cueDiv=m(e,t.text);var i={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(i,this.cueDiv),this.div=e.document.createElement("div"),i={direction:y(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":r=t.position-t.size;break}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function w(e){var t,n,i,r;if(e.div){n=e.div.offsetHeight,i=e.div.offsetWidth,r=e.div.offsetTop;var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();e=e.div.getBoundingClientRect(),t=a?Math.max(a[0]&&a[0].height||0,e.height/a.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||n,this.bottom=e.bottom||r+(e.height||n),this.width=e.width||i,this.lineHeight=void 0!==t?t:e.lineHeight}function S(e,t,n,i){function r(e,t){for(var r,a=new w(e),o=1,s=0;s<t.length;s++){while(e.overlapsOppositeAxis(n,t[s])||e.within(n)&&e.overlapsAny(i))e.move(t[s]);if(e.within(n))return e;var u=e.intersectPercentage(n);o>u&&(r=new w(e),o=u),e=new w(a)}return r||a}var a=new w(t),o=t.cue,s=b(o),u=[];if(o.snapToLines){var c;switch(o.vertical){case"":u=["+y","-y"],c="height";break;case"rl":u=["+x","-x"],c="width";break;case"lr":u=["-x","+x"],c="width";break}var l=a.lineHeight,d=l*Math.round(s),h=n[c]+l,f=u[0];Math.abs(d)>h&&(d=d<0?-1:1,d*=Math.ceil(h/l)*l),s<0&&(d+=""===o.vertical?n.height:n.width,u=u.reverse()),a.move(f,d)}else{var p=a.lineHeight/n.height*100;switch(o.lineAlign){case"center":s-=p/2;break;case"end":s-=p;break}switch(o.vertical){case"":t.applyStyles({top:t.formatStyle(s,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(s,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(s,"%")});break}u=["+y","-x","+x","-y"],a=new w(t)}var m=r(a,u);t.move(m.toCSSCompatValues(n))}function k(){}_.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},_.prototype.formatStyle=function(e,t){return 0===e?0:e+t},T.prototype=r(_.prototype),T.prototype.constructor=T,w.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t;break}},w.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},w.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},w.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},w.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},w.prototype.intersectPercentage=function(e){var t=Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left)),n=Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top)),i=t*n;return i/(this.height*this.width)},w.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},w.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,i=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e;var r={left:e.left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||n};return r},k.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!==typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},k.convertCueToDOMTree=function(e,t){return e&&t?m(e,t):null};var C=.05,x="sans-serif",E="1.5%";k.processCues=function(e,t,n){if(!e||!t||!n)return null;while(n.firstChild)n.removeChild(n.firstChild);var i=e.document.createElement("div");function r(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin=E,n.appendChild(i),r(t)){var a=[],o=w.getSimpleBoxPosition(i),s=Math.round(o.height*C*100)/100,u={font:s+"px "+x};(function(){for(var n,r,s=0;s<t.length;s++)r=t[s],n=new T(e,r,u),i.appendChild(n.div),S(e,n,o,a),r.displayState=n.div,a.push(w.getSimpleBoxPosition(n))})()}else for(var c=0;c<t.length;c++)i.appendChild(t[c].displayState)},k.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},k.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof a))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){var e=t.buffer,n=0;while(n<e.length&&"\r"!==e[n]&&"\n"!==e[n])++n;var i=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),i}function i(e){var n=new s;if(u(e,(function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var i=t.split(",");if(2!==i.length)break;var r=new s;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;n.set(e+"X",r.get("x")),n.set(e+"Y",r.get("y"));break;case"scroll":n.alt(e,t,["up"]);break}}),/=/,/\s/),n.has("id")){var i=new(t.vttjs.VTTRegion||t.window.VTTRegion);i.width=n.get("width",100),i.lines=n.get("lines",3),i.regionAnchorX=n.get("regionanchorX",0),i.regionAnchorY=n.get("regionanchorY",100),i.viewportAnchorX=n.get("viewportanchorX",0),i.viewportAnchorY=n.get("viewportanchorY",100),i.scroll=n.get("scroll",""),t.onregion&&t.onregion(i),t.regionList.push({id:n.get("id"),region:i})}}function r(e){var n=new s;u(e,(function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",o(t));break}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}function l(e){e.match(/X-TIMESTAMP-MAP/)?u(e,(function(e,t){switch(e){case"X-TIMESTAMP-MAP":r(t);break}}),/=/):u(e,(function(e,t){switch(e){case"Region":i(t);break}}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var d;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;d=n();var h=d.match(/^WEBVTT([ \t].*)?$/);if(!h||!h[0])throw new a(a.Errors.BadSignature);t.state="HEADER"}var f=!1;while(t.buffer){if(!/\r\n|\n/.test(t.buffer))return this;switch(f?f=!1:d=n(),t.state){case"HEADER":/:/.test(d)?l(d):d||(t.state="ID");continue;case"NOTE":d||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(d)){t.state="NOTE";break}if(!d)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(m){t.cue.align="middle"}if(t.state="CUE",-1===d.indexOf("--\x3e")){t.cue.id=d;continue}case"CUE":try{c(d,t.cue,t.regionList)}catch(m){t.reportOrThrowError(m),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var p=-1!==d.indexOf("--\x3e");if(!d||p&&(f=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=d.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":d||(t.state="ID");continue}}}catch(m){t.reportOrThrowError(m),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new a(a.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},e.exports=k},"3a7b":function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").findIndex,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("findIndex",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},"3bbe":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3c50":function(e,t,n){"use strict";var i=n("4ea4");n("a623"),n("4160"),n("d81d"),n("fb6a"),n("a9e3"),n("d3b7"),n("ac1f"),n("25f0"),n("5319"),n("1276"),n("498a"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_VIDEO_CODEC=t.DEFAULT_AUDIO_CODEC=t.muxerSupportsCodec=t.browserSupportsCodec=t.getMimeForCodec=t.isTextCodec=t.isAudioCodec=t.isVideoCodec=t.codecsFromDefault=t.parseCodecs=t.mapLegacyAvcCodecs=t.translateLegacyCodecs=t.translateLegacyCodec=void 0;var r=i(n("a8d6")),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(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,n){var i=("00"+Number(t).toString(16)).slice(-2),r=("00"+Number(n).toString(16)).slice(-2);return"avc1."+i+"00"+r})):e};t.translateLegacyCodec=u;var c=function(e){return e.map(u)};t.translateLegacyCodecs=c;var l=function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e){return c([e])[0]}))};t.mapLegacyAvcCodecs=l;var d=function(e){void 0===e&&(e="");var t=e.split(","),n=[];return t.forEach((function(e){var t;e=e.trim(),o.forEach((function(i){var r=a[i].exec(e.toLowerCase());if(r&&!(r.length<=1)){t=i;var o=e.substring(0,r[1].length),s=e.replace(o,"");n.push({type:o,details:s,mediaType:i})}})),t||n.push({type:e,details:"",mediaType:"unknown"})})),n};t.parseCodecs=d;var h=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var i in n){var r=n[i];if(r.default&&r.playlists)return d(r.playlists[0].attributes.CODECS)}return null};t.codecsFromDefault=h;var f=function(e){return void 0===e&&(e=""),a.video.test(e.trim().toLowerCase())};t.isVideoCodec=f;var p=function(e){return void 0===e&&(e=""),a.audio.test(e.trim().toLowerCase())};t.isAudioCodec=p;var m=function(e){return void 0===e&&(e=""),a.text.test(e.trim().toLowerCase())};t.isTextCodec=m;var g=function(e){if(e&&"string"===typeof e){var t=e.toLowerCase().split(",").map((function(e){return u(e.trim())})),n="video";1===t.length&&p(t[0])?n="audio":1===t.length&&m(t[0])&&(n="application");var i="mp4";return t.every((function(e){return a.mp4.test(e)}))?i="mp4":t.every((function(e){return a.webm.test(e)}))?i="webm":t.every((function(e){return a.ogg.test(e)}))&&(i="ogg"),n+"/"+i+';codecs="'+e+'"'}};t.getMimeForCodec=g;var v=function(e){return void 0===e&&(e=""),r.default.MediaSource&&r.default.MediaSource.isTypeSupported&&r.default.MediaSource.isTypeSupported(g(e))||!1};t.browserSupportsCodec=v;var y=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every((function(e){e=e.trim();for(var t=0;t<s.length;t++){var n=s[t];if(a["muxer"+n].test(e))return!0}return!1}))};t.muxerSupportsCodec=y;var b="mp4a.40.2";t.DEFAULT_AUDIO_CODEC=b;var _="avc1.4d400d";t.DEFAULT_VIDEO_CODEC=_},"3c96":function(e,t){function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=n},"3ca3":function(e,t,n){"use strict";var i=n("6547").charAt,r=n("69f3"),a=n("7dd0"),o="String Iterator",s=r.set,u=r.getterFor(o);a(String,"String",(function(e){s(this,{type:o,string:String(e),index:0})}),(function(){var e,t=u(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})}))},"3d8c":function(e,t,n){"use strict";function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},"3f8c":function(e,t){e.exports={}},"3fcc":function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").map,a=n("4840"),o=i.aTypedArray,s=i.aTypedArrayConstructor,u=i.exportTypedArrayMethod;u("map",(function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(s(a(e,e.constructor)))(t)}))}))},4160:function(e,t,n){"use strict";var i=n("23e7"),r=n("17c2");i({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},"428f":function(e,t,n){var i=n("da84");e.exports=i},"439d":function(e,t,n){"use strict";n("c19f"),n("ace4"),n("d3b7"),n("5cc6"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),Object.defineProperty(t,"__esModule",{value:!0}),t.setOpusHead=t.parseOpusHead=t.OPUS_HEAD=void 0;var i=new Uint8Array([79,112,117,115,72,101,97,100]);t.OPUS_HEAD=i;var r=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=t.getUint8(0),i=0!==n,r={version:n,channels:t.getUint8(1),preSkip:t.getUint16(2,i),sampleRate:t.getUint32(4,i),outputGain:t.getUint16(8,i),channelMappingFamily:t.getUint8(10)};if(r.channelMappingFamily>0&&e.length>10){r.streamCount=t.getUint8(11),r.twoChannelStreamCount=t.getUint8(12),r.channelMapping=[];for(var a=0;a<r.channels;a++)r.channelMapping.push(t.getUint8(13+a))}return r};t.parseOpusHead=r;var a=function(e){var t=e.channelMappingFamily<=0?11:12+e.channels,n=new DataView(new ArrayBuffer(t)),i=0!==e.version;return n.setUint8(0,e.version),n.setUint8(1,e.channels),n.setUint16(2,e.preSkip,i),n.setUint32(4,e.sampleRate,i),n.setUint16(8,e.outputGain,i),n.setUint8(10,e.channelMappingFamily),e.channelMappingFamily>0&&(n.setUint8(11,e.streamCount),e.channelMapping.foreach((function(e,t){n.setUint8(12+t,e)}))),new Uint8Array(n.buffer)};t.setOpusHead=a},"44ad":function(e,t,n){var i=n("d039"),r=n("c6b6"),a="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?a.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var i=n("b622"),r=n("7c73"),a=n("9bf2"),o=i("unscopables"),s=Array.prototype;void 0==s[o]&&a.f(s,o,{configurable:!0,value:r(null)}),e.exports=function(e){s[o][e]=!0}},"44de":function(e,t,n){var i=n("da84");e.exports=function(e,t){var n=i.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var i=n("861d"),r=n("c6b6"),a=n("b622"),o=a("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==r(e))}},"45fc":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").some,a=n("a640"),o=n("ae40"),s=a("some"),u=o("some");i({target:"Array",proto:!0,forced:!s||!u},{some:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"466d":function(e,t,n){"use strict";var i=n("d784"),r=n("825a"),a=n("50c4"),o=n("1d80"),s=n("8aa5"),u=n("14c3");i("match",1,(function(e,t,n){return[function(t){var n=o(this),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var o=r(e),c=String(this);if(!o.global)return u(o,c);var l=o.unicode;o.lastIndex=0;var d,h=[],f=0;while(null!==(d=u(o,c))){var p=String(d[0]);h[f]=p,""===p&&(o.lastIndex=s(c,a(o.lastIndex),l)),f++}return 0===f?null:h}]}))},4840:function(e,t,n){var i=n("825a"),r=n("1c0b"),a=n("b622"),o=a("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||void 0==(n=i(a)[o])?t:r(n)}},4930:function(e,t,n){var i=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},"498a":function(e,t,n){"use strict";var i=n("23e7"),r=n("58a8").trim,a=n("c8d2");i({target:"String",proto:!0,forced:a("trim")},{trim:function(){return r(this)}})},"4a4b":function(e,t,n){function i(t,n){return e.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(t,n)}n("131a"),e.exports=i},"4ae1":function(e,t,n){var i=n("23e7"),r=n("d066"),a=n("1c0b"),o=n("825a"),s=n("861d"),u=n("7c73"),c=n("0538"),l=n("d039"),d=r("Reflect","construct"),h=l((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),f=!l((function(){d((function(){}))})),p=h||f;i({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(e,t){a(e),o(t);var n=arguments.length<3?e:a(arguments[2]);if(f&&!h)return d(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return i.push.apply(i,t),new(c.apply(e,i))}var r=n.prototype,l=u(s(r)?r:Object.prototype),p=Function.apply.call(e,l,t);return s(p)?p:l}})},"4d63":function(e,t,n){var i=n("83ab"),r=n("da84"),a=n("94ca"),o=n("7156"),s=n("9bf2").f,u=n("241c").f,c=n("44e7"),l=n("ad6d"),d=n("9f7f"),h=n("6eeb"),f=n("d039"),p=n("69f3").set,m=n("2626"),g=n("b622"),v=g("match"),y=r.RegExp,b=y.prototype,_=/a/g,T=/a/g,w=new y(_)!==_,S=d.UNSUPPORTED_Y,k=i&&a("RegExp",!w||S||f((function(){return T[v]=!1,y(_)!=_||y(T)==T||"/a/i"!=y(_,"i")})));if(k){var C=function(e,t){var n,i=this instanceof C,r=c(e),a=void 0===t;if(!i&&r&&e.constructor===C&&a)return e;w?r&&!a&&(e=e.source):e instanceof C&&(a&&(t=l.call(e)),e=e.source),S&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var s=o(w?new y(e,t):y(e,t),i?this:b,C);return S&&n&&p(s,{sticky:n}),s},x=function(e){e in C||s(C,e,{configurable:!0,get:function(){return y[e]},set:function(t){y[e]=t}})},E=u(y),A=0;while(E.length>A)x(E[A++]);b.constructor=C,C.prototype=b,h(r,"RegExp",C)}m("RegExp")},"4d64":function(e,t,n){var i=n("fc6a"),r=n("50c4"),a=n("23cb"),o=function(e){return function(t,n,o){var s,u=i(t),c=r(u.length),l=a(o,c);if(e&&n!=n){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},"4d90":function(e,t,n){"use strict";var i=n("23e7"),r=n("0ccb").start,a=n("9a0c");i({target:"String",proto:!0,forced:a},{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"4de4":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").filter,a=n("1dde"),o=n("ae40"),s=a("filter"),u=o("filter");i({target:"Array",proto:!0,forced:!s||!u},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var i=n("0366"),r=n("7b0b"),a=n("9bdd"),o=n("e95a"),s=n("50c4"),u=n("8418"),c=n("35a1");e.exports=function(e){var t,n,l,d,h,f,p=r(e),m="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,y=void 0!==v,b=c(p),_=0;if(y&&(v=i(v,g>2?arguments[2]:void 0,2)),void 0==b||m==Array&&o(b))for(t=s(p.length),n=new m(t);t>_;_++)f=y?v(p[_],_):p[_],u(n,_,f);else for(d=b.call(p),h=d.next,n=new m;!(l=h.call(d)).done;_++)f=y?a(d,v,[l.value,_],!0):l.value,u(n,_,f);return n.length=_,n}},"4e82":function(e,t,n){"use strict";var i=n("23e7"),r=n("1c0b"),a=n("7b0b"),o=n("d039"),s=n("a640"),u=[],c=u.sort,l=o((function(){u.sort(void 0)})),d=o((function(){u.sort(null)})),h=s("sort"),f=l||!d||!h;i({target:"Array",proto:!0,forced:f},{sort:function(e){return void 0===e?c.call(a(this)):c.call(a(this),r(e))}})},"4ea4":function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n},"4ec9":function(e,t,n){"use strict";var i=n("6d61"),r=n("6566");e.exports=i("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},"4f06":function(e,t,n){"use strict";function i(e,t){for(var n=[],i={},r=0;r<t.length;r++){var a=t[r],o=a[0],s=a[1],u=a[2],c=a[3],l={id:e+":"+r,css:s,media:u,sourceMap:c};i[o]?i[o].parts.push(l):n.push(i[o]={id:o,parts:[l]})}return n}n.r(t),n.d(t,"default",(function(){return p}));var r="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},o=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,u=0,c=!1,l=function(){},d=null,h="data-vue-ssr-id",f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(e,t,n,r){c=n,d=r||{};var o=i(e,t);return m(o),function(t){for(var n=[],r=0;r<o.length;r++){var s=o[r],u=a[s.id];u.refs--,n.push(u)}t?(o=i(e,t),m(o)):o=[];for(r=0;r<n.length;r++){u=n[r];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete a[u.id]}}}}function m(e){for(var t=0;t<e.length;t++){var n=e[t],i=a[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(v(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var o=[];for(r=0;r<n.parts.length;r++)o.push(v(n.parts[r]));a[n.id]={id:n.id,refs:1,parts:o}}}}function g(){var e=document.createElement("style");return e.type="text/css",o.appendChild(e),e}function v(e){var t,n,i=document.querySelector("style["+h+'~="'+e.id+'"]');if(i){if(c)return l;i.parentNode.removeChild(i)}if(f){var r=u++;i=s||(s=g()),t=b.bind(null,i,r,!1),n=b.bind(null,i,r,!0)}else i=g(),t=_.bind(null,i),n=function(){i.parentNode.removeChild(i)};return t(e),function(i){if(i){if(i.css===e.css&&i.media===e.media&&i.sourceMap===e.sourceMap)return;t(e=i)}else n()}}var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function b(e,t,n,i){var r=n?"":j(i.css);if(e.styleSheet)e.styleSheet.cssText=y(t,r);else{var a=document.createTextNode(r),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function _(e,t){var n=j(t.css),i=t.media,r=t.sourceMap;if(i&&e.setAttribute("media",i),d.ssrId&&e.setAttribute(h,t.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var T=/%\?([+-]?\d+(\.\d+)?)\?%/g,w=/\.\?%PAGE\?%/g,S=/\?%PAGE\?%\[data-v-[a-z0-9]{8}\]/g,k=/uni-page-body\[data-v-[a-z0-9]{8}\]/g,C=/var\(--status-bar-height\)/gi,x=/var\(--window-top\)/gi,E=/var\(--window-bottom\)/gi,A=/var\(--window-left\)/gi,O=/var\(--window-right\)/gi;function j(e){var t=I();if("undefined"!==typeof uni&&!uni.canIUse("css.var")){var n=P();e=e.replace(C,"0px").replace(x,n.top+"px").replace(E,n.bottom+"px").replace(A,"0px").replace(O,"0px")}return e.replace(S,t).replace(w,"").replace(k,"body."+t+" uni-page-body").replace(/\{[\s\S]+?\}|@media.+?\{/g,(function(e){return"undefined"===typeof uni?e:e.replace(T,(function(e,t){return uni.upx2px(t)+"px"}))}))}function I(){var e="function"===typeof getApp&&getApp();return e&&e.$route&&e.$route.meta&&e.$route.meta.name||""}function P(){var e="function"===typeof getApp&&getApp();return e&&e.$route&&e.$route.meta&&e.$route.meta.name?{top:e.$route.meta.windowTop,bottom:e.$route.meta.isTabBar?50:0}:{top:0,bottom:0}}},"50c4":function(e,t,n){var i=n("a691"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5319:function(e,t,n){"use strict";var i=n("d784"),r=n("825a"),a=n("7b0b"),o=n("50c4"),s=n("a691"),u=n("1d80"),c=n("8aa5"),l=n("14c3"),d=Math.max,h=Math.min,f=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g,g=function(e){return void 0===e?e:String(e)};i("replace",2,(function(e,t,n,i){var v=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=i.REPLACE_KEEPS_$0,b=v?"$":"$0";return[function(n,i){var r=u(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,r,i):t.call(String(r),n,i)},function(e,i){if(!v&&y||"string"===typeof i&&-1===i.indexOf(b)){var a=n(t,e,this,i);if(a.done)return a.value}var u=r(e),f=String(this),p="function"===typeof i;p||(i=String(i));var m=u.global;if(m){var T=u.unicode;u.lastIndex=0}var w=[];while(1){var S=l(u,f);if(null===S)break;if(w.push(S),!m)break;var k=String(S[0]);""===k&&(u.lastIndex=c(f,o(u.lastIndex),T))}for(var C="",x=0,E=0;E<w.length;E++){S=w[E];for(var A=String(S[0]),O=d(h(s(S.index),f.length),0),j=[],I=1;I<S.length;I++)j.push(g(S[I]));var P=S.groups;if(p){var L=[A].concat(j,O,f);void 0!==P&&L.push(P);var M=String(i.apply(void 0,L))}else M=_(A,f,O,j,P,i);O>=x&&(C+=f.slice(x,O)+M,x=O+A.length)}return C+f.slice(x)}];function _(e,n,i,r,o,s){var u=i+e.length,c=r.length,l=m;return void 0!==o&&(o=a(o),l=p),t.call(s,l,(function(t,a){var s;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,i);case"'":return n.slice(u);case"<":s=o[a.slice(1,-1)];break;default:var l=+a;if(0===l)return t;if(l>c){var d=f(l/10);return 0===d?t:d<=c?void 0===r[d-1]?a.charAt(1):r[d-1]+a.charAt(1):t}s=r[l-1]}return void 0===s?"":s}))}}))},5377:function(e,t,n){var i=n("83ab"),r=n("9bf2"),a=n("ad6d"),o=n("9f7f").UNSUPPORTED_Y;i&&("g"!=/./g.flags||o)&&r.f(RegExp.prototype,"flags",{configurable:!0,get:a})},5530:function(e,t,n){"use strict";n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=r(n("ade3"));function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},"55b5":function(e,t){function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}e.exports=n},5692:function(e,t,n){var i=n("c430"),r=n("c6cd");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var i=n("d066"),r=n("241c"),a=n("7418"),o=n("825a");e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(o(e)),n=a.f;return n?t.concat(n(e)):t}},5899:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,n){var i=n("1d80"),r=n("5899"),a="["+r+"]",o=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$"),u=function(e){return function(t){var n=String(i(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},"5a34":function(e,t,n){var i=n("44e7");e.exports=function(e){if(i(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5a9b":function(e,t,n){"use strict";n("c975"),n("fb6a"),n("a434"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,o=0;o<a;++o)t[o].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}();t.default=i},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5cc6":function(e,t,n){var i=n("74e8");i("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},"5d41":function(e,t,n){var i=n("23e7"),r=n("861d"),a=n("825a"),o=n("5135"),s=n("06cf"),u=n("e163");function c(e,t){var n,i,l=arguments.length<3?e:arguments[2];return a(e)===l?e[t]:(n=s.f(e,t))?o(n,"value")?n.value:void 0===n.get?void 0:n.get.call(l):r(i=u(e))?c(i,t,l):void 0}i({target:"Reflect",stat:!0},{get:c})},"5f96":function(e,t,n){"use strict";var i=n("ebb5"),r=i.aTypedArray,a=i.exportTypedArrayMethod,o=[].join;a("join",(function(e){return o.apply(r(this),arguments)}))},"5fb2":function(e,t,n){"use strict";var i=2147483647,r=36,a=1,o=26,s=38,u=700,c=72,l=128,d="-",h=/[^\0-\u007E]/,f=/[.\u3002\uFF0E\uFF61]/g,p="Overflow: input needs wider integers to process",m=r-a,g=Math.floor,v=String.fromCharCode,y=function(e){var t=[],n=0,i=e.length;while(n<i){var r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&r)<<10)+(1023&a)+65536):(t.push(r),n--)}else t.push(r)}return t},b=function(e){return e+22+75*(e<26)},_=function(e,t,n){var i=0;for(e=n?g(e/u):e>>1,e+=g(e/t);e>m*o>>1;i+=r)e=g(e/m);return g(i+(m+1)*e/(e+s))},T=function(e){var t=[];e=y(e);var n,s,u=e.length,h=l,f=0,m=c;for(n=0;n<e.length;n++)s=e[n],s<128&&t.push(v(s));var T=t.length,w=T;T&&t.push(d);while(w<u){var S=i;for(n=0;n<e.length;n++)s=e[n],s>=h&&s<S&&(S=s);var k=w+1;if(S-h>g((i-f)/k))throw RangeError(p);for(f+=(S-h)*k,h=S,n=0;n<e.length;n++){if(s=e[n],s<h&&++f>i)throw RangeError(p);if(s==h){for(var C=f,x=r;;x+=r){var E=x<=m?a:x>=m+o?o:x-m;if(C<E)break;var A=C-E,O=r-E;t.push(v(b(E+A%O))),C=g(A/O)}t.push(v(b(C))),m=_(f,k,w==T),f=0,++w}}++f,++h}return t.join("")};e.exports=function(e){var t,n,i=[],r=e.toLowerCase().replace(f,".").split(".");for(t=0;t<r.length;t++)n=r[t],i.push(h.test(n)?"xn--"+T(n):n);return i.join(".")}},6062:function(e,t,n){"use strict";var i=n("6d61"),r=n("6566");e.exports=i("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},"60bd":function(e,t,n){"use strict";var i=n("da84"),r=n("ebb5"),a=n("e260"),o=n("b622"),s=o("iterator"),u=i.Uint8Array,c=a.values,l=a.keys,d=a.entries,h=r.aTypedArray,f=r.exportTypedArrayMethod,p=u&&u.prototype[s],m=!!p&&("values"==p.name||void 0==p.name),g=function(){return c.call(h(this))};f("entries",(function(){return d.call(h(this))})),f("keys",(function(){return l.call(h(this))})),f("values",g,!m),f(s,g,!m)},"60da":function(e,t,n){"use strict";var i=n("83ab"),r=n("d039"),a=n("df75"),o=n("7418"),s=n("d1e7"),u=n("7b0b"),c=n("44ad"),l=Object.assign,d=Object.defineProperty;e.exports=!l||r((function(){if(i&&1!==l({b:1},l(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||a(l({},t)).join("")!=r}))?function(e,t){var n=u(e),r=arguments.length,l=1,d=o.f,h=s.f;while(r>l){var f,p=c(arguments[l++]),m=d?a(p).concat(d(p)):a(p),g=m.length,v=0;while(g>v)f=m[v++],i&&!h.call(p,f)||(n[f]=p[f])}return n}:l},"60dc":function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("a4d3"),n("e01a"),n("99af"),n("a623"),n("cb29"),n("4de4"),n("4160"),n("c975"),n("d81d"),n("13d5"),n("f4dd"),n("26e9"),n("fb6a"),n("45fc"),n("4e82"),n("a434"),n("c19f"),n("82da"),n("ace4"),n("f4b3"),n("6c57"),n("4ec9"),n("a9e3"),n("aff5"),n("dca8"),n("e439"),n("7039"),n("b64b"),n("131a"),n("d3b7"),n("acd8"),n("e25e"),n("4d63"),n("ac1f"),n("5377"),n("25f0"),n("6062"),n("3ca3"),n("466d"),n("5319"),n("1276"),n("498a"),n("143c"),n("5cc6"),n("fb2c"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("10d1"),n("159b"),n("ddb0"),n("2b3d"),n("bf19"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;for(var r,a=i(n("a8d6")),o=i(n("79ac")),s=i(n("a559")),u=i(n("67be")),c=i(n("3c96")),l=i(n("55b5")),d=i(n("1450")),h=i(n("e497")),f=i(n("a649")),p=i(n("b17c")),m=i(n("ed6d")),g=i(n("f2dc")),v=n("614c"),y=n("3c50"),b=n("bbee"),_=n("0f2d"),T=n("9e75"),w=i(n("b690")),S=n("680e"),k=n("355b"),C=n("67b7"),x="7.20.3",E={},A=function(e,t){return E[e]=E[e]||[],t&&(E[e]=E[e].concat(t)),E[e]},O=function(e,t){A(e,t)},j=function(e,t){var n=A(e).indexOf(t);return!(n<=-1)&&(E[e]=E[e].slice(),E[e].splice(n,1),!0)},I=function(e,t){A(e,[].concat(t).map((function(t){var n=function n(){return j(e,n),t.apply(void 0,arguments)};return n})))},P={prefixed:!0},L=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],M=L[0],D=0;D<L.length;D++)if(L[D][1]in o.default){r=L[D];break}if(r){for(var R=0;R<r.length;R++)P[M[R]]=r[R];P.prefixed=r[0]!==M[0]}var N=[],B=function(e,t){return function(n,i,r){var o=t.levels[i],s=new RegExp("^("+o+")$");if("log"!==n&&r.unshift(n.toUpperCase()+":"),r.unshift(e+":"),N){N.push([].concat(r));var u=N.length-1e3;N.splice(0,u>0?u:0)}if(a.default.console){var c=a.default.console[n];c||"debug"!==n||(c=a.default.console.info||a.default.console.log),c&&o&&s.test(n)&&c[Array.isArray(r)?"apply":"call"](a.default.console,r)}}};function U(e){var t,n="info",i=function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];t("log",n,i)};return t=B(e,i),i.createLogger=function(t){return U(e+": "+t)},i.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},i.level=function(e){if("string"===typeof e){if(!i.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');n=e}return n},i.history=function(){return N?[].concat(N):[]},i.history.filter=function(e){return(N||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},i.history.clear=function(){N&&(N.length=0)},i.history.disable=function(){null!==N&&(N.length=0,N=null)},i.history.enable=function(){null===N&&(N=[])},i.error=function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return t("error",n,i)},i.warn=function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return t("warn",n,i)},i.debug=function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return t("debug",n,i)},i}var F=U("VIDEOJS"),$=F.createLogger,H=Object.prototype.toString,V=function(e){return G(e)?Object.keys(e):[]};function q(e,t){V(e).forEach((function(n){return t(e[n],n)}))}function z(e,t,n){return void 0===n&&(n=0),V(e).reduce((function(n,i){return t(n,e[i],i)}),n)}function W(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Object.assign?s.default.apply(void 0,[e].concat(n)):(n.forEach((function(t){t&&q(t,(function(t,n){e[n]=t}))})),e)}function G(e){return!!e&&"object"===typeof e}function Y(e){return G(e)&&"[object Object]"===H.call(e)&&e.constructor===Object}function X(e,t){if(!e||!t)return"";if("function"===typeof a.default.getComputedStyle){var n;try{n=a.default.getComputedStyle(e)}catch(i){return""}return n?n.getPropertyValue(t)||n[t]:""}return""}var K=a.default.navigator&&a.default.navigator.userAgent||"",Q=/AppleWebKit\/([\d.]+)/i.exec(K),J=Q?parseFloat(Q.pop()):null,Z=/iPod/i.test(K),ee=function(){var e=K.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),te=/Android/i.test(K),ne=function(){var e=K.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),ie=te&&ne<5&&J<537,re=/Firefox/i.test(K),ae=/Edg/i.test(K),oe=!ae&&(/Chrome/i.test(K)||/CriOS/i.test(K)),se=function(){var e=K.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),ue=function(){var e=/MSIE\s(\d+)\.\d/.exec(K),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(K)&&/rv:11.0/.test(K)&&(t=11),t}(),ce=/Safari/i.test(K)&&!oe&&!te&&!ae,le=/Windows/i.test(K),de=Boolean(_e()&&("ontouchstart"in a.default||a.default.navigator.maxTouchPoints||a.default.DocumentTouch&&a.default.document instanceof a.default.DocumentTouch)),he=/iPad/i.test(K)||ce&&de&&!/iPhone/i.test(K),fe=/iPhone/i.test(K)&&!he,pe=fe||he||Z,me=(ce||pe)&&!oe,ge=Object.freeze({__proto__:null,IS_IPOD:Z,IOS_VERSION:ee,IS_ANDROID:te,ANDROID_VERSION:ne,IS_NATIVE_ANDROID:ie,IS_FIREFOX:re,IS_EDGE:ae,IS_CHROME:oe,CHROME_VERSION:se,IE_VERSION:ue,IS_SAFARI:ce,IS_WINDOWS:le,TOUCH_ENABLED:de,IS_IPAD:he,IS_IPHONE:fe,IS_IOS:pe,IS_ANY_SAFARI:me});function ve(e){return"string"===typeof e&&Boolean(e.trim())}function ye(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function be(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}function _e(){return o.default===a.default.document}function Te(e){return G(e)&&1===e.nodeType}function we(){try{return a.default.parent!==a.default.self}catch(e){return!0}}function Se(e){return function(t,n){if(!ve(t))return o.default[e](null);ve(n)&&(n=o.default.querySelector(n));var i=Te(n)?n:o.default;return i[e]&&i[e](t)}}function ke(e,t,n,i){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={});var r=o.default.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(F.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+n+"."),r.setAttribute(e,n)):"textContent"===e?Ce(r,n):r[e]===n&&"tabIndex"!==e||(r[e]=n)})),Object.getOwnPropertyNames(n).forEach((function(e){r.setAttribute(e,n[e])})),i&&qe(r,i),r}function Ce(e,t){return"undefined"===typeof e.textContent?e.innerText=t:e.textContent=t,e}function xe(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function Ee(e,t){return ye(t),e.classList?e.classList.contains(t):be(t).test(e.className)}function Ae(e,t){return e.classList?e.classList.add(t):Ee(e,t)||(e.className=(e.className+" "+t).trim()),e}function Oe(e,t){return e?(e.classList?e.classList.remove(t):(ye(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e):(F.warn("removeClass was called with an element that doesn't exist"),null)}function je(e,t,n){var i=Ee(e,t);if("function"===typeof n&&(n=n(e,t)),"boolean"!==typeof n&&(n=!i),n!==i)return n?Ae(e,t):Oe(e,t),e}function Ie(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var i=t[n];null===i||"undefined"===typeof i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)}))}function Pe(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var i=e.attributes,r=i.length-1;r>=0;r--){var a=i[r].name,o=i[r].value;"boolean"!==typeof e[a]&&-1===n.indexOf(","+a+",")||(o=null!==o),t[a]=o}return t}function Le(e,t){return e.getAttribute(t)}function Me(e,t,n){e.setAttribute(t,n)}function De(e,t){e.removeAttribute(t)}function Re(){o.default.body.focus(),o.default.onselectstart=function(){return!1}}function Ne(){o.default.onselectstart=function(){return!0}}function Be(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n.height||(n.height=parseFloat(X(e,"height"))),n.width||(n.width=parseFloat(X(e,"width"))),n}}function Ue(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};var t=e.offsetWidth,n=e.offsetHeight,i=0,r=0;while(e.offsetParent&&e!==o.default[P.fullscreenElement])i+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:i,top:r,width:t,height:n}}function Fe(e,t){var n={x:0,y:0};if(pe){var i=e;while(i&&"html"!==i.nodeName.toLowerCase()){var r=X(i,"transform");if(/^matrix/.test(r)){var a=r.slice(7,-1).split(/,\s/).map(Number);n.x+=a[4],n.y+=a[5]}else if(/^matrix3d/.test(r)){var o=r.slice(9,-1).split(/,\s/).map(Number);n.x+=o[12],n.y+=o[13]}i=i.parentNode}}var s={},u=Ue(t.target),c=Ue(e),l=c.width,d=c.height,h=t.offsetY-(c.top-u.top),f=t.offsetX-(c.left-u.left);return t.changedTouches&&(f=t.changedTouches[0].pageX-c.left,h=t.changedTouches[0].pageY+c.top,pe&&(f-=n.x,h-=n.y)),s.y=1-Math.max(0,Math.min(1,h/d)),s.x=Math.max(0,Math.min(1,f/l)),s}function $e(e){return G(e)&&3===e.nodeType}function He(e){while(e.firstChild)e.removeChild(e.firstChild);return e}function Ve(e){return"function"===typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"===typeof e&&(e=e()),Te(e)||$e(e)?e:"string"===typeof e&&/\S/.test(e)?o.default.createTextNode(e):void 0})).filter((function(e){return e}))}function qe(e,t){return Ve(t).forEach((function(t){return e.appendChild(t)})),e}function ze(e,t){return qe(He(e),t)}function We(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var Ge,Ye=Se("querySelector"),Xe=Se("querySelectorAll"),Ke=Object.freeze({__proto__:null,isReal:_e,isEl:Te,isInFrame:we,createEl:ke,textContent:Ce,prependTo:xe,hasClass:Ee,addClass:Ae,removeClass:Oe,toggleClass:je,setAttributes:Ie,getAttributes:Pe,getAttribute:Le,setAttribute:Me,removeAttribute:De,blockTextSelection:Re,unblockTextSelection:Ne,getBoundingClientRect:Be,findPosition:Ue,getPointerPosition:Fe,isTextNode:$e,emptyEl:He,normalizeContent:Ve,appendContent:qe,insertContent:ze,isSingleLeftClick:We,$:Ye,$$:Xe}),Qe=!1,Je=function(){if(!1!==Ge.options.autoSetup){var e=Array.prototype.slice.call(o.default.getElementsByTagName("video")),t=Array.prototype.slice.call(o.default.getElementsByTagName("audio")),n=Array.prototype.slice.call(o.default.getElementsByTagName("video-js")),i=e.concat(t,n);if(i&&i.length>0)for(var r=0,a=i.length;r<a;r++){var s=i[r];if(!s||!s.getAttribute){Ze(1);break}if(void 0===s.player){var u=s.getAttribute("data-setup");null!==u&&Ge(s)}}else Qe||Ze(1)}};function Ze(e,t){_e()&&(t&&(Ge=t),a.default.setTimeout(Je,e))}function et(){Qe=!0,a.default.removeEventListener("load",et)}_e()&&("complete"===o.default.readyState?et():a.default.addEventListener("load",et));var tt,nt=function(e){var t=o.default.createElement("style");return t.className=e,t},it=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},rt=3,at=rt;function ot(){return at++}a.default.WeakMap||(tt=function(){function e(){this.vdata="vdata"+Math.floor(a.default.performance&&a.default.performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var n=e[this.vdata]||ot();return e[this.vdata]||(e[this.vdata]=n),this.data[n]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];F("We have no data for this element",e)},t.has=function(e){var t=e[this.vdata];return t in this.data},t["delete"]=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var st,ut=a.default.WeakMap?new WeakMap:new tt;function ct(e,t){if(ut.has(e)){var n=ut.get(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&ut["delete"](e)}}function lt(e,t,n,i){n.forEach((function(n){e(t,n,i)}))}function dt(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var i=e||a.default.event;for(var r in e={},i)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&"path"!==r&&("returnValue"===r&&i.preventDefault||(e[r]=i[r]));if(e.target||(e.target=e.srcElement||o.default),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){i.preventDefault&&i.preventDefault(),e.returnValue=!1,i.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),e.cancelBubble=!0,i.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var s=o.default.documentElement,u=o.default.body;e.pageX=e.clientX+(s&&s.scrollLeft||u&&u.scrollLeft||0)-(s&&s.clientLeft||u&&u.clientLeft||0),e.pageY=e.clientY+(s&&s.scrollTop||u&&u.scrollTop||0)-(s&&s.clientTop||u&&u.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}var ht=function(){if("boolean"!==typeof st){st=!1;try{var e=Object.defineProperty({},"passive",{get:function(){st=!0}});a.default.addEventListener("test",null,e),a.default.removeEventListener("test",null,e)}catch(t){}}return st},ft=["touchstart","touchmove"];function pt(e,t,n){if(Array.isArray(t))return lt(pt,e,t,n);ut.has(e)||ut.set(e,{});var i=ut.get(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=ot()),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(!i.disabled){t=dt(t);var r=i.handlers[t.type];if(r)for(var a=r.slice(0),o=0,s=a.length;o<s;o++){if(t.isImmediatePropagationStopped())break;try{a[o].call(e,t,n)}catch(u){F.error(u)}}}}),1===i.handlers[t].length)if(e.addEventListener){var r=!1;ht()&&ft.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,i.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function mt(e,t,n){if(ut.has(e)){var i=ut.get(e);if(i.handlers){if(Array.isArray(t))return lt(mt,e,t,n);var r=function(e,t){i.handlers[t]=[],ct(e,t)};if(void 0!==t){var a=i.handlers[t];if(a)if(n){if(n.guid)for(var o=0;o<a.length;o++)a[o].guid===n.guid&&a.splice(o--,1);ct(e,t)}else r(e,t)}else for(var s in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},s)&&r(e,s)}}}function gt(e,t,n){var i=ut.has(e)?ut.get(e):{},r=e.parentNode||e.ownerDocument;if("string"===typeof t?t={type:t,target:e}:t.target||(t.target=e),t=dt(t),i.dispatcher&&i.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&!0===t.bubbles)gt.call(null,r,t,n);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){ut.has(t.target)||ut.set(t.target,{});var a=ut.get(t.target);t.target[t.type]&&(a.disabled=!0,"function"===typeof t.target[t.type]&&t.target[t.type](),a.disabled=!1)}return!t.defaultPrevented}function vt(e,t,n){if(Array.isArray(t))return lt(vt,e,t,n);var i=function i(){mt(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||ot(),pt(e,t,i)}function yt(e,t,n){var i=function i(){mt(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||ot(),pt(e,t,i)}var bt,_t=Object.freeze({__proto__:null,fixEvent:dt,on:pt,off:mt,trigger:gt,one:vt,any:yt}),Tt=30,wt=function(e,t,n){t.guid||(t.guid=ot());var i=t.bind(e);return i.guid=n?n+"_"+t.guid:t.guid,i},St=function(e,t){var n=a.default.performance.now(),i=function(){var i=a.default.performance.now();i-n>=t&&(e.apply(void 0,arguments),n=i)};return i},kt=function(e,t,n,i){var r;void 0===i&&(i=a.default);var o=function(){i.clearTimeout(r),r=null},s=function(){var a=this,o=arguments,s=function(){r=null,s=null,n||e.apply(a,o)};!r&&n&&e.apply(a,o),i.clearTimeout(r),r=i.setTimeout(s,t)};return s.cancel=o,s},Ct=function(){};Ct.prototype.allowedEvents_={},Ct.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},pt(this,e,t),this.addEventListener=n},Ct.prototype.addEventListener=Ct.prototype.on,Ct.prototype.off=function(e,t){mt(this,e,t)},Ct.prototype.removeEventListener=Ct.prototype.off,Ct.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},vt(this,e,t),this.addEventListener=n},Ct.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},yt(this,e,t),this.addEventListener=n},Ct.prototype.trigger=function(e){var t=e.type||e;"string"===typeof e&&(e={type:t}),e=dt(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),gt(this,e)},Ct.prototype.dispatchEvent=Ct.prototype.trigger,Ct.prototype.queueTrigger=function(e){var t=this;bt||(bt=new Map);var n=e.type||e,i=bt.get(this);i||(i=new Map,bt.set(this,i));var r=i.get(n);i["delete"](n),a.default.clearTimeout(r);var o=a.default.setTimeout((function(){0===i.size&&(i=null,bt["delete"](t)),t.trigger(e)}),0);i.set(n,o)};var xt=function(e){return"function"===typeof e.name?e.name():"string"===typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e},Et=function(e){return e instanceof Ct||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"===typeof e[t]}))},At=function(e,t){Et(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},Ot=function(e){return"string"===typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},jt=function(e,t,n){if(!e||!e.nodeName&&!Et(e))throw new Error("Invalid target for "+xt(t)+"#"+n+"; must be a DOM node or evented object.")},It=function(e,t,n){if(!Ot(e))throw new Error("Invalid event type for "+xt(t)+"#"+n+"; must be a non-empty string or array.")},Pt=function(e,t,n){if("function"!==typeof e)throw new Error("Invalid listener for "+xt(t)+"#"+n+"; must be a function.")},Lt=function(e,t,n){var i,r,a,o=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return o?(i=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],a=t[1]):(i=t[0],r=t[1],a=t[2]),jt(i,e,n),It(r,e,n),Pt(a,e,n),a=wt(e,a),{isTargetingSelf:o,target:i,type:r,listener:a}},Mt=function(e,t,n,i){jt(e,e,t),e.nodeName?_t[t](e,n,i):e[t](n,i)},Dt={on:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=Lt(this,n,"on"),a=r.isTargetingSelf,o=r.target,s=r.type,u=r.listener;if(Mt(o,"on",s,u),!a){var c=function(){return e.off(o,s,u)};c.guid=u.guid;var l=function(){return e.off("dispose",c)};l.guid=u.guid,Mt(this,"on","dispose",c),Mt(o,"on","dispose",l)}},one:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=Lt(this,n,"one"),a=r.isTargetingSelf,o=r.target,s=r.type,u=r.listener;if(a)Mt(o,"one",s,u);else{var c=function t(){e.off(o,s,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];u.apply(null,i)};c.guid=u.guid,Mt(o,"one",s,c)}},any:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=Lt(this,n,"any"),a=r.isTargetingSelf,o=r.target,s=r.type,u=r.listener;if(a)Mt(o,"any",s,u);else{var c=function t(){e.off(o,s,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];u.apply(null,i)};c.guid=u.guid,Mt(o,"any",s,c)}},off:function(e,t,n){if(!e||Ot(e))mt(this.eventBusEl_,e,t);else{var i=e,r=t;jt(i,this,"off"),It(r,this,"off"),Pt(n,this,"off"),n=wt(this,n),this.off("dispose",n),i.nodeName?(mt(i,r,n),mt(i,"dispose",n)):Et(i)&&(i.off(r,n),i.off("dispose",n))}},trigger:function(e,t){jt(this.eventBusEl_,this,"trigger");var n=e&&"string"!==typeof e?e.type:e;if(!Ot(n)){var i="Invalid event type for "+xt(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!e)throw new Error(i);(this.log||F).error(i)}return gt(this.eventBusEl_,e,t)}};function Rt(e,t){void 0===t&&(t={});var n=t,i=n.eventBusKey;if(i){if(!e[i].nodeName)throw new Error('The eventBusKey "'+i+'" does not refer to an element.');e.eventBusEl_=e[i]}else e.eventBusEl_=ke("span",{className:"vjs-event-bus"});return W(e,Dt),e.eventedCallbacks&&e.eventedCallbacks.forEach((function(e){e()})),e.on("dispose",(function(){e.off(),[e,e.el_,e.eventBusEl_].forEach((function(e){e&&ut.has(e)&&ut["delete"](e)})),a.default.setTimeout((function(){e.eventBusEl_=null}),0)})),e}var Nt={state:{},setState:function(e){var t,n=this;return"function"===typeof e&&(e=e()),q(e,(function(e,i){n.state[i]!==e&&(t=t||{},t[i]={from:n.state[i],to:e}),n.state[i]=e})),t&&Et(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function Bt(e,t){return W(e,Nt),e.state=W({},e.state,t),"function"===typeof e.handleStateChanged&&Et(e)&&e.on("statechanged",e.handleStateChanged),e}var Ut=function(e){return"string"!==typeof e?e:e.replace(/./,(function(e){return e.toLowerCase()}))},Ft=function(e){return"string"!==typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))},$t=function(e,t){return Ft(e)===Ft(t)};function Ht(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach((function(t){t&&q(t,(function(t,n){Y(t)?(Y(e[n])||(e[n]={}),e[n]=Ht(e[n],t)):e[n]=t}))})),e}var Vt=function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t["delete"]=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var n in this.map_)e.call(t,this.map_[n],n,this)},e}(),qt=a.default.Map?a.default.Map:Vt,zt=function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t["delete"]=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var n in this.set_)e.call(t,n,n,this)},e}(),Wt=a.default.Set?a.default.Set:zt,Gt=function(){function e(e,t,n){var i=this;if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=Ht({},this.options_),t=this.options_=Ht(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+ot()}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach((function(e){return i.addClass(e)})),!1!==t.evented&&(Rt(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),Bt(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Wt,this.setIntervalIds_=new Wt,this.rafIds_=new Wt,this.namedRafs_=new qt,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(e){if(void 0===e&&(e={}),!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=Ht(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return ke(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[i],o=i&&i.split("-")[0],s=r&&r[o],u=n;return a&&a[e]?u=a[e]:s&&s[e]&&(u=s[e]),t&&(u=u.replace(/\{(\d+)\}/g,(function(e,n){var i=t[n-1],r=i;return"undefined"===typeof i&&(r=e),r}))),u},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reduce((function(e,t){return e.concat(t)}),[]);for(var i=this,r=0;r<t.length;r++)if(i=i.getChild(t[r]),!i||!i.getChild)return;return i},t.addChild=function(t,n,i){var r,a;if(void 0===n&&(n={}),void 0===i&&(i=this.children_.length),"string"===typeof t){a=Ft(t);var o=n.componentClass||a;n.name=a;var s=e.getComponent(o);if(!s)throw new Error("Component "+o+" does not exist");if("function"!==typeof s)return null;r=new s(this.player_||this,n)}else r=t;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(i,0,r),r.parentComponent_=this,"function"===typeof r.id&&(this.childIndex_[r.id()]=r),a=a||r.name&&Ft(r.name()),a&&(this.childNameIndex_[a]=r,this.childNameIndex_[Ut(a)]=r),"function"===typeof r.el&&r.el()){var u=null;this.children_[i+1]&&(this.children_[i+1].el_?u=this.children_[i+1].el_:Te(this.children_[i+1])&&(u=this.children_[i+1])),this.contentEl().insertBefore(r.el(),u)}return r},t.removeChild=function(e){if("string"===typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Ft(e.name())]=null,this.childNameIndex_[Ut(e.name())]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var i,r=this.options_,a=function(e){var n=e.name,i=e.opts;if(void 0!==r[n]&&(i=r[n]),!1!==i){!0===i&&(i={}),i.playerOptions=t.options_.playerOptions;var a=t.addChild(n,i);a&&(t[n]=a)}},o=e.getComponent("Tech");i=Array.isArray(n)?n:Object.keys(n),i.concat(Object.keys(this.options_).filter((function(e){return!i.some((function(t){return"string"===typeof t?e===t:e===t.name}))}))).map((function(e){var i,r;return"string"===typeof e?(i=e,r=n[i]||t.options_[i]||{}):(i=e.name,r=e),{name:i,opts:r}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||Ft(t.name));return n&&!o.isTech(n)})).forEach(a)}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},t.$=function(e,t){return Ye(e,t||this.contentEl())},t.$$=function(e,t){return Xe(e,t||this.contentEl())},t.hasClass=function(e){return Ee(this.el_,e)},t.addClass=function(e){Ae(this.el_,e)},t.removeClass=function(e){Oe(this.el_,e)},t.toggleClass=function(e,t){je(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return Le(this.el_,e)},t.setAttribute=function(e,t){Me(this.el_,e,t)},t.removeAttribute=function(e){De(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t===t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var i=this.el_.style[e],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+Ft(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=X(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){var n="offset"+Ft(e);t=this.el_[n]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(u.default.isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,n=null,i=10,r=200;this.on("touchstart",(function(i){1===i.touches.length&&(n={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},t=a.default.performance.now(),e=!0)})),this.on("touchmove",(function(t){if(t.touches.length>1)e=!1;else if(n){var r=t.touches[0].pageX-n.pageX,a=t.touches[0].pageY-n.pageY,o=Math.sqrt(r*r+a*a);o>i&&(e=!1)}}));var o=function(){e=!1};this.on("touchleave",o),this.on("touchcancel",o),this.on("touchend",(function(i){if(n=null,!0===e){var o=a.default.performance.now()-t;o<r&&(i.preventDefault(),this.trigger("tap"))}}))},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=wt(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){t(),this.clearInterval(e),e=this.setInterval(t,250)}));var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.setTimeout=function(e,t){var n,i=this;return e=wt(this,e),this.clearTimersOnDispose_(),n=a.default.setTimeout((function(){i.setTimeoutIds_.has(n)&&i.setTimeoutIds_["delete"](n),e()}),t),this.setTimeoutIds_.add(n),n},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_["delete"](e),a.default.clearTimeout(e)),e},t.setInterval=function(e,t){e=wt(this,e),this.clearTimersOnDispose_();var n=a.default.setInterval(e,t);return this.setIntervalIds_.add(n),n},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_["delete"](e),a.default.clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=wt(this,e),t=a.default.requestAnimationFrame((function(){n.rafIds_.has(t)&&n.rafIds_["delete"](t),e()})),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var n=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=wt(this,t);var i=this.requestAnimationFrame((function(){t(),n.namedRafs_.has(e)&&n.namedRafs_["delete"](e)}));return this.namedRafs_.set(e,i),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_["delete"](e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_["delete"](e),a.default.cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach((function(t){var n=t[0],i=t[1];e[n].forEach((function(t,n){return e[i](n)}))})),e.clearingTimersOnDispose_=!1})))},e.registerComponent=function(t,n){if("string"!==typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var i,r=e.getComponent("Tech"),a=r&&r.isTech(n),o=e===n||e.prototype.isPrototypeOf(n.prototype);if(a||!o)throw i=a?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+i+".");t=Ft(t),e.components_||(e.components_={});var s=e.getComponent("Player");if("Player"===t&&s&&s.players){var u=s.players,c=Object.keys(u);if(u&&c.length>0&&c.map((function(e){return u[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[Ut(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function Yt(e,t,n){if("number"!==typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}function Xt(e,t,n,i){return Yt(e,i,n.length-1),n[i][t]}function Kt(e){var t;return t=void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Xt.bind(null,"start",0,e),end:Xt.bind(null,"end",1,e)},a.default.Symbol&&a.default.Symbol.iterator&&(t[a.default.Symbol.iterator]=function(){return(e||[]).values()}),t}function Qt(e,t){return Array.isArray(e)?Kt(e):void 0===e||void 0===t?Kt():Kt([[e,t]])}function Jt(e,t){var n,i,r=0;if(!t)return 0;e&&e.length||(e=Qt(0,0));for(var a=0;a<e.length;a++)n=e.start(a),i=e.end(a),i>t&&(i=t),r+=i-n;return r/t}function Zt(e){if(e instanceof Zt)return e;"number"===typeof e?this.code=e:"string"===typeof e?this.message=e:G(e)&&("number"===typeof e.code&&(this.code=e.code),W(this,e)),this.message||(this.message=Zt.defaultMessages[this.code]||"")}Gt.prototype.supportsRaf_="function"===typeof a.default.requestAnimationFrame&&"function"===typeof a.default.cancelAnimationFrame,Gt.registerComponent("Component",Gt),Zt.prototype.code=0,Zt.prototype.message="",Zt.prototype.status=null,Zt.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Zt.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var en=0;en<Zt.errorTypes.length;en++)Zt[Zt.errorTypes[en]]=en,Zt.prototype[Zt.errorTypes[en]]=en;function tn(e){return void 0!==e&&null!==e&&"function"===typeof e.then}function nn(e){tn(e)&&e.then(null,(function(e){}))}var rn=function(e){var t=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((function(t,n,i){return e[n]&&(t[n]=e[n]),t}),{cues:e.cues&&Array.prototype.map.call(e.cues,(function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}}))});return t},an=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,(function(e){return e.track})),i=Array.prototype.map.call(t,(function(e){var t=rn(e.track);return e.src&&(t.src=e.src),t}));return i.concat(Array.prototype.filter.call(e.textTracks(),(function(e){return-1===n.indexOf(e)})).map(rn))},on=function(e,t){return e.forEach((function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach((function(e){return n.addCue(e)}))})),t.textTracks()},sn={textTracksToJson:an,jsonToTextTracks:on,trackToJson_:rn},un="vjs-modal-dialog",cn=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.close_=function(e){return i.close(e)},i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=ke("div",{className:un+"-content"},{role:"document"}),i.descEl_=ke("p",{className:un+"-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),Ce(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return un+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},n.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(e){return"boolean"===typeof e&&this[e?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(e){if("boolean"===typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var i=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=i,this.on(n,"close",this.close_)}!t&&n&&(this.off(n,"close",this.close_),this.removeChild(n),n.dispose())}return this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,i=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),ze(t,e),this.trigger("modalfill"),i?n.insertBefore(t,i):n.appendChild(t);var r=this.getChild("closeButton");r&&n.appendChild(r.el_)},n.empty=function(){this.trigger("beforemodalempty"),He(this.contentEl()),this.trigger("modalempty")},n.content=function(e){return"undefined"!==typeof e&&(this.content_=e),this.content_},n.conditionalFocus_=function(){var e=o.default.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(e){if(e.stopPropagation(),u.default.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(u.default.isEventKey(e,"Tab")){for(var t,n=this.focusableEls_(),i=this.el_.querySelector(":focus"),r=0;r<n.length;r++)if(i===n[r]){t=r;break}o.default.activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||t!==n.length-1||(n[0].focus(),e.preventDefault())}},n.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,(function(e){return(e instanceof a.default.HTMLAnchorElement||e instanceof a.default.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof a.default.HTMLInputElement||e instanceof a.default.HTMLSelectElement||e instanceof a.default.HTMLTextAreaElement||e instanceof a.default.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof a.default.HTMLIFrameElement||e instanceof a.default.HTMLObjectElement||e instanceof a.default.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")}))},t}(Gt);cn.prototype.options_={pauseOnOpen:!0,temporary:!0},Gt.registerComponent("ModalDialog",cn);var ln=function(e){function t(t){var n;void 0===t&&(t=[]),n=e.call(this)||this,n.tracks_=[],Object.defineProperty((0,c.default)(n),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<t.length;i++)n.addTrack(t[i]);return n}(0,l.default)(t,e);var n=t.prototype;return n.addTrack=function(e){var t=this,n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},Et(e)&&e.addEventListener("labelchange",e.labelchange_)},n.removeTrack=function(e){for(var t,n=0,i=this.length;n<i;n++)if(this[n]===e){t=this[n],t.off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},n.getTrackById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},t}(Ct);for(var dn in ln.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},ln.prototype.allowedEvents_)ln.prototype["on"+dn]=null;var hn=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},fn=function(e){function t(t){var n;void 0===t&&(t=[]);for(var i=t.length-1;i>=0;i--)if(t[i].enabled){hn(t,t[i]);break}return n=e.call(this,t)||this,n.changing_=!1,n}(0,l.default)(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.enabled&&hn(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){n.changing_||(n.changing_=!0,hn(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(ln),pn=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)},mn=function(e){function t(t){var n;void 0===t&&(t=[]);for(var i=t.length-1;i>=0;i--)if(t[i].selected){pn(t,t[i]);break}return n=e.call(this,t)||this,n.changing_=!1,Object.defineProperty((0,c.default)(n),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),n}(0,l.default)(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.selected&&pn(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.selectedChange_=function(){n.changing_||(n.changing_=!0,pn(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)},t}(ln),gn=function(e){function t(){return e.apply(this,arguments)||this}(0,l.default)(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;e.prototype.addTrack.call(this,t),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),t.addEventListener("modechange",this.queueChange_);var i=["metadata","chapters"];-1===i.indexOf(t.kind)&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},t}(ln),vn=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,n=0,i=this.trackElements_.length;n<i;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},t.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"===typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"===typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),yn=function(){function e(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var t=e.prototype;return t.setCues_=function(e){var t=this.length||0,n=0,i=e.length;this.cues_=e,this.length_=e.length;var r=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<i)for(n=t;n<i;n++)r.call(this,n)},t.getCueById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},e}(),bn={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},_n={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Tn={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},wn={disabled:"disabled",hidden:"hidden",showing:"showing"},Sn=function(e){function t(t){var n;void 0===t&&(t={}),n=e.call(this)||this;var i={id:t.id||"vjs_track_"+ot(),kind:t.kind||"",language:t.language||""},r=t.label||"",a=function(e){Object.defineProperty((0,c.default)(n),e,{get:function(){return i[e]},set:function(){}})};for(var o in i)a(o);return Object.defineProperty((0,c.default)(n),"label",{get:function(){return r},set:function(e){e!==r&&(r=e,this.trigger("labelchange"))}}),n}return(0,l.default)(t,e),t}(Ct),kn=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=o.default.createElement("a");n.href=e;for(var i={},r=0;r<t.length;r++)i[t[r]]=n[t[r]];return"http:"===i.protocol&&(i.host=i.host.replace(/:80$/,"")),"https:"===i.protocol&&(i.host=i.host.replace(/:443$/,"")),i.protocol||(i.protocol=a.default.location.protocol),i.host||(i.host=a.default.location.host),i},Cn=function(e){if(!e.match(/^https?:\/\//)){var t=o.default.createElement("a");t.href=e,e=t.href}return e},xn=function(e){if("string"===typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/,n=t.exec(e);if(n)return n.pop().toLowerCase()}return""},En=function(e,t){void 0===t&&(t=a.default.location);var n=kn(e),i=":"===n.protocol?t.protocol:n.protocol,r=i+n.host!==t.protocol+t.host;return r},An=Object.freeze({__proto__:null,parseUrl:kn,getAbsoluteURL:Cn,getFileExtension:xn,isCrossOrigin:En}),On=function(e,t){var n=new a.default.WebVTT.Parser(a.default,a.default.vttjs,a.default.WebVTT.StringDecoder()),i=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){i.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),i.length>0&&(a.default.console&&a.default.console.groupCollapsed&&a.default.console.groupCollapsed("Text Track parsing errors for "+t.src),i.forEach((function(e){return F.error(e)})),a.default.console&&a.default.console.groupEnd&&a.default.console.groupEnd()),n.flush()},jn=function(e,t){var n={uri:e},i=En(e);i&&(n.cors=i);var r="use-credentials"===t.tech_.crossOrigin();r&&(n.withCredentials=r),(0,h.default)(n,wt(this,(function(e,n,i){if(e)return F.error(e,n);t.loaded_=!0,"function"!==typeof a.default.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],(function(e){if("vttjserror"!==e.type)return On(i,t);F.error("vttjs failed to load, stopping trying to process "+t.src)})):On(i,t)})))},In=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var i=Ht(t,{kind:Tn[t.kind]||"subtitles",language:t.language||t.srclang||""}),r=wn[i.mode]||"disabled",a=i["default"];"metadata"!==i.kind&&"chapters"!==i.kind||(r="hidden"),n=e.call(this,i)||this,n.tech_=i.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var o=new yn(n.cues_),s=new yn(n.activeCues_),u=!1;n.timeupdateHandler=wt((0,c.default)(n),(function(e){void 0===e&&(e={}),this.tech_.isDisposed()||(this.tech_.isReady_?(this.activeCues=this.activeCues,u&&(this.trigger("cuechange"),u=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))):"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)))}));var l=function(){n.stopTracking()};return n.tech_.one("dispose",l),"disabled"!==r&&n.startTracking(),Object.defineProperties((0,c.default)(n),{default:{get:function(){return a},set:function(){}},mode:{get:function(){return r},set:function(e){wn[e]&&r!==e&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||jn(this.src,this),this.stopTracking(),"disabled"!==r&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?o:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var e=this.tech_.currentTime(),t=[],n=0,i=this.cues.length;n<i;n++){var r=this.cues[n];(r.startTime<=e&&r.endTime>=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(u=!1,t.length!==this.activeCues_.length)u=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(u=!0);return this.activeCues_=t,s.setCues_(this.activeCues_),s},set:function(){}}}),i.src?(n.src=i.src,n.preload_||(n.loaded_=!0),(n.preload_||"subtitles"!==i.kind&&"captions"!==i.kind)&&jn(n.src,(0,c.default)(n))):n.loaded_=!0,n}(0,l.default)(t,e);var n=t.prototype;return n.startTracking=function(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)},n.stopTracking=function(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)},n.addCue=function(e){var t=e;if(a.default.vttjs&&!(e instanceof a.default.vttjs.VTTCue)){for(var n in t=new a.default.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var i=this.tech_.textTracks(),r=0;r<i.length;r++)i[r]!==this&&i[r].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},n.removeCue=function(e){var t=this.cues_.length;while(t--){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(Sn);In.prototype.allowedEvents_={cuechange:"cuechange"};var Pn=function(e){function t(t){var n;void 0===t&&(t={});var i=Ht(t,{kind:_n[t.kind]||""});n=e.call(this,i)||this;var r=!1;return Object.defineProperty((0,c.default)(n),"enabled",{get:function(){return r},set:function(e){"boolean"===typeof e&&e!==r&&(r=e,this.trigger("enabledchange"))}}),i.enabled&&(n.enabled=i.enabled),n.loaded_=!0,n}return(0,l.default)(t,e),t}(Sn),Ln=function(e){function t(t){var n;void 0===t&&(t={});var i=Ht(t,{kind:bn[t.kind]||""});n=e.call(this,i)||this;var r=!1;return Object.defineProperty((0,c.default)(n),"selected",{get:function(){return r},set:function(e){"boolean"===typeof e&&e!==r&&(r=e,this.trigger("selectedchange"))}}),i.selected&&(n.selected=i.selected),n}return(0,l.default)(t,e),t}(Sn),Mn=0,Dn=1,Rn=2,Nn=3,Bn=function(e){function t(t){var n,i;void 0===t&&(t={}),n=e.call(this)||this;var r=new In(t);return n.kind=r.kind,n.src=r.src,n.srclang=r.language,n.label=r.label,n["default"]=r["default"],Object.defineProperties((0,c.default)(n),{readyState:{get:function(){return i}},track:{get:function(){return r}}}),i=Mn,r.addEventListener("loadeddata",(function(){i=Rn,n.trigger({type:"load",target:(0,c.default)(n)})})),n}return(0,l.default)(t,e),t}(Ct);Bn.prototype.allowedEvents_={load:"load"},Bn.NONE=Mn,Bn.LOADING=Dn,Bn.LOADED=Rn,Bn.ERROR=Nn;var Un={audio:{ListClass:fn,TrackClass:Pn,capitalName:"Audio"},video:{ListClass:mn,TrackClass:Ln,capitalName:"Video"},text:{ListClass:gn,TrackClass:In,capitalName:"Text"}};Object.keys(Un).forEach((function(e){Un[e].getterName=e+"Tracks",Un[e].privateName=e+"Tracks_"}));var Fn={remoteText:{ListClass:gn,TrackClass:In,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:vn,TrackClass:Bn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},$n=(0,s.default)({},Un,Fn);function Hn(e,t,n,i,r){void 0===r&&(r={});var a=e.textTracks();r.kind=t,n&&(r.label=n),i&&(r.language=i),r.tech=e;var o=new $n.text.TrackClass(r);return a.addTrack(o),o}Fn.names=Object.keys(Fn),Un.names=Object.keys(Un),$n.names=[].concat(Fn.names).concat(Un.names);var Vn=function(e){function t(t,n){var i;return void 0===t&&(t={}),void 0===n&&(n=function(){}),t.reportTouchActivity=!1,i=e.call(this,null,t,n)||this,i.onDurationChange_=function(e){return i.onDurationChange(e)},i.trackProgress_=function(e){return i.trackProgress(e)},i.trackCurrentTime_=function(e){return i.trackCurrentTime(e)},i.stopTrackingCurrentTime_=function(e){return i.stopTrackingCurrentTime(e)},i.disposeSourceHandler_=function(e){return i.disposeSourceHandler(e)},i.queuedHanders_=new Set,i.hasStarted_=!1,i.on("playing",(function(){this.hasStarted_=!0})),i.on("loadstart",(function(){this.hasStarted_=!1})),$n.names.forEach((function(e){var n=$n[e];t&&t[n.getterName]&&(i[n.privateName]=t[n.getterName])})),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===t["native"+e+"Tracks"]&&(i["featuresNative"+e+"Tracks"]=!1)})),!1===t.nativeCaptions||!1===t.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.preloadTextTracks=!1!==t.preloadTextTracks,i.autoRemoteTextTracks_=new $n.text.ListClass,i.initTrackListeners(),t.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}(0,l.default)(t,e);var n=t.prototype;return n.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",(function(){return t.setTimeout((function(){return t.triggerSourceset(e)}),1)})),this.trigger({src:e,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},n.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(wt(this,(function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)},n.onDurationChange=function(e){this.duration_=this.duration()},n.buffered=function(){return Qt(0,0)},n.bufferedPercent=function(){return Jt(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(Un.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},n.clearTracks=function(e){var t=this;e=[].concat(e),e.forEach((function(e){var n=t[e+"Tracks"]()||[],i=n.length;while(i--){var r=n[i];"text"===e&&t.removeRemoteTextTrack(r),n.removeTrack(r)}}))},n.cleanupAutoTextTracks=function(){var e=this.autoRemoteTextTracks_||[],t=e.length;while(t--){var n=e[t];this.removeRemoteTextTrack(n)}},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(e){return void 0!==e&&(this.error_=new Zt(e),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?Qt(0,0):Qt()},n.play=function(){},n.setScrubbing=function(){},n.scrubbing=function(){},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var e=this;Un.names.forEach((function(t){var n=Un[t],i=function(){e.trigger(t+"trackchange")},r=e[n.getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),e.on("dispose",(function(){r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)}))}))},n.addWebVttScript_=function(){var e=this;if(!a.default.WebVTT)if(o.default.body.contains(this.el())){if(!this.options_["vtt.js"]&&Y(f.default)&&Object.keys(f.default).length>0)return void this.trigger("vttjsloaded");var t=o.default.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){t.onload=null,t.onerror=null})),a.default.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),i=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();var a=function(){return e.trigger("texttrackchange")},o=function(){a();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",a),"showing"===n.mode&&n.addEventListener("cuechange",a)}};o(),t.addEventListener("change",o),t.addEventListener("addtrack",o),t.addEventListener("removetrack",o),this.on("dispose",(function(){n.off("addtrack",i),n.off("removetrack",r),t.removeEventListener("change",o),t.removeEventListener("addtrack",o),t.removeEventListener("removetrack",o);for(var e=0;e<t.length;e++){var s=t[e];s.removeEventListener("cuechange",a)}}))},n.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return Hn(this,e,t,n)},n.createRemoteTextTrack=function(e){var t=Ht(e,{tech:this});return new Fn.remoteTextEl.TrackClass(t)},n.addRemoteTextTrack=function(e,t){var n=this;void 0===e&&(e={});var i=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(F.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==t&&this.ready((function(){return n.autoRemoteTextTracks_.addTrack(i.track)})),i},n.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var e=this.options_.Promise||a.default.Promise;if(e)return e.reject()},n.disablePictureInPicture=function(){return!0},n.setDisablePictureInPicture=function(){},n.requestVideoFrameCallback=function(e){var t=this,n=ot();return!this.isReady_||this.paused()?(this.queuedHanders_.add(n),this.one("playing",(function(){t.queuedHanders_.has(n)&&(t.queuedHanders_["delete"](n),e())}))):this.requestNamedAnimationFrame(n,e),n},n.cancelVideoFrameCallback=function(e){this.queuedHanders_.has(e)?this.queuedHanders_["delete"](e):this.cancelNamedAnimationFrame(e)},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Ft(e),t.techs_[e]=n,t.techs_[Ut(e)]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return t.techs_&&t.techs_[e]?t.techs_[e]:(e=Ft(e),a.default&&a.default.videojs&&a.default.videojs[e]?(F.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),a.default.videojs[e]):void 0)},t}(Gt);$n.names.forEach((function(e){var t=$n[e];Vn.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),Vn.prototype.featuresVolumeControl=!0,Vn.prototype.featuresMuteControl=!0,Vn.prototype.featuresFullscreenResize=!1,Vn.prototype.featuresPlaybackRate=!1,Vn.prototype.featuresProgressEvents=!1,Vn.prototype.featuresSourceset=!1,Vn.prototype.featuresTimeupdateEvents=!1,Vn.prototype.featuresNativeTextTracks=!1,Vn.prototype.featuresVideoFrameCallback=!1,Vn.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var i=e.sourceHandlers;i||(i=e.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,t)},e.canPlayType=function(t){for(var n,i=e.sourceHandlers||[],r=0;r<i.length;r++)if(n=i[r].canPlayType(t),n)return n;return""},e.selectSourceHandler=function(t,n){for(var i,r=e.sourceHandlers||[],a=0;a<r.length;a++)if(i=r[a].canHandleSource(t,n),i)return r[a];return null},e.canPlaySource=function(t,n){var i=e.selectSourceHandler(t,n);return i?i.canHandleSource(t,n):""};var t=["seekable","seeking","duration"];t.forEach((function(e){var t=this[e];"function"===typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})}),e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:F.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Gt.registerComponent("Tech",Vn),Vn.registerTech("Tech",Vn),Vn.defaultTechOrder_=[];var qn={},zn={},Wn={};function Gn(e,t){qn[e]=qn[e]||[],qn[e].push(t)}function Yn(e,t,n){e.setTimeout((function(){return oi(t,qn[t.type],n,e)}),1)}function Xn(e,t){e.forEach((function(e){return e.setTech&&e.setTech(t)}))}function Kn(e,t,n){return e.reduceRight(ni(n),t[n]())}function Qn(e,t,n,i){return t[n](e.reduce(ni(n),i))}function Jn(e,t,n,i){void 0===i&&(i=null);var r="call"+Ft(n),a=e.reduce(ni(r),i),o=a===Wn,s=o?null:t[n](a);return ii(e,n,s,o),s}var Zn={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},ei={setCurrentTime:1,setMuted:1,setVolume:1},ti={play:1,pause:1};function ni(e){return function(t,n){return t===Wn?Wn:n[e]?n[e](t):t}}function ii(e,t,n,i){for(var r=e.length-1;r>=0;r--){var a=e[r];a[t]&&a[t](i,n)}}function ri(e){zn[e.id()]=null}function ai(e,t){var n=zn[e.id()],i=null;if(void 0===n||null===n)return i=t(e),zn[e.id()]=[[t,i]],i;for(var r=0;r<n.length;r++){var a=n[r],o=a[0],s=a[1];o===t&&(i=s)}return null===i&&(i=t(e),n.push([t,i])),i}function oi(e,t,n,i,r,a){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===a&&(a=!1);var o=t,s=o[0],u=o.slice(1);if("string"===typeof s)oi(e,qn[s],n,i,r,a);else if(s){var c=ai(i,s);if(!c.setSource)return r.push(c),oi(e,u,n,i,r,a);c.setSource(W({},e),(function(t,o){if(t)return oi(e,u,n,i,r,a);r.push(c),oi(o,e.type===o.type?u:qn[o.type],n,i,r,a)}))}else u.length?oi(e,u,n,i,r,a):a?n(e,r):oi(e,qn["*"],n,i,r,!0)}var si={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},ui=function(e){void 0===e&&(e="");var t=xn(e),n=si[t.toLowerCase()];return n||""},ci=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter((function(e){return e.src===t}));if(n.length)return n[0].type;for(var i=e.$$("source"),r=0;r<i.length;r++){var a=i[r];if(a.type&&a.src&&a.src===t)return a.type}return ui(t)},li=function e(t){if(Array.isArray(t)){var n=[];t.forEach((function(t){t=e(t),Array.isArray(t)?n=n.concat(t):G(t)&&n.push(t)})),t=n}else t="string"===typeof t&&t.trim()?[di({src:t})]:G(t)&&"string"===typeof t.src&&t.src&&t.src.trim()?[di(t)]:[];return t};function di(e){if(!e.type){var t=ui(e.src);t&&(e.type=t)}return e}var hi=function(e){function t(t,n,i){var r,a=Ht({createEl:!1},n);if(r=e.call(this,t,a,i)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)t.src(n.playerOptions.sources);else for(var o=0,s=n.playerOptions.techOrder;o<s.length;o++){var u=Ft(s[o]),c=Vn.getTech(u);if(u||(c=Gt.getComponent(u)),c&&c.isSupported()){t.loadTech_(u);break}}return r}return(0,l.default)(t,e),t}(Gt);Gt.registerComponent("MediaLoader",hi);var fi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.options_.controlText&&i.controlText(i.options_.controlText),i.handleMouseOver_=function(e){return i.handleMouseOver(e)},i.handleMouseOut_=function(e){return i.handleMouseOut(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.emitTapEvents(),i.enable(),i}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={}),t=W({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&F.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),n=W({role:"button"},n),this.tabIndex_=t.tabIndex;var i=ke(e,t,n);return i.appendChild(ke("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},n.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},n.createControlTextEl=function(e){return this.controlTextEl_=ke("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},n.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,Ce(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!==typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!==typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},n.handleLanguagechange=function(){this.controlText(this.controlText_)},n.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(t){u.default.isEventKey(t,"Space")||u.default.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(Gt);Gt.registerComponent("ClickableComponent",fi);var pi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update(),i.update_=function(e){return i.update(e)},t.on("posterchange",i.update_),i}(0,l.default)(t,e);var n=t.prototype;return n.dispose=function(){this.player().off("posterchange",this.update_),e.prototype.dispose.call(this)},n.createEl=function(){var e=ke("div",{className:"vjs-poster",tabIndex:-1});return e},n.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},n.setSrc=function(e){var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t},n.handleClick=function(e){if(this.player_.controls()){var t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(ue||ae)&&t||this.player_.tech(!0).focus(),this.player_.paused()?nn(this.player_.play()):this.player_.pause()}},t}(fi);Gt.registerComponent("PosterImage",pi);var mi="#222",gi="#ccc",vi={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function yi(e,t){var n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function bi(e,t,n){try{e.style[t]=n}catch(i){return}}var _i=function(e){function t(t,n,i){var r;r=e.call(this,t,n,i)||this;var o=function(e){return r.updateDisplay(e)};return t.on("loadstart",(function(e){return r.toggleDisplay(e)})),t.on("texttrackchange",o),t.on("loadedmetadata",(function(e){return r.preselectTrack(e)})),t.ready(wt((0,c.default)(r),(function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",o),t.on("playerresize",o),a.default.addEventListener("orientationchange",o),t.on("dispose",(function(){return a.default.removeEventListener("orientationchange",o)}));for(var e=this.options_.playerOptions.tracks||[],n=0;n<e.length;n++)this.player_.addRemoteTextTrack(e[n],!0);this.preselectTrack()}}))),r}(0,l.default)(t,e);var n=t.prototype;return n.preselectTrack=function(){for(var e,t,n,i={captions:1,subtitles:1},r=this.player_.textTracks(),a=this.player_.cache_.selectedLanguage,o=0;o<r.length;o++){var s=r[o];a&&a.enabled&&a.language&&a.language===s.language&&s.kind in i?s.kind===a.kind?n=s:n||(n=s):a&&!a.enabled?(n=null,e=null,t=null):s["default"]&&("descriptions"!==s.kind||e?s.kind in i&&!t&&(t=s):e=s)}n?n.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"===typeof a.default.WebVTT&&a.default.WebVTT.processCues(a.default,[],this.el_)},n.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var n=[],i=0;i<e.length;++i){var r=e[i];"showing"===r.mode&&n.push(r)}this.updateForTrack(n)}else{var a=null,o=null,s=e.length;while(s--){var u=e[s];"showing"===u.mode&&("descriptions"===u.kind?a=u:o=u)}o?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(o)):a&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(a))}},n.updateDisplayState=function(e){var t=this.player_.textTrackSettings.getValues(),n=e.activeCues,i=n.length;while(i--){var r=n[i];if(r){var o=r.displayState;if(t.color&&(o.firstChild.style.color=t.color),t.textOpacity&&bi(o.firstChild,"color",yi(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(o.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&bi(o.firstChild,"backgroundColor",yi(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?bi(o,"backgroundColor",yi(t.windowColor,t.windowOpacity)):o.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?o.firstChild.style.textShadow="2px 2px 3px "+mi+", 2px 2px 4px "+mi+", 2px 2px 5px "+mi:"raised"===t.edgeStyle?o.firstChild.style.textShadow="1px 1px "+mi+", 2px 2px "+mi+", 3px 3px "+mi:"depressed"===t.edgeStyle?o.firstChild.style.textShadow="1px 1px "+gi+", 0 1px "+gi+", -1px -1px "+mi+", 0 -1px "+mi:"uniform"===t.edgeStyle&&(o.firstChild.style.textShadow="0 0 4px "+mi+", 0 0 4px "+mi+", 0 0 4px "+mi+", 0 0 4px "+mi)),t.fontPercent&&1!==t.fontPercent){var s=a.default.parseFloat(o.style.fontSize);o.style.fontSize=s*t.fontPercent+"px",o.style.height="auto",o.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?o.firstChild.style.fontVariant="small-caps":o.firstChild.style.fontFamily=vi[t.fontFamily])}}},n.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"===typeof a.default.WebVTT&&!e.every((function(e){return!e.activeCues}))){for(var t=[],n=0;n<e.length;++n)for(var i=e[n],r=0;r<i.activeCues.length;++r)t.push(i.activeCues[r]);a.default.WebVTT.processCues(a.default,t,this.el_);for(var o=0;o<e.length;++o){for(var s=e[o],u=0;u<s.activeCues.length;++u){var c=s.activeCues[u].displayState;Ae(c,"vjs-text-track-cue"),Ae(c,"vjs-text-track-cue-"+(s.language?s.language:o)),s.language&&Me(c,"lang",s.language)}this.player_.textTrackSettings&&this.updateDisplayState(s)}}},t}(Gt);Gt.registerComponent("TextTrackDisplay",_i);var Ti=function(e){function t(){return e.apply(this,arguments)||this}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"Video Player"),i=ke("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[n])}),r=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r},t}(Gt);Gt.registerComponent("LoadingSpinner",Ti);var wi=function(e){function t(){return e.apply(this,arguments)||this}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={}),e="button",t=W({className:this.buildCSSClass()},t),n=W({type:"button"},n);var i=ke(e,t,n);return i.appendChild(ke("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},n.addChild=function(e,t){void 0===t&&(t={});var n=this.constructor.name;return F.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),Gt.prototype.addChild.call(this,e,t)},n.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(t){u.default.isEventKey(t,"Space")||u.default.isEventKey(t,"Enter")?t.stopPropagation():e.prototype.handleKeyDown.call(this,t)},t}(fi);Gt.registerComponent("Button",wi);var Si=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.mouseused_=!1,i.on("mousedown",(function(e){return i.handleMouseDown(e)})),i}(0,l.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return nn(t),void(!this.player_.tech(!0)||(ue||ae)&&n||this.player_.tech(!0).focus())}var i=this.player_.getChild("controlBar"),r=i&&i.getChild("playToggle");if(r){var a=function(){return r.focus()};tn(t)?t.then(a,(function(){})):this.setTimeout(a,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},n.handleMouseDown=function(e){this.mouseused_=!0},t}(wi);Si.prototype.controlText_="Play Video",Gt.registerComponent("BigPlayButton",Si);var ki=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.controlText(n&&n.controlText||i.localize("Close")),i}(0,l.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(t){u.default.isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(wi);Gt.registerComponent("CloseButton",ki);var Ci=function(e){function t(t,n){var i;return void 0===n&&(n={}),i=e.call(this,t,n)||this,n.replay=void 0===n.replay||n.replay,i.on(t,"play",(function(e){return i.handlePlay(e)})),i.on(t,"pause",(function(e){return i.handlePause(e)})),n.replay&&i.on(t,"ended",(function(e){return i.handleEnded(e)})),i}(0,l.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?nn(this.player_.play()):this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",(function(e){return t.handleSeeked(e)}))},t}(wi);Ci.prototype.controlText_="Play",Gt.registerComponent("PlayToggle",Ci);var xi=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),i=Math.floor(e/60%60),r=Math.floor(e/3600),a=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=i=n="-"),r=r>0||o>0?r+":":"",i=((r||a>=10)&&i<10?"0"+i:i)+":",n=n<10?"0"+n:n,r+i+n},Ei=xi;function Ai(e){Ei=e}function Oi(){Ei=xi}function ji(e,t){return void 0===t&&(t=e),Ei(e,t)}var Ii=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.on(t,["timeupdate","ended"],(function(e){return i.updateContent(e)})),i.updateTextNode_(),i}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(){var t=this.buildCSSClass(),n=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control"}),i=ke("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return n.appendChild(i),this.contentEl_=ke("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(e){var t=this;void 0===e&&(e=0),e=ji(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(function(){if(t.contentEl_){var e=t.textNode_;e&&t.contentEl_.firstChild!==e&&(e=null,F.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=o.default.createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}})))},n.updateContent=function(e){},t}(Gt);Ii.prototype.labelText_="Time",Ii.prototype.controlText_="Time",Gt.registerComponent("TimeDisplay",Ii);var Pi=function(e){function t(){return e.apply(this,arguments)||this}(0,l.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)},t}(Ii);Pi.prototype.labelText_="Current Time",Pi.prototype.controlText_="Current Time",Gt.registerComponent("CurrentTimeDisplay",Pi);var Li=function(e){function t(t,n){var i;i=e.call(this,t,n)||this;var r=function(e){return i.updateContent(e)};return i.on(t,"durationchange",r),i.on(t,"loadstart",r),i.on(t,"loadedmetadata",r),i}(0,l.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(Ii);Li.prototype.labelText_="Duration",Li.prototype.controlText_="Duration",Gt.registerComponent("DurationDisplay",Li);var Mi=function(e){function t(){return e.apply(this,arguments)||this}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),n=e.prototype.createEl.call(this,"div"),i=e.prototype.createEl.call(this,"span",{textContent:"/"});return n.appendChild(i),t.appendChild(n),t},t}(Gt);Gt.registerComponent("TimeDivider",Mi);var Di=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.on(t,"durationchange",(function(e){return i.updateContent(e)})),i}(0,l.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var t=e.prototype.createEl.call(this);return!1!==this.options_.displayNegative&&t.insertBefore(ke("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},n.updateContent=function(e){var t;"number"===typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(Ii);Di.prototype.labelText_="Remaining Time",Di.prototype.controlText_="Remaining Time",Gt.registerComponent("RemainingTimeDisplay",Di);var Ri=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.updateShowing(),i.on(i.player(),"durationchange",(function(e){return i.updateShowing(e)})),i}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=ke("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(ke("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(o.default.createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(Gt);Gt.registerComponent("LiveDisplay",Ri);var Ni=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.updateLiveEdgeStatus(),i.player_.liveTracker&&(i.updateLiveEdgeStatusHandler_=function(e){return i.updateLiveEdgeStatus(e)},i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatusHandler_)),i}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=ke("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}(wi);Ni.prototype.controlText_="Seek to live, currently playing live",Gt.registerComponent("SeekToLive",Ni);var Bi=function(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))},Ui=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.handleMouseDown_=function(e){return i.handleMouseDown(e)},i.handleMouseUp_=function(e){return i.handleMouseUp(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleMouseMove_=function(e){return i.handleMouseMove(e)},i.update_=function(e){return i.update(e)},i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}(0,l.default)(t,e);var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),n.className=n.className+" vjs-slider",n=W({tabIndex:0},n),i=W({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),e.prototype.createEl.call(this,t,n,i)},n.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||oe||e.preventDefault(),Re(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;Ne(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},n.update=function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",(function(){var n=e.vertical()?"height":"width";e.bar.el().style[n]=(100*t).toFixed(2)+"%"}))),t}},n.getProgress=function(){return Number(Bi(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(e){var t=Fe(this.el_,e);return this.vertical()?t.y:t.x},n.handleKeyDown=function(t){u.default.isEventKey(t,"Left")||u.default.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):u.default.isEventKey(t,"Right")||u.default.isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){e.stopPropagation(),e.preventDefault()},n.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(Gt);Gt.registerComponent("Slider",Ui);var Fi=function(e,t){return Bi(e/t*100,0,100).toFixed(2)+"%"},$i=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.partEls_=[],i.on(t,"progress",(function(e){return i.update(e)})),i}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=ke("span",{className:"vjs-control-text"}),i=ke("span",{textContent:this.localize("Loaded")}),r=o.default.createTextNode(": ");return this.percentageEl_=ke("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(n),n.appendChild(i),n.appendChild(r),n.appendChild(this.percentageEl_),t},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},n.update=function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",(function(){var e=t.player_.liveTracker,n=t.player_.buffered(),i=e&&e.isLive()?e.seekableEnd():t.player_.duration(),r=t.player_.bufferedEnd(),a=t.partEls_,o=Fi(r,i);t.percent_!==o&&(t.el_.style.width=o,Ce(t.percentageEl_,o),t.percent_=o);for(var s=0;s<n.length;s++){var u=n.start(s),c=n.end(s),l=a[s];l||(l=t.el_.appendChild(ke()),a[s]=l),l.dataset.start===u&&l.dataset.end===c||(l.dataset.start=u,l.dataset.end=c,l.style.left=Fi(u,r),l.style.width=Fi(c-u,r))}for(var d=a.length;d>n.length;d--)t.el_.removeChild(a[d-1]);a.length=n.length}))},t}(Gt);Gt.registerComponent("LoadProgressBar",$i);var Hi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=St(wt((0,c.default)(i),i.update),Tt),i}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n){var i=Ue(this.el_),r=Be(this.player_.el()),a=e.width*t;if(r&&i){var o=e.left-r.left+a,s=e.width-a+(r.right-e.right),u=i.width/2;o<u?u+=u-o:s<u&&(u=s),u<0?u=0:u>i.width&&(u=i.width),u=Math.round(u),this.el_.style.right="-"+u+"px",this.write(n)}},n.write=function(e){Ce(this.el_,e)},n.updateTime=function(e,t,n,i){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",(function(){var a,o=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var s=r.player_.liveTracker.liveWindow(),u=s-t*s;a=(u<1?"":"-")+ji(u,s)}else a=ji(n,o);r.update(e,t,a),i&&i()}))},t}(Gt);Gt.registerComponent("TimeTooltip",Hi);var Vi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=St(wt((0,c.default)(i),i.update),Tt),i}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(e,t){var n=this.getChild("timeTooltip");if(n){var i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,i)}},t}(Gt);Vi.prototype.options_={children:[]},pe||te||Vi.prototype.options_.children.push("timeTooltip"),Gt.registerComponent("PlayProgressBar",Vi);var qi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=St(wt((0,c.default)(i),i.update),Tt),i}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this,i=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,i,(function(){n.el_.style.left=e.width*t+"px"}))},t}(Gt);qi.prototype.options_={children:["timeTooltip"]},Gt.registerComponent("MouseTimeDisplay",qi);var zi=5,Wi=12,Gi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.setEventHandlers_(),i}(0,l.default)(t,e);var n=t.prototype;return n.setEventHandlers_=function(){var e=this;this.update_=wt(this,this.update),this.update=St(this.update_,Tt),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in o.default&&"visibilityState"in o.default&&this.on(o.default,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){"hidden"===o.default.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,Tt))},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(t){var n=this;if("hidden"!==o.default.visibilityState){var i=e.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",(function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),t=n.player_.liveTracker,r=n.player_.duration();t&&t.isLive()&&(r=n.player_.liveTracker.liveCurrentTime()),n.percent_!==i&&(n.el_.setAttribute("aria-valuenow",(100*i).toFixed(2)),n.percent_=i),n.currentTime_===e&&n.duration_===r||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[ji(e,r),ji(r,r)],"{1} of {2}")),n.currentTime_=e,n.duration_=r),n.bar&&n.bar.update(Be(n.el()),n.getProgress())})),i}},n.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var e,t=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(e=(t-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},n.handleMouseDown=function(t){We(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e,t){if(void 0===t&&(t=!1),We(e)){var n;t||this.player_.scrubbing()||this.player_.scrubbing(!0);var i=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(i>=.99)return void r.seekToLiveEdge();var a=r.seekableStart(),o=r.liveCurrentTime();if(n=a+i*r.liveWindow(),n>=o&&(n=o),n<=a&&(n=a+.1),n===1/0)return}else n=i*this.player_.duration(),n===this.player_.duration()&&(n-=.1);this.userSeek_(n)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?nn(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+zi)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-zi)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){var n=this.player_.liveTracker;if(u.default.isEventKey(t,"Space")||u.default.isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(u.default.isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(u.default.isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test((0,u.default)(t))){t.preventDefault(),t.stopPropagation();var i=10*(u.default.codes[(0,u.default)(t)]-u.default.codes["0"])/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else u.default.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-zi*Wi)):u.default.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+zi*Wi)):e.prototype.handleKeyDown.call(this,t)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in o.default&&"visibilityState"in o.default&&this.off(o.default,"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(Ui);Gi.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},pe||te||Gi.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Gt.registerComponent("SeekBar",Gi);var Yi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.handleMouseMove=St(wt((0,c.default)(i),i.handleMouseMove),Tt),i.throttledHandleMouseSeek=St(wt((0,c.default)(i),i.handleMouseSeek),Tt),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.handleMouseDownHandler_=function(e){return i.handleMouseDown(e)},i.enable(),i}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("playProgressBar"),i=t.getChild("mouseTimeDisplay");if(n||i){var r=t.el(),a=Ue(r),o=Fe(r,e).x;o=Bi(o,0,1),i&&i.update(a,o),n&&n.update(a,t.getProgress())}}},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_},n.disable=function(){if(this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&nn(this.player_.play())}},n.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},t}(Gt);Yi.prototype.options_={children:["seekBar"]},Gt.registerComponent("ProgressControl",Yi);var Xi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.on(t,["enterpictureinpicture","leavepictureinpicture"],(function(e){return i.handlePictureInPictureChange(e)})),i.on(t,["disablepictureinpicturechanged","loadedmetadata"],(function(e){return i.handlePictureInPictureEnabledChange(e)})),i.on(t,["loadedmetadata","audioonlymodechange","audiopostermodechange"],(function(){var e="audio"===t.currentType().substring(0,5);e||t.audioPosterMode()||t.audioOnlyMode()?(t.isInPictureInPicture()&&t.exitPictureInPicture(),i.hide()):i.show()})),i.disable(),i}(0,l.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){o.default.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(wi);Xi.prototype.controlText_="Picture-in-Picture",Gt.registerComponent("PictureInPictureToggle",Xi);var Ki=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.on(t,"fullscreenchange",(function(e){return i.handleFullscreenChange(e)})),!1===o.default[t.fsApi_.fullscreenEnabled]&&i.disable(),i}(0,l.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(wi);Ki.prototype.controlText_="Fullscreen",Gt.registerComponent("FullscreenToggle",Ki);var Qi=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))},Ji=function(e){function t(){return e.apply(this,arguments)||this}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return t.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),t},t}(Gt);Gt.registerComponent("VolumeLevel",Ji);var Zi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=St(wt((0,c.default)(i),i.update),Tt),i}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n,i){if(!n){var r=Be(this.el_),a=Be(this.player_.el()),o=e.width*t;if(!a||!r)return;var s=e.left-a.left+o,u=e.width-o+(a.right-e.right),c=r.width/2;s<c?c+=c-s:u<c&&(c=u),c<0?c=0:c>r.width&&(c=r.width),this.el_.style.right="-"+c+"px"}this.write(i+"%")},n.write=function(e){Ce(this.el_,e)},n.updateVolume=function(e,t,n,i,r){var a=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(function(){a.update(e,t,n,i.toFixed(0)),r&&r()}))},t}(Gt);Gt.registerComponent("VolumeLevelTooltip",Zi);var er=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=St(wt((0,c.default)(i),i.update),Tt),i}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t,n){var i=this,r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,r,(function(){n?i.el_.style.bottom=e.height*t+"px":i.el_.style.left=e.width*t+"px"}))},t}(Gt);er.prototype.options_={children:["volumeLevelTooltip"]},Gt.registerComponent("MouseVolumeLevelDisplay",er);var tr=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.on("slideractive",(function(e){return i.updateLastVolume_(e)})),i.on(t,"volumechange",(function(e){return i.updateARIAAttributes(e)})),t.ready((function(){return i.updateARIAAttributes()})),i}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(t){We(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var n=this.el(),i=Be(n),r=this.vertical(),a=Fe(n,e);a=r?a.y:a.x,a=Bi(a,0,1),t.update(i,a,r)}We(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(Ui);tr.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},pe||te||tr.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),tr.prototype.playerEvent="volumechange",Gt.registerComponent("VolumeBar",tr);var nr=function(e){function t(t,n){var i;return void 0===n&&(n={}),n.vertical=n.vertical||!1,("undefined"===typeof n.volumeBar||Y(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),i=e.call(this,t,n)||this,Qi((0,c.default)(i),t),i.throttledHandleMouseMove=St(wt((0,c.default)(i),i.handleMouseMove),Tt),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.on("mousedown",(function(e){return i.handleMouseDown(e)})),i.on("touchstart",(function(e){return i.handleMouseDown(e)})),i.on("mousemove",(function(e){return i.handleMouseMove(e)})),i.on(i.volumeBar,["focus","slideractive"],(function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")})),i.on(i.volumeBar,["blur","sliderinactive"],(function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")})),i}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},n.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(Gt);nr.prototype.options_={children:["volumeBar"]},Gt.registerComponent("VolumeControl",nr);var ir=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))},rr=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,ir((0,c.default)(i),t),i.on(t,["loadstart","volumechange"],(function(e){return i.update(e)})),i}(0,l.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var i=n<.1?.1:n;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;pe&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)Oe(this.el_,"vjs-vol-"+n);Ae(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume(),t=e?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},t}(wi);rr.prototype.controlText_="Mute",Gt.registerComponent("MuteToggle",rr);var ar=function(e){function t(t,n){var i;return void 0===n&&(n={}),"undefined"!==typeof n.inline?n.inline=n.inline:n.inline=!0,("undefined"===typeof n.volumeControl||Y(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),i=e.call(this,t,n)||this,i.handleKeyPressHandler_=function(e){return i.handleKeyPress(e)},i.on(t,["loadstart"],(function(e){return i.volumePanelState_(e)})),i.on(i.muteToggle,"keyup",(function(e){return i.handleKeyPress(e)})),i.on(i.volumeControl,"keyup",(function(e){return i.handleVolumeControlKeyUp(e)})),i.on("keydown",(function(e){return i.handleKeyPress(e)})),i.on("mouseover",(function(e){return i.handleMouseOver(e)})),i.on("mouseout",(function(e){return i.handleMouseOut(e)})),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}(0,l.default)(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){u.default.isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),pt(o.default,"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),mt(o.default,"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(e){u.default.isEventKey(e,"Esc")&&this.handleMouseOut()},t}(Gt);ar.prototype.options_={children:["muteToggle","volumeControl"]},Gt.registerComponent("VolumePanel",ar);var or=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,n&&(i.menuButton_=n.menuButton),i.focusedChild_=-1,i.on("keydown",(function(e){return i.handleKeyDown(e)})),i.boundHandleBlur_=function(e){return i.handleBlur(e)},i.boundHandleTapClick_=function(e){return i.handleTapClick(e)},i}(0,l.default)(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof Gt&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof Gt&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(t){"string"===typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},n.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},n.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=ke(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),pt(n,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),n},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(e){var t=e.relatedTarget||o.default.activeElement;if(!this.children().some((function(e){return e.el()===t}))){var n=this.menuButton_;n&&n.buttonPressed_&&t!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var n=t.filter((function(t){return t.el()===e.target}))[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(e){u.default.isEventKey(e,"Left")||u.default.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(u.default.isEventKey(e,"Right")||u.default.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice(),n=t.length&&t[0].hasClass("vjs-menu-title");n&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(Gt);Gt.registerComponent("Menu",or);var sr=function(e){function t(t,n){var i;void 0===n&&(n={}),i=e.call(this,t,n)||this,i.menuButton_=new wi(t,n),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var r=wi.prototype.buildCSSClass();i.menuButton_.el_.className=i.buildCSSClass()+" "+r,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0;var a=function(e){return i.handleClick(e)};return i.handleMenuKeyUp_=function(e){return i.handleMenuKeyUp(e)},i.on(i.menuButton_,"tap",a),i.on(i.menuButton_,"click",a),i.on(i.menuButton_,"keydown",(function(e){return i.handleKeyDown(e)})),i.on(i.menuButton_,"mouseenter",(function(){i.addClass("vjs-hover"),i.menu.show(),pt(o.default,"keyup",i.handleMenuKeyUp_)})),i.on("mouseleave",(function(e){return i.handleMouseLeave(e)})),i.on("keydown",(function(e){return i.handleSubmenuKeyDown(e)})),i}(0,l.default)(t,e);var n=t.prototype;return n.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))},n.createMenu=function(){var e=new or(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=ke("li",{className:"vjs-menu-title",textContent:Ft(this.options_.title),tabIndex:-1}),n=new Gt(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)e.addItem(this.items[i]);return e},n.createItems=function(){},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var t="vjs-menu-button";!0===this.options_.inline?t+="-inline":t+="-popup";var n=wi.prototype.buildCSSClass();return"vjs-menu-button "+t+" "+n+" "+e.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},n.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},n.dispose=function(){this.handleMouseLeave(),e.prototype.dispose.call(this)},n.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(e){this.removeClass("vjs-hover"),mt(o.default,"keyup",this.handleMenuKeyUp_)},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(e){u.default.isEventKey(e,"Esc")||u.default.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),u.default.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(u.default.isEventKey(e,"Up")||u.default.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(e){(u.default.isEventKey(e,"Esc")||u.default.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},n.handleSubmenuKeyDown=function(e){(u.default.isEventKey(e,"Esc")||u.default.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),u.default.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),pe&&we())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(Gt);Gt.registerComponent("MenuButton",sr);var ur=function(e){function t(t,n){var i,r=n.tracks;if(i=e.call(this,t,n)||this,i.items.length<=1&&i.hide(),!r)return(0,c.default)(i);var a=wt((0,c.default)(i),i.update);return r.addEventListener("removetrack",a),r.addEventListener("addtrack",a),r.addEventListener("labelchange",a),i.player_.on("ready",a),i.player_.on("dispose",(function(){r.removeEventListener("removetrack",a),r.removeEventListener("addtrack",a),r.removeEventListener("labelchange",a)})),i}return(0,l.default)(t,e),t}(sr);Gt.registerComponent("TrackButton",ur);var cr=["Tab","Esc","Up","Down","Right","Left"],lr=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.selectable=n.selectable,i.isSelected_=n.selected||!1,i.multiSelectable=n.multiSelectable,i.selected(i.isSelected_),i.selectable?i.multiSelectable?i.el_.setAttribute("role","menuitemcheckbox"):i.el_.setAttribute("role","menuitemradio"):i.el_.setAttribute("role","menuitem"),i}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(t,n,i){this.nonIconControl=!0;var r=e.prototype.createEl.call(this,"li",W({className:"vjs-menu-item",tabIndex:-1},n),i);return r.replaceChild(ke("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),r.querySelector(".vjs-icon-placeholder")),r},n.handleKeyDown=function(t){cr.some((function(e){return u.default.isEventKey(t,e)}))||e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){this.selected(!0)},n.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(fi);Gt.registerComponent("MenuItem",lr);var dr=function(e){function t(t,n){var i,r=n.track,s=t.textTracks();n.label=r.label||r.language||"Unknown",n.selected="showing"===r.mode,i=e.call(this,t,n)||this,i.track=r,i.kinds=(n.kinds||[n.kind||i.track.kind]).filter(Boolean);var u,l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleTracksChange.apply((0,c.default)(i),t)},d=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleSelectedLanguageChange.apply((0,c.default)(i),t)};(t.on(["loadstart","texttrackchange"],l),s.addEventListener("change",l),s.addEventListener("selectedlanguagechange",d),i.on("dispose",(function(){t.off(["loadstart","texttrackchange"],l),s.removeEventListener("change",l),s.removeEventListener("selectedlanguagechange",d)})),void 0===s.onchange)&&i.on(["tap","click"],(function(){if("object"!==typeof a.default.Event)try{u=new a.default.Event("change")}catch(e){}u||(u=o.default.createEvent("Event"),u.initEvent("change",!0,!0)),s.dispatchEvent(u)}));return i.handleTracksChange(),i}(0,l.default)(t,e);var n=t.prototype;return n.handleClick=function(t){var n=this.track,i=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),i)for(var r=0;r<i.length;r++){var a=i[r];-1!==this.kinds.indexOf(a.kind)&&(a===n?"showing"!==a.mode&&(a.mode="showing"):"disabled"!==a.mode&&(a.mode="disabled"))}},n.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},n.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(lr);Gt.registerComponent("TextTrackMenuItem",dr);var hr=function(e){function t(t,n){return n.track={player:t,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,e.call(this,t,n)||this}(0,l.default)(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var a=t[i];if(this.options_.kinds.indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var a=t[i];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(dr);Gt.registerComponent("OffTextTrackMenuItem",hr);var fr=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.textTracks(),e.call(this,t,n)||this}(0,l.default)(t,e);var n=t.prototype;return n.createItems=function(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t=dr),this.label_&&(n=this.label_+" off"),e.push(new hr(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<i.length;r++){var a=i[r];if(this.kinds_.indexOf(a.kind)>-1){var o=new t(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});o.addClass("vjs-"+a.kind+"-menu-item"),e.push(o)}}return e},t}(ur);Gt.registerComponent("TextTrackButton",fr);var pr=function(e){function t(t,n){var i,r=n.track,a=n.cue,o=t.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=a.text,n.selected=a.startTime<=o&&o<a.endTime,i=e.call(this,t,n)||this,i.track=r,i.cue=a,i}(0,l.default)(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime)},t}(lr);Gt.registerComponent("ChaptersTrackMenuItem",pr);var mr=function(e){function t(t,n,i){var r;return r=e.call(this,t,n,i)||this,r.selectCurrentItem_=function(){r.items.forEach((function(e){e.selected(r.track_.activeCues[0]===e.cue)}))},r}(0,l.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},n.update=function(t){if(!t||!t.track||"chapters"===t.track.kind){var n=this.findChaptersTrack();n!==this.track_?(this.setTrack(n),e.prototype.update.call(this)):(!this.items||n&&n.cues&&n.cues.length!==this.items.length)&&e.prototype.update.call(this)}},n.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}},n.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(Ft(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,i=t.length;n<i;n++){var r=t[n],a=new pr(this.player_,{track:this.track_,cue:r});e.push(a)}return e},t}(fr);mr.prototype.kind_="chapters",mr.prototype.controlText_="Chapters",Gt.registerComponent("ChaptersButton",mr);var gr=function(e){function t(t,n,i){var r;r=e.call(this,t,n,i)||this;var a=t.textTracks(),o=wt((0,c.default)(r),r.handleTracksChange);return a.addEventListener("change",o),r.on("dispose",(function(){a.removeEventListener("change",o)})),r}(0,l.default)(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,i=0,r=t.length;i<r;i++){var a=t[i];if(a.kind!==this.kind_&&"showing"===a.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(fr);gr.prototype.kind_="descriptions",gr.prototype.controlText_="Descriptions",Gt.registerComponent("DescriptionsButton",gr);var vr=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}(0,l.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(fr);vr.prototype.kind_="subtitles",vr.prototype.controlText_="Subtitles",Gt.registerComponent("SubtitlesButton",vr);var yr=function(e){function t(t,n){var i;return n.track={player:t,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",i=e.call(this,t,n)||this,i.addClass("vjs-texttrack-settings"),i.controlText(", opens "+n.kind+" settings dialog"),i}(0,l.default)(t,e);var n=t.prototype;return n.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(dr);Gt.registerComponent("CaptionSettingsMenuItem",yr);var br=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}(0,l.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new yr(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(fr);br.prototype.kind_="captions",br.prototype.controlText_="Captions",Gt.registerComponent("CaptionsButton",br);var _r=function(e){function t(){return e.apply(this,arguments)||this}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(t,n,i){var r=e.prototype.createEl.call(this,t,n,i),a=r.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(a.appendChild(ke("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(ke("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),r},t}(dr);Gt.registerComponent("SubsCapsMenuItem",_r);var Tr=function(e){function t(t,n){var i;return void 0===n&&(n={}),i=e.call(this,t,n)||this,i.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(i.player_.language_)>-1&&(i.label_="captions"),i.menuButton_.controlText(Ft(i.label_)),i}(0,l.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new yr(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,_r),t},t}(fr);Tr.prototype.kinds_=["captions","subtitles"],Tr.prototype.controlText_="Subtitles",Gt.registerComponent("SubsCapsButton",Tr);var wr=function(e){function t(t,n){var i,r=n.track,a=t.audioTracks();n.label=r.label||r.language||"Unknown",n.selected=r.enabled,i=e.call(this,t,n)||this,i.track=r,i.addClass("vjs-"+r.kind+"-menu-item");var o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleTracksChange.apply((0,c.default)(i),t)};return a.addEventListener("change",o),i.on("dispose",(function(){a.removeEventListener("change",o)})),i}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(t,n,i){var r=e.prototype.createEl.call(this,t,n,i),a=r.querySelector(".vjs-menu-item-text");return"main-desc"===this.options_.track.kind&&(a.appendChild(ke("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(ke("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),r},n.handleClick=function(t){if(e.prototype.handleClick.call(this,t),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks)for(var n=this.player_.audioTracks(),i=0;i<n.length;i++){var r=n[i];r!==this.track&&(r.enabled=r===this.track)}},n.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(lr);Gt.registerComponent("AudioTrackMenuItem",wr);var Sr=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.audioTracks(),e.call(this,t,n)||this}(0,l.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++){var i=t[n];e.push(new wr(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return e},t}(ur);Sr.prototype.controlText_="Audio Track",Gt.registerComponent("AudioTrackButton",Sr);var kr=function(e){function t(t,n){var i,r=n.rate,a=parseFloat(r,10);return n.label=r,n.selected=a===t.playbackRate(),n.selectable=!0,n.multiSelectable=!1,i=e.call(this,t,n)||this,i.label=r,i.rate=a,i.on(t,"ratechange",(function(e){return i.update(e)})),i}(0,l.default)(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(lr);kr.prototype.contentElType="button",Gt.registerComponent("PlaybackRateMenuItem",kr);var Cr=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.menuButton_.el_.setAttribute("aria-describedby",i.labelElId_),i.updateVisibility(),i.updateLabel(),i.on(t,"loadstart",(function(e){return i.updateVisibility(e)})),i.on(t,"ratechange",(function(e){return i.updateLabel(e)})),i.on(t,"playbackrateschange",(function(e){return i.handlePlaybackRateschange(e)})),i}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=ke("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),t.appendChild(this.labelEl_),t},n.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){for(var e=this.playbackRates(),t=[],n=e.length-1;n>=0;n--)t.push(new kr(this.player(),{rate:e[n]+"x"}));return t},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(e){var t=this.player().playbackRate(),n=this.playbackRates(),i=n.indexOf(t),r=(i+1)%n.length;this.player().playbackRate(n[r])},n.handlePlaybackRateschange=function(e){this.update()},n.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},t}(sr);Cr.prototype.controlText_="Playback Rate",Gt.registerComponent("PlaybackRateMenuButton",Cr);var xr=function(e){function t(){return e.apply(this,arguments)||this}(0,l.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(t,n,i){return void 0===t&&(t="div"),void 0===n&&(n={}),void 0===i&&(i={}),n.className||(n.className=this.buildCSSClass()),e.prototype.createEl.call(this,t,n,i)},t}(Gt);Gt.registerComponent("Spacer",xr);var Er=function(e){function t(){return e.apply(this,arguments)||this}(0,l.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:" "})},t}(xr);Gt.registerComponent("CustomControlSpacer",Er);var Ar=function(e){function t(){return e.apply(this,arguments)||this}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(Gt);Ar.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in o.default&&Ar.prototype.options_.children.splice(Ar.prototype.options_.children.length-1,0,"pictureInPictureToggle"),Gt.registerComponent("ControlBar",Ar);var Or=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.on(t,"error",(function(e){return i.open(e)})),i}(0,l.default)(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(cn);Or.prototype.options_=(0,s.default)({},cn.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Gt.registerComponent("ErrorDisplay",Or);var jr="vjs-text-track-settings",Ir=["#000","Black"],Pr=["#00F","Blue"],Lr=["#0FF","Cyan"],Mr=["#0F0","Green"],Dr=["#F0F","Magenta"],Rr=["#F00","Red"],Nr=["#FFF","White"],Br=["#FF0","Yellow"],Ur=["1","Opaque"],Fr=["0.5","Semi-Transparent"],$r=["0","Transparent"],Hr={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Ir,Nr,Rr,Mr,Pr,Br,Dr,Lr]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Ur,Fr,$r]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Nr,Ir,Rr,Mr,Pr,Br,Dr,Lr]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Ur,Fr]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[$r,Fr,Ur]}};function Vr(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}function qr(e,t){var n=e.options[e.options.selectedIndex].value;return Vr(n,t)}function zr(e,t,n){if(t)for(var i=0;i<e.options.length;i++)if(Vr(e.options[i].value,n)===t){e.selectedIndex=i;break}}Hr.windowColor.options=Hr.backgroundColor.options;var Wr=function(e){function t(t,n){var i;return n.temporary=!1,i=e.call(this,t,n)||this,i.updateDisplay=i.updateDisplay.bind((0,c.default)(i)),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=ke("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===n.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",(function(){i.saveSettings(),i.close()})),i.on(i.$(".vjs-default-button"),"click",(function(){i.setDefaults(),i.updateDisplay()})),q(Hr,(function(e){i.on(i.$(e.selector),"change",i.updateDisplay)})),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}(0,l.default)(t,e);var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(e,t,n){var i=this;void 0===t&&(t=""),void 0===n&&(n="label");var r=Hr[e],a=r.id.replace("%s",this.id_),o=[t,a].join(" ").trim();return["<"+n+' id="'+a+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(r.label),"</"+n+">",'<select aria-labelledby="'+o+'">'].concat(r.options.map((function(e){var t=a+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+o+" "+t+'">',i.localize(e[1]),"</option>"].join("")}))).concat("</select>").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return ke("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return ke("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return ke("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var e=this;return z(Hr,(function(t,n,i){var r=qr(e.$(n.selector),n.parser);return void 0!==r&&(t[i]=r),t}),{})},n.setValues=function(e){var t=this;q(Hr,(function(n,i){zr(t.$(n.selector),e[i],n.parser)}))},n.setDefaults=function(){var e=this;q(Hr,(function(t){var n=t.hasOwnProperty("default")?t["default"]:0;e.$(t.selector).selectedIndex=n}))},n.restoreSettings=function(){var e;try{e=JSON.parse(a.default.localStorage.getItem(jr))}catch(t){F.warn(t)}e&&this.setValues(e)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?a.default.localStorage.setItem(jr,JSON.stringify(e)):a.default.localStorage.removeItem(jr)}catch(t){F.warn(t)}}},n.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}(cn);Gt.registerComponent("TextTrackSettings",Wr);var Gr=function(e){function t(t,n){var i,r=n.ResizeObserver||a.default.ResizeObserver;null===n.ResizeObserver&&(r=!1);var o=Ht({createEl:!r,reportTouchActivity:!1},n);return i=e.call(this,t,o)||this,i.ResizeObserver=n.ResizeObserver||a.default.ResizeObserver,i.loadListener_=null,i.resizeObserver_=null,i.debouncedHandler_=kt((function(){i.resizeHandler()}),100,!1,(0,c.default)(i)),r?(i.resizeObserver_=new i.ResizeObserver(i.debouncedHandler_),i.resizeObserver_.observe(t.el())):(i.loadListener_=function(){if(i.el_&&i.el_.contentWindow){var e=i.debouncedHandler_,t=i.unloadListener_=function(){mt(this,"resize",e),mt(this,"unload",t),t=null};pt(i.el_.contentWindow,"unload",t),pt(i.el_.contentWindow,"resize",e)}},i.one("load",i.loadListener_)),i}(0,l.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,e.prototype.dispose.call(this)},t}(Gt);Gt.registerComponent("ResizeManager",Gr);var Yr={trackingThreshold:20,liveTolerance:15},Xr=function(e){function t(t,n){var i,r=Ht(Yr,n,{createEl:!1});return i=e.call(this,t,r)||this,i.handleVisibilityChange_=function(e){return i.handleVisibilityChange(e)},i.trackLiveHandler_=function(){return i.trackLive_()},i.handlePlay_=function(e){return i.handlePlay(e)},i.handleFirstTimeupdate_=function(e){return i.handleFirstTimeupdate(e)},i.handleSeeked_=function(e){return i.handleSeeked(e)},i.seekToLiveEdge_=function(e){return i.seekToLiveEdge(e)},i.reset_(),i.on(i.player_,"durationchange",(function(e){return i.handleDurationchange(e)})),i.on(i.player_,"canplay",(function(){return i.toggleTracking()})),ue&&"hidden"in o.default&&"visibilityState"in o.default&&i.on(o.default,"visibilitychange",i.handleVisibilityChange_),i}(0,l.default)(t,e);var n=t.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(o.default.hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var e=this.player_.seekable();if(e&&e.length){var t=Number(a.default.performance.now().toFixed(4)),n=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+n;var i=this.liveCurrentTime(),r=this.player_.currentTime(),o=this.player_.paused()||this.seekedBehindLive_||Math.abs(i-r)>this.options_.liveTolerance;this.timeupdateSeen_&&i!==1/0||(o=!1),o!==this.behindLiveEdge_&&(this.behindLiveEdge_=o,this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.toggleTracking()},n.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,Tt),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},n.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},n.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){var e=this.player_.seekable(),t=[],n=e?e.length:0;while(n--)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0},n.seekableStart=function(){var e=this.player_.seekable(),t=[],n=e?e.length:0;while(n--)t.push(e.start(n));return t.length?t.sort()[0]:0},n.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"===typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(o.default,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(Gt);Gt.registerComponent("LiveTracker",Xr);var Kr,Qr=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),i=[],r="";if(!n.length)return!1;for(var a=0;a<n.length;a++){var o=n[a].src;o&&-1===i.indexOf(o)&&i.push(o)}return!!i.length&&(1===i.length&&(r=i[0]),e.triggerSourceset(r),!0)},Jr=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=o.default.createElement(this.nodeName.toLowerCase());t.innerHTML=e;var n=o.default.createDocumentFragment();while(t.childNodes.length)n.appendChild(t.childNodes[0]);return this.innerText="",a.default.Element.prototype.appendChild.call(this,n),this.innerHTML}}),Zr=function(e,t){for(var n={},i=0;i<e.length;i++)if(n=Object.getOwnPropertyDescriptor(e[i],t),n&&n.set&&n.get)break;return n.enumerable=!0,n.configurable=!0,n},ea=function(e){return Zr([e.el(),a.default.HTMLMediaElement.prototype,a.default.Element.prototype,Jr],"innerHTML")},ta=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},i=ea(e),r=function(n){return function(){for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];var o=n.apply(t,r);return Qr(e),o}};["append","appendChild","insertAdjacentHTML"].forEach((function(e){t[e]&&(n[e]=t[e],t[e]=r(n[e]))})),Object.defineProperty(t,"innerHTML",Ht(i,{set:r(i.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach((function(e){t[e]=n[e]})),Object.defineProperty(t,"innerHTML",i)},e.one("sourceset",t.resetSourceWatch_)}},na=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Cn(a.default.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return a.default.Element.prototype.setAttribute.call(this,"src",e),e}}),ia=function(e){return Zr([e.el(),a.default.HTMLMediaElement.prototype,na],"src")},ra=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=ia(e),i=t.setAttribute,r=t.load;Object.defineProperty(t,"src",Ht(n,{set:function(i){var r=n.set.call(t,i);return e.triggerSourceset(t.src),r}})),t.setAttribute=function(n,r){var a=i.call(t,n,r);return/src/i.test(n)&&e.triggerSourceset(t.src),a},t.load=function(){var n=r.call(t);return Qr(e)||(e.triggerSourceset(""),ta(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):Qr(e)||ta(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=r,t.setAttribute=i,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},aa=function(e,t,n,i){void 0===i&&(i=!0);var r=function(n){return Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0})},a={configurable:!0,enumerable:!0,get:function(){var e=n();return r(e),e}};return i&&(a.set=r),Object.defineProperty(e,t,a)},oa=function(e){function t(t,n){var i;i=e.call(this,t,n)||this;var r=t.source,a=!1;if(i.featuresVideoFrameCallback=i.featuresVideoFrameCallback&&"VIDEO"===i.el_.tagName,r&&(i.el_.currentSrc!==r.src||t.tag&&3===t.tag.initNetworkState_)?i.setSource(r):i.handleLateInit_(i.el_),t.enableSourceset&&i.setupSourcesetHandling_(),i.isScrubbing_=!1,i.el_.hasChildNodes()){var o=i.el_.childNodes,s=o.length,u=[];while(s--){var c=o[s],l=c.nodeName.toLowerCase();"track"===l&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(c),i.remoteTextTracks().addTrack(c.track),i.textTracks().addTrack(c.track),a||i.el_.hasAttribute("crossorigin")||!En(c.src)||(a=!0)):u.push(c))}for(var d=0;d<u.length;d++)i.el_.removeChild(u[d])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&a&&F.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),i.restoreMetadataTracksInIOSNativePlayer_(),(de||fe||ie)&&!0===t.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}(0,l.default)(t,e);var n=t.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){ra(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var e,t=this.textTracks(),n=function(){e=[];for(var n=0;n<t.length;n++){var i=t[n];"metadata"===i.kind&&e.push({track:i,storedMode:i.mode})}};n(),t.addEventListener("change",n),this.on("dispose",(function(){return t.removeEventListener("change",n)}));var i=function n(){for(var i=0;i<e.length;i++){var r=e[i];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}t.removeEventListener("change",n)};this.on("webkitbeginfullscreen",(function(){t.removeEventListener("change",n),t.removeEventListener("change",i),t.addEventListener("change",i)})),this.on("webkitendfullscreen",(function(){t.removeEventListener("change",n),t.addEventListener("change",n),t.removeEventListener("change",i)}))},n.overrideNative_=function(e,t){var n=this;if(t===this["featuresNative"+e+"Tracks"]){var i=e.toLowerCase();this[i+"TracksListeners_"]&&Object.keys(this[i+"TracksListeners_"]).forEach((function(e){var t=n.el()[i+"Tracks"];t.removeEventListener(e,n[i+"TracksListeners_"][e])})),this["featuresNative"+e+"Tracks"]=!t,this[i+"TracksListeners_"]=null,this.proxyNativeTracksForType_(i)}},n.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},n.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},n.proxyNativeTracksForType_=function(e){var t=this,n=Un[e],i=this.el()[n.getterName],r=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&i&&i.addEventListener){var a={change:function(n){var i={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(i),"text"===e&&t[Fn.remoteText.getterName]().trigger(i)},addtrack:function(e){r.addTrack(e.track)},removetrack:function(e){r.removeTrack(e.track)}},o=function(){for(var e=[],t=0;t<r.length;t++){for(var n=!1,a=0;a<i.length;a++)if(i[a]===r[t]){n=!0;break}n||e.push(r[t])}while(e.length)r.removeTrack(e.shift())};this[n.getterName+"Listeners_"]=a,Object.keys(a).forEach((function(e){var n=a[e];i.addEventListener(e,n),t.on("dispose",(function(t){return i.removeEventListener(e,n)}))})),this.on("loadstart",o),this.on("dispose",(function(e){return t.off("loadstart",o)}))}},n.proxyNativeTracks_=function(){var e=this;Un.names.forEach((function(t){e.proxyNativeTracksForType_(t)}))},n.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=o.default.createElement("video");var i=this.options_.tag&&Pe(this.options_.tag),r=Ht({},i);de&&!0===this.options_.nativeControlsForTouch||delete r.controls,Ie(e,W(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}"undefined"!==typeof this.options_.preload&&Me(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);for(var a=["loop","muted","playsinline","autoplay"],s=0;s<a.length;s++){var u=a[s],c=this.options_[u];"undefined"!==typeof c&&(c?Me(e,u,u):De(e,u),e[u]=c)}return e},n.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var i=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",i),void this.ready((function(){this.off("loadstart",n),this.off("loadedmetadata",i),t||this.trigger("loadstart")}))}var r=["loadstart"];r.push("loadedmetadata"),e.readyState>=2&&r.push("loadeddata"),e.readyState>=3&&r.push("canplay"),e.readyState>=4&&r.push("canplaythrough"),this.ready((function(){r.forEach((function(e){this.trigger(e)}),this)}))}},n.setScrubbing=function(e){this.isScrubbing_=e},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&me?this.el_.fastSeek(e):this.el_.currentTime=e}catch(t){F(t,"Video is not ready. (Video.js)")}},n.duration=function(){var e=this;if(this.el_.duration===1/0&&te&&oe&&0===this.el_.currentTime){var t=function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))};return this.on("timeupdate",t),NaN}return this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",(function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)}))}},n.supportsFullScreen=function(){if("function"===typeof this.el_.webkitEnterFullScreen){var e=a.default.navigator&&a.default.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},n.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)nn(this.el_.play()),this.setTimeout((function(){e.pause();try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}}),0);else try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.requestVideoFrameCallback=function(t){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(t):e.prototype.requestVideoFrameCallback.call(this,t)},n.cancelVideoFrameCallback=function(t){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(t):e.prototype.cancelVideoFrameCallback.call(this,t)},n.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(e){this.el_.controls=!!e},n.addTextTrack=function(t,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,i):e.prototype.addTextTrack.call(this,t,n,i)},n.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=o.default.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t["default"]&&(n["default"]=t["default"]),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},n.addRemoteTextTrack=function(t,n){var i=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},n.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks){var n=this.$$("track"),i=n.length;while(i--)t!==n[i]&&t!==n[i].track||this.el().removeChild(n[i])}},n.getVideoPlaybackQuality=function(){if("function"===typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return"undefined"!==typeof this.el().webkitDroppedFrameCount&&"undefined"!==typeof this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),a.default.performance&&"function"===typeof a.default.performance.now?e.creationTime=a.default.performance.now():a.default.performance&&a.default.performance.timing&&"number"===typeof a.default.performance.timing.navigationStart&&(e.creationTime=a.default.Date.now()-a.default.performance.timing.navigationStart),e},t}(Vn);aa(oa,"TEST_VID",(function(){if(_e()){var e=o.default.createElement("video"),t=o.default.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}})),oa.isSupported=function(){try{oa.TEST_VID.volume=.5}catch(e){return!1}return!(!oa.TEST_VID||!oa.TEST_VID.canPlayType)},oa.canPlayType=function(e){return oa.TEST_VID.canPlayType(e)},oa.canPlaySource=function(e,t){return oa.canPlayType(e.type)},oa.canControlVolume=function(){try{var e=oa.TEST_VID.volume;oa.TEST_VID.volume=e/2+.1;var t=e!==oa.TEST_VID.volume;return t&&pe?(a.default.setTimeout((function(){oa&&oa.prototype&&(oa.prototype.featuresVolumeControl=e!==oa.TEST_VID.volume)})),!1):t}catch(n){return!1}},oa.canMuteVolume=function(){try{var e=oa.TEST_VID.muted;return oa.TEST_VID.muted=!e,oa.TEST_VID.muted?Me(oa.TEST_VID,"muted","muted"):De(oa.TEST_VID,"muted","muted"),e!==oa.TEST_VID.muted}catch(t){return!1}},oa.canControlPlaybackRate=function(){if(te&&oe&&se<58)return!1;try{var e=oa.TEST_VID.playbackRate;return oa.TEST_VID.playbackRate=e/2+.1,e!==oa.TEST_VID.playbackRate}catch(t){return!1}},oa.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(o.default.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(o.default.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(o.default.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(o.default.createElement("audio"),"innerHTML",{get:e,set:e})}catch(t){return!1}return!0},oa.supportsNativeTextTracks=function(){return me||pe&&oe},oa.supportsNativeVideoTracks=function(){return!(!oa.TEST_VID||!oa.TEST_VID.videoTracks)},oa.supportsNativeAudioTracks=function(){return!(!oa.TEST_VID||!oa.TEST_VID.audioTracks)},oa.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function(e){var t=e[0],n=e[1];aa(oa.prototype,t,(function(){return oa[n]()}),!0)})),oa.prototype.featuresVolumeControl=oa.canControlVolume(),oa.prototype.movingMediaElementInDOM=!pe,oa.prototype.featuresFullscreenResize=!0,oa.prototype.featuresProgressEvents=!0,oa.prototype.featuresTimeupdateEvents=!0,oa.prototype.featuresVideoFrameCallback=!(!oa.TEST_VID||!oa.TEST_VID.requestVideoFrameCallback),oa.patchCanPlayType=function(){ne>=4&&!re&&!oe&&(Kr=oa.TEST_VID&&oa.TEST_VID.constructor.prototype.canPlayType,oa.TEST_VID.constructor.prototype.canPlayType=function(e){var t=/^application\/(?:x-|vnd\.apple\.)mpegurl/i;return e&&t.test(e)?"maybe":Kr.call(this,e)})},oa.unpatchCanPlayType=function(){var e=oa.TEST_VID.constructor.prototype.canPlayType;return Kr&&(oa.TEST_VID.constructor.prototype.canPlayType=Kr),e},oa.patchCanPlayType(),oa.disposeMediaElement=function(e){if(e){e.parentNode&&e.parentNode.removeChild(e);while(e.hasChildNodes())e.removeChild(e.firstChild);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},oa.resetMediaElement=function(e){if(e){var t=e.querySelectorAll("source"),n=t.length;while(n--)e.removeChild(t[n]);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){oa.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){oa.prototype["set"+Ft(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(e){oa.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){oa.prototype["set"+Ft(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){oa.prototype[e]=function(){return this.el_[e]()}})),Vn.withSourceHandlers(oa),oa.nativeSourceHandler={},oa.nativeSourceHandler.canPlayType=function(e){try{return oa.TEST_VID.canPlayType(e)}catch(t){return""}},oa.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return oa.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=xn(e.src);return oa.nativeSourceHandler.canPlayType("video/"+n)}return""},oa.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},oa.nativeSourceHandler.dispose=function(){},oa.registerSourceHandler(oa.nativeSourceHandler),Vn.registerTech("Html5",oa);var sa=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],ua={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},ca=["tiny","xsmall","small","medium","large","xlarge","huge"],la={};ca.forEach((function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;la[e]="vjs-layout-"+t}));var da={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},ha=function(e){function t(n,i,r){var a;if(n.id=n.id||i.id||"vjs_video_"+ot(),i=W(t.getTagSettings(n),i),i.initChildren=!1,i.createEl=!1,i.evented=!1,i.reportTouchActivity=!1,!i.language)if("function"===typeof n.closest){var s=n.closest("[lang]");s&&s.getAttribute&&(i.language=s.getAttribute("lang"))}else{var u=n;while(u&&1===u.nodeType){if(Pe(u).hasOwnProperty("lang")){i.language=u.getAttribute("lang");break}u=u.parentNode}}if(a=e.call(this,null,i,r)||this,a.boundDocumentFullscreenChange_=function(e){return a.documentFullscreenChange_(e)},a.boundFullWindowOnEscKey_=function(e){return a.fullWindowOnEscKey(e)},a.boundUpdateStyleEl_=function(e){return a.updateStyleEl_(e)},a.boundApplyInitTime_=function(e){return a.applyInitTime_(e)},a.boundUpdateCurrentBreakpoint_=function(e){return a.updateCurrentBreakpoint_(e)},a.boundHandleTechClick_=function(e){return a.handleTechClick_(e)},a.boundHandleTechDoubleClick_=function(e){return a.handleTechDoubleClick_(e)},a.boundHandleTechTouchStart_=function(e){return a.handleTechTouchStart_(e)},a.boundHandleTechTouchMove_=function(e){return a.handleTechTouchMove_(e)},a.boundHandleTechTouchEnd_=function(e){return a.handleTechTouchEnd_(e)},a.boundHandleTechTap_=function(e){return a.handleTechTap_(e)},a.isFullscreen_=!1,a.log=$(a.id_),a.fsApi_=P,a.isPosterFromTech_=!1,a.queuedCallbacks_=[],a.isReady_=!1,a.hasStarted_=!1,a.userActive_=!1,a.debugEnabled_=!1,a.audioOnlyMode_=!1,a.audioPosterMode_=!1,a.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!a.options_||!a.options_.techOrder||!a.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(a.tag=n,a.tagAttributes=n&&Pe(n),a.language(a.options_.language),i.languages){var l={};Object.getOwnPropertyNames(i.languages).forEach((function(e){l[e.toLowerCase()]=i.languages[e]})),a.languages_=l}else a.languages_=t.prototype.options_.languages;a.resetCache_(),a.poster_=i.poster||"",a.controls_=!!i.controls,n.controls=!1,n.removeAttribute("controls"),a.changingSrc_=!1,a.playCallbacks_=[],a.playTerminatedQueue_=[],n.hasAttribute("autoplay")?a.autoplay(!0):a.autoplay(a.options_.autoplay),i.plugins&&Object.keys(i.plugins).forEach((function(e){if("function"!==typeof a[e])throw new Error('plugin "'+e+'" does not exist')})),a.scrubbing_=!1,a.el_=a.createEl(),Rt((0,c.default)(a),{eventBusKey:"el_"}),a.fsApi_.requestFullscreen&&(pt(o.default,a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_),a.on(a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_)),a.fluid_&&a.on(["playerreset","resize"],a.boundUpdateStyleEl_);var d=Ht(a.options_);i.plugins&&Object.keys(i.plugins).forEach((function(e){a[e](i.plugins[e])})),i.debug&&a.debug(!0),a.options_.playerOptions=d,a.middleware_=[],a.playbackRates(i.playbackRates),a.initChildren(),a.isAudio("audio"===n.nodeName.toLowerCase()),a.controls()?a.addClass("vjs-controls-enabled"):a.addClass("vjs-controls-disabled"),a.el_.setAttribute("role","region"),a.isAudio()?a.el_.setAttribute("aria-label",a.localize("Audio Player")):a.el_.setAttribute("aria-label",a.localize("Video Player")),a.isAudio()&&a.addClass("vjs-audio"),a.flexNotSupported_()&&a.addClass("vjs-no-flex"),de&&a.addClass("vjs-touch-enabled"),pe||a.addClass("vjs-workinghover"),t.players[a.id_]=(0,c.default)(a);var h=x.split(".")[0];return a.addClass("vjs-v"+h),a.userActive(!0),a.reportUserActivity(),a.one("play",(function(e){return a.listenForUserActivity_(e)})),a.on("stageclick",(function(e){return a.handleStageClick_(e)})),a.on("keydown",(function(e){return a.handleKeyDown(e)})),a.on("languagechange",(function(e){return a.handleLanguagechange(e)})),a.breakpoints(a.options_.breakpoints),a.responsive(a.options_.responsive),a.on("ready",(function(){a.audioPosterMode(a.options_.audioPosterMode),a.audioOnlyMode(a.options_.audioOnlyMode)})),a}(0,l.default)(t,e);var n=t.prototype;return n.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),mt(o.default,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),mt(o.default,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),ri(this),$n.names.forEach((function(e){var t=$n[e],i=n[t.getterName]();i&&i.off&&i.off()})),e.prototype.dispose.call(this,{restoreEl:this.options_.restoreEl})},n.createEl=function(){var t,n=this.tag,i=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),r="video-js"===this.tag.tagName.toLowerCase();i?t=this.el_=n.parentNode:r||(t=this.el_=e.prototype.createEl.call(this,"div"));var s=Pe(n);if(r){t=this.el_=n,n=this.tag=o.default.createElement("video");while(t.children.length)n.appendChild(t.firstChild);Ee(t,"video-js")||Ae(t,"video-js"),t.appendChild(n),i=this.playerElIngest_=t,Object.keys(t).forEach((function(e){try{n[e]=t[e]}catch(i){}}))}if(n.setAttribute("tabindex","-1"),s.tabindex="-1",(ue||oe&&le)&&(n.setAttribute("role","application"),s.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach((function(e){r&&"class"===e||t.setAttribute(e,s[e]),r&&n.setAttribute(e,s[e])})),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=t.player=this,this.addClass("vjs-paused"),!0!==a.default.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=nt("vjs-styles-dimensions");var u=Ye(".vjs-styles-defaults"),c=Ye("head");c.insertBefore(this.styleEl_,u?u.nextSibling:c.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var l=n.getElementsByTagName("a"),d=0;d<l.length;d++){var h=l.item(d);Ae(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!i&&n.parentNode.insertBefore(t,n),xe(n,t),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=t,t},n.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"===e||"use-credentials"===e?this.techCall_("setCrossOrigin",e):F.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"')},n.width=function(e){return this.dimension("width",e)},n.height=function(e){return this.dimension("height",e)},n.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t)return this[n]=void 0,void this.updateStyleEl_();var i=parseFloat(t);isNaN(i)?F.error('Improper value "'+t+'" supplied for for '+e):(this[n]=i,this.updateStyleEl_())},n.fluid=function(e){var t=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,Et(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),At(this,(function(){t.on(["playerreset","resize"],t.boundUpdateStyleEl_)}))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},n.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},n.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},n.updateStyleEl_=function(){if(!0!==a.default.VIDEOJS_NO_DYNAMIC_STYLE){var e,t,n,i;n=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var r=n.split(":"),o=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*o,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),it(this.styleEl_,"\n ."+i+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+i+".vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: "+100*o+"%;\n }\n ")}else{var s="number"===typeof this.width_?this.width_:this.options_.width,u="number"===typeof this.height_?this.height_:this.options_.height,c=this.tech_&&this.tech_.el();c&&(s>=0&&(c.width=s),u>=0&&(c.height=u))}},n.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var i=Ft(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(Vn.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;var a=this.autoplay();("string"===typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(a=!1);var o={source:t,autoplay:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};$n.names.forEach((function(e){var t=$n[e];o[t.getterName]=n[t.privateName]})),W(o,this.options_[i]),W(o,this.options_[r]),W(o,this.options_[e.toLowerCase()]),this.tag&&(o.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime);var s=Vn.getTech(e);if(!s)throw new Error("No Tech named '"+i+"' exists! '"+i+"' should be registered using videojs.registerTech()'");this.tech_=new s(o),this.tech_.ready(wt(this,this.handleTechReady_),!0),sn.jsonToTextTracks(this.textTracksJson_||[],this.tech_),sa.forEach((function(e){n.on(n.tech_,e,(function(t){return n["handleTech"+Ft(e)+"_"](t)}))})),Object.keys(ua).forEach((function(e){n.on(n.tech_,e,(function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+ua[e]+"_"].bind(n),event:t}):n["handleTech"+ua[e]+"_"](t)}))})),this.on(this.tech_,"loadstart",(function(e){return n.handleTechLoadStart_(e)})),this.on(this.tech_,"sourceset",(function(e){return n.handleTechSourceset_(e)})),this.on(this.tech_,"waiting",(function(e){return n.handleTechWaiting_(e)})),this.on(this.tech_,"ended",(function(e){return n.handleTechEnded_(e)})),this.on(this.tech_,"seeking",(function(e){return n.handleTechSeeking_(e)})),this.on(this.tech_,"play",(function(e){return n.handleTechPlay_(e)})),this.on(this.tech_,"firstplay",(function(e){return n.handleTechFirstPlay_(e)})),this.on(this.tech_,"pause",(function(e){return n.handleTechPause_(e)})),this.on(this.tech_,"durationchange",(function(e){return n.handleTechDurationChange_(e)})),this.on(this.tech_,"fullscreenchange",(function(e,t){return n.handleTechFullscreenChange_(e,t)})),this.on(this.tech_,"fullscreenerror",(function(e,t){return n.handleTechFullscreenError_(e,t)})),this.on(this.tech_,"enterpictureinpicture",(function(e){return n.handleTechEnterPictureInPicture_(e)})),this.on(this.tech_,"leavepictureinpicture",(function(e){return n.handleTechLeavePictureInPicture_(e)})),this.on(this.tech_,"error",(function(e){return n.handleTechError_(e)})),this.on(this.tech_,"posterchange",(function(e){return n.handleTechPosterChange_(e)})),this.on(this.tech_,"textdata",(function(e){return n.handleTechTextData_(e)})),this.on(this.tech_,"ratechange",(function(e){return n.handleTechRateChange_(e)})),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||xe(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var e=this;$n.names.forEach((function(t){var n=$n[t];e[n.privateName]=e[n.getterName]()})),this.textTracksJson_=sn.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(e){return void 0===e&&F.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},n.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},n.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},n.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},n.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},n.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"===typeof e){var n,i=function(){var e=t.muted();t.muted(!0);var n=function(){t.muted(e)};t.playTerminatedQueue_.push(n);var i=t.play();if(tn(i))return i["catch"]((function(e){throw n(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))}))};if("any"!==e||this.muted()?n="muted"!==e||this.muted()?this.play():i():(n=this.play(),tn(n)&&(n=n["catch"](i))),tn(n))return n.then((function(){t.trigger({type:"autoplay-success",autoplay:e})}))["catch"]((function(){t.trigger({type:"autoplay-failure",autoplay:e})}))}},n.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,n="";"string"!==typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=ci(this,t)),this.cache_.source=Ht({},e,{src:t,type:n});for(var i=this.cache_.sources.filter((function(e){return e.src&&e.src===t})),r=[],a=this.$$("source"),o=[],s=0;s<a.length;s++){var u=Pe(a[s]);r.push(u),u.src&&u.src===t&&o.push(u.src)}o.length&&!i.length?this.cache_.sources=r:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},n.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},i=this.currentSource().src,r=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==i)&&(n=function(){}),n(r),e.src||this.tech_.any(["sourceset","loadstart"],(function(e){if("sourceset"!==e.type){var n=t.techGet("currentSrc");t.lastSource_.tech=n,t.updateSourceCaches_(n)}}))}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},n.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},n.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},n.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((function(e){return e.callback(e.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime(),n=function n(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",n))};this.on("timeupdate",n)},n.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},n.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},n.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},n.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},n.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},n.handleTechFirstPlay_=function(){this.options_.starttime&&(F.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},n.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},n.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},n.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},n.handleTechClick_=function(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"===typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?nn(this.play()):this.pause()))},n.handleTechDoubleClick_=function(e){if(this.controls_){var t=Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(function(t){return t.contains(e.target)}));t||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"===typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen())}},n.handleTechTap_=function(){this.userActive(!this.userActive())},n.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},n.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},n.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var n=this.el(),i=o.default[this.fsApi_.fullscreenElement]===n;!i&&n.matches?i=n.matches(":"+this.fsApi_.fullscreen):!i&&n.msMatchesSelector&&(i=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(i)}},n.handleTechFullscreenChange_=function(e,t){var n=this;t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",(function(){n.removeClass("vjs-ios-native-fs")}))),this.isFullscreen(t.isFullscreen))},n.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var e=this.tech_.error();this.error(e)},n.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},n.getCache=function(){return this.cache_},n.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},n.techCall_=function(e,t){this.ready((function(){if(e in ei)return Qn(this.middleware_,this.tech_,e,t);if(e in ti)return Jn(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(n){throw F(n),n}}),!0)},n.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Zn)return Kn(this.middleware_,this.tech_,e);if(e in ti)return Jn(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw F("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw F("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw F(t),t}}},n.play=function(){var e=this,t=this.options_.Promise||a.default.Promise;return t?new t((function(t){e.play_(t)})):this.play_()},n.play_=function(e){var t=this;void 0===e&&(e=nn),this.playCallbacks_.push(e);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(n||!me&&!pe||this.load());var i=this.techGet_("play");null===i?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(i)},n.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach((function(e){e()}))},n.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach((function(t){t(e)}))},n.pause=function(){this.techCall_("pause")},n.paused=function(){return!1!==this.techGet_("paused")},n.played=function(){return this.techGet_("played")||Qt(0,0)},n.scrubbing=function(e){if("undefined"===typeof e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},n.currentTime=function(e){return"undefined"!==typeof e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},n.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},n.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;e=parseFloat(e),e<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},n.remainingTime=function(){return this.duration()-this.currentTime()},n.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},n.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=Qt(0,0)),e},n.bufferedPercent=function(){return Jt(this.buffered(),this.duration())},n.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},n.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},n.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},n.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},n.requestFullscreen=function(e){var t=this.options_.Promise||a.default.Promise;if(t){var n=this;return new t((function(t,i){function r(){n.off("fullscreenerror",o),n.off("fullscreenchange",a)}function a(){r(),t()}function o(e,t){r(),i(t)}n.one("fullscreenchange",a),n.one("fullscreenerror",o);var s=n.requestFullscreenHelper_(e);s&&(s.then(r,r),s.then(t,i))}))}return this.requestFullscreenHelper_()},n.requestFullscreenHelper_=function(e){var t,n=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){var i=this.el_[this.fsApi_.requestFullscreen](t);return i&&i.then((function(){return n.isFullscreen(!0)}),(function(){return n.isFullscreen(!1)})),i}this.tech_.supportsFullScreen()&&!0===!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},n.exitFullscreen=function(){var e=this.options_.Promise||a.default.Promise;if(e){var t=this;return new e((function(e,n){function i(){t.off("fullscreenerror",a),t.off("fullscreenchange",r)}function r(){i(),e()}function a(e,t){i(),n(t)}t.one("fullscreenchange",r),t.one("fullscreenerror",a);var o=t.exitFullscreenHelper_();o&&(o.then(i,i),o.then(e,n))}))}return this.exitFullscreenHelper_()},n.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=o.default[this.fsApi_.exitFullscreen]();return t&&nn(t.then((function(){return e.isFullscreen(!1)}))),t}this.tech_.supportsFullScreen()&&!0===!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},n.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=o.default.documentElement.style.overflow,pt(o.default,"keydown",this.boundFullWindowOnEscKey_),o.default.documentElement.style.overflow="hidden",Ae(o.default.body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(e){u.default.isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},n.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,mt(o.default,"keydown",this.boundFullWindowOnEscKey_),o.default.documentElement.style.overflow=this.docOrigOverflow,Oe(o.default.body,"vjs-full-window"),this.trigger("exitFullWindow")},n.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},n.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},n.requestPictureInPicture=function(){if("pictureInPictureEnabled"in o.default&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},n.exitPictureInPicture=function(){if("pictureInPictureEnabled"in o.default)return o.default.exitPictureInPicture()},n.handleKeyDown=function(e){var t=this.options_.userActions;if(t&&t.hotkeys){var n=function(e){var t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;var n=["button","checkbox","hidden","radio","reset","submit"];if("input"===t)return-1===n.indexOf(e.type);var i=["textarea"];return-1!==i.indexOf(t)};n(this.el_.ownerDocument.activeElement)||("function"===typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}},n.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},n=t.fullscreenKey,i=void 0===n?function(e){return u.default.isEventKey(e,"f")}:n,r=t.muteKey,a=void 0===r?function(e){return u.default.isEventKey(e,"m")}:r,s=t.playPauseKey,c=void 0===s?function(e){return u.default.isEventKey(e,"k")||u.default.isEventKey(e,"Space")}:s;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();var l=Gt.getComponent("FullscreenToggle");!1!==o.default[this.fsApi_.fullscreenEnabled]&&l.prototype.handleClick.call(this,e)}else if(a.call(this,e)){e.preventDefault(),e.stopPropagation();var d=Gt.getComponent("MuteToggle");d.prototype.handleClick.call(this,e)}else if(c.call(this,e)){e.preventDefault(),e.stopPropagation();var h=Gt.getComponent("PlayToggle");h.prototype.handleClick.call(this,e)}},n.canPlayType=function(e){for(var t,n=0,i=this.options_.techOrder;n<i.length;n++){var r=i[n],a=Vn.getTech(r);if(a||(a=Gt.getComponent(r)),a){if(a.isSupported()&&(t=a.canPlayType(e),t))return t}else F.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},n.selectSource=function(e){var t,n=this,i=this.options_.techOrder.map((function(e){return[e,Vn.getTech(e)]})).filter((function(e){var t=e[0],n=e[1];return n?n.isSupported():(F.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),r=function(e,t,n){var i;return e.some((function(e){return t.some((function(t){if(i=n(e,t),i)return!0}))})),i},a=function(e){return function(t,n){return e(n,t)}},o=function(e,t){var i=e[0],r=e[1];if(r.canPlaySource(t,n.options_[i.toLowerCase()]))return{source:t,tech:i}};return t=this.options_.sourceOrder?r(e,i,a(o)):r(i,e,o),t||!1},n.handleSrc_=function(e,t){var n=this;if("undefined"===typeof e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var i=li(e);if(i.length){if(this.changingSrc_=!0,t||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),Yn(this,i[0],(function(e,r){n.middleware_=r,t||(n.cache_.sources=i),n.updateSourceCaches_(e);var a=n.src_(e);if(a)return i.length>1?n.handleSrc_(i.slice(1)):(n.changingSrc_=!1,n.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0),void n.triggerReady());Xn(r,n.tech_)})),this.options_.retryOnError&&i.length>1){var r=function(){n.error(null),n.handleSrc_(i.slice(1),!0)},a=function(){n.off("error",r)};this.one("error",r),this.one("playing",a),this.resetRetryOnError_=function(){n.off("error",r),n.off("playing",a)}}}else this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0)},n.src=function(e){return this.handleSrc_(e,!1)},n.src_=function(e){var t=this,n=this.selectSource([e]);return!n||($t(n.tech,this.techName_)?(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1}),!0),!1):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),this.tech_.ready((function(){t.changingSrc_=!1})),!1))},n.load=function(){this.techCall_("load")},n.reset=function(){var e=this,t=this.options_.Promise||a.default.Promise;if(this.paused()||!t)this.doReset_();else{var n=this.play();nn(n.then((function(){return e.doReset_()})))}},n.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),Et(this)&&this.trigger("playerreset")},n.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},n.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar||{},t=e.durationDisplay,n=e.remainingTimeDisplay;t&&t.updateContent(),n&&n.updateContent()},n.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},n.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},n.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},n.currentSource=function(){return this.cache_.source||{}},n.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},n.currentType=function(){return this.currentSource()&&this.currentSource().type||""},n.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},n.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"===typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"===typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t="undefined"===typeof t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},n.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},n.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},n.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},n.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},n.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},n.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},n.error=function(e){var t=this;if(void 0===e)return this.error_||null;if(A("beforeerror").forEach((function(n){var i=n(t,e);G(i)&&!Array.isArray(i)||"string"===typeof i||"number"===typeof i||null===i?e=i:t.log.error("please return a value that MediaError expects in beforeerror hooks")})),this.options_.suppressNotSupportedError&&e&&4===e.code){var n=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],n),void this.one("loadstart",(function(){this.off(["click","touchstart"],n)}))}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Zt(e),this.addClass("vjs-error"),F.error("(CODE:"+this.error_.code+" "+Zt.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),A("error").forEach((function(e){return e(t,t.error_)}))},n.reportUserActivity=function(e){this.userActivity_=!0},n.userActive=function(e){if(void 0===e)return this.userActive_;if(e=!!e,e!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(e){e.stopPropagation(),e.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},n.listenForUserActivity_=function(){var e,t,n,i=wt(this,this.reportUserActivity),r=function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,i())},a=function(){i(),this.clearInterval(e),e=this.setInterval(i,250)},o=function(t){i(),this.clearInterval(e)};this.on("mousedown",a),this.on("mousemove",r),this.on("mouseup",o),this.on("mouseleave",o);var s,u=this.getChild("controlBar");!u||pe||te||(u.on("mouseenter",(function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0})),u.on("mouseleave",(function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",i),this.on("keyup",i),this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(s);var e=this.options_.inactivityTimeout;e<=0||(s=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}}),250)},n.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},n.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},n.enableAudioOnlyUI_=function(){var e=this;this.addClass("vjs-audio-only-mode");var t=this.children(),n=this.getChild("ControlBar"),i=n&&n.currentHeight();t.forEach((function(t){t!==n&&t.el_&&!t.hasClass("vjs-hidden")&&(t.hide(),e.audioOnlyCache_.hiddenChildren.push(t))})),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(i),this.trigger("audioonlymodechange")},n.disableAudioOnlyUI_=function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach((function(e){return e.show()})),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")},n.audioOnlyMode=function(e){var t=this;if("boolean"!==typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;this.audioOnlyMode_=e;var n=this.options_.Promise||a.default.Promise;if(n){if(e){var i=[];return this.isInPictureInPicture()&&i.push(this.exitPictureInPicture()),this.isFullscreen()&&i.push(this.exitFullscreen()),this.audioPosterMode()&&i.push(this.audioPosterMode(!1)),n.all(i).then((function(){return t.enableAudioOnlyUI_()}))}return n.resolve().then((function(){return t.disableAudioOnlyUI_()}))}e?(this.isInPictureInPicture()&&this.exitPictureInPicture(),this.isFullscreen()&&this.exitFullscreen(),this.enableAudioOnlyUI_()):this.disableAudioOnlyUI_()},n.enablePosterModeUI_=function(){var e=this.tech_&&this.tech_;e.hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.disablePosterModeUI_=function(){var e=this.tech_&&this.tech_;e.show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.audioPosterMode=function(e){var t=this;if("boolean"!==typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;this.audioPosterMode_=e;var n=this.options_.Promise||a.default.Promise;if(n){if(e){if(this.audioOnlyMode()){var i=this.audioOnlyMode(!1);return i.then((function(){t.enablePosterModeUI_()}))}return n.resolve().then((function(){t.enablePosterModeUI_()}))}return n.resolve().then((function(){t.disablePosterModeUI_()}))}if(e)return this.audioOnlyMode()&&this.audioOnlyMode(!1),void this.enablePosterModeUI_();this.disablePosterModeUI_()},n.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},n.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},n.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e,n=t.track;if(n||(n=e),this.tech_)return this.tech_.removeRemoteTextTrack(n)},n.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},n.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},n.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},n.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),Et(this)&&this.trigger("languagechange"))},n.languages=function(){return Ht(t.prototype.options_.languages,this.languages_)},n.toJSON=function(){var e=Ht(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var i=t[n];i=Ht(i),i.player=void 0,e.tracks[n]=i}return e},n.createModal=function(e,t){var n=this;t=t||{},t.content=e||"";var i=new cn(this,t);return this.addChild(i),i.on("dispose",(function(){n.removeChild(i)})),i.open(),i},n.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<ca.length;n++){var i=ca[n],r=this.breakpoints_[i];if(t<=r){if(e===i)return;e&&this.removeClass(la[e]),this.addClass(la[i]),this.breakpoint_=i;break}}},n.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},n.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=W({},da,e),this.updateCurrentBreakpoint_()),W(this.breakpoints_)},n.responsive=function(e){if(void 0===e)return this.responsive_;e=Boolean(e);var t=this.responsive_;return e!==t?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},n.currentBreakpoint=function(){return this.breakpoint_},n.currentBreakpointClass=function(){return la[this.breakpoint_]||""},n.loadMedia=function(e,t){var n=this;if(e&&"object"===typeof e){this.reset(),this.cache_.media=Ht(e);var i=this.cache_.media,r=i.artwork,a=i.poster,o=i.src,s=i.textTracks;!r&&a&&(this.cache_.media.artwork=[{src:a,type:ui(a)}]),o&&this.src(o),a&&this.poster(a),Array.isArray(s)&&s.forEach((function(e){return n.addRemoteTextTrack(e,!1)})),this.ready(t)}},n.getMedia=function(){if(!this.cache_.media){var e=this.poster(),t=this.currentSources(),n=Array.prototype.map.call(this.remoteTextTracks(),(function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}})),i={src:t,textTracks:n};return e&&(i.poster=e,i.artwork=[{src:i.poster,type:ui(i.poster)}]),i}return Ht(this.cache_.media)},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=Pe(e),i=n["data-setup"];if(Ee(e,"vjs-fill")&&(n.fill=!0),Ee(e,"vjs-fluid")&&(n.fluid=!0),null!==i){var r=(0,d.default)(i||"{}"),a=r[0],o=r[1];a&&F.error(a),W(n,o)}if(W(t,n),e.hasChildNodes())for(var s=e.childNodes,u=0,c=s.length;u<c;u++){var l=s[u],h=l.nodeName.toLowerCase();"source"===h?t.sources.push(Pe(l)):"track"===h&&t.tracks.push(Pe(l))}return t},n.flexNotSupported_=function(){var e=o.default.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},n.debug=function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},n.playbackRates=function(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every((function(e){return"number"===typeof e}))&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))},t}(Gt);$n.names.forEach((function(e){var t=$n[e];ha.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),ha.prototype.crossorigin=ha.prototype.crossOrigin,ha.players={};var fa=a.default.navigator;ha.prototype.options_={techOrder:Vn.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:fa&&(fa.languages&&fa.languages[0]||fa.userLanguage||fa.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1},["ended","seeking","seekable","networkState","readyState"].forEach((function(e){ha.prototype[e]=function(){return this.techGet_(e)}})),sa.forEach((function(e){ha.prototype["handleTech"+Ft(e)+"_"]=function(){return this.trigger(e)}})),Gt.registerComponent("Player",ha);var pa="plugin",ma="activePlugins_",ga={},va=function(e){return ga.hasOwnProperty(e)},ya=function(e){return va(e)?ga[e]:void 0},ba=function(e,t){e[ma]=e[ma]||{},e[ma][t]=!0},_a=function(e,t,n){var i=(n?"before":"")+"pluginsetup";e.trigger(i,t),e.trigger(i+":"+t.name,t)},Ta=function(e,t){var n=function(){_a(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return ba(this,e),_a(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach((function(e){n[e]=t[e]})),n},wa=function(e,t){return t.prototype.name=e,function(){_a(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var a=(0,p.default)(t,[this].concat(i));return this[e]=function(){return a},_a(this,a.getEventHash()),a}},Sa=function(){function e(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),Rt(this),delete this.trigger,Bt(this,this.constructor.defaultState),ba(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}var t=e.prototype;return t.version=function(){return this.constructor.VERSION},t.getEventHash=function(e){return void 0===e&&(e={}),e.name=this.name,e.plugin=this.constructor,e.instance=this,e},t.trigger=function(e,t){return void 0===t&&(t={}),gt(this.eventBusEl_,e,this.getEventHash(t))},t.handleStateChanged=function(e){},t.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[ma][e]=!1,this.player=this.state=null,t[e]=wa(e,ga[e])},e.isBasic=function(t){var n="string"===typeof t?ya(t):t;return"function"===typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!==typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+typeof t+".");if(va(t))F.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(ha.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!==typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+typeof n+".");return ga[t]=n,t!==pa&&(e.isBasic(n)?ha.prototype[t]=Ta(t,n):ha.prototype[t]=wa(t,n)),n},e.deregisterPlugin=function(e){if(e===pa)throw new Error("Cannot de-register base plugin.");va(e)&&(delete ga[e],delete ha.prototype[e])},e.getPlugins=function(e){var t;return void 0===e&&(e=Object.keys(ga)),e.forEach((function(e){var n=ya(e);n&&(t=t||{},t[e]=n)})),t},e.getPluginVersion=function(e){var t=ya(e);return t&&t.VERSION||""},e}();Sa.getPlugin=ya,Sa.BASE_PLUGIN_NAME=pa,Sa.registerPlugin(pa,Sa),ha.prototype.usingPlugin=function(e){return!!this[ma]&&!0===this[ma][e]},ha.prototype.hasPlugin=function(e){return!!va(e)};var ka=function(e,t){void 0===t&&(t={});var n=function(){e.apply(this,arguments)},i={};for(var r in"object"===typeof t?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),i=t):"function"===typeof t&&(n=t),(0,m.default)(n,e),e&&(n.super_=e),i)i.hasOwnProperty(r)&&(n.prototype[r]=i[r]);return n},Ca=function(e){return 0===e.indexOf("#")?e.slice(1):e};function xa(e,t,n){var i=xa.getPlayer(e);if(i)return t&&F.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&i.ready(n),i;var r="string"===typeof e?Ye("#"+Ca(e)):e;if(!Te(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");r.ownerDocument.defaultView&&r.ownerDocument.body.contains(r)||F.warn("The element supplied is not included in the DOM"),t=t||{},!0===t.restoreEl&&(t.restoreEl=(r.parentNode&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),A("beforesetup").forEach((function(e){var n=e(r,Ht(t));G(n)&&!Array.isArray(n)?t=Ht(t,n):F.error("please return an object in beforesetup hooks")}));var a=Gt.getComponent("Player");return i=new a(r,t,n),A("setup").forEach((function(e){return e(i)})),i}if(xa.hooks_=E,xa.hooks=A,xa.hook=O,xa.hookOnce=I,xa.removeHook=j,!0!==a.default.VIDEOJS_NO_DYNAMIC_STYLE&&_e()){var Ea=Ye(".vjs-styles-defaults");if(!Ea){Ea=nt("vjs-styles-defaults");var Aa=Ye("head");Aa&&Aa.insertBefore(Ea,Aa.firstChild),it(Ea,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: 56.25%\n }\n ")}}Ze(1,xa),xa.VERSION=x,xa.options=ha.prototype.options_,xa.getPlayers=function(){return ha.players},xa.getPlayer=function(e){var t,n=ha.players;if("string"===typeof e){var i=Ca(e),r=n[i];if(r)return r;t=Ye("#"+i)}else t=e;if(Te(t)){var a=t,o=a.player,s=a.playerId;if(o||n[s])return o||n[s]}},xa.getAllPlayers=function(){return Object.keys(ha.players).map((function(e){return ha.players[e]})).filter(Boolean)},xa.players=ha.players,xa.getComponent=Gt.getComponent,xa.registerComponent=function(e,t){Vn.isTech(t)&&F.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Gt.registerComponent.call(Gt,e,t)},xa.getTech=Vn.getTech,xa.registerTech=Vn.registerTech,xa.use=Gn,Object.defineProperty(xa,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(xa.middleware,"TERMINATOR",{value:Wn,writeable:!1,enumerable:!0}),xa.browser=ge,xa.TOUCH_ENABLED=de,xa.extend=ka,xa.mergeOptions=Ht,xa.bind=wt,xa.registerPlugin=Sa.registerPlugin,xa.deregisterPlugin=Sa.deregisterPlugin,xa.plugin=function(e,t){return F.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Sa.registerPlugin(e,t)},xa.getPlugins=Sa.getPlugins,xa.getPlugin=Sa.getPlugin,xa.getPluginVersion=Sa.getPluginVersion,xa.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),xa.options.languages=Ht(xa.options.languages,(n={},n[e]=t,n)),xa.options.languages[e]},xa.log=F,xa.createLogger=$,xa.createTimeRange=xa.createTimeRanges=Qt,xa.formatTime=ji,xa.setFormatTime=Ai,xa.resetFormatTime=Oi,xa.parseUrl=kn,xa.isCrossOrigin=En,xa.EventTarget=Ct,xa.on=pt,xa.one=vt,xa.off=mt,xa.trigger=gt,xa.xhr=h.default,xa.TextTrack=In,xa.AudioTrack=Pn,xa.VideoTrack=Ln,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(e){xa[e]=function(){return F.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Ke[e].apply(null,arguments)}})),xa.computedStyle=X,xa.dom=Ke,xa.url=An,xa.defineLazyProperty=aa,xa.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});/*! @name @videojs/http-streaming @version 2.14.3 @license Apache-2.0 */
  2. var Oa=g.default,ja=function(e,t,n){return e&&n&&n.responseURL&&t!==n.responseURL?n.responseURL:t},Ia=function(e){return xa.log.debug?xa.log.debug.bind(xa,"VHS:",e+" >"):function(){}},Pa=1/30,La=3*Pa,Ma=function(e,t){var n,i=[];if(e&&e.length)for(n=0;n<e.length;n++)t(e.start(n),e.end(n))&&i.push([e.start(n),e.end(n)]);return xa.createTimeRanges(i)},Da=function(e,t){return Ma(e,(function(e,n){return e-La<=t&&n+La>=t}))},Ra=function(e,t){return Ma(e,(function(e){return e-Pa>=t}))},Na=function(e){if(e.length<2)return xa.createTimeRanges();for(var t=[],n=1;n<e.length;n++){var i=e.end(n-1),r=e.start(n);t.push([i,r])}return xa.createTimeRanges(t)},Ba=function(e,t){var n=null,i=null,r=0,a=[],o=[];if(!e||!e.length||!t||!t.length)return xa.createTimeRange();var s=e.length;while(s--)a.push({time:e.start(s),type:"start"}),a.push({time:e.end(s),type:"end"});s=t.length;while(s--)a.push({time:t.start(s),type:"start"}),a.push({time:t.end(s),type:"end"});for(a.sort((function(e,t){return e.time-t.time})),s=0;s<a.length;s++)"start"===a[s].type?(r++,2===r&&(n=a[s].time)):"end"===a[s].type&&(r--,1===r&&(i=a[s].time)),null!==n&&null!==i&&(o.push([n,i]),n=null,i=null);return xa.createTimeRanges(o)},Ua=function(e){var t=[];if(!e||!e.length)return"";for(var n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")},Fa=function(e,t,n){void 0===n&&(n=1);var i=e.length?e.end(e.length-1):0;return(i-t)/n},$a=function(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},Ha=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e.start(n)!==t.start(n)||e.end(n)!==t.end(n))return!0;return!1},Va=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},qa=function(e,t){var n=0;if(!e||!e.length)return n;for(var i=0;i<e.length;i++){var r=e.start(i),a=e.end(i);t>a||(n+=t>r&&t<=a?a-t:a-r)}return n},za=xa.createTimeRange,Wa=function(e,t){if(!t.preload)return t.duration;var n=0;return(t.parts||[]).forEach((function(e){n+=e.duration})),(t.preloadHints||[]).forEach((function(t){"PART"===t.type&&(n+=e.partTargetDuration)})),n},Ga=function(e){return(e.segments||[]).reduce((function(e,t,n){return t.parts?t.parts.forEach((function(i,r){e.push({duration:i.duration,segmentIndex:n,partIndex:r,part:i,segment:t})})):e.push({duration:t.duration,segmentIndex:n,partIndex:null,segment:t,part:null}),e}),[])},Ya=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},Xa=function(e){var t=e.preloadSegment;if(t){var n=t.parts,i=t.preloadHints,r=(i||[]).reduce((function(e,t){return e+("PART"===t.type?1:0)}),0);return r+=n&&n.length?n.length:0,r}},Ka=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var n=Ya(t).length>0;return n&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:n&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},Qa=function(e,t){var n=0,i=t-e.mediaSequence,r=e.segments[i];if(r){if("undefined"!==typeof r.start)return{result:r.start,precise:!0};if("undefined"!==typeof r.end)return{result:r.end-r.duration,precise:!0}}while(i--){if(r=e.segments[i],"undefined"!==typeof r.end)return{result:n+r.end,precise:!0};if(n+=Wa(e,r),"undefined"!==typeof r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}},Ja=function(e,t){for(var n,i=0,r=t-e.mediaSequence;r<e.segments.length;r++){if(n=e.segments[r],"undefined"!==typeof n.start)return{result:n.start-i,precise:!0};if(i+=Wa(e,n),"undefined"!==typeof n.end)return{result:n.end-i,precise:!0}}return{result:-1,precise:!1}},Za=function(e,t,n){if("undefined"===typeof t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;var i=Qa(e,t);if(i.precise)return i.result;var r=Ja(e,t);return r.precise?r.result:i.result+n},eo=function(e,t,n){if(!e)return 0;if("number"!==typeof n&&(n=0),"undefined"===typeof t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return a.default.Infinity}return Za(e,t,n)},to=function(e){var t=e.defaultDuration,n=e.durationList,i=e.startIndex,r=e.endIndex,a=0;if(i>r){var o=[r,i];i=o[0],r=o[1]}if(i<0){for(var s=i;s<Math.min(0,r);s++)a+=t;i=0}for(var u=i;u<r;u++)a+=n[u].duration;return a},no=function(e,t,n,i){if(!e||!e.segments)return null;if(e.endList)return eo(e);if(null===t)return null;t=t||0;var r=Za(e,e.mediaSequence+e.segments.length,t);return n&&(i="number"===typeof i?i:Ka(null,e),r-=i),Math.max(0,r)},io=function(e,t,n){var i=!0,r=t||0,a=no(e,t,i,n);return null===a?za():za(r,a)},ro=function(e){for(var t=e.playlist,n=e.currentTime,i=e.startingSegmentIndex,r=e.startingPartIndex,a=e.startTime,o=e.experimentalExactManifestTimings,s=n-a,u=Ga(t),c=0,l=0;l<u.length;l++){var d=u[l];if(i===d.segmentIndex&&("number"!==typeof r||"number"!==typeof d.partIndex||r===d.partIndex)){c=l;break}}if(s<0){if(c>0)for(var h=c-1;h>=0;h--){var f=u[h];if(s+=f.duration,o){if(s<0)continue}else if(s+Pa<=0)continue;return{partIndex:f.partIndex,segmentIndex:f.segmentIndex,startTime:a-to({defaultDuration:t.targetDuration,durationList:u,startIndex:c,endIndex:h})}}return{partIndex:u[0]&&u[0].partIndex||null,segmentIndex:u[0]&&u[0].segmentIndex||0,startTime:n}}if(c<0){for(var p=c;p<0;p++)if(s-=t.targetDuration,s<0)return{partIndex:u[0]&&u[0].partIndex||null,segmentIndex:u[0]&&u[0].segmentIndex||0,startTime:n};c=0}for(var m=c;m<u.length;m++){var g=u[m];if(s-=g.duration,o){if(s>0)continue}else if(s-Pa>=0)continue;return{partIndex:g.partIndex,segmentIndex:g.segmentIndex,startTime:a+to({defaultDuration:t.targetDuration,durationList:u,startIndex:c,endIndex:m})}}return{segmentIndex:u[u.length-1].segmentIndex,partIndex:u[u.length-1].partIndex,startTime:n}},ao=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},oo=function(e){return e.excludeUntil&&e.excludeUntil===1/0},so=function(e){var t=ao(e);return!e.disabled&&!t},uo=function(e){return e.disabled},co=function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},lo=function(e,t){return t.attributes&&t.attributes[e]},ho=function(e,t,n,i){if(void 0===i&&(i=0),!lo("BANDWIDTH",n))return NaN;var r=e*n.attributes.BANDWIDTH;return(r-8*i)/t},fo=function(e,t){if(1===e.playlists.length)return!0;var n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter((function(e){return!!so(e)&&(e.attributes.BANDWIDTH||0)<n})).length},po=function(e,t){return!(!e&&!t||!e&&t||e&&!t)&&(e===t||(!(!e.id||!t.id||e.id!==t.id)||(!(!e.resolvedUri||!t.resolvedUri||e.resolvedUri!==t.resolvedUri)||!(!e.uri||!t.uri||e.uri!==t.uri))))},mo=function(e,t){var n=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},i=!1;for(var r in n){for(var a in n[r])if(i=t(n[r][a]),i)break;if(i)break}return!!i},go=function(e){if(!e||!e.playlists||!e.playlists.length){var t=mo(e,(function(e){return e.playlists&&e.playlists.length||e.uri}));return t}for(var n=function(t){var n=e.playlists[t],i=n.attributes&&n.attributes.CODECS;if(i&&i.split(",").every((function(e){return(0,y.isAudioCodec)(e)})))return"continue";var r=mo(e,(function(e){return po(n,e)}));return r?"continue":{v:!1}},i=0;i<e.playlists.length;i++){var r=n(i);if("continue"!==r&&"object"===typeof r)return r.v}return!0},vo={liveEdgeDelay:Ka,duration:eo,seekable:io,getMediaInfoForTime:ro,isEnabled:so,isDisabled:uo,isBlacklisted:ao,isIncompatible:oo,playlistEnd:no,isAes:co,hasAttribute:lo,estimateSegmentRequestTime:ho,isLowestEnabledRendition:fo,isAudioOnly:go,playlistMatch:po,segmentDurationWithParts:Wa},yo=xa.log,bo=function(e,t){return e+"-"+t},_o=function(e){var t=e.onwarn,n=e.oninfo,i=e.manifestString,r=e.customTagParsers,a=void 0===r?[]:r,o=e.customTagMappers,s=void 0===o?[]:o,u=e.experimentalLLHLS,c=new v.Parser;t&&c.on("warn",t),n&&c.on("info",n),a.forEach((function(e){return c.addParser(e)})),s.forEach((function(e){return c.addTagMapper(e)})),c.push(i),c.end();var l=c.manifest;if(u||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach((function(e){l.hasOwnProperty(e)&&delete l[e]})),l.segments&&l.segments.forEach((function(e){["parts","preloadHints"].forEach((function(t){e.hasOwnProperty(t)&&delete e[t]}))}))),!l.targetDuration){var d=10;l.segments&&l.segments.length&&(d=l.segments.reduce((function(e,t){return Math.max(e,t.duration)}),0)),t&&t("manifest has no targetDuration defaulting to "+d),l.targetDuration=d}var h=Ya(l);if(h.length&&!l.partTargetDuration){var f=h.reduce((function(e,t){return Math.max(e,t.duration)}),0);t&&(t("manifest has no partTargetDuration defaulting to "+f),yo.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),l.partTargetDuration=f}return l},To=function(e,t){e.mediaGroups&&["AUDIO","SUBTITLES"].forEach((function(n){if(e.mediaGroups[n])for(var i in e.mediaGroups[n])for(var r in e.mediaGroups[n][i]){var a=e.mediaGroups[n][i][r];t(a,n,i,r)}}))},wo=function(e){var t=e.playlist,n=e.uri,i=e.id;t.id=i,t.playlistErrors_=0,n&&(t.uri=n),t.attributes=t.attributes||{}},So=function(e){var t=e.playlists.length;while(t--){var n=e.playlists[t];wo({playlist:n,id:bo(t,n.uri)}),n.resolvedUri=Oa(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||yo.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},ko=function(e){To(e,(function(t){t.uri&&(t.resolvedUri=Oa(e.uri,t.uri))}))},Co=function(e,t){var n=bo(0,t),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:a.default.location.href,resolvedUri:a.default.location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return i.playlists[n]=i.playlists[0],i.playlists[t]=i.playlists[0],i},xo=function(e,t){e.uri=t;for(var n=0;n<e.playlists.length;n++)if(!e.playlists[n].uri){var i="placeholder-uri-"+n;e.playlists[n].uri=i}var r=go(e);To(e,(function(t,n,i,a){var o="placeholder-uri-"+n+"-"+i+"-"+a;if(!t.playlists||!t.playlists.length){if(r&&"AUDIO"===n&&!t.uri)for(var u=0;u<e.playlists.length;u++){var c=e.playlists[u];if(c.attributes&&c.attributes.AUDIO&&c.attributes.AUDIO===i)return}t.playlists=[(0,s.default)({},t)]}t.playlists.forEach((function(t,n){var i=bo(n,o);t.uri?t.resolvedUri=t.resolvedUri||Oa(e.uri,t.uri):(t.uri=0===n?o:i,t.resolvedUri=t.uri),t.id=t.id||i,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t}))})),So(e),ko(e)},Eo=xa.mergeOptions,Ao=xa.EventTarget,Oo=function(e,t){if(t.endList||!t.serverControl)return e;var n={};if(t.serverControl.canBlockReload){var i=t.preloadSegment,r=t.mediaSequence+t.segments.length;if(i){var o=i.parts||[],s=Xa(t)-1;s>-1&&s!==o.length-1&&(n._HLS_part=s),(s>-1||o.length)&&r--}n._HLS_msn=r}if(t.serverControl&&t.serverControl.canSkipUntil&&(n._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length){var u=new a.default.URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach((function(e){n.hasOwnProperty(e)&&u.searchParams.set(e,n[e])})),e=u.toString()}return e},jo=function(e,t){if(!e)return t;var n=Eo(e,t);if(e.preloadHints&&!t.preloadHints&&delete n.preloadHints,e.parts&&!t.parts)delete n.parts;else if(e.parts&&t.parts)for(var i=0;i<t.parts.length;i++)e.parts&&e.parts[i]&&(n.parts[i]=Eo(e.parts[i],t.parts[i]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n},Io=function(e,t,n){var i=e.slice(),r=t.slice();n=n||0;for(var a,o=[],s=0;s<r.length;s++){var u=i[s+n],c=r[s];u?(a=u.map||a,o.push(jo(u,c))):(a&&!c.map&&(c.map=a),o.push(c))}return o},Po=function(e,t){!e.resolvedUri&&e.uri&&(e.resolvedUri=Oa(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=Oa(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=Oa(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=Oa(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach((function(e){e.resolvedUri||(e.resolvedUri=Oa(t,e.uri))})),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach((function(e){e.resolvedUri||(e.resolvedUri=Oa(t,e.uri))}))},Lo=function(e){var t=e.segments||[],n=e.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints)for(var i=0;i<n.preloadHints.length;i++)if("MAP"===n.preloadHints[i].type)return t;n.duration=e.targetDuration,n.preload=!0,t.push(n)}return t},Mo=function(e,t){return e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment},Do=function(e,t,n){void 0===n&&(n=Mo);var i=Eo(e,{}),r=i.playlists[t.id];if(!r)return null;if(n(r,t))return null;t.segments=Lo(t);var a=Eo(r,t);if(a.preloadSegment&&!t.preloadSegment&&delete a.preloadSegment,r.segments){if(t.skip){t.segments=t.segments||[];for(var o=0;o<t.skip.skippedSegments;o++)t.segments.unshift({skipped:!0})}a.segments=Io(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}a.segments.forEach((function(e){Po(e,a.resolvedUri)}));for(var s=0;s<i.playlists.length;s++)i.playlists[s].id===t.id&&(i.playlists[s]=a);return i.playlists[t.id]=a,i.playlists[t.uri]=a,To(e,(function(e,n,i,r){if(e.playlists)for(var o=0;o<e.playlists.length;o++)t.id===e.playlists[o].id&&(e.playlists[o]=a)})),i},Ro=function(e,t){var n=e.segments||[],i=n[n.length-1],r=i&&i.parts&&i.parts[i.parts.length-1],a=r&&r.duration||i&&i.duration;return t&&a?1e3*a:500*(e.partTargetDuration||e.targetDuration||10)},No=function(e){function t(t,n,i){var r;if(void 0===i&&(i={}),r=e.call(this)||this,!t)throw new Error("A non-empty playlist URL or object is required");r.logger_=Ia("PlaylistLoader");var a=i,o=a.withCredentials,s=void 0!==o&&o,u=a.handleManifestRedirects,l=void 0!==u&&u;r.src=t,r.vhs_=n,r.withCredentials=s,r.handleManifestRedirects=l;var d=n.options_;return r.customTagParsers=d&&d.customTagParsers||[],r.customTagMappers=d&&d.customTagMappers||[],r.experimentalLLHLS=d&&d.experimentalLLHLS||!1,xa.browser.IE_VERSION&&(r.experimentalLLHLS=!1),r.state="HAVE_NOTHING",r.handleMediaupdatetimeout_=r.handleMediaupdatetimeout_.bind((0,c.default)(r)),r.on("mediaupdatetimeout",r.handleMediaupdatetimeout_),r}(0,l.default)(t,e);var n=t.prototype;return n.handleMediaupdatetimeout_=function(){var e=this;if("HAVE_METADATA"===this.state){var t=this.media(),n=Oa(this.master.uri,t.uri);this.experimentalLLHLS&&(n=Oo(n,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},(function(t,n){if(e.request)return t?e.playlistRequestError(e.request,e.media(),"HAVE_METADATA"):void e.haveMetadata({playlistString:e.request.responseText,url:e.media().uri,id:e.media().id})}))}},n.playlistRequestError=function(e,t,n){var i=t.uri,r=t.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[r],status:e.status,message:"HLS playlist request error at URL: "+i+".",responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")},n.parseManifest_=function(e){var t=this,n=e.url,i=e.manifestString;return _o({onwarn:function(e){var i=e.message;return t.logger_("m3u8-parser warn for "+n+": "+i)},oninfo:function(e){var i=e.message;return t.logger_("m3u8-parser info for "+n+": "+i)},manifestString:i,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},n.haveMetadata=function(e){var t=e.playlistString,n=e.playlistObject,i=e.url,r=e.id;this.request=null,this.state="HAVE_METADATA";var a=n||this.parseManifest_({url:i,manifestString:t});a.lastRequest=Date.now(),wo({playlist:a,uri:i,id:r});var o=Do(this.master,a);this.targetDuration=a.partTargetDuration||a.targetDuration,this.pendingMedia_=null,o?(this.master=o,this.media_=this.master.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(Ro(this.media(),!!o)),this.trigger("loadedplaylist")},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),a.default.clearTimeout(this.mediaUpdateTimeout),a.default.clearTimeout(this.finalRenditionTimeout),this.off()},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e,t){var n=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"===typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(a.default.clearTimeout(this.finalRenditionTimeout),t){var i=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=a.default.setTimeout(this.media.bind(this,e,!1),i)}else{var r=this.state,o=!this.media_||e.id!==this.media_.id,s=this.master.playlists[e.id];if(s&&s.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(o&&(this.trigger("mediachanging"),"HAVE_MASTER"===r?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(Ro(e,!0)),o){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},(function(t,i){if(n.request){if(e.lastRequest=Date.now(),e.resolvedUri=ja(n.handleManifestRedirects,e.resolvedUri,i),t)return n.playlistRequestError(n.request,e,r);n.haveMetadata({playlistString:i.responseText,url:e.uri,id:e.id}),"HAVE_MASTER"===r?n.trigger("loadedmetadata"):n.trigger("mediachange")}}))}}},n.pause=function(){this.mediaUpdateTimeout&&(a.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},n.load=function(e){var t=this;this.mediaUpdateTimeout&&(a.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var n=this.media();if(e){var i=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=a.default.setTimeout((function(){t.mediaUpdateTimeout=null,t.load()}),i)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},n.updateMediaUpdateTimeout_=function(e){var t=this;this.mediaUpdateTimeout&&(a.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=a.default.setTimeout((function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)}),e))},n.start=function(){var e=this;if(this.started=!0,"object"===typeof this.src)return this.src.uri||(this.src.uri=a.default.location.href),this.src.resolvedUri=this.src.uri,void setTimeout((function(){e.setupInitialPlaylist(e.src)}),0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"HLS playlist request error at URL: "+e.src+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=ja(e.handleManifestRedirects,e.src,n);var i=e.parseManifest_({manifestString:n.responseText,url:e.src});e.setupInitialPlaylist(i)}}))},n.srcUri=function(){return"string"===typeof this.src?this.src:this.src.uri},n.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists)return this.master=e,xo(this.master,this.srcUri()),e.playlists.forEach((function(e){e.segments=Lo(e),e.segments.forEach((function(t){Po(t,e.resolvedUri)}))})),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var t=this.srcUri()||a.default.location.href;this.master=Co(e,t),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(Ao),Bo=xa.xhr,Uo=xa.mergeOptions,Fo=function(e,t,n,i){var r="arraybuffer"===e.responseType?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),n.headers&&(e.responseHeaders=n.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),i(t,e)},$o=function(){var e=function e(t,n){t=Uo({timeout:45e3},t);var i=e.beforeRequest||xa.Vhs.xhr.beforeRequest;if(i&&"function"===typeof i){var r=i(t);r&&(t=r)}var a=!0===xa.Vhs.xhr.original?Bo:xa.Vhs.xhr,o=a(t,(function(e,t){return Fo(o,e,t,n)})),s=o.abort;return o.abort=function(){return o.aborted=!0,s.apply(o,arguments)},o.uri=t.uri,o.requestTime=Date.now(),o};return e.original=!0,e},Ho=function(e){var t,n=e.offset;return t="bigint"===typeof e.offset||"bigint"===typeof e.length?a.default.BigInt(e.offset)+a.default.BigInt(e.length)-a.default.BigInt(1):e.offset+e.length-1,"bytes="+n+"-"+t},Vo=function(e){var t={};return e.byterange&&(t.Range=Ho(e.byterange)),t},qo=function(e,t){return e.start(t)+"-"+e.end(t)},zo=function(e,t){var n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},Wo=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},Go=function(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];(0,_.isArrayBufferView)(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i})),t},Yo=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},Xo=function(e){return e.resolvedUri},Ko=function(e){for(var t,n,i=Array.prototype.slice.call(e),r=16,a="",o=0;o<i.length/r;o++)t=i.slice(o*r,o*r+r).map(zo).join(""),n=i.slice(o*r,o*r+r).map(Wo).join(""),a+=t+" "+n+"\n";return a},Qo=function(e){var t=e.bytes;return Ko(t)},Jo=function(e){var t,n="";for(t=0;t<e.length;t++)n+=qo(e,t)+" ";return n},Zo=Object.freeze({__proto__:null,createTransferableMessage:Go,initSegmentId:Yo,segmentKeyId:Xo,hexDump:Ko,tagDump:Qo,textRanges:Jo}),es=.25,ts=function(e,t){if(!t.dateTimeObject)return null;var n=t.videoTimingInfo.transmuxerPrependedSeconds,i=t.videoTimingInfo.transmuxedPresentationStart,r=i+n,a=e-r;return new Date(t.dateTimeObject.getTime()+1e3*a)},ns=function(e){return e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds},is=function(e,t){var n;try{n=new Date(e)}catch(l){return null}if(!t||!t.segments||0===t.segments.length)return null;var i=t.segments[0];if(n<i.dateTimeObject)return null;for(var r=0;r<t.segments.length-1;r++){i=t.segments[r];var a=t.segments[r+1].dateTimeObject;if(n<a)break}var o=t.segments[t.segments.length-1],s=o.dateTimeObject,u=o.videoTimingInfo?ns(o.videoTimingInfo):o.duration+o.duration*es,c=new Date(s.getTime()+1e3*u);return n>c?null:(n>s&&(i=o),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:vo.duration(t,t.mediaSequence+t.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})},rs=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var n,i=0,r=0;r<t.segments.length;r++)if(n=t.segments[r],i=n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:i+n.duration,e<=i)break;var a=t.segments[t.segments.length-1];if(a.videoTimingInfo&&a.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>i){if(e>i+a.duration*es)return null;n=a}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}},as=function(e,t){var n,i;try{n=new Date(e),i=new Date(t)}catch(o){}var r=n.getTime(),a=i.getTime();return(a-r)/1e3},os=function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++){var n=e.segments[t];if(!n.dateTimeObject)return!1}return!0},ss=function(e){var t=e.playlist,n=e.time,i=void 0===n?void 0:n,r=e.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!t||void 0===i)return r({message:"getProgramTime: playlist and time must be provided"});var a=rs(i,t);if(!a)return r({message:"valid programTime was not found"});if("estimate"===a.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:a.estimatedStart});var o={mediaSeconds:i},s=ts(i,a.segment);return s&&(o.programDateTime=s.toISOString()),r(null,o)},us=function e(t){var n=t.programTime,i=t.playlist,r=t.retryCount,a=void 0===r?2:r,o=t.seekTo,s=t.pauseAfterSeek,u=void 0===s||s,c=t.tech,l=t.callback;if(!l)throw new Error("seekToProgramTime: callback must be provided");if("undefined"===typeof n||!i||!o)return l({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!i.endList&&!c.hasStarted_)return l({message:"player must be playing a live stream to start buffering"});if(!os(i))return l({message:"programDateTime tags must be provided in the manifest "+i.resolvedUri});var d=is(n,i);if(!d)return l({message:n+" was not found in the stream"});var h=d.segment,f=as(h.dateTimeObject,n);if("estimate"===d.type)return 0===a?l({message:n+" is not buffered yet. Try again"}):(o(d.estimatedStart+f),void c.one("seeked",(function(){e({programTime:n,playlist:i,retryCount:a-1,seekTo:o,pauseAfterSeek:u,tech:c,callback:l})})));var p=h.start+f,m=function(){return l(null,c.currentTime())};c.one("seeked",m),u&&c.pause(),o(p)},cs=function(e,t){if(4===e.readyState)return t()},ls=function(e,t,n){var i,r=[],a=!1,o=function(e,t,i,r){return t.abort(),a=!0,n(e,t,i,r)},s=function(e,t){if(!a){if(e)return o(e,t,"",r);var n=t.responseText.substring(r&&r.byteLength||0,t.responseText.length);if(r=(0,_.concatTypedArrays)(r,(0,_.stringToBytes)(n,!0)),i=i||(0,S.getId3Offset)(r),r.length<10||i&&r.length<i+2)return cs(t,(function(){return o(e,t,"",r)}));var s=(0,k.detectContainerForBytes)(r);return"ts"===s&&r.length<188||!s&&r.length<376?cs(t,(function(){return o(e,t,"",r)})):o(null,t,s,r)}},u={uri:e,beforeSend:function(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",(function(t){return t.total,t.loaded,Fo(e,null,{statusCode:e.status},s)}))}},c=t(u,(function(e,t){return Fo(c,e,t,s)}));return c},ds=xa.EventTarget,hs=xa.mergeOptions,fs=function(e,t){if(!Mo(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(var n=0;n<e.segments.length;n++){var i=e.segments[n],r=t.segments[n];if(i.uri!==r.uri)return!1;if(i.byterange||r.byterange){var a=i.byterange,o=r.byterange;if(a&&!o||!a&&o)return!1;if(a.offset!==o.offset||a.length!==o.length)return!1}}return!0},ps=function(e){var t=e.masterXml,n=e.srcUrl,i=e.clientOffset,r=e.sidxMapping,a=e.previousManifest,o=(0,T.parse)(t,{manifestUri:n,clientOffset:i,sidxMapping:r,previousManifest:a});return xo(o,n),o},ms=function(e,t,n){for(var i=!0,r=hs(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts}),a=0;a<t.playlists.length;a++){var o=t.playlists[a];if(o.sidx){var s=(0,T.generateSidxKey)(o.sidx);n&&n[s]&&n[s].sidx&&(0,T.addSidxSegmentsToPlaylist)(o,n[s].sidx,o.sidx.resolvedUri)}var u=Do(r,o,fs);u&&(r=u,i=!1)}return To(t,(function(e,t,n,a){if(e.playlists&&e.playlists.length){var o=e.playlists[0].id,s=Do(r,e.playlists[0],fs);s&&(r=s,r.mediaGroups[t][n][a].playlists[0]=r.playlists[o],i=!1)}})),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(i=!1),i?null:r},gs=function(e,t){var n=Boolean(!e.map&&!t.map),i=n||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length);return i&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length},vs=function(e,t){var n={};for(var i in e){var r=e[i],a=r.sidx;if(a){var o=(0,T.generateSidxKey)(a);if(!t[o])break;var s=t[o].sidxInfo;gs(s,a)&&(n[o]=t[o])}}return n},ys=function(e,t){var n=vs(e.playlists,t),i=n;return To(e,(function(e,n,r,a){if(e.playlists&&e.playlists.length){var o=e.playlists;i=hs(i,vs(o,t))}})),i},bs=function(e){function t(t,n,i,r){var a;void 0===i&&(i={}),a=e.call(this)||this,a.masterPlaylistLoader_=r||(0,c.default)(a),r||(a.isMaster_=!0);var o=i,s=o.withCredentials,u=void 0!==s&&s,l=o.handleManifestRedirects,d=void 0!==l&&l;if(a.vhs_=n,a.withCredentials=u,a.handleManifestRedirects=d,!t)throw new Error("A non-empty playlist URL or object is required");return a.on("minimumUpdatePeriod",(function(){a.refreshXml_()})),a.on("mediaupdatetimeout",(function(){a.refreshMedia_(a.media().id)})),a.state="HAVE_NOTHING",a.loadedPlaylists_={},a.logger_=Ia("DashPlaylistLoader"),a.isMaster_?(a.masterPlaylistLoader_.srcUrl=t,a.masterPlaylistLoader_.sidxMapping_={}):a.childPlaylist_=t,a}(0,l.default)(t,e);var n=t.prototype;return n.requestErrored_=function(e,t,n){return!this.request||(this.request=null,e?(this.error="object"!==typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2}:e,n&&(this.state=n),this.trigger("error"),!0):void 0)},n.addSidxSegments_=function(e,t,n){var i=this,r=e.sidx&&(0,T.generateSidxKey)(e.sidx);if(e.sidx&&r&&!this.masterPlaylistLoader_.sidxMapping_[r]){var o=ja(this.handleManifestRedirects,e.sidx.resolvedUri),s=function(a,o){if(!i.requestErrored_(a,o,t)){var s,u=i.masterPlaylistLoader_.sidxMapping_;try{s=(0,w.default)((0,_.toUint8)(o.response).subarray(8))}catch(c){return void i.requestErrored_(c,o,t)}return u[r]={sidxInfo:e.sidx,sidx:s},(0,T.addSidxSegmentsToPlaylist)(e,s,e.sidx.resolvedUri),n(!0)}};this.request=ls(o,this.vhs_.xhr,(function(t,n,r,a){if(t)return s(t,n);if(!r||"mp4"!==r)return s({status:n.status,message:"Unsupported "+(r||"unknown")+" container type for sidx segment at URL: "+o,response:"",playlist:e,internal:!0,blacklistDuration:1/0,code:2},n);var u=e.sidx.byterange,c=u.offset,l=u.length;if(a.length>=l+c)return s(t,{response:a.subarray(c,c+l),status:n.status,uri:n.uri});i.request=i.vhs_.xhr({uri:o,responseType:"arraybuffer",headers:Vo({byterange:e.sidx.byterange})},s)}))}else this.mediaRequest_=a.default.setTimeout((function(){return n(!1)}),0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},a.default.clearTimeout(this.minimumUpdatePeriodTimeout_),a.default.clearTimeout(this.mediaRequest_),a.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},n.hasPendingRequest=function(){return this.request||this.mediaRequest_},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"===typeof e){if(!this.masterPlaylistLoader_.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.masterPlaylistLoader_.master.playlists[e]}var i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,n,(function(i){t.haveMetadata({startingState:n,playlist:e})})))},n.haveMetadata=function(e){var t=e.startingState,n=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},n.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),a.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(a.default.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(e){var t=this;a.default.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var n=this.media();if(e){var i=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=a.default.setTimeout((function(){return t.load()}),i)}else this.started?n&&!n.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},n.start=function(){var e=this;this.started=!0,this.isMaster_?this.requestMaster_((function(t,n){e.haveMaster_(),e.hasPendingRequest()||e.media_||e.media(e.masterPlaylistLoader_.master.playlists[0])})):this.mediaRequest_=a.default.setTimeout((function(){return e.haveMaster_()}),0)},n.requestMaster_=function(e){var t=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(function(n,i){if(!t.requestErrored_(n,i)){var r=i.responseText!==t.masterPlaylistLoader_.masterXml_;return t.masterPlaylistLoader_.masterXml_=i.responseText,i.responseHeaders&&i.responseHeaders.date?t.masterLoaded_=Date.parse(i.responseHeaders.date):t.masterLoaded_=Date.now(),t.masterPlaylistLoader_.srcUrl=ja(t.handleManifestRedirects,t.masterPlaylistLoader_.srcUrl,i),r?(t.handleMaster_(),void t.syncClientServerClock_((function(){return e(i,r)}))):e(i,r)}"HAVE_NOTHING"===t.state&&(t.started=!1)}))},n.syncClientServerClock_=function(e){var t=this,n=(0,T.parseUTCTiming)(this.masterPlaylistLoader_.masterXml_);return null===n?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===n.method?(this.masterPlaylistLoader_.clientOffset_=n.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:Oa(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},(function(i,r){if(t.request){if(i)return t.masterPlaylistLoader_.clientOffset_=t.masterLoaded_-Date.now(),e();var a;a="HEAD"===n.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):t.masterLoaded_:Date.parse(r.responseText),t.masterPlaylistLoader_.clientOffset_=a-Date.now(),e()}})))},n.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},n.handleMaster_=function(){this.mediaRequest_=null;var e=this.masterPlaylistLoader_.master,t=ps({masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:e});e&&(t=ms(e,t,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=t||e;var n=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return n&&n!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=n),(!e||t&&t.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(t)},n.updateMinimumUpdatePeriodTimeout_=function(){var e=this.masterPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(a.default.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);var t=e.master&&e.master.minimumUpdatePeriod;0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!==typeof t||t<=0?t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout"):this.createMUPTimeout_(t)},n.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=a.default.setTimeout((function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)}),e)},n.refreshXml_=function(){var e=this;this.requestMaster_((function(t,n){n&&(e.media_&&(e.media_=e.masterPlaylistLoader_.master.playlists[e.media_.id]),e.masterPlaylistLoader_.sidxMapping_=ys(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.sidxMapping_),e.addSidxSegments_(e.media(),e.state,(function(t){e.refreshMedia_(e.media().id)})))}))},n.refreshMedia_=function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var n=this.masterPlaylistLoader_.master.playlists,i=!this.media_||this.media_!==n[e];if(i?this.media_=n[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){var r=function e(){t.media().endList||(t.mediaUpdateTimeout=a.default.setTimeout((function(){t.trigger("mediaupdatetimeout"),e()}),Ro(t.media(),Boolean(i))))};r()}this.trigger("loadedplaylist")},t}(ds),_s={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},Ts=function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t.buffer},ws=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},Ss=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(n){var t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}},ks=function(e){return function(){var t=Ss(e),n=ws(new Worker(t));n.objURL=t;var i=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(t),i.call(this)},n}},Cs=function(e){return"var browserWorkerPolyFill = "+ws.toString()+";\nbrowserWorkerPolyFill(self);\n"+e},xs=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},Es=Cs(xs((function(){var t=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var i;return!!e[t]&&(i=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(i,1),i>-1)},this.trigger=function(t){var n,i,r,a;if(n=e[t],n)if(2===arguments.length)for(r=n.length,i=0;i<r;++i)n[i].call(this,arguments[1]);else{for(a=[],i=arguments.length,i=1;i<arguments.length;++i)a.push(arguments[i]);for(r=n.length,i=0;i<r;++i)n[i].apply(this,a)}},this.dispose=function(){e={}}}};t.prototype.pipe=function(e){return this.on("data",(function(t){e.push(t)})),this.on("done",(function(t){e.flush(t)})),this.on("partialdone",(function(t){e.partialFlush(t)})),this.on("endedtimeline",(function(t){e.endTimeline(t)})),this.on("reset",(function(t){e.reset(t)})),e},t.prototype.push=function(e){this.trigger("data",e)},t.prototype.flush=function(e){this.trigger("done",e)},t.prototype.partialFlush=function(e){this.trigger("partialdone",e)},t.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},t.prototype.reset=function(e){this.trigger("reset",e)};var n,i,r,a,o,s,u,c,l,d,h,f,p,m,g,v,y,b,_,T,w,S,k,C,x,E,A,O,j,I,P,L,M,D,R,N,B=t,U=Math.pow(2,32),F=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(t=n.getBigUint64(0),t<Number.MAX_SAFE_INTEGER?Number(t):t):n.getUint32(0)*U+n.getUint32(4)},$={getUint64:F,MAX_UINT32:U},H=$.MAX_UINT32;(function(){var e;if(k={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!==typeof Uint8Array){for(e in k)k.hasOwnProperty(e)&&(k[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);C=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),E=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),x=new Uint8Array([0,0,0,1]),A=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),O=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),j={video:A,audio:O},L=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),P=new Uint8Array([0,0,0,0,0,0,0,0]),M=new Uint8Array([0,0,0,0,0,0,0,0]),D=M,R=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),N=M,I=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),n=function(e){var t,n,i,r=[],a=0;for(t=1;t<arguments.length;t++)r.push(arguments[t]);t=r.length;while(t--)a+=r[t].byteLength;for(n=new Uint8Array(a+8),i=new DataView(n.buffer,n.byteOffset,n.byteLength),i.setUint32(0,n.byteLength),n.set(e,4),t=0,a=8;t<r.length;t++)n.set(r[t],a),a+=r[t].byteLength;return n},i=function(){return n(k.dinf,n(k.dref,L))},r=function(e){return n(k.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},a=function(){return n(k.ftyp,C,x,C,E)},v=function(e){return n(k.hdlr,j[e])},o=function(e){return n(k.mdat,e)},g=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),n(k.mdhd,t)},m=function(e){return n(k.mdia,g(e),v(e.type),u(e))},s=function(e){return n(k.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},u=function(e){return n(k.minf,"video"===e.type?n(k.vmhd,I):n(k.smhd,P),i(),b(e))},c=function(e,t){var i=[],r=t.length;while(r--)i[r]=T(t[r]);return n.apply(null,[k.moof,s(e)].concat(i))},l=function(e){var t=e.length,i=[];while(t--)i[t]=f(e[t]);return n.apply(null,[k.moov,h(4294967295)].concat(i).concat(d(e)))},d=function(e){var t=e.length,i=[];while(t--)i[t]=w(e[t]);return n.apply(null,[k.mvex].concat(i))},h=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return n(k.mvhd,t)},y=function(e){var t,i,r=e.samples||[],a=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)t=r[i].flags,a[i+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return n(k.sdtp,a)},b=function(e){return n(k.stbl,_(e),n(k.stts,N),n(k.stsc,D),n(k.stsz,R),n(k.stco,M))},function(){var e,t;_=function(i){return n(k.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===i.type?e(i):t(i))},e=function(e){var t,i,r=e.sps||[],a=e.pps||[],o=[],s=[];for(t=0;t<r.length;t++)o.push((65280&r[t].byteLength)>>>8),o.push(255&r[t].byteLength),o=o.concat(Array.prototype.slice.call(r[t]));for(t=0;t<a.length;t++)s.push((65280&a[t].byteLength)>>>8),s.push(255&a[t].byteLength),s=s.concat(Array.prototype.slice.call(a[t]));if(i=[k.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),n(k.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],o,[a.length],s))),n(k.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var u=e.sarRatio[0],c=e.sarRatio[1];i.push(n(k.pasp,new Uint8Array([(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u,(4278190080&c)>>24,(16711680&c)>>16,(65280&c)>>8,255&c])))}return n.apply(null,i)},t=function(e){return n(k.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),r(e))}}(),p=function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return n(k.tkhd,t)},T=function(e){var t,i,r,a,o,s,u;return t=n(k.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),s=Math.floor(e.baseMediaDecodeTime/H),u=Math.floor(e.baseMediaDecodeTime%H),i=n(k.tfdt,new Uint8Array([1,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s,u>>>24&255,u>>>16&255,u>>>8&255,255&u])),o=92,"audio"===e.type?(r=S(e,o),n(k.traf,t,i,r)):(a=y(e),r=S(e,a.length+o),n(k.traf,t,i,r,a))},f=function(e){return e.duration=e.duration||4294967295,n(k.trak,p(e),m(e))},w=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),n(k.trex,t)},function(){var e,t,i;i=function(e,t){var n=0,i=0,r=0,a=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(i=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,n|i|r|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},t=function(e,t){var r,a,o,s,u,c;for(s=e.samples||[],t+=20+16*s.length,o=i(s,t),a=new Uint8Array(o.length+16*s.length),a.set(o),r=o.length,c=0;c<s.length;c++)u=s[c],a[r++]=(4278190080&u.duration)>>>24,a[r++]=(16711680&u.duration)>>>16,a[r++]=(65280&u.duration)>>>8,a[r++]=255&u.duration,a[r++]=(4278190080&u.size)>>>24,a[r++]=(16711680&u.size)>>>16,a[r++]=(65280&u.size)>>>8,a[r++]=255&u.size,a[r++]=u.flags.isLeading<<2|u.flags.dependsOn,a[r++]=u.flags.isDependedOn<<6|u.flags.hasRedundancy<<4|u.flags.paddingValue<<1|u.flags.isNonSyncSample,a[r++]=61440&u.flags.degradationPriority,a[r++]=15&u.flags.degradationPriority,a[r++]=(4278190080&u.compositionTimeOffset)>>>24,a[r++]=(16711680&u.compositionTimeOffset)>>>16,a[r++]=(65280&u.compositionTimeOffset)>>>8,a[r++]=255&u.compositionTimeOffset;return n(k.trun,a)},e=function(e,t){var r,a,o,s,u,c;for(s=e.samples||[],t+=20+8*s.length,o=i(s,t),r=new Uint8Array(o.length+8*s.length),r.set(o),a=o.length,c=0;c<s.length;c++)u=s[c],r[a++]=(4278190080&u.duration)>>>24,r[a++]=(16711680&u.duration)>>>16,r[a++]=(65280&u.duration)>>>8,r[a++]=255&u.duration,r[a++]=(4278190080&u.size)>>>24,r[a++]=(16711680&u.size)>>>16,r[a++]=(65280&u.size)>>>8,r[a++]=255&u.size;return n(k.trun,r)},S=function(n,i){return"audio"===n.type?e(n,i):t(n,i)}}();var V,q,z,W,G,Y,X,K,Q={ftyp:a,mdat:o,moof:c,moov:l,initSegment:function(e){var t,n=a(),i=l(e);return t=new Uint8Array(n.byteLength+i.byteLength),t.set(n),t.set(i,n.byteLength),t}},J=function(e){var t,n,i=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,i.byteLength=0,t=0;t<e.length;t++)n=e[t],"access_unit_delimiter_rbsp"===n.nalUnitType?(i.length&&(i.duration=n.dts-i.dts,r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i)),i=[n],i.byteLength=n.data.byteLength,i.pts=n.pts,i.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(i.keyFrame=!0),i.duration=n.dts-i.dts,i.byteLength+=n.data.byteLength,i.push(n));return r.length&&(!i.duration||i.duration<=0)&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i),r},Z=function(e){var t,n,i=[],r=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,t=0;t<e.length;t++)n=e[t],n.keyFrame?(i.length&&(r.push(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration),i=[n],i.nalCount=n.length,i.byteLength=n.byteLength,i.pts=n.pts,i.dts=n.dts,i.duration=n.duration):(i.duration+=n.duration,i.nalCount+=n.length,i.byteLength+=n.byteLength,i.push(n));return r.length&&i.duration<=0&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration,r.push(i),r},ee=function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},te=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},ne=function(e,t){var n=te();return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},ie=function(e,t){var n,i,r,a,o,s=t||0,u=[];for(n=0;n<e.length;n++)for(a=e[n],i=0;i<a.length;i++)o=a[i],r=ne(o,s),s+=r.size,u.push(r);return u},re=function(e){var t,n,i,r,a,o,s=0,u=e.byteLength,c=e.nalCount,l=u+4*c,d=new Uint8Array(l),h=new DataView(d.buffer);for(t=0;t<e.length;t++)for(r=e[t],n=0;n<r.length;n++)for(a=r[n],i=0;i<a.length;i++)o=a[i],h.setUint32(s,o.data.byteLength),s+=4,d.set(o.data,s),s+=o.data.byteLength;return d},ae=function(e,t){var n,i=t||0,r=[];return n=ne(e,i),r.push(n),r},oe=function(e){var t,n,i=0,r=e.byteLength,a=e.length,o=r+4*a,s=new Uint8Array(o),u=new DataView(s.buffer);for(t=0;t<e.length;t++)n=e[t],u.setUint32(i,n.data.byteLength),i+=4,s.set(n.data,i),i+=n.data.byteLength;return s},se={groupNalsIntoFrames:J,groupFramesIntoGops:Z,extendFirstKeyFrame:ee,generateSampleTable:ie,concatenateNalData:re,generateSampleTableForFrame:ae,concatenateNalDataForFrame:oe},ue=[33,16,5,32,164,27],ce=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],le=function(e){var t=[];while(e--)t.push(0);return t},de=function(e){return Object.keys(e).reduce((function(t,n){return t[n]=new Uint8Array(e[n].reduce((function(e,t){return e.concat(t)}),[])),t}),{})},he=function(){if(!V){var e={96e3:[ue,[227,64],le(154),[56]],88200:[ue,[231],le(170),[56]],64e3:[ue,[248,192],le(240),[56]],48e3:[ue,[255,192],le(268),[55,148,128],le(54),[112]],44100:[ue,[255,192],le(268),[55,163,128],le(84),[112]],32e3:[ue,[255,192],le(268),[55,234],le(226),[112]],24e3:[ue,[255,192],le(268),[55,255,128],le(268),[111,112],le(126),[224]],16e3:[ue,[255,192],le(268),[55,255,128],le(268),[111,255],le(269),[223,108],le(195),[1,192]],12e3:[ce,le(268),[3,127,248],le(268),[6,255,240],le(268),[13,255,224],le(268),[27,253,128],le(259),[56]],11025:[ce,le(268),[3,127,248],le(268),[6,255,240],le(268),[13,255,224],le(268),[27,255,192],le(268),[55,175,128],le(108),[112]],8e3:[ce,le(268),[3,121,16],le(47),[7]]};V=de(e)}return V},fe=9e4;q=function(e){return e*fe},z=function(e,t){return e*t},W=function(e){return e/fe},G=function(e,t){return e/t},Y=function(e,t){return q(G(e,t))},X=function(e,t){return z(W(e),t)},K=function(e,t,n){return W(n?e:e-t)};var pe={ONE_SECOND_IN_TS:fe,secondsToVideoTs:q,secondsToAudioTs:z,videoTsToSeconds:W,audioTsToSeconds:G,audioTsToVideoTs:Y,videoTsToAudioTs:X,metadataTsToSeconds:K},me=function(e){var t,n,i=0;for(t=0;t<e.length;t++)n=e[t],i+=n.data.byteLength;return i},ge=function(e,t,n,i){var r,a,o,s,u=0,c=0,l=0,d=0;if(t.length&&(r=pe.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),u=Math.ceil(pe.ONE_SECOND_IN_TS/(e.samplerate/1024)),n&&i&&(c=r-Math.max(n,i),l=Math.floor(c/u),d=l*u),!(l<1||d>pe.ONE_SECOND_IN_TS/2))){for(a=he()[e.samplerate],a||(a=t[0].data),o=0;o<l;o++)s=t[0],t.splice(0,0,{data:a,dts:s.dts-u,pts:s.pts-u});return e.baseMediaDecodeTime-=Math.floor(pe.videoTsToAudioTs(d,e.samplerate)),d}},ve=function(e,t,n){return t.minSegmentDts>=n?e:(t.minSegmentDts=1/0,e.filter((function(e){return e.dts>=n&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)})))},ye=function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t],i.push({size:n.data.byteLength,duration:1024});return i},be=function(e){var t,n,i=0,r=new Uint8Array(me(e));for(t=0;t<e.length;t++)n=e[t],r.set(n.data,i),i+=n.data.byteLength;return r},_e={prefixWithSilence:ge,trimAdtsFramesByEarliestDts:ve,generateSampleTable:ye,concatenateFrameData:be},Te=pe.ONE_SECOND_IN_TS,we=function(e,t){"number"===typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"===typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))},Se=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},ke=function(e,t){var n,i,r=e.minSegmentDts;return t||(r-=e.timelineStartInfo.dts),n=e.timelineStartInfo.baseMediaDecodeTime,n+=r,n=Math.max(0,n),"audio"===e.type&&(i=e.samplerate/Te,n*=i,n=Math.floor(n)),n},Ce={clearDtsInfo:Se,calculateTrackBaseMediaDecodeTime:ke,collectDtsInfo:we},xe=4,Ee=128,Ae=function(e){var t=0,n={payloadType:-1,payloadSize:0},i=0,r=0;while(t<e.byteLength){if(e[t]===Ee)break;while(255===e[t])i+=255,t++;i+=e[t++];while(255===e[t])r+=255,t++;if(r+=e[t++],!n.payload&&i===xe){var a=String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6]);if("GA94"===a){n.payloadType=i,n.payloadSize=r,n.payload=e.subarray(t,t+r);break}n.payload=void 0}t+=r,i=0,r=0}return n},Oe=function(e){return 181!==e.payload[0]||49!==(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},je=function(e,t){var n,i,r,a,o=[];if(!(64&t[0]))return o;for(i=31&t[0],n=0;n<i;n++)r=3*n,a={type:3&t[r+2],pts:e},4&t[r+2]&&(a.ccData=t[r+3]<<8|t[r+4],o.push(a));return o},Ie=function(e){var t,n,i=e.byteLength,r=[],a=1;while(a<i-2)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=i-r.length,n=new Uint8Array(t);var o=0;for(a=0;a<t;o++,a++)o===r[0]&&(o++,r.shift()),n[a]=e[o];return n},Pe={parseSei:Ae,parseUserData:Oe,parseCaptionPackets:je,discardEmulationPreventionBytes:Ie,USER_DATA_REGISTERED_ITU_T_T35:xe},Le=function e(t){t=t||{},e.prototype.init.call(this),this.parse708captions_="boolean"!==typeof t.parse708captions||t.parse708captions,this.captionPackets_=[],this.ccStreams_=[new ze(0,0),new ze(0,1),new ze(1,0),new ze(1,1)],this.parse708captions_&&(this.cc708Stream_=new Ue({captionServices:t.captionServices})),this.reset(),this.ccStreams_.forEach((function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))}),this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};Le.prototype=new B,Le.prototype.push=function(e){var t,n,i;if("sei_rbsp"===e.nalUnitType&&(t=Pe.parseSei(e.escapedRBSP),t.payload&&t.payloadType===Pe.USER_DATA_REGISTERED_ITU_T_T35&&(n=Pe.parseUserData(t),n)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));i=Pe.parseCaptionPackets(e.pts,n),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},Le.prototype.flushCCStreams=function(e){this.ccStreams_.forEach((function(t){return"flush"===e?t.flush():t.partialFlush()}),this)},Le.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach((function(e,t){e.presortIndex=t})),this.captionPackets_.sort((function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts})),this.captionPackets_.forEach((function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)}),this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},Le.prototype.flush=function(){return this.flushStream("flush")},Le.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Le.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(e){e.reset()}))},Le.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},Le.prototype.setsChannel1Active=function(e){return 4096===(30720&e.ccData)},Le.prototype.setsChannel2Active=function(e){return 6144===(30720&e.ccData)},Le.prototype.setsTextOrXDSActive=function(e){return 256===(28928&e.ccData)||4138===(30974&e.ccData)||6186===(30974&e.ccData)},Le.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var Me={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},De=function(e){var t=Me[e]||e;return 4096&e&&e===t?"":String.fromCharCode(t)},Re=function(e){return 32<=e&&e<=127||160<=e&&e<=255},Ne=function(e){this.windowNum=e,this.reset()};Ne.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},Ne.prototype.getText=function(){return this.rows.join("\n")},Ne.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},Ne.prototype.newLine=function(e){this.rows.length>=this.virtualRowCount&&"function"===typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);while(this.rows.length>this.virtualRowCount)this.rows.shift(),this.rowIdx--},Ne.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},Ne.prototype.addText=function(e){this.rows[this.rowIdx]+=e},Ne.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var Be=function(e,t,n){this.serviceNum=e,this.text="",this.currentWindow=new Ne(-1),this.windows=[],this.stream=n,"string"===typeof t&&this.createTextDecoder(t)};Be.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new Ne(n),"function"===typeof t&&(this.windows[n].beforeRowOverflow=t)},Be.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},Be.prototype.createTextDecoder=function(e){if("undefined"===typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var Ue=function e(t){t=t||{},e.prototype.init.call(this);var n,i=this,r=t.captionServices||{},a={};Object.keys(r).forEach((function(e){n=r[e],/^SERVICE/.test(e)&&(a[e]=n.encoding)})),this.serviceEncodings=a,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(i.new708Packet(),i.add708Bytes(e)):(null===i.current708Packet&&i.new708Packet(),i.add708Bytes(e))}};Ue.prototype=new B,Ue.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Ue.prototype.add708Bytes=function(e){var t=e.ccData,n=t>>>8,i=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(i)},Ue.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,n=null,i=null,r=0,a=t[r++];for(e.seq=a>>6,e.sizeCode=63&a;r<t.length;r++)a=t[r++],n=a>>5,i=31&a,7===n&&i>0&&(a=t[r++],n=a),this.pushServiceBlock(n,r,i),i>0&&(r+=i-1)},Ue.prototype.pushServiceBlock=function(e,t,n){var i,r=t,a=this.current708Packet.data,o=this.services[e];for(o||(o=this.initService(e,r));r<t+n&&r<a.length;r++)i=a[r],Re(i)?r=this.handleText(r,o):24===i?r=this.multiByteCharacter(r,o):16===i?r=this.extendedCommands(r,o):128<=i&&i<=135?r=this.setCurrentWindow(r,o):152<=i&&i<=159?r=this.defineWindow(r,o):136===i?r=this.clearWindows(r,o):140===i?r=this.deleteWindows(r,o):137===i?r=this.displayWindows(r,o):138===i?r=this.hideWindows(r,o):139===i?r=this.toggleWindows(r,o):151===i?r=this.setWindowAttributes(r,o):144===i?r=this.setPenAttributes(r,o):145===i?r=this.setPenColor(r,o):146===i?r=this.setPenLocation(r,o):143===i?o=this.reset(r,o):8===i?o.currentWindow.backspace():12===i?o.currentWindow.clearText():13===i?o.currentWindow.pendingNewLine=!0:14===i?o.currentWindow.clearText():141===i&&r++},Ue.prototype.extendedCommands=function(e,t){var n=this.current708Packet.data,i=n[++e];return Re(i)&&(e=this.handleText(e,t,{isExtended:!0})),e},Ue.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},Ue.prototype.initService=function(e,t){var n,i="SERVICE"+e,r=this;return i in this.serviceEncodings&&(n=this.serviceEncodings[i]),this.services[e]=new Be(e,n,r),this.services[e].init(this.getPts(t),(function(t){r.flushDisplayed(t,r.services[e])})),this.services[e]},Ue.prototype.handleText=function(e,t,n){var i,r,a=n&&n.isExtended,o=n&&n.isMultiByte,s=this.current708Packet.data,u=a?4096:0,c=s[e],l=s[e+1],d=t.currentWindow;return t.textDecoder_&&!a?(o?(r=[c,l],e++):r=[c],i=t.textDecoder_.decode(new Uint8Array(r))):i=De(u|c),d.pendingNewLine&&!d.isEmpty()&&d.newLine(this.getPts(e)),d.pendingNewLine=!1,d.addText(i),e},Ue.prototype.multiByteCharacter=function(e,t){var n=this.current708Packet.data,i=n[e+1],r=n[e+2];return Re(i)&&Re(r)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},Ue.prototype.setCurrentWindow=function(e,t){var n=this.current708Packet.data,i=n[e],r=7&i;return t.setCurrentWindow(r),e},Ue.prototype.defineWindow=function(e,t){var n=this.current708Packet.data,i=n[e],r=7&i;t.setCurrentWindow(r);var a=t.currentWindow;return i=n[++e],a.visible=(32&i)>>5,a.rowLock=(16&i)>>4,a.columnLock=(8&i)>>3,a.priority=7&i,i=n[++e],a.relativePositioning=(128&i)>>7,a.anchorVertical=127&i,i=n[++e],a.anchorHorizontal=i,i=n[++e],a.anchorPoint=(240&i)>>4,a.rowCount=15&i,i=n[++e],a.columnCount=63&i,i=n[++e],a.windowStyle=(56&i)>>3,a.penStyle=7&i,a.virtualRowCount=a.rowCount+1,e},Ue.prototype.setWindowAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.winAttr;return i=n[++e],r.fillOpacity=(192&i)>>6,r.fillRed=(48&i)>>4,r.fillGreen=(12&i)>>2,r.fillBlue=3&i,i=n[++e],r.borderType=(192&i)>>6,r.borderRed=(48&i)>>4,r.borderGreen=(12&i)>>2,r.borderBlue=3&i,i=n[++e],r.borderType+=(128&i)>>5,r.wordWrap=(64&i)>>6,r.printDirection=(48&i)>>4,r.scrollDirection=(12&i)>>2,r.justify=3&i,i=n[++e],r.effectSpeed=(240&i)>>4,r.effectDirection=(12&i)>>2,r.displayEffect=3&i,e},Ue.prototype.flushDisplayed=function(e,t){for(var n=[],i=0;i<8;i++)t.windows[i].visible&&!t.windows[i].isEmpty()&&n.push(t.windows[i].getText());t.endPts=e,t.text=n.join("\n\n"),this.pushCaption(t),t.startPts=e},Ue.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},Ue.prototype.displayWindows=function(e,t){var n=this.current708Packet.data,i=n[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)i&1<<a&&(t.windows[a].visible=1);return e},Ue.prototype.hideWindows=function(e,t){var n=this.current708Packet.data,i=n[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)i&1<<a&&(t.windows[a].visible=0);return e},Ue.prototype.toggleWindows=function(e,t){var n=this.current708Packet.data,i=n[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)i&1<<a&&(t.windows[a].visible^=1);return e},Ue.prototype.clearWindows=function(e,t){var n=this.current708Packet.data,i=n[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)i&1<<a&&t.windows[a].clearText();return e},Ue.prototype.deleteWindows=function(e,t){var n=this.current708Packet.data,i=n[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)i&1<<a&&t.windows[a].reset();return e},Ue.prototype.setPenAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penAttr;return i=n[++e],r.textTag=(240&i)>>4,r.offset=(12&i)>>2,r.penSize=3&i,i=n[++e],r.italics=(128&i)>>7,r.underline=(64&i)>>6,r.edgeType=(56&i)>>3,r.fontStyle=7&i,e},Ue.prototype.setPenColor=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penColor;return i=n[++e],r.fgOpacity=(192&i)>>6,r.fgRed=(48&i)>>4,r.fgGreen=(12&i)>>2,r.fgBlue=3&i,i=n[++e],r.bgOpacity=(192&i)>>6,r.bgRed=(48&i)>>4,r.bgGreen=(12&i)>>2,r.bgBlue=3&i,i=n[++e],r.edgeRed=(48&i)>>4,r.edgeGreen=(12&i)>>2,r.edgeBlue=3&i,e},Ue.prototype.setPenLocation=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,i=n[++e],r.row=15&i,i=n[++e],r.column=63&i,e},Ue.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)};var Fe={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},$e=function(e){return null===e?"":(e=Fe[e]||e,String.fromCharCode(e))},He=14,Ve=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],qe=function(){var e=[],t=He+1;while(t--)e.push("");return e},ze=function e(t,n){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,i,r,a;if(t=32639&e.ccData,t!==this.lastControlCode_){if(4096===(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),i=t>>>8,r=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=qe();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=qe();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=qe()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(i,r))i=(3&i)<<8,a=$e(i|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(i,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),i=(3&i)<<8,a=$e(i|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(i,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14===(14&r)&&this.addFormatting(e.pts,["i"]),1===(1&r)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(i,r))this.column_+=3&r;else if(this.isPAC(i,r)){var o=Ve.indexOf(7968&t);"rollUp"===this.mode_&&(o-this.rollUpRows_+1<0&&(o=this.rollUpRows_-1),this.setRollUp(e.pts,o)),o!==this.row_&&(this.clearFormatting(e.pts),this.row_=o),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16===(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(r)&&14===(14&r)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(i)&&(0===r&&(r=null),a=$e(i),a+=$e(r),this[this.mode_](e.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};ze.prototype=new B,ze.prototype.flushDisplayed=function(e){var t=this.displayed_.map((function(e,t){try{return e.trim()}catch(n){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}}),this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},ze.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=qe(),this.nonDisplayed_=qe(),this.lastControlCode_=null,this.column_=0,this.row_=He,this.rollUpRows_=2,this.formatting_=[]},ze.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},ze.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},ze.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},ze.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},ze.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},ze.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},ze.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},ze.prototype.isNormalChar=function(e){return e>=32&&e<=127},ze.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=He,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=qe(),this.displayed_=qe()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},ze.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce((function(e,t){return e+"<"+t+">"}),"");this[this.mode_](e,n)},ze.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce((function(e,t){return e+"</"+t+">"}),"");this.formatting_=[],this[this.mode_](e,t)}},ze.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},ze.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},ze.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<He+1;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},ze.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n};var We={CaptionStream:Le,Cea608Stream:ze,Cea708Stream:Ue},Ge={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Ye=8589934592,Xe=4294967296,Ke="shared",Qe=function(e,t){var n=1;e>t&&(n=-1);while(Math.abs(t-e)>Xe)e+=n*Ye;return e},Je=function e(t){var n,i;e.prototype.init.call(this),this.type_=t||Ke,this.push=function(e){this.type_!==Ke&&e.type!==this.type_||(void 0===i&&(i=e.dts),e.dts=Qe(e.dts,i),e.pts=Qe(e.pts,i),n=e.dts,this.trigger("data",e))},this.flush=function(){i=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){i=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Je.prototype=new B;var Ze,et={TimestampRolloverStream:Je,handleRollover:Qe},tt=function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r},nt=function(e,t,n){return decodeURIComponent(tt(e,t,n))},it=function(e,t,n){return unescape(tt(e,t,n))},rt=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},at={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=nt(e.data,1,t),e.value=nt(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=nt(e.data,1,t),e.url=nt(e.data,t+1,e.data.length);break}},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=it(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};Ze=function(e){var t,n={descriptor:e&&e.descriptor},i=0,r=[],a=0;if(Ze.prototype.init.call(this),this.dispatchType=Ge.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(t=0;t<n.descriptor.length;t++)this.dispatchType+=("00"+n.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,n,o,s,u,c;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(a=0,r.length=0),0===r.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(r.push(e),a+=e.data.byteLength,1===r.length&&(i=rt(e.data.subarray(6,10)),i+=10),!(a<i)){for(t={data:new Uint8Array(i),frames:[],pts:r[0].pts,dts:r[0].dts},u=0;u<i;)t.data.set(r[0].data.subarray(0,i-u),u),u+=r[0].data.byteLength,a-=r[0].data.byteLength,r.shift();n=10,64&t.data[5]&&(n+=4,n+=rt(t.data.subarray(10,14)),i-=rt(t.data.subarray(16,20)));do{if(o=rt(t.data.subarray(n+4,n+8)),o<1)return void this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."});if(c=String.fromCharCode(t.data[n],t.data[n+1],t.data[n+2],t.data[n+3]),s={id:c,data:t.data.subarray(n+10,n+o+10)},s.key=s.id,at[s.id]&&(at[s.id](s),"com.apple.streaming.transportStreamTimestamp"===s.owner)){var l=s.data,d=(1&l[3])<<30|l[4]<<22|l[5]<<14|l[6]<<6|l[7]>>>2;d*=4,d+=3&l[7],s.timeStamp=d,void 0===t.pts&&void 0===t.dts&&(t.pts=s.timeStamp,t.dts=s.timeStamp),this.trigger("timestamp",s)}t.frames.push(s),n+=10,n+=o}while(n<i);this.trigger("data",t)}}},Ze.prototype=new B;var ot,st,ut,ct=Ze,lt=et.TimestampRolloverStream,dt=188,ht=71;ot=function(){var e=new Uint8Array(dt),t=0;ot.prototype.init.call(this),this.push=function(n){var i,r=0,a=dt;t?(i=new Uint8Array(n.byteLength+t),i.set(e.subarray(0,t)),i.set(n,t),t=0):i=n;while(a<i.byteLength)i[r]!==ht||i[a]!==ht?(r++,a++):(this.trigger("data",i.subarray(r,a)),r+=dt,a+=dt);r<i.byteLength&&(e.set(i.subarray(r),0),t=i.byteLength-r)},this.flush=function(){t===dt&&e[0]===ht&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}},ot.prototype=new B,st=function(){var e,t,n,i;st.prototype.init.call(this),i=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,i){var r=0;i.payloadUnitStartIndicator&&(r+=e[r]+1),"pat"===i.type?t(e.subarray(r),i):n(e.subarray(r),i)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],i.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=i.pmtPid},n=function(e,t){var n,r,a,o;if(1&e[5]){i.programMapTable={video:null,audio:null,"timed-metadata":{}},n=(15&e[1])<<8|e[2],r=3+n-4,a=(15&e[10])<<8|e[11],o=12+a;while(o<r){var s=e[o],u=(31&e[o+1])<<8|e[o+2];s===Ge.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=u:s===Ge.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=u:s===Ge.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][u]=s),o+=5+((15&e[o+3])<<8|e[o+4])}t.programMapTable=i.programMapTable}},this.push=function(t){var n={},i=4;if(n.payloadUnitStartIndicator=!!(64&t[1]),n.pid=31&t[1],n.pid<<=8,n.pid|=t[2],(48&t[3])>>>4>1&&(i+=t[i]+1),0===n.pid)n.type="pat",e(t.subarray(i),n),this.trigger("data",n);else if(n.pid===this.pmtPid){n.type="pmt",e(t.subarray(i),n),this.trigger("data",n);while(this.packetsWaitingForPmt.length)this.processPes_.apply(this,this.packetsWaitingForPmt.shift())}else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,i,n]):this.processPes_(t,i,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=Ge.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=Ge.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}},st.prototype=new B,st.STREAM_TYPES={h264:27,adts:15},ut=function(){var e,t=this,n=!1,i={data:[],size:0},r={data:[],size:0},a={data:[],size:0},o=function(e,t){var n,i=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===i&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=0!==(4&e[6]),n=e[7],192&n&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&n&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))},s=function(e,n,i){var r,a=new Uint8Array(e.size),s={type:n},u=0,c=0,l=!1;if(e.data.length&&!(e.size<9)){for(s.trackId=e.data[0].pid,u=0;u<e.data.length;u++)r=e.data[u],a.set(r.data,c),c+=r.data.byteLength;o(a,s),l="video"===n||s.packetLength<=e.size,(i||l)&&(e.size=0,e.data.length=0),l&&t.trigger("data",s)}};ut.prototype.init.call(this),this.push=function(o){({pat:function(){},pes:function(){var e,t;switch(o.streamType){case Ge.H264_STREAM_TYPE:e=i,t="video";break;case Ge.ADTS_STREAM_TYPE:e=r,t="audio";break;case Ge.METADATA_STREAM_TYPE:e=a,t="timed-metadata";break;default:return}o.payloadUnitStartIndicator&&s(e,t,!0),e.data.push(o),e.size+=o.data.byteLength},pmt:function(){var i={type:"metadata",tracks:[]};e=o.programMapTable,null!==e.video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),n=!0,t.trigger("data",i)}})[o.type]()},this.reset=function(){i.size=0,i.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){s(i,"video"),s(r,"audio"),s(a,"timed-metadata")},this.flush=function(){if(!n&&e){var i={type:"metadata",tracks:[]};null!==e.video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",i)}n=!1,this.flushStreams_(),this.trigger("done")}},ut.prototype=new B;var ft={PAT_PID:0,MP2T_PACKET_LENGTH:dt,TransportPacketStream:ot,TransportParseStream:st,ElementaryStream:ut,TimestampRolloverStream:lt,CaptionStream:We.CaptionStream,Cea608Stream:We.Cea608Stream,Cea708Stream:We.Cea708Stream,MetadataStream:ct};for(var pt in Ge)Ge.hasOwnProperty(pt)&&(ft[pt]=Ge[pt]);var mt,gt=ft,vt=pe.ONE_SECOND_IN_TS,yt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];mt=function(e){var t,n=0;mt.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+n+" outside syncword"})},this.push=function(i){var r,a,o,s,u,c=0;if(e||(n=0),"audio"===i.type){var l;t&&t.length?(o=t,t=new Uint8Array(o.byteLength+i.data.byteLength),t.set(o),t.set(i.data,o.byteLength)):t=i.data;while(c+7<t.length)if(255===t[c]&&240===(246&t[c+1])){if("number"===typeof l&&(this.skipWarn_(l,c),l=null),a=2*(1&~t[c+1]),r=(3&t[c+3])<<11|t[c+4]<<3|(224&t[c+5])>>5,s=1024*(1+(3&t[c+6])),u=s*vt/yt[(60&t[c+2])>>>2],t.byteLength-c<r)break;this.trigger("data",{pts:i.pts+n*u,dts:i.dts+n*u,sampleCount:s,audioobjecttype:1+(t[c+2]>>>6&3),channelcount:(1&t[c+2])<<2|(192&t[c+3])>>>6,samplerate:yt[(60&t[c+2])>>>2],samplingfrequencyindex:(60&t[c+2])>>>2,samplesize:16,data:t.subarray(c+7+a,c+r)}),n++,c+=r}else"number"!==typeof l&&(l=c),c++;"number"===typeof l&&(this.skipWarn_(l,c),l=null),t=t.subarray(c)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}},mt.prototype=new B;var bt,_t=mt;bt=function(e){var t=e.byteLength,n=0,i=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+i},this.loadWord=function(){var r=e.byteLength-t,a=new Uint8Array(4),o=Math.min(4,t);if(0===o)throw new Error("no bytes available");a.set(e.subarray(r,r+o)),n=new DataView(a.buffer).getUint32(0),i=8*o,t-=o},this.skipBits=function(e){var r;i>e?(n<<=e,i-=e):(e-=i,r=Math.floor(e/8),e-=8*r,t-=r,this.loadWord(),n<<=e,i-=e)},this.readBits=function(e){var r=Math.min(i,e),a=n>>>32-r;return i-=r,i>0?n<<=r:t>0&&this.loadWord(),r=e-r,r>0?a<<r|this.readBits(r):a},this.skipLeadingZeros=function(){var e;for(e=0;e<i;++e)if(0!==(n&2147483648>>>e))return n<<=e,i-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var Tt,wt,St,kt=bt;wt=function(){var e,t,n=0;wt.prototype.init.call(this),this.push=function(i){var r;t?(r=new Uint8Array(t.byteLength+i.data.byteLength),r.set(t),r.set(i.data,t.byteLength),t=r):t=i.data;for(var a=t.byteLength;n<a-3;n++)if(1===t[n+2]){e=n+5;break}while(e<a)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}n+3!==e-2&&this.trigger("data",t.subarray(n+3,e-2));do{e++}while(1!==t[e]&&e<a);n=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(n+3,e-2)),n=e-2,e+=3;break;default:e+=3;break}t=t.subarray(n),e-=n,n=0},this.reset=function(){t=null,n=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},wt.prototype=new B,St={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},Tt=function(){var e,t,n,i,r,a,o,s=new wt;Tt.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,i=e.dts,s.push(e))},s.on("data",(function(o){var s={trackId:t,pts:n,dts:i,data:o,nalUnitTypeCode:31&o[0]};switch(s.nalUnitTypeCode){case 5:s.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:s.nalUnitType="sei_rbsp",s.escapedRBSP=r(o.subarray(1));break;case 7:s.nalUnitType="seq_parameter_set_rbsp",s.escapedRBSP=r(o.subarray(1)),s.config=a(s.escapedRBSP);break;case 8:s.nalUnitType="pic_parameter_set_rbsp";break;case 9:s.nalUnitType="access_unit_delimiter_rbsp";break}e.trigger("data",s)})),s.on("done",(function(){e.trigger("done")})),s.on("partialdone",(function(){e.trigger("partialdone")})),s.on("reset",(function(){e.trigger("reset")})),s.on("endedtimeline",(function(){e.trigger("endedtimeline")})),this.flush=function(){s.flush()},this.partialFlush=function(){s.partialFlush()},this.reset=function(){s.reset()},this.endTimeline=function(){s.endTimeline()},o=function(e,t){var n,i,r=8,a=8;for(n=0;n<e;n++)0!==a&&(i=t.readExpGolomb(),a=(r+i+256)%256),r=0===a?r:a},r=function(e){var t,n,i=e.byteLength,r=[],a=1;while(a<i-2)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=i-r.length,n=new Uint8Array(t);var o=0;for(a=0;a<t;o++,a++)o===r[0]&&(o++,r.shift()),n[a]=e[o];return n},a=function(e){var t,n,i,r,a,s,u,c,l,d,h,f,p,m=0,g=0,v=0,y=0,b=[1,1];if(t=new kt(e),n=t.readUnsignedByte(),r=t.readUnsignedByte(),i=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),St[n]&&(a=t.readUnsignedExpGolomb(),3===a&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(h=3!==a?8:12,p=0;p<h;p++)t.readBoolean()&&o(p<6?16:64,t);if(t.skipUnsignedExpGolomb(),s=t.readUnsignedExpGolomb(),0===s)t.readUnsignedExpGolomb();else if(1===s)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),u=t.readUnsignedExpGolomb(),p=0;p<u;p++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),c=t.readUnsignedExpGolomb(),l=t.readUnsignedExpGolomb(),d=t.readBits(1),0===d&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb(),y=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(f=t.readUnsignedByte(),f){case 1:b=[1,1];break;case 2:b=[12,11];break;case 3:b=[10,11];break;case 4:b=[16,11];break;case 5:b=[40,33];break;case 6:b=[24,11];break;case 7:b=[20,11];break;case 8:b=[32,11];break;case 9:b=[80,33];break;case 10:b=[18,11];break;case 11:b=[15,11];break;case 12:b=[64,33];break;case 13:b=[160,99];break;case 14:b=[4,3];break;case 15:b=[3,2];break;case 16:b=[2,1];break;case 255:b=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()];break}b&&(b[0],b[1])}return{profileIdc:n,levelIdc:i,profileCompatibility:r,width:16*(c+1)-2*m-2*g,height:(2-d)*(l+1)*16-2*v-2*y,sarRatio:b}}},Tt.prototype=new B;var Ct,xt={H264Stream:Tt,NalByteStream:wt},Et=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],At=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],i=e[t+5],r=(16&i)>>4;return n=n>=0?n:0,r?n+20:n+10},Ot=function e(t,n){return t.length-n<10||t[n]!=="I".charCodeAt(0)||t[n+1]!=="D".charCodeAt(0)||t[n+2]!=="3".charCodeAt(0)?n:(n+=At(t,n),e(t,n))},jt=function(e){var t=Ot(e,0);return e.length>=t+2&&255===(255&e[t])&&240===(240&e[t+1])&&16===(22&e[t+1])},It=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},Pt=function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r},Lt=function(e,t,n){return unescape(Pt(e,t,n))},Mt=function(e,t){var n=(224&e[t+5])>>5,i=e[t+4]<<3,r=6144&e[t+3];return r|i|n},Dt=function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240===(240&e[t+1])?"audio":null},Rt=function(e){var t=0;while(t+5<e.length){if(255===e[t]&&240===(246&e[t+1]))return Et[(60&e[t+2])>>>2];t++}return null},Nt=function(e){var t,n,i,r;t=10,64&e[5]&&(t+=4,t+=It(e.subarray(10,14)));do{if(n=It(e.subarray(t+4,t+8)),n<1)return null;if(r=String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3]),"PRIV"===r){i=e.subarray(t+10,t+n+10);for(var a=0;a<i.byteLength;a++)if(0===i[a]){var o=Lt(i,0,a);if("com.apple.streaming.transportStreamTimestamp"===o){var s=i.subarray(a+1),u=(1&s[3])<<30|s[4]<<22|s[5]<<14|s[6]<<6|s[7]>>>2;return u*=4,u+=3&s[7],u}break}}t+=10,t+=n}while(t<e.byteLength);return null},Bt={isLikelyAacData:jt,parseId3TagSize:At,parseAdtsSize:Mt,parseType:Dt,parseSampleRate:Rt,parseAacTimestamp:Nt};Ct=function(){var e=new Uint8Array,t=0;Ct.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(n){var i,r,a,o,s=0,u=0;e.length?(o=e.length,e=new Uint8Array(n.byteLength+o),e.set(e.subarray(0,o)),e.set(n,o)):e=n;while(e.length-u>=3)if(e[u]!=="I".charCodeAt(0)||e[u+1]!=="D".charCodeAt(0)||e[u+2]!=="3".charCodeAt(0))if(255!==(255&e[u])||240!==(240&e[u+1]))u++;else{if(e.length-u<7)break;if(s=Bt.parseAdtsSize(e,u),u+s>e.length)break;a={type:"audio",data:e.subarray(u,u+s),pts:t,dts:t},this.trigger("data",a),u+=s}else{if(e.length-u<10)break;if(s=Bt.parseId3TagSize(e,u),u+s>e.length)break;r={type:"timed-metadata",data:e.subarray(u,u+s)},this.trigger("data",r),u+=s}i=e.length-u,e=i>0?e.subarray(u):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}},Ct.prototype=new B;var Ut,Ft,$t,Ht,Vt=Ct,qt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],zt=qt,Wt=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Gt=Wt,Yt=xt.H264Stream,Xt=Bt.isLikelyAacData,Kt=pe.ONE_SECOND_IN_TS,Qt=function(e,t){t.stream=e,this.trigger("log",t)},Jt=function(e,t){for(var n=Object.keys(t),i=0;i<n.length;i++){var r=n[i];"headOfPipeline"!==r&&t[r].on&&t[r].on("log",Qt.bind(e,r))}},Zt=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},en=function(e,t,n,i,r,a){var o=n-t,s=i-t,u=r-n;return{start:{dts:e,pts:e+o},end:{dts:e+s,pts:e+u},prependedContentDuration:a,baseMediaDecodeTime:e}};Ft=function(e,t){var n,i=[],r=0,a=0,o=1/0;t=t||{},n=t.firstSequenceNumber||0,Ft.prototype.init.call(this),this.push=function(t){Ce.collectDtsInfo(e,t),e&&zt.forEach((function(n){e[n]=t[n]})),i.push(t)},this.setEarliestDts=function(e){r=e},this.setVideoBaseMediaDecodeTime=function(e){o=e},this.setAudioAppendStart=function(e){a=e},this.flush=function(){var s,u,c,l,d,h,f;0!==i.length?(s=_e.trimAdtsFramesByEarliestDts(i,e,r),e.baseMediaDecodeTime=Ce.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),f=_e.prefixWithSilence(e,s,a,o),e.samples=_e.generateSampleTable(s),c=Q.mdat(_e.concatenateFrameData(s)),i=[],u=Q.moof(n,[e]),l=new Uint8Array(u.byteLength+c.byteLength),n++,l.set(u),l.set(c,u.byteLength),Ce.clearDtsInfo(e),d=Math.ceil(1024*Kt/e.samplerate),s.length&&(h=s.length*d,this.trigger("segmentTimingInfo",en(pe.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),s[0].dts,s[0].pts,s[0].dts+h,s[0].pts+h,f||0)),this.trigger("timingInfo",{start:s[0].pts,end:s[0].pts+h})),this.trigger("data",{track:e,boxes:l}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){Ce.clearDtsInfo(e),i=[],this.trigger("reset")}},Ft.prototype=new B,Ut=function(e,t){var n,i,r,a=[],o=[];t=t||{},n=t.firstSequenceNumber||0,Ut.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){Ce.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.config,e.sps=[t.data],Gt.forEach((function(t){e[t]=i[t]}),this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),a.push(t)},this.flush=function(){var i,r,s,u,c,l,d,h,f=0;while(a.length){if("access_unit_delimiter_rbsp"===a[0].nalUnitType)break;a.shift()}if(0===a.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(i=se.groupNalsIntoFrames(a),s=se.groupFramesIntoGops(i),s[0][0].keyFrame||(r=this.getGopForFusion_(a[0],e),r?(f=r.duration,s.unshift(r),s.byteLength+=r.byteLength,s.nalCount+=r.nalCount,s.pts=r.pts,s.dts=r.dts,s.duration+=r.duration):s=se.extendFirstKeyFrame(s)),o.length){var p;if(p=t.alignGopsAtEnd?this.alignGopsAtEnd_(s):this.alignGopsAtStart_(s),!p)return this.gopCache_.unshift({gop:s.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");Ce.clearDtsInfo(e),s=p}Ce.collectDtsInfo(e,s),e.samples=se.generateSampleTable(s),c=Q.mdat(se.concatenateNalData(s)),e.baseMediaDecodeTime=Ce.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",s.map((function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}}))),d=s[0],h=s[s.length-1],this.trigger("segmentTimingInfo",en(e.baseMediaDecodeTime,d.dts,d.pts,h.dts+h.duration,h.pts+h.duration,f)),this.trigger("timingInfo",{start:s[0].pts,end:s[s.length-1].pts+s[s.length-1].duration}),this.gopCache_.unshift({gop:s.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),u=Q.moof(n,[e]),l=new Uint8Array(u.byteLength+c.byteLength),n++,l.set(u),l.set(c,u.byteLength),this.trigger("data",{track:e,boxes:l}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),a=[],this.gopCache_.length=0,o.length=0,this.trigger("reset")},this.resetStream_=function(){Ce.clearDtsInfo(e),i=void 0,r=void 0},this.getGopForFusion_=function(t){var n,i,r,a,o,s=45e3,u=1e4,c=1/0;for(o=0;o<this.gopCache_.length;o++)a=this.gopCache_[o],r=a.gop,e.pps&&Zt(e.pps[0],a.pps[0])&&e.sps&&Zt(e.sps[0],a.sps[0])&&(r.dts<e.timelineStartInfo.dts||(n=t.dts-r.dts-r.duration,n>=-u&&n<=s&&(!i||c>n)&&(i=a,c=n)));return i?i.gop:null},this.alignGopsAtStart_=function(e){var t,n,i,r,a,s,u,c;a=e.byteLength,s=e.nalCount,u=e.duration,t=n=0;while(t<o.length&&n<e.length){if(i=o[t],r=e[n],i.pts===r.pts)break;r.pts>i.pts?t++:(n++,a-=r.byteLength,s-=r.nalCount,u-=r.duration)}return 0===n?e:n===e.length?null:(c=e.slice(n),c.byteLength=a,c.duration=u,c.nalCount=s,c.pts=c[0].pts,c.dts=c[0].dts,c)},this.alignGopsAtEnd_=function(e){var t,n,i,r,a,s,u;t=o.length-1,n=e.length-1,a=null,s=!1;while(t>=0&&n>=0){if(i=o[t],r=e[n],i.pts===r.pts){s=!0;break}i.pts>r.pts?t--:(t===o.length-1&&(a=n),n--)}if(!s&&null===a)return null;if(u=s?n:a,0===u)return e;var c=e.slice(u),l=c.reduce((function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e}),{byteLength:0,duration:0,nalCount:0});return c.byteLength=l.byteLength,c.duration=l.duration,c.nalCount=l.nalCount,c.pts=c[0].pts,c.dts=c[0].dts,c},this.alignGopsWith=function(e){o=e}},Ut.prototype=new B,Ht=function(e,t){this.numberOfTracks=0,this.metadataStream=t,e=e||{},"undefined"!==typeof e.remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"===typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Ht.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}},Ht.prototype=new B,Ht.prototype.flush=function(e){var t,n,i,r,a=0,o={captions:[],captionStreams:{},metadata:[],info:{}},s=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(s=this.videoTrack.timelineStartInfo.pts,Gt.forEach((function(e){o.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,zt.forEach((function(e){o.info[e]=this.audioTrack[e]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?o.type=this.pendingTracks[0].type:o.type="combined",this.emittedTracks+=this.pendingTracks.length,i=Q.initSegment(this.pendingTracks),o.initSegment=new Uint8Array(i.byteLength),o.initSegment.set(i),o.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)o.data.set(this.pendingBoxes[r],a),a+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)t=this.pendingCaptions[r],t.startTime=pe.metadataTsToSeconds(t.startPts,s,this.keepOriginalTimestamps),t.endTime=pe.metadataTsToSeconds(t.endPts,s,this.keepOriginalTimestamps),o.captionStreams[t.stream]=!0,o.captions.push(t);for(r=0;r<this.pendingMetadata.length;r++)n=this.pendingMetadata[r],n.cueTime=pe.metadataTsToSeconds(n.pts,s,this.keepOriginalTimestamps),o.metadata.push(n);for(o.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",o),r=0;r<o.captions.length;r++)t=o.captions[r],this.trigger("caption",t);for(r=0;r<o.metadata.length;r++)n=o.metadata[r],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Ht.prototype.setRemux=function(e){this.remuxTracks=e},$t=function(e){var t,n,i=this,r=!0;$t.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new gt.MetadataStream,r.aacStream=new Vt,r.audioTimestampRolloverStream=new gt.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new gt.TimestampRolloverStream("timed-metadata"),r.adtsStream=new _t,r.coalesceStream=new Ht(e,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",(function(e){r.aacStream.setTimestamp(e.timeStamp)})),r.aacStream.on("data",(function(a){"timed-metadata"!==a.type&&"audio"!==a.type||r.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Ft(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t}))})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),Jt(this,r)},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new gt.MetadataStream,r.packetStream=new gt.TransportPacketStream,r.parseStream=new gt.TransportParseStream,r.elementaryStream=new gt.ElementaryStream,r.timestampRolloverStream=new gt.TimestampRolloverStream,r.adtsStream=new _t,r.h264Stream=new Yt,r.captionStream=new gt.CaptionStream(e),r.coalesceStream=new Ht(e,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",(function(a){var o;if("metadata"===a.type){o=a.tracks.length;while(o--)t||"video"!==a.tracks[o].type?n||"audio"!==a.tracks[o].type||(n=a.tracks[o],n.timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(t=a.tracks[o],t.timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime);t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new Ut(t,e),r.videoSegmentStream.on("log",i.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",(function(t){n&&!e.keepOriginalTimestamps&&(n.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-i.baseMediaDecodeTime))})),r.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",(function(e){n&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)})),r.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),n&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Ft(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",(function(e){e.dispatchType=r.metadataStream.dispatchType,i.trigger("id3Frame",e)})),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),Jt(this,r)},this.setBaseMediaDecodeTime=function(i){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,Ce.clearDtsInfo(n),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,Ce.clearDtsInfo(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(n){n.stream=e,t.trigger("log",n)}},this.push=function(e){if(r){var t=Xt(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},$t.prototype=new B;var tn,nn={Transmuxer:$t,VideoSegmentStream:Ut,AudioSegmentStream:Ft,AUDIO_PROPERTIES:zt,VIDEO_PROPERTIES:Gt,generateSegmentTimingInfo:en},rn=function(e){return e>>>0},an=function(e){return("00"+e.toString(16)).slice(-2)},on={toUnsigned:rn,toHexString:an},sn=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3]),t},un=sn,cn=on.toUnsigned,ln=function e(t,n){var i,r,a,o,s,u=[];if(!n.length)return null;for(i=0;i<t.byteLength;)r=cn(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]),a=un(t.subarray(i+4,i+8)),o=r>1?i+r:t.byteLength,a===n[0]&&(1===n.length?u.push(t.subarray(i+8,o)):(s=e(t.subarray(i+8,o),n.slice(1)),s.length&&(u=u.concat(s)))),i=o;return u},dn=ln,hn=on.toUnsigned,fn=$.getUint64,pn=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=fn(e.subarray(4)):t.baseMediaDecodeTime=hn(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},mn=pn,gn=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},vn=gn,yn=function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},i=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&n.flags[2],a=4&n.flags[2],o=1&n.flags[1],s=2&n.flags[1],u=4&n.flags[1],c=8&n.flags[1],l=i.getUint32(4),d=8;r&&(n.dataOffset=i.getInt32(d),d+=4),a&&l&&(t={flags:vn(e.subarray(d,d+4))},d+=4,o&&(t.duration=i.getUint32(d),d+=4),s&&(t.size=i.getUint32(d),d+=4),c&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t),l--);while(l--)t={},o&&(t.duration=i.getUint32(d),d+=4),s&&(t.size=i.getUint32(d),d+=4),u&&(t.flags=vn(e.subarray(d,d+4)),d+=4),c&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t);return n},bn=yn,_n=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},r=1&i.flags[2],a=2&i.flags[2],o=8&i.flags[2],s=16&i.flags[2],u=32&i.flags[2],c=65536&i.flags[0],l=131072&i.flags[0];return t=8,r&&(t+=4,i.baseDataOffset=n.getUint32(12),t+=4),a&&(i.sampleDescriptionIndex=n.getUint32(t),t+=4),o&&(i.defaultSampleDuration=n.getUint32(t),t+=4),s&&(i.defaultSampleSize=n.getUint32(t),t+=4),u&&(i.defaultSampleFlags=n.getUint32(t)),c&&(i.durationIsEmpty=!0),!r&&l&&(i.baseDataOffsetIsMoof=!0),i},Tn=_n,wn="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{};tn="undefined"!==typeof window?window:"undefined"!==typeof wn?wn:"undefined"!==typeof self?self:{};var Sn,kn,Cn,xn,En,An,On=tn,jn=Pe.discardEmulationPreventionBytes,In=We.CaptionStream,Pn=function(e,t){for(var n=e,i=0;i<t.length;i++){var r=t[i];if(n<r.size)return r;n-=r.size}return null},Ln=function(e,t,n){var i,r,a,o,s=new DataView(e.buffer,e.byteOffset,e.byteLength),u={logs:[],seiNals:[]};for(r=0;r+4<e.length;r+=a)if(a=s.getUint32(r),r+=4,!(a<=0))switch(31&e[r]){case 6:var c=e.subarray(r+1,r+1+a),l=Pn(r,t);if(i={nalUnitType:"sei_rbsp",size:a,data:c,escapedRBSP:jn(c),trackId:n},l)i.pts=l.pts,i.dts=l.dts,o=l;else{if(!o){u.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+r+" for trackId "+n+". See mux.js#223."});break}i.pts=o.pts,i.dts=o.dts}u.seiNals.push(i);break}return u},Mn=function(e,t,n){var i=t,r=n.defaultSampleDuration||0,a=n.defaultSampleSize||0,o=n.trackId,s=[];return e.forEach((function(e){var t=bn(e),n=t.samples;n.forEach((function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=a),e.trackId=o,e.dts=i,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"===typeof i?(e.pts=i+On.BigInt(e.compositionTimeOffset),i+=On.BigInt(e.duration)):(e.pts=i+e.compositionTimeOffset,i+=e.duration)})),s=s.concat(n)})),s},Dn=function(e,t){var n=dn(e,["moof","traf"]),i=dn(e,["mdat"]),r={},a=[];return i.forEach((function(e,t){var i=n[t];a.push({mdat:e,traf:i})})),a.forEach((function(e){var n,i,a=e.mdat,o=e.traf,s=dn(o,["tfhd"]),u=Tn(s[0]),c=u.trackId,l=dn(o,["tfdt"]),d=l.length>0?mn(l[0]).baseMediaDecodeTime:0,h=dn(o,["trun"]);t===c&&h.length>0&&(n=Mn(h,d,u),i=Ln(a,n,c),r[c]||(r[c]={seiNals:[],logs:[]}),r[c].seiNals=r[c].seiNals.concat(i.seiNals),r[c].logs=r[c].logs.concat(i.logs))})),r},Rn=function(e,t,n){var i;if(null===t)return null;i=Dn(e,t);var r=i[t]||{};return{seiNals:r.seiNals,logs:r.logs,timescale:n}},Nn=function(){var e,t,n,i,r,a,o=!1;this.isInitialized=function(){return o},this.init=function(t){e=new In,o=!0,a=!!t&&t.isPartial,e.on("data",(function(e){e.startTime=e.startPts/i,e.endTime=e.endPts/i,r.captions.push(e),r.captionStreams[e.stream]=!0})),e.on("log",(function(e){r.logs.push(e)}))},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"===typeof t&&0===Object.keys(t).length)&&(n!==e[0]||i!==t[n])},this.parse=function(e,a,o){var s;if(!this.isInitialized())return null;if(!a||!o)return null;if(this.isNewInit(a,o))n=a[0],i=o[n];else if(null===n||!i)return t.push(e),null;while(t.length>0){var u=t.shift();this.parse(u,a,o)}return s=Rn(e,n,i),s&&s.logs&&(r.logs=r.logs.concat(s.logs)),null!==s&&s.seiNals?(this.pushNals(s.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach((function(t){e.push(t)}))},this.flushStream=function(){if(!this.isInitialized())return null;a?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,i=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},Bn=Nn,Un=on.toUnsigned,Fn=on.toHexString,$n=$.getUint64;Sn=function(e){var t={},n=dn(e,["moov","trak"]);return n.reduce((function(e,t){var n,i,r,a,o;return n=dn(t,["tkhd"])[0],n?(i=n[0],r=0===i?12:20,a=Un(n[r]<<24|n[r+1]<<16|n[r+2]<<8|n[r+3]),o=dn(t,["mdia","mdhd"])[0],o?(i=o[0],r=0===i?12:20,e[a]=Un(o[r]<<24|o[r+1]<<16|o[r+2]<<8|o[r+3]),e):null):null}),t)},kn=function(e,t){var n;n=dn(t,["moof","traf"]);var i=n.reduce((function(t,n){var i,r,a=dn(n,["tfhd"])[0],o=Un(a[4]<<24|a[5]<<16|a[6]<<8|a[7]),s=e[o]||9e4,u=dn(n,["tfdt"])[0],c=new DataView(u.buffer,u.byteOffset,u.byteLength);return i=1===u[0]?$n(u.subarray(4,12)):c.getUint32(4),"bigint"===typeof i?r=i/On.BigInt(s):"number"!==typeof i||isNaN(i)||(r=i/s),r<Number.MAX_SAFE_INTEGER&&(r=Number(r)),r<t&&(t=r),t}),1/0);return"bigint"===typeof i||isFinite(i)?i:0},Cn=function(e,t){var n,i=dn(t,["moof","traf"]),r=0,a=0;if(i&&i.length){var o=dn(i[0],["tfhd"])[0],s=dn(i[0],["trun"])[0],u=dn(i[0],["tfdt"])[0];if(o){var c=Tn(o);n=c.trackId}if(u){var l=mn(u);r=l.baseMediaDecodeTime}if(s){var d=bn(s);d.samples&&d.samples.length&&(a=d.samples[0].compositionTimeOffset||0)}}var h=e[n]||9e4;"bigint"===typeof r&&(a=On.BigInt(a),h=On.BigInt(h));var f=(r+a)/h;return"bigint"===typeof f&&f<Number.MAX_SAFE_INTEGER&&(f=Number(f)),f},xn=function(e){var t=dn(e,["moov","trak"]),n=[];return t.forEach((function(e){var t=dn(e,["mdia","hdlr"]),i=dn(e,["tkhd"]);t.forEach((function(e,t){var r,a,o,s=un(e.subarray(8,12)),u=i[t];"vide"===s&&(r=new DataView(u.buffer,u.byteOffset,u.byteLength),a=r.getUint8(0),o=0===a?r.getUint32(12):r.getUint32(20),n.push(o))}))})),n},An=function(e){var t=e[0],n=0===t?12:20;return Un(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3])},En=function(e){var t=dn(e,["moov","trak"]),n=[];return t.forEach((function(e){var t,i,r={},a=dn(e,["tkhd"])[0];a&&(t=new DataView(a.buffer,a.byteOffset,a.byteLength),i=t.getUint8(0),r.id=0===i?t.getUint32(12):t.getUint32(20));var o=dn(e,["mdia","hdlr"])[0];if(o){var s=un(o.subarray(8,12));r.type="vide"===s?"video":"soun"===s?"audio":s}var u=dn(e,["mdia","minf","stbl","stsd"])[0];if(u){var c=u.subarray(8);r.codec=un(c.subarray(4,8));var l,d,h=dn(c,[r.codec])[0];h&&(/^[asm]vc[1-9]$/i.test(r.codec)?(l=h.subarray(78),d=un(l.subarray(4,8)),"avcC"===d&&l.length>11?(r.codec+=".",r.codec+=Fn(l[9]),r.codec+=Fn(l[10]),r.codec+=Fn(l[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(l=h.subarray(28),d=un(l.subarray(4,8)),"esds"===d&&l.length>20&&0!==l[19]?(r.codec+="."+Fn(l[19]),r.codec+="."+Fn(l[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var f=dn(e,["mdia","mdhd"])[0];f&&(r.timescale=An(f)),n.push(r)})),n};var Hn={findBox:dn,parseType:un,timescale:Sn,startTime:kn,compositionStartTime:Cn,videoTrackIds:xn,tracks:En,getTimescaleFromMediaHeader:An},Vn=function(e){var t=31&e[1];return t<<=8,t|=e[2],t},qn=function(e){return!!(64&e[1])},zn=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},Wn=function(e,t){var n=Vn(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},Gn=function(e){var t=qn(e),n=4+zn(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},Yn=function(e){var t={},n=qn(e),i=4+zn(e);if(n&&(i+=e[i]+1),1&e[i+5]){var r,a,o;r=(15&e[i+1])<<8|e[i+2],a=3+r-4,o=(15&e[i+10])<<8|e[i+11];var s=12+o;while(s<a){var u=i+s;t[(31&e[u+1])<<8|e[u+2]]=e[u],s+=5+((15&e[u+3])<<8|e[u+4])}return t}},Xn=function(e,t){var n=Vn(e),i=t[n];switch(i){case Ge.H264_STREAM_TYPE:return"video";case Ge.ADTS_STREAM_TYPE:return"audio";case Ge.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},Kn=function(e){var t=qn(e);if(!t)return null;var n=4+zn(e);if(n>=e.byteLength)return null;var i,r=null;return i=e[n+7],192&i&&(r={},r.pts=(14&e[n+9])<<27|(255&e[n+10])<<20|(254&e[n+11])<<12|(255&e[n+12])<<5|(254&e[n+13])>>>3,r.pts*=4,r.pts+=(6&e[n+13])>>>1,r.dts=r.pts,64&i&&(r.dts=(14&e[n+14])<<27|(255&e[n+15])<<20|(254&e[n+16])<<12|(255&e[n+17])<<5|(254&e[n+18])>>>3,r.dts*=4,r.dts+=(6&e[n+18])>>>1)),r},Qn=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},Jn=function(e){for(var t,n=4+zn(e),i=e.subarray(n),r=0,a=0,o=!1;a<i.byteLength-3;a++)if(1===i[a+2]){r=a+5;break}while(r<i.byteLength)switch(i[r]){case 0:if(0!==i[r-1]){r+=2;break}if(0!==i[r-2]){r++;break}a+3!==r-2&&(t=Qn(31&i[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(o=!0));do{r++}while(1!==i[r]&&r<i.length);a=r-2,r+=3;break;case 1:if(0!==i[r-1]||0!==i[r-2]){r+=3;break}t=Qn(31&i[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(o=!0),a=r-2,r+=3;break;default:r+=3;break}return i=i.subarray(a),r-=a,a=0,i&&i.byteLength>3&&(t=Qn(31&i[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(o=!0)),o},Zn={parseType:Wn,parsePat:Gn,parsePmt:Yn,parsePayloadUnitStartIndicator:qn,parsePesType:Xn,parsePesTime:Kn,videoPacketContainsKeyFrame:Jn},ei=et.handleRollover,ti={};ti.ts=Zn,ti.aac=Bt;var ni=pe.ONE_SECOND_IN_TS,ii=188,ri=71,ai=function(e,t){var n,i,r=0,a=ii;while(a<e.byteLength)if(e[r]!==ri||e[a]!==ri)r++,a++;else{switch(n=e.subarray(r,a),i=ti.ts.parseType(n,t.pid),i){case"pat":t.pid=ti.ts.parsePat(n);break;case"pmt":var o=ti.ts.parsePmt(n);t.table=t.table||{},Object.keys(o).forEach((function(e){t.table[e]=o[e]}));break}r+=ii,a+=ii}},oi=function(e,t,n){var i,r,a,o,s,u=0,c=ii,l=!1;while(c<=e.byteLength)if(e[u]!==ri||e[c]!==ri&&c!==e.byteLength)u++,c++;else{switch(i=e.subarray(u,c),r=ti.ts.parseType(i,t.pid),r){case"pes":a=ti.ts.parsePesType(i,t.table),o=ti.ts.parsePayloadUnitStartIndicator(i),"audio"===a&&o&&(s=ti.ts.parsePesTime(i),s&&(s.type="audio",n.audio.push(s),l=!0));break}if(l)break;u+=ii,c+=ii}c=e.byteLength,u=c-ii,l=!1;while(u>=0)if(e[u]!==ri||e[c]!==ri&&c!==e.byteLength)u--,c--;else{switch(i=e.subarray(u,c),r=ti.ts.parseType(i,t.pid),r){case"pes":a=ti.ts.parsePesType(i,t.table),o=ti.ts.parsePayloadUnitStartIndicator(i),"audio"===a&&o&&(s=ti.ts.parsePesTime(i),s&&(s.type="audio",n.audio.push(s),l=!0));break}if(l)break;u-=ii,c-=ii}},si=function(e,t,n){var i,r,a,o,s,u,c,l,d=0,h=ii,f=!1,p={data:[],size:0};while(h<e.byteLength)if(e[d]!==ri||e[h]!==ri)d++,h++;else{switch(i=e.subarray(d,h),r=ti.ts.parseType(i,t.pid),r){case"pes":if(a=ti.ts.parsePesType(i,t.table),o=ti.ts.parsePayloadUnitStartIndicator(i),"video"===a&&(o&&!f&&(s=ti.ts.parsePesTime(i),s&&(s.type="video",n.video.push(s),f=!0)),!n.firstKeyFrame)){if(o&&0!==p.size){u=new Uint8Array(p.size),c=0;while(p.data.length)l=p.data.shift(),u.set(l,c),c+=l.byteLength;if(ti.ts.videoPacketContainsKeyFrame(u)){var m=ti.ts.parsePesTime(u);m?(n.firstKeyFrame=m,n.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}p.size=0}p.data.push(i),p.size+=i.byteLength}break}if(f&&n.firstKeyFrame)break;d+=ii,h+=ii}h=e.byteLength,d=h-ii,f=!1;while(d>=0)if(e[d]!==ri||e[h]!==ri)d--,h--;else{switch(i=e.subarray(d,h),r=ti.ts.parseType(i,t.pid),r){case"pes":a=ti.ts.parsePesType(i,t.table),o=ti.ts.parsePayloadUnitStartIndicator(i),"video"===a&&o&&(s=ti.ts.parsePesTime(i),s&&(s.type="video",n.video.push(s),f=!0));break}if(f)break;d-=ii,h-=ii}},ui=function(e,t){if(e.audio&&e.audio.length){var n=t;("undefined"===typeof n||isNaN(n))&&(n=e.audio[0].dts),e.audio.forEach((function(e){e.dts=ei(e.dts,n),e.pts=ei(e.pts,n),e.dtsTime=e.dts/ni,e.ptsTime=e.pts/ni}))}if(e.video&&e.video.length){var i=t;if(("undefined"===typeof i||isNaN(i))&&(i=e.video[0].dts),e.video.forEach((function(e){e.dts=ei(e.dts,i),e.pts=ei(e.pts,i),e.dtsTime=e.dts/ni,e.ptsTime=e.pts/ni})),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=ei(r.dts,i),r.pts=ei(r.pts,i),r.dtsTime=r.dts/ni,r.ptsTime=r.pts/ni}}},ci=function(e){var t,n=!1,i=0,r=null,a=null,o=0,s=0;while(e.length-s>=3){var u=ti.aac.parseType(e,s);switch(u){case"timed-metadata":if(e.length-s<10){n=!0;break}if(o=ti.aac.parseId3TagSize(e,s),o>e.length){n=!0;break}null===a&&(t=e.subarray(s,s+o),a=ti.aac.parseAacTimestamp(t)),s+=o;break;case"audio":if(e.length-s<7){n=!0;break}if(o=ti.aac.parseAdtsSize(e,s),o>e.length){n=!0;break}null===r&&(t=e.subarray(s,s+o),r=ti.aac.parseSampleRate(t)),i++,s+=o;break;default:s++;break}if(n)return null}if(null===r||null===a)return null;var c=ni/r,l={audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*i*c,pts:a+1024*i*c}]};return l},li=function(e){var t={pid:null,table:null},n={};for(var i in ai(e,t),t.table)if(t.table.hasOwnProperty(i)){var r=t.table[i];switch(r){case Ge.H264_STREAM_TYPE:n.video=[],si(e,t,n),0===n.video.length&&delete n.video;break;case Ge.ADTS_STREAM_TYPE:n.audio=[],oi(e,t,n),0===n.audio.length&&delete n.audio;break}}return n},di=function(e,t){var n,i=ti.aac.isLikelyAacData(e);return n=i?ci(e):li(e),n&&(n.audio||n.video)?(ui(n,t),n):null},hi={inspect:di,parseAudioPes_:oi},fi=function(e,t){t.on("data",(function(t){var n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var i=t.data;t.data=i.buffer,e.postMessage({action:"data",segment:t,byteOffset:i.byteOffset,byteLength:i.byteLength},[t.data])})),t.on("done",(function(t){e.postMessage({action:"done"})})),t.on("gopInfo",(function(t){e.postMessage({action:"gopInfo",gopInfo:t})})),t.on("videoSegmentTimingInfo",(function(t){var n={start:{decode:pe.videoTsToSeconds(t.start.dts),presentation:pe.videoTsToSeconds(t.start.pts)},end:{decode:pe.videoTsToSeconds(t.end.dts),presentation:pe.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:pe.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=pe.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})})),t.on("audioSegmentTimingInfo",(function(t){var n={start:{decode:pe.videoTsToSeconds(t.start.dts),presentation:pe.videoTsToSeconds(t.start.pts)},end:{decode:pe.videoTsToSeconds(t.end.dts),presentation:pe.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:pe.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=pe.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})})),t.on("id3Frame",(function(t){e.postMessage({action:"id3Frame",id3Frame:t})})),t.on("caption",(function(t){e.postMessage({action:"caption",caption:t})})),t.on("trackinfo",(function(t){e.postMessage({action:"trackinfo",trackInfo:t})})),t.on("audioTimingInfo",(function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:pe.videoTsToSeconds(t.start),end:pe.videoTsToSeconds(t.end)}})})),t.on("videoTimingInfo",(function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:pe.videoTsToSeconds(t.start),end:pe.videoTsToSeconds(t.end)}})})),t.on("log",(function(t){e.postMessage({action:"log",log:t})}))},pi=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new nn.Transmuxer(this.options),fi(this.self,this.transmuxer)},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new Bn,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),n=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:n&&n.captions||[],logs:n&&n.logs||[],data:t.buffer},[t.buffer])},t.probeMp4StartTime=function(e){var t=e.timescales,n=e.data,i=Hn.startTime(t,n);this.self.postMessage({action:"probeMp4StartTime",startTime:i,data:n},[n.buffer])},t.probeMp4Tracks=function(e){var t=e.data,n=Hn.tracks(t);this.self.postMessage({action:"probeMp4Tracks",tracks:n,data:t},[t.buffer])},t.probeTs=function(e){var t=e.data,n=e.baseStartTime,i="number"!==typeof n||isNaN(n)?void 0:n*pe.ONE_SECOND_IN_TS,r=hi.inspect(t,i),a=null;r&&(a={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1},a.hasVideo&&(a.videoStart=r.video[0].ptsTime),a.hasAudio&&(a.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:a,data:t},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(pe.secondsToVideoTs(t)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(pe.secondsToVideoTs(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new pi(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new pi(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}}))),As=ks(Es),Os=function(e,t,n){var i=e.data.segment,r=i.type,a=i.initSegment,o=i.captions,s=i.captionStreams,u=i.metadata,c=i.videoFrameDtsTime,l=i.videoFramePtsTime;t.buffer.push({captions:o,captionStreams:s,metadata:u});var d=e.data.segment.boxes||{data:e.data.segment.data},h={type:r,data:new Uint8Array(d.data,d.data.byteOffset,d.data.byteLength),initSegment:new Uint8Array(a.data,a.byteOffset,a.byteLength)};"undefined"!==typeof c&&(h.videoFrameDtsTime=c),"undefined"!==typeof l&&(h.videoFramePtsTime=l),n(h)},js=function(e){var t=e.transmuxedData,n=e.callback;t.buffer=[],n(t)},Is=function(e,t){t.gopInfo=e.data.gopInfo},Ps=function(e){var t=e.transmuxer,n=e.bytes,i=e.audioAppendStart,r=e.gopsToAlignWith,a=e.remux,o=e.onData,s=e.onTrackInfo,u=e.onAudioTimingInfo,c=e.onVideoTimingInfo,l=e.onVideoSegmentTimingInfo,d=e.onAudioSegmentTimingInfo,h=e.onId3,f=e.onCaptions,p=e.onDone,m=e.onEndedTimeline,g=e.onTransmuxerLog,v=e.isEndOfTimeline,y={buffer:[]},b=v,_=function(n){t.currentTransmux===e&&("data"===n.data.action&&Os(n,y,o),"trackinfo"===n.data.action&&s(n.data.trackInfo),"gopInfo"===n.data.action&&Is(n,y),"audioTimingInfo"===n.data.action&&u(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&c(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&l(n.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===n.data.action&&d(n.data.audioSegmentTimingInfo),"id3Frame"===n.data.action&&h([n.data.id3Frame],n.data.id3Frame.dispatchType),"caption"===n.data.action&&f(n.data.caption),"endedtimeline"===n.data.action&&(b=!1,m()),"log"===n.data.action&&g(n.data.log),"transmuxed"===n.data.type&&(b||(t.onmessage=null,js({transmuxedData:y,callback:p}),Ls(t))))};if(t.onmessage=_,i&&t.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),"undefined"!==typeof a&&t.postMessage({action:"setRemux",remux:a}),n.byteLength){var T=n instanceof ArrayBuffer?n:n.buffer,w=n instanceof ArrayBuffer?0:n.byteOffset;t.postMessage({action:"push",data:T,byteOffset:w,byteLength:n.byteLength},[T])}v&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},Ls=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"===typeof e.currentTransmux?e.currentTransmux():Ps(e.currentTransmux))},Ms=function(e,t){e.postMessage({action:t}),Ls(e)},Ds=function(e,t){if(!t.currentTransmux)return t.currentTransmux=e,void Ms(t,e);t.transmuxQueue.push(Ms.bind(null,t,e))},Rs=function(e){Ds("reset",e)},Ns=function(e){Ds("endTimeline",e)},Bs=function(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void Ps(e);e.transmuxer.transmuxQueue.push(e)},Us=function(e){var t=new As;t.currentTransmux=null,t.transmuxQueue=[];var n=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)},t.postMessage({action:"init",options:e}),t},Fs={reset:Rs,endTimeline:Ns,transmux:Bs,createTransmuxer:Us},$s=function(e){var t=e.transmuxer,n=e.endAction||e.action,i=e.callback,r=(0,s.default)({},e,{endAction:null,transmuxer:null,callback:null}),a=function r(a){a.data.action===n&&(t.removeEventListener("message",r),a.data.data&&(a.data.data=new Uint8Array(a.data.data,e.byteOffset||0,e.byteLength||a.data.data.byteLength),e.data&&(e.data=a.data.data)),i(a.data))};if(t.addEventListener("message",a),e.data){var o=e.data instanceof ArrayBuffer;r.byteOffset=o?0:e.data.byteOffset,r.byteLength=e.data.byteLength;var u=[o?e.data:e.data.buffer];t.postMessage(r,u)}else t.postMessage(r)},Hs={FAILURE:2,TIMEOUT:-101,ABORTED:-102},Vs=function(e){e.forEach((function(e){e.abort()}))},qs=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}},zs=function(e){var t=e.target,n=Date.now()-t.requestTime,i={bandwidth:1/0,bytesReceived:0,roundTripTime:n||0};return i.bytesReceived=e.loaded,i.bandwidth=Math.floor(i.bytesReceived/i.roundTripTime*8*1e3),i},Ws=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:Hs.TIMEOUT,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:Hs.ABORTED,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:Hs.FAILURE,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:Hs.FAILURE,xhr:t}:null},Gs=function(e,t,n){return function(i,r){var a=r.response,o=Ws(i,r);if(o)return n(o,e);if(16!==a.byteLength)return n({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:Hs.FAILURE,xhr:r},e);for(var s=new DataView(a),u=new Uint32Array([s.getUint32(0),s.getUint32(4),s.getUint32(8),s.getUint32(12)]),c=0;c<t.length;c++)t[c].bytes=u;return n(null,e)}},Ys=function(e,t){var n=(0,k.detectContainerForBytes)(e.map.bytes);if("mp4"!==n){var i=e.map.resolvedUri||e.map.uri;return t({internal:!0,message:"Found unsupported "+(n||"unknown")+" container for initialization segment at URL: "+i,code:Hs.FAILURE})}$s({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:function(n){var i=n.tracks,r=n.data;return e.map.bytes=r,i.forEach((function(t){e.map.tracks=e.map.tracks||{},e.map.tracks[t.type]||(e.map.tracks[t.type]=t,"number"===typeof t.id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale))})),t(null)}})},Xs=function(e){var t=e.segment,n=e.finishProcessingFn;return function(e,i){var r=Ws(e,i);if(r)return n(r,t);var a=new Uint8Array(i.response);if(t.map.key)return t.map.encryptedBytes=a,n(null,t);t.map.bytes=a,Ys(t,(function(e){if(e)return e.xhr=i,e.status=i.status,n(e,t);n(null,t)}))}},Ks=function(e){var t=e.segment,n=e.finishProcessingFn,i=e.responseType;return function(e,r){var a=Ws(e,r);if(a)return n(a,t);var o="arraybuffer"!==i&&r.responseText?Ts(r.responseText.substring(t.lastReachedChar||0)):r.response;return t.stats=qs(r),t.key?t.encryptedBytes=new Uint8Array(o):t.bytes=new Uint8Array(o),n(null,t)}},Qs=function(e){var t=e.segment,n=e.bytes,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,u=e.captionsFn,c=e.isEndOfTimeline,l=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,f=e.onTransmuxerLog,p=t.map&&t.map.tracks||{},m=Boolean(p.audio&&p.video),g=r.bind(null,t,"audio","start"),v=r.bind(null,t,"audio","end"),y=r.bind(null,t,"video","start"),b=r.bind(null,t,"video","end"),_=function(){return Bs({bytes:n,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:m,onData:function(e){e.type="combined"===e.type?"video":e.type,d(t,e)},onTrackInfo:function(e){i&&(m&&(e.isMuxed=!0),i(t,e))},onAudioTimingInfo:function(e){g&&"undefined"!==typeof e.start&&(g(e.start),g=null),v&&"undefined"!==typeof e.end&&v(e.end)},onVideoTimingInfo:function(e){y&&"undefined"!==typeof e.start&&(y(e.start),y=null),b&&"undefined"!==typeof e.end&&b(e.end)},onVideoSegmentTimingInfo:function(e){a(e)},onAudioSegmentTimingInfo:function(e){o(e)},onId3:function(e,n){s(t,e,n)},onCaptions:function(e){u(t,[e])},isEndOfTimeline:c,onEndedTimeline:function(){l()},onTransmuxerLog:f,onDone:function(e){h&&(e.type="combined"===e.type?"video":e.type,h(null,t,e))}})};$s({action:"probeTs",transmuxer:t.transmuxer,data:n,baseStartTime:t.baseStartTime,callback:function(e){t.bytes=n=e.data;var r=e.result;r&&(i(t,{hasAudio:r.hasAudio,hasVideo:r.hasVideo,isMuxed:m}),i=null,r.hasAudio&&!m&&g(r.audioStart),r.hasVideo&&y(r.videoStart),g=null,y=null),_()}})},Js=function(e){var t=e.segment,n=e.bytes,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,u=e.captionsFn,c=e.isEndOfTimeline,l=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,f=e.onTransmuxerLog,p=new Uint8Array(n);if((0,k.isLikelyFmp4MediaSegment)(p)){t.isFmp4=!0;var m=t.map.tracks,g={isFmp4:!0,hasVideo:!!m.video,hasAudio:!!m.audio};m.audio&&m.audio.codec&&"enca"!==m.audio.codec&&(g.audioCodec=m.audio.codec),m.video&&m.video.codec&&"encv"!==m.video.codec&&(g.videoCodec=m.video.codec),m.video&&m.audio&&(g.isMuxed=!0),i(t,g);var v=function(e){d(t,{data:p,type:g.hasAudio&&!g.isMuxed?"audio":"video"}),e&&e.length&&u(t,e),h(null,t,{})};$s({action:"probeMp4StartTime",timescales:t.map.timescales,data:p,transmuxer:t.transmuxer,callback:function(e){var i=e.data,a=e.startTime;n=i.buffer,t.bytes=p=i,g.hasAudio&&!g.isMuxed&&r(t,"audio","start",a),g.hasVideo&&r(t,"video","start",a),m.video&&i.byteLength&&t.transmuxer?$s({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:p,timescales:t.map.timescales,trackIds:[m.video.id],callback:function(e){n=e.data.buffer,t.bytes=p=e.data,e.logs.forEach((function(e){f(xa.mergeOptions(e,{stream:"mp4CaptionParser"}))})),v(e.captions)}}):v()}})}else if(t.transmuxer){if("undefined"===typeof t.container&&(t.container=(0,k.detectContainerForBytes)(p)),"ts"!==t.container&&"aac"!==t.container)return i(t,{hasAudio:!1,hasVideo:!1}),void h(null,t,{});Qs({segment:t,bytes:n,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:u,isEndOfTimeline:c,endedTimelineFn:l,dataFn:d,doneFn:h,onTransmuxerLog:f})}else h(null,t,{})},Zs=function(e,t){var n,i=e.id,r=e.key,a=e.encryptedBytes,o=e.decryptionWorker,s=function e(n){if(n.data.source===i){o.removeEventListener("message",e);var r=n.data.decrypted;t(new Uint8Array(r.bytes,r.byteOffset,r.byteLength))}};o.addEventListener("message",s),n=r.bytes.slice?r.bytes.slice():new Uint32Array(Array.prototype.slice.call(r.bytes)),o.postMessage(Go({source:i,encrypted:a,key:n,iv:r.iv}),[a.buffer,n.buffer])},eu=function(e){var t=e.decryptionWorker,n=e.segment,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,u=e.captionsFn,c=e.isEndOfTimeline,l=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,f=e.onTransmuxerLog;Zs({id:n.requestId,key:n.key,encryptedBytes:n.encryptedBytes,decryptionWorker:t},(function(e){n.bytes=e,Js({segment:n,bytes:n.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:u,isEndOfTimeline:c,endedTimelineFn:l,dataFn:d,doneFn:h,onTransmuxerLog:f})}))},tu=function(e){var t=e.activeXhrs,n=e.decryptionWorker,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,u=e.captionsFn,c=e.isEndOfTimeline,l=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,f=e.onTransmuxerLog,p=0,m=!1;return function(e,g){if(!m){if(e)return m=!0,Vs(t),h(e,g);if(p+=1,p===t.length){var v=function(){if(g.encryptedBytes)return eu({decryptionWorker:n,segment:g,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:u,isEndOfTimeline:c,endedTimelineFn:l,dataFn:d,doneFn:h,onTransmuxerLog:f});Js({segment:g,bytes:g.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:u,isEndOfTimeline:c,endedTimelineFn:l,dataFn:d,doneFn:h,onTransmuxerLog:f})};if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return Zs({decryptionWorker:n,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key},(function(e){g.map.bytes=e,Ys(g,(function(e){if(e)return Vs(t),h(e,g);v()}))}));v()}}}},nu=function(e){var t=e.loadendState,n=e.abortFn;return function(e){var i=e.target;i.aborted&&n&&!t.calledAbortFn&&(n(),t.calledAbortFn=!0)}},iu=function(e){var t=e.segment,n=e.progressFn;return e.trackInfoFn,e.timingInfoFn,e.videoSegmentTimingInfoFn,e.audioSegmentTimingInfoFn,e.id3Fn,e.captionsFn,e.isEndOfTimeline,e.endedTimelineFn,e.dataFn,function(e){var i=e.target;if(!i.aborted)return t.stats=xa.mergeOptions(t.stats,zs(e)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),n(e,t)}},ru=function(e){var t=e.xhr,n=e.xhrOptions,i=e.decryptionWorker,r=e.segment,a=e.abortFn,o=e.progressFn,s=e.trackInfoFn,u=e.timingInfoFn,c=e.videoSegmentTimingInfoFn,l=e.audioSegmentTimingInfoFn,d=e.id3Fn,h=e.captionsFn,f=e.isEndOfTimeline,p=e.endedTimelineFn,m=e.dataFn,g=e.doneFn,v=e.onTransmuxerLog,y=[],b=tu({activeXhrs:y,decryptionWorker:i,trackInfoFn:s,timingInfoFn:u,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:l,id3Fn:d,captionsFn:h,isEndOfTimeline:f,endedTimelineFn:p,dataFn:m,doneFn:g,onTransmuxerLog:v});if(r.key&&!r.key.bytes){var _=[r.key];r.map&&!r.map.bytes&&r.map.key&&r.map.key.resolvedUri===r.key.resolvedUri&&_.push(r.map.key);var T=xa.mergeOptions(n,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),w=Gs(r,_,b),S=t(T,w);y.push(S)}if(r.map&&!r.map.bytes){var k=r.map.key&&(!r.key||r.key.resolvedUri!==r.map.key.resolvedUri);if(k){var C=xa.mergeOptions(n,{uri:r.map.key.resolvedUri,responseType:"arraybuffer"}),x=Gs(r,[r.map.key],b),E=t(C,x);y.push(E)}var A=xa.mergeOptions(n,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:Vo(r.map)}),O=Xs({segment:r,finishProcessingFn:b}),j=t(A,O);y.push(j)}var I=xa.mergeOptions(n,{uri:r.part&&r.part.resolvedUri||r.resolvedUri,responseType:"arraybuffer",headers:Vo(r)}),P=Ks({segment:r,finishProcessingFn:b,responseType:I.responseType}),L=t(I,P);L.addEventListener("progress",iu({segment:r,progressFn:o,trackInfoFn:s,timingInfoFn:u,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:l,id3Fn:d,captionsFn:h,isEndOfTimeline:f,endedTimelineFn:p,dataFn:m})),y.push(L);var M={};return y.forEach((function(e){e.addEventListener("loadend",nu({loadendState:M,abortFn:a}))})),function(){return Vs(y)}},au=Ia("CodecUtils"),ou=function(e){var t=e.attributes||{};if(t.CODECS)return(0,y.parseCodecs)(t.CODECS)},su=function(e,t){var n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]},uu=function(e,t){if(!su(e,t))return!0;var n=t.attributes||{},i=e.mediaGroups.AUDIO[n.AUDIO];for(var r in i)if(!i[r].uri&&!i[r].playlists)return!0;return!1},cu=function(e){var t={};return e.forEach((function(e){var n=e.mediaType,i=e.type,r=e.details;t[n]=t[n]||[],t[n].push((0,y.translateLegacyCodec)(""+i+r))})),Object.keys(t).forEach((function(e){if(t[e].length>1)return au("multiple "+e+" codecs found as attributes: "+t[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(t[e]=null);t[e]=t[e][0]})),t},lu=function(e){var t=0;return e.audio&&t++,e.video&&t++,t},du=function(e,t){var n=t.attributes||{},i=cu(ou(t)||[]);if(su(e,t)&&!i.audio&&!uu(e,t)){var r=cu((0,y.codecsFromDefault)(e,n.AUDIO)||[]);r.audio&&(i.audio=r.audio)}return i},hu=Ia("PlaylistSelector"),fu=function(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}},pu=function(e,t){if(!e)return"";var n=a.default.getComputedStyle(e);return n?n[t]:""},mu=function(e,t){var n=e.slice();e.sort((function(e,i){var r=t(e,i);return 0===r?n.indexOf(e)-n.indexOf(i):r}))},gu=function(e,t){var n,i;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||a.default.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(i=t.attributes.BANDWIDTH),i=i||a.default.Number.MAX_VALUE,n-i},vu=function(e,t){var n,i;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||a.default.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(i=t.attributes.RESOLUTION.width),i=i||a.default.Number.MAX_VALUE,n===i&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-i},yu=function(e,t,n,i,r,o){if(e){var s={bandwidth:t,width:n,height:i,limitRenditionByPlayerDimensions:r},u=e.playlists;vo.isAudioOnly(e)&&(u=o.getAudioTrackPlaylists_(),s.audioOnly=!0);var c=u.map((function(e){var t,n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return t=e.attributes&&e.attributes.BANDWIDTH,t=t||a.default.Number.MAX_VALUE,{bandwidth:t,width:n,height:i,playlist:e}}));mu(c,(function(e,t){return e.bandwidth-t.bandwidth})),c=c.filter((function(e){return!vo.isIncompatible(e.playlist)}));var l=c.filter((function(e){return vo.isEnabled(e.playlist)}));l.length||(l=c.filter((function(e){return!vo.isDisabled(e.playlist)})));var d=l.filter((function(e){return e.bandwidth*_s.BANDWIDTH_VARIANCE<t})),h=d[d.length-1],f=d.filter((function(e){return e.bandwidth===h.bandwidth}))[0];if(!1===r){var p=f||l[0]||c[0];if(p&&p.playlist){var m="sortedPlaylistReps";return f&&(m="bandwidthBestRep"),l[0]&&(m="enabledPlaylistReps"),hu("choosing "+fu(p)+" using "+m+" with options",s),p.playlist}return hu("could not choose a playlist with options",s),null}var g=d.filter((function(e){return e.width&&e.height}));mu(g,(function(e,t){return e.width-t.width}));var v=g.filter((function(e){return e.width===n&&e.height===i}));h=v[v.length-1];var y,b,_,T,w=v.filter((function(e){return e.bandwidth===h.bandwidth}))[0];if(w||(y=g.filter((function(e){return e.width>n||e.height>i})),b=y.filter((function(e){return e.width===y[0].width&&e.height===y[0].height})),h=b[b.length-1],_=b.filter((function(e){return e.bandwidth===h.bandwidth}))[0]),o.experimentalLeastPixelDiffSelector){var S=g.map((function(e){return e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-i),e}));mu(S,(function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff})),T=S[0]}var k=T||_||w||f||l[0]||c[0];if(k&&k.playlist){var C="sortedPlaylistReps";return T?C="leastPixelDiffRep":_?C="resolutionPlusOneRep":w?C="resolutionBestRep":f?C="bandwidthBestRep":l[0]&&(C="enabledPlaylistReps"),hu("choosing "+fu(k)+" using "+C+" with options",s),k.playlist}return hu("could not choose a playlist with options",s),null}},bu=function(){var e=this.useDevicePixelRatio&&a.default.devicePixelRatio||1;return yu(this.playlists.master,this.systemBandwidth,parseInt(pu(this.tech_.el(),"width"),10)*e,parseInt(pu(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},_u=function(e){var t=-1,n=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var i=this.useDevicePixelRatio&&a.default.devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(t=e*this.systemBandwidth+(1-e)*t,n=this.systemBandwidth),yu(this.playlists.master,t,parseInt(pu(this.tech_.el(),"width"),10)*i,parseInt(pu(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},Tu=function(e){var t=e.master,n=e.currentTime,i=e.bandwidth,r=e.duration,a=e.segmentDuration,o=e.timeUntilRebuffer,s=e.currentTimeline,u=e.syncController,c=t.playlists.filter((function(e){return!vo.isIncompatible(e)})),l=c.filter(vo.isEnabled);l.length||(l=c.filter((function(e){return!vo.isDisabled(e)})));var d=l.filter(vo.hasAttribute.bind(null,"BANDWIDTH")),h=d.map((function(e){var t=u.getSyncPoint(e,r,s,n),c=t?1:2,l=vo.estimateSegmentRequestTime(a,i,e),d=l*c-o;return{playlist:e,rebufferingImpact:d}})),f=h.filter((function(e){return e.rebufferingImpact<=0}));return mu(f,(function(e,t){return gu(t.playlist,e.playlist)})),f.length?f[0]:(mu(h,(function(e,t){return e.rebufferingImpact-t.rebufferingImpact})),h[0]||null)},wu=function(){var e=this,t=this.playlists.master.playlists.filter(vo.isEnabled);mu(t,(function(e,t){return gu(e,t)}));var n=t.filter((function(t){return!!du(e.playlists.master,t).video}));return n[0]||null},Su=function(e){var t,n=0;return e.bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach((function(e){t.set(e,n),n+=e.byteLength}))),t},ku=function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"});var i=n;/^cc708_/.test(n)&&(i="SERVICE"+n.split("_")[1]);var r=t.textTracks().getTrackById(i);if(r)e[n]=r;else{var a=t.options_.vhs&&t.options_.vhs.captionServices||{},o=n,s=n,u=!1,c=a[i];c&&(o=c.label,s=c.language,u=c["default"]),e[n]=t.addRemoteTextTrack({kind:"captions",id:i,default:u,label:o,language:s},!1).track}}},Cu=function(e){var t=e.inbandTextTracks,n=e.captionArray,i=e.timestampOffset;if(n){var r=a.default.WebKitDataCue||a.default.VTTCue;n.forEach((function(e){var n=e.stream;t[n].addCue(new r(e.startTime+i,e.endTime+i,e.text))}))}},xu=function(e){Object.defineProperties(e.frame,{id:{get:function(){return xa.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return xa.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return xa.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})},Eu=function(e){var t=e.inbandTextTracks,n=e.metadataArray,i=e.timestampOffset,r=e.videoDuration;if(n){var o=a.default.WebKitDataCue||a.default.VTTCue,s=t.metadataTrack_;if(s&&(n.forEach((function(e){var t=e.cueTime+i;!("number"!==typeof t||a.default.isNaN(t)||t<0)&&t<1/0&&e.frames.forEach((function(e){var n=new o(t,t,e.value||e.url||e.data||"");n.frame=e,n.value=e,xu(n),s.addCue(n)}))})),s.cues&&s.cues.length)){for(var u=s.cues,c=[],l=0;l<u.length;l++)u[l]&&c.push(u[l]);var d=c.reduce((function(e,t){var n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e}),{}),h=Object.keys(d).sort((function(e,t){return Number(e)-Number(t)}));h.forEach((function(e,t){var n=d[e],i=Number(h[t+1])||r;n.forEach((function(e){e.endTime=i}))}))}}},Au=function(e,t,n){e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)},Ou=function(e,t,n){var i,r;if(n&&n.cues){i=n.cues.length;while(i--)r=n.cues[i],r.startTime>=e&&r.endTime<=t&&n.removeCue(r)}},ju=function(e){var t=e.cues;if(t)for(var n=0;n<t.length;n++){for(var i=[],r=0,a=0;a<t.length;a++)t[n].startTime===t[a].startTime&&t[n].endTime===t[a].endTime&&t[n].text===t[a].text&&(r++,r>1&&i.push(t[a]));i.length&&i.forEach((function(t){return e.removeCue(t)}))}},Iu=function(e,t,n){if("undefined"===typeof t||null===t||!e.length)return[];var i,r=Math.ceil((t-n+3)*C.ONE_SECOND_IN_TS);for(i=0;i<e.length;i++)if(e[i].pts>r)break;return e.slice(i)},Pu=function(e,t,n){if(!t.length)return e;if(n)return t.slice();var i=t[0].pts,r=0;for(r;r<e.length;r++)if(e[r].pts>=i)break;return e.slice(0,r).concat(t)},Lu=function(e,t,n,i){var r=Math.ceil((t-i)*C.ONE_SECOND_IN_TS),a=Math.ceil((n-i)*C.ONE_SECOND_IN_TS),o=e.slice(),s=e.length;while(s--)if(e[s].pts<=a)break;if(-1===s)return o;var u=s+1;while(u--)if(e[u].pts<=r)break;return u=Math.max(u,0),o.splice(u,s-u+1),o},Mu=function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var n=Object.keys(e).sort(),i=Object.keys(t).sort();if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++){var a=n[r];if(a!==i[r])return!1;if(e[a]!==t[a])return!1}return!0},Du=22,Ru=function(e,t,n){t=t||[];for(var i=[],r=0,a=0;a<t.length;a++){var o=t[a];if(e===o.timeline&&(i.push(a),r+=o.duration,r>n))return a}return 0===i.length?0:i[i.length-1]},Nu=1,Bu=500,Uu=function(e){return"number"===typeof e&&isFinite(e)},Fu=1/60,$u=function(e,t,n){return"main"===e&&t&&n?n.hasAudio||n.hasVideo?t.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null},Hu=function(e,t,n){var i=t-_s.BACK_BUFFER_LENGTH;e.length&&(i=Math.max(i,e.start(0)));var r=t-n;return Math.min(r,i)},Vu=function(e){var t=e.startOfSegment,n=e.duration,i=e.segment,r=e.part,a=e.playlist,o=a.mediaSequence,s=a.id,u=a.segments,c=void 0===u?[]:u,l=e.mediaIndex,d=e.partIndex,h=e.timeline,f=c.length-1,p="mediaIndex/partIndex increment";e.getMediaInfoForTime?p="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(p="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(p+=" with independent "+e.independent);var m="number"===typeof d,g=e.segment.uri?"segment":"pre-segment",v=m?Xa({preloadSegment:i})-1:0;return g+" ["+(o+l)+"/"+(o+f)+"]"+(m?" part ["+d+"/"+v+"]":"")+" segment start/end ["+i.start+" => "+i.end+"]"+(m?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+n+"] timeline ["+h+"] selected by ["+p+"] playlist ["+s+"]"},qu=function(e){return e+"TimingInfo"},zu=function(e){var t=e.segmentTimeline,n=e.currentTimeline,i=e.startOfSegment,r=e.buffered,a=e.overrideCheck;return a||t!==n?t<n?i:r.length?r.end(r.length-1):i:null},Wu=function(e){var t=e.timelineChangeController,n=e.currentTimeline,i=e.segmentTimeline,r=e.loaderType,a=e.audioDisabled;if(n===i)return!1;if("audio"===r){var o=t.lastTimelineChange({type:"main"});return!o||o.to!==i}if("main"===r&&a){var s=t.pendingTimelineChange({type:"audio"});return!s||s.to!==i}return!1},Gu=function(e){var t=0;return["video","audio"].forEach((function(n){var i=e[n+"TimingInfo"];if(i){var r,o=i.start,s=i.end;"bigint"===typeof o||"bigint"===typeof s?r=a.default.BigInt(s)-a.default.BigInt(o):"number"===typeof o&&"number"===typeof s&&(r=s-o),"undefined"!==typeof r&&r>t&&(t=r)}})),"bigint"===typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t},Yu=function(e){var t=e.segmentDuration,n=e.maxDuration;return!!t&&Math.round(t)>n+Pa},Xu=function(e,t){if("hls"!==t)return null;var n=Gu({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!n)return null;var i=e.playlist.targetDuration,r=Yu({segmentDuration:n,maxDuration:2*i}),a=Yu({segmentDuration:n,maxDuration:i}),o="Segment with index "+e.mediaIndex+" from playlist "+e.playlist.id+" has a duration of "+n+" when the reported duration is "+e.duration+" and the target duration is "+i+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";return r||a?{severity:r?"warn":"info",message:o}:null},Ku=function(e){function t(t,n){var i;if(i=e.call(this)||this,!t)throw new TypeError("Initialization settings are required");if("function"!==typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");return i.bandwidth=t.bandwidth,i.throughput={rate:0,count:0},i.roundTrip=NaN,i.resetStats_(),i.mediaIndex=null,i.partIndex=null,i.hasPlayed_=t.hasPlayed,i.currentTime_=t.currentTime,i.seekable_=t.seekable,i.seeking_=t.seeking,i.duration_=t.duration,i.mediaSource_=t.mediaSource,i.vhs_=t.vhs,i.loaderType_=t.loaderType,i.currentMediaInfo_=void 0,i.startingMediaInfo_=void 0,i.segmentMetadataTrack_=t.segmentMetadataTrack,i.goalBufferLength_=t.goalBufferLength,i.sourceType_=t.sourceType,i.sourceUpdater_=t.sourceUpdater,i.inbandTextTracks_=t.inbandTextTracks,i.state_="INIT",i.timelineChangeController_=t.timelineChangeController,i.shouldSaveSegmentTimingInfo_=!0,i.parse708captions_=t.parse708captions,i.useDtsForTimestampOffset_=t.useDtsForTimestampOffset,i.captionServices_=t.captionServices,i.experimentalExactManifestTimings=t.experimentalExactManifestTimings,i.checkBufferTimeout_=null,i.error_=void 0,i.currentTimeline_=-1,i.pendingSegment_=null,i.xhrOptions_=null,i.pendingSegments_=[],i.audioDisabled_=!1,i.isPendingTimestampOffset_=!1,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=xa.browser.IE_VERSION>=11,i.appendInitSegment_={audio:!0,video:!0},i.playlistOfLastInitSegment_={audio:null,video:null},i.callQueue_=[],i.loadQueue_=[],i.metadataQueue_={id3:[],caption:[]},i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=null,i.activeInitSegmentId_=null,i.initSegments_={},i.cacheEncryptionKeys_=t.cacheEncryptionKeys,i.keyCache_={},i.decrypter_=t.decrypter,i.syncController_=t.syncController,i.syncPoint_={segmentIndex:0,time:0},i.transmuxer_=i.createTransmuxer_(),i.triggerSyncInfoUpdate_=function(){return i.trigger("syncinfoupdate")},i.syncController_.on("syncinfoupdate",i.triggerSyncInfoUpdate_),i.mediaSource_.addEventListener("sourceopen",(function(){i.isEndOfStream_()||(i.ended_=!1)})),i.fetchAtBuffer_=!1,i.logger_=Ia("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty((0,c.default)(i),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),i.sourceUpdater_.on("ready",(function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),"main"===i.loaderType_&&i.timelineChangeController_.on("pendingtimelinechange",(function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),"audio"===i.loaderType_&&i.timelineChangeController_.on("timelinechange",(function(){i.hasEnoughInfoToLoad_()&&i.processLoadQueue_(),i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),i}(0,l.default)(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return Fs.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},n.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},n.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&a.default.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},n.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},n.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,a.default.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},n.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)},n.error=function(e){return"undefined"!==typeof e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&Fs.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return xa.createTimeRanges();if("main"===this.loaderType_){var t=e.hasAudio,n=e.hasVideo,i=e.isMuxed;if(n&&t&&!this.audioDisabled_&&!i)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Yo(e),i=this.initSegments_[n];return t&&!i&&e.bytes&&(this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),i||e},n.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Xo(e),i=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!i&&e.bytes&&(this.keyCache_[n]=i={resolvedUri:e.resolvedUri,bytes:e.bytes});var r={resolvedUri:(i||e).resolvedUri};return i&&(r.bytes=i.bytes),r},n.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},n.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.playlist=function(e,t){if(void 0===t&&(t={}),e){var n=this.playlist_,i=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));var r=null;if(n&&(n.id?r=n.id:n.uri&&(r=n.uri)),this.logger_("playlist update ["+r+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri)return null!==this.mediaIndex&&(e.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var a=e.mediaSequence-n.mediaSequence;if(this.logger_("live window shift ["+a+"]"),null!==this.mediaIndex)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var o=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!o.parts||!o.parts.length||!o.parts[this.partIndex])){var s=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=s}}i&&(i.mediaIndex-=a,i.mediaIndex<0?(i.mediaIndex=null,i.partIndex=null):(i.mediaIndex>=0&&(i.segment=e.segments[i.mediaIndex]),i.partIndex>=0&&i.segment.parts&&(i.part=i.segment.parts[i.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)}},n.pause=function(){this.checkBufferTimeout_&&(a.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(e){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&Fs.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},n.remove=function(e,t,n,i){if(void 0===n&&(n=function(){}),void 0===i&&(i=!1),t===1/0&&(t=this.duration_()),t<=e)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var r=1,a=function(){r--,0===r&&n()};for(var o in!i&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(e,t,a)),(i||"main"===this.loaderType_)&&(this.gopBuffer_=Lu(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,a)),this.inbandTextTracks_)Ou(e,t,this.inbandTextTracks_[o]);Ou(e,t,this.segmentMetadataTrack_),a()}else this.logger_("skipping remove because no source updater or starting media info")},n.monitorBuffer_=function(){this.checkBufferTimeout_&&a.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=a.default.setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&a.default.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=a.default.setTimeout(this.monitorBufferTick_.bind(this),Bu)},n.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var e=this.chooseNextRequest_();e&&("number"===typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}},n.isEndOfStream_=function(e,t,n){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===n&&(n=this.partIndex),!t||!this.mediaSource_)return!1;var i="number"===typeof e&&t.segments[e],r=e+1===t.segments.length,a=!i||!i.parts||n+1===i.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&r&&a},n.chooseNextRequest_=function(){var e=this.buffered_(),t=Va(e)||0,n=qa(e,this.currentTime_()),i=!this.hasPlayed_()&&n>=1,r=n>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||i||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var o={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(o.isSyncRequest)o.mediaIndex=Ru(this.currentTimeline_,a,t);else if(null!==this.mediaIndex){var s=a[this.mediaIndex],u="number"===typeof this.partIndex?this.partIndex:-1;o.startOfSegment=s.end?s.end:t,s.parts&&s.parts[u+1]?(o.mediaIndex=this.mediaIndex,o.partIndex=u+1):o.mediaIndex=this.mediaIndex+1}else{var c=vo.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),l=c.segmentIndex,d=c.startTime,h=c.partIndex;o.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+t:"currentTime "+this.currentTime_(),o.mediaIndex=l,o.startOfSegment=d,o.partIndex=h}var f=a[o.mediaIndex],p=f&&"number"===typeof o.partIndex&&f.parts&&f.parts[o.partIndex];if(!f||"number"===typeof o.partIndex&&!p)return null;if("number"!==typeof o.partIndex&&f.parts&&(o.partIndex=0,p=f.parts[0]),!n&&p&&!p.independent)if(0===o.partIndex){var m=a[o.mediaIndex-1],g=m.parts&&m.parts.length&&m.parts[m.parts.length-1];g&&g.independent&&(o.mediaIndex-=1,o.partIndex=m.parts.length-1,o.independent="previous segment")}else f.parts[o.partIndex-1].independent&&(o.partIndex-=1,o.independent="previous part");var v=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return o.mediaIndex>=a.length-1&&v&&!this.seeking_()?null:this.generateSegmentInfo_(o)},n.generateSegmentInfo_=function(e){var t=e.independent,n=e.playlist,i=e.mediaIndex,r=e.startOfSegment,a=e.isSyncRequest,o=e.partIndex,s=e.forceTimestampOffset,u=e.getMediaInfoForTime,c=n.segments[i],l="number"===typeof o&&c.parts[o],d={requestId:"segment-loader-"+Math.random(),uri:l&&l.resolvedUri||c.resolvedUri,mediaIndex:i,partIndex:l?o:null,isSyncRequest:a,startOfSegment:r,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:c.timeline,duration:l&&l.duration||c.duration,segment:c,part:l,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:u,independent:t},h="undefined"!==typeof s?s:this.isPendingTimestampOffset_;d.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:c.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:h});var f=Va(this.sourceUpdater_.audioBuffered());return"number"===typeof f&&(d.audioAppendStart=f-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(d.gopsToAlignWith=Iu(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),d},n.timestampOffsetForSegment_=function(e){return zu(e)},n.earlyAbortWhenNeeded_=function(e){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)){var t=this.currentTime_(),n=e.bandwidth,i=this.pendingSegment_.duration,r=vo.estimateSegmentRequestTime(i,n,this.playlist_,e.bytesReceived),a=Fa(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(!(r<=a)){var o=Tu({master:this.vhs_.playlists.master,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(o){var s=r-a,u=s-o.rebufferingImpact,c=.5;a<=Pa&&(c=1),!o.playlist||o.playlist.uri===this.playlist_.uri||u<c||(this.bandwidth=o.playlist.attributes.BANDWIDTH*_s.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},n.handleAbort_=function(e){this.logger_("Aborting "+Vu(e)),this.mediaRequestsAborted+=1},n.handleProgress_=function(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")},n.handleTrackInfo_=function(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},Mu(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},n.handleTimingInfo_=function(e,t,n,i){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var r=this.pendingSegment_,a=qu(t);r[a]=r[a]||{},r[a][n]=i,this.logger_("timinginfo: "+t+" - "+n+" - "+i),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},n.handleCaptions_=function(e,t){var n=this;if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(0!==t.length){var i=this.pendingSegment_;if(i.hasAppendedData_){var r=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),a={};t.forEach((function(e){a[e.stream]=a[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=a[e.stream];t.startTime=Math.min(t.startTime,e.startTime+r),t.endTime=Math.max(t.endTime,e.endTime+r),t.captions.push(e)})),Object.keys(a).forEach((function(e){var t=a[e],i=t.startTime,o=t.endTime,s=t.captions,u=n.inbandTextTracks_;n.logger_("adding cues from "+i+" -> "+o+" for "+e),ku(u,n.vhs_.tech_,e),Ou(i,o,u[e]),Cu({captionArray:s,inbandTextTracks:u,timestampOffset:r})})),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t))}else this.logger_("SegmentLoader received no captions from a caption event")},n.handleId3_=function(e,t,n){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var i=this.pendingSegment_;if(i.hasAppendedData_){var r=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();Au(this.inbandTextTracks_,n,this.vhs_.tech_),Eu({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:r,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n))}},n.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach((function(e){return e()})),this.metadataQueue_.caption.forEach((function(e){return e()})),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},n.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach((function(e){return e()}))},n.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach((function(e){return e()}))},n.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!Wu({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.getCurrentMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),e&&e.trackInfo||this.currentMediaInfo_},n.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},n.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;var n=t.hasAudio,i=t.hasVideo,r=t.isMuxed;return!(i&&!e.videoTimingInfo)&&(!(n&&!this.audioDisabled_&&!r&&!e.audioTimingInfo)&&!Wu({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.part||n.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),n.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),n.isFmp4=e.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[qu(t.type)].start;else{var i,r=this.getCurrentMediaInfo_(),a="main"===this.loaderType_&&r&&r.hasVideo;a&&(i=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:a,firstVideoFrameTimeForData:i,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(n,t.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});var o=this.chooseNextRequest_();if(o.mediaIndex!==n.mediaIndex||o.partIndex!==n.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,t)}}else this.callQueue_.push(this.handleData_.bind(this,e,t))},n.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!==typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},n.getInitSegmentAndUpdateState_=function(e){var t=e.type,n=e.initSegment,i=e.map,r=e.playlist;if(i){var a=Yo(i);if(this.activeInitSegmentId_===a)return null;n=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=a}return n&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=r,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,n):null},n.handleQuotaExceededError_=function(e,t){var n=this,i=e.segmentInfo,r=e.type,o=e.bytes,s=this.sourceUpdater_.audioBuffered(),u=this.sourceUpdater_.videoBuffered();s.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+$a(s).join(", ")),u.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+$a(u).join(", "));var c=s.length?s.start(0):0,l=s.length?s.end(s.length-1):0,d=u.length?u.start(0):0,h=u.length?u.end(u.length-1):0;if(l-c<=Nu&&h-d<=Nu)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+o.byteLength+", audio buffer: "+$a(s).join(", ")+", video buffer: "+$a(u).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:i,type:r,bytes:o}));var f=this.currentTime_(),p=f-Nu;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+p),this.remove(0,p,(function(){n.logger_("On QUOTA_EXCEEDED_ERR, retrying append in "+Nu+"s"),n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=a.default.setTimeout((function(){n.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),n.quotaExceededErrorRetryTimeout_=null,n.processCallQueue_()}),1e3*Nu)}),!0)},n.handleAppendError_=function(e,t){var n=e.segmentInfo,i=e.type,r=e.bytes;t&&(t.code!==Du?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(i+" append of "+r.length+"b failed for segment #"+n.mediaIndex+" in playlist "+n.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:n,type:i,bytes:r}))},n.appendToSourceBuffer_=function(e){var t=e.segmentInfo,n=e.type,i=e.initSegment,r=e.data,a=e.bytes;if(!a){var o=[r],s=r.byteLength;i&&(o.unshift(i),s+=i.byteLength),a=Su({bytes:s,segments:o})}this.sourceUpdater_.appendBuffer({segmentInfo:t,type:n,bytes:a},this.handleAppendError_.bind(this,{segmentInfo:t,type:n,bytes:a}))},n.handleSegmentTimingInfo_=function(e,t,n){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var i=this.pendingSegment_.segment,r=e+"TimingInfo";i[r]||(i[r]={}),i[r].transmuxerPrependedSeconds=n.prependedContentDuration||0,i[r].transmuxedPresentationStart=n.start.presentation,i[r].transmuxedDecodeStart=n.start.decode,i[r].transmuxedPresentationEnd=n.end.presentation,i[r].transmuxedDecodeEnd=n.end.decode,i[r].baseMediaDecodeTime=n.baseMediaDecodeTime}},n.appendData_=function(e,t){var n=t.type,i=t.data;if(i&&i.byteLength&&("audio"!==n||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:n,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:r,data:i})}},n.loadSegment_=function(e){var t=this;this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"===typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push((function(){var n=(0,s.default)({},e,{forceTimestampOffset:!0});(0,s.default)(e,t.generateSegmentInfo_(n)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)}))},n.updateTransmuxerAndRequestSegment_=function(e){var t=this;this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));var n=this.createSimplifiedSegmentObj_(e),i=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),r=null!==this.mediaIndex,a=e.timeline!==this.currentTimeline_&&e.timeline>0,o=i||r&&a;this.logger_("Requesting "+Vu(e)),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=ru({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:o,endedTimelineFn:function(){t.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(n){var i=n.message,r=n.level,a=n.stream;t.logger_(Vu(e)+" logged from transmuxer stream "+a+" as a "+r+": "+i)}})},n.trimBackBuffer_=function(e){var t=Hu(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)},n.createSimplifiedSegmentObj_=function(e){var t=e.segment,n=e.part,i={resolvedUri:n?n.resolvedUri:t.resolvedUri,byterange:n?n.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},r=e.playlist.segments[e.mediaIndex-1];if(r&&r.timeline===t.timeline&&(r.videoTimingInfo?i.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(i.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),t.key){var a=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);i.key=this.segmentKey(t.key),i.key.iv=a}return t.map&&(i.map=this.initSegmentForMap(t.map)),i},n.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},n.saveBandwidthRelatedStats_=function(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<Fu?this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record "+Fu):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)},n.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate")},n.segmentRequestFinished_=function(e,t,n){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,n));else if(this.saveTransferStats_(t.stats),this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId){if(e){if(this.pendingSegment_=null,this.state="READY",e.code===Hs.ABORTED)return;return this.pause(),e.code===Hs.TIMEOUT?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}var i=this.pendingSegment_;this.saveBandwidthRelatedStats_(i.duration,t.stats),i.endOfAllRequests=t.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=Pu(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(i)}},n.setTimeMapping_=function(e){var t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)},n.updateMediaSecondsLoaded_=function(e){"number"===typeof e.start&&"number"===typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},n.trueSegmentStart_=function(e){var t=e.currentStart,n=e.playlist,i=e.mediaIndex,r=e.firstVideoFrameTimeForData,a=e.currentVideoTimestampOffset,o=e.useVideoTimingInfo,s=e.videoTimingInfo,u=e.audioTimingInfo;if("undefined"!==typeof t)return t;if(!o)return u.start;var c=n.segments[i-1];return 0!==i&&c&&"undefined"!==typeof c.start&&c.end===r+a?s.start:r},n.waitForAppendsToComplete_=function(e){var t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var n=t.hasAudio,i=t.hasVideo,r=t.isMuxed,a="main"===this.loaderType_&&i,o=!this.audioDisabled_&&n&&!r;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!==typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);a&&e.waitingOnAppends++,o&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),o&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))},n.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(e){var t=$u(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(e){if(null!==e.timestampOffset&&"number"===typeof e.timingInfo.start&&!e.changedTimestampOffset&&"main"===this.loaderType_){var t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}},n.getSegmentStartTimeForTimestampOffsetCalculation_=function(e){var t=e.videoTimingInfo,n=e.audioTimingInfo,i=e.timingInfo;return this.useDtsForTimestampOffset_?t&&"number"===typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:n&&"number"===typeof n.transmuxedDecodeStart?n.transmuxedDecodeStart:i.start:i.start},n.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_(),n="main"===this.loaderType_&&t&&t.hasVideo,i=n&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;i&&(e.timingInfo.end="number"===typeof i.end?i.end:i.start+e.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});var t=Xu(e,this.sourceType_);if(t&&("warn"===t.severity?xa.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",!e.isSyncRequest||(this.trigger("syncinfoupdate"),e.hasAppendedData_)){this.logger_("Appended "+Vu(e)),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");var n=e.segment,i=e.part,r=n.end&&this.currentTime_()-n.end>3*e.playlist.targetDuration,a=i&&i.end&&this.currentTime_()-i.end>3*e.playlist.partTargetDuration;if(r||a)return this.logger_("bad "+(r?"segment":"part")+" "+Vu(e)),void this.resetEverything();var o=null!==this.mediaIndex;o&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}else this.logger_("Throwing away un-appended sync request "+Vu(e))},n.recordThroughput_=function(e){if(e.duration<Fu)this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record "+Fu);else{var t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,i=Math.floor(e.byteLength/n*8*1e3);this.throughput.rate+=(i-t)/++this.throughput.count}},n.addSegmentMetadataCue_=function(e){if(this.segmentMetadataTrack_){var t=e.segment,n=t.start,i=t.end;if(Uu(n)&&Uu(i)){Ou(n,i,this.segmentMetadataTrack_);var r=a.default.WebKitDataCue||a.default.VTTCue,o={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:n,end:i},s=JSON.stringify(o),u=new r(n,i,s);u.value=o,this.segmentMetadataTrack_.addCue(u)}}},t}(xa.EventTarget);function Qu(){}var Ju,Zu=function(e){return"string"!==typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))},ec=["video","audio"],tc=function(e,t){var n=t[e+"Buffer"];return n&&n.updating||t.queuePending[e]},nc=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];if("mediaSource"===i.type)return null;if(i.type===e)return n}return null},ic=function e(t,n){if(0!==n.queue.length){var i=0,r=n.queue[i];if("mediaSource"!==r.type){if("mediaSource"!==t&&n.ready()&&"closed"!==n.mediaSource.readyState&&!tc(t,n)){if(r.type!==t){if(i=nc(t,n.queue),null===i)return;r=n.queue[i]}return n.queue.splice(i,1),n.queuePending[t]=r,r.action(t,n),r.doneFn?void 0:(n.queuePending[t]=null,void e(t,n))}}else n.updating()||"closed"===n.mediaSource.readyState||(n.queue.shift(),r.action(n),r.doneFn&&r.doneFn(),e("audio",n),e("video",n))}},rc=function(e,t){var n=t[e+"Buffer"],i=Zu(e);n&&(n.removeEventListener("updateend",t["on"+i+"UpdateEnd_"]),n.removeEventListener("error",t["on"+i+"Error_"]),t.codecs[e]=null,t[e+"Buffer"]=null)},ac=function(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)},oc={appendBuffer:function(e,t,n){return function(i,r){var a=r[i+"Buffer"];if(ac(r.mediaSource,a)){r.logger_("Appending segment "+t.mediaIndex+"'s "+e.length+" bytes to "+i+"Buffer");try{a.appendBuffer(e)}catch(o){r.logger_("Error with code "+o.code+" "+(o.code===Du?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+t.mediaIndex+" to "+i+"Buffer"),r.queuePending[i]=null,n(o)}}}},remove:function(e,t){return function(n,i){var r=i[n+"Buffer"];if(ac(i.mediaSource,r)){i.logger_("Removing "+e+" to "+t+" from "+n+"Buffer");try{r.remove(e,t)}catch(a){i.logger_("Remove "+e+" to "+t+" from "+n+"Buffer failed")}}}},timestampOffset:function(e){return function(t,n){var i=n[t+"Buffer"];ac(n.mediaSource,i)&&(n.logger_("Setting "+t+"timestampOffset to "+e),i.timestampOffset=e)}},callback:function(e){return function(t,n){e()}},endOfStream:function(e){return function(t){if("open"===t.mediaSource.readyState){t.logger_("Calling mediaSource endOfStream("+(e||"")+")");try{t.mediaSource.endOfStream(e)}catch(n){xa.log.warn("Failed to call media source endOfStream",n)}}}},duration:function(e){return function(t){t.logger_("Setting mediaSource duration to "+e);try{t.mediaSource.duration=e}catch(n){xa.log.warn("Failed to set media source duration",n)}}},abort:function(){return function(e,t){if("open"===t.mediaSource.readyState){var n=t[e+"Buffer"];if(ac(t.mediaSource,n)){t.logger_("calling abort on "+e+"Buffer");try{n.abort()}catch(i){xa.log.warn("Failed to abort on "+e+"Buffer",i)}}}}},addSourceBuffer:function(e,t){return function(n){var i=Zu(e),r=(0,y.getMimeForCodec)(t);n.logger_("Adding "+e+"Buffer with codec "+t+" to mediaSource");var a=n.mediaSource.addSourceBuffer(r);a.addEventListener("updateend",n["on"+i+"UpdateEnd_"]),a.addEventListener("error",n["on"+i+"Error_"]),n.codecs[e]=t,n[e+"Buffer"]=a}},removeSourceBuffer:function(e){return function(t){var n=t[e+"Buffer"];if(rc(e,t),ac(t.mediaSource,n)){t.logger_("Removing "+e+"Buffer with codec "+t.codecs[e]+" from mediaSource");try{t.mediaSource.removeSourceBuffer(n)}catch(i){xa.log.warn("Failed to removeSourceBuffer "+e+"Buffer",i)}}}},changeType:function(e){return function(t,n){var i=n[t+"Buffer"],r=(0,y.getMimeForCodec)(e);ac(n.mediaSource,i)&&n.codecs[t]!==e&&(n.logger_("changing "+t+"Buffer codec from "+n.codecs[t]+" to "+e),i.changeType(r),n.codecs[t]=e)}}},sc=function(e){var t=e.type,n=e.sourceUpdater,i=e.action,r=e.doneFn,a=e.name;n.queue.push({type:t,action:i,doneFn:r,name:a}),ic(t,n)},uc=function(e,t){return function(n){if(t.queuePending[e]){var i=t.queuePending[e].doneFn;t.queuePending[e]=null,i&&i(t[e+"Error_"])}ic(e,t)}},cc=function(e){function t(t){var n;return n=e.call(this)||this,n.mediaSource=t,n.sourceopenListener_=function(){return ic("mediaSource",(0,c.default)(n))},n.mediaSource.addEventListener("sourceopen",n.sourceopenListener_),n.logger_=Ia("SourceUpdater"),n.audioTimestampOffset_=0,n.videoTimestampOffset_=0,n.queue=[],n.queuePending={audio:null,video:null},n.delayedAudioAppendQueue_=[],n.videoAppendQueued_=!1,n.codecs={},n.onVideoUpdateEnd_=uc("video",(0,c.default)(n)),n.onAudioUpdateEnd_=uc("audio",(0,c.default)(n)),n.onVideoError_=function(e){n.videoError_=e},n.onAudioError_=function(e){n.audioError_=e},n.createdSourceBuffers_=!1,n.initializedEme_=!1,n.triggeredReady_=!1,n}(0,l.default)(t,e);var n=t.prototype;return n.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},n.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},n.hasInitializedAnyEme=function(){return this.initializedEme_},n.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},n.createSourceBuffers=function(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())},n.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},n.addSourceBuffer=function(e,t){sc({type:"mediaSource",sourceUpdater:this,action:oc.addSourceBuffer(e,t),name:"addSourceBuffer"})},n.abort=function(e){sc({type:e,sourceUpdater:this,action:oc.abort(e),name:"abort"})},n.removeSourceBuffer=function(e){this.canRemoveSourceBuffer()?sc({type:"mediaSource",sourceUpdater:this,action:oc.removeSourceBuffer(e),name:"removeSourceBuffer"}):xa.log.error("removeSourceBuffer is not supported!")},n.canRemoveSourceBuffer=function(){return!xa.browser.IE_VERSION&&!xa.browser.IS_FIREFOX&&a.default.MediaSource&&a.default.MediaSource.prototype&&"function"===typeof a.default.MediaSource.prototype.removeSourceBuffer},t.canChangeType=function(){return a.default.SourceBuffer&&a.default.SourceBuffer.prototype&&"function"===typeof a.default.SourceBuffer.prototype.changeType},n.canChangeType=function(){return this.constructor.canChangeType()},n.changeType=function(e,t){this.canChangeType()?sc({type:e,sourceUpdater:this,action:oc.changeType(t),name:"changeType"}):xa.log.error("changeType is not supported!")},n.addOrChangeSourceBuffers=function(e){var t=this;if(!e||"object"!==typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach((function(n){var i=e[n];if(!t.hasCreatedSourceBuffers())return t.addSourceBuffer(n,i);t.canChangeType()&&t.changeType(n,i)}))},n.appendBuffer=function(e,t){var n=this,i=e.segmentInfo,r=e.type,a=e.bytes;if(this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_("delayed audio append of "+a.length+" until video append");var o=t;if(sc({type:r,sourceUpdater:this,action:oc.appendBuffer(a,i||{mediaIndex:-1},o),doneFn:t,name:"appendBuffer"}),"video"===r){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var s=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+s.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,s.forEach((function(e){n.appendBuffer.apply(n,e)}))}},n.audioBuffered=function(){return ac(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:xa.createTimeRange()},n.videoBuffered=function(){return ac(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:xa.createTimeRange()},n.buffered=function(){var e=ac(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=ac(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():Ba(this.audioBuffered(),this.videoBuffered())},n.setDuration=function(e,t){void 0===t&&(t=Qu),sc({type:"mediaSource",sourceUpdater:this,action:oc.duration(e),name:"duration",doneFn:t})},n.endOfStream=function(e,t){void 0===e&&(e=null),void 0===t&&(t=Qu),"string"!==typeof e&&(e=void 0),sc({type:"mediaSource",sourceUpdater:this,action:oc.endOfStream(e),name:"endOfStream",doneFn:t})},n.removeAudio=function(e,t,n){void 0===n&&(n=Qu),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?sc({type:"audio",sourceUpdater:this,action:oc.remove(e,t),doneFn:n,name:"remove"}):n()},n.removeVideo=function(e,t,n){void 0===n&&(n=Qu),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?sc({type:"video",sourceUpdater:this,action:oc.remove(e,t),doneFn:n,name:"remove"}):n()},n.updating=function(){return!(!tc("audio",this)&&!tc("video",this))},n.audioTimestampOffset=function(e){return"undefined"!==typeof e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(sc({type:"audio",sourceUpdater:this,action:oc.timestampOffset(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_},n.videoTimestampOffset=function(e){return"undefined"!==typeof e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(sc({type:"video",sourceUpdater:this,action:oc.timestampOffset(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_},n.audioQueueCallback=function(e){this.audioBuffer&&sc({type:"audio",sourceUpdater:this,action:oc.callback(e),name:"callback"})},n.videoQueueCallback=function(e){this.videoBuffer&&sc({type:"video",sourceUpdater:this,action:oc.callback(e),name:"callback"})},n.dispose=function(){var e=this;this.trigger("dispose"),ec.forEach((function(t){e.abort(t),e.canRemoveSourceBuffer()?e.removeSourceBuffer(t):e[t+"QueueCallback"]((function(){return rc(t,e)}))})),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},t}(xa.EventTarget),lc=function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},dc=new Uint8Array("\n\n".split("").map((function(e){return e.charCodeAt(0)}))),hc=function(e){function t(t,n){var i;return void 0===n&&(n={}),i=e.call(this,t,n)||this,i.mediaSource_=null,i.subtitlesTrack_=null,i.loaderType_="subtitle",i.featuresNativeTextTracks_=t.featuresNativeTextTracks,i.shouldSaveSegmentTimingInfo_=!1,i}(0,l.default)(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return null},n.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return xa.createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime,n=e[e.length-1].startTime;return xa.createTimeRanges([[t,n]])},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Yo(e),i=this.initSegments_[n];if(t&&!i&&e.bytes){var r=dc.byteLength+e.bytes.byteLength,a=new Uint8Array(r);a.set(e.bytes),a.set(dc,e.bytes.byteLength),this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:a}}return i||e},n.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.track=function(e){return"undefined"===typeof e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_},n.remove=function(e,t){Ou(e,t,this.subtitlesTrack_)},n.fillBuffer_=function(){var e=this,t=this.chooseNextRequest_();if(t){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline)){var n=function(){e.state="READY",e.paused()||e.monitorBuffer_()};return this.syncController_.one("timestampoffset",n),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(t)}},n.timestampOffsetForSegment_=function(){return null},n.chooseNextRequest_=function(){return this.skipEmptySegments_(e.prototype.chooseNextRequest_.call(this))},n.skipEmptySegments_=function(e){while(e&&e.segment.empty){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},n.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(e,t,n){var i=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===Hs.TIMEOUT&&this.handleTimeout_(),e.code===Hs.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");var o=r.segment;if(o.map&&(o.map.bytes=t.map.bytes),r.bytes=t.bytes,"function"!==typeof a.default.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var s,u=function(){i.subtitlesTrack_.tech_.off("vttjsloaded",s),i.stopForError({message:"Error loading vtt.js"})};return s=function(){i.subtitlesTrack_.tech_.off("vttjserror",u),i.segmentRequestFinished_(e,t,n)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",s),void this.subtitlesTrack_.tech_.one("vttjserror",u)}o.requested=!0;try{this.parseVTTCues_(r)}catch(c){return void this.stopForError({message:c.message})}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=o.duration,r.cues.forEach((function(e){i.subtitlesTrack_.addCue(i.featuresNativeTextTracks_?new a.default.VTTCue(e.startTime,e.endTime,e.text):e)})),ju(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},n.handleData_=function(){},n.updateTimingInfoEnd_=function(){},n.parseVTTCues_=function(e){var t,n=!1;"function"===typeof a.default.TextDecoder?t=new a.default.TextDecoder("utf8"):(t=a.default.WebVTT.StringDecoder(),n=!0);var i=new a.default.WebVTT.Parser(a.default,a.default.vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=e.cues.push.bind(e.cues),i.ontimestampmap=function(t){e.timestampmap=t},i.onparsingerror=function(e){xa.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var r=e.segment.map.bytes;n&&(r=lc(r)),i.parse(r)}var o=e.bytes;n&&(o=lc(o)),i.parse(o),i.flush()},n.updateTimeMapping_=function(e,t,n){var i=e.segment;if(t)if(e.cues.length){var r=e.timestampmap,a=r.MPEGTS/C.ONE_SECOND_IN_TS-r.LOCAL+t.mapping;if(e.cues.forEach((function(e){e.startTime+=a,e.endTime+=a})),!n.syncInfo){var o=e.cues[0].startTime,s=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(o,s-i.duration)}}}else i.empty=!0},t}(Ku),fc=function(e,t){for(var n=e.cues,i=0;i<n.length;i++){var r=n[i];if(t>=r.adStartTime&&t<=r.adEndTime)return r}return null},pc=function(e,t,n){if(void 0===n&&(n=0),e.segments)for(var i,r=n,o=0;o<e.segments.length;o++){var s=e.segments[o];if(i||(i=fc(t,r+s.duration/2)),i){if("cueIn"in s){i.endTime=r,i.adEndTime=r,r+=s.duration,i=null;continue}if(r<i.endTime){r+=s.duration;continue}i.endTime+=s.duration}else if("cueOut"in s&&(i=new a.default.VTTCue(r,r+s.duration,s.cueOut),i.adStartTime=r,i.adEndTime=r+parseFloat(s.cueOut),t.addCue(i)),"cueOutCont"in s){var u=s.cueOutCont.split("/").map(parseFloat),c=u[0],l=u[1];i=new a.default.VTTCue(r,r+s.duration,""),i.adStartTime=r-c,i.adEndTime=i.adStartTime+l,t.addCue(i)}r+=s.duration}},mc=86400,gc=[{name:"VOD",run:function(e,t,n,i,r){if(n!==1/0){var a={time:0,segmentIndex:0,partIndex:null};return a}return null}},{name:"ProgramDateTime",run:function(e,t,n,i,r){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var a=null,o=null,s=Ga(t);r=r||0;for(var u=0;u<s.length;u++){var c=t.endList||0===r?u:s.length-(u+1),l=s[c],d=l.segment,h=e.timelineToDatetimeMappings[d.timeline];if(h&&d.dateTimeObject){var f=d.dateTimeObject.getTime()/1e3,p=f+h;if(d.parts&&"number"===typeof l.partIndex)for(var m=0;m<l.partIndex;m++)p+=d.parts[m].duration;var g=Math.abs(r-p);if(null!==o&&(0===g||o<g))break;o=g,a={time:p,segmentIndex:l.segmentIndex,partIndex:l.partIndex}}}return a}},{name:"Segment",run:function(e,t,n,i,r){var a=null,o=null;r=r||0;for(var s=Ga(t),u=0;u<s.length;u++){var c=t.endList||0===r?u:s.length-(u+1),l=s[c],d=l.segment,h=l.part&&l.part.start||d&&d.start;if(d.timeline===i&&"undefined"!==typeof h){var f=Math.abs(r-h);if(null!==o&&o<f)break;(!a||null===o||o>=f)&&(o=f,a={time:h,segmentIndex:l.segmentIndex,partIndex:l.partIndex})}}return a}},{name:"Discontinuity",run:function(e,t,n,i,r){var a=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var o=null,s=0;s<t.discontinuityStarts.length;s++){var u=t.discontinuityStarts[s],c=t.discontinuitySequence+s+1,l=e.discontinuities[c];if(l){var d=Math.abs(r-l.time);if(null!==o&&o<d)break;(!a||null===o||o>=d)&&(o=d,a={time:l.time,segmentIndex:u,partIndex:null})}}return a}},{name:"Playlist",run:function(e,t,n,i,r){if(t.syncInfo){var a={time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null};return a}return null}}],vc=function(e){function t(t){var n;return n=e.call(this)||this,n.timelines=[],n.discontinuities=[],n.timelineToDatetimeMappings={},n.logger_=Ia("SyncController"),n}(0,l.default)(t,e);var n=t.prototype;return n.getSyncPoint=function(e,t,n,i){var r=this.runStrategies_(e,t,n,i);return r.length?this.selectSyncPoint_(r,{key:"time",value:i}):null},n.getExpiredTime=function(e,t){if(!e||!e.segments)return null;var n=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!n.length)return null;var i=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return i.segmentIndex>0&&(i.time*=-1),Math.abs(i.time+to({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:i.segmentIndex,endIndex:0}))},n.runStrategies_=function(e,t,n,i){for(var r=[],a=0;a<gc.length;a++){var o=gc[a],s=o.run(this,e,t,n,i);s&&(s.strategy=o.name,r.push({strategy:o.name,syncPoint:s}))}return r},n.selectSyncPoint_=function(e,t){for(var n=e[0].syncPoint,i=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy,a=1;a<e.length;a++){var o=Math.abs(e[a].syncPoint[t.key]-t.value);o<i&&(i=o,n=e[a].syncPoint,r=e[a].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+r+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+("number"===typeof n.partIndex?",partIndex:"+n.partIndex:"")+"]"),n},n.saveExpiredSegmentInfo=function(e,t){var n=t.mediaSequence-e.mediaSequence;if(n>mc)xa.log.warn("Not saving expired segment info. Media sequence gap "+n+" is too large.");else for(var i=n-1;i>=0;i--){var r=e.segments[i];if(r&&"undefined"!==typeof r.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:r.start},this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},n.setDateTimeMappingForStart=function(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0],n=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-n}},n.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,n=e.shouldSaveTimelineMapping,i=this.calculateSegmentTimeMapping_(t,t.timingInfo,n),r=t.segment;i&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:r.start}));var a=r.dateTimeObject;r.discontinuity&&n&&a&&(this.timelineToDatetimeMappings[r.timeline]=-a.getTime()/1e3)},n.timestampOffsetForTimeline=function(e){return"undefined"===typeof this.timelines[e]?null:this.timelines[e].time},n.mappingForTimeline=function(e){return"undefined"===typeof this.timelines[e]?null:this.timelines[e].mapping},n.calculateSegmentTimeMapping_=function(e,t,n){var i,r,a=e.segment,o=e.part,s=this.timelines[e.timeline];if("number"===typeof e.timestampOffset)s={time:e.startOfSegment,mapping:e.startOfSegment-t.start},n&&(this.timelines[e.timeline]=s,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+s.time+"] [mapping: "+s.mapping+"]")),i=e.startOfSegment,r=t.end+s.mapping;else{if(!s)return!1;i=t.start+s.mapping,r=t.end+s.mapping}return o&&(o.start=i,o.end=r),(!a.start||i<a.start)&&(a.start=i),a.end=r,!0},n.saveDiscontinuitySyncInfo_=function(e){var t=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var i=0;i<t.discontinuityStarts.length;i++){var r=t.discontinuityStarts[i],a=t.discontinuitySequence+i+1,o=r-e.mediaIndex,s=Math.abs(o);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>s){var u=void 0;u=o<0?n.start-to({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):n.end+to({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[a]={time:u,accuracy:s}}}},n.dispose=function(){this.trigger("dispose"),this.off()},t}(xa.EventTarget),yc=function(e){function t(){var t;return t=e.call(this)||this,t.pendingTimelineChanges_={},t.lastTimelineChanges_={},t}(0,l.default)(t,e);var n=t.prototype;return n.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=function(e){var t=e.type,n=e.from,i=e.to;return"number"===typeof n&&"number"===typeof i&&(this.pendingTimelineChanges_[t]={type:t,from:n,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},n.lastTimelineChange=function(e){var t=e.type,n=e.from,i=e.to;return"number"===typeof n&&"number"===typeof i&&(this.lastTimelineChanges_[t]={type:t,from:n,to:i},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(xa.EventTarget),bc=Cs(xs((function(){var t="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{};function n(e,t,n){return n={path:t,exports:{},require:function(e,t){return i(e,void 0===t||null===t?n.path:t)}},e(n,n.exports),n.exports}function i(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var r=n((function(e){function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function n(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0})),a=n((function(e){function t(n,i){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports["default"]=e.exports,e.exports.__esModule=!0,t(n,i)}e.exports=t,e.exports["default"]=e.exports,e.exports.__esModule=!0})),o=n((function(e){function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}e.exports=t,e.exports["default"]=e.exports,e.exports.__esModule=!0})),s=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,o=0;o<a;++o)t[o].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}();/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */
  3. function u(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}/*! @name aes-decrypter @version 3.1.3 @license Apache-2.0 */var c,l=function(){var e,t,n,i,r,a,o,s,u,c=[[[],[],[],[],[]],[[],[],[],[],[]]],l=c[0],d=c[1],h=l[4],f=d[4],p=[],m=[];for(e=0;e<256;e++)m[(p[e]=e<<1^283*(e>>7))^e]=e;for(t=n=0;!h[t];t^=i||1,n=m[n]||1)for(o=n^n<<1^n<<2^n<<3^n<<4,o=o>>8^255&o^99,h[t]=o,f[o]=t,a=p[r=p[i=p[t]]],u=16843009*a^65537*r^257*i^16843008*t,s=257*p[o]^16843008*o,e=0;e<4;e++)l[e][t]=s=s<<24^s>>>8,d[e][o]=u=u<<24^u>>>8;for(e=0;e<5;e++)l[e]=l[e].slice(0),d[e]=d[e].slice(0);return c},d=null,h=function(){function e(e){var t,n,i;d||(d=l()),this._tables=[[d[0][0].slice(),d[0][1].slice(),d[0][2].slice(),d[0][3].slice(),d[0][4].slice()],[d[1][0].slice(),d[1][1].slice(),d[1][2].slice(),d[1][3].slice(),d[1][4].slice()]];var r=this._tables[0][4],a=this._tables[1],o=e.length,s=1;if(4!==o&&6!==o&&8!==o)throw new Error("Invalid aes key size");var u=e.slice(0),c=[];for(this._key=[u,c],t=o;t<4*o+28;t++)i=u[t-1],(t%o===0||8===o&&t%o===4)&&(i=r[i>>>24]<<24^r[i>>16&255]<<16^r[i>>8&255]<<8^r[255&i],t%o===0&&(i=i<<8^i>>>24^s<<24,s=s<<1^283*(s>>7))),u[t]=u[t-o]^i;for(n=0;t;n++,t--)i=u[3&n?t:t-4],c[n]=t<=4||n<4?i:a[0][r[i>>>24]]^a[1][r[i>>16&255]]^a[2][r[i>>8&255]]^a[3][r[255&i]]}var t=e.prototype;return t.decrypt=function(e,t,n,i,r,a){var o,s,u,c,l=this._key[1],d=e^l[0],h=i^l[1],f=n^l[2],p=t^l[3],m=l.length/4-2,g=4,v=this._tables[1],y=v[0],b=v[1],_=v[2],T=v[3],w=v[4];for(c=0;c<m;c++)o=y[d>>>24]^b[h>>16&255]^_[f>>8&255]^T[255&p]^l[g],s=y[h>>>24]^b[f>>16&255]^_[p>>8&255]^T[255&d]^l[g+1],u=y[f>>>24]^b[p>>16&255]^_[d>>8&255]^T[255&h]^l[g+2],p=y[p>>>24]^b[d>>16&255]^_[h>>8&255]^T[255&f]^l[g+3],g+=4,d=o,h=s,f=u;for(c=0;c<4;c++)r[(3&-c)+a]=w[d>>>24]<<24^w[h>>16&255]<<16^w[f>>8&255]<<8^w[255&p]^l[g++],o=d,d=h,h=f,f=p,p=o},e}(),f=function(e){function t(){var t;return t=e.call(this,s)||this,t.jobs=[],t.delay=1,t.timeout_=null,t}o(t,e);var n=t.prototype;return n.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},n.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(s),p=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},m=function(e,t,n){var i,r,a,o,s,u,c,l,d,f=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),m=new h(Array.prototype.slice.call(t)),g=new Uint8Array(e.byteLength),v=new Int32Array(g.buffer);for(i=n[0],r=n[1],a=n[2],o=n[3],d=0;d<f.length;d+=4)s=p(f[d]),u=p(f[d+1]),c=p(f[d+2]),l=p(f[d+3]),m.decrypt(s,u,c,l,v,d),v[d]=p(v[d]^i),v[d+1]=p(v[d+1]^r),v[d+2]=p(v[d+2]^a),v[d+3]=p(v[d+3]^o),i=s,r=u,a=c,o=l;return g},g=function(){function e(t,n,i,r){var a=e.STEP,o=new Int32Array(t.buffer),s=new Uint8Array(t.byteLength),c=0;for(this.asyncStream_=new f,this.asyncStream_.push(this.decryptChunk_(o.subarray(c,c+a),n,i,s)),c=a;c<o.length;c+=a)i=new Uint32Array([p(o[c-4]),p(o[c-3]),p(o[c-2]),p(o[c-1])]),this.asyncStream_.push(this.decryptChunk_(o.subarray(c,c+a),n,i,s));this.asyncStream_.push((function(){r(null,u(s))}))}var t=e.prototype;return t.decryptChunk_=function(e,t,n,i){return function(){var r=m(e,t,n);i.set(r,e.byteOffset)}},r(e,null,[{key:"STEP",get:function(){return 32e3}}]),e}();c="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{};var v=c,y=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},b=v.BigInt||Number;b("0x1"),b("0x100"),b("0x10000"),b("0x1000000"),b("0x100000000"),b("0x10000000000"),b("0x1000000000000"),b("0x100000000000000"),b("0x10000000000000000");var _=function(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];y(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i})),t};self.onmessage=function(e){var t=e.data,n=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),i=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),r=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new g(n,i,r,(function(e,n){self.postMessage(_({source:t.source,decrypted:n}),[n.buffer])}))}}))),_c=ks(bc),Tc=function(e){var t=e["default"]?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},wc=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},Sc=function(e,t){t.activePlaylistLoader=e,e.load()},kc=function(e,t){return function(){var n=t.segmentLoaders,i=n[e],r=n.main,a=t.mediaTypes[e],o=a.activeTrack(),s=a.getActiveGroup(),u=a.activePlaylistLoader,c=a.lastGroup_;s&&c&&s.id===c.id||(a.lastGroup_=s,a.lastTrack_=o,wc(i,a),s&&!s.isMasterPlaylist&&(s.playlistLoader?(i.resyncLoader(),Sc(s.playlistLoader,a)):u&&r.resetEverything()))}},Cc=function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e];i.lastGroup_=null,n.abort(),n.pause()}},xc=function(e,t){return function(){var n=t.masterPlaylistLoader,i=t.segmentLoaders,r=i[e],a=i.main,o=t.mediaTypes[e],s=o.activeTrack(),u=o.getActiveGroup(),c=o.activePlaylistLoader,l=o.lastTrack_;if((!l||!s||l.id!==s.id)&&(o.lastGroup_=u,o.lastTrack_=s,wc(r,o),u)){if(u.isMasterPlaylist){if(!s||!l||s.id===l.id)return;var d=t.vhs.masterPlaylistController_,h=d.selectPlaylist();if(d.media()===h)return;return o.logger_("track change. Switching master audio from "+l.id+" to "+s.id),n.pause(),a.resetEverything(),void d.fastQualityChange_(h)}if("AUDIO"===e){if(!u.playlistLoader)return a.setAudio(!0),void a.resetEverything();r.setAudio(!0),a.setAudio(!1)}c!==u.playlistLoader?(r.track&&r.track(s),r.resetEverything(),Sc(u.playlistLoader,o)):Sc(u.playlistLoader,o)}}},Ec={AUDIO:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e],r=t.blacklistCurrentPlaylist;wc(n,i);var a=i.activeTrack(),o=i.activeGroup(),s=(o.filter((function(e){return e["default"]}))[0]||o[0]).id,u=i.tracks[s];if(a!==u){for(var c in xa.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),i.tracks)i.tracks[c].enabled=i.tracks[c]===u;i.onTrackChanged()}else r({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e];xa.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),wc(n,i);var r=i.activeTrack();r&&(r.mode="disabled"),i.onTrackChanged()}}},Ac={AUDIO:function(e,t,n){if(t){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[e];t.on("loadedmetadata",(function(){var e=t.media();a.playlist(e,r),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()})),t.on("loadedplaylist",(function(){a.playlist(t.media(),r),i.paused()||a.load()})),t.on("error",Ec[e](e,n))}},SUBTITLES:function(e,t,n){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[e],o=n.mediaTypes[e];t.on("loadedmetadata",(function(){var e=t.media();a.playlist(e,r),a.track(o.activeTrack()),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()})),t.on("loadedplaylist",(function(){a.playlist(t.media(),r),i.paused()||a.load()})),t.on("error",Ec[e](e,n))}},Oc={AUDIO:function(e,t){var n=t.vhs,i=t.sourceType,r=t.segmentLoaders[e],a=t.requestOptions,o=t.master.mediaGroups,s=t.mediaTypes[e],u=s.groups,c=s.tracks,l=s.logger_,d=t.masterPlaylistLoader,h=go(d.master);for(var f in o[e]&&0!==Object.keys(o[e]).length||(o[e]={main:{default:{default:!0}}},h&&(o[e].main["default"].playlists=d.master.playlists)),o[e])for(var p in u[f]||(u[f]=[]),o[e][f]){var m=o[e][f][p],g=void 0;if(h?(l("AUDIO group '"+f+"' label '"+p+"' is a master playlist"),m.isMasterPlaylist=!0,g=null):g="vhs-json"===i&&m.playlists?new No(m.playlists[0],n,a):m.resolvedUri?new No(m.resolvedUri,n,a):m.playlists&&"dash"===i?new bs(m.playlists[0],n,a,d):null,m=xa.mergeOptions({id:p,playlistLoader:g},m),Ac[e](e,m.playlistLoader,t),u[f].push(m),"undefined"===typeof c[p]){var v=new xa.AudioTrack({id:p,kind:Tc(m),enabled:!1,language:m.language,default:m["default"],label:p});c[p]=v}}r.on("error",Ec[e](e,t))},SUBTITLES:function(e,t){var n=t.tech,i=t.vhs,r=t.sourceType,a=t.segmentLoaders[e],o=t.requestOptions,s=t.master.mediaGroups,u=t.mediaTypes[e],c=u.groups,l=u.tracks,d=t.masterPlaylistLoader;for(var h in s[e])for(var f in c[h]||(c[h]=[]),s[e][h])if(!s[e][h][f].forced){var p=s[e][h][f],m=void 0;if("hls"===r)m=new No(p.resolvedUri,i,o);else if("dash"===r){var g=p.playlists.filter((function(e){return e.excludeUntil!==1/0}));if(!g.length)return;m=new bs(p.playlists[0],i,o,d)}else"vhs-json"===r&&(m=new No(p.playlists?p.playlists[0]:p.resolvedUri,i,o));if(p=xa.mergeOptions({id:f,playlistLoader:m},p),Ac[e](e,p.playlistLoader,t),c[h].push(p),"undefined"===typeof l[f]){var v=n.addRemoteTextTrack({id:f,kind:"subtitles",default:p["default"]&&p.autoselect,language:p.language,label:f},!1).track;l[f]=v}}a.on("error",Ec[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var n=t.tech,i=t.master.mediaGroups,r=t.mediaTypes[e],a=r.groups,o=r.tracks;for(var s in i[e])for(var u in a[s]||(a[s]=[]),i[e][s]){var c=i[e][s][u];if(/^(?:CC|SERVICE)/.test(c.instreamId)){var l=n.options_.vhs&&n.options_.vhs.captionServices||{},d={label:u,language:c.language,instreamId:c.instreamId,default:c["default"]&&c.autoselect};if(l[d.instreamId]&&(d=xa.mergeOptions(d,l[d.instreamId])),void 0===d["default"]&&delete d["default"],a[s].push(xa.mergeOptions({id:u},c)),"undefined"===typeof o[u]){var h=n.addRemoteTextTrack({id:d.instreamId,kind:"captions",default:d["default"],language:d.language,label:d.label},!1).track;o[u]=h}}}}},jc=function e(t,n){for(var i=0;i<t.length;i++){if(po(n,t[i]))return!0;if(t[i].playlists&&e(t[i].playlists,n))return!0}return!1},Ic=function(e,t){return function(n){var i=t.masterPlaylistLoader,r=t.mediaTypes[e].groups,a=i.media();if(!a)return null;var o=null;a.attributes[e]&&(o=r[a.attributes[e]]);var s=Object.keys(r);if(!o)if("AUDIO"===e&&s.length>1&&go(t.master))for(var u=0;u<s.length;u++){var c=r[s[u]];if(jc(c,a)){o=c;break}}else r.main?o=r.main:1===s.length&&(o=r[s[0]]);return"undefined"===typeof n?o:null!==n&&o&&o.filter((function(e){return e.id===n.id}))[0]||null}},Pc={AUDIO:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var i in n)if(n[i].enabled)return n[i];return null}},SUBTITLES:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var i in n)if("showing"===n[i].mode||"hidden"===n[i].mode)return n[i];return null}}},Lc=function(e,t){var n=t.mediaTypes;return function(){var t=n[e].activeTrack();return t?n[e].activeGroup(t):null}},Mc=function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(t){Oc[t](t,e)}));var t=e.mediaTypes,n=e.masterPlaylistLoader,i=e.tech,r=e.vhs,a=e.segmentLoaders,o=a["AUDIO"],s=a.main;["AUDIO","SUBTITLES"].forEach((function(n){t[n].activeGroup=Ic(n,e),t[n].activeTrack=Pc[n](n,e),t[n].onGroupChanged=kc(n,e),t[n].onGroupChanging=Cc(n,e),t[n].onTrackChanged=xc(n,e),t[n].getActiveGroup=Lc(n,e)}));var u=t.AUDIO.activeGroup();if(u){var c=(u.filter((function(e){return e["default"]}))[0]||u[0]).id;t.AUDIO.tracks[c].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged();var l=t.AUDIO.getActiveGroup();l.playlistLoader?(s.setAudio(!1),o.setAudio(!0)):s.setAudio(!0)}n.on("mediachange",(function(){["AUDIO","SUBTITLES"].forEach((function(e){return t[e].onGroupChanged()}))})),n.on("mediachanging",(function(){["AUDIO","SUBTITLES"].forEach((function(e){return t[e].onGroupChanging()}))}));var d=function(){t.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"}),i.trigger({type:"usage",name:"hls-audio-change"})};for(var h in i.audioTracks().addEventListener("change",d),i.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",(function(){i.audioTracks().removeEventListener("change",d),i.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)})),i.clearTracks("audio"),t.AUDIO.tracks)i.audioTracks().addTrack(t.AUDIO.tracks[h])},Dc=function(){var e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(t){e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Qu,activeTrack:Qu,getActiveGroup:Qu,onGroupChanged:Qu,onTrackChanged:Qu,lastTrack_:null,logger_:Ia("MediaGroups["+t+"]")}})),e},Rc=120,Nc=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Bc=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},Uc=function(e){var t=e.currentPlaylist,n=e.buffered,i=e.currentTime,r=e.nextPlaylist,a=e.bufferLowWaterLine,o=e.bufferHighWaterLine,s=e.duration,u=e.experimentalBufferBasedABR,c=e.log;if(!r)return xa.log.warn("We received no playlist to switch to. Please check your stream."),!1;var l="allowing switch "+(t&&t.id||"null")+" -> "+r.id;if(!t)return c(l+" as current playlist is not set"),!0;if(r.id===t.id)return!1;var d=Boolean(Da(n,i).length);if(!t.endList)return d||"number"!==typeof t.partTargetDuration?(c(l+" as current playlist is live"),!0):(c("not "+l+" as current playlist is live llhls, but currentTime isn't in buffered."),!1);var h=qa(n,i),f=u?_s.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:_s.MAX_BUFFER_LOW_WATER_LINE;if(s<f)return c(l+" as duration < max low water line ("+s+" < "+f+")"),!0;var p=r.attributes.BANDWIDTH,m=t.attributes.BANDWIDTH;if(p<m&&(!u||h<o)){var g=l+" as next bandwidth < current bandwidth ("+p+" < "+m+")";return u&&(g+=" and forwardBuffer < bufferHighWaterLine ("+h+" < "+o+")"),c(g),!0}if((!u||p>m)&&h>=a){var v=l+" as forwardBuffer >= bufferLowWaterLine ("+h+" >= "+a+")";return u&&(v+=" and next bandwidth > current bandwidth ("+p+" > "+m+")"),c(v),!0}return c("not "+l+" as no switching criteria met"),!1},Fc=function(e){function t(t){var n;n=e.call(this)||this;var i=t.src,r=t.handleManifestRedirects,o=t.withCredentials,s=t.tech,u=t.bandwidth,l=t.externVhs,d=t.useCueTags,h=t.blacklistDuration,f=t.enableLowInitialPlaylist,p=t.sourceType,m=t.cacheEncryptionKeys,g=t.experimentalBufferBasedABR,v=t.experimentalLeastPixelDiffSelector,y=t.captionServices;if(!i)throw new Error("A non-empty playlist URL or JSON manifest string is required");var b=t.maxPlaylistRetries;null!==b&&"undefined"!==typeof b||(b=1/0),Ju=l,n.experimentalBufferBasedABR=Boolean(g),n.experimentalLeastPixelDiffSelector=Boolean(v),n.withCredentials=o,n.tech_=s,n.vhs_=s.vhs,n.sourceType_=p,n.useCueTags_=d,n.blacklistDuration=h,n.maxPlaylistRetries=b,n.enableLowInitialPlaylist=f,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:o,handleManifestRedirects:r,maxPlaylistRetries:b,timeout:null},n.on("error",n.pauseLoading),n.mediaTypes_=Dc(),n.mediaSource=new a.default.MediaSource,n.handleDurationChange_=n.handleDurationChange_.bind((0,c.default)(n)),n.handleSourceOpen_=n.handleSourceOpen_.bind((0,c.default)(n)),n.handleSourceEnded_=n.handleSourceEnded_.bind((0,c.default)(n)),n.mediaSource.addEventListener("durationchange",n.handleDurationChange_),n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_),n.mediaSource.addEventListener("sourceended",n.handleSourceEnded_),n.seekable_=xa.createTimeRanges(),n.hasPlayed_=!1,n.syncController_=new vc(t),n.segmentMetadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new _c,n.sourceUpdater_=new cc(n.mediaSource),n.inbandTextTracks_={},n.timelineChangeController_=new yc;var _={vhs:n.vhs_,parse708captions:t.parse708captions,useDtsForTimestampOffset:t.useDtsForTimestampOffset,captionServices:y,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.duration()},hasPlayed:function(){return n.hasPlayed_},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:u,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:m,sourceUpdater:n.sourceUpdater_,timelineChangeController:n.timelineChangeController_,experimentalExactManifestTimings:t.experimentalExactManifestTimings};n.masterPlaylistLoader_="dash"===n.sourceType_?new bs(i,n.vhs_,n.requestOptions_):new No(i,n.vhs_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new Ku(xa.mergeOptions(_,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),t),n.audioSegmentLoader_=new Ku(xa.mergeOptions(_,{loaderType:"audio"}),t),n.subtitleSegmentLoader_=new hc(xa.mergeOptions(_,{loaderType:"vtt",featuresNativeTextTracks:n.tech_.featuresNativeTextTracks}),t),n.setupSegmentLoaderListeners_(),n.experimentalBufferBasedABR&&(n.masterPlaylistLoader_.one("loadedplaylist",(function(){return n.startABRTimer_()})),n.tech_.on("pause",(function(){return n.stopABRTimer_()})),n.tech_.on("play",(function(){return n.startABRTimer_()}))),Nc.forEach((function(e){n[e+"_"]=Bc.bind((0,c.default)(n),e)})),n.logger_=Ia("MPC"),n.triggeredFmp4Usage=!1,"none"===n.tech_.preload()?(n.loadOnPlay_=function(){n.loadOnPlay_=null,n.masterPlaylistLoader_.load()},n.tech_.one("play",n.loadOnPlay_)):n.masterPlaylistLoader_.load(),n.timeToLoadedData__=-1,n.mainAppendsToLoadedData__=-1,n.audioAppendsToLoadedData__=-1;var T="none"===n.tech_.preload()?"play":"loadstart";return n.tech_.one(T,(function(){var e=Date.now();n.tech_.one("loadeddata",(function(){n.timeToLoadedData__=Date.now()-e,n.mainAppendsToLoadedData__=n.mainSegmentLoader_.mediaAppends,n.audioAppendsToLoadedData__=n.audioSegmentLoader_.mediaAppends}))})),n}(0,l.default)(t,e);var n=t.prototype;return n.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},n.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},n.appendsToLoadedData_=function(){var e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t},n.timeToLoadedData_=function(){return this.timeToLoadedData__},n.checkABR_=function(){var e=this.selectPlaylist();e&&this.shouldSwitchToMedia_(e)&&this.switchMedia_(e,"abr")},n.switchMedia_=function(e,t,n){var i=this.media(),r=i&&(i.id||i.uri),a=e.id||e.uri;r&&r!==a&&(this.logger_("switch media "+r+" -> "+a+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,n)},n.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=a.default.setInterval((function(){return e.checkABR_()}),250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(a.default.clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var e=this.master(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;var n,i=e.mediaGroups.AUDIO,r=Object.keys(i);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)n=this.mediaTypes_.AUDIO.activeTrack();else{var a=i.main||r.length&&i[r[0]];for(var o in a)if(a[o]["default"]){n={label:o};break}}if(!n)return t;var s=[];for(var u in i)if(i[u][n.label]){var c=i[u][n.label];if(c.playlists&&c.playlists.length)s.push.apply(s,c.playlists);else if(c.uri)s.push(c);else if(e.playlists.length)for(var l=0;l<e.playlists.length;l++){var d=e.playlists[l];d.attributes&&d.attributes.AUDIO&&d.attributes.AUDIO===u&&s.push(d)}}return s.length?s:t},n.setupMasterPlaylistLoaderListeners_=function(){var e=this;this.masterPlaylistLoader_.on("loadedmetadata",(function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;fo(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,t.endList&&"none"!==e.tech_.preload()&&(e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load()),Mc({sourceType:e.sourceType_,segmentLoaders:{AUDIO:e.audioSegmentLoader_,SUBTITLES:e.subtitleSegmentLoader_,main:e.mainSegmentLoader_},tech:e.tech_,requestOptions:e.requestOptions_,masterPlaylistLoader:e.masterPlaylistLoader_,vhs:e.vhs_,master:e.master(),mediaTypes:e.mediaTypes_,blacklistCurrentPlaylist:e.blacklistCurrentPlaylist.bind(e)}),e.triggerPresenceUsage_(e.master(),t),e.setupFirstPlay(),!e.mediaTypes_.AUDIO.activePlaylistLoader||e.mediaTypes_.AUDIO.activePlaylistLoader.media()?e.trigger("selectedinitialmedia"):e.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",(function(){e.trigger("selectedinitialmedia")}))})),this.masterPlaylistLoader_.on("loadedplaylist",(function(){e.loadOnPlay_&&e.tech_.off("play",e.loadOnPlay_);var t=e.masterPlaylistLoader_.media();if(!t){var n;if(e.excludeUnsupportedVariants_(),e.enableLowInitialPlaylist&&(n=e.selectInitialPlaylist()),n||(n=e.selectPlaylist()),!n||!e.shouldSwitchToMedia_(n))return;e.initialMedia_=n,e.switchMedia_(e.initialMedia_,"initial");var i="vhs-json"===e.sourceType_&&e.initialMedia_.segments;if(!i)return;t=e.initialMedia_}e.handleUpdatedMediaPlaylist(t)})),this.masterPlaylistLoader_.on("error",(function(){e.blacklistCurrentPlaylist(e.masterPlaylistLoader_.error)})),this.masterPlaylistLoader_.on("mediachanging",(function(){e.mainSegmentLoader_.abort(),e.mainSegmentLoader_.pause()})),this.masterPlaylistLoader_.on("mediachange",(function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;fo(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load(),e.tech_.trigger({type:"mediachange",bubbles:!0})})),this.masterPlaylistLoader_.on("playlistunchanged",(function(){var t=e.masterPlaylistLoader_.media();if("playlist-unchanged"!==t.lastExcludeReason_){var n=e.stuckAtPlaylistEnd_(t);n&&(e.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),e.tech_.trigger("playliststuck"))}})),this.masterPlaylistLoader_.on("renditiondisabled",(function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})})),this.masterPlaylistLoader_.on("renditionenabled",(function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})}))},n.handleUpdatedMediaPlaylist=function(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},n.triggerPresenceUsage_=function(e,t){var n=e.mediaGroups||{},i=!0,r=Object.keys(n.AUDIO);for(var a in n.AUDIO)for(var o in n.AUDIO[a]){var s=n.AUDIO[a][o];s.uri||(i=!1)}i&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(n.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),Ju.Playlist.isAes(t)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),r.length&&Object.keys(n.AUDIO[r[0]]).length>1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},n.shouldSwitchToMedia_=function(e){var t=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pendingMedia_,n=this.tech_.currentTime(),i=this.bufferLowWaterLine(),r=this.bufferHighWaterLine(),a=this.tech_.buffered();return Uc({buffered:a,currentTime:n,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:i,bufferHighWaterLine:r,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},n.setupSegmentLoaderListeners_=function(){var e=this;this.experimentalBufferBasedABR||(this.mainSegmentLoader_.on("bandwidthupdate",(function(){var t=e.selectPlaylist();e.shouldSwitchToMedia_(t)&&e.switchMedia_(t,"bandwidthupdate"),e.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("progress",(function(){e.trigger("progress")}))),this.mainSegmentLoader_.on("error",(function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())})),this.mainSegmentLoader_.on("appenderror",(function(){e.error=e.mainSegmentLoader_.error_,e.trigger("error")})),this.mainSegmentLoader_.on("syncinfoupdate",(function(){e.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(function(){e.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),e.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(function(){e.onSyncInfoUpdate_()})),this.audioSegmentLoader_.on("appenderror",(function(){e.error=e.audioSegmentLoader_.error_,e.trigger("error")})),this.mainSegmentLoader_.on("ended",(function(){e.logger_("main segment loader ended"),e.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(function(t){e.experimentalBufferBasedABR||(e.delegateLoaders_("all",["abort"]),e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},Rc))}));var t=function(){if(!e.sourceUpdater_.hasCreatedSourceBuffers())return e.tryToCreateSourceBuffers_();var t=e.getCodecsOrExclude_();t&&e.sourceUpdater_.addOrChangeSourceBuffers(t)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",(function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("fmp4",(function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("ended",(function(){e.logger_("audioSegmentLoader ended"),e.onEndOfStream()}))},n.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},n.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},n.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},n.fastQualityChange_=function(e){var t=this;void 0===e&&(e=this.selectPlaylist()),e!==this.masterPlaylistLoader_.media()?(this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything((function(){xa.browser.IE_VERSION||xa.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())}))):this.logger_("skipping fastQualityChange because new media is same as old")},n.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}},n.setupFirstPlay=function(){var e=this,t=this.masterPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_)return!1;if(!t.endList){var n=this.seekable();if(!n.length)return!1;if(xa.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",(function(){e.trigger("firstplay"),e.tech_.setCurrentTime(n.end(0)),e.hasPlayed_=!0})),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0))}return this.hasPlayed_=!0,this.load(),!0},n.handleSourceOpen_=function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var e=this.tech_.play();"undefined"!==typeof e&&"function"===typeof e.then&&e.then(null,(function(e){}))}this.trigger("sourceopen")},n.handleSourceEnded_=function(){if(this.inbandTextTracks_.metadataTrack_){var e=this.inbandTextTracks_.metadataTrack_.cues;if(e&&e.length){var t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}}},n.handleDurationChange_=function(){this.tech_.trigger("durationchange")},n.onEndOfStream=function(){var e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},n.stuckAtPlaylistEnd_=function(e){var t=this.seekable();if(!t.length)return!1;var n=this.syncController_.getExpiredTime(e,this.duration());if(null===n)return!1;var i=Ju.Playlist.playlistEnd(e,n),r=this.tech_.currentTime(),a=this.tech_.buffered();if(!a.length)return i-r<=La;var o=a.end(a.length-1);return o-r<=La&&i-o<=La},n.blacklistCurrentPlaylist=function(e,t){void 0===e&&(e={});var n=e.playlist||this.masterPlaylistLoader_.media();if(t=t||e.blacklistDuration||this.blacklistDuration,!n)return this.error=e,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));n.playlistErrors_++;var i,r=this.masterPlaylistLoader_.master.playlists,a=r.filter(so),o=1===a.length&&a[0]===n;if(1===r.length&&t!==1/0)return xa.log.warn("Problem encountered with playlist "+n.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(o);if(o){var s=!1;r.forEach((function(e){if(e!==n){var t=e.excludeUntil;"undefined"!==typeof t&&t!==1/0&&(s=!0,delete e.excludeUntil)}})),s&&(xa.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}i=n.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*t,n.excludeUntil=i,e.reason&&(n.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var u=this.selectPlaylist();if(!u)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");var c=e.internal?this.logger_:xa.log.warn,l=e.message?" "+e.message:"";c((e.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+l+" Switching to playlist "+u.id+"."),u.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),u.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var d=u.targetDuration/2*1e3||5e3,h="number"===typeof u.lastRequest&&Date.now()-u.lastRequest<=d;return this.switchMedia_(u,"exclude",o||h)},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(e,t){var n=this,i=[],r="all"===e;(r||"main"===e)&&i.push(this.masterPlaylistLoader_);var a=[];(r||"audio"===e)&&a.push("AUDIO"),(r||"subtitle"===e)&&(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach((function(e){var t=n.mediaTypes_[e]&&n.mediaTypes_[e].activePlaylistLoader;t&&i.push(t)})),["main","audio","subtitle"].forEach((function(t){var r=n[t+"SegmentLoader_"];!r||e!==t&&"all"!==e||i.push(r)})),i.forEach((function(e){return t.forEach((function(t){"function"===typeof e[t]&&e[t]()}))}))},n.setCurrentTime=function(e){var t=Da(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},n.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:Ju.Playlist.duration(e):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var n=this.syncController_.getExpiredTime(t,this.duration());if(null!==n){var i=this.masterPlaylistLoader_.master,r=Ju.Playlist.seekable(t,n,Ju.Playlist.liveEdgeDelay(i,t));if(0!==r.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),n=this.syncController_.getExpiredTime(t,this.duration()),null===n)return;if(e=Ju.Playlist.seekable(t,n,Ju.Playlist.liveEdgeDelay(i,t)),0===e.length)return}var a,o;this.seekable_&&this.seekable_.length&&(a=this.seekable_.end(0),o=this.seekable_.start(0)),e?e.start(0)>r.end(0)||r.start(0)>e.end(0)?this.seekable_=r:this.seekable_=xa.createTimeRanges([[e.start(0)>r.start(0)?e.start(0):r.start(0),e.end(0)<r.end(0)?e.end(0):r.end(0)]]):this.seekable_=r,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===a&&this.seekable_.start(0)===o||(this.logger_("seekable updated ["+Ua(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},n.updateDuration=function(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){var t=this.seekable();if(!t.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<t.end(t.length-1))&&this.sourceUpdater_.setDuration(t.end(t.length-1))}else{var n=this.tech_.buffered(),i=Ju.Playlist.duration(this.masterPlaylistLoader_.media());n.length>0&&(i=Math.max(i,n.end(n.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}},n.dispose=function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach((function(t){var n=e.mediaTypes_[t].groups;for(var i in n)n[i].forEach((function(e){e.playlistLoader&&e.playlistLoader.dispose()}))})),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},n.master=function(){return this.masterPlaylistLoader_.master},n.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},n.areMediaTypesKnown_=function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!n)},n.getCodecsOrExclude_=function(){var e=this,t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}};t.video=t.main;var n=du(this.master(),this.media()),i={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(i.video=n.video||t.main.videoCodec||y.DEFAULT_VIDEO_CODEC),t.main.isMuxed&&(i.video+=","+(n.audio||t.main.audioCodec||y.DEFAULT_AUDIO_CODEC)),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||r)&&(i.audio=n.audio||t.main.audioCodec||t.audio.audioCodec||y.DEFAULT_AUDIO_CODEC,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),i.audio||i.video){var a,o=function(e,t){return e?(0,y.browserSupportsCodec)(t):(0,y.muxerSupportsCodec)(t)},s={};if(["video","audio"].forEach((function(e){if(i.hasOwnProperty(e)&&!o(t[e].isFmp4,i[e])){var n=t[e].isFmp4?"browser":"muxer";s[n]=s[n]||[],s[n].push(i[e]),"audio"===e&&(a=n)}})),r&&a&&this.media().attributes.AUDIO){var u=this.media().attributes.AUDIO;this.master().playlists.forEach((function(t){var n=t.attributes&&t.attributes.AUDIO;n===u&&t!==e.media()&&(t.excludeUntil=1/0)})),this.logger_("excluding audio group "+u+" as "+a+' does not support codec(s): "'+i.audio+'"')}if(!Object.keys(s).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var c=[];if(["video","audio"].forEach((function(t){var n=((0,y.parseCodecs)(e.sourceUpdater_.codecs[t]||"")[0]||{}).type,r=((0,y.parseCodecs)(i[t]||"")[0]||{}).type;n&&r&&n.toLowerCase()!==r.toLowerCase()&&c.push('"'+e.sourceUpdater_.codecs[t]+'" -> "'+i[t]+'"')})),c.length)return void this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+c.join(", ")+".",blacklistDuration:1/0,internal:!0})}return i}var l=Object.keys(s).reduce((function(e,t){return e&&(e+=", "),e+=t+' does not support codec(s): "'+s[t].join(",")+'"',e}),"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:!0,message:l,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},n.tryToCreateSourceBuffers_=function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var e=this.getCodecsOrExclude_();if(e){this.sourceUpdater_.createSourceBuffers(e);var t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}}},n.excludeUnsupportedVariants_=function(){var e=this,t=this.master().playlists,n=[];Object.keys(t).forEach((function(i){var r=t[i];if(-1===n.indexOf(r.id)){n.push(r.id);var a=du(e.master,r),o=[];!a.audio||(0,y.muxerSupportsCodec)(a.audio)||(0,y.browserSupportsCodec)(a.audio)||o.push("audio codec "+a.audio),!a.video||(0,y.muxerSupportsCodec)(a.video)||(0,y.browserSupportsCodec)(a.video)||o.push("video codec "+a.video),a.text&&"stpp.ttml.im1t"===a.text&&o.push("text codec "+a.text),o.length&&(r.excludeUntil=1/0,e.logger_("excluding "+r.id+" for unsupported: "+o.join(", ")))}}))},n.excludeIncompatibleVariants_=function(e){var t=this,n=[],i=this.master().playlists,r=cu((0,y.parseCodecs)(e)),a=lu(r),o=r.video&&(0,y.parseCodecs)(r.video)[0]||null,s=r.audio&&(0,y.parseCodecs)(r.audio)[0]||null;Object.keys(i).forEach((function(e){var r=i[e];if(-1===n.indexOf(r.id)&&r.excludeUntil!==1/0){n.push(r.id);var u=[],c=du(t.masterPlaylistLoader_.master,r),l=lu(c);if(c.audio||c.video){if(l!==a&&u.push('codec count "'+l+'" !== "'+a+'"'),!t.sourceUpdater_.canChangeType()){var d=c.video&&(0,y.parseCodecs)(c.video)[0]||null,h=c.audio&&(0,y.parseCodecs)(c.audio)[0]||null;d&&o&&d.type.toLowerCase()!==o.type.toLowerCase()&&u.push('video codec "'+d.type+'" !== "'+o.type+'"'),h&&s&&h.type.toLowerCase()!==s.type.toLowerCase()&&u.push('audio codec "'+h.type+'" !== "'+s.type+'"')}u.length&&(r.excludeUntil=1/0,t.logger_("blacklisting "+r.id+": "+u.join(" && ")))}}}))},n.updateAdCues_=function(e){var t=0,n=this.seekable();n.length&&(t=n.start(0)),pc(e,this.cueTagsTrack_,t)},n.goalBufferLength=function(){var e=this.tech_.currentTime(),t=_s.GOAL_BUFFER_LENGTH,n=_s.GOAL_BUFFER_LENGTH_RATE,i=Math.max(t,_s.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,i)},n.bufferLowWaterLine=function(){var e=this.tech_.currentTime(),t=_s.BUFFER_LOW_WATER_LINE,n=_s.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(t,_s.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,_s.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,this.experimentalBufferBasedABR?r:i)},n.bufferHighWaterLine=function(){return _s.BUFFER_HIGH_WATER_LINE},t}(xa.EventTarget),$c=function(e,t,n){return function(i){var r=e.master.playlists[t],a=oo(r),o=so(r);return"undefined"===typeof i?o:(i?delete r.disabled:r.disabled=!0,i===o||a||(n(),i?e.trigger("renditionenabled"):e.trigger("renditiondisabled")),i)}},Hc=function(e,t,n){var i=e.masterPlaylistController_,r=e.options_.smoothQualityChange,a=r?"smooth":"fast",o=i[a+"QualityChange_"].bind(i);if(t.attributes){var s=t.attributes.RESOLUTION;this.width=s&&s.width,this.height=s&&s.height,this.bandwidth=t.attributes.BANDWIDTH}this.codecs=du(i.master(),t),this.playlist=t,this.id=n,this.enabled=$c(e.playlists,t.id,o)},Vc=function(e){e.representations=function(){var t=e.masterPlaylistController_.master(),n=go(t)?e.masterPlaylistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter((function(e){return!oo(e)})).map((function(t,n){return new Hc(e,t,t.id)})):[]}},qc=["seeking","seeked","pause","playing","error"],zc=function(){function e(e){var t=this;this.masterPlaylistController_=e.masterPlaylistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=Ia("PlaybackWatcher"),this.logger_("initialize");var n=function(){return t.monitorCurrentTime_()},i=function(){return t.monitorCurrentTime_()},r=function(){return t.techWaiting_()},o=function(){return t.cancelTimer_()},s=this.masterPlaylistController_,u=["main","subtitle","audio"],c={};u.forEach((function(e){c[e]={reset:function(){return t.resetSegmentDownloads_(e)},updateend:function(){return t.checkSegmentDownloads_(e)}},s[e+"SegmentLoader_"].on("appendsdone",c[e].updateend),s[e+"SegmentLoader_"].on("playlistupdate",c[e].reset),t.tech_.on(["seeked","seeking"],c[e].reset)}));var l=function(e){["main","audio"].forEach((function(n){s[n+"SegmentLoader_"][e]("appended",t.seekingAppendCheck_)}))};this.seekingAppendCheck_=function(){t.fixesBadSeeks_()&&(t.consecutiveUpdates=0,t.lastRecordedTime=t.tech_.currentTime(),l("off"))},this.clearSeekingAppendCheck_=function(){return l("off")},this.watchForBadSeeking_=function(){t.clearSeekingAppendCheck_(),l("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",r),this.tech_.on(qc,o),this.tech_.on("canplay",i),this.tech_.one("play",n),this.dispose=function(){t.clearSeekingAppendCheck_(),t.logger_("dispose"),t.tech_.off("waiting",r),t.tech_.off(qc,o),t.tech_.off("canplay",i),t.tech_.off("play",n),t.tech_.off("seeking",t.watchForBadSeeking_),t.tech_.off("seeked",t.clearSeekingAppendCheck_),u.forEach((function(e){s[e+"SegmentLoader_"].off("appendsdone",c[e].updateend),s[e+"SegmentLoader_"].off("playlistupdate",c[e].reset),t.tech_.off(["seeked","seeking"],c[e].reset)})),t.checkCurrentTimeTimeout_&&a.default.clearTimeout(t.checkCurrentTimeTimeout_),t.cancelTimer_()}}var t=e.prototype;return t.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&a.default.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=a.default.setTimeout(this.monitorCurrentTime_.bind(this),250)},t.resetSegmentDownloads_=function(e){var t=this.masterPlaylistController_[e+"SegmentLoader_"];this[e+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+e+" loader"),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()},t.checkSegmentDownloads_=function(e){var t=this.masterPlaylistController_,n=t[e+"SegmentLoader_"],i=n.buffered_(),r=Ha(this[e+"Buffered_"],i);this[e+"Buffered_"]=i,r?this.resetSegmentDownloads_(e):(this[e+"StalledDownloads_"]++,this.logger_("found #"+this[e+"StalledDownloads_"]+" "+e+" appends that did not increase buffer (possible stalled download)",{playlistId:n.playlist_&&n.playlist_.id,buffered:$a(i)}),this[e+"StalledDownloads_"]<10||(this.logger_(e+" loader stalled download exclusion"),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:"vhs-"+e+"-download-exclusion"}),"subtitle"!==e&&t.blacklistCurrentPlaylist({message:"Excessive "+e+" segment downloading detected."},1/0)))},t.checkCurrentTime_=function(){if(!this.tech_.paused()&&!this.tech_.seeking()){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+La>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){var e=this.tech_.seeking();if(!e)return!1;var t,n=this.seekable(),i=this.tech_.currentTime(),r=this.afterSeekableWindow_(n,i,this.media(),this.allowSeeksWithinUnsafeLiveWindow);if(r){var a=n.end(n.length-1);t=a}if(this.beforeSeekableWindow_(n,i)){var o=n.start(0);t=o+(o===n.end(0)?0:La)}if("undefined"!==typeof t)return this.logger_("Trying to seek outside of seekable at time "+i+" with seekable range "+Ua(n)+". Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0;for(var s=this.masterPlaylistController_.sourceUpdater_,u=this.tech_.buffered(),c=s.audioBuffer?s.audioBuffered():null,l=s.videoBuffer?s.videoBuffered():null,d=this.media(),h=d.partTargetDuration?d.partTargetDuration:2*(d.targetDuration-Pa),f=[c,l],p=0;p<f.length;p++)if(f[p]){var m=qa(f[p],i);if(m<h)return!1}var g=Ra(u,i);return 0!==g.length&&(t=g.start(0)+La,this.logger_("Buffered region starts ("+g.start(0)+") just beyond seek point ("+i+"). Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0)},t.waiting_=function(){if(!this.techWaiting_()){var e=this.tech_.currentTime(),t=this.tech_.buffered(),n=Da(t,e);return n.length&&e+3<=n.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(e),this.logger_("Stopped at "+e+" while inside a buffered region ["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}},t.techWaiting_=function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var n=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var i=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,r=this.tech_.buffered(),a=this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:t});if(a)return this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var o=Ra(r,t);if(o.length>0){var s=o.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+s+", seeking to "+o.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*s,t),!0}return!1},t.afterSeekableWindow_=function(e,t,n,i){if(void 0===i&&(i=!1),!e.length)return!1;var r=e.end(e.length-1)+La,a=!n.endList;return a&&i&&(r=e.end(e.length-1)+3*n.targetDuration),t>r},t.beforeSeekableWindow_=function(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)},t.videoUnderflow_=function(e){var t=e.videoBuffered,n=e.audioBuffered,i=e.currentTime;if(t){var r;if(t.length&&n.length){var a=Da(t,i-3),o=Da(t,i),s=Da(n,i);s.length&&!o.length&&a.length&&(r={start:a.end(0),end:s.end(0)})}else{var u=Ra(t,i);u.length||(r=this.gapFromVideoUnderflow_(t,i))}return!!r&&(this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". Seeking to current time "+i),!0)}},t.skipTheGap_=function(e){var t=this.tech_.buffered(),n=this.tech_.currentTime(),i=Ra(t,n);this.cancelTimer_(),0!==i.length&&n===e&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",i.start(0)),this.tech_.setCurrentTime(i.start(0)+Pa),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},t.gapFromVideoUnderflow_=function(e,t){for(var n=Na(e),i=0;i<n.length;i++){var r=n.start(i),a=n.end(i);if(t-r<4&&t-r>2)return{start:r,end:a}}return null},e}(),Wc={errorInterval:30,getSource:function(e){var t=this.tech({IWillNotUseThisInPlugins:!0}),n=t.currentSource_||this.currentSource();return e(n)}},Gc=function e(t,n){var i=0,r=0,a=xa.mergeOptions(Wc,n);t.ready((function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"}),t.trigger({type:"usage",name:"hls-error-reload-initialized"})}));var o=function(){r&&t.currentTime(r)},s=function(e){null!==e&&void 0!==e&&(r=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",o),t.src(e),t.trigger({type:"usage",name:"vhs-error-reload"}),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},u=function(){return Date.now()-i<1e3*a.errorInterval?(t.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void t.trigger({type:"usage",name:"hls-error-reload-canceled"})):a.getSource&&"function"===typeof a.getSource?(i=Date.now(),a.getSource.call(t,s)):void xa.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},c=function e(){t.off("loadedmetadata",o),t.off("error",u),t.off("dispose",e)},l=function(n){c(),e(t,n)};t.on("error",u),t.on("dispose",c),t.reloadSourceOnError=l},Yc=function(e){Gc(this,e)},Xc="2.14.3",Kc="6.0.1",Qc="0.21.1",Jc="4.7.1",Zc="3.1.3",el={PlaylistLoader:No,Playlist:vo,utils:Zo,STANDARD_PLAYLIST_SELECTOR:bu,INITIAL_PLAYLIST_SELECTOR:wu,lastBandwidthSelector:bu,movingAverageBandwidthSelector:_u,comparePlaylistBandwidth:gu,comparePlaylistResolution:vu,xhr:$o()};Object.keys(_s).forEach((function(e){Object.defineProperty(el,e,{get:function(){return xa.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),_s[e]},set:function(t){xa.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!==typeof t||t<0?xa.log.warn("value of Vhs."+e+" must be greater than or equal to 0"):_s[e]=t}})}));var tl="videojs-vhs",nl=function(e,t){for(var n=t.media(),i=-1,r=0;r<e.length;r++)if(e[r].id===n.id){i=r;break}e.selectedIndex_=i,e.trigger({selectedIndex:i,type:"change"})},il=function(e,t){t.representations().forEach((function(t){e.addQualityLevel(t)})),nl(e,t.playlists)};el.canPlaySource=function(){return xa.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var rl=function(e,t,n){if(!e)return e;var i={};t&&t.attributes&&t.attributes.CODECS&&(i=cu((0,y.parseCodecs)(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(i.audio=n.attributes.CODECS);var r=(0,y.getMimeForCodec)(i.video),a=(0,y.getMimeForCodec)(i.audio),o={};for(var s in e)o[s]={},a&&(o[s].audioContentType=a),r&&(o[s].videoContentType=r),t.contentProtection&&t.contentProtection[s]&&t.contentProtection[s].pssh&&(o[s].pssh=t.contentProtection[s].pssh),"string"===typeof e[s]&&(o[s].url=e[s]);return xa.mergeOptions(e,o)},al=function(e,t){return e.reduce((function(e,n){if(!n.contentProtection)return e;var i=t.reduce((function(e,t){var i=n.contentProtection[t];return i&&i.pssh&&(e[t]={pssh:i.pssh}),e}),{});return Object.keys(i).length&&e.push(i),e}),[])},ol=function(e){var t=e.player,n=e.sourceKeySystems,i=e.audioMedia,r=e.mainPlaylists;if(!t.eme.initializeMediaKeys)return Promise.resolve();var a=i?r.concat([i]):r,o=al(a,Object.keys(n)),s=[],u=[];return o.forEach((function(e){u.push(new Promise((function(e,n){t.tech_.one("keysessioncreated",e)}))),s.push(new Promise((function(n,i){t.eme.initializeMediaKeys({keySystems:e},(function(e){e?i(e):n()}))})))})),Promise.race([Promise.all(s),Promise.race(u)])},sl=function(e){var t=e.player,n=e.sourceKeySystems,i=e.media,r=e.audioMedia,a=rl(n,i,r);return!!a&&(t.currentSource().keySystems=a,!(a&&!t.eme)||(xa.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},ul=function(){if(!a.default.localStorage)return null;var e=a.default.localStorage.getItem(tl);if(!e)return null;try{return JSON.parse(e)}catch(t){return null}},cl=function(e){if(!a.default.localStorage)return!1;var t=ul();t=t?xa.mergeOptions(t,e):e;try{a.default.localStorage.setItem(tl,JSON.stringify(t))}catch(n){return!1}return t},ll=function(e){return 0===e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e};el.supportsNativeHls=function(){if(!o.default||!o.default.createElement)return!1;var e=o.default.createElement("video");if(!xa.getTech("Html5").isSupported())return!1;var t=["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"];return t.some((function(t){return/maybe|probably/i.test(e.canPlayType(t))}))}(),el.supportsNativeDash=function(){return!!(o.default&&o.default.createElement&&xa.getTech("Html5").isSupported())&&/maybe|probably/i.test(o.default.createElement("video").canPlayType("application/dash+xml"))}(),el.supportsTypeNatively=function(e){return"hls"===e?el.supportsNativeHls:"dash"===e&&el.supportsNativeDash},el.isSupported=function(){return xa.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var dl=xa.getComponent("Component"),hl=function(e){function t(t,n,i){var r;if(r=e.call(this,n,xa.mergeOptions(i.hls,i.vhs))||this,i.hls&&Object.keys(i.hls).length&&xa.log.warn("Using hls options is deprecated. Please rename `hls` to `vhs` in your options object."),"number"===typeof i.initialBandwidth&&(r.options_.bandwidth=i.initialBandwidth),r.logger_=Ia("VhsHandler"),n.options_&&n.options_.playerId){var a=xa(n.options_.playerId);a.hasOwnProperty("hls")||Object.defineProperty(a,"hls",{get:function(){return xa.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"hls-player-access"}),(0,c.default)(r)},configurable:!0}),a.hasOwnProperty("vhs")||Object.defineProperty(a,"vhs",{get:function(){return xa.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"vhs-player-access"}),(0,c.default)(r)},configurable:!0}),a.hasOwnProperty("dash")||Object.defineProperty(a,"dash",{get:function(){return xa.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),(0,c.default)(r)},configurable:!0}),r.player_=a}if(r.tech_=n,r.source_=t,r.stats={},r.ignoreNextSeekingEvent_=!1,r.setOptions_(),r.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return r.on(o.default,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(function(e){var t=o.default.fullscreenElement||o.default.webkitFullscreenElement||o.default.mozFullScreenElement||o.default.msFullscreenElement;t&&t.contains(r.tech_.el())?r.masterPlaylistController_.fastQualityChange_():r.masterPlaylistController_.checkABR_()})),r.on(r.tech_,"seeking",(function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())})),r.on(r.tech_,"error",(function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()})),r.on(r.tech_,"play",r.play),r}(0,l.default)(t,e);var n=t.prototype;return n.setOptions_=function(){var e=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=!1!==this.options_.handleManifestRedirects,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage="undefined"!==typeof this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!==typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!==typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var t=ul();t&&t.bandwidth&&(this.options_.bandwidth=t.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),t&&t.throughput&&(this.options_.throughput=t.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!==typeof this.options_.bandwidth&&(this.options_.bandwidth=_s.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===_s.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","useNetworkInformationApi","useDtsForTimestampOffset","experimentalExactManifestTimings","experimentalLeastPixelDiffSelector"].forEach((function(t){"undefined"!==typeof e.source_[t]&&(e.options_[t]=e.source_[t])})),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},n.src=function(e,t){var n=this;if(e){this.setOptions_(),this.options_.src=ll(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=el,this.options_.sourceType=(0,b.simpleTypeFromSourceType)(t),this.options_.seekTo=function(e){n.tech_.setCurrentTime(e)},this.options_.smoothQualityChange&&xa.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new Fc(this.options_);var i=xa.mergeOptions({liveRangeSafeTimeDelta:La},this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new zc(i),this.masterPlaylistController_.on("error",(function(){var e=xa.players[n.tech_.options_.playerId],t=n.masterPlaylistController_.error;"object"!==typeof t||t.code?"string"===typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)}));var r=this.options_.experimentalBufferBasedABR?el.movingAverageBandwidthSelector(.55):el.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):r.bind(this),this.masterPlaylistController_.selectInitialPlaylist=el.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){var e=this.masterPlaylistController_.mainSegmentLoader_.bandwidth,t=a.default.navigator.connection||a.default.navigator.mozConnection||a.default.navigator.webkitConnection,n=1e7;if(this.options_.useNetworkInformationApi&&t){var i=1e3*t.downlink*1e3;e=i>=n&&e>=n?Math.max(e,i):i}return e},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e,t=1/(this.bandwidth||1);e=this.throughput>0?1/this.throughput:0;var n=Math.floor(1/(t+e));return n},set:function(){xa.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return $a(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return $a(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",(function(){n.options_.useBandwidthFromLocalStorage&&cl({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})})),this.masterPlaylistController_.on("selectedinitialmedia",(function(){Vc(n)})),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",(function(){n.setupEme_()})),this.on(this.masterPlaylistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.masterPlaylistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=a.default.URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},n.createKeySessions_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),ol({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.master.playlists}).then((function(){e.logger_("created EME key session"),e.masterPlaylistController_.sourceUpdater_.initializedEme()}))["catch"]((function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media keys for EME",code:3})}))},n.handleWaitingForKey_=function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()},n.setupEme_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,n=sl({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});this.player_.tech_.on("keystatuschange",(function(t){if("output-restricted"===t.status){var n=e.masterPlaylistController_.master();if(n&&n.playlists){var i,r=[];if(n.playlists.forEach((function(e){e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height>=720&&(!e.excludeUntil||e.excludeUntil<1/0)&&(e.excludeUntil=1/0,r.push(e))})),r.length)(i=xa.log).warn.apply(i,['DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.'].concat(r)),e.masterPlaylistController_.fastQualityChange_()}}})),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),11!==xa.browser.IE_VERSION&&n?this.createKeySessions_():this.masterPlaylistController_.sourceUpdater_.initializedEme()},n.setupQualityLevels_=function(){var e=this,t=xa.players[this.tech_.options_.playerId];t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",(function(){il(e.qualityLevels_,e)})),this.playlists.on("mediachange",(function(){nl(e.qualityLevels_,e.playlists)})))},t.version=function(){return{"@videojs/http-streaming":Xc,"mux.js":Kc,"mpd-parser":Qc,"m3u8-parser":Jc,"aes-decrypter":Zc}},n.version=function(){return this.constructor.version()},n.canChangeType=function(){return cc.canChangeType()},n.play=function(){this.masterPlaylistController_.play()},n.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},n.duration=function(){return this.masterPlaylistController_.duration()},n.seekable=function(){return this.masterPlaylistController_.seekable()},n.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&a.default.URL.revokeObjectURL&&(a.default.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),e.prototype.dispose.call(this)},n.convertToProgramTime=function(e,t){return ss({playlist:this.masterPlaylistController_.media(),time:e,callback:t})},n.seekToProgramTime=function(e,t,n,i){return void 0===n&&(n=!0),void 0===i&&(i=2),us({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:i,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},t}(dl),fl={name:"videojs-http-streaming",VERSION:Xc,canHandleSource:function(e,t){void 0===t&&(t={});var n=xa.mergeOptions(xa.options,t);return fl.canPlayType(e.type,n)},handleSource:function(e,t,n){void 0===n&&(n={});var i=xa.mergeOptions(xa.options,n);return t.vhs=new hl(e,t,i),xa.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return xa.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=$o(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){void 0===t&&(t={});var n=xa.mergeOptions(xa.options,t),i=n.vhs;i=void 0===i?{}:i;var r=i.overrideNative,a=void 0===r?!xa.browser.IS_ANY_SAFARI:r,o=n.hls;o=void 0===o?{}:o;var s=o.overrideNative,u=void 0!==s&&s,c=(0,b.simpleTypeFromSourceType)(e),l=c&&(!el.supportsTypeNatively(c)||u||a);return l?"maybe":""}},pl=function(){return(0,y.browserSupportsCodec)("avc1.4d400d,mp4a.40.2")};if(pl()&&xa.getTech("Html5").registerSourceHandler(fl,0),xa.VhsHandler=hl,Object.defineProperty(xa,"HlsHandler",{get:function(){return xa.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),hl},configurable:!0}),xa.VhsSourceHandler=fl,Object.defineProperty(xa,"HlsSourceHandler",{get:function(){return xa.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),fl},configurable:!0}),xa.Vhs=el,Object.defineProperty(xa,"Hls",{get:function(){return xa.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),el},configurable:!0}),xa.use||(xa.registerComponent("Hls",el),xa.registerComponent("Vhs",el)),xa.options.vhs=xa.options.vhs||{},xa.options.hls=xa.options.hls||{},!xa.getPlugin||!xa.getPlugin("reloadSourceOnError")){var ml=xa.registerPlugin||xa.plugin;ml("reloadSourceOnError",Yc)}var gl=xa;t.default=gl}).call(this,n("c8ba"))},"614c":function(e,t,n){"use strict";var i=n("4ea4");n("99af"),n("4160"),n("c975"),n("d81d"),n("13d5"),n("fb6a"),n("ace4"),n("b64b"),n("d3b7"),n("acd8"),n("e25e"),n("4d63"),n("ac1f"),n("25f0"),n("466d"),n("5319"),n("1276"),n("498a"),n("fb2c"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.ParseStream=t.LineStream=void 0;var r=i(n("55b5")),a=i(n("5a9b")),o=i(n("a559")),s=i(n("3c96")),u=i(n("7fcd")),c=function(e){function t(){var t;return t=e.call(this)||this,t.buffer="",t}(0,r.default)(t,e);var n=t.prototype;return n.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(a.default);t.LineStream=c;var l=String.fromCharCode(9),d=function(e){var t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),n={};return t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),n},h=function(){var e="[^=]*",t='"[^"]*"|[^,]*',n="(?:"+e+")=(?:"+t+")";return new RegExp("(?:^|,)("+n+")")},f=function(e){var t,n=e.split(h()),i={},r=n.length;while(r--)""!==n[r]&&(t=/([^=]*)=(.*)/.exec(n[r]).slice(1),t[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),i[t[0]]=t[1]);return i},p=function(e){function t(){var t;return t=e.call(this)||this,t.customParsers=[],t.tagMappers=[],t}(0,r.default)(t,e);var n=t.prototype;return n.push=function(e){var t,n,i=this;if(e=e.trim(),0!==e.length)if("#"===e[0]){var r=this.tagMappers.reduce((function(t,n){var i=n(e);return i===e?t:t.concat([i])}),[e]);r.forEach((function(e){for(var r=0;r<i.customParsers.length;r++)if(i.customParsers[r].call(i,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e),t)i.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void i.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void i.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(e),t)return n=(0,o.default)(d(t[1]),{type:"tag",tagType:"byterange"}),void i.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e),t)return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-MAP:?(.*)$/.exec(e),t){if(n={type:"tag",tagType:"map"},t[1]){var a=f(t[1]);a.URI&&(n.uri=a.URI),a.BYTERANGE&&(n.byterange=d(a.BYTERANGE))}i.trigger("data",n)}else if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e),t){if(n={type:"tag",tagType:"stream-inf"},t[1]){if(n.attributes=f(t[1]),n.attributes.RESOLUTION){var s=n.attributes.RESOLUTION.split("x"),u={};s[0]&&(u.width=parseInt(s[0],10)),s[1]&&(u.height=parseInt(s[1],10)),n.attributes.RESOLUTION=u}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}i.trigger("data",n)}else{if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e),t)return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=f(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e),t)i.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e),t)i.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e),t)return n={type:"tag",tagType:"program-date-time"},t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-KEY:?(.*)$/.exec(e),t)return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=f(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void i.trigger("data",n);if(t=/^#EXT-X-START:?(.*)$/.exec(e),t)return n={type:"tag",tagType:"start"},t[1]&&(n.attributes=f(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void i.trigger("data",n);if(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if(t=/^#EXT-X-SKIP:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"skip"},n.attributes=f(t[1]),n.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(n.attributes["SKIPPED-SEGMENTS"]=parseInt(n.attributes["SKIPPED-SEGMENTS"],10)),n.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(n.attributes["RECENTLY-REMOVED-DATERANGES"]=n.attributes["RECENTLY-REMOVED-DATERANGES"].split(l)),void i.trigger("data",n);if(t=/^#EXT-X-PART:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"part"},n.attributes=f(t[1]),["DURATION"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["INDEPENDENT","GAP"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))})),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=d(n.attributes.BYTERANGE)),void i.trigger("data",n);if(t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"server-control"},n.attributes=f(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))})),void i.trigger("data",n);if(t=/^#EXT-X-PART-INF:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"part-inf"},n.attributes=f(t[1]),["PART-TARGET"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),void i.trigger("data",n);if(t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"preload-hint"},n.attributes=f(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach((function(e){if(n.attributes.hasOwnProperty(e)){n.attributes[e]=parseInt(n.attributes[e],10);var t="BYTERANGE-LENGTH"===e?"length":"offset";n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[t]=n.attributes[e],delete n.attributes[e]}})),void i.trigger("data",n);if(t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"rendition-report"},n.attributes=f(t[1]),["LAST-MSN","LAST-PART"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))})),void i.trigger("data",n);i.trigger("data",{type:"tag",data:e.slice(4)})}}}else i.trigger("data",{type:"comment",text:e.slice(1)})}))}else this.trigger("data",{type:"uri",uri:e})},n.addParser=function(e){var t=this,n=e.expression,i=e.customType,r=e.dataParser,a=e.segment;"function"!==typeof r&&(r=function(e){return e}),this.customParsers.push((function(e){var o=n.exec(e);if(o)return t.trigger("data",{type:"custom",data:r(e),customType:i,segment:a}),!0}))},n.addTagMapper=function(e){var t=e.expression,n=e.map,i=function(e){return t.test(e)?n(e):e};this.tagMappers.push(i)},t}(a.default);t.ParseStream=p;var m=function(e){return e.toLowerCase().replace(/-(\w)/g,(function(e){return e[1].toUpperCase()}))},g=function(e){var t={};return Object.keys(e).forEach((function(n){t[m(n)]=e[n]})),t},v=function(e){var t=e.serverControl,n=e.targetDuration,i=e.partTargetDuration;if(t){var r="#EXT-X-SERVER-CONTROL",a="holdBack",o="partHoldBack",s=n&&3*n,u=i&&2*i;n&&!t.hasOwnProperty(a)&&(t[a]=s,this.trigger("info",{message:r+" defaulting HOLD-BACK to targetDuration * 3 ("+s+")."})),s&&t[a]<s&&(this.trigger("warn",{message:r+" clamping HOLD-BACK ("+t[a]+") to targetDuration * 3 ("+s+")"}),t[a]=s),i&&!t.hasOwnProperty(o)&&(t[o]=3*i,this.trigger("info",{message:r+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+t[o]+")."})),i&&t[o]<u&&(this.trigger("warn",{message:r+" clamping PART-HOLD-BACK ("+t[o]+") to partTargetDuration * 2 ("+u+")."}),t[o]=u)}},y=function(e){function t(){var t;t=e.call(this)||this,t.lineStream=new c,t.parseStream=new p,t.lineStream.pipe(t.parseStream);var n,i,r=(0,s.default)(t),a=[],l={},d=!1,h=function(){},f={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},m="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",y=0;t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var b=0,_=0;return t.on("end",(function(){l.uri||!l.parts&&!l.preloadHints||(!l.map&&n&&(l.map=n),!l.key&&i&&(l.key=i),l.timeline||"number"!==typeof y||(l.timeline=y),t.manifest.preloadSegment=l)})),t.parseStream.on("data",(function(e){var t,s;({tag:function(){({version:function(){e.version&&(this.manifest.version=e.version)},"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var t={};"length"in e&&(l.byterange=t,t.length=e.length,"offset"in e||(e.offset=b)),"offset"in e&&(l.byterange=t,t.offset=e.offset),b=t.offset+t.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"})),e.duration>0&&(l.duration=e.duration),0===e.duration&&(l.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=a},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if("com.microsoft.playready"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI});if(e.attributes.KEYFORMAT===m){var t=["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"];return-1===t.indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:(0,u.default)(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},"undefined"!==typeof e.attributes.IV&&(i.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else i=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,y=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){n={},e.uri&&(n.uri=e.uri),e.byterange&&(n.byterange=e.byterange),i&&(n.key=i)},"stream-inf":function(){this.manifest.playlists=a,this.manifest.mediaGroups=this.manifest.mediaGroups||f,e.attributes?(l.attributes||(l.attributes={}),(0,o.default)(l.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||f,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var n=this.manifest.mediaGroups[e.attributes.TYPE];n[e.attributes["GROUP-ID"]]=n[e.attributes["GROUP-ID"]]||{},t=n[e.attributes["GROUP-ID"]],s={default:/yes/i.test(e.attributes.DEFAULT)},s.default?s.autoselect=!0:s.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(s.language=e.attributes.LANGUAGE),e.attributes.URI&&(s.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(s.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(s.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(s.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=s}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){y+=1,l.discontinuity=!0,this.manifest.discontinuityStarts.push(a.length)},"program-date-time":function(){"undefined"===typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),l.dateTimeString=e.dateTimeString,l.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,v.call(this,this.manifest))},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){l.cueOut=e.data},"cue-out-cont":function(){l.cueOutCont=e.data},"cue-in":function(){l.cueIn=e.data},skip:function(){this.manifest.skip=g(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part:function(){var t=this;d=!0;var n=this.manifest.segments.length,i=g(e.attributes);l.parts=l.parts||[],l.parts.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=_),_=i.byterange.offset+i.byterange.length);var r=l.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+r+" for segment #"+n,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(e,n){e.hasOwnProperty("lastPart")||t.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+n+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var t=this.manifest.serverControl=g(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),v.call(this,this.manifest),t.canSkipDateranges&&!t.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 t=this.manifest.segments.length,n=g(e.attributes),i=n.type&&"PART"===n.type;l.preloadHints=l.preloadHints||[],l.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=i?_:0,i&&(_=n.byterange.offset+n.byterange.length)));var r=l.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t,e.attributes,["TYPE","URI"]),n.type)for(var a=0;a<l.preloadHints.length-1;a++){var o=l.preloadHints[a];o.type&&(o.type===n.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t+" has the same TYPE "+n.type+" as preload hint #"+a}))}},"rendition-report":function(){var t=g(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);var n=this.manifest.renditionReports.length-1,i=["LAST-MSN","URI"];d&&i.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+n,e.attributes,i)},"part-inf":function(){this.manifest.partInf=g(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),v.call(this,this.manifest)}}[e.tagType]||h).call(r)},uri:function(){l.uri=e.uri,a.push(l),this.manifest.targetDuration&&!("duration"in l)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),l.duration=this.manifest.targetDuration),i&&(l.key=i),l.timeline=y,n&&(l.map=n),_=0,l={}},comment:function(){},custom:function(){e.segment?(l.custom=l.custom||{},l.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(r)})),t}(0,r.default)(t,e);var n=t.prototype;return n.warnOnMissingAttributes_=function(e,t,n){var i=[];n.forEach((function(e){t.hasOwnProperty(e)||i.push(e)})),i.length&&this.trigger("warn",{message:e+" lacks required attribute(s): "+i.join(", ")})},n.push=function(e){this.lineStream.push(e)},n.end=function(){this.lineStream.push("\n"),this.trigger("end")},n.addParser=function(e){this.parseStream.addParser(e)},n.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(a.default);t.Parser=y},"621a":function(e,t,n){"use strict";var i=n("da84"),r=n("83ab"),a=n("a981"),o=n("9112"),s=n("e2cc"),u=n("d039"),c=n("19aa"),l=n("a691"),d=n("50c4"),h=n("0b25"),f=n("77a7"),p=n("e163"),m=n("d2bb"),g=n("241c").f,v=n("9bf2").f,y=n("81d5"),b=n("d44e"),_=n("69f3"),T=_.get,w=_.set,S="ArrayBuffer",k="DataView",C="prototype",x="Wrong length",E="Wrong index",A=i[S],O=A,j=i[k],I=j&&j[C],P=Object.prototype,L=i.RangeError,M=f.pack,D=f.unpack,R=function(e){return[255&e]},N=function(e){return[255&e,e>>8&255]},B=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},U=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},F=function(e){return M(e,23,4)},$=function(e){return M(e,52,8)},H=function(e,t){v(e[C],t,{get:function(){return T(this)[t]}})},V=function(e,t,n,i){var r=h(n),a=T(e);if(r+t>a.byteLength)throw L(E);var o=T(a.buffer).bytes,s=r+a.byteOffset,u=o.slice(s,s+t);return i?u:u.reverse()},q=function(e,t,n,i,r,a){var o=h(n),s=T(e);if(o+t>s.byteLength)throw L(E);for(var u=T(s.buffer).bytes,c=o+s.byteOffset,l=i(+r),d=0;d<t;d++)u[c+d]=l[a?d:t-d-1]};if(a){if(!u((function(){A(1)}))||!u((function(){new A(-1)}))||u((function(){return new A,new A(1.5),new A(NaN),A.name!=S}))){O=function(e){return c(this,O),new A(h(e))};for(var z,W=O[C]=A[C],G=g(A),Y=0;G.length>Y;)(z=G[Y++])in O||o(O,z,A[z]);W.constructor=O}m&&p(I)!==P&&m(I,P);var X=new j(new O(2)),K=I.setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||s(I,{setInt8:function(e,t){K.call(this,e,t<<24>>24)},setUint8:function(e,t){K.call(this,e,t<<24>>24)}},{unsafe:!0})}else O=function(e){c(this,O,S);var t=h(e);w(this,{bytes:y.call(new Array(t),0),byteLength:t}),r||(this.byteLength=t)},j=function(e,t,n){c(this,j,k),c(e,O,k);var i=T(e).byteLength,a=l(t);if(a<0||a>i)throw L("Wrong offset");if(n=void 0===n?i-a:d(n),a+n>i)throw L(x);w(this,{buffer:e,byteLength:n,byteOffset:a}),r||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},r&&(H(O,"byteLength"),H(j,"buffer"),H(j,"byteLength"),H(j,"byteOffset")),s(j[C],{getInt8:function(e){return V(this,1,e)[0]<<24>>24},getUint8:function(e){return V(this,1,e)[0]},getInt16:function(e){var t=V(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=V(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return U(V(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return U(V(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return D(V(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return D(V(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){q(this,1,e,R,t)},setUint8:function(e,t){q(this,1,e,R,t)},setInt16:function(e,t){q(this,2,e,N,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){q(this,2,e,N,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){q(this,4,e,B,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){q(this,4,e,B,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){q(this,4,e,F,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){q(this,8,e,$,t,arguments.length>2?arguments[2]:void 0)}});b(O,S),b(j,k),e.exports={ArrayBuffer:O,DataView:j}},"649e":function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").some,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("some",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},6547:function(e,t,n){var i=n("a691"),r=n("1d80"),a=function(e){return function(t,n){var a,o,s=String(r(t)),u=i(n),c=s.length;return u<0||u>=c?e?"":void 0:(a=s.charCodeAt(u),a<55296||a>56319||u+1===c||(o=s.charCodeAt(u+1))<56320||o>57343?e?s.charAt(u):a:e?s.slice(u,u+2):o-56320+(a-55296<<10)+65536)}};e.exports={codeAt:a(!1),charAt:a(!0)}},6566:function(e,t,n){"use strict";var i=n("9bf2").f,r=n("7c73"),a=n("e2cc"),o=n("0366"),s=n("19aa"),u=n("2266"),c=n("7dd0"),l=n("2626"),d=n("83ab"),h=n("f183").fastKey,f=n("69f3"),p=f.set,m=f.getterFor;e.exports={getConstructor:function(e,t,n,c){var l=e((function(e,i){s(e,l,t),p(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=i&&u(i,e[c],e,n)})),f=m(t),g=function(e,t,n){var i,r,a=f(e),o=v(e,t);return o?o.value=n:(a.last=o={index:r=h(t,!0),key:t,value:n,previous:i=a.last,next:void 0,removed:!1},a.first||(a.first=o),i&&(i.next=o),d?a.size++:e.size++,"F"!==r&&(a.index[r]=o)),e},v=function(e,t){var n,i=f(e),r=h(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==t)return n};return a(l.prototype,{clear:function(){var e=this,t=f(e),n=t.index,i=t.first;while(i)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,n=f(t),i=v(t,e);if(i){var r=i.next,a=i.previous;delete n.index[i.index],i.removed=!0,a&&(a.next=r),r&&(r.previous=a),n.first==i&&(n.first=r),n.last==i&&(n.last=a),d?n.size--:t.size--}return!!i},forEach:function(e){var t,n=f(this),i=o(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){i(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!v(this,e)}}),a(l.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),d&&i(l.prototype,"size",{get:function(){return f(this).size}}),l},setStrong:function(e,t,n){var i=t+" Iterator",r=m(t),a=m(i);c(e,t,(function(e,t){p(this,{type:i,target:e,state:r(e),kind:t,last:void 0})}),(function(){var e=a(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},"65f0":function(e,t,n){var i=n("861d"),r=n("e8b5"),a=n("b622"),o=a("species");e.exports=function(e,t){var n;return r(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!r(n.prototype)?i(n)&&(n=n[o],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"67b7":function(e,t){var n,i,r,a,o,s,u,c=9e4;n=function(e){return e*c},i=function(e,t){return e*t},r=function(e){return e/c},a=function(e,t){return e/t},o=function(e,t){return n(a(e,t))},s=function(e,t){return i(r(e),t)},u=function(e,t,n){return r(n?e:e-t)},e.exports={ONE_SECOND_IN_TS:c,secondsToVideoTs:n,secondsToAudioTs:i,videoTsToSeconds:r,audioTsToSeconds:a,audioTsToVideoTs:o,videoTsToAudioTs:s,metadataTsToSeconds:u}},"67be":function(e,t){function n(e){if(e&&"object"===typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"===typeof e)return o[e];var n=String(e),a=i[n.toLowerCase()];if(a)return a;a=r[n.toLowerCase()];return a||(1===n.length?n.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"===typeof e){var n=e.which||e.keyCode||e.charCode;if(null===n||void 0===n)return!1;if("string"===typeof t){var a=i[t.toLowerCase()];if(a)return a===n;a=r[t.toLowerCase()];if(a)return a===n}else if("number"===typeof t)return t===n;return!1}},t=e.exports=n;var i=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.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};
  4. /*!
  5. * Programatically add the following
  6. */
  7. for(a=97;a<123;a++)i[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)i[a-48]=a;for(a=1;a<13;a++)i["f"+a]=a+111;for(a=0;a<10;a++)i["numpad "+a]=a+96;var o=t.names=t.title={};for(a in i)o[i[a]]=a;for(var s in r)i[s]=r[s]},"680e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getId3Offset=t.getId3Size=void 0;var i=n("0f2d"),r=(0,i.toUint8)([73,68,51]),a=function(e,t){void 0===t&&(t=0),e=(0,i.toUint8)(e);var n=e[t+5],r=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],a=(16&n)>>4;return a?r+20:r+10};t.getId3Size=a;var o=function e(t,n){return void 0===n&&(n=0),t=(0,i.toUint8)(t),t.length-n<10||!(0,i.bytesMatch)(t,r,{offset:n})?n:(n+=a(t,n),e(t,n))};t.getId3Offset=o},"69f3":function(e,t,n){var i,r,a,o=n("7f9a"),s=n("da84"),u=n("861d"),c=n("9112"),l=n("5135"),d=n("f772"),h=n("d012"),f=s.WeakMap,p=function(e){return a(e)?r(e):i(e,{})},m=function(e){return function(t){var n;if(!u(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(o){var g=new f,v=g.get,y=g.has,b=g.set;i=function(e,t){return b.call(g,e,t),t},r=function(e){return v.call(g,e)||{}},a=function(e){return y.call(g,e)}}else{var _=d("state");h[_]=!0,i=function(e,t){return c(e,_,t),t},r=function(e){return l(e,_)?e[_]:{}},a=function(e){return l(e,_)}}e.exports={set:i,get:r,has:a,enforce:p,getterFor:m}},"6b75":function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},"6c57":function(e,t,n){var i=n("23e7"),r=n("da84");i({global:!0},{globalThis:r})},"6d61":function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),a=n("94ca"),o=n("6eeb"),s=n("f183"),u=n("2266"),c=n("19aa"),l=n("861d"),d=n("d039"),h=n("1c7e"),f=n("d44e"),p=n("7156");e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),v=m?"set":"add",y=r[e],b=y&&y.prototype,_=y,T={},w=function(e){var t=b[e];o(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(a(e,"function"!=typeof y||!(g||b.forEach&&!d((function(){(new y).entries().next()})))))_=n.getConstructor(t,e,m,v),s.REQUIRED=!0;else if(a(e,!0)){var S=new _,k=S[v](g?{}:-0,1)!=S,C=d((function(){S.has(1)})),x=h((function(e){new y(e)})),E=!g&&d((function(){var e=new y,t=5;while(t--)e[v](t,t);return!e.has(-0)}));x||(_=t((function(t,n){c(t,_,e);var i=p(new y,t,_);return void 0!=n&&u(n,i[v],i,m),i})),_.prototype=b,b.constructor=_),(C||E)&&(w("delete"),w("has"),m&&w("get")),(E||k)&&w(v),g&&b.clear&&delete b.clear}return T[e]=_,i({global:!0,forced:_!=y},T),f(_,e),g||n.setStrong(_,e,m),_}},"6eeb":function(e,t,n){var i=n("da84"),r=n("9112"),a=n("5135"),o=n("ce4e"),s=n("8925"),u=n("69f3"),c=u.get,l=u.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||r(n,"name",t),l(n).source=d.join("string"==typeof t?t:"")),e!==i?(u?!h&&e[t]&&(c=!0):delete e[t],c?e[t]=n:r(e,t,n)):c?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},"6f53":function(e,t,n){var i=n("83ab"),r=n("df75"),a=n("fc6a"),o=n("d1e7").f,s=function(e){return function(t){var n,s=a(t),u=r(s),c=u.length,l=0,d=[];while(c>l)n=u[l++],i&&!o.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}};e.exports={entries:s(!0),values:s(!1)}},"6f8f":function(e,t,n){function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}n("d3b7"),n("4ae1"),n("25f0"),e.exports=i},7037:function(e,t,n){function i(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?e.exports=i=function(e){return typeof e}:e.exports=i=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(t)}n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0"),e.exports=i},7039:function(e,t,n){var i=n("23e7"),r=n("d039"),a=n("057f").f,o=r((function(){return!Object.getOwnPropertyNames(1)}));i({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:a})},7156:function(e,t,n){var i=n("861d"),r=n("d2bb");e.exports=function(e,t,n){var a,o;return r&&"function"==typeof(a=t.constructor)&&a!==n&&i(o=a.prototype)&&o!==n.prototype&&r(e,o),e}},"72f7":function(e,t,n){"use strict";var i=n("ebb5").exportTypedArrayMethod,r=n("d039"),a=n("da84"),o=a.Uint8Array,s=o&&o.prototype||{},u=[].toString,c=[].join;r((function(){u.call({})}))&&(u=function(){return c.call(this)});var l=s.toString!=u;i("toString",u,l)},"735e":function(e,t,n){"use strict";var i=n("ebb5"),r=n("81d5"),a=i.aTypedArray,o=i.exportTypedArrayMethod;o("fill",(function(e){return r.apply(a(this),arguments)}))},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var i=n("428f"),r=n("5135"),a=n("e538"),o=n("9bf2").f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});r(t,e)||o(t,e,{value:a.f(e)})}},"74e8":function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),a=n("83ab"),o=n("8aa7"),s=n("ebb5"),u=n("621a"),c=n("19aa"),l=n("5c6c"),d=n("9112"),h=n("50c4"),f=n("0b25"),p=n("182d"),m=n("c04e"),g=n("5135"),v=n("f5df"),y=n("861d"),b=n("7c73"),_=n("d2bb"),T=n("241c").f,w=n("a078"),S=n("b727").forEach,k=n("2626"),C=n("9bf2"),x=n("06cf"),E=n("69f3"),A=n("7156"),O=E.get,j=E.set,I=C.f,P=x.f,L=Math.round,M=r.RangeError,D=u.ArrayBuffer,R=u.DataView,N=s.NATIVE_ARRAY_BUFFER_VIEWS,B=s.TYPED_ARRAY_TAG,U=s.TypedArray,F=s.TypedArrayPrototype,$=s.aTypedArrayConstructor,H=s.isTypedArray,V="BYTES_PER_ELEMENT",q="Wrong length",z=function(e,t){var n=0,i=t.length,r=new($(e))(i);while(i>n)r[n]=t[n++];return r},W=function(e,t){I(e,t,{get:function(){return O(this)[t]}})},G=function(e){var t;return e instanceof D||"ArrayBuffer"==(t=v(e))||"SharedArrayBuffer"==t},Y=function(e,t){return H(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},X=function(e,t){return Y(e,t=m(t,!0))?l(2,e[t]):P(e,t)},K=function(e,t,n){return!(Y(e,t=m(t,!0))&&y(n)&&g(n,"value"))||g(n,"get")||g(n,"set")||n.configurable||g(n,"writable")&&!n.writable||g(n,"enumerable")&&!n.enumerable?I(e,t,n):(e[t]=n.value,e)};a?(N||(x.f=X,C.f=K,W(F,"buffer"),W(F,"byteOffset"),W(F,"byteLength"),W(F,"length")),i({target:"Object",stat:!0,forced:!N},{getOwnPropertyDescriptor:X,defineProperty:K}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,s=e+(n?"Clamped":"")+"Array",u="get"+e,l="set"+e,m=r[s],g=m,v=g&&g.prototype,C={},x=function(e,t){var n=O(e);return n.view[u](t*a+n.byteOffset,!0)},E=function(e,t,i){var r=O(e);n&&(i=(i=L(i))<0?0:i>255?255:255&i),r.view[l](t*a+r.byteOffset,i,!0)},P=function(e,t){I(e,t,{get:function(){return x(this,t)},set:function(e){return E(this,t,e)},enumerable:!0})};N?o&&(g=t((function(e,t,n,i){return c(e,g,s),A(function(){return y(t)?G(t)?void 0!==i?new m(t,p(n,a),i):void 0!==n?new m(t,p(n,a)):new m(t):H(t)?z(g,t):w.call(g,t):new m(f(t))}(),e,g)})),_&&_(g,U),S(T(m),(function(e){e in g||d(g,e,m[e])})),g.prototype=v):(g=t((function(e,t,n,i){c(e,g,s);var r,o,u,l=0,d=0;if(y(t)){if(!G(t))return H(t)?z(g,t):w.call(g,t);r=t,d=p(n,a);var m=t.byteLength;if(void 0===i){if(m%a)throw M(q);if(o=m-d,o<0)throw M(q)}else if(o=h(i)*a,o+d>m)throw M(q);u=o/a}else u=f(t),o=u*a,r=new D(o);j(e,{buffer:r,byteOffset:d,byteLength:o,length:u,view:new R(r)});while(l<u)P(e,l++)})),_&&_(g,U),v=g.prototype=b(F)),v.constructor!==g&&d(v,"constructor",g),B&&d(v,B,s),C[s]=g,i({global:!0,forced:g!=m,sham:!N},C),V in g||d(g,V,a),V in v||d(v,V,a),k(s)}):e.exports=function(){}},"77a7":function(e,t){var n=1/0,i=Math.abs,r=Math.pow,a=Math.floor,o=Math.log,s=Math.LN2,u=function(e,t,u){var c,l,d,h=new Array(u),f=8*u-t-1,p=(1<<f)-1,m=p>>1,g=23===t?r(2,-24)-r(2,-77):0,v=e<0||0===e&&1/e<0?1:0,y=0;for(e=i(e),e!=e||e===n?(l=e!=e?1:0,c=p):(c=a(o(e)/s),e*(d=r(2,-c))<1&&(c--,d*=2),e+=c+m>=1?g/d:g*r(2,1-m),e*d>=2&&(c++,d/=2),c+m>=p?(l=0,c=p):c+m>=1?(l=(e*d-1)*r(2,t),c+=m):(l=e*r(2,m-1)*r(2,t),c=0));t>=8;h[y++]=255&l,l/=256,t-=8);for(c=c<<t|l,f+=t;f>0;h[y++]=255&c,c/=256,f-=8);return h[--y]|=128*v,h},c=function(e,t){var i,a=e.length,o=8*a-t-1,s=(1<<o)-1,u=s>>1,c=o-7,l=a-1,d=e[l--],h=127&d;for(d>>=7;c>0;h=256*h+e[l],l--,c-=8);for(i=h&(1<<-c)-1,h>>=-c,c+=t;c>0;i=256*i+e[l],l--,c-=8);if(0===h)h=1-u;else{if(h===s)return i?NaN:d?-n:n;i+=r(2,t),h-=u}return(d?-1:1)*i*r(2,h-t)};e.exports={pack:u,unpack:c}},7800:function(e,t,n){n("c975"),n("baa5"),n("fb6a"),n("e25e"),n("4d63"),n("ac1f"),n("25f0"),n("466d"),n("5319");var i=n("3597").NAMESPACE,r=/[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=new RegExp("[\\-\\.0-9"+r.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+r.source+a.source+"*(?::"+r.source+a.source+"*)?$"),s=0,u=1,c=2,l=3,d=4,h=5,f=6,p=7;function m(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,m)}function g(){}function v(e,t,n,r,a){function o(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function s(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?o(parseInt(t.substr(1).replace("x","0x"))):(a.error("entity not found:"+e),e)}function u(t){if(t>v){var n=e.substring(v,t).replace(/&#?\w+;/g,s);f&&c(v),r.characters(n,0,t-v),v=t}}function c(t,n){while(t>=d&&(n=h.exec(e)))l=n.index,d=l+n[0].length,f.lineNumber++;f.columnNumber=t-l+1}var l=0,d=0,h=/.*(?:\r\n?|\n)|.*$/g,f=r.locator,p=[{currentNSMap:t}],g={},v=0;while(1){try{var S=e.indexOf("<",v);if(S<0){if(!e.substr(v).match(/^\s*$/)){var E=r.doc,A=E.createTextNode(e.substr(v));E.appendChild(A),r.currentElement=A}return}switch(S>v&&u(S),e.charAt(S+1)){case"/":var O=e.indexOf(">",S+3),j=e.substring(S+2,O).replace(/[ \t\n\r]+$/g,""),I=p.pop();O<0?(j=e.substring(S+2).replace(/[\s<].*/,""),a.error("end tag name: "+j+" is not complete:"+I.tagName),O=S+1+j.length):j.match(/\s</)&&(j=j.replace(/[\s<].*/,""),a.error("end tag name: "+j+" maybe not complete"),O=S+1+j.length);var P=I.localNSMap,L=I.tagName==j,M=L||I.tagName&&I.tagName.toLowerCase()==j.toLowerCase();if(M){if(r.endElement(I.uri,I.localName,j),P)for(var D in P)r.endPrefixMapping(D);L||a.fatalError("end tag name: "+j+" is not match the current start tagName:"+I.tagName)}else p.push(I);O++;break;case"?":f&&c(S),O=C(e,S,r);break;case"!":f&&c(S),O=k(e,S,r,a);break;default:f&&c(S);var R=new x,N=p[p.length-1].currentNSMap,B=(O=b(e,S,R,N,s,a),R.length);if(!R.closed&&w(e,O,R.tagName,g)&&(R.closed=!0,n.nbsp||a.warning("unclosed xml attribute")),f&&B){for(var U=y(f,{}),F=0;F<B;F++){var $=R[F];c($.offset),$.locator=y(f,{})}r.locator=U,_(R,r,N)&&p.push(R),r.locator=f}else _(R,r,N)&&p.push(R);i.isHTML(R.uri)&&!R.closed?O=T(e,O,R.tagName,s,r):O++}}catch(H){if(H instanceof m)throw H;a.error("element parse error: "+H),O=-1}O>v?v=O:u(Math.max(S,v)+1)}}function y(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function b(e,t,n,r,a,o){function m(e,t,i){n.attributeNames.hasOwnProperty(e)&&o.fatalError("Attribute "+e+" redefined"),n.addValue(e,t,i)}var g,v=++t,y=s;while(1){var b=e.charAt(v);switch(b){case"=":if(y===u)g=e.slice(t,v),y=l;else{if(y!==c)throw new Error("attribute equal must after attrName");y=l}break;case"'":case'"':if(y===l||y===u){if(y===u&&(o.warning('attribute value must after "="'),g=e.slice(t,v)),t=v+1,v=e.indexOf(b,t),!(v>0))throw new Error("attribute value no end '"+b+"' match");_=e.slice(t,v).replace(/&#?\w+;/g,a),m(g,_,t-1),y=h}else{if(y!=d)throw new Error('attribute value must after "="');_=e.slice(t,v).replace(/&#?\w+;/g,a),m(g,_,t),o.warning('attribute "'+g+'" missed start quot('+b+")!!"),t=v+1,y=h}break;case"/":switch(y){case s:n.setTagName(e.slice(t,v));case h:case f:case p:y=p,n.closed=!0;case d:case u:case c:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),y==s&&n.setTagName(e.slice(t,v)),v;case">":switch(y){case s:n.setTagName(e.slice(t,v));case h:case f:case p:break;case d:case u:_=e.slice(t,v),"/"===_.slice(-1)&&(n.closed=!0,_=_.slice(0,-1));case c:y===c&&(_=g),y==d?(o.warning('attribute "'+_+'" missed quot(")!'),m(g,_.replace(/&#?\w+;/g,a),t)):(i.isHTML(r[""])&&_.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+_+'" missed value!! "'+_+'" instead!!'),m(_,_,t));break;case l:throw new Error("attribute value missed!!")}return v;case"€":b=" ";default:if(b<=" ")switch(y){case s:n.setTagName(e.slice(t,v)),y=f;break;case u:g=e.slice(t,v),y=c;break;case d:var _=e.slice(t,v).replace(/&#?\w+;/g,a);o.warning('attribute "'+_+'" missed quot(")!!'),m(g,_,t);case h:y=f;break}else switch(y){case c:n.tagName;i.isHTML(r[""])&&g.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+g+'" missed value!! "'+g+'" instead2!!'),m(g,g,t),t=v,y=u;break;case h:o.warning('attribute space is required"'+g+'"!!');case f:y=u,t=v;break;case l:y=d,t=v;break;case p:throw new Error("elements closed character '/' and '>' must be connected to")}}v++}}function _(e,t,n){var r=e.tagName,a=null,o=e.length;while(o--){var s=e[o],u=s.qName,c=s.value,l=u.indexOf(":");if(l>0)var d=s.prefix=u.slice(0,l),h=u.slice(l+1),f="xmlns"===d&&h;else h=u,d=null,f="xmlns"===u&&"";s.localName=h,!1!==f&&(null==a&&(a={},S(n,n={})),n[f]=a[f]=c,s.uri=i.XMLNS,t.startPrefixMapping(f,c))}o=e.length;while(o--){s=e[o];d=s.prefix;d&&("xml"===d&&(s.uri=i.XML),"xmlns"!==d&&(s.uri=n[d||""]))}l=r.indexOf(":");l>0?(d=e.prefix=r.slice(0,l),h=e.localName=r.slice(l+1)):(d=null,h=e.localName=r);var p=e.uri=n[d||""];if(t.startElement(p,h,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=a,!0;if(t.endElement(p,h,r),a)for(d in a)t.endPrefixMapping(d)}function T(e,t,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var a=e.indexOf("</"+n+">",t),o=e.substring(t+1,a);if(/[&<]/.test(o))return/^script$/i.test(n)?(r.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,i),r.characters(o,0,o.length),a)}return t+1}function w(e,t,n,i){var r=i[n];return null==r&&(r=e.lastIndexOf("</"+n+">"),r<t&&(r=e.lastIndexOf("</"+n)),i[n]=r),r<t}function S(e,t){for(var n in e)t[n]=e[n]}function k(e,t,n,i){var r=e.charAt(t+2);switch(r){case"-":if("-"===e.charAt(t+3)){var a=e.indexOf("--\x3e",t+4);return a>t?(n.comment(e,t+4,a-t-4),a+3):(i.error("Unclosed comment"),-1)}return-1;default:if("CDATA["==e.substr(t+3,6)){a=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,a-t-9),n.endCDATA(),a+3}var o=E(e,t),s=o.length;if(s>1&&/!doctype/i.test(o[0][0])){var u=o[1][0],c=!1,l=!1;s>3&&(/^public$/i.test(o[2][0])?(c=o[3][0],l=s>4&&o[4][0]):/^system$/i.test(o[2][0])&&(l=o[3][0]));var d=o[s-1];return n.startDTD(u,c,l),n.endDTD(),d.index+d[0].length}}return-1}function C(e,t,n){var i=e.indexOf("?>",t);if(i){var r=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(r){r[0].length;return n.processingInstruction(r[1],r[2]),i+2}return-1}return-1}function x(){this.attributeNames={}}function E(e,t){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;r.lastIndex=t,r.exec(e);while(n=r.exec(e))if(i.push(n),n[1])return i}m.prototype=new Error,m.prototype.name=m.name,g.prototype={parse:function(e,t,n){var i=this.domBuilder;i.startDocument(),S(t,t={}),v(e,t,n,i,this.errorHandler),i.endDocument()}},x.prototype={setTagName:function(e){if(!o.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!o.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=g,t.ParseError=m},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"79ac":function(e,t,n){(function(t){var i,r="undefined"!==typeof t?t:"undefined"!==typeof window?window:{},a=n(1);"undefined"!==typeof document?i=document:(i=r["__GLOBAL_DOCUMENT_CACHE@4"],i||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=a)),e.exports=i}).call(this,n("c8ba"))},"7b0b":function(e,t,n){var i=n("1d80");e.exports=function(e){return Object(i(e))}},"7c6e":function(e,t,n){"use strict";n("99af"),n("4160"),n("d81d"),n("fb6a"),n("4e82"),n("ace4"),n("d3b7"),n("ac1f"),n("25f0"),n("466d"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.parseData=t.parseTracks=t.decodeBlock=t.findEbml=t.EBML_TAGS=void 0;var i=n("0f2d"),r=n("c3f7"),a={EBML:(0,i.toUint8)([26,69,223,163]),DocType:(0,i.toUint8)([66,130]),Segment:(0,i.toUint8)([24,83,128,103]),SegmentInfo:(0,i.toUint8)([21,73,169,102]),Tracks:(0,i.toUint8)([22,84,174,107]),Track:(0,i.toUint8)([174]),TrackNumber:(0,i.toUint8)([215]),DefaultDuration:(0,i.toUint8)([35,227,131]),TrackEntry:(0,i.toUint8)([174]),TrackType:(0,i.toUint8)([131]),FlagDefault:(0,i.toUint8)([136]),CodecID:(0,i.toUint8)([134]),CodecPrivate:(0,i.toUint8)([99,162]),VideoTrack:(0,i.toUint8)([224]),AudioTrack:(0,i.toUint8)([225]),Cluster:(0,i.toUint8)([31,67,182,117]),Timestamp:(0,i.toUint8)([231]),TimestampScale:(0,i.toUint8)([42,215,177]),BlockGroup:(0,i.toUint8)([160]),BlockDuration:(0,i.toUint8)([155]),Block:(0,i.toUint8)([161]),SimpleBlock:(0,i.toUint8)([163])};t.EBML_TAGS=a;var o=[128,64,32,16,8,4,2,1],s=function(e){for(var t=1,n=0;n<o.length;n++){if(e&o[n])break;t++}return t},u=function(e,t,n,r){void 0===n&&(n=!0),void 0===r&&(r=!1);var a=s(e[t]),u=e.subarray(t,t+a);return n&&(u=Array.prototype.slice.call(e,t,t+a),u[0]^=o[a-1]),{length:a,value:(0,i.bytesToNumber)(u,{signed:r}),bytes:u}},c=function e(t){return"string"===typeof t?t.match(/.{1,2}/g).map((function(t){return e(t)})):"number"===typeof t?(0,i.numberToBytes)(t):t},l=function(e){return Array.isArray(e)?e.map((function(e){return c(e)})):[c(e)]},d=function e(t,n,r){if(r>=n.length)return n.length;var a=u(n,r,!1);if((0,i.bytesMatch)(t.bytes,a.bytes))return r;var o=u(n,r+a.length);return e(t,n,r+o.length+o.value+a.length)},h=function e(t,n){n=l(n),t=(0,i.toUint8)(t);var r=[];if(!n.length)return r;var a=0;while(a<t.length){var o=u(t,a,!1),s=u(t,a+o.length),c=a+o.length+s.length;127===s.value&&(s.value=d(o,t,c),s.value!==t.length&&(s.value-=c));var h=c+s.value>t.length?t.length:c+s.value,f=t.subarray(c,h);(0,i.bytesMatch)(n[0],o.bytes)&&(1===n.length?r.push(f):r=r.concat(e(f,n.slice(1))));var p=o.length+s.length+f.length;a+=p}return r};t.findEbml=h;var f=function(e,t,n,r){var o;"group"===t&&(o=h(e,[a.BlockDuration])[0],o&&(o=(0,i.bytesToNumber)(o),o=1/n*o*n/1e3),e=h(e,[a.Block])[0],t="block");var s=new DataView(e.buffer,e.byteOffset,e.byteLength),c=u(e,0),l=s.getInt16(c.length,!1),d=e[c.length+2],f=e.subarray(c.length+3),p=1/n*(r+l)*n/1e3,m={duration:o,trackNumber:c.value,keyframe:"simple"===t&&d>>7===1,invisible:(8&d)>>3===1,lacing:(6&d)>>1,discardable:"simple"===t&&1===(1&d),frames:[],pts:p,dts:p,timestamp:l};if(!m.lacing)return m.frames.push(f),m;var g=f[0]+1,v=[],y=1;if(2===m.lacing)for(var b=(f.length-y)/g,_=0;_<g;_++)v.push(b);if(1===m.lacing)for(var T=0;T<g-1;T++){var w=0;do{w+=f[y],y++}while(255===f[y-1]);v.push(w)}if(3===m.lacing)for(var S=0,k=0;k<g-1;k++){var C=0===k?u(f,y):u(f,y,!0,!0);S+=C.value,v.push(S),y+=C.length}return v.forEach((function(e){m.frames.push(f.subarray(y,y+e)),y+=e})),m};t.decodeBlock=f;var p=function(e){var t=0,n={};while(t<e.length){var i=127&e[t],r=e[t+1],a=void 0;a=1===r?e[t+2]:e.subarray(t+2,t+2+r),1===i?n.profile=a:2===i?n.level=a:3===i?n.bitDepth=a:4===i?n.chromaSubsampling=a:n[i]=a,t+=2+r}return n},m=function(e){e=(0,i.toUint8)(e);var t=[],n=h(e,[a.Segment,a.Tracks,a.Track]);return n.length||(n=h(e,[a.Tracks,a.Track])),n.length||(n=h(e,[a.Track])),n.length?(n.forEach((function(e){var n=h(e,a.TrackType)[0];if(n&&n.length){if(1===n[0])n="video";else if(2===n[0])n="audio";else{if(17!==n[0])return;n="subtitle"}var o={rawCodec:(0,i.bytesToString)(h(e,[a.CodecID])[0]),type:n,codecPrivate:h(e,[a.CodecPrivate])[0],number:(0,i.bytesToNumber)(h(e,[a.TrackNumber])[0]),defaultDuration:(0,i.bytesToNumber)(h(e,[a.DefaultDuration])[0]),default:h(e,[a.FlagDefault])[0],rawData:e},s="";if(/V_MPEG4\/ISO\/AVC/.test(o.rawCodec))s="avc1."+(0,r.getAvcCodec)(o.codecPrivate);else if(/V_MPEGH\/ISO\/HEVC/.test(o.rawCodec))s="hev1."+(0,r.getHvcCodec)(o.codecPrivate);else if(/V_MPEG4\/ISO\/ASP/.test(o.rawCodec))s=o.codecPrivate?"mp4v.20."+o.codecPrivate[4].toString():"mp4v.20.9";else if(/^V_THEORA/.test(o.rawCodec))s="theora";else if(/^V_VP8/.test(o.rawCodec))s="vp8";else if(/^V_VP9/.test(o.rawCodec))if(o.codecPrivate){var u=p(o.codecPrivate),c=u.profile,l=u.level,d=u.bitDepth,f=u.chromaSubsampling;s="vp09.",s+=(0,i.padStart)(c,2,"0")+".",s+=(0,i.padStart)(l,2,"0")+".",s+=(0,i.padStart)(d,2,"0")+".",s+=""+(0,i.padStart)(f,2,"0");var m=h(e,[224,[85,176],[85,177]])[0]||[],g=h(e,[224,[85,176],[85,185]])[0]||[],v=h(e,[224,[85,176],[85,186]])[0]||[],y=h(e,[224,[85,176],[85,187]])[0]||[];(m.length||g.length||v.length||y.length)&&(s+="."+(0,i.padStart)(y[0],2,"0"),s+="."+(0,i.padStart)(v[0],2,"0"),s+="."+(0,i.padStart)(m[0],2,"0"),s+="."+(0,i.padStart)(g[0],2,"0"))}else s="vp9";else/^V_AV1/.test(o.rawCodec)?s="av01."+(0,r.getAv1Codec)(o.codecPrivate):/A_ALAC/.test(o.rawCodec)?s="alac":/A_MPEG\/L2/.test(o.rawCodec)?s="mp2":/A_MPEG\/L3/.test(o.rawCodec)?s="mp3":/^A_AAC/.test(o.rawCodec)?s=o.codecPrivate?"mp4a.40."+(o.codecPrivate[0]>>>3).toString():"mp4a.40.2":/^A_AC3/.test(o.rawCodec)?s="ac-3":/^A_PCM/.test(o.rawCodec)?s="pcm":/^A_MS\/ACM/.test(o.rawCodec)?s="speex":/^A_EAC3/.test(o.rawCodec)?s="ec-3":/^A_VORBIS/.test(o.rawCodec)?s="vorbis":/^A_FLAC/.test(o.rawCodec)?s="flac":/^A_OPUS/.test(o.rawCodec)&&(s="opus");o.codec=s,t.push(o)}})),t.sort((function(e,t){return e.number-t.number}))):t};t.parseTracks=m;var g=function(e,t){var n=[],r=h(e,[a.Segment])[0],o=h(r,[a.SegmentInfo,a.TimestampScale])[0];o=o&&o.length?(0,i.bytesToNumber)(o):1e6;var s=h(r,[a.Cluster]);return t||(t=m(r)),s.forEach((function(e,t){var r=h(e,[a.SimpleBlock]).map((function(e){return{type:"simple",data:e}})),s=h(e,[a.BlockGroup]).map((function(e){return{type:"group",data:e}})),u=h(e,[a.Timestamp])[0]||0;u&&u.length&&(u=(0,i.bytesToNumber)(u));var c=r.concat(s).sort((function(e,t){return e.data.byteOffset-t.data.byteOffset}));c.forEach((function(e,t){var i=f(e.data,e.type,o,u);n.push(i)}))})),{tracks:t,blocks:n}};t.parseData=g},"7c73":function(e,t,n){var i,r=n("825a"),a=n("37e8"),o=n("7839"),s=n("d012"),u=n("1be4"),c=n("cc12"),l=n("f772"),d=">",h="<",f="prototype",p="script",m=l("IE_PROTO"),g=function(){},v=function(e){return h+p+d+e+h+"/"+p+d},y=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=c("iframe"),n="java"+p+":";return t.style.display="none",u.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},_=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}_=i?y(i):b();var e=o.length;while(e--)delete _[f][o[e]];return _()};s[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[f]=r(e),n=new g,g[f]=null,n[m]=e):n=_(),void 0===t?n:a(n,t)}},"7db0":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").find,a=n("44d2"),o=n("ae40"),s="find",u=!0,c=o(s);s in[]&&Array(1)[s]((function(){u=!1})),i({target:"Array",proto:!0,forced:u||!c},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a(s)},"7dd0":function(e,t,n){"use strict";var i=n("23e7"),r=n("9ed3"),a=n("e163"),o=n("d2bb"),s=n("d44e"),u=n("9112"),c=n("6eeb"),l=n("b622"),d=n("c430"),h=n("3f8c"),f=n("ae93"),p=f.IteratorPrototype,m=f.BUGGY_SAFARI_ITERATORS,g=l("iterator"),v="keys",y="values",b="entries",_=function(){return this};e.exports=function(e,t,n,l,f,T,w){r(n,t,l);var S,k,C,x=function(e){if(e===f&&I)return I;if(!m&&e in O)return O[e];switch(e){case v:return function(){return new n(this,e)};case y:return function(){return new n(this,e)};case b:return function(){return new n(this,e)}}return function(){return new n(this)}},E=t+" Iterator",A=!1,O=e.prototype,j=O[g]||O["@@iterator"]||f&&O[f],I=!m&&j||x(f),P="Array"==t&&O.entries||j;if(P&&(S=a(P.call(new e)),p!==Object.prototype&&S.next&&(d||a(S)===p||(o?o(S,p):"function"!=typeof S[g]&&u(S,g,_)),s(S,E,!0,!0),d&&(h[E]=_))),f==y&&j&&j.name!==y&&(A=!0,I=function(){return j.call(this)}),d&&!w||O[g]===I||u(O,g,I),h[t]=I,f)if(k={values:x(y),keys:T?I:x(v),entries:x(b)},w)for(C in k)(m||A||!(C in O))&&c(O,C,k[C]);else i({target:t,proto:!0,forced:m||A},k);return k}},"7e12":function(e,t,n){var i=n("da84"),r=n("58a8").trim,a=n("5899"),o=i.parseFloat,s=1/o(a+"-0")!==-1/0;e.exports=s?function(e){var t=r(String(e)),n=o(t);return 0===n&&"-"==t.charAt(0)?-0:n}:o},"7f9a":function(e,t,n){var i=n("da84"),r=n("8925"),a=i.WeakMap;e.exports="function"===typeof a&&/native code/.test(r(a))},"7fcd":function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("ace4"),n("d3b7"),n("25f0"),n("5cc6"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=i(n("a8d6")),a=function(t){return r.default.atob?r.default.atob(t):e.from(t,"base64").toString("binary")};function o(e){for(var t=a(e),n=new Uint8Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}}).call(this,n("b639").Buffer)},"81d5":function(e,t,n){"use strict";var i=n("7b0b"),r=n("23cb"),a=n("50c4");e.exports=function(e){var t=i(this),n=a(t.length),o=arguments.length,s=r(o>1?arguments[1]:void 0,n),u=o>2?arguments[2]:void 0,c=void 0===u?n:r(u,n);while(c>s)t[s++]=e;return t}},"825a":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},"82da":function(e,t,n){var i=n("23e7"),r=n("ebb5"),a=r.NATIVE_ARRAY_BUFFER_VIEWS;i({target:"ArrayBuffer",stat:!0,forced:!a},{isView:r.isView})},"82f8":function(e,t,n){"use strict";var i=n("ebb5"),r=n("4d64").includes,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("includes",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},"83ab":function(e,t,n){var i=n("d039");e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){"use strict";var i=n("c04e"),r=n("9bf2"),a=n("5c6c");e.exports=function(e,t,n){var o=i(t);o in e?r.f(e,o,a(0,n)):e[o]=n}},"841c":function(e,t,n){"use strict";var i=n("d784"),r=n("825a"),a=n("1d80"),o=n("129f"),s=n("14c3");i("search",1,(function(e,t,n){return[function(t){var n=a(this),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var a=r(e),u=String(this),c=a.lastIndex;o(c,0)||(a.lastIndex=0);var l=s(a,u);return o(a.lastIndex,c)||(a.lastIndex=c),null===l?-1:l.index}]}))},"84c3":function(e,t,n){var i=n("74e8");i("Uint16",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8741:function(e,t,n){n("d3b7"),n("25f0"),e.exports=r;var i=Object.prototype.toString;function r(e){if(!e)return!1;var t=i.call(e);return"[object Function]"===t||"function"===typeof e&&"[object RegExp]"!==t||"undefined"!==typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}},8925:function(e,t,n){var i=n("c6cd"),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return r.call(e)}),e.exports=i.inspectSource},"8a59":function(e,t,n){var i=n("74e8");i("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}),!0)},"8aa5":function(e,t,n){"use strict";var i=n("6547").charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"8aa7":function(e,t,n){var i=n("da84"),r=n("d039"),a=n("1c7e"),o=n("ebb5").NATIVE_ARRAY_BUFFER_VIEWS,s=i.ArrayBuffer,u=i.Int8Array;e.exports=!o||!r((function(){u(1)}))||!r((function(){new u(-1)}))||!a((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||r((function(){return 1!==new u(new s(2),1,void 0).length}))},"90e3":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},9112:function(e,t,n){var i=n("83ab"),r=n("9bf2"),a=n("5c6c");e.exports=i?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},9152:function(e,t){t.read=function(e,t,n,i,r){var a,o,s=8*r-i-1,u=(1<<s)-1,c=u>>1,l=-7,d=n?r-1:0,h=n?-1:1,f=e[t+d];for(d+=h,a=f&(1<<-l)-1,f>>=-l,l+=s;l>0;a=256*a+e[t+d],d+=h,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=i;l>0;o=256*o+e[t+d],d+=h,l-=8);if(0===a)a=1-c;else{if(a===u)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,i),a-=c}return(f?-1:1)*o*Math.pow(2,a-i)},t.write=function(e,t,n,i,r,a){var o,s,u,c=8*a-r-1,l=(1<<c)-1,d=l>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:a-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),t+=o+d>=1?h/u:h*Math.pow(2,1-d),t*u>=2&&(o++,u/=2),o+d>=l?(s=0,o=l):o+d>=1?(s=(t*u-1)*Math.pow(2,r),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),o=0));r>=8;e[n+f]=255&s,f+=p,s/=256,r-=8);for(o=o<<r|s,c+=r;c>0;e[n+f]=255&o,f+=p,o/=256,c-=8);e[n+f-p]|=128*m}},9263:function(e,t,n){"use strict";var i=n("ad6d"),r=n("9f7f"),a=RegExp.prototype.exec,o=String.prototype.replace,s=a,u=function(){var e=/a/,t=/b*/g;return a.call(e,"a"),a.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),c=r.UNSUPPORTED_Y||r.BROKEN_CARET,l=void 0!==/()??/.exec("")[1],d=u||l||c;d&&(s=function(e){var t,n,r,s,d=this,h=c&&d.sticky,f=i.call(d),p=d.source,m=0,g=e;return h&&(f=f.replace("y",""),-1===f.indexOf("g")&&(f+="g"),g=String(e).slice(d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==e[d.lastIndex-1])&&(p="(?: "+p+")",g=" "+g,m++),n=new RegExp("^(?:"+p+")",f)),l&&(n=new RegExp("^"+p+"$(?!\\s)",f)),u&&(t=d.lastIndex),r=a.call(h?n:d,g),h?r?(r.input=r.input.slice(m),r[0]=r[0].slice(m),r.index=d.lastIndex,d.lastIndex+=r[0].length):d.lastIndex=0:u&&r&&(d.lastIndex=d.global?r.index+r[0].length:t),l&&r&&r.length>1&&o.call(r[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(r[s]=void 0)})),r}),e.exports=s},"944a":function(e,t,n){var i=n("746f");i("toStringTag")},"94ca":function(e,t,n){var i=n("d039"),r=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==c||n!=u&&("function"==typeof t?i(t):!!t)},o=a.normalize=function(e){return String(e).replace(r,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},"96cf":function(e,t){!function(t){"use strict";var n,i=Object.prototype,r=i.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag",c="object"===typeof e,l=t.regeneratorRuntime;if(l)c&&(e.exports=l);else{l=t.regeneratorRuntime=c?e.exports:{},l.wrap=_;var d="suspendedStart",h="suspendedYield",f="executing",p="completed",m={},g={};g[o]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(P([])));y&&y!==i&&r.call(y,o)&&(g=y);var b=k.prototype=w.prototype=Object.create(g);S.prototype=b.constructor=k,k.constructor=S,k[u]=S.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===S||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(b),e},l.awrap=function(e){return{__await:e}},C(x.prototype),x.prototype[s]=function(){return this},l.AsyncIterator=x,l.async=function(e,t,n,i){var r=new x(_(e,t,n,i));return l.isGeneratorFunction(t)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},C(b),b[u]="Generator",b[o]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},l.values=P,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(i,r){return s.type="throw",s.arg=e,t.next=i,r&&(t.method="next",t.arg=n),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;j(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:P(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=n),m}}}function _(e,t,n,i){var r=t&&t.prototype instanceof w?t:w,a=Object.create(r.prototype),o=new I(i||[]);return a._invoke=E(e,n,o),a}function T(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(i){return{type:"throw",arg:i}}}function w(){}function S(){}function k(){}function C(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function x(e){function t(n,i,a,o){var s=T(e[n],e,i);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"===typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then((function(e){t("next",e,a,o)}),(function(e){t("throw",e,a,o)})):Promise.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return t("throw",e,a,o)}))}o(s.arg)}var n;function i(e,i){function r(){return new Promise((function(n,r){t(e,i,n,r)}))}return n=n?n.then(r,r):r()}this._invoke=i}function E(e,t,n){var i=d;return function(r,a){if(i===f)throw new Error("Generator is already running");if(i===p){if("throw"===r)throw a;return L()}n.method=r,n.arg=a;while(1){var o=n.delegate;if(o){var s=A(o,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var u=T(e,t,n);if("normal"===u.type){if(i=n.done?p:h,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=p,n.method="throw",n.arg=u.arg)}}}function A(e,t){var i=e.iterator[t.method];if(i===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,A(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var r=T(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,m;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function P(e){if(e){var t=e[o];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function t(){while(++i<e.length)if(r.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=n,t.done=!0,t};return a.next=a}}return{next:L}}function L(){return{value:n,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},9861:function(e,t,n){"use strict";n("e260");var i=n("23e7"),r=n("d066"),a=n("0d3b"),o=n("6eeb"),s=n("e2cc"),u=n("d44e"),c=n("9ed3"),l=n("69f3"),d=n("19aa"),h=n("5135"),f=n("0366"),p=n("f5df"),m=n("825a"),g=n("861d"),v=n("7c73"),y=n("5c6c"),b=n("9a1f"),_=n("35a1"),T=n("b622"),w=r("fetch"),S=r("Headers"),k=T("iterator"),C="URLSearchParams",x=C+"Iterator",E=l.set,A=l.getterFor(C),O=l.getterFor(x),j=/\+/g,I=Array(4),P=function(e){return I[e-1]||(I[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},L=function(e){try{return decodeURIComponent(e)}catch(t){return e}},M=function(e){var t=e.replace(j," "),n=4;try{return decodeURIComponent(t)}catch(i){while(n)t=t.replace(P(n--),L);return t}},D=/[!'()~]|%20/g,R={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},N=function(e){return R[e]},B=function(e){return encodeURIComponent(e).replace(D,N)},U=function(e,t){if(t){var n,i,r=t.split("&"),a=0;while(a<r.length)n=r[a++],n.length&&(i=n.split("="),e.push({key:M(i.shift()),value:M(i.join("="))}))}},F=function(e){this.entries.length=0,U(this.entries,e)},$=function(e,t){if(e<t)throw TypeError("Not enough arguments")},H=c((function(e,t){E(this,{type:x,iterator:b(A(e).entries),kind:t})}),"Iterator",(function(){var e=O(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n})),V=function(){d(this,V,C);var e,t,n,i,r,a,o,s,u,c=arguments.length>0?arguments[0]:void 0,l=this,f=[];if(E(l,{type:C,entries:f,updateURL:function(){},updateSearchParams:F}),void 0!==c)if(g(c))if(e=_(c),"function"===typeof e){t=e.call(c),n=t.next;while(!(i=n.call(t)).done){if(r=b(m(i.value)),a=r.next,(o=a.call(r)).done||(s=a.call(r)).done||!a.call(r).done)throw TypeError("Expected sequence with length 2");f.push({key:o.value+"",value:s.value+""})}}else for(u in c)h(c,u)&&f.push({key:u,value:c[u]+""});else U(f,"string"===typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},q=V.prototype;s(q,{append:function(e,t){$(arguments.length,2);var n=A(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){$(arguments.length,1);var t=A(this),n=t.entries,i=e+"",r=0;while(r<n.length)n[r].key===i?n.splice(r,1):r++;t.updateURL()},get:function(e){$(arguments.length,1);for(var t=A(this).entries,n=e+"",i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){$(arguments.length,1);for(var t=A(this).entries,n=e+"",i=[],r=0;r<t.length;r++)t[r].key===n&&i.push(t[r].value);return i},has:function(e){$(arguments.length,1);var t=A(this).entries,n=e+"",i=0;while(i<t.length)if(t[i++].key===n)return!0;return!1},set:function(e,t){$(arguments.length,1);for(var n,i=A(this),r=i.entries,a=!1,o=e+"",s=t+"",u=0;u<r.length;u++)n=r[u],n.key===o&&(a?r.splice(u--,1):(a=!0,n.value=s));a||r.push({key:o,value:s}),i.updateURL()},sort:function(){var e,t,n,i=A(this),r=i.entries,a=r.slice();for(r.length=0,n=0;n<a.length;n++){for(e=a[n],t=0;t<n;t++)if(r[t].key>e.key){r.splice(t,0,e);break}t===n&&r.push(e)}i.updateURL()},forEach:function(e){var t,n=A(this).entries,i=f(e,arguments.length>1?arguments[1]:void 0,3),r=0;while(r<n.length)t=n[r++],i(t.value,t.key,this)},keys:function(){return new H(this,"keys")},values:function(){return new H(this,"values")},entries:function(){return new H(this,"entries")}},{enumerable:!0}),o(q,k,q.entries),o(q,"toString",(function(){var e,t=A(this).entries,n=[],i=0;while(i<t.length)e=t[i++],n.push(B(e.key)+"="+B(e.value));return n.join("&")}),{enumerable:!0}),u(V,C),i({global:!0,forced:!a},{URLSearchParams:V}),a||"function"!=typeof w||"function"!=typeof S||i({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,i,r=[e];return arguments.length>1&&(t=arguments[1],g(t)&&(n=t.body,p(n)===C&&(i=t.headers?new S(t.headers):new S,i.has("content-type")||i.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=v(t,{body:y(0,String(n)),headers:y(0,i)}))),r.push(t)),w.apply(this,r)}}),e.exports={URLSearchParams:V,getState:A}},"99af":function(e,t,n){"use strict";var i=n("23e7"),r=n("d039"),a=n("e8b5"),o=n("861d"),s=n("7b0b"),u=n("50c4"),c=n("8418"),l=n("65f0"),d=n("1dde"),h=n("b622"),f=n("2d00"),p=h("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",v=f>=51||!r((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),y=d("concat"),b=function(e){if(!o(e))return!1;var t=e[p];return void 0!==t?!!t:a(e)},_=!v||!y;i({target:"Array",proto:!0,forced:_},{concat:function(e){var t,n,i,r,a,o=s(this),d=l(o,0),h=0;for(t=-1,i=arguments.length;t<i;t++)if(a=-1===t?o:arguments[t],b(a)){if(r=u(a.length),h+r>m)throw TypeError(g);for(n=0;n<r;n++,h++)n in a&&c(d,h,a[n])}else{if(h>=m)throw TypeError(g);c(d,h++,a)}return d.length=h,d}})},"9a0c":function(e,t,n){var i=n("342f");e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i)},"9a1f":function(e,t,n){var i=n("825a"),r=n("35a1");e.exports=function(e){var t=r(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return i(t.call(e))}},"9a8c":function(e,t,n){"use strict";var i=n("ebb5"),r=n("145e"),a=i.aTypedArray,o=i.exportTypedArrayMethod;o("copyWithin",(function(e,t){return r.call(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},"9b91":function(e,t,n){"use strict";n("13d5"),n("ace4"),n("d3b7"),n("ac1f"),n("1276"),n("498a"),n("5cc6"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7");var i=n("a8d6"),r=function(e,t){return void 0===t&&(t=!1),function(n,r,o){if(n)e(n);else if(r.statusCode>=400&&r.statusCode<=599){var s=o;if(t)if(i.TextDecoder){var u=a(r.headers&&r.headers["content-type"]);try{s=new TextDecoder(u).decode(o)}catch(c){}}else s=String.fromCharCode.apply(null,new Uint8Array(o));e({cause:s})}else e(null,o)}};function a(e){return void 0===e&&(e=""),e.toLowerCase().split(";").reduce((function(e,t){var n=t.split("="),i=n[0],r=n[1];return"charset"===i.trim()?r.trim():e}),"utf-8")}e.exports=r},"9bdd":function(e,t,n){var i=n("825a");e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(o){var a=e["return"];throw void 0!==a&&i(a.call(e)),o}}},"9bf2":function(e,t,n){var i=n("83ab"),r=n("0cfb"),a=n("825a"),o=n("c04e"),s=Object.defineProperty;t.f=i?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),r)try{return s(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9e75":function(e,t,n){"use strict";var i=n("4ea4");n("99af"),n("4de4"),n("4160"),n("c975"),n("d81d"),n("13d5"),n("fb6a"),n("4e82"),n("a9e3"),n("aff5"),n("b64b"),n("acd8"),n("e25e"),n("ac1f"),n("5319"),n("1276"),n("498a"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.toPlaylists=t.toM3u8=t.stringToMpdXml=t.parseUTCTiming=t.parse=t.inheritAttributes=t.generateSidxKey=t.addSidxSegmentsToPlaylist=t.VERSION=void 0;var r=i(n("f2dc")),a=i(n("a8d6")),o=n("c436"),s=i(n("7fcd")),u=n("286d"),c="0.21.1",l=function(e){return!!e&&"object"===typeof e},d=function e(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.reduce((function(t,n){return"object"!==typeof n||Object.keys(n).forEach((function(i){Array.isArray(t[i])&&Array.isArray(n[i])?t[i]=t[i].concat(n[i]):l(t[i])&&l(n[i])?t[i]=e(t[i],n[i]):t[i]=n[i]})),t}),{})},h=function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e,t){for(var n=[],i=e;i<t;i++)n.push(i);return n},p=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},m=function(e){if(!e.length)return[];for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},g=function(e,t){return e.reduce((function(e,n,i){return n[t]&&e.push(i),e}),[])},v=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1},y=function(e,t){return h(e.reduce((function(e,n){return n.forEach((function(n){e[t(n)]=n})),e}),{}))},b={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"},_=function(e){var t=e.baseUrl,n=void 0===t?"":t,i=e.source,o=void 0===i?"":i,s=e.range,u=void 0===s?"":s,c=e.indexRange,l=void 0===c?"":c,d={uri:o,resolvedUri:(0,r.default)(n||"",o)};if(u||l){var h,f=u||l,p=f.split("-"),m=a.default.BigInt?a.default.BigInt(p[0]):parseInt(p[0],10),g=a.default.BigInt?a.default.BigInt(p[1]):parseInt(p[1],10);m<Number.MAX_SAFE_INTEGER&&"bigint"===typeof m&&(m=Number(m)),g<Number.MAX_SAFE_INTEGER&&"bigint"===typeof g&&(g=Number(g)),h="bigint"===typeof g||"bigint"===typeof m?a.default.BigInt(g)-a.default.BigInt(m)+a.default.BigInt(1):g-m+1,"bigint"===typeof h&&h<Number.MAX_SAFE_INTEGER&&(h=Number(h)),d.byterange={length:h,offset:m}}return d},T=function(e){var t;return t="bigint"===typeof e.offset||"bigint"===typeof e.length?a.default.BigInt(e.offset)+a.default.BigInt(e.length)-a.default.BigInt(1):e.offset+e.length-1,e.offset+"-"+t},w=function(e){return e&&"number"!==typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e},S={static:function(e){var t=e.duration,n=e.timescale,i=void 0===n?1:n,r=e.sourceDuration,a=e.periodDuration,o=w(e.endNumber),s=t/i;return"number"===typeof o?{start:0,end:o}:"number"===typeof a?{start:0,end:a/s}:{start:0,end:r/s}},dynamic:function(e){var t=e.NOW,n=e.clientOffset,i=e.availabilityStartTime,r=e.timescale,a=void 0===r?1:r,o=e.duration,s=e.periodStart,u=void 0===s?0:s,c=e.minimumUpdatePeriod,l=void 0===c?0:c,d=e.timeShiftBufferDepth,h=void 0===d?1/0:d,f=w(e.endNumber),p=(t+n)/1e3,m=i+u,g=p+l,v=g-m,y=Math.ceil(v*a/o),b=Math.floor((p-m-h)*a/o),_=Math.floor((p-m)*a/o);return{start:Math.max(0,b),end:"number"===typeof f?f:Math.min(y,_)}}},k=function(e){return function(t){var n=e.duration,i=e.timescale,r=void 0===i?1:i,a=e.periodStart,o=e.startNumber,s=void 0===o?1:o;return{number:s+t,duration:n/r,timeline:a,time:t*n}}},C=function(e){var t=e.type,n=e.duration,i=e.timescale,r=void 0===i?1:i,a=e.periodDuration,o=e.sourceDuration,s=S[t](e),u=s.start,c=s.end,l=f(u,c).map(k(e));if("static"===t){var d=l.length-1,h="number"===typeof a?a:o;l[d].duration=h-n/r*d}return l},x=function(e){var t=e.baseUrl,n=e.initialization,i=void 0===n?{}:n,r=e.sourceDuration,a=e.indexRange,o=void 0===a?"":a,s=e.periodStart,u=e.presentationTime,c=e.number,l=void 0===c?0:c,d=e.duration;if(!t)throw new Error(b.NO_BASE_URL);var h=_({baseUrl:t,source:i.sourceURL,range:i.range}),f=_({baseUrl:t,source:t,indexRange:o});if(f.map=h,d){var p=C(e);p.length&&(f.duration=p[0].duration,f.timeline=p[0].timeline)}else r&&(f.duration=r,f.timeline=s);return f.presentationTime=u||s,f.number=l,[f]},E=function(e,t,n){var i,r=e.sidx.map?e.sidx.map:null,o=e.sidx.duration,s=e.timeline||0,u=e.sidx.byterange,c=u.offset+u.length,l=t.timescale,d=t.references.filter((function(e){return 1!==e.referenceType})),h=[],f=e.endList?"static":"dynamic",p=e.sidx.timeline,m=p,g=e.mediaSequence||0;i="bigint"===typeof t.firstOffset?a.default.BigInt(c)+t.firstOffset:c+t.firstOffset;for(var v=0;v<d.length;v++){var y=t.references[v],b=y.referencedSize,_=y.subsegmentDuration,T=void 0;T="bigint"===typeof i?i+a.default.BigInt(b)-a.default.BigInt(1):i+b-1;var w=i+"-"+T,S={baseUrl:n,timescale:l,timeline:s,periodStart:p,presentationTime:m,number:g,duration:_,sourceDuration:o,indexRange:w,type:f},k=x(S)[0];r&&(k.map=r),h.push(k),i+="bigint"===typeof i?a.default.BigInt(b):b,m+=_/l,g++}return e.segments=h,e};t.addSidxSegmentsToPlaylist=E;var A=["AUDIO","SUBTITLES"],O=1/60,j=function(e){return y(e,(function(e){var t=e.timeline;return t})).sort((function(e,t){return e.timeline>t.timeline?1:-1}))},I=function(e,t){for(var n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null},P=function(e){var t=[];return(0,o.forEachMediaGroup)(e,A,(function(e,n,i,r){t=t.concat(e.playlists||[])})),t},L=function(e){var t=e.playlist,n=e.mediaSequence;t.mediaSequence=n,t.segments.forEach((function(e,n){e.number=t.mediaSequence+n}))},M=function(e){var t=e.oldPlaylists,n=e.newPlaylists,i=e.timelineStarts;n.forEach((function(e){e.discontinuitySequence=v(i,(function(t){var n=t.timeline;return n===e.timeline}));var n=I(t,e.attributes.NAME);if(n&&!e.sidx){var r=e.segments[0],a=v(n.segments,(function(e){return Math.abs(e.presentationTime-r.presentationTime)<O}));if(-1===a)return L({playlist:e,mediaSequence:n.mediaSequence+n.segments.length}),e.segments[0].discontinuity=!0,e.discontinuityStarts.unshift(0),void((!n.segments.length&&e.timeline>n.timeline||n.segments.length&&e.timeline>n.segments[n.segments.length-1].timeline)&&e.discontinuitySequence--);var o=n.segments[a];o.discontinuity&&!r.discontinuity&&(r.discontinuity=!0,e.discontinuityStarts.unshift(0),e.discontinuitySequence--),L({playlist:e,mediaSequence:n.segments[a].number})}}))},D=function(e){var t=e.oldManifest,n=e.newManifest,i=t.playlists.concat(P(t)),r=n.playlists.concat(P(n));return n.timelineStarts=j([t.timelineStarts,n.timelineStarts]),M({oldPlaylists:i,newPlaylists:r,timelineStarts:n.timelineStarts}),n},R=function(e){return e&&e.uri+"-"+T(e.byterange)};t.generateSidxKey=R;var N=function(e){var t=h(e.reduce((function(e,t){var n=t.attributes.id+(t.attributes.lang||"");if(e[n]){var i;if(t.segments)t.segments[0]&&(t.segments[0].discontinuity=!0),(i=e[n].segments).push.apply(i,t.segments);t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)}else e[n]=t,e[n].attributes.timelineStarts=[];return e[n].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e}),{}));return t.map((function(e){return e.discontinuityStarts=g(e.segments||[],"discontinuity"),e}))},B=function(e,t){var n=R(e.sidx),i=n&&t[n]&&t[n].sidx;return i&&E(e,i,e.sidx.resolvedUri),e},U=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var n in e)e[n]=B(e[n],t);return e},F=function(e,t){var n,i=e.attributes,r=e.segments,a=e.sidx,o=e.mediaSequence,s=e.discontinuitySequence,u=e.discontinuityStarts,c={attributes:(n={NAME:i.id,BANDWIDTH:i.bandwidth,CODECS:i.codecs},n["PROGRAM-ID"]=1,n),uri:"",endList:"static"===i.type,timeline:i.periodStart,resolvedUri:"",targetDuration:i.duration,discontinuitySequence:s,discontinuityStarts:u,timelineStarts:i.timelineStarts,mediaSequence:o,segments:r};return i.contentProtection&&(c.contentProtection=i.contentProtection),a&&(c.sidx=a),t&&(c.attributes.AUDIO="audio",c.attributes.SUBTITLES="subs"),c},$=function(e){var t,n=e.attributes,i=e.segments,r=e.mediaSequence,a=e.discontinuityStarts,o=e.discontinuitySequence;"undefined"===typeof i&&(i=[{uri:n.baseUrl,timeline:n.periodStart,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var s=(t={NAME:n.id,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t);return n.codecs&&(s.CODECS=n.codecs),{attributes:s,uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:n.baseUrl||"",targetDuration:n.duration,timelineStarts:n.timelineStarts,discontinuityStarts:a,discontinuitySequence:o,mediaSequence:r,segments:i}},H=function(e,t,n){var i;void 0===t&&(t={}),void 0===n&&(n=!1);var r=e.reduce((function(e,r){var a=r.attributes.role&&r.attributes.role.value||"",o=r.attributes.lang||"",s=r.attributes.label||"main";if(o&&!r.attributes.label){var u=a?" ("+a+")":"";s=""+r.attributes.lang+u}e[s]||(e[s]={language:o,autoselect:!0,default:"main"===a,playlists:[],uri:""});var c=B(F(r,n),t);return e[s].playlists.push(c),"undefined"===typeof i&&"main"===a&&(i=r,i.default=!0),e}),{});if(!i){var a=Object.keys(r)[0];r[a].default=!0}return r},V=function(e,t){return void 0===t&&(t={}),e.reduce((function(e,n){var i=n.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(B($(n),t)),e}),{})},q=function(e){return e.reduce((function(e,t){return t?(t.forEach((function(t){var n=t.channel,i=t.language;e[i]={autoselect:!1,default:!1,instreamId:n,language:i},t.hasOwnProperty("aspectRatio")&&(e[i].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[i].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[i]["3D"]=t["3D"])})),e):e}),{})},z=function(e){var t,n=e.attributes,i=e.segments,r=e.sidx,a=e.discontinuityStarts,o={attributes:(t={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuityStarts:a,timelineStarts:n.timelineStarts,segments:i};return n.contentProtection&&(o.contentProtection=n.contentProtection),r&&(o.sidx=r),o},W=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType},G=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType},Y=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},X=function(e,t){e.forEach((function(e){e.mediaSequence=0,e.discontinuitySequence=v(t,(function(t){var n=t.timeline;return n===e.timeline})),e.segments&&e.segments.forEach((function(e,t){e.number=t}))}))},K=function(e){return e?Object.keys(e).reduce((function(t,n){var i=e[n];return t.concat(i.playlists)}),[]):[]},Q=function(e){var t,n=e.dashPlaylists,i=e.locations,r=e.sidxMapping,a=void 0===r?{}:r,o=e.previousManifest;if(!n.length)return{};var s=n[0].attributes,u=s.sourceDuration,c=s.type,l=s.suggestedPresentationDelay,d=s.minimumUpdatePeriod,h=N(n.filter(W)).map(z),f=N(n.filter(G)),p=N(n.filter(Y)),m=n.map((function(e){return e.attributes.captionServices})).filter(Boolean),g={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(t={AUDIO:{},VIDEO:{}},t["CLOSED-CAPTIONS"]={},t.SUBTITLES={},t),uri:"",duration:u,playlists:U(h,a)};d>=0&&(g.minimumUpdatePeriod=1e3*d),i&&(g.locations=i),"dynamic"===c&&(g.suggestedPresentationDelay=l);var v=0===g.playlists.length,y=f.length?H(f,a,v):null,b=p.length?V(p,a):null,_=h.concat(K(y),K(b)),T=_.map((function(e){var t=e.timelineStarts;return t}));return g.timelineStarts=j(T),X(_,g.timelineStarts),y&&(g.mediaGroups.AUDIO.audio=y),b&&(g.mediaGroups.SUBTITLES.subs=b),m.length&&(g.mediaGroups["CLOSED-CAPTIONS"].cc=q(m)),o?D({oldManifest:o,newManifest:g}):g};t.toM3u8=Q;var J=function(e,t,n){var i=e.NOW,r=e.clientOffset,a=e.availabilityStartTime,o=e.timescale,s=void 0===o?1:o,u=e.periodStart,c=void 0===u?0:u,l=e.minimumUpdatePeriod,d=void 0===l?0:l,h=(i+r)/1e3,f=a+c,p=h+d,m=p-f;return Math.ceil((m*s-t)/n)},Z=function(e,t){for(var n=e.type,i=e.minimumUpdatePeriod,r=void 0===i?0:i,a=e.media,o=void 0===a?"":a,s=e.sourceDuration,u=e.timescale,c=void 0===u?1:u,l=e.startNumber,d=void 0===l?1:l,h=e.periodStart,f=[],p=-1,m=0;m<t.length;m++){var g=t[m],v=g.d,y=g.r||0,b=g.t||0;p<0&&(p=b),b&&b>p&&(p=b);var _=void 0;if(y<0){var T=m+1;_=T===t.length?"dynamic"===n&&r>0&&o.indexOf("$Number$")>0?J(e,p,v):(s*c-p)/v:(t[T].t-p)/v}else _=y+1;var w=d+f.length+_,S=d+f.length;while(S<w)f.push({number:S,duration:v/c,time:p,timeline:h}),p+=v,S++}return f},ee=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,te=function(e){return function(t,n,i,r){if("$$"===t)return"$";if("undefined"===typeof e[n])return t;var a=""+e[n];return"RepresentationID"===n?a:(r=i?parseInt(r,10):1,a.length>=r?a:""+new Array(r-a.length+1).join("0")+a)}},ne=function(e,t){return e.replace(ee,te(t))},ie=function(e,t){return e.duration||t?e.duration?C(e):Z(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]},re=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},i=e.initialization,a=void 0===i?{sourceURL:"",range:""}:i,o=_({baseUrl:e.baseUrl,source:ne(a.sourceURL,n),range:a.range}),s=ie(e,t);return s.map((function(t){n.Number=t.number,n.Time=t.time;var i=ne(e.media||"",n),a=e.timescale||1,s=e.presentationTimeOffset||0,u=e.periodStart+(t.time-s)/a,c={uri:i,timeline:t.timeline,duration:t.duration,resolvedUri:(0,r.default)(e.baseUrl||"",i),map:o,number:t.number,presentationTime:u};return c}))},ae=function(e,t){var n=e.baseUrl,i=e.initialization,r=void 0===i?{}:i,a=_({baseUrl:n,source:r.sourceURL,range:r.range}),o=_({baseUrl:n,source:t.media,range:t.mediaRange});return o.map=a,o},oe=function(e,t){var n=e.duration,i=e.segmentUrls,r=void 0===i?[]:i,a=e.periodStart;if(!n&&!t||n&&t)throw new Error(b.SEGMENT_TIME_UNSPECIFIED);var o,s=r.map((function(t){return ae(e,t)}));n&&(o=C(e)),t&&(o=Z(e,t));var u=o.map((function(t,n){if(s[n]){var i=s[n],r=e.timescale||1,o=e.presentationTimeOffset||0;return i.timeline=t.timeline,i.duration=t.duration,i.number=t.number,i.presentationTime=a+(t.time-o)/r,i}})).filter((function(e){return e}));return u},se=function(e){var t,n,i=e.attributes,r=e.segmentInfo;r.template?(n=re,t=d(i,r.template)):r.base?(n=x,t=d(i,r.base)):r.list&&(n=oe,t=d(i,r.list));var a={attributes:i};if(!n)return a;var o=n(t,r.segmentTimeline);if(t.duration){var s=t,u=s.duration,c=s.timescale,l=void 0===c?1:c;t.duration=u/l}else o.length?t.duration=o.reduce((function(e,t){return Math.max(e,Math.ceil(t.duration))}),0):t.duration=0;return a.attributes=t,a.segments=o,r.base&&t.indexRange&&(a.sidx=o[0],a.segments=[]),a},ue=function(e){return e.map(se)};t.toPlaylists=ue;var ce=function(e,t){return m(e.childNodes).filter((function(e){var n=e.tagName;return n===t}))},le=function(e){return e.textContent.trim()},de=function(e){var t=31536e3,n=2592e3,i=86400,r=3600,a=60,o=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/,s=o.exec(e);if(!s)return 0;var u=s.slice(1),c=u[0],l=u[1],d=u[2],h=u[3],f=u[4],p=u[5];return parseFloat(c||0)*t+parseFloat(l||0)*n+parseFloat(d||0)*i+parseFloat(h||0)*r+parseFloat(f||0)*a+parseFloat(p||0)},he=function(e){var t=/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/;return t.test(e)&&(e+="Z"),Date.parse(e)},fe={mediaPresentationDuration:function(e){return de(e)},availabilityStartTime:function(e){return he(e)/1e3},minimumUpdatePeriod:function(e){return de(e)},suggestedPresentationDelay:function(e){return de(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return de(e)},start:function(e){return de(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?de(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},pe=function(e){return e&&e.attributes?m(e.attributes).reduce((function(e,t){var n=fe[t.name]||fe.DEFAULT;return e[t.name]=n(t.value),e}),{}):{}},me={"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"},ge=function(e,t){return t.length?p(e.map((function(e){return t.map((function(t){return(0,r.default)(e,le(t))}))}))):e},ve=function(e){var t=ce(e,"SegmentTemplate")[0],n=ce(e,"SegmentList")[0],i=n&&ce(n,"SegmentURL").map((function(e){return d({tag:"SegmentURL"},pe(e))})),r=ce(e,"SegmentBase")[0],a=n||t,o=a&&ce(a,"SegmentTimeline")[0],s=n||r||t,u=s&&ce(s,"Initialization")[0],c=t&&pe(t);c&&u?c.initialization=u&&pe(u):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});var l={template:c,segmentTimeline:o&&ce(o,"S").map((function(e){return pe(e)})),list:n&&d(pe(n),{segmentUrls:i,initialization:pe(u)}),base:r&&d(pe(r),{initialization:pe(u)})};return Object.keys(l).forEach((function(e){l[e]||delete l[e]})),l},ye=function(e,t,n){return function(i){var r=ce(i,"BaseURL"),a=ge(t,r),o=d(e,pe(i)),s=ve(i);return a.map((function(e){return{segmentInfo:d(n,s),attributes:d(o,{baseUrl:e})}}))}},be=function(e){return e.reduce((function(e,t){var n=pe(t);n.schemeIdUri&&(n.schemeIdUri=n.schemeIdUri.toLowerCase());var i=me[n.schemeIdUri];if(i){e[i]={attributes:n};var r=ce(t,"cenc:pssh")[0];if(r){var a=le(r);e[i].pssh=a&&(0,s.default)(a)}}return e}),{})},_e=function(e){if("urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri){var t="string"!==typeof e.value?[]:e.value.split(";");return t.map((function(e){var t,n;if(n=e,/^CC\d=/.test(e)){var i=e.split("=");t=i[0],n=i[1]}else/^CC\d$/.test(e)&&(t=e);return{channel:t,language:n}}))}if("urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri){var n="string"!==typeof e.value?[]:e.value.split(";");return n.map((function(e){var t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){var n=e.split("="),i=n[0],r=n[1],a=void 0===r?"":r;t.channel=i,t.language=e,a.split(",").forEach((function(e){var n=e.split(":"),i=n[0],r=n[1];"lang"===i?t.language=r:"er"===i?t.easyReader=Number(r):"war"===i?t.aspectRatio=Number(r):"3D"===i&&(t["3D"]=Number(r))}))}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}))}},Te=function(e,t,n){return function(i){var r=pe(i),a=ge(t,ce(i,"BaseURL")),o=ce(i,"Role")[0],s={role:pe(o)},u=d(e,r,s),c=ce(i,"Accessibility")[0],l=_e(pe(c));l&&(u=d(u,{captionServices:l}));var h=ce(i,"Label")[0];if(h&&h.childNodes.length){var f=h.childNodes[0].nodeValue.trim();u=d(u,{label:f})}var m=be(ce(i,"ContentProtection"));Object.keys(m).length&&(u=d(u,{contentProtection:m}));var g=ve(i),v=ce(i,"Representation"),y=d(n,g);return p(v.map(ye(u,a,y)))}},we=function(e,t){return function(n,i){var r=ge(t,ce(n.node,"BaseURL")),a=d(e,{periodStart:n.attributes.start});"number"===typeof n.attributes.duration&&(a.periodDuration=n.attributes.duration);var o=ce(n.node,"AdaptationSet"),s=ve(n.node);return p(o.map(Te(a,r,s)))}},Se=function(e){var t=e.attributes,n=e.priorPeriodAttributes,i=e.mpdType;return"number"===typeof t.start?t.start:n&&"number"===typeof n.start&&"number"===typeof n.duration?n.start+n.duration:n||"static"!==i?null:0},ke=function(e,t){void 0===t&&(t={});var n=t,i=n.manifestUri,r=void 0===i?"":i,a=n.NOW,o=void 0===a?Date.now():a,s=n.clientOffset,u=void 0===s?0:s,c=ce(e,"Period");if(!c.length)throw new Error(b.INVALID_NUMBER_OF_PERIOD);var l=ce(e,"Location"),d=pe(e),h=ge([r],ce(e,"BaseURL"));d.type=d.type||"static",d.sourceDuration=d.mediaPresentationDuration||0,d.NOW=o,d.clientOffset=u,l.length&&(d.locations=l.map(le));var f=[];return c.forEach((function(e,t){var n=pe(e),i=f[t-1];n.start=Se({attributes:n,priorPeriodAttributes:i?i.attributes:null,mpdType:d.type}),f.push({node:e,attributes:n})})),{locations:d.locations,representationInfo:p(f.map(we(d,h)))}};t.inheritAttributes=ke;var Ce=function(e){if(""===e)throw new Error(b.DASH_EMPTY_MANIFEST);var t,n,i=new u.DOMParser;try{t=i.parseFromString(e,"application/xml"),n=t&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(r){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(b.DASH_INVALID_XML);return n};t.stringToMpdXml=Ce;var xe=function(e){var t=ce(e,"UTCTiming")[0];if(!t)return null;var n=pe(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(b.UNSUPPORTED_UTC_TIMING_SCHEME)}return n},Ee=c;t.VERSION=Ee;var Ae=function(e,t){void 0===t&&(t={});var n=ke(Ce(e),t),i=ue(n.representationInfo);return Q({dashPlaylists:i,locations:n.locations,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest})};t.parse=Ae;var Oe=function(e){return xe(Ce(e))};t.parseUTCTiming=Oe},"9ed3":function(e,t,n){"use strict";var i=n("ae93").IteratorPrototype,r=n("7c73"),a=n("5c6c"),o=n("d44e"),s=n("3f8c"),u=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=r(i,{next:a(1,n)}),o(e,c,!1,!0),s[c]=u,e}},"9f7f":function(e,t,n){"use strict";var i=n("d039");function r(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=i((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=i((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a078:function(e,t,n){var i=n("7b0b"),r=n("50c4"),a=n("35a1"),o=n("e95a"),s=n("0366"),u=n("ebb5").aTypedArrayConstructor;e.exports=function(e){var t,n,c,l,d,h,f=i(e),p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=a(f);if(void 0!=v&&!o(v)){d=v.call(f),h=d.next,f=[];while(!(l=h.call(d)).done)f.push(l.value)}for(g&&p>2&&(m=s(m,arguments[2],2)),n=r(f.length),c=new(u(this))(n),t=0;n>t;t++)c[t]=g?m(f[t],t):f[t];return c}},a434:function(e,t,n){"use strict";var i=n("23e7"),r=n("23cb"),a=n("a691"),o=n("50c4"),s=n("7b0b"),u=n("65f0"),c=n("8418"),l=n("1dde"),d=n("ae40"),h=l("splice"),f=d("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,m=Math.min,g=9007199254740991,v="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!h||!f},{splice:function(e,t){var n,i,l,d,h,f,y=s(this),b=o(y.length),_=r(e,b),T=arguments.length;if(0===T?n=i=0:1===T?(n=0,i=b-_):(n=T-2,i=m(p(a(t),0),b-_)),b+n-i>g)throw TypeError(v);for(l=u(y,i),d=0;d<i;d++)h=_+d,h in y&&c(l,d,y[h]);if(l.length=i,n<i){for(d=_;d<b-i;d++)h=d+i,f=d+n,h in y?y[f]=y[h]:delete y[f];for(d=b;d>b-i+n;d--)delete y[d-1]}else if(n>i)for(d=b-i;d>_;d--)h=d+i-1,f=d+n-1,h in y?y[f]=y[h]:delete y[f];for(d=0;d<n;d++)y[d+_]=arguments[d+2];return y.length=b-i+n,l}})},a4d3:function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),a=n("d066"),o=n("c430"),s=n("83ab"),u=n("4930"),c=n("fdbf"),l=n("d039"),d=n("5135"),h=n("e8b5"),f=n("861d"),p=n("825a"),m=n("7b0b"),g=n("fc6a"),v=n("c04e"),y=n("5c6c"),b=n("7c73"),_=n("df75"),T=n("241c"),w=n("057f"),S=n("7418"),k=n("06cf"),C=n("9bf2"),x=n("d1e7"),E=n("9112"),A=n("6eeb"),O=n("5692"),j=n("f772"),I=n("d012"),P=n("90e3"),L=n("b622"),M=n("e538"),D=n("746f"),R=n("d44e"),N=n("69f3"),B=n("b727").forEach,U=j("hidden"),F="Symbol",$="prototype",H=L("toPrimitive"),V=N.set,q=N.getterFor(F),z=Object[$],W=r.Symbol,G=a("JSON","stringify"),Y=k.f,X=C.f,K=w.f,Q=x.f,J=O("symbols"),Z=O("op-symbols"),ee=O("string-to-symbol-registry"),te=O("symbol-to-string-registry"),ne=O("wks"),ie=r.QObject,re=!ie||!ie[$]||!ie[$].findChild,ae=s&&l((function(){return 7!=b(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=Y(z,t);i&&delete z[t],X(e,t,n),i&&e!==z&&X(z,t,i)}:X,oe=function(e,t){var n=J[e]=b(W[$]);return V(n,{type:F,tag:e,description:t}),s||(n.description=t),n},se=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof W},ue=function(e,t,n){e===z&&ue(Z,t,n),p(e);var i=v(t,!0);return p(n),d(J,i)?(n.enumerable?(d(e,U)&&e[U][i]&&(e[U][i]=!1),n=b(n,{enumerable:y(0,!1)})):(d(e,U)||X(e,U,y(1,{})),e[U][i]=!0),ae(e,i,n)):X(e,i,n)},ce=function(e,t){p(e);var n=g(t),i=_(n).concat(pe(n));return B(i,(function(t){s&&!de.call(n,t)||ue(e,t,n[t])})),e},le=function(e,t){return void 0===t?b(e):ce(b(e),t)},de=function(e){var t=v(e,!0),n=Q.call(this,t);return!(this===z&&d(J,t)&&!d(Z,t))&&(!(n||!d(this,t)||!d(J,t)||d(this,U)&&this[U][t])||n)},he=function(e,t){var n=g(e),i=v(t,!0);if(n!==z||!d(J,i)||d(Z,i)){var r=Y(n,i);return!r||!d(J,i)||d(n,U)&&n[U][i]||(r.enumerable=!0),r}},fe=function(e){var t=K(g(e)),n=[];return B(t,(function(e){d(J,e)||d(I,e)||n.push(e)})),n},pe=function(e){var t=e===z,n=K(t?Z:g(e)),i=[];return B(n,(function(e){!d(J,e)||t&&!d(z,e)||i.push(J[e])})),i};if(u||(W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=P(e),n=function(e){this===z&&n.call(Z,e),d(this,U)&&d(this[U],t)&&(this[U][t]=!1),ae(this,t,y(1,e))};return s&&re&&ae(z,t,{configurable:!0,set:n}),oe(t,e)},A(W[$],"toString",(function(){return q(this).tag})),A(W,"withoutSetter",(function(e){return oe(P(e),e)})),x.f=de,C.f=ue,k.f=he,T.f=w.f=fe,S.f=pe,M.f=function(e){return oe(L(e),e)},s&&(X(W[$],"description",{configurable:!0,get:function(){return q(this).description}}),o||A(z,"propertyIsEnumerable",de,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:W}),B(_(ne),(function(e){D(e)})),i({target:F,stat:!0,forced:!u},{for:function(e){var t=String(e);if(d(ee,t))return ee[t];var n=W(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(d(te,e))return te[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),i({target:"Object",stat:!0,forced:!u,sham:!s},{create:le,defineProperty:ue,defineProperties:ce,getOwnPropertyDescriptor:he}),i({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:fe,getOwnPropertySymbols:pe}),i({target:"Object",stat:!0,forced:l((function(){S.f(1)}))},{getOwnPropertySymbols:function(e){return S.f(m(e))}}),G){var me=!u||l((function(){var e=W();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))}));i({target:"JSON",stat:!0,forced:me},{stringify:function(e,t,n){var i,r=[e],a=1;while(arguments.length>a)r.push(arguments[a++]);if(i=t,(f(t)||void 0!==e)&&!se(e))return h(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!se(t))return t}),r[1]=t,G.apply(null,r)}})}W[$][H]||E(W[$],H,W[$].valueOf),R(W,F),I[U]=!0},a559:function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},n.apply(this,arguments)}e.exports=n},a623:function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").every,a=n("a640"),o=n("ae40"),s=a("every"),u=o("every");i({target:"Array",proto:!0,forced:!s||!u},{every:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},a630:function(e,t,n){var i=n("23e7"),r=n("4df4"),a=n("1c7e"),o=!a((function(e){Array.from(e)}));i({target:"Array",stat:!0,forced:o},{from:r})},a640:function(e,t,n){"use strict";var i=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))}},a649:function(e,t,n){var i=n("a8d6"),r=e.exports={WebVTT:n("386a"),VTTCue:n("08ff"),VTTRegion:n("15a4")};i.vttjs=r,i.WebVTT=r.WebVTT;var a=r.VTTCue,o=r.VTTRegion,s=i.VTTCue,u=i.VTTRegion;r.shim=function(){i.VTTCue=a,i.VTTRegion=o},r.restore=function(){i.VTTCue=s,i.VTTRegion=u},i.VTTCue||r.shim()},a691:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},a79d:function(e,t,n){"use strict";var i=n("23e7"),r=n("c430"),a=n("fea9"),o=n("d039"),s=n("d066"),u=n("4840"),c=n("cdf9"),l=n("6eeb"),d=!!a&&o((function(){a.prototype["finally"].call({then:function(){}},(function(){}))}));i({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(e){var t=u(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),r||"function"!=typeof a||a.prototype["finally"]||l(a.prototype,"finally",s("Promise").prototype["finally"])},a7a7:function(e,t,n){"use strict";function i(e,t){0}function r(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function a(e,t){for(var n in t)e[n]=t[n];return e}n.r(t);var o={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,i=t.children,r=t.parent,o=t.data;o.routerView=!0;var u=r.$createElement,c=n.name,l=r.$route,d=r._routerViewCache||(r._routerViewCache={}),h=0,f=!1;while(r&&r._routerRoot!==r)r.$vnode&&r.$vnode.data.routerView&&h++,r._inactive&&(f=!0),r=r.$parent;if(o.routerViewDepth=h,f)return u(d[c],o,i);var p=l.matched[h];if(!p)return d[c]=null,u();var m=d[c]=p.components[c];o.registerRouteInstance=function(e,t){var n=p.instances[c];(t&&n!==e||!t&&n===e)&&(p.instances[c]=t)},(o.hook||(o.hook={})).prepatch=function(e,t){p.instances[c]=t.componentInstance};var g=o.props=s(l,p.props&&p.props[c]);if(g){g=o.props=a({},g);var v=o.attrs=o.attrs||{};for(var y in g)m.props&&y in m.props||(v[y]=g[y],delete g[y])}return u(m,o,i)}};function s(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}var u=/[!'()*]/g,c=function(e){return"%"+e.charCodeAt(0).toString(16)},l=/%2C/g,d=function(e){return encodeURIComponent(e).replace(u,c).replace(l,",")},h=decodeURIComponent;function f(e,t,n){void 0===t&&(t={});var i,r=n||p;try{i=r(e||"")}catch(o){i={}}for(var a in t)i[a]=t[a];return i}function p(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),i=h(n.shift()),r=n.length>0?h(n.join("=")):null;void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]})),t):t}function m(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return d(t);if(Array.isArray(n)){var i=[];return n.forEach((function(e){void 0!==e&&(null===e?i.push(d(t)):i.push(d(t)+"="+d(e)))})),i.join("&")}return d(t)+"="+d(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var g=/\/?$/;function v(e,t,n,i){var r=i&&i.options.stringifyQuery,a=t.query||{};try{a=y(a)}catch(s){}var o={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",type:t.type,query:a,params:t.params||{},fullPath:T(t,r),matched:e?_(e):[]};return n&&(o.redirectedFrom=T(n,r)),Object.freeze(o)}function y(e){if(Array.isArray(e))return e.map(y);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=y(e[n]);return t}return e}var b=v(null,{path:"/"});function _(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function T(e,t){var n=e.path,i=e.query;void 0===i&&(i={});var r=e.hash;void 0===r&&(r="");var a=t||m;return(n||"/")+a(i)+r}function w(e,t){return t===b?e===t:!!t&&(e.path&&t.path?e.path.replace(g,"")===t.path.replace(g,"")&&e.hash===t.hash&&S(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&S(e.query,t.query)&&S(e.params,t.params)))}function S(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e),i=Object.keys(t);return n.length===i.length&&n.every((function(n){var i=e[n],r=t[n];return"object"===typeof i&&"object"===typeof r?S(i,r):String(i)===String(r)}))}function k(e,t){return 0===e.path.replace(g,"/").indexOf(t.path.replace(g,"/"))&&(!t.hash||e.hash===t.hash)&&C(e.query,t.query)}function C(e,t){for(var n in t)if(!(n in e))return!1;return!0}var x,E=[String,Object],A=[String,Array],O={name:"RouterLink",props:{to:{type:E,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:A,default:"click"}},render:function(e){var t=this,n=this.$router,i=this.$route,r=n.resolve(this.to,i,this.append),o=r.location,s=r.route,u=r.href,c={},l=n.options.linkActiveClass,d=n.options.linkExactActiveClass,h=null==l?"router-link-active":l,f=null==d?"router-link-exact-active":d,p=null==this.activeClass?h:this.activeClass,m=null==this.exactActiveClass?f:this.exactActiveClass,g=o.path?v(null,o,null,n):s;c[m]=w(i,g),c[p]=this.exact?c[m]:k(i,g);var y=function(e){j(e)&&(t.replace?n.replace(o):n.push(o))},b={click:j};Array.isArray(this.event)?this.event.forEach((function(e){b[e]=y})):b[this.event]=y;var _={class:c};if("a"===this.tag)_.on=b,_.attrs={href:u};else{var T=I(this.$slots.default);if(T){T.isStatic=!1;var S=T.data=a({},T.data);S.on=b;var C=T.data.attrs=a({},T.data.attrs);C.href=u}else _.on=b}return e(this.tag,_,this.$slots.default)}};function j(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function I(e){if(e)for(var t,n=0;n<e.length;n++){if(t=e[n],"a"===t.tag)return t;if(t.children&&(t=I(t.children)))return t}}function P(e){if(!P.installed||x!==e){P.installed=!0,x=e;var t=function(e){return void 0!==e},n=function(e,n){var i=e.$options._parentVnode;t(i)&&t(i=i.data)&&t(i=i.registerRouteInstance)&&i(e,n)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",o),e.component("RouterLink",O);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}}var L="undefined"!==typeof window;function M(e,t,n){var i=e.charAt(0);if("/"===i)return e;if("?"===i||"#"===i)return t+e;var r=t.split("/");n&&r[r.length-1]||r.pop();for(var a=e.replace(/^\//,"").split("/"),o=0;o<a.length;o++){var s=a[o];".."===s?r.pop():"."!==s&&r.push(s)}return""!==r[0]&&r.unshift(""),r.join("/")}function D(e){var t="",n="",i=e.indexOf("#");i>=0&&(t=e.slice(i),e=e.slice(0,i));var r=e.indexOf("?");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{path:e,query:n,hash:t}}function R(e){return e.replace(/\/\//g,"/")}var N=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},B=ie,U=q,F=z,$=Y,H=ne,V=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function q(e,t){var n,i=[],r=0,a=0,o="",s=t&&t.delimiter||"/";while(null!=(n=V.exec(e))){var u=n[0],c=n[1],l=n.index;if(o+=e.slice(a,l),a=l+u.length,c)o+=c[1];else{var d=e[a],h=n[2],f=n[3],p=n[4],m=n[5],g=n[6],v=n[7];o&&(i.push(o),o="");var y=null!=h&&null!=d&&d!==h,b="+"===g||"*"===g,_="?"===g||"*"===g,T=n[2]||s,w=p||m;i.push({name:f||r++,prefix:h||"",delimiter:T,optional:_,repeat:b,partial:y,asterisk:!!v,pattern:w?K(w):v?".*":"[^"+X(T)+"]+?"})}}return a<e.length&&(o+=e.substr(a)),o&&i.push(o),i}function z(e,t){return Y(q(e,t))}function W(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function G(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function Y(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"===typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,i){for(var r="",a=n||{},o=i||{},s=o.pretty?W:encodeURIComponent,u=0;u<e.length;u++){var c=e[u];if("string"!==typeof c){var l,d=a[c.name];if(null==d){if(c.optional){c.partial&&(r+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(N(d)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(l=s(d[h]),!t[u].test(l))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(l)+"`");r+=(0===h?c.prefix:c.delimiter)+l}}else{if(l=c.asterisk?G(d):s(d),!t[u].test(l))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+l+'"');r+=c.prefix+l}}else r+=c}return r}}function X(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function K(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function Q(e,t){return e.keys=t,e}function J(e){return e.sensitive?"":"i"}function Z(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)t.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return Q(e,t)}function ee(e,t,n){for(var i=[],r=0;r<e.length;r++)i.push(ie(e[r],t,n).source);var a=new RegExp("(?:"+i.join("|")+")",J(n));return Q(a,t)}function te(e,t,n){return ne(q(e,n),t,n)}function ne(e,t,n){N(t)||(n=t||n,t=[]),n=n||{};for(var i=n.strict,r=!1!==n.end,a="",o=0;o<e.length;o++){var s=e[o];if("string"===typeof s)a+=X(s);else{var u=X(s.prefix),c="(?:"+s.pattern+")";t.push(s),s.repeat&&(c+="(?:"+u+c+")*"),c=s.optional?s.partial?u+"("+c+")?":"(?:"+u+"("+c+"))?":u+"("+c+")",a+=c}}var l=X(n.delimiter||"/"),d=a.slice(-l.length)===l;return i||(a=(d?a.slice(0,-l.length):a)+"(?:"+l+"(?=$))?"),a+=r?"$":i&&d?"":"(?="+l+"|$)",Q(new RegExp("^"+a,J(n)),t)}function ie(e,t,n){return N(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?Z(e,t):N(e)?ee(e,t,n):te(e,t,n)}B.parse=U,B.compile=F,B.tokensToFunction=$,B.tokensToRegExp=H;var re=Object.create(null);function ae(e,t,n){try{var i=re[e]||(re[e]=B.compile(e));return i(t||{},{pretty:!0})}catch(r){return""}}function oe(e,t,n,i){var r=t||[],a=n||Object.create(null),o=i||Object.create(null);e.forEach((function(e){se(r,a,o,e)}));for(var s=0,u=r.length;s<u;s++)"*"===r[s]&&(r.push(r.splice(s,1)[0]),u--,s--);return{pathList:r,pathMap:a,nameMap:o}}function se(e,t,n,i,r,a){var o=i.path,s=i.name;var u=i.pathToRegexpOptions||{},c=ce(o,r,u.strict);"boolean"===typeof i.caseSensitive&&(u.sensitive=i.caseSensitive);var l={path:c,regex:ue(c,u),components:i.components||{default:i.component},instances:{},name:s,parent:r,matchAs:a,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};if(i.children&&i.children.forEach((function(i){var r=a?R(a+"/"+i.path):void 0;se(e,t,n,i,l,r)})),void 0!==i.alias){var d=Array.isArray(i.alias)?i.alias:[i.alias];d.forEach((function(a){var o={path:a,children:i.children};se(e,t,n,o,r,l.path||"/")}))}t[l.path]||(e.push(l.path),t[l.path]=l),s&&(n[s]||(n[s]=l))}function ue(e,t){var n=B(e,[],t);return n}function ce(e,t,n){return n||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:R(t.path+"/"+e)}function le(e,t,n,i){var r="string"===typeof e?{path:e}:e;if(r.name||r._normalized)return r;if(!r.path&&r.params&&t){r=a({},r),r._normalized=!0;var o=a(a({},t.params),r.params);if(t.name)r.name=t.name,r.params=o;else if(t.matched.length){var s=t.matched[t.matched.length-1].path;r.path=ae(s,o,"path "+t.path)}else 0;return r}var u=D(r.path||""),c=t&&t.path||"/",l=u.path?M(u.path,c,n||r.append):c,d=f(u.query,r.query,i&&i.options.parseQuery),h=r.hash||u.hash;return h&&"#"!==h.charAt(0)&&(h="#"+h),{_normalized:!0,type:r.type,params:r.params||{},path:l,query:d,hash:h}}function de(e,t){var n=oe(e),i=n.pathList,r=n.pathMap,o=n.nameMap;function s(e){oe(e,i,r,o)}function u(e,n,a){var s=le(e,n,!1,t),u=s.name;if(u){var c=o[u];if(!c)return d(null,s);var l=c.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!==typeof s.params&&(s.params={}),n&&"object"===typeof n.params)for(var h in n.params)!(h in s.params)&&l.indexOf(h)>-1&&(s.params[h]=n.params[h]);if(c)return s.path=ae(c.path,s.params,'named route "'+u+'"'),d(c,s,a)}else if(s.path){s.params=s.params||{};for(var f=0;f<i.length;f++){var p=i[f],m=r[p];if(he(m.regex,s.path,s.params))return d(m,s,a)}}return d(null,s)}function c(e,n){var i=e.redirect,r="function"===typeof i?i(v(e,n,null,t)):i;if("string"===typeof r&&(r={path:r}),!r||"object"!==typeof r)return d(null,n);var a=r,s=a.name,c=a.path,l=n.query,h=n.hash,f=n.params;if(l=a.hasOwnProperty("query")?a.query:l,h=a.hasOwnProperty("hash")?a.hash:h,f=a.hasOwnProperty("params")?a.params:f,s){o[s];return u({_normalized:!0,name:s,query:l,hash:h,params:f},void 0,n)}if(c){var p=fe(c,e),m=ae(p,f,'redirect route with path "'+p+'"');return u({_normalized:!0,path:m,query:l,hash:h},void 0,n)}return d(null,n)}function l(e,t,n){var i=ae(n,t.params,'aliased route with path "'+n+'"'),r=u({_normalized:!0,path:i});if(r){var a=r.matched,o=a[a.length-1];return t.params=r.params,d(o,t)}return d(null,t)}function d(e,n,i){return e&&e.redirect?c(e,i||n):e&&e.matchAs?l(e,n,e.matchAs):(n.params=n.params||{},e&&e.meta&&e.meta.id?n.params.__id__=e.meta.id:n.params.__id__||(n.params.__id__=t.id),e&&e.meta&&e.meta.name&&(e.meta.id?e.components.default.name=e.meta.name+"-"+n.params.__id__:(e=a({},e),e.components={default:{name:e.meta.name+"-"+n.params.__id__,render:e.components["default"].render}})),v(e,n,i,t))}return{match:u,addRoutes:s}}function he(e,t,n){var i=t.match(e);if(!i)return!1;if(!n)return!0;for(var r=1,a=i.length;r<a;++r){var o=e.keys[r-1],s="string"===typeof i[r]?decodeURIComponent(i[r]):i[r];o&&(n[o.name||"pathMatch"]=s)}return!0}function fe(e,t){return M(e,t.parent?t.parent.path:"/",!0)}var pe=Object.create(null);function me(e){window.history.replaceState({key:Oe(),id:e.currentRoute&&e.currentRoute.params.__id__||e.id},"",window.location.href.replace(window.location.origin,"")),window.addEventListener("popstate",(function(e){ve(),e.state&&e.state.key&&je(e.state.key)}))}function ge(e,t,n,i){if(e.app){var r=e.options.scrollBehavior;r&&e.app.$nextTick((function(){var a=ye(),o=r.call(e,t,n,i?a:null);o&&("function"===typeof o.then?o.then((function(e){ke(e,a)})).catch((function(e){0})):ke(o,a))}))}}function ve(){var e=Oe();e&&(pe[e]={x:window.pageXOffset,y:window.pageYOffset})}function ye(){var e=Oe();if(e)return pe[e]}function be(e,t){var n=document.documentElement,i=n.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:r.left-i.left-t.x,y:r.top-i.top-t.y}}function _e(e){return Se(e.x)||Se(e.y)}function Te(e){return{x:Se(e.x)?e.x:window.pageXOffset,y:Se(e.y)?e.y:window.pageYOffset}}function we(e){return{x:Se(e.x)?e.x:0,y:Se(e.y)?e.y:0}}function Se(e){return"number"===typeof e}function ke(e,t){var n="object"===typeof e;if(n&&"string"===typeof e.selector){var i=document.querySelector(e.selector);if(i){var r=e.offset&&"object"===typeof e.offset?e.offset:{};r=we(r),t=be(i,r)}else _e(e)&&(t=Te(e))}else n&&_e(e)&&(t=Te(e));t&&window.scrollTo(t.x,t.y)}var Ce=L&&function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),xe=L&&window.performance&&window.performance.now?window.performance:Date,Ee=Ae();function Ae(){return xe.now().toFixed(3)}function Oe(){return Ee}function je(e){Ee=e}function Ie(e,t,n){ve();var i=window.history;try{n?i.replaceState({id:t,key:Ee},"",e):(Ee=Ae(),i.pushState({id:t,key:Ee},"",e))}catch(r){window.location[n?"replace":"assign"](e)}}function Pe(e,t){Ie(e,t,!0)}function Le(e,t,n){var i=function(r){r>=e.length?n():e[r]?t(e[r],(function(){i(r+1)})):i(r+1)};i(0)}function Me(e){return function(t,n,i){var a=!1,o=0,s=null;De(e,(function(e,t,n,u){if("function"===typeof e&&void 0===e.cid){a=!0,o++;var c,l=Ue((function(t){Be(t)&&(t=t.default),e.resolved="function"===typeof t?t:x.extend(t),n.components[u]=t,o--,o<=0&&i()})),d=Ue((function(e){var t="Failed to resolve async component "+u+": "+e;s||(s=r(e)?e:new Error(t),i(s))}));try{c=e(l,d)}catch(f){d(f)}if(c)if("function"===typeof c.then)c.then(l,d);else{var h=c.component;h&&"function"===typeof h.then&&h.then(l,d)}}})),a||i()}}function De(e,t){return Re(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Re(e){return Array.prototype.concat.apply([],e)}var Ne="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Be(e){return e.__esModule||Ne&&"Module"===e[Symbol.toStringTag]}function Ue(e){var t=!1;return function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];if(!t)return t=!0,e.apply(this,n)}}var Fe=function(e,t){this.router=e,this.base=$e(t),this.current=b,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function $e(e){if(!e)if(L){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function He(e,t){var n,i=Math.max(e.length,t.length);for(n=0;n<i;n++)if(e[n]!==t[n])break;return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}function Ve(e,t,n,i){var r=De(e,(function(e,i,r,a){var o=qe(e,t);if(o)return Array.isArray(o)?o.map((function(e){return n(e,i,r,a)})):n(o,i,r,a)}));return Re(i?r.reverse():r)}function qe(e,t){return"function"!==typeof e&&(e=x.extend(e)),e.options[t]}function ze(e){return Ve(e,"beforeRouteLeave",Ge,!0)}function We(e){return Ve(e,"beforeRouteUpdate",Ge)}function Ge(e,t){if(t)return function(){return e.apply(t,arguments)}}function Ye(e,t,n){return Ve(e,"beforeRouteEnter",(function(e,i,r,a){return Xe(e,r,a,t,n)}))}function Xe(e,t,n,i,r){return function(a,o,s){return e(a,o,(function(e){s(e),"function"===typeof e&&i.push((function(){Ke(e,t.instances,n,r)}))}))}}function Ke(e,t,n,i){t[n]&&!t[n]._isBeingDestroyed?e(t[n]):i()&&setTimeout((function(){Ke(e,t,n,i)}),16)}Fe.prototype.listen=function(e){this.cb=e},Fe.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},Fe.prototype.onError=function(e){this.errorCbs.push(e)},Fe.prototype.transitionTo=function(e,t,n){var i=this,r=this.router.match(e,this.current);this.confirmTransition(r,(function(){i.updateRoute(r),t&&t(r),i.ensureURL(),i.ready||(i.ready=!0,i.readyCbs.forEach((function(e){e(r)})))}),(function(e){n&&n(e),e&&!i.ready&&(i.ready=!0,i.readyErrorCbs.forEach((function(t){t(e)})))}))},Fe.prototype.confirmTransition=function(e,t,n){var a=this,o=this.current,s=function(e){r(e)&&(a.errorCbs.length?a.errorCbs.forEach((function(t){t(e)})):(i(!1,"uncaught error during route navigation:"),console.error(e))),n&&n(e)},u=He(this.current.matched,e.matched),c=u.updated,l=u.deactivated,d=u.activated,h=[].concat(ze(l),this.router.beforeHooks,We(c),d.map((function(e){return e.beforeEnter})),Me(d));this.pending=e;var f=function(t,n){if(a.pending!==e)return s();try{t(e,o,(function(e){!1===e||r(e)?(a.ensureURL(!0),s(e)):"string"===typeof e||"object"===typeof e&&("string"===typeof e.path||"string"===typeof e.name)?(s(),"object"===typeof e&&e.replace?a.replace(e):a.push(e)):n(e)}))}catch(i){s(i)}};Le(h,f,(function(){var n=[],i=function(){return a.current===e},r=Ye(d,n,i),o=r.concat(a.router.resolveHooks);Le(o,f,(function(){if(a.pending!==e)return s();a.pending=null,t(e),a.router.app&&a.router.app.$nextTick((function(){n.forEach((function(e){e()}))}))}))}))},Fe.prototype.updateRoute=function(e){var t=this.current;this.current=e,this.cb&&this.cb(e),this.router.afterHooks.forEach((function(n){n&&n(e,t)}))};var Qe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this,t=this.router,n=t.options.scrollBehavior,i=Ce&&n;i&&me(t);var r=Je(this.base);window.addEventListener("popstate",(function(n){var a=e.current,o=Je(e.base);if(e.current!==b||o!==r){var s=n.state&&n.state.id;if(!s)return window.location.reload();e.transitionTo({path:o,params:{__id__:s}},(function(e){i&&ge(t,e,a,!0)}))}}))},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var i=this;if("object"===typeof e){e.params=e.params||{};var r=e.params.__id__;switch(e.type){case"navigateTo":r||this.router.id++;break;case"redirectTo":case"reLaunch":this.router.id++;break;case"switchTab":break}r||(e.params.__id__=this.router.id)}var a=this,o=a.current;this.transitionTo(e,(function(n){Ie(R(i.base+n.fullPath),e.params.__id__),ge(i.router,n,o,!1),t&&t(n)}),n)},t.prototype.replace=function(e,t,n){var i=this;if("object"===typeof e){switch(e.type){case"navigateTo":case"redirectTo":case"reLaunch":this.router.id++;break;case"switchTab":break}e.params=e.params||{},e.params.__id__=this.router.id}var r=this,a=r.current;this.transitionTo(e,(function(n){Pe(R(i.base+n.fullPath),e.params.__id__),ge(i.router,n,a,!1),t&&t(n)}),n)},t.prototype.ensureURL=function(e){if(Je(this.base)!==this.current.fullPath){var t=R(this.base+this.current.fullPath),n=this.current.params.__id__;e?Ie(t,n):Pe(t,n)}},t.prototype.getCurrentLocation=function(){return{path:Je(this.base),params:{__id__:++this.router.id}}},t}(Fe);function Je(e){var t=decodeURI(window.location.pathname);return e&&0===t.indexOf(e)&&(t=t.slice(e.length)),(t||"/")+m(f(window.location.search))+window.location.hash}var Ze=function(e){function t(t,n,i){e.call(this,t,n),i&&et(this.base)||tt()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this,t=this.router,n=t.options.scrollBehavior,i=Ce&&n;i&&me(t),window.addEventListener(Ce?"popstate":"hashchange",(function(t){var n=e.current;if(tt()){var r=t.state&&t.state.id;if(!r)return window.location.reload();e.transitionTo({path:nt(),params:{__id__:r}},(function(t){i&&ge(e.router,t,n,!0),Ce||at(t.fullPath,t.params.__id__)}))}}))},t.prototype.push=function(e,t,n){var i=this;if("object"===typeof e){e.params=e.params||{};var r=e.params.__id__;switch(e.type){case"navigateTo":r||this.router.id++;break;case"redirectTo":case"reLaunch":this.router.id++;break;case"switchTab":break}r||(e.params.__id__=this.router.id)}var a=this,o=a.current,s=this.router.id;this.transitionTo(e,(function(e){rt(e.fullPath,s),ge(i.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this;if("object"===typeof e){switch(e.type){case"navigateTo":case"redirectTo":case"reLaunch":this.router.id++;break;case"switchTab":break}e.params=e.params||{},e.params.__id__=this.router.id}var r=this,a=r.current,o=this.router.id;this.transitionTo(e,(function(e){at(e.fullPath,o),ge(i.router,e,a,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;nt()!==t&&(e?rt(t,this.current.params.__id__):at(t,this.current.params.__id__))},t.prototype.getCurrentLocation=function(){return{path:nt(),params:{__id__:++this.router.id}}},t}(Fe);function et(e){var t=Je(e);if(!/^\/#/.test(t))return window.location.replace(R(e+"/#"+t)),!0}function tt(){var e=nt();return"/"===e.charAt(0)||(at("/"+e),!1)}function nt(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":decodeURI(e.slice(t+1))}function it(e){var t=window.location.href,n=t.indexOf("#"),i=n>=0?t.slice(0,n):t;return i+"#"+e}function rt(e,t){Ce?Ie(it(e),t):window.location.hash=e}function at(e,t){Ce?Pe(it(e),t):window.location.replace(it(e))}var ot=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index+1).concat(e),i.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,(function(){t.index=n,t.updateRoute(i)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(Fe),st=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=de(e.routes||[],this),this.id=e.id||1,this.minId=e.id||1;var t=e.mode||"hash";switch(this.fallback="history"===t&&!Ce&&!1!==e.fallback,this.fallback&&(t="hash"),L||(t="abstract"),this.mode=t,t){case"history":this.history=new Qe(this,e.base);break;case"hash":this.history=new Ze(this,e.base,this.fallback);break;case"abstract":this.history=new ot(this,e.base);break;default:0}},ut={currentRoute:{configurable:!0}};function ct(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function lt(e,t,n){var i="hash"===n?"#"+t:t;return e?R(e+"/"+i):i}st.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},ut.currentRoute.get=function(){return this.history&&this.history.current},st.prototype.init=function(e){var t=this;if(this.apps.push(e),!this.app){this.app=e;var n=this.history;if(n instanceof Qe){var i=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),i,i)}else if(n instanceof Ze){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},st.prototype.beforeEach=function(e){return ct(this.beforeHooks,e)},st.prototype.beforeResolve=function(e){return ct(this.resolveHooks,e)},st.prototype.afterEach=function(e){return ct(this.afterHooks,e)},st.prototype.onReady=function(e,t){this.history.onReady(e,t)},st.prototype.onError=function(e){this.history.onError(e)},st.prototype.push=function(e,t,n){this.history.push(e,t,n)},st.prototype.replace=function(e,t,n){this.history.replace(e,t,n)},st.prototype.go=function(e){this.history.go(e)},st.prototype.back=function(){this.go(-1)},st.prototype.forward=function(){this.go(1)},st.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},st.prototype.resolve=function(e,t,n){var i=le(e,t||this.history.current,n,this),r=this.match(i,t),a=r.redirectedFrom||r.fullPath,o=this.history.base,s=lt(o,a,this.mode);return{location:i,route:r,href:s,normalizedTo:i,resolved:r}},st.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==b&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(st.prototype,ut),st.install=P,st.version="3.0.1",t["default"]=st},a8d6:function(e,t,n){(function(t){var n;n="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},e.exports=n}).call(this,n("c8ba"))},a975:function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").every,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("every",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},a981:function(e,t){e.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},a9e3:function(e,t,n){"use strict";var i=n("83ab"),r=n("da84"),a=n("94ca"),o=n("6eeb"),s=n("5135"),u=n("c6b6"),c=n("7156"),l=n("c04e"),d=n("d039"),h=n("7c73"),f=n("241c").f,p=n("06cf").f,m=n("9bf2").f,g=n("58a8").trim,v="Number",y=r[v],b=y.prototype,_=u(h(b))==v,T=function(e){var t,n,i,r,a,o,s,u,c=l(e,!1);if("string"==typeof c&&c.length>2)if(c=g(c),t=c.charCodeAt(0),43===t||45===t){if(n=c.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+c}for(a=c.slice(2),o=a.length,s=0;s<o;s++)if(u=a.charCodeAt(s),u<48||u>r)return NaN;return parseInt(a,i)}return+c};if(a(v,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var w,S=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof S&&(_?d((function(){b.valueOf.call(n)})):u(n)!=v)?c(new y(T(t)),n,S):T(t)},k=i?f(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;k.length>C;C++)s(y,w=k[C])&&!s(S,w)&&m(S,w,p(y,w));S.prototype=b,b.constructor=S,o(r,v,S)}},ab13:function(e,t,n){var i=n("b622"),r=i("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(i){}}return!1}},ac1f:function(e,t,n){"use strict";var i=n("23e7"),r=n("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},acac:function(e,t,n){"use strict";var i=n("e2cc"),r=n("f183").getWeakData,a=n("825a"),o=n("861d"),s=n("19aa"),u=n("2266"),c=n("b727"),l=n("5135"),d=n("69f3"),h=d.set,f=d.getterFor,p=c.find,m=c.findIndex,g=0,v=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},b=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};y.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,c){var d=e((function(e,i){s(e,d,t),h(e,{type:t,id:g++,frozen:void 0}),void 0!=i&&u(i,e[c],e,n)})),p=f(t),m=function(e,t,n){var i=p(e),o=r(a(t),!0);return!0===o?v(i).set(t,n):o[i.id]=n,e};return i(d.prototype,{delete:function(e){var t=p(this);if(!o(e))return!1;var n=r(e);return!0===n?v(t)["delete"](e):n&&l(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!o(e))return!1;var n=r(e);return!0===n?v(t).has(e):n&&l(n,t.id)}}),i(d.prototype,n?{get:function(e){var t=p(this);if(o(e)){var n=r(e);return!0===n?v(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),d}}},acd8:function(e,t,n){var i=n("23e7"),r=n("7e12");i({global:!0,forced:parseFloat!=r},{parseFloat:r})},ace4:function(e,t,n){"use strict";var i=n("23e7"),r=n("d039"),a=n("621a"),o=n("825a"),s=n("23cb"),u=n("50c4"),c=n("4840"),l=a.ArrayBuffer,d=a.DataView,h=l.prototype.slice,f=r((function(){return!new l(2).slice(1,void 0).byteLength}));i({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:f},{slice:function(e,t){if(void 0!==h&&void 0===t)return h.call(o(this),e);var n=o(this).byteLength,i=s(e,n),r=s(void 0===t?n:t,n),a=new(c(this,l))(u(r-i)),f=new d(this),p=new d(a),m=0;while(i<r)p.setUint8(m++,f.getUint8(i++));return a}})},ad6d:function(e,t,n){"use strict";var i=n("825a");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ade3:function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},ae40:function(e,t,n){var i=n("83ab"),r=n("d039"),a=n("5135"),o=Object.defineProperty,s={},u=function(e){throw e};e.exports=function(e,t){if(a(s,e))return s[e];t||(t={});var n=[][e],c=!!a(t,"ACCESSORS")&&t.ACCESSORS,l=a(t,0)?t[0]:u,d=a(t,1)?t[1]:void 0;return s[e]=!!n&&!r((function(){if(c&&!i)return!0;var e={length:-1};c?o(e,1,{enumerable:!0,get:u}):e[1]=1,n.call(e,l,d)}))}},ae41:function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-modal-dialog,.vjs-button>.vjs-icon-placeholder:before,.vjs-modal-dialog .vjs-modal-dialog-content{position:absolute;top:0;left:0;width:100%;height:100%}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.vjs-button>.vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABDkAAsAAAAAG6gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV3hY21hcAAAAYQAAADaAAADPv749/pnbHlmAAACYAAAC3AAABHQZg6OcWhlYWQAAA3QAAAAKwAAADYZw251aGhlYQAADfwAAAAdAAAAJA+RCLFobXR4AAAOHAAAABMAAACM744AAGxvY2EAAA4wAAAASAAAAEhF6kqubWF4cAAADngAAAAfAAAAIAE0AIFuYW1lAAAOmAAAASUAAAIK1cf1oHBvc3QAAA/AAAABJAAAAdPExYuNeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS7wTiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGJHcRdyA4RZgQRADK3CxEAAHic7dFZbsMgAEXRS0ycyZnnOeG7y+qC8pU1dHusIOXxuoxaOlwZYWQB0Aea4quIEN4E9LzKbKjzDeM6H/mua6Lmc/p8yhg0lvdYx15ZG8uOLQOGjMp3EzqmzJizYMmKNRu27Nhz4MiJMxeu3Ljz4Ekqm7T8P52G8PP3lnTOVk++Z6iN6QZzNN1F7ptuN7eGOjDUoaGODHVsuvU8MdTO9Hd5aqgzQ50b6sJQl4a6MtS1oW4MdWuoO0PdG+rBUI+GejLUs6FeDPVqqDdDvRvqw1CfhpqM9At0iFLaAAB4nJ1YDXBTVRZ+5/22TUlJ8we0pHlJm7RJf5O8F2j6EymlSPkpxaL8U2xpa3DKj0CBhc2IW4eWKSokIoLsuMqssM64f+jA4HSdWXXXscBq67IOs3FXZ1ZYWVyRFdo899yXtIBQZ90k7717zz3v3HPPOfd854YCCj9cL9dL0RQFOqCbGJnrHb5EayiKIWN8iA/hWBblo6hUWm8TtCDwE80WMJus/irwyxOdxeB0MDb14VNJHnXYoLLSl6FfCUYO9nYPTA8Epg9090LprfbBbZ2hY0UlJUXHQp3/vtWkS6EBv8+rPMq5u9692f/dNxJNiqwC1xPE9TCUgCsSdQWgE3XQD25lkG4CN2xmTcOXWBOyser6RN6KnGbKSbmQ3+d0OI1m2W8QzLLkI2sykrWAgJJEtA8vGGW/2Q+CmT3n8zS9wZwu2DCvtuZKZN3xkrLh36yCZuUomQSqGpY8t/25VfHVhw8z4ebGBtfLb0ya9PCaDc+8dGTvk2dsh6z7WzvowlXKUSWo9MJ15a3KrEP2loOr2Ojhw6iW6hf2BDdEccQvZGpaAy7YovSwq8kr7HGllxpd71rkS6G0Sf11sl9OvMK1+jwPPODxjUwkOim9CU3ix1wNjXDfmJSEn618Bs6lpWwUpU+8PCqLMY650zjq8VhCIP17NEKTx3eaLL+s5Pi6yJWaWjTHLR1jYzPSV9VF/6Ojdb/1kO3Mk3uhHC0x6gc1BjlKQ+nQFxTYdaJkZ7ySVxLBbhR1dsboNXp1tCYKW2LRaEzpYcIx2BKNxaL0ZaUnSqfFoiNhHKR/GkX6PWUSAaJelQaqZL1EpoHNsajSEyPSoJ9IjhIxTdjHLmwZvhRDOiFTY/YeQnvrVZmiTQtGncECXtFTBZLOVwwMRgoXHAkXzMzPn1nAJJ8jYSbMDaqN2waGLzNhih/bZynUBMpIWSg7VYi7DRx2m8ALkIdRCJwI6ArJx2EI8kaDWeTQKeAFk9fjl/1AvwktjQ1P7NjyMGQyfd4vjipX6M/i52D7Cq80kqlcxEcGXRr/FEcgs0u5uGgB4VWuMFfpdn2Re6Hi3PqzmxWKsz6+ae2Pn9hXXw/fqM859UiGC0oKYYILJBqJrsn1Z1E5qOs9rQCiUQRREjm8yJcbHF5cUJufX1vAHlefw0XgUoboS3ETfQlTxBC4SOtuE8VPRJTBSCQSjZCpk7Gqzu+masaZ2y7Zjehho4F3g82BNDkAHpORG4+OCS+f6JTPmtRn/PH1kch6d04sp7AQb25aQ/pqUyXeQ8vrebG8OYQdXOQ+585u0sdW9rqalzRURiJ+9F4MweRFrKUjl1GUYhH1A27WOHw5cTFSFPMo9EeUIGnQTZHIaJ7AHLaOKsOODaNF9jkBjYG2QEsQ2xjMUAx2bBEbeTBWMHwskBjngq56S/yfgkBnWBa4K9sqKtq2t1UI8S9He5XuBRbawAdatrQEAi30Aks2+LM8WeCbalVZkWNylvJ+dqJnzVb+OHlSoKW8nPCP7Rd+CcZ2DdWAGqJ2CBFOphgywFFCFBNtfAbGtNPBCwxvygHeYMZMY9ZboBqwq/pVrsbgN5tkv152ODlbMfiqwGMBgxa4Exz3QhovRIUp6acqZmQzRq0ypDXS2TPLT02YIkQETnOE445oOGxOmXAqUJNNG7XgupMjPq2ua9asrj5yY/yuKteO1Kx0YNJTufrirLe1mZnat7OL6rnUdCWenpW6I8mAnbsY8KWs1PuSovCW9A/Z25PQ24a7cNOqgmTkLmBMgh4THgc4b9k2IVv1/g/F5nGljwPLfOgHAzJzh45V/4+WenTzmMtR5Z7us2Tys909UHqrPY7KbckoxRvRHhmVc3cJGE97uml0R1S0jdULVl7EvZtDFVBF35N9cEdjpgmAiOlFZ+Dtoh93+D3zzHr8RRNZQhnCNMNbcegOvpEwZoL+06cJQ07h+th3fZ/7PVbVC6ngTAV/KoLFuO6+2KFcU651gEb5ugPSIb1D+Xp8V4+k3sEIGnw5mYe4If4k1lFYr6SCzmM2EQ8iWtmwjnBI9kTwe1TlfAmXh7H02by9fW2gsjKwtv0aaURKil4OdV7rDL1MXIFNrhdxohcZXYTnq47WisrKitaObbf5+yvkLi5J6lCNZZ+B6GC38VNBZBDidSS/+mSvh6s+srgC8pyKMvDtt+de3c9fU76ZPfuM8ud4Kv0fyP/LqfepMT/3oZxSqpZaTa1DaQYLY8TFsHYbWYsPoRhRWfL5eSSQbhUGgGC3YLbVMk6PitTFNGpAsNrC6D1VNBKgBHMejaiuRWEWGgsSDBTJjqWIl8kJLlsaLJ2tXDr6xGfT85bM2Q06a46x2HTgvdnV8z5YDy/27J4zt6x2VtkzjoYpkq36kaBr4eQSg7tyiVweWubXZugtadl58ydapfbORfKsDTuZ0OBgx4cfdjCf5tbWNITnL120fdOi1RV1C3uKGzNdwYLcMvZ3BxoPyTOCD1XvXTp7U10gWCVmTV9b3r2z0SkGWovb2hp9I89O8a2smlyaO8muMU+dRmtzp60IzAoFpjLr1n388boLyf0dRvxhsHZ0qbWqDkwqvvpkj4l0fY6EIXRi5sQSrAvsVYwXRy4qJ2EVtD1AN7a0HWth9ymvL1xc3WTUKK/TAHA/bXDVtVWfOMfuGxGZv4Ln/jVr9jc3j1yMv0tndmyt9Vq88Y9gH1wtLX3KWjot5++jWHgAoZZkQ14wGQ20Fli71UmKJAy4xKMSTGbVdybW7FDDAut9XpD5AzWrYO7zQ8qffqF8+Ynd/clrHcdyxGy3a/3+mfNnzC/cBsveTjnTvXf1o6vzOlZw7WtqtdmPK/Errz/6NNtD72zmNOZfbmYdTGHfoofqI79Oc+R2n1lrnL6pOm0Up7kwxhTW12Amm7WYkXR2qYrF2AmgmbAsxZjwy1xpg/m1Je2vrp8v/nz2xpmlBg4E9hrMU341wVpTOh/OfmGvAnra8q6uctr60ZQHV3Q+WMQJykMj8ZsWn2QBOmmHMB+m5pDIpTFonYigiaKAhGEiAHF7EliVnQkjoLVIMPtJpBKHYd3A8GYH9jJzrWwmHx5Qjp7vDAX0suGRym1vtm/9W1/HyR8vczfMs6Sk8DSv855/5dlX9oQq52hT8syyp2rx5Id17IAyAM3wIjQPMOHzytEB64q6D5zT91yNbnx3V/nqnd017S9Y0605k3izoXLpsxde2n38yoOV9s1LcjwzNjbdX6asnBVaBj/6/DwKwPkpcqbDG7BnsXoSqWnUAmottYF6jMSdVyYZh3zVXCjwTiwwHH6sGuRiEHQGzuRX6whZkp123oy1BWE2mEfJ/tvIRtM4ZM5bDXiMsPMaAKOTyc5uL57rqyyc5y5JE5pm1i2S2iUX0CcaQ6lC6Zog7JqSqZmYlosl2K6pwNA84zRnQW6SaALYZQGW5lhCtU/W34N6o+bKfZ8cf3/Cl/+iTX3wBzpOY4mRkeNf3rptycGSshQWgGbYt5jFc2e0+DglIrwl6DVWQ7BuwaJ3Xk1J4VL5urnLl/Wf+gHU/hZoZdKNym6lG+I34FaNeZKcSpJIo2IeCVvpdsDGfKvzJnAwmeD37Ow65ZWwSowpgwX5T69s/rB55dP5BcpgDKFV8p7q2sn/1uc93bVzT/w6UrCqDTWvfCq/oCD/qZXNoUj8BL5Kp6GU017frfNXkAtiiyf/SOCEeLqnd8R/Ql9GlCRfctS6k5chvIBuQ1zCCjoCHL2DHNHIXxMJ3kQeO8lbsUXONeSfA5EjcG6/E+KdhN4bP04vBhdi883+BFBzQbxFbvZzQeY9LNBZc0FNfn5NwfDn6rCTnTw6R8o+gfpf5hCom33cRuiTlss3KHmZjD+BPN+5gXuA2ziS/Q73mLxUkpbKN/eqwz5uK0X9F3h2d1V4nGNgZGBgAOJd776+iue3+crAzc4AAje5Bfcg0xz9YHEOBiYQBQA8FQlFAHicY2BkYGBnAAGOPgaG//85+hkYGVCBMgBGGwNYAAAAeJxjYGBgYB8EmKOPgQEAQ04BfgAAAAAAAA4AaAB+AMwA4AECAUIBbAGYAcICGAJYArQC4AMwA7AD3gQwBJYE3AUkBWYFigYgBmYGtAbqB1gIEghYCG4IhAi2COh4nGNgZGBgUGYoZWBnAAEmIOYCQgaG/2A+AwAYCQG2AHicXZBNaoNAGIZfE5PQCKFQ2lUps2oXBfOzzAESyDKBQJdGR2NQR3QSSE/QE/QEPUUPUHqsvsrXjTMw83zPvPMNCuAWP3DQDAejdm1GjzwS7pMmwi75XngAD4/CQ/oX4TFe4Qt7uMMbOzjuDc0EmXCP/C7cJ38Iu+RP4QEe8CU8pP8WHmOPX2EPz87TPo202ey2OjlnQSXV/6arOjWFmvszMWtd6CqwOlKHq6ovycLaWMWVydXKFFZnmVFlZU46tP7R2nI5ncbi/dDkfDtFBA2DDXbYkhKc+V0Bqs5Zt9JM1HQGBRTm/EezTmZNKtpcAMs9Yu6AK9caF76zoLWIWcfMGOSkVduvSWechqZsz040Ib2PY3urxBJTzriT95lipz+TN1fmAAAAeJxtkMl2wjAMRfOAhABlKm2h80C3+ajgCKKDY6cegP59TYBzukAL+z1Zsq8ctaJTTKPrsUQLbXQQI0EXKXroY4AbDDHCGBNMcYsZ7nCPB8yxwCOe8IwXvOIN7/jAJ76wxHfUqWX+OzgumWAjJMV17i0Ndlr6irLKO+qftdT7i6y4uFSUvCknay+lFYZIZaQcmfH/xIFdYn98bqhra1aKTM/6lWMnyaYirx1rFUQZFBkb2zJUtoXeJCeg0WnLtHeSFc3OtrnozNwqi0TkSpBMDB1nSde5oJXW23hTS2/T0LilglXX7dmFVxLnq5U0vYATHFk3zX3BOisoQHNDFDeZnqKDy9hRNawN7Vh727hFzcJ5c8TILrKZfH7tIPxAFP0BpLeJPA==) format("woff");font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder,.vjs-icon-play{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.vjs-icon-play:before{content:"\\f101"}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:"\\f102"}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,.vjs-icon-pause:before{content:"\\f103"}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before,.vjs-icon-volume-mute:before{content:"\\f104"}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder,.vjs-icon-volume-low{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before,.vjs-icon-volume-low:before{content:"\\f105"}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder,.vjs-icon-volume-mid{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before,.vjs-icon-volume-mid:before{content:"\\f106"}.video-js .vjs-mute-control .vjs-icon-placeholder,.vjs-icon-volume-high{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control .vjs-icon-placeholder:before,.vjs-icon-volume-high:before{content:"\\f107"}.video-js .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-enter:before{content:"\\f108"}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-exit:before{content:"\\f109"}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:"\\f10a"}.vjs-icon-spinner{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-spinner:before{content:"\\f10b"}.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-subtitles:before{content:"\\f10c"}.video-js .vjs-captions-button .vjs-icon-placeholder,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-captions{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-captions-button .vjs-icon-placeholder:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-captions:before{content:"\\f10d"}.video-js .vjs-chapters-button .vjs-icon-placeholder,.vjs-icon-chapters{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:"\\f10e"}.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:"\\f10f"}.vjs-icon-cog{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cog:before{content:"\\f110"}.video-js .vjs-play-progress,.video-js .vjs-volume-level,.vjs-icon-circle,.vjs-seek-to-live-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before,.vjs-seek-to-live-control .vjs-icon-placeholder:before{content:"\\f111"}.vjs-icon-circle-outline{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-outline:before{content:"\\f112"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-inner-circle:before{content:"\\f113"}.vjs-icon-hd{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-hd:before{content:"\\f114"}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before,.vjs-icon-cancel:before{content:"\\f115"}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder,.vjs-icon-replay{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:"\\f116"}.vjs-icon-facebook{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-facebook:before{content:"\\f117"}.vjs-icon-gplus{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-gplus:before{content:"\\f118"}.vjs-icon-linkedin{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-linkedin:before{content:"\\f119"}.vjs-icon-twitter{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-twitter:before{content:"\\f11a"}.vjs-icon-tumblr{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-tumblr:before{content:"\\f11b"}.vjs-icon-pinterest{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pinterest:before{content:"\\f11c"}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-descriptions-button .vjs-icon-placeholder:before,.vjs-icon-audio-description:before{content:"\\f11d"}.video-js .vjs-audio-button .vjs-icon-placeholder,.vjs-icon-audio{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:"\\f11e"}.vjs-icon-next-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-next-item:before{content:"\\f11f"}.vjs-icon-previous-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-previous-item:before{content:"\\f120"}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-enter:before{content:"\\f121"}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-exit:before{content:"\\f122"}.video-js{display:block;vertical-align:top;box-sizing:border-box;color:#fff;background-color:#000;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;word-break:normal}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js[tabindex="-1"]{outline:0}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.video-js.vjs-1-1,.video-js.vjs-16-9,.video-js.vjs-4-3,.video-js.vjs-9-16,.video-js.vjs-fluid{width:100%;max-width:100%}.video-js.vjs-1-1:not(.vjs-audio-only-mode),.video-js.vjs-16-9:not(.vjs-audio-only-mode),.video-js.vjs-4-3:not(.vjs-audio-only-mode),.video-js.vjs-9-16:not(.vjs-audio-only-mode),.video-js.vjs-fluid:not(.vjs-audio-only-mode){height:0}.video-js.vjs-16-9:not(.vjs-audio-only-mode){padding-top:56.25%}.video-js.vjs-4-3:not(.vjs-audio-only-mode){padding-top:75%}.video-js.vjs-9-16:not(.vjs-audio-only-mode){padding-top:177.7777777778%}.video-js.vjs-1-1:not(.vjs-audio-only-mode){padding-top:100%}.video-js.vjs-fill:not(.vjs-audio-only-mode){width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}.video-js.vjs-audio-only-mode .vjs-tech{display:none}body.vjs-full-window{padding:0;margin:0;height:100%}.vjs-full-window .video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen:not(.vjs-ios-native-fs){width:100%!important;height:100%!important;padding-top:0!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-disabled{opacity:.5;cursor:default}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1!important;visibility:visible!important}.vjs-no-js{padding:20px;color:#fff;background-color:#000;font-size:18px;font-family:Arial,Helvetica,sans-serif;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.63332em;width:3em;display:block;position:absolute;top:10px;left:10px;padding:0;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2b333f;background-color:rgba(43,51,63,.7);border-radius:.3em;transition:all .4s}.vjs-big-play-centered .vjs-big-play-button{top:50%;left:50%;margin-top:-.81666em;margin-left:-1.5em}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{border-color:#fff;background-color:#73859f;background-color:rgba(115,133,159,.5);transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button{display:block}.video-js uni-button{background:0 0;border:none;color:inherit;display:inline-block;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vjs-control .vjs-button{width:100%;height:100%}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:linear-gradient(180deg,rgba(0,0,0,.8),hsla(0,0%,100%,0));overflow:auto}.video-js .vjs-modal-dialog>*{box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;overflow:auto}.vjs-menu .vjs-menu-content>*{box-sizing:border-box}.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.js-focus-visible .vjs-menu li.vjs-menu-item:hover,.vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:rgba(115,133,159,.5)}.js-focus-visible .vjs-menu li.vjs-selected:hover,.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.js-focus-visible .vjs-menu :not(.vjs-selected):focus:not(.focus-visible),.video-js .vjs-menu :not(.vjs-selected):focus:not(:focus-visible){background:0 0}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em 0;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:rgba(43,51,63,.7)}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:5em}.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:10em}.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:14em}.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:25em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:12em}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:4em;top:0;padding:0;margin:0;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-no-flex .vjs-menu-button-inline .vjs-menu{display:block;opacity:1;position:relative;width:auto}.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu{width:auto}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.vjs-audio-only-mode .vjs-control-bar,.vjs-has-started .vjs-control-bar{display:flex;visibility:visible;opacity:1;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;pointer-events:none;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio-only-mode.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar,.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible;pointer-events:auto}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;flex:none}.video-js .vjs-control.vjs-visible-text{width:auto;padding-left:1em;padding-right:1em}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.vjs-button>.vjs-icon-placeholder{display:block}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js :not(.vjs-visible-text)>.vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-no-flex .vjs-control{display:table-cell;vertical-align:middle}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{cursor:pointer;flex:auto;display:flex;align-items:center;min-width:4em;touch-action:none}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-liveui .vjs-progress-control{display:flex;align-items:center}.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-holder{flex:auto;transition:all .2s;height:.3em}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.6666666667em}.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled{font-size:1em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;top:-.3333333333em;z-index:1}.video-js .vjs-load-progress{background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:rgba(115,133,159,.75)}.video-js .vjs-time-tooltip{background-color:#fff;background-color:hsla(0,0%,100%,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip{font-size:1em}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.vjs-no-flex .vjs-progress-control .vjs-mouse-display{z-index:0}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.video-js .vjs-slider{position:relative;cursor:pointer;padding:0;margin:0 .45em 0 .45em;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#73859f;background-color:rgba(115,133,159,.5)}.video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;flex:none}.video-js .vjs-volume-control{cursor:pointer;margin-right:1em;display:flex}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{visibility:visible;opacity:0;width:1px;height:1px;margin-left:-1px}.video-js .vjs-volume-panel{transition:width 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel .vjs-volume-control:active,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control,.video-js .vjs-volume-panel:active .vjs-volume-control,.video-js .vjs-volume-panel:focus .vjs-volume-control{visibility:visible;opacity:1;position:relative;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;margin-right:0}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical{left:-3.5em;transition:left 0s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active{width:10em;transition:width .1s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only{width:4em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;width:3em;left:-3000em;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;visibility:visible;opacity:1;position:relative;transition:none}.video-js.vjs-no-flex .vjs-volume-control.vjs-volume-vertical,.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{position:absolute;bottom:3em;left:.5em}.video-js .vjs-volume-panel{display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em;z-index:1}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em;z-index:1}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{top:-.3em;right:-.5em}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{width:3em;height:8em;bottom:8em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.video-js .vjs-volume-tooltip{background-color:#fff;background-color:hsla(0,0%,100%,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-volume-control:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-control:hover .vjs-volume-tooltip{display:block;font-size:1em;visibility:visible}.video-js .vjs-volume-vertical:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-vertical:hover .vjs-volume-tooltip{left:1em;top:-12px}.video-js .vjs-volume-control.disabled:hover .vjs-volume-tooltip{font-size:1em}.video-js .vjs-volume-control .vjs-mouse-display{display:none;position:absolute;width:100%;height:1px;background-color:#000;z-index:1}.video-js .vjs-volume-horizontal .vjs-mouse-display{width:1px;height:100%}.vjs-no-flex .vjs-volume-control .vjs-mouse-display{z-index:0}.video-js .vjs-volume-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-volume-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-volume-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-volume-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.vjs-poster{display:inline-block;vertical-align:middle;background-repeat:no-repeat;background-position:50% 50%;background-size:contain;background-color:#000;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0;height:100%}.vjs-has-started .vjs-poster,.vjs-using-native-controls .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster,.vjs-has-started.vjs-audio-poster-mode .vjs-poster{display:block}.video-js .vjs-live-control{display:flex;align-items:flex-start;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-liveui .vjs-live-control,.video-js:not(.vjs-live) .vjs-live-control{display:none}.video-js .vjs-seek-to-live-control{align-items:center;cursor:pointer;flex:none;display:inline-flex;height:100%;padding-left:.5em;padding-right:.5em;font-size:1em;line-height:3em;width:auto;min-width:4em}.vjs-no-flex .vjs-seek-to-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control,.video-js:not(.vjs-live) .vjs-seek-to-live-control{display:none}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{cursor:auto}.vjs-seek-to-live-control .vjs-icon-placeholder{margin-right:.5em;color:#888}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder{color:red}.video-js .vjs-time-control{flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.vjs-live .vjs-time-control{display:none}.video-js .vjs-current-time,.vjs-no-flex .vjs-current-time{display:none}.video-js .vjs-duration,.vjs-no-flex .vjs-duration{display:none}.vjs-time-divider{display:none;line-height:3em}.vjs-live .vjs-time-divider{display:none}.video-js .vjs-play-control{cursor:pointer}.video-js .vjs-play-control .vjs-icon-placeholder{flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.video-js.vjs-controls-disabled .vjs-text-track-display,.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}uni-video::-webkit-media-text-track-display{-webkit-transform:translateY(-3em);transform:translateY(-3em)}.video-js.vjs-controls-disabled uni-video::-webkit-media-text-track-display,.video-js.vjs-user-inactive.vjs-playing uni-video::-webkit-media-text-track-display{-webkit-transform:translateY(-1.5em);transform:translateY(-1.5em)}.video-js .vjs-picture-in-picture-control{cursor:pointer;flex:none}.video-js.vjs-audio-only-mode .vjs-picture-in-picture-control{display:none}.video-js .vjs-fullscreen-control{cursor:pointer;flex:none}.video-js.vjs-audio-only-mode .vjs-fullscreen-control{display:none}.vjs-playback-rate .vjs-playback-rate-value,.vjs-playback-rate>.vjs-menu-button{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-playback-rate .vjs-playback-rate-value{pointer-events:none;font-size:1.5em;line-height:2;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:"X";font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-shadow:.05em .05em .1em #000;text-align:center;top:50%;vertical-align:middle;width:100%}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;opacity:.85;text-align:left;border:6px solid rgba(43,51,63,.7);box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;border-radius:25px;visibility:hidden}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block;-webkit-animation:vjs-spinner-show 0s linear .3s forwards;animation:vjs-spinner-show 0s linear .3s forwards}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:"";position:absolute;margin:-6px;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:transparent;border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{-webkit-animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite;animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;-webkit-animation-delay:.44s;animation-delay:.44s}@keyframes vjs-spinner-show{to{visibility:visible}}@-webkit-keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{100%{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes vjs-spinner-spin{100%{-webkit-transform:rotate(1turn)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}100%{border-top-color:#73859f}}@-webkit-keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}100%{border-top-color:#73859f}}.video-js.vjs-audio-only-mode .vjs-captions-button{display:none}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js.vjs-audio-only-mode .vjs-descriptions-button{display:none}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:"";font-size:1.5em;line-height:inherit}.video-js.vjs-audio-only-mode .vjs-subs-caps-button{display:none}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:" ";font-size:1.5em;line-height:inherit}.video-js.vjs-layout-small .vjs-current-time,.video-js.vjs-layout-small .vjs-duration,.video-js.vjs-layout-small .vjs-playback-rate,.video-js.vjs-layout-small .vjs-remaining-time,.video-js.vjs-layout-small .vjs-time-divider,.video-js.vjs-layout-small .vjs-volume-control,.video-js.vjs-layout-tiny .vjs-current-time,.video-js.vjs-layout-tiny .vjs-duration,.video-js.vjs-layout-tiny .vjs-playback-rate,.video-js.vjs-layout-tiny .vjs-remaining-time,.video-js.vjs-layout-tiny .vjs-time-divider,.video-js.vjs-layout-tiny .vjs-volume-control,.video-js.vjs-layout-x-small .vjs-current-time,.video-js.vjs-layout-x-small .vjs-duration,.video-js.vjs-layout-x-small .vjs-playback-rate,.video-js.vjs-layout-x-small .vjs-remaining-time,.video-js.vjs-layout-x-small .vjs-time-divider,.video-js.vjs-layout-x-small .vjs-volume-control{display:none}.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover{width:auto;width:auto}.video-js.vjs-layout-tiny .vjs-progress-control,.video-js.vjs-layout-x-small .vjs-progress-control{display:none}.video-js.vjs-layout-x-small .vjs-custom-control-spacer{flex:auto;display:block}.video-js.vjs-layout-x-small.vjs-no-flex .vjs-custom-control-spacer{width:auto}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:rgba(43,51,63,.75);color:#fff;height:70%}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-controls,.vjs-text-track-settings .vjs-track-settings-font{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}@supports (display:grid){.vjs-text-track-settings .vjs-modal-dialog-content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;padding:20px 24px 0 24px}.vjs-track-settings-controls .vjs-default-button{margin-bottom:20px}.vjs-text-track-settings .vjs-track-settings-controls{grid-column:1/-1}.vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content{grid-template-columns:1fr}}.vjs-track-setting>select{margin-right:1em;margin-bottom:.5em}.vjs-text-track-settings fieldset{margin:5px;padding:3px;border:none}.vjs-text-track-settings fieldset span{display:inline-block}.vjs-text-track-settings fieldset span>select{max-width:7.3em}.vjs-text-track-settings legend{color:#fff;margin:0 0 5px 0}.vjs-text-track-settings .vjs-label{position:absolute;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);display:block;margin:0 0 5px 0;padding:0;border:0;height:1px;width:1px;overflow:hidden}.vjs-track-settings-controls uni-button:active,.vjs-track-settings-controls uni-button:focus{outline-style:solid;outline-width:medium;background-image:linear-gradient(0deg,#fff 88%,#73859f)}.vjs-track-settings-controls uni-button:hover{color:rgba(43,51,63,.75)}.vjs-track-settings-controls uni-button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f);color:#2b333f;cursor:pointer;border-radius:2px}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}@media print{.video-js>:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}.vjs-resize-manager{position:absolute;top:0;left:0;width:100%;height:100%;border:none;z-index:-1000}.js-focus-visible .video-js :focus:not(.focus-visible){outline:0}.video-js :focus:not(:focus-visible){outline:0}',""]),e.exports=t},ae93:function(e,t,n){"use strict";var i,r,a,o=n("e163"),s=n("9112"),u=n("5135"),c=n("b622"),l=n("c430"),d=c("iterator"),h=!1,f=function(){return this};[].keys&&(a=[].keys(),"next"in a?(r=o(o(a)),r!==Object.prototype&&(i=r)):h=!0),void 0==i&&(i={}),l||u(i,d)||s(i,d,f),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:h}},aff5:function(e,t,n){var i=n("23e7");i({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},b041:function(e,t,n){"use strict";var i=n("00ee"),r=n("f5df");e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},b17c:function(e,t,n){n("4ae1");var i=n("4a4b"),r=n("6f8f");function a(t,n,o){return r()?e.exports=a=Reflect.construct:e.exports=a=function(e,t,n){var r=[null];r.push.apply(r,t);var a=Function.bind.apply(e,r),o=new a;return n&&i(o,n.prototype),o},a.apply(null,arguments)}e.exports=a},b39a:function(e,t,n){"use strict";var i=n("da84"),r=n("ebb5"),a=n("d039"),o=i.Int8Array,s=r.aTypedArray,u=r.exportTypedArrayMethod,c=[].toLocaleString,l=[].slice,d=!!o&&a((function(){c.call(new o(1))})),h=a((function(){return[1,2].toLocaleString()!=new o([1,2]).toLocaleString()}))||!a((function(){o.prototype.toLocaleString.call([1,2])}));u("toLocaleString",(function(){return c.apply(d?l.call(s(this)):s(this),arguments)}),h)},b575:function(e,t,n){var i,r,a,o,s,u,c,l,d=n("da84"),h=n("06cf").f,f=n("c6b6"),p=n("2cf4").set,m=n("1cdc"),g=d.MutationObserver||d.WebKitMutationObserver,v=d.process,y=d.Promise,b="process"==f(v),_=h(d,"queueMicrotask"),T=_&&_.value;T||(i=function(){var e,t;b&&(e=v.domain)&&e.exit();while(r){t=r.fn,r=r.next;try{t()}catch(n){throw r?o():a=void 0,n}}a=void 0,e&&e.enter()},b?o=function(){v.nextTick(i)}:g&&!m?(s=!0,u=document.createTextNode(""),new g(i).observe(u,{characterData:!0}),o=function(){u.data=s=!s}):y&&y.resolve?(c=y.resolve(void 0),l=c.then,o=function(){l.call(c,i)}):o=function(){p.call(d,i)}),e.exports=T||function(e){var t={fn:e,next:void 0};a&&(a.next=t),r||(r=t,o()),a=t}},b622:function(e,t,n){var i=n("da84"),r=n("5692"),a=n("5135"),o=n("90e3"),s=n("4930"),u=n("fdbf"),c=r("wks"),l=i.Symbol,d=u?l:l&&l.withoutSetter||o;e.exports=function(e){return a(c,e)||(s&&a(l,e)?c[e]=l[e]:c[e]=d("Symbol."+e)),c[e]}},b639:function(e,t,n){"use strict";(function(e){
  8. /*!
  9. * The buffer module from node.js, for the browser.
  10. *
  11. * @author Feross Aboukhadijeh <http://feross.org>
  12. * @license MIT
  13. */
  14. var i=n("1fb5"),r=n("9152"),a=n("e3db");function o(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return l(this,e,t,n)}function l(e,t,n,i){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?g(e,t,n,i):"string"===typeof t?p(e,t,n):v(e,t)}function d(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t,n,i){return d(t),t<=0?u(e,t):void 0!==n?"string"===typeof i?u(e,t).fill(n,i):u(e,t).fill(n):u(e,t)}function f(e,t){if(d(t),e=u(e,t<0?0:0|y(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|_(t,n);e=u(e,i);var r=e.write(t,n);return r!==i&&(e=e.slice(0,r)),e}function m(e,t){var n=t.length<0?0:0|y(t.length);e=u(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function g(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=m(e,t),e}function v(e,t){if(c.isBuffer(t)){var n=0|y(t.length);return e=u(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?u(e,0):m(e,t);if("Buffer"===t.type&&a(t.data))return m(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),c.alloc(+e)}function _(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(e).length;default:if(i)return K(e).length;t=(""+t).toLowerCase(),i=!0}}function T(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function w(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function S(e,t,n,i,r){if(0===e.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:k(e,t,n,i,r);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):k(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function k(e,t,n,i,r){var a,o=1,s=e.length,u=t.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(r){var l=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===l?0:a-l)){if(-1===l&&(l=a),a-l+1===u)return l*o}else-1!==l&&(a-=a-l),l=-1}else for(n+u>s&&(n=s-u),a=n;a>=0;a--){for(var d=!0,h=0;h<u;h++)if(c(e,a+h)!==c(t,h)){d=!1;break}if(d)return a}return-1}function C(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i),i>r&&(i=r)):i=r;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var o=0;o<i;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function x(e,t,n,i){return ee(K(t,e.length-n),e,n,i)}function E(e,t,n,i){return ee(Q(t),e,n,i)}function A(e,t,n,i){return E(e,t,n,i)}function O(e,t,n,i){return ee(Z(t),e,n,i)}function j(e,t,n,i){return ee(J(t,e.length-n),e,n,i)}function I(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);var i=[],r=t;while(r<n){var a,o,s,u,c=e[r],l=null,d=c>239?4:c>223?3:c>191?2:1;if(r+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:a=e[r+1],128===(192&a)&&(u=(31&c)<<6|63&a,u>127&&(l=u));break;case 3:a=e[r+1],o=e[r+2],128===(192&a)&&128===(192&o)&&(u=(15&c)<<12|(63&a)<<6|63&o,u>2047&&(u<55296||u>57343)&&(l=u));break;case 4:a=e[r+1],o=e[r+2],s=e[r+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(u=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s,u>65535&&u<1114112&&(l=u))}null===l?(l=65533,d=1):l>65535&&(l-=65536,i.push(l>>>10&1023|55296),l=56320|1023&l),i.push(l),r+=d}return M(i)}t.Buffer=c,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:o(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return h(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,a=Math.min(n,i);r<a;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},c.isEncoding=function(e){switch(String(e).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}},c.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=c.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var o=e[n];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},c.byteLength=_,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)w(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)w(this,t,t+3),w(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)w(this,t,t+7),w(this,t+1,t+6),w(this,t+2,t+5),w(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?P(this,0,e):T.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,i,r){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,r>>>=0,this===e)return 0;for(var a=r-i,o=n-t,s=Math.min(a,o),u=this.slice(i,r),l=e.slice(t,n),d=0;d<s;++d)if(u[d]!==l[d]){a=u[d],o=l[d];break}return a<o?-1:o<a?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)},c.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return C(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return A(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function M(e){var t=e.length;if(t<=L)return String.fromCharCode.apply(String,e);var n="",i=0;while(i<t)n+=String.fromCharCode.apply(String,e.slice(i,i+=L));return n}function D(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function R(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function N(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",a=t;a<n;++a)r+=X(e[a]);return r}function B(e,t,n){for(var i=e.slice(t,n),r="",a=0;a<i.length;a+=2)r+=String.fromCharCode(i[a]+256*i[a+1]);return r}function U(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,n,i,r,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<a)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function $(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,a=Math.min(e.length-n,2);r<a;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function H(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,a=Math.min(e.length-n,4);r<a;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function V(e,t,n,i,r,a){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function q(e,t,n,i,a){return a||V(e,t,n,4,34028234663852886e22,-34028234663852886e22),r.write(e,t,n,i,23,4),n+4}function z(e,t,n,i,a){return a||V(e,t,n,8,17976931348623157e292,-17976931348623157e292),r.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){var n,i=this.length;if(e=~~e,t=void 0===t?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=c.prototype;else{var r=t-e;n=new c(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);var i=this[e],r=1,a=0;while(++a<t&&(r*=256))i+=this[e+a]*r;return i},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);var i=this[e+--t],r=1;while(t>0&&(r*=256))i+=this[e+--t]*r;return i},c.prototype.readUInt8=function(e,t){return t||U(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||U(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||U(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);var i=this[e],r=1,a=0;while(++a<t&&(r*=256))i+=this[e+a]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||U(e,t,this.length);var i=t,r=1,a=this[e+--i];while(i>0&&(r*=256))a+=this[e+--i]*r;return r*=128,a>=r&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||U(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||U(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||U(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||U(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||U(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||U(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;F(this,e,t,n,r,0)}var a=1,o=0;this[t]=255&e;while(++o<n&&(a*=256))this[t+o]=e/a&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;F(this,e,t,n,r,0)}var a=n-1,o=1;this[t+a]=255&e;while(--a>=0&&(o*=256))this[t+a]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):$(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):$(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):H(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);F(this,e,t,n,r-1,-r)}var a=0,o=1,s=0;this[t]=255&e;while(++a<n&&(o*=256))e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);F(this,e,t,n,r-1,-r)}var a=n-1,o=1,s=0;this[t+a]=255&e;while(--a>=0&&(o*=256))e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):$(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):$(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):H(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return q(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return q(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,a=i-n;if(this===e&&n<t&&t<i)for(r=a-1;r>=0;--r)e[r+t]=this[r+n];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},c.prototype.fill=function(e,t,n,i){if("string"===typeof e){if("string"===typeof t?(i=t,t=0,n=this.length):"string"===typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=c.isBuffer(e)?e:K(new c(e,i).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function G(e){if(e=Y(e).replace(W,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function Y(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function X(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,t){var n;t=t||1/0;for(var i=e.length,r=null,a=[],o=0;o<i;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function Q(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function J(e,t){for(var n,i,r,a=[],o=0;o<e.length;++o){if((t-=2)<0)break;n=e.charCodeAt(o),i=n>>8,r=n%256,a.push(r),a.push(i)}return a}function Z(e){return i.toByteArray(G(e))}function ee(e,t,n,i){for(var r=0;r<i;++r){if(r+n>=t.length||r>=e.length)break;t[r+n]=e[r]}return r}function te(e){return e!==e}}).call(this,n("c8ba"))},b64b:function(e,t,n){var i=n("23e7"),r=n("7b0b"),a=n("df75"),o=n("d039"),s=o((function(){a(1)}));i({target:"Object",stat:!0,forced:s},{keys:function(e){return a(r(e))}})},b690:function(e,t,n){n("ace4"),n("d3b7"),n("5cc6"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7");var i=n("f0de").getUint64,r=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},r=12;0===n.version?(n.earliestPresentationTime=t.getUint32(r),n.firstOffset=t.getUint32(r+4),r+=8):(n.earliestPresentationTime=i(e.subarray(r)),n.firstOffset=i(e.subarray(r+8)),r+=16),r+=2;var a=t.getUint16(r);for(r+=2;a>0;r+=12,a--)n.references.push({referenceType:(128&e[r])>>>7,referencedSize:2147483647&t.getUint32(r),subsegmentDuration:t.getUint32(r+4),startsWithSap:!!(128&e[r+8]),sapType:(112&e[r+8])>>>4,sapDeltaTime:268435455&t.getUint32(r+8)});return n};e.exports=r},b727:function(e,t,n){var i=n("0366"),r=n("44ad"),a=n("7b0b"),o=n("50c4"),s=n("65f0"),u=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,l=4==e,d=6==e,h=5==e||d;return function(f,p,m,g){for(var v,y,b=a(f),_=r(b),T=i(p,m,3),w=o(_.length),S=0,k=g||s,C=t?k(f,w):n?k(f,0):void 0;w>S;S++)if((h||S in _)&&(v=_[S],y=T(v,S,b),e))if(t)C[S]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return S;case 2:u.call(C,v)}else if(l)return!1;return d?-1:c||l?l:C}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},baa5:function(e,t,n){var i=n("23e7"),r=n("e58c");i({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},bb2f:function(e,t,n){var i=n("d039");e.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bbee:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.simpleTypeFromSourceType=void 0;var i=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,r=/^application\/dash\+xml/i,a=function(e){return i.test(e)?"hls":r.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null};t.simpleTypeFromSourceType=a},bee2:function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},bf19:function(e,t,n){"use strict";var i=n("23e7");i({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},c04e:function(e,t,n){var i=n("861d");e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},c19f:function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),a=n("621a"),o=n("2626"),s="ArrayBuffer",u=a[s],c=r[s];i({global:!0,forced:c!==u},{ArrayBuffer:u}),o(s)},c1ac:function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").filter,a=n("4840"),o=i.aTypedArray,s=i.aTypedArrayConstructor,u=i.exportTypedArrayMethod;u("filter",(function(e){var t=r(o(this),e,arguments.length>1?arguments[1]:void 0),n=a(this,this.constructor),i=0,u=t.length,c=new(s(n))(u);while(u>i)c[i]=t[i++];return c}))},c20d:function(e,t,n){var i=n("da84"),r=n("58a8").trim,a=n("5899"),o=i.parseInt,s=/^[+-]?0[Xx]/,u=8!==o(a+"08")||22!==o(a+"0x16");e.exports=u?function(e,t){var n=r(String(e));return o(n,t>>>0||(s.test(n)?16:10))}:o},c3f7:function(e,t,n){"use strict";n("26e9"),n("d3b7"),n("e25e"),n("ac1f"),n("25f0"),n("1276"),Object.defineProperty(t,"__esModule",{value:!0}),t.getHvcCodec=t.getAvcCodec=t.getAv1Codec=void 0;var i=n("0f2d"),r=function(e){var t,n="",r=e[1]>>>3,a=31&e[1],o=e[2]>>>7,s=(64&e[2])>>6,u=(32&e[2])>>5,c=(16&e[2])>>4,l=(8&e[2])>>3,d=(4&e[2])>>2,h=3&e[2];return n+=r+"."+(0,i.padStart)(a,2,"0"),0===o?n+="M":1===o&&(n+="H"),t=2===r&&s?u?12:10:s?10:8,n+="."+(0,i.padStart)(t,2,"0"),n+="."+c,n+="."+l+d+h,n};t.getAv1Codec=r;var a=function(e){var t=(0,i.toHexString)(e[1]),n=(0,i.toHexString)(252&e[2]),r=(0,i.toHexString)(e[3]);return""+t+n+r};t.getAvcCodec=a;var o=function(e){var t="",n=e[1]>>6,r=31&e[1],a=(32&e[1])>>5,o=e.subarray(2,6),s=e.subarray(6,12),u=e[12];1===n?t+="A":2===n?t+="B":3===n&&(t+="C"),t+=r+".";var c=parseInt((0,i.toBinaryString)(o).split("").reverse().join(""),2);c>255&&(c=parseInt((0,i.toBinaryString)(o),2)),t+=c.toString(16)+".",t+=0===a?"L":"H",t+=u;for(var l="",d=0;d<s.length;d++){var h=s[d];h&&(l&&(l+="."),l+=h.toString(16))}return l&&(t+="."+l),t};t.getHvcCodec=o},c430:function(e,t){e.exports=!1},c436:function(e,t,n){"use strict";n("4160"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.forEachMediaGroup=void 0;var i=function(e,t,n){t.forEach((function(t){for(var i in e.mediaGroups[t])for(var r in e.mediaGroups[t][i]){var a=e.mediaGroups[t][i][r];n(a,t,i,r)}}))};t.forEachMediaGroup=i},c52f:function(e,t,n){"use strict";n("99af"),n("c975"),n("ace4"),n("d3b7"),n("5cc6"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),Object.defineProperty(t,"__esModule",{value:!0}),t.findH265Nal=t.findH264Nal=t.findNal=t.discardEmulationPreventionBytes=t.EMULATION_PREVENTION=t.NAL_TYPE_TWO=t.NAL_TYPE_ONE=void 0;var i=n("0f2d"),r=(0,i.toUint8)([0,0,0,1]);t.NAL_TYPE_ONE=r;var a=(0,i.toUint8)([0,0,1]);t.NAL_TYPE_TWO=a;var o=(0,i.toUint8)([0,0,3]);t.EMULATION_PREVENTION=o;var s=function(e){var t=[],n=1;while(n<e.length-2)(0,i.bytesMatch)(e.subarray(n,n+3),o)&&(t.push(n+2),n++),n++;if(0===t.length)return e;var r=e.length-t.length,a=new Uint8Array(r),s=0;for(n=0;n<r;s++,n++)s===t[0]&&(s++,t.shift()),a[n]=e[s];return a};t.discardEmulationPreventionBytes=s;var u=function(e,t,n,o){void 0===o&&(o=1/0),e=(0,i.toUint8)(e),n=[].concat(n);var u,c=0,l=0;while(c<e.length&&(l<o||u)){var d=void 0;if((0,i.bytesMatch)(e.subarray(c),r)?d=4:(0,i.bytesMatch)(e.subarray(c),a)&&(d=3),d){if(l++,u)return s(e.subarray(u,c));var h=void 0;"h264"===t?h=31&e[c+d]:"h265"===t&&(h=e[c+d]>>1&63),-1!==n.indexOf(h)&&(u=c+d),c+=d+("h264"===t?1:2)}else c++}return e.subarray(0,0)};t.findNal=u;var c=function(e,t,n){return u(e,"h264",t,n)};t.findH264Nal=c;var l=function(e,t,n){return u(e,"h265",t,n)};t.findH265Nal=l},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var i=n("da84"),r=n("ce4e"),a="__core-js_shared__",o=i[a]||r(a,{});e.exports=o},c740:function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").findIndex,a=n("44d2"),o=n("ae40"),s="findIndex",u=!0,c=o(s);s in[]&&Array(1)[s]((function(){u=!1})),i({target:"Array",proto:!0,forced:u||!c},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a(s)},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},c8d2:function(e,t,n){var i=n("d039"),r=n("5899"),a="​…᠎";e.exports=function(e){return i((function(){return!!r[e]()||a[e]()!=a||r[e].name!==e}))}},c975:function(e,t,n){"use strict";var i=n("23e7"),r=n("4d64").indexOf,a=n("a640"),o=n("ae40"),s=[].indexOf,u=!!s&&1/[1].indexOf(1,-0)<0,c=a("indexOf"),l=o("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:u||!c||!l},{indexOf:function(e){return u?s.apply(this,arguments)||0:r(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,n){var i=n("5135"),r=n("fc6a"),a=n("4d64").indexOf,o=n("d012");e.exports=function(e,t){var n,s=r(e),u=0,c=[];for(n in s)!i(o,n)&&i(s,n)&&c.push(n);while(t.length>u)i(s,n=t[u++])&&(~a(c,n)||c.push(n));return c}},ca91:function(e,t,n){"use strict";var i=n("ebb5"),r=n("d58f").left,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("reduce",(function(e){return r(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},caad:function(e,t,n){"use strict";var i=n("23e7"),r=n("4d64").includes,a=n("44d2"),o=n("ae40"),s=o("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:!s},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},cb29:function(e,t,n){var i=n("23e7"),r=n("81d5"),a=n("44d2");i({target:"Array",proto:!0},{fill:r}),a("fill")},cc12:function(e,t,n){var i=n("da84"),r=n("861d"),a=i.document,o=r(a)&&r(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},cca6:function(e,t,n){var i=n("23e7"),r=n("60da");i({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},cd26:function(e,t,n){"use strict";var i=n("ebb5"),r=i.aTypedArray,a=i.exportTypedArrayMethod,o=Math.floor;a("reverse",(function(){var e,t=this,n=r(t).length,i=o(n/2),a=0;while(a<i)e=t[a],t[a++]=t[--n],t[n]=e;return t}))},cdf9:function(e,t,n){var i=n("825a"),r=n("861d"),a=n("f069");e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=a.f(e),o=n.resolve;return o(t),n.promise}},ce4e:function(e,t,n){var i=n("da84"),r=n("9112");e.exports=function(e,t){try{r(i,e,t)}catch(n){i[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var i=n("428f"),r=n("da84"),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(i[e])||a(r[e]):i[e]&&i[e][t]||r[e]&&r[e][t]}},d139:function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").find,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("find",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},d1e7:function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!i.call({1:2},1);t.f=a?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},d28b:function(e,t,n){var i=n("746f");i("iterator")},d2bb:function(e,t,n){var i=n("825a"),r=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(a){}return function(n,a){return i(n),r(a),t?e.call(n,a):n.__proto__=a,n}}():void 0)},d3b7:function(e,t,n){var i=n("00ee"),r=n("6eeb"),a=n("b041");i||r(Object.prototype,"toString",a,{unsafe:!0})},d44e:function(e,t,n){var i=n("9bf2").f,r=n("5135"),a=n("b622"),o=a("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},d4ec:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},d58f:function(e,t,n){var i=n("1c0b"),r=n("7b0b"),a=n("44ad"),o=n("50c4"),s=function(e){return function(t,n,s,u){i(n);var c=r(t),l=a(c),d=o(c.length),h=e?d-1:0,f=e?-1:1;if(s<2)while(1){if(h in l){u=l[h],h+=f;break}if(h+=f,e?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;e?h>=0:d>h;h+=f)h in l&&(u=n(u,l[h],h,c));return u}};e.exports={left:s(!1),right:s(!0)}},d5d6:function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").forEach,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("forEach",(function(e){r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},d784:function(e,t,n){"use strict";n("ac1f");var i=n("6eeb"),r=n("d039"),a=n("b622"),o=n("9263"),s=n("9112"),u=a("species"),c=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l=function(){return"$0"==="a".replace(/./,"$0")}(),d=a("replace"),h=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),f=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var p=a(e),m=!r((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),g=m&&!r((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!m||!g||"replace"===e&&(!c||!l||h)||"split"===e&&!f){var v=/./[p],y=n(p,""[e],(function(e,t,n,i,r){return t.exec===o?m&&!r?{done:!0,value:v.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),b=y[0],_=y[1];i(String.prototype,e,b),i(RegExp.prototype,p,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}d&&s(RegExp.prototype[p],"sham",!0)}},d81d:function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").map,a=n("1dde"),o=n("ae40"),s=a("map"),u=o("map");i({target:"Array",proto:!0,forced:!s||!u},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(e,t,n){var i=n("23e7"),r=n("83ab"),a=n("56ef"),o=n("fc6a"),s=n("06cf"),u=n("8418");i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){var t,n,i=o(e),r=s.f,c=a(i),l={},d=0;while(c.length>d)n=r(i,t=c[d++]),void 0!==n&&u(l,t,n);return l}})},dbce:function(e,t,n){n("e439"),n("d3b7"),n("3ca3"),n("10d1"),n("ddb0");var i=n("7037");function r(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}function a(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n["default"]=e,t&&t.set(e,n),n}e.exports=a},dca8:function(e,t,n){var i=n("23e7"),r=n("bb2f"),a=n("d039"),o=n("861d"),s=n("f183").onFreeze,u=Object.freeze,c=a((function(){u(1)}));i({target:"Object",stat:!0,forced:c,sham:!r},{freeze:function(e){return u&&o(e)?u(s(e)):e}})},ddb0:function(e,t,n){var i=n("da84"),r=n("fdbc"),a=n("e260"),o=n("9112"),s=n("b622"),u=s("iterator"),c=s("toStringTag"),l=a.values;for(var d in r){var h=i[d],f=h&&h.prototype;if(f){if(f[u]!==l)try{o(f,u,l)}catch(m){f[u]=l}if(f[c]||o(f,c,d),r[d])for(var p in a)if(f[p]!==a[p])try{o(f,p,a[p])}catch(m){f[p]=a[p]}}}},df75:function(e,t,n){var i=n("ca84"),r=n("7839");e.exports=Object.keys||function(e){return i(e,r)}},e01a:function(e,t,n){"use strict";var i=n("23e7"),r=n("83ab"),a=n("da84"),o=n("5135"),s=n("861d"),u=n("9bf2").f,c=n("e893"),l=a.Symbol;if(r&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var d={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof h?new l(e):void 0===e?l():l(e);return""===e&&(d[t]=!0),t};c(h,l);var f=h.prototype=l.prototype;f.constructor=h;var p=f.toString,m="Symbol(test)"==String(l("test")),g=/^Symbol\((.*)\)[^)]+$/;u(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(o(d,e))return"";var n=m?t.slice(7,-1):t.replace(g,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:h})}},e143:function(e,t,n){"use strict";n.r(t),function(e){
  15. /*!
  16. * Vue.js v2.6.11
  17. * (c) 2014-2021 Evan You
  18. * Released under the MIT License.
  19. */
  20. var n=Object.freeze({});function i(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function a(e){return!0===e}function o(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function u(e){return null!==e&&"object"===typeof e}var c=Object.prototype.toString;function l(e){return"[object Object]"===c.call(e)}function d(e){return"[object RegExp]"===c.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return r(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}g("slot,component",!0);var v=g("key,ref,slot,slot-scope,is");function y(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(e,t){return b.call(e,t)}function T(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var w=/-(\w)/g,S=T((function(e){return e.replace(w,(function(e,t){return t?t.toUpperCase():""}))})),k=T((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),C=/\B([A-Z])/g,x=T((function(e){return e.replace(C,"-$1").toLowerCase()}));function E(e,t){function n(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function A(e,t){return e.bind(t)}var O=Function.prototype.bind?A:E;function j(e,t){t=t||0;var n=e.length-t,i=new Array(n);while(n--)i[n]=e[n+t];return i}function I(e,t){for(var n in t)e[n]=t[n];return e}function P(e){for(var t={},n=0;n<e.length;n++)e[n]&&I(t,e[n]);return t}function L(e,t,n){}var M=function(e,t,n){return!1},D=function(e){return e};function R(e,t){if(e===t)return!0;var n=u(e),i=u(t);if(!n||!i)return!n&&!i&&String(e)===String(t);try{var r=Array.isArray(e),a=Array.isArray(t);if(r&&a)return e.length===t.length&&e.every((function(e,n){return R(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(r||a)return!1;var o=Object.keys(e),s=Object.keys(t);return o.length===s.length&&o.every((function(n){return R(e[n],t[n])}))}catch(c){return!1}}function N(e,t){for(var n=0;n<e.length;n++)if(R(e[n],t))return n;return-1}function B(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var U="data-server-rendered",F=["component","directive","filter"],$=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],H={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:M,isReservedAttr:M,isUnknownElement:M,getTagNamespace:L,parsePlatformTagName:D,mustUseProp:M,async:!0,_lifecycleHooks:$},V=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function q(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function z(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var W=new RegExp("[^"+V.source+".$_\\d]");function G(e){if(!W.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var Y,X="__proto__"in{},K="undefined"!==typeof window,Q="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,J=Q&&WXEnvironment.platform.toLowerCase(),Z=K&&window.navigator.userAgent.toLowerCase(),ee=Z&&/msie|trident/.test(Z),te=Z&&Z.indexOf("msie 9.0")>0,ne=Z&&Z.indexOf("edge/")>0,ie=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===J),re=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),ae={}.watch,oe=!1;if(K)try{var se={};Object.defineProperty(se,"passive",{get:function(){oe=!0}}),window.addEventListener("test-passive",null,se)}catch(Io){}var ue=function(){return void 0===Y&&(Y=!K&&!Q&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),Y},ce=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return"function"===typeof e&&/native code/.test(e.toString())}var de,he="undefined"!==typeof Symbol&&le(Symbol)&&"undefined"!==typeof Reflect&&le(Reflect.ownKeys);de="undefined"!==typeof Set&&le(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var fe=L,pe=0,me=function(){this.id=pe++,this.subs=[]};function ge(e){me.SharedObject.targetStack.push(e),me.SharedObject.target=e,me.target=e}function ve(){me.SharedObject.targetStack.pop(),me.SharedObject.target=me.SharedObject.targetStack[me.SharedObject.targetStack.length-1],me.target=me.SharedObject.target}me.prototype.addSub=function(e){this.subs.push(e)},me.prototype.removeSub=function(e){y(this.subs,e)},me.prototype.depend=function(){me.SharedObject.target&&me.SharedObject.target.addDep(this)},me.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},me.SharedObject={},me.SharedObject.target=null,me.SharedObject.targetStack=[];var ye=function(e,t,n,i,r,a,o,s){this.tag=e,this.data=t,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},be={child:{configurable:!0}};be.child.get=function(){return this.componentInstance},Object.defineProperties(ye.prototype,be);var _e=function(e){void 0===e&&(e="");var t=new ye;return t.text=e,t.isComment=!0,t};function Te(e){return new ye(void 0,void 0,void 0,String(e))}function we(e){var t=new ye(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Se=Array.prototype,ke=Object.create(Se),Ce=["push","pop","shift","unshift","splice","sort","reverse"];Ce.forEach((function(e){var t=Se[e];z(ke,e,(function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];var r,a=t.apply(this,n),o=this.__ob__;switch(e){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2);break}return r&&o.observeArray(r),o.dep.notify(),a}))}));var xe=Object.getOwnPropertyNames(ke),Ee=!0;function Ae(e){Ee=e}var Oe=function(e){this.value=e,this.dep=new me,this.vmCount=0,z(e,"__ob__",this),Array.isArray(e)?(X?je(e,ke):Ie(e,ke,xe),this.observeArray(e)):this.walk(e)};function je(e,t){e.__proto__=t}function Ie(e,t,n){for(var i=0,r=n.length;i<r;i++){var a=n[i];z(e,a,t[a])}}function Pe(e,t){var n;if(u(e)&&!(e instanceof ye))return _(e,"__ob__")&&e.__ob__ instanceof Oe?n=e.__ob__:Ee&&!ue()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Oe(e)),t&&n&&n.vmCount++,n}function Le(e,t,n,i,r){var a=new me,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var s=o&&o.get,u=o&&o.set;s&&!u||2!==arguments.length||(n=e[t]);var c=!r&&Pe(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return me.SharedObject.target&&(a.depend(),c&&(c.dep.depend(),Array.isArray(t)&&Re(t))),t},set:function(t){var i=s?s.call(e):n;t===i||t!==t&&i!==i||s&&!u||(u?u.call(e,t):n=t,c=!r&&Pe(t),a.notify())}})}}function Me(e,t,n){if(Array.isArray(e)&&h(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var i=e.__ob__;return e._isVue||i&&i.vmCount?n:i?(Le(i.value,t,n),i.dep.notify(),n):(e[t]=n,n)}function De(e,t){if(Array.isArray(e)&&h(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||_(e,t)&&(delete e[t],n&&n.dep.notify())}}function Re(e){for(var t=void 0,n=0,i=e.length;n<i;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Re(t)}Oe.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Le(e,t[n])},Oe.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Pe(e[t])};var Ne=H.optionMergeStrategies;function Be(e,t){if(!t)return e;for(var n,i,r,a=he?Reflect.ownKeys(t):Object.keys(t),o=0;o<a.length;o++)n=a[o],"__ob__"!==n&&(i=e[n],r=t[n],_(e,n)?i!==r&&l(i)&&l(r)&&Be(i,r):Me(e,n,r));return e}function Ue(e,t,n){return n?function(){var i="function"===typeof t?t.call(n,n):t,r="function"===typeof e?e.call(n,n):e;return i?Be(i,r):r}:t?e?function(){return Be("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function Fe(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?$e(n):n}function $e(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function He(e,t,n,i){var r=Object.create(e||null);return t?I(r,t):r}Ne.data=function(e,t,n){return n?Ue(e,t,n):t&&"function"!==typeof t?e:Ue(e,t)},$.forEach((function(e){Ne[e]=Fe})),F.forEach((function(e){Ne[e+"s"]=He})),Ne.watch=function(e,t,n,i){if(e===ae&&(e=void 0),t===ae&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var r={};for(var a in I(r,e),t){var o=r[a],s=t[a];o&&!Array.isArray(o)&&(o=[o]),r[a]=o?o.concat(s):Array.isArray(s)?s:[s]}return r},Ne.props=Ne.methods=Ne.inject=Ne.computed=function(e,t,n,i){if(!e)return t;var r=Object.create(null);return I(r,e),t&&I(r,t),r},Ne.provide=Ue;var Ve=function(e,t){return void 0===t?e:t};function qe(e,t){var n=e.props;if(n){var i,r,a,o={};if(Array.isArray(n)){i=n.length;while(i--)r=n[i],"string"===typeof r&&(a=S(r),o[a]={type:null})}else if(l(n))for(var s in n)r=n[s],a=S(s),o[a]=l(r)?r:{type:r};else 0;e.props=o}}function ze(e,t){var n=e.inject;if(n){var i=e.inject={};if(Array.isArray(n))for(var r=0;r<n.length;r++)i[n[r]]={from:n[r]};else if(l(n))for(var a in n){var o=n[a];i[a]=l(o)?I({from:a},o):{from:o}}else 0}}function We(e){var t=e.directives;if(t)for(var n in t){var i=t[n];"function"===typeof i&&(t[n]={bind:i,update:i})}}function Ge(e,t,n){if("function"===typeof t&&(t=t.options),qe(t,n),ze(t,n),We(t),!t._base&&(t.extends&&(e=Ge(e,t.extends,n)),t.mixins))for(var i=0,r=t.mixins.length;i<r;i++)e=Ge(e,t.mixins[i],n);var a,o={};for(a in e)s(a);for(a in t)_(e,a)||s(a);function s(i){var r=Ne[i]||Ve;o[i]=r(e[i],t[i],n,i)}return o}function Ye(e,t,n,i){if("string"===typeof n){var r=e[t];if(_(r,n))return r[n];var a=S(n);if(_(r,a))return r[a];var o=k(a);if(_(r,o))return r[o];var s=r[n]||r[a]||r[o];return s}}function Xe(e,t,n,i){var r=t[e],a=!_(n,e),o=n[e],s=Ze(Boolean,r.type);if(s>-1)if(a&&!_(r,"default"))o=!1;else if(""===o||o===x(e)){var u=Ze(String,r.type);(u<0||s<u)&&(o=!0)}if(void 0===o){o=Ke(i,r,e);var c=Ee;Ae(!0),Pe(o),Ae(c)}return o}function Ke(e,t,n){if(_(t,"default")){var i=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof i&&"Function"!==Qe(t.type)?i.call(e):i}}function Qe(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Je(e,t){return Qe(e)===Qe(t)}function Ze(e,t){if(!Array.isArray(t))return Je(t,e)?0:-1;for(var n=0,i=t.length;n<i;n++)if(Je(t[n],e))return n;return-1}function et(e,t,n){ge();try{if(t){var i=t;while(i=i.$parent){var r=i.$options.errorCaptured;if(r)for(var a=0;a<r.length;a++)try{var o=!1===r[a].call(i,e,t,n);if(o)return}catch(Io){nt(Io,i,"errorCaptured hook")}}}nt(e,t,n)}finally{ve()}}function tt(e,t,n,i,r){var a;try{a=n?e.apply(t,n):e.call(t),a&&!a._isVue&&f(a)&&!a._handled&&(a.catch((function(e){return et(e,i,r+" (Promise/async)")})),a._handled=!0)}catch(Io){et(Io,i,r)}return a}function nt(e,t,n){if(H.errorHandler)try{return H.errorHandler.call(null,e,t,n)}catch(Io){Io!==e&&it(Io,null,"config.errorHandler")}it(e,t,n)}function it(e,t,n){if(!K&&!Q||"undefined"===typeof console)throw e;console.error(e)}var rt,at=!1,ot=[],st=!1;function ut(){st=!1;var e=ot.slice(0);ot.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&le(Promise)){var ct=Promise.resolve();rt=function(){ct.then(ut),ie&&setTimeout(L)},at=!0}else if(ee||"undefined"===typeof MutationObserver||!le(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())rt="undefined"!==typeof setImmediate&&le(setImmediate)?function(){setImmediate(ut)}:function(){setTimeout(ut,0)};else{var lt=1,dt=new MutationObserver(ut),ht=document.createTextNode(String(lt));dt.observe(ht,{characterData:!0}),rt=function(){lt=(lt+1)%2,ht.data=String(lt)},at=!0}function ft(e,t){var n;if(ot.push((function(){if(e)try{e.call(t)}catch(Io){et(Io,t,"nextTick")}else n&&n(t)})),st||(st=!0,rt()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var pt=new de;function mt(e){gt(e,pt),pt.clear()}function gt(e,t){var n,i,r=Array.isArray(e);if(!(!r&&!u(e)||Object.isFrozen(e)||e instanceof ye)){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(r){n=e.length;while(n--)gt(e[n],t)}else{i=Object.keys(e),n=i.length;while(n--)gt(e[i[n]],t)}}}var vt=T((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var i="!"===e.charAt(0);return e=i?e.slice(1):e,{name:e,once:n,capture:i,passive:t}}));function yt(e,t){function n(){var e=arguments,i=n.fns;if(!Array.isArray(i))return tt(i,null,arguments,t,"v-on handler");for(var r=i.slice(),a=0;a<r.length;a++)tt(r[a],null,e,t,"v-on handler")}return n.fns=e,n}function bt(e,t,n,r,o,s){var u,c,l,d;for(u in e)c=e[u],l=t[u],d=vt(u),i(c)||(i(l)?(i(c.fns)&&(c=e[u]=yt(c,s)),a(d.once)&&(c=e[u]=o(d.name,c,d.capture)),n(d.name,c,d.capture,d.passive,d.params)):c!==l&&(l.fns=c,e[u]=l));for(u in t)i(e[u])&&(d=vt(u),r(d.name,t[u],d.capture))}function _t(e,t,n){var o;e instanceof ye&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function u(){n.apply(this,arguments),y(o.fns,u)}i(s)?o=yt([u]):r(s.fns)&&a(s.merged)?(o=s,o.fns.push(u)):o=yt([s,u]),o.merged=!0,e[t]=o}function Tt(e,t,n,a){var o=t.options.mpOptions&&t.options.mpOptions.properties;if(i(o))return n;var s=t.options.mpOptions.externalClasses||[],u=e.attrs,c=e.props;if(r(u)||r(c))for(var l in o){var d=x(l),h=St(n,c,l,d,!0)||St(n,u,l,d,!1);h&&n[l]&&-1!==s.indexOf(d)&&a[S(n[l])]&&(n[l]=a[S(n[l])])}return n}function wt(e,t,n,a){var o=t.options.props;if(i(o))return Tt(e,t,{},a);var s={},u=e.attrs,c=e.props;if(r(u)||r(c))for(var l in o){var d=x(l);St(s,c,l,d,!0)||St(s,u,l,d,!1)}return Tt(e,t,s,a)}function St(e,t,n,i,a){if(r(t)){if(_(t,n))return e[n]=t[n],a||delete t[n],!0;if(_(t,i))return e[n]=t[i],a||delete t[i],!0}return!1}function kt(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function Ct(e){return s(e)?[Te(e)]:Array.isArray(e)?Et(e):void 0}function xt(e){return r(e)&&r(e.text)&&o(e.isComment)}function Et(e,t){var n,o,u,c,l=[];for(n=0;n<e.length;n++)o=e[n],i(o)||"boolean"===typeof o||(u=l.length-1,c=l[u],Array.isArray(o)?o.length>0&&(o=Et(o,(t||"")+"_"+n),xt(o[0])&&xt(c)&&(l[u]=Te(c.text+o[0].text),o.shift()),l.push.apply(l,o)):s(o)?xt(c)?l[u]=Te(c.text+o):""!==o&&l.push(Te(o)):xt(o)&&xt(c)?l[u]=Te(c.text+o.text):(a(e._isVList)&&r(o.tag)&&i(o.key)&&r(t)&&(o.key="__vlist"+t+"_"+n+"__"),l.push(o)));return l}function At(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Ot(e){var t=jt(e.$options.inject,e);t&&(Ae(!1),Object.keys(t).forEach((function(n){Le(e,n,t[n])})),Ae(!0))}function jt(e,t){if(e){for(var n=Object.create(null),i=he?Reflect.ownKeys(e):Object.keys(e),r=0;r<i.length;r++){var a=i[r];if("__ob__"!==a){var o=e[a].from,s=t;while(s){if(s._provided&&_(s._provided,o)){n[a]=s._provided[o];break}s=s.$parent}if(!s)if("default"in e[a]){var u=e[a].default;n[a]="function"===typeof u?u.call(t):u}else 0}}return n}}function It(e,t){if(!e||!e.length)return{};for(var n={},i=0,r=e.length;i<r;i++){var a=e[i],o=a.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,a.context!==t&&a.fnContext!==t||!o||null==o.slot)a.asyncMeta&&a.asyncMeta.data&&"page"===a.asyncMeta.data.slot?(n["page"]||(n["page"]=[])).push(a):(n.default||(n.default=[])).push(a);else{var s=o.slot,u=n[s]||(n[s]=[]);"template"===a.tag?u.push.apply(u,a.children||[]):u.push(a)}}for(var c in n)n[c].every(Pt)&&delete n[c];return n}function Pt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Lt(e,t,i){var r,a=Object.keys(t).length>0,o=e?!!e.$stable:!a,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&i&&i!==n&&s===i.$key&&!a&&!i.$hasNormal)return i;for(var u in r={},e)e[u]&&"$"!==u[0]&&(r[u]=Mt(t,u,e[u]))}else r={};for(var c in t)c in r||(r[c]=Dt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),z(r,"$stable",o),z(r,"$key",s),z(r,"$hasNormal",a),r}function Mt(e,t,n){var i=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:Ct(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:i,enumerable:!0,configurable:!0}),i}function Dt(e,t){return function(){return e[t]}}function Rt(e,t){var n,i,a,o,s;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),i=0,a=e.length;i<a;i++)n[i]=t(e[i],i,i,i);else if("number"===typeof e)for(n=new Array(e),i=0;i<e;i++)n[i]=t(i+1,i,i,i);else if(u(e))if(he&&e[Symbol.iterator]){n=[];var c=e[Symbol.iterator](),l=c.next();while(!l.done)n.push(t(l.value,n.length,i,i++)),l=c.next()}else for(o=Object.keys(e),n=new Array(o.length),i=0,a=o.length;i<a;i++)s=o[i],n[i]=t(e[s],s,i,i);return r(n)||(n=[]),n._isVList=!0,n}function Nt(e,t,n,i){var r,a=this.$scopedSlots[e];a?(n=n||{},i&&(n=I(I({},i),n)),r=a(n,this,n._i)||t):r=this.$slots[e]||t;var o=n&&n.slot;return o?this.$createElement("template",{slot:o},r):r}function Bt(e){return Ye(this.$options,"filters",e,!0)||D}function Ut(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Ft(e,t,n,i,r){var a=H.keyCodes[t]||n;return r&&i&&!H.keyCodes[t]?Ut(r,i):a?Ut(a,e):i?x(i)!==t:void 0}function $t(e,t,n,i,r){if(n)if(u(n)){var a;Array.isArray(n)&&(n=P(n));var o=function(o){if("class"===o||"style"===o||v(o))a=e;else{var s=e.attrs&&e.attrs.type;a=i||H.mustUseProp(t,s,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var u=S(o),c=x(o);if(!(u in a)&&!(c in a)&&(a[o]=n[o],r)){var l=e.on||(e.on={});l["update:"+o]=function(e){n[o]=e}}};for(var s in n)o(s)}else;return e}function Ht(e,t){var n=this._staticTrees||(this._staticTrees=[]),i=n[e];return i&&!t||(i=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),qt(i,"__static__"+e,!1)),i}function Vt(e,t,n){return qt(e,"__once__"+t+(n?"_"+n:""),!0),e}function qt(e,t,n){if(Array.isArray(e))for(var i=0;i<e.length;i++)e[i]&&"string"!==typeof e[i]&&zt(e[i],t+"_"+i,n);else zt(e,t,n)}function zt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Wt(e,t){if(t)if(l(t)){var n=e.on=e.on?I({},e.on):{};for(var i in t){var r=n[i],a=t[i];n[i]=r?[].concat(r,a):a}}else;return e}function Gt(e,t,n,i){t=t||{$stable:!n};for(var r=0;r<e.length;r++){var a=e[r];Array.isArray(a)?Gt(a,t,n):a&&(a.proxy&&(a.fn.proxy=!0),t[a.key]=a.fn)}return i&&(t.$key=i),t}function Yt(e,t){for(var n=0;n<t.length;n+=2){var i=t[n];"string"===typeof i&&i&&(e[t[n]]=t[n+1])}return e}function Xt(e,t){return"string"===typeof e?t+e:e}function Kt(e){e._o=Vt,e._n=m,e._s=p,e._l=Rt,e._t=Nt,e._q=R,e._i=N,e._m=Ht,e._f=Bt,e._k=Ft,e._b=$t,e._v=Te,e._e=_e,e._u=Gt,e._g=Wt,e._d=Yt,e._p=Xt}function Qt(e,t,i,r,o){var s,u=this,c=o.options;_(r,"_uid")?(s=Object.create(r),s._original=r):(s=r,r=r._original);var l=a(c._compiled),d=!l;this.data=e,this.props=t,this.children=i,this.parent=r,this.listeners=e.on||n,this.injections=jt(c.inject,r),this.slots=function(){return u.$slots||Lt(e.scopedSlots,u.$slots=It(i,r)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Lt(e.scopedSlots,this.slots())}}),l&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=Lt(e.scopedSlots,this.$slots)),c._scopeId?this._c=function(e,t,n,i){var a=dn(s,e,t,n,i,d);return a&&!Array.isArray(a)&&(a.fnScopeId=c._scopeId,a.fnContext=r),a}:this._c=function(e,t,n,i){return dn(s,e,t,n,i,d)}}function Jt(e,t,i,a,o){var s=e.options,u={},c=s.props;if(r(c))for(var l in c)u[l]=Xe(l,c,t||n);else r(i.attrs)&&en(u,i.attrs),r(i.props)&&en(u,i.props);var d=new Qt(i,u,o,a,e),h=s.render.call(null,d._c,d);if(h instanceof ye)return Zt(h,i,d.parent,s,d);if(Array.isArray(h)){for(var f=Ct(h)||[],p=new Array(f.length),m=0;m<f.length;m++)p[m]=Zt(f[m],i,d.parent,s,d);return p}}function Zt(e,t,n,i,r){var a=we(e);return a.fnContext=n,a.fnOptions=i,t.slot&&((a.data||(a.data={})).slot=t.slot),a}function en(e,t){for(var n in t)e[S(n)]=t[n]}Kt(Qt.prototype);var tn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;tn.prepatch(n,n)}else{var i=e.componentInstance=an(e,jn);i.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,i=t.componentInstance=e.componentInstance;Dn(i,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(Un(n,"onServiceCreated"),Un(n,"onServiceAttached"),n._isMounted=!0,Un(n,"mounted")),e.data.keepAlive&&(t._isMounted?Jn(n):Nn(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Bn(t,!0):t.$destroy())}},nn=Object.keys(tn);function rn(e,t,n,o,s){if(!i(e)){var c=n.$options._base;if(u(e)&&(e=c.extend(e)),"function"===typeof e){var l;if(i(e.cid)&&(l=e,e=Tn(l,c),void 0===e))return _n(l,t,n,o,s);t=t||{},Ti(e),r(t.model)&&un(e.options,t);var d=wt(t,e,s,n);if(a(e.options.functional))return Jt(e,d,t,n,o);var h=t.on;if(t.on=t.nativeOn,a(e.options.abstract)){var f=t.slot;t={},f&&(t.slot=f)}on(t);var p=e.options.name||s,m=new ye("vue-component-"+e.cid+(p?"-"+p:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:d,listeners:h,tag:s,children:o},l);return m}}}function an(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;return r(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns),new e.componentOptions.Ctor(n)}function on(e){for(var t=e.hook||(e.hook={}),n=0;n<nn.length;n++){var i=nn[n],r=t[i],a=tn[i];r===a||r&&r._merged||(t[i]=r?sn(a,r):a)}}function sn(e,t){var n=function(n,i){e(n,i),t(n,i)};return n._merged=!0,n}function un(e,t){var n=e.model&&e.model.prop||"value",i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var a=t.on||(t.on={}),o=a[i],s=t.model.callback;r(o)?(Array.isArray(o)?-1===o.indexOf(s):o!==s)&&(a[i]=[s].concat(o)):a[i]=s}var cn=1,ln=2;function dn(e,t,n,i,r,o){return(Array.isArray(n)||s(n))&&(r=i,i=n,n=void 0),a(o)&&(r=ln),hn(e,t,n,i,r)}function hn(e,t,n,i,a){if(r(n)&&r(n.__ob__))return _e();if(r(n)&&r(n.is)&&(t=n.is),!t)return _e();var o,s,u;(Array.isArray(i)&&"function"===typeof i[0]&&(n=n||{},n.scopedSlots={default:i[0]},i.length=0),a===ln?i=Ct(i):a===cn&&(i=kt(i)),"string"===typeof t)?(s=e.$vnode&&e.$vnode.ns||H.getTagNamespace(t),o=H.isReservedTag(t)?new ye(H.parsePlatformTagName(t),n,i,void 0,void 0,e):n&&n.pre||!r(u=Ye(e.$options,"components",t))?new ye(t,n,i,void 0,void 0,e):rn(u,n,e,i,t)):o=rn(t,n,e,i);return Array.isArray(o)?o:r(o)?(r(s)&&fn(o,s),r(n)&&pn(n),o):_e()}function fn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),r(e.children))for(var o=0,s=e.children.length;o<s;o++){var u=e.children[o];r(u.tag)&&(i(u.ns)||a(n)&&"svg"!==u.tag)&&fn(u,t,n)}}function pn(e){u(e.style)&&mt(e.style),u(e.class)&&mt(e.class)}function mn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,i=e.$vnode=t._parentVnode,r=i&&i.context;e.$slots=It(t._renderChildren,r),e.$scopedSlots=n,e._c=function(t,n,i,r){return dn(e,t,n,i,r,!1)},e.$createElement=function(t,n,i,r){return dn(e,t,n,i,r,!0)};var a=i&&i.data;Le(e,"$attrs",a&&a.attrs||n,null,!0),Le(e,"$listeners",t._parentListeners||n,null,!0)}var gn,vn=null;function yn(e){Kt(e.prototype),e.prototype.$nextTick=function(e){return ft(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,i=n.render,r=n._parentVnode;r&&(t.$scopedSlots=Lt(r.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=r;try{vn=t,e=i.call(t._renderProxy,t.$createElement)}catch(Io){et(Io,t,"render"),e=t._vnode}finally{vn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof ye||(e=_e()),e.parent=r,e}}function bn(e,t){return(e.__esModule||he&&"Module"===e[Symbol.toStringTag])&&(e=e.default),u(e)?t.extend(e):e}function _n(e,t,n,i,r){var a=_e();return a.asyncFactory=e,a.asyncMeta={data:t,context:n,children:i,tag:r},a}function Tn(e,t){if(a(e.error)&&r(e.errorComp))return e.errorComp;if(r(e.resolved))return e.resolved;var n=vn;if(n&&r(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),a(e.loading)&&r(e.loadingComp))return e.loadingComp;if(n&&!r(e.owners)){var o=e.owners=[n],s=!0,c=null,l=null;n.$on("hook:destroyed",(function(){return y(o,n)}));var d=function(e){for(var t=0,n=o.length;t<n;t++)o[t].$forceUpdate();e&&(o.length=0,null!==c&&(clearTimeout(c),c=null),null!==l&&(clearTimeout(l),l=null))},h=B((function(n){e.resolved=bn(n,t),s?o.length=0:d(!0)})),p=B((function(t){r(e.errorComp)&&(e.error=!0,d(!0))})),m=e(h,p);return u(m)&&(f(m)?i(e.resolved)&&m.then(h,p):f(m.component)&&(m.component.then(h,p),r(m.error)&&(e.errorComp=bn(m.error,t)),r(m.loading)&&(e.loadingComp=bn(m.loading,t),0===m.delay?e.loading=!0:c=setTimeout((function(){c=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,d(!1))}),m.delay||200)),r(m.timeout)&&(l=setTimeout((function(){l=null,i(e.resolved)&&p(null)}),m.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}function wn(e){return e.isComment&&e.asyncFactory}function Sn(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(r(n)&&(r(n.componentOptions)||wn(n)))return n}}function kn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&An(e,t)}function Cn(e,t){gn.$on(e,t)}function xn(e,t){gn.$off(e,t)}function En(e,t){var n=gn;return function i(){var r=t.apply(null,arguments);null!==r&&n.$off(e,i)}}function An(e,t,n){gn=e,bt(t,n||{},Cn,xn,En,e),gn=void 0}function On(e){var t=/^hook:/;e.prototype.$on=function(e,n){var i=this;if(Array.isArray(e))for(var r=0,a=e.length;r<a;r++)i.$on(e[r],n);else(i._events[e]||(i._events[e]=[])).push(n),t.test(e)&&(i._hasHookEvent=!0);return i},e.prototype.$once=function(e,t){var n=this;function i(){n.$off(e,i),t.apply(n,arguments)}return i.fn=t,n.$on(e,i),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var i=0,r=e.length;i<r;i++)n.$off(e[i],t);return n}var a,o=n._events[e];if(!o)return n;if(!t)return n._events[e]=null,n;var s=o.length;while(s--)if(a=o[s],a===t||a.fn===t){o.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?j(n):n;for(var i=j(arguments,1),r='event handler for "'+e+'"',a=0,o=n.length;a<o;a++)tt(n[a],t,i,t,r)}return t}}var jn=null;function In(e){var t=jn;return jn=e,function(){jn=t}}function Pn(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function Ln(e){e.prototype._update=function(e,t){var n=this,i=n.$el,r=n._vnode,a=In(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),a(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Un(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||y(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Un(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function Mn(e,t,n){var i;return e.$el=t,e.$options.render||(e.$options.render=_e),Un(e,"beforeMount"),i=function(){e._update(e._render(),n)},new ni(e,i,L,{before:function(){e._isMounted&&!e._isDestroyed&&Un(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(Un(e,"onServiceCreated"),Un(e,"onServiceAttached"),e._isMounted=!0,Un(e,"mounted")),e}function Dn(e,t,i,r,a){var o=r.data.scopedSlots,s=e.$scopedSlots,u=!!(o&&!o.$stable||s!==n&&!s.$stable||o&&e.$scopedSlots.$key!==o.$key),c=!!(a||e.$options._renderChildren||u);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=a,e.$attrs=r.data.attrs||n,e.$listeners=i||n,t&&e.$options.props){Ae(!1);for(var l=e._props,d=e.$options._propKeys||[],h=0;h<d.length;h++){var f=d[h],p=e.$options.props;l[f]=Xe(f,p,t,e)}Ae(!0),e.$options.propsData=t}e._$updateProperties&&e._$updateProperties(e),i=i||n;var m=e.$options._parentListeners;e.$options._parentListeners=i,An(e,i,m),c&&(e.$slots=It(a,r.context),e.$forceUpdate())}function Rn(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function Nn(e,t){if(t){if(e._directInactive=!1,Rn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Nn(e.$children[n]);Un(e,"activated")}}function Bn(e,t){if((!t||(e._directInactive=!0,!Rn(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Bn(e.$children[n]);Un(e,"deactivated")}}function Un(e,t){ge();var n=e.$options[t],i=t+" hook";if(n)for(var r=0,a=n.length;r<a;r++)tt(n[r],e,null,e,i);e._hasHookEvent&&e.$emit("hook:"+t),ve()}var Fn=[],$n=[],Hn={},Vn=!1,qn=!1,zn=0;function Wn(){zn=Fn.length=$n.length=0,Hn={},Vn=qn=!1}var Gn=0,Yn=Date.now;if(K&&!ee){var Xn=window.performance;Xn&&"function"===typeof Xn.now&&Yn()>document.createEvent("Event").timeStamp&&(Yn=function(){return Xn.now()})}function Kn(){var e,t;for(Gn=Yn(),qn=!0,Fn.sort((function(e,t){return e.id-t.id})),zn=0;zn<Fn.length;zn++)e=Fn[zn],e.before&&e.before(),t=e.id,Hn[t]=null,e.run();var n=$n.slice(),i=Fn.slice();Wn(),Zn(n),Qn(i),ce&&H.devtools&&ce.emit("flush")}function Qn(e){var t=e.length;while(t--){var n=e[t],i=n.vm;i._watcher===n&&i._isMounted&&!i._isDestroyed&&Un(i,"updated")}}function Jn(e){e._inactive=!1,$n.push(e)}function Zn(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Nn(e[t],!0)}function ei(e){var t=e.id;if(null==Hn[t]){if(Hn[t]=!0,qn){var n=Fn.length-1;while(n>zn&&Fn[n].id>e.id)n--;Fn.splice(n+1,0,e)}else Fn.push(e);Vn||(Vn=!0,ft(Kn))}}var ti=0,ni=function(e,t,n,i,r){this.vm=e,r&&(e._watcher=this),e._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ti,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new de,this.newDepIds=new de,this.expression="","function"===typeof t?this.getter=t:(this.getter=G(t),this.getter||(this.getter=L)),this.value=this.lazy?void 0:this.get()};ni.prototype.get=function(){var e;ge(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Io){if(!this.user)throw Io;et(Io,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&mt(e),ve(),this.cleanupDeps()}return e},ni.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},ni.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ni.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():ei(this)},ni.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||u(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Io){et(Io,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},ni.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ni.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},ni.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var ii={enumerable:!0,configurable:!0,get:L,set:L};function ri(e,t,n){ii.get=function(){return this[t][n]},ii.set=function(e){this[t][n]=e},Object.defineProperty(e,n,ii)}function ai(e){e._watchers=[];var t=e.$options;t.props&&oi(e,t.props),t.methods&&pi(e,t.methods),t.data?si(e):Pe(e._data={},!0),t.computed&&li(e,t.computed),t.watch&&t.watch!==ae&&mi(e,t.watch)}function oi(e,t){var n=e.$options.propsData||{},i=e._props={},r=e.$options._propKeys=[],a=!e.$parent;a||Ae(!1);var o=function(a){r.push(a);var o=Xe(a,t,n,e);Le(i,a,o),a in e||ri(e,"_props",a)};for(var s in t)o(s);Ae(!0)}function si(e){var t=e.$options.data;t=e._data="function"===typeof t?ui(t,e):t||{},l(t)||(t={});var n=Object.keys(t),i=e.$options.props,r=(e.$options.methods,n.length);while(r--){var a=n[r];0,i&&_(i,a)||q(a)||ri(e,"_data",a)}Pe(t,!0)}function ui(e,t){ge();try{return e.call(t,t)}catch(Io){return et(Io,t,"data()"),{}}finally{ve()}}var ci={lazy:!0};function li(e,t){var n=e._computedWatchers=Object.create(null),i=ue();for(var r in t){var a=t[r],o="function"===typeof a?a:a.get;0,i||(n[r]=new ni(e,o||L,L,ci)),r in e||di(e,r,a)}}function di(e,t,n){var i=!ue();"function"===typeof n?(ii.get=i?hi(t):fi(n),ii.set=L):(ii.get=n.get?i&&!1!==n.cache?hi(t):fi(n.get):L,ii.set=n.set||L),Object.defineProperty(e,t,ii)}function hi(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),me.SharedObject.target&&t.depend(),t.value}}function fi(e){return function(){return e.call(this,this)}}function pi(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?L:O(t[n],e)}function mi(e,t){for(var n in t){var i=t[n];if(Array.isArray(i))for(var r=0;r<i.length;r++)gi(e,n,i[r]);else gi(e,n,i)}}function gi(e,t,n,i){return l(n)&&(i=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,i)}function vi(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Me,e.prototype.$delete=De,e.prototype.$watch=function(e,t,n){var i=this;if(l(t))return gi(i,e,t,n);n=n||{},n.user=!0;var r=new ni(i,e,t,n);if(n.immediate)try{t.call(i,r.value)}catch(a){et(a,i,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}var yi=0;function bi(e){e.prototype._init=function(e){var t=this;t._uid=yi++,t._isVue=!0,e&&e._isComponent?_i(t,e):t.$options=Ge(Ti(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Pn(t),kn(t),mn(t),Un(t,"beforeCreate"),!t._$fallback&&Ot(t),ai(t),!t._$fallback&&At(t),!t._$fallback&&Un(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function _i(e,t){var n=e.$options=Object.create(e.constructor.options),i=t._parentVnode;n.parent=t.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function Ti(e){var t=e.options;if(e.super){var n=Ti(e.super),i=e.superOptions;if(n!==i){e.superOptions=n;var r=wi(e);r&&I(e.extendOptions,r),t=e.options=Ge(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function wi(e){var t,n=e.options,i=e.sealedOptions;for(var r in n)n[r]!==i[r]&&(t||(t={}),t[r]=n[r]);return t}function Si(e){this._init(e)}function ki(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=j(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function Ci(e){e.mixin=function(e){return this.options=Ge(this.options,e),this}}function xi(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,i=n.cid,r=e._Ctor||(e._Ctor={});if(r[i])return r[i];var a=e.name||n.options.name;var o=function(e){this._init(e)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=t++,o.options=Ge(n.options,e),o["super"]=n,o.options.props&&Ei(o),o.options.computed&&Ai(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,F.forEach((function(e){o[e]=n[e]})),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=I({},o.options),r[i]=o,o}}function Ei(e){var t=e.options.props;for(var n in t)ri(e.prototype,"_props",n)}function Ai(e){var t=e.options.computed;for(var n in t)di(e.prototype,n,t[n])}function Oi(e){F.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&l(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function ji(e){return e&&(e.Ctor.options.name||e.tag)}function Ii(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function Pi(e,t){var n=e.cache,i=e.keys,r=e._vnode;for(var a in n){var o=n[a];if(o){var s=ji(o.componentOptions);s&&!t(s)&&Li(n,a,i,r)}}}function Li(e,t,n,i){var r=e[t];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),e[t]=null,y(n,t)}bi(Si),vi(Si),On(Si),Ln(Si),yn(Si);var Mi=[String,RegExp,Array],Di={name:"keep-alive",abstract:!0,props:{include:Mi,exclude:Mi,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Li(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Pi(e,(function(e){return Ii(t,e)}))})),this.$watch("exclude",(function(t){Pi(e,(function(e){return!Ii(t,e)}))}))},render:function(){var e=this.$slots.default,t=Sn(e),n=t&&t.componentOptions;if(n){var i=ji(n),r=this,a=r.include,o=r.exclude;if(a&&(!i||!Ii(a,i))||o&&i&&Ii(o,i))return t;var s=this,u=s.cache,c=s.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;u[l]?(t.componentInstance=u[l].componentInstance,y(c,l),c.push(l)):(u[l]=t,c.push(l),this.max&&c.length>parseInt(this.max)&&Li(u,c[0],c,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Ri={KeepAlive:Di};function Ni(e){var t={get:function(){return H}};Object.defineProperty(e,"config",t),e.util={warn:fe,extend:I,mergeOptions:Ge,defineReactive:Le},e.set=Me,e.delete=De,e.nextTick=ft,e.observable=function(e){return Pe(e),e},e.options=Object.create(null),F.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,I(e.options.components,Ri),ki(e),Ci(e),xi(e),Oi(e)}Ni(Si),Object.defineProperty(Si.prototype,"$isServer",{get:ue}),Object.defineProperty(Si.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Si,"FunctionalRenderContext",{value:Qt}),Si.version="2.6.11";var Bi=g("style,class"),Ui=g("input,textarea,option,select,progress"),Fi=function(e,t,n){return"value"===n&&Ui(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},$i=g("contenteditable,draggable,spellcheck"),Hi=g("events,caret,typing,plaintext-only"),Vi=function(e,t){return Yi(t)||"false"===t?"false":"contenteditable"===e&&Hi(t)?t:"true"},qi=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),zi="http://www.w3.org/1999/xlink",Wi=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Gi=function(e){return Wi(e)?e.slice(6,e.length):""},Yi=function(e){return null==e||!1===e};function Xi(e){var t=e.data,n=e,i=e;while(r(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(t=Ki(i.data,t));while(r(n=n.parent))n&&n.data&&(t=Ki(t,n.data));return Qi(t.staticClass,t.class)}function Ki(e,t){return{staticClass:Ji(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Qi(e,t){return r(e)||r(t)?Ji(e,Zi(t)):""}function Ji(e,t){return e?t?e+" "+t:e:t||""}function Zi(e){return Array.isArray(e)?er(e):u(e)?tr(e):"string"===typeof e?e:""}function er(e){for(var t,n="",i=0,a=e.length;i<a;i++)r(t=Zi(e[i]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function tr(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var nr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ir=g("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),rr=g("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),ar=function(e){return ir(e)||rr(e)};function or(e){return rr(e)?"svg":"math"===e?"math":void 0}var sr=Object.create(null);function ur(e){if(!K)return!0;if(ar(e))return!1;if(e=e.toLowerCase(),null!=sr[e])return sr[e];var t=document.createElement(e);return e.indexOf("-")>-1?sr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:sr[e]=/HTMLUnknownElement/.test(t.toString())}var cr=g("text,number,password,search,email,tel,url");function lr(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function dr(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function hr(e,t){return document.createElementNS(nr[e],t)}function fr(e){return document.createTextNode(e)}function pr(e){return document.createComment(e)}function mr(e,t,n){e.insertBefore(t,n)}function gr(e,t){e.removeChild(t)}function vr(e,t){e.appendChild(t)}function yr(e){return e.parentNode}function br(e){return e.nextSibling}function _r(e){return e.tagName}function Tr(e,t){e.textContent=t}function wr(e,t){e.setAttribute(t,"")}var Sr=Object.freeze({createElement:dr,createElementNS:hr,createTextNode:fr,createComment:pr,insertBefore:mr,removeChild:gr,appendChild:vr,parentNode:yr,nextSibling:br,tagName:_r,setTextContent:Tr,setStyleScope:wr}),kr={create:function(e,t){Cr(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Cr(e,!0),Cr(t))},destroy:function(e){Cr(e,!0)}};function Cr(e,t){var n=e.data.ref;if(r(n)){var i=e.context,a=e.componentInstance||e.elm,o=i.$refs;t?Array.isArray(o[n])?y(o[n],a):o[n]===a&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])?o[n].indexOf(a)<0&&o[n].push(a):o[n]=[a]:o[n]=a}}var xr=new ye("",{},[]),Er=["create","activate","update","remove","destroy"];function Ar(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&Or(e,t)||a(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&i(t.asyncFactory.error))}function Or(e,t){if("input"!==e.tag)return!0;var n,i=r(n=e.data)&&r(n=n.attrs)&&n.type,a=r(n=t.data)&&r(n=n.attrs)&&n.type;return i===a||cr(i)&&cr(a)}function jr(e,t,n){var i,a,o={};for(i=t;i<=n;++i)a=e[i].key,r(a)&&(o[a]=i);return o}function Ir(e){var t,n,o={},u=e.modules,c=e.nodeOps;for(t=0;t<Er.length;++t)for(o[Er[t]]=[],n=0;n<u.length;++n)r(u[n][Er[t]])&&o[Er[t]].push(u[n][Er[t]]);function l(e){return new ye(c.tagName(e).toLowerCase(),{},[],void 0,e)}function d(e,t){function n(){0===--n.listeners&&h(e)}return n.listeners=t,n}function h(e){var t=c.parentNode(e);r(t)&&c.removeChild(t,e)}function f(e,t,n,i,o,s,u){if(r(e.elm)&&r(s)&&(e=s[u]=we(e)),e.isRootInsert=!o,!p(e,t,n,i)){var l=e.data,d=e.children,h=e.tag;r(h)?(e.elm=e.ns?c.createElementNS(e.ns,h):c.createElement(h,e),w(e),b(e,d,t),r(l)&&T(e,t),y(n,e.elm,i)):a(e.isComment)?(e.elm=c.createComment(e.text),y(n,e.elm,i)):(e.elm=c.createTextNode(e.text),y(n,e.elm,i))}}function p(e,t,n,i){var o=e.data;if(r(o)){var s=r(e.componentInstance)&&o.keepAlive;if(r(o=o.hook)&&r(o=o.init)&&o(e,!1),r(e.componentInstance))return m(e,t),y(n,e.elm,i),a(s)&&v(e,t,n,i),!0}}function m(e,t){r(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,_(e)?(T(e,t),w(e)):(Cr(e),t.push(e))}function v(e,t,n,i){var a,s=e;while(s.componentInstance)if(s=s.componentInstance._vnode,r(a=s.data)&&r(a=a.transition)){for(a=0;a<o.activate.length;++a)o.activate[a](xr,s);t.push(s);break}y(n,e.elm,i)}function y(e,t,n){r(e)&&(r(n)?c.parentNode(n)===e&&c.insertBefore(e,t,n):c.appendChild(e,t))}function b(e,t,n){if(Array.isArray(t)){0;for(var i=0;i<t.length;++i)f(t[i],n,e.elm,null,!0,t,i)}else s(e.text)&&c.appendChild(e.elm,c.createTextNode(String(e.text)))}function _(e){while(e.componentInstance)e=e.componentInstance._vnode;return r(e.tag)}function T(e,n){for(var i=0;i<o.create.length;++i)o.create[i](xr,e);t=e.data.hook,r(t)&&(r(t.create)&&t.create(xr,e),r(t.insert)&&n.push(e))}function w(e){var t;if(r(t=e.fnScopeId))c.setStyleScope(e.elm,t);else{var n=e;while(n)r(t=n.context)&&r(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t),n=n.parent}r(t=jn)&&t!==e.context&&t!==e.fnContext&&r(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t)}function S(e,t,n,i,r,a){for(;i<=r;++i)f(n[i],a,e,t,!1,n,i)}function k(e){var t,n,i=e.data;if(r(i))for(r(t=i.hook)&&r(t=t.destroy)&&t(e),t=0;t<o.destroy.length;++t)o.destroy[t](e);if(r(t=e.children))for(n=0;n<e.children.length;++n)k(e.children[n])}function C(e,t,n){for(;t<=n;++t){var i=e[t];r(i)&&(r(i.tag)?(x(i),k(i)):h(i.elm))}}function x(e,t){if(r(t)||r(e.data)){var n,i=o.remove.length+1;for(r(t)?t.listeners+=i:t=d(e.elm,i),r(n=e.componentInstance)&&r(n=n._vnode)&&r(n.data)&&x(n,t),n=0;n<o.remove.length;++n)o.remove[n](e,t);r(n=e.data.hook)&&r(n=n.remove)?n(e,t):t()}else h(e.elm)}function E(e,t,n,a,o){var s,u,l,d,h=0,p=0,m=t.length-1,g=t[0],v=t[m],y=n.length-1,b=n[0],_=n[y],T=!o;while(h<=m&&p<=y)i(g)?g=t[++h]:i(v)?v=t[--m]:Ar(g,b)?(O(g,b,a,n,p),g=t[++h],b=n[++p]):Ar(v,_)?(O(v,_,a,n,y),v=t[--m],_=n[--y]):Ar(g,_)?(O(g,_,a,n,y),T&&c.insertBefore(e,g.elm,c.nextSibling(v.elm)),g=t[++h],_=n[--y]):Ar(v,b)?(O(v,b,a,n,p),T&&c.insertBefore(e,v.elm,g.elm),v=t[--m],b=n[++p]):(i(s)&&(s=jr(t,h,m)),u=r(b.key)?s[b.key]:A(b,t,h,m),i(u)?f(b,a,e,g.elm,!1,n,p):(l=t[u],Ar(l,b)?(O(l,b,a,n,p),t[u]=void 0,T&&c.insertBefore(e,l.elm,g.elm)):f(b,a,e,g.elm,!1,n,p)),b=n[++p]);h>m?(d=i(n[y+1])?null:n[y+1].elm,S(e,d,n,p,y,a)):p>y&&C(t,h,m)}function A(e,t,n,i){for(var a=n;a<i;a++){var o=t[a];if(r(o)&&Ar(e,o))return a}}function O(e,t,n,s,u,l){if(e!==t){r(t.elm)&&r(s)&&(t=s[u]=we(t));var d=t.elm=e.elm;if(a(e.isAsyncPlaceholder))r(t.asyncFactory.resolved)?P(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(a(t.isStatic)&&a(e.isStatic)&&t.key===e.key&&(a(t.isCloned)||a(t.isOnce)))t.componentInstance=e.componentInstance;else{var h,f=t.data;r(f)&&r(h=f.hook)&&r(h=h.prepatch)&&h(e,t);var p=e.children,m=t.children;if(r(f)&&_(t)){for(h=0;h<o.update.length;++h)o.update[h](e,t);r(h=f.hook)&&r(h=h.update)&&h(e,t)}i(t.text)?r(p)&&r(m)?p!==m&&E(d,p,m,n,l):r(m)?(r(e.text)&&c.setTextContent(d,""),S(d,null,m,0,m.length-1,n)):r(p)?C(p,0,p.length-1):r(e.text)&&c.setTextContent(d,""):e.text!==t.text&&c.setTextContent(d,t.text),r(f)&&r(h=f.hook)&&r(h=h.postpatch)&&h(e,t)}}}function j(e,t,n){if(a(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var i=0;i<t.length;++i)t[i].data.hook.insert(t[i])}var I=g("attrs,class,staticClass,staticStyle,key");function P(e,t,n,i){var o,s=t.tag,u=t.data,c=t.children;if(i=i||u&&u.pre,t.elm=e,a(t.isComment)&&r(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(r(u)&&(r(o=u.hook)&&r(o=o.init)&&o(t,!0),r(o=t.componentInstance)))return m(t,n),!0;if(r(s)){if(r(c))if(e.hasChildNodes())if(r(o=u)&&r(o=o.domProps)&&r(o=o.innerHTML)){if(o!==e.innerHTML)return!1}else{for(var l=!0,d=e.firstChild,h=0;h<c.length;h++){if(!d||!P(d,c[h],n,i)){l=!1;break}d=d.nextSibling}if(!l||d)return!1}else b(t,c,n);if(r(u)){var f=!1;for(var p in u)if(!I(p)){f=!0,T(t,n);break}!f&&u["class"]&&mt(u["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,s){if(!i(t)){var u=!1,d=[];if(i(e))u=!0,f(t,d);else{var h=r(e.nodeType);if(!h&&Ar(e,t))O(e,t,d,null,null,s);else{if(h){if(1===e.nodeType&&e.hasAttribute(U)&&(e.removeAttribute(U),n=!0),a(n)&&P(e,t,d))return j(t,d,!0),e;e=l(e)}var p=e.elm,m=c.parentNode(p);if(f(t,d,p._leaveCb?null:m,c.nextSibling(p)),r(t.parent)){var g=t.parent,v=_(t);while(g){for(var y=0;y<o.destroy.length;++y)o.destroy[y](g);if(g.elm=t.elm,v){for(var b=0;b<o.create.length;++b)o.create[b](xr,g);var T=g.data.hook.insert;if(T.merged)for(var w=1;w<T.fns.length;w++)T.fns[w]()}else Cr(g);g=g.parent}}r(m)?C([e],0,0):r(e.tag)&&k(e)}}return j(t,d,u),t.elm}r(e)&&k(e)}}var Pr={create:Lr,update:Lr,destroy:function(e){Lr(e,xr)}};function Lr(e,t){(e.data.directives||t.data.directives)&&Mr(e,t)}function Mr(e,t){var n,i,r,a=e===xr,o=t===xr,s=Rr(e.data.directives,e.context),u=Rr(t.data.directives,t.context),c=[],l=[];for(n in u)i=s[n],r=u[n],i?(r.oldValue=i.value,r.oldArg=i.arg,Br(r,"update",t,e),r.def&&r.def.componentUpdated&&l.push(r)):(Br(r,"bind",t,e),r.def&&r.def.inserted&&c.push(r));if(c.length){var d=function(){for(var n=0;n<c.length;n++)Br(c[n],"inserted",t,e)};a?_t(t,"insert",d):d()}if(l.length&&_t(t,"postpatch",(function(){for(var n=0;n<l.length;n++)Br(l[n],"componentUpdated",t,e)})),!a)for(n in s)u[n]||Br(s[n],"unbind",e,e,o)}var Dr=Object.create(null);function Rr(e,t){var n,i,r=Object.create(null);if(!e)return r;for(n=0;n<e.length;n++)i=e[n],i.modifiers||(i.modifiers=Dr),r[Nr(i)]=i,i.def=Ye(t.$options,"directives",i.name,!0);return r}function Nr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Br(e,t,n,i,r){var a=e.def&&e.def[t];if(a)try{a(n.elm,e,n,i,r)}catch(Io){et(Io,n.context,"directive "+e.name+" "+t+" hook")}}var Ur=[kr,Pr];function Fr(e,t){var n={};return Object.keys(e).forEach((function(i){t[i]&&(n[e[i]]=t[i],delete t[i])})),n}function $r(e,t){if(!i(e.data.wxsProps)||!i(t.data.wxsProps)){var n=e.$wxsWatches,r=Object.keys(t.data.wxsProps);if(n||r.length){n||(n={});var a=Fr(t.data.wxsProps,t.data.attrs),o=t.context;t.$wxsWatches={},Object.keys(a).forEach((function(e){var i=e;t.context.wxsProps&&(i="wxsProps."+e),t.$wxsWatches[e]=n[e]||t.context.$watch(i,(function(n,i){a[e](n,i,o.$getComponentDescriptor(o,!0),t.elm.__vue__.$getComponentDescriptor(t.elm.__vue__,!1))}),{deep:!0})})),Object.keys(n).forEach((function(e){t.$wxsWatches[e]||(n[e](),delete n[e])}))}}}var Hr={create:$r,update:$r};function Vr(e,t){var n=t.componentOptions;if((!r(n)||!1!==n.Ctor.options.inheritAttrs)&&(!i(e.data.attrs)||!i(t.data.attrs))){var a,o,s,u=t.elm,c=e.data.attrs||{},l=t.data.attrs||{};for(a in r(l.__ob__)&&(l=t.data.attrs=I({},l)),l)o=l[a],s=c[a],s!==o&&qr(u,a,o);for(a in(ee||ne)&&l.value!==c.value&&qr(u,"value",l.value),c)i(l[a])&&(Wi(a)?u.removeAttributeNS(zi,Gi(a)):$i(a)||u.removeAttribute(a))}}function qr(e,t,n){e.tagName.indexOf("-")>-1?zr(e,t,n):qi(t)?Yi(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):$i(t)?e.setAttribute(t,Vi(t,n)):Wi(t)?Yi(n)?e.removeAttributeNS(zi,Gi(t)):e.setAttributeNS(zi,t,n):zr(e,t,n)}function zr(e,t,n){if(Yi(n))e.removeAttribute(t);else{if(ee&&!te&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var i=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",i)};e.addEventListener("input",i),e.__ieph=!0}e.setAttribute(t,n)}}var Wr={create:Vr,update:Vr};function Gr(e,t){var n=t.elm,a=t.data,o=e.data;if(!(i(a.staticClass)&&i(a.class)&&(i(o)||i(o.staticClass)&&i(o.class))&&i(n.__wxsAddClass)&&i(n.__wxsRemoveClass))){var s=Xi(t),u=n._transitionClasses;if(r(u)&&(s=Ji(s,Zi(u))),Array.isArray(n.__wxsRemoveClass)&&n.__wxsRemoveClass.length){var c=s.split(/\s+/);n.__wxsRemoveClass.forEach((function(e){var t=c.findIndex((function(t){return t===e}));-1!==t&&c.splice(t,1)})),s=c.join(" "),n.__wxsRemoveClass.length=0}if(n.__wxsAddClass){var l=s.split(/\s+/).concat(n.__wxsAddClass.split(/\s+/)),d=Object.create(null);l.forEach((function(e){e&&(d[e]=1)})),s=Object.keys(d).join(" ")}var h=t.context,f=h.$options.mpOptions&&h.$options.mpOptions.externalClasses;Array.isArray(f)&&f.forEach((function(e){var t=h[S(e)];t&&(s=s.replace(e,t))})),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Yr,Xr={create:Gr,update:Gr},Kr="__r",Qr="__c";function Jr(e){if(r(e[Kr])){var t=ee?"change":"input";e[t]=[].concat(e[Kr],e[t]||[]),delete e[Kr]}r(e[Qr])&&(e.change=[].concat(e[Qr],e.change||[]),delete e[Qr])}function Zr(e,t,n){var i=Yr;return function r(){var a=t.apply(null,arguments);null!==a&&na(e,r,n,i)}}var ea=at&&!(re&&Number(re[1])<=53);function ta(e,t,n,i){if(ea){var r=Gn,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}Yr.addEventListener(e,t,oe?{capture:n,passive:i}:n)}function na(e,t,n,i){(i||Yr).removeEventListener(e,t._wrapper||t,n)}function ia(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Yr=t.elm,Jr(n),bt(n,r,ta,na,Zr,t.context),Yr=void 0}}var ra,aa={create:ia,update:ia};function oa(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,a,o=t.elm,s=e.data.domProps||{},u=t.data.domProps||{};for(n in r(u.__ob__)&&(u=t.data.domProps=I({},u)),s)n in u||(o[n]="");for(n in u){if(a=u[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),a===s[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=a;var c=i(a)?"":String(a);sa(o,c)&&(o.value=c)}else if("innerHTML"===n&&rr(o.tagName)&&i(o.innerHTML)){ra=ra||document.createElement("div"),ra.innerHTML="<svg>"+a+"</svg>";var l=ra.firstChild;while(o.firstChild)o.removeChild(o.firstChild);while(l.firstChild)o.appendChild(l.firstChild)}else if(a!==s[n])try{o[n]=a}catch(Io){}}}}function sa(e,t){return!e.composing&&("OPTION"===e.tagName||ua(e,t)||ca(e,t))}function ua(e,t){var n=!0;try{n=document.activeElement!==e}catch(Io){}return n&&e.value!==t}function ca(e,t){var n=e.value,i=e._vModifiers;if(r(i)){if(i.number)return m(n)!==m(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}var la={create:oa,update:oa},da=T((function(e){var t={},n=/;(?![^(]*\))/g,i=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function ha(e){var t=fa(e.style);return e.staticStyle?I(e.staticStyle,t):t}function fa(e){return Array.isArray(e)?P(e):"string"===typeof e?da(e):e}function pa(e,t){var n,i={};if(t){var r=e;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=ha(r.data))&&I(i,n)}(n=ha(e.data))&&I(i,n);var a=e;while(a=a.parent)a.data&&(n=ha(a.data))&&I(i,n);return i}var ma,ga=/^--/,va=/\s*!important$/,ya=/\b([+-]?\d+(\.\d+)?)[r|u]px\b/g,ba=function(e){return"string"===typeof e?e.replace(ya,(function(e,t){return uni.upx2px(t)+"px"})):e},_a=/url\(\s*['"](.+?\.(jpg|gif|png))['"]\s*\)/,Ta=/url\(\s*([a-zA-Z0-9\.\-\_\/]+?\.(jpg|gif|png))\s*\)/,wa=function(e,t){if("string"===typeof e&&-1!==e.indexOf("url(")){var n=e.match(_a)||e.match(Ta);n&&3===n.length&&(e=e.replace(n[1],t._$getRealPath(n[1])))}return e},Sa=function(e,t,n,i){if(i&&i._$getRealPath&&n&&(n=wa(n,i)),ga.test(t))e.style.setProperty(t,n);else if(va.test(n))e.style.setProperty(x(t),n.replace(va,""),"important");else{var r=Ca(t);if(Array.isArray(n))for(var a=0,o=n.length;a<o;a++)e.style[r]=ba(n[a]);else e.style[r]=ba(n)}},ka=["Webkit","Moz","ms"],Ca=T((function(e){if(ma=ma||document.createElement("div").style,e=S(e),"filter"!==e&&e in ma)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<ka.length;n++){var i=ka[n]+t;if(i in ma)return i}}));function xa(e,t){var n=t.data,a=e.data,o=t.elm;if(!(i(n.staticStyle)&&i(n.style)&&i(a.staticStyle)&&i(a.style)&&i(o.__wxsStyle))){var s,u,c=a.staticStyle,l=a.normalizedStyle||a.style||{},d=c||l,h=fa(t.data.style)||{};t.data.normalizedStyle=r(h.__ob__)?I({},h):h;var f=pa(t,!0);for(u in o.__wxsStyle&&(Object.assign(t.data.normalizedStyle,o.__wxsStyle),Object.assign(f,o.__wxsStyle)),d)i(f[u])&&Sa(o,u,"");for(u in f)s=f[u],s!==d[u]&&Sa(o,u,null==s?"":s,t.context)}}var Ea={create:xa,update:xa},Aa=/\s+/;function Oa(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Aa).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function ja(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Aa).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",i=" "+t+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Ia(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&I(t,Pa(e.name||"v")),I(t,e),t}return"string"===typeof e?Pa(e):void 0}}var Pa=T((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),La=K&&!te,Ma="transition",Da="animation",Ra="transition",Na="transitionend",Ba="animation",Ua="animationend";La&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ra="WebkitTransition",Na="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ba="WebkitAnimation",Ua="webkitAnimationEnd"));var Fa=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function $a(e){Fa((function(){Fa(e)}))}function Ha(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Oa(e,t))}function Va(e,t){e._transitionClasses&&y(e._transitionClasses,t),ja(e,t)}function qa(e,t,n){var i=Wa(e,t),r=i.type,a=i.timeout,o=i.propCount;if(!r)return n();var s=r===Ma?Na:Ua,u=0,c=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++u>=o&&c()};setTimeout((function(){u<o&&c()}),a+1),e.addEventListener(s,l)}var za=/\b(transform|all)(,|$)/;function Wa(e,t){var n,i=window.getComputedStyle(e),r=(i[Ra+"Delay"]||"").split(", "),a=(i[Ra+"Duration"]||"").split(", "),o=Ga(r,a),s=(i[Ba+"Delay"]||"").split(", "),u=(i[Ba+"Duration"]||"").split(", "),c=Ga(s,u),l=0,d=0;t===Ma?o>0&&(n=Ma,l=o,d=a.length):t===Da?c>0&&(n=Da,l=c,d=u.length):(l=Math.max(o,c),n=l>0?o>c?Ma:Da:null,d=n?n===Ma?a.length:u.length:0);var h=n===Ma&&za.test(i[Ra+"Property"]);return{type:n,timeout:l,propCount:d,hasTransform:h}}function Ga(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Ya(t)+Ya(e[n])})))}function Ya(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Xa(e,t){var n=e.elm;r(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var a=Ia(e.data.transition);if(!i(a)&&!r(n._enterCb)&&1===n.nodeType){var o=a.css,s=a.type,c=a.enterClass,l=a.enterToClass,d=a.enterActiveClass,h=a.appearClass,f=a.appearToClass,p=a.appearActiveClass,g=a.beforeEnter,v=a.enter,y=a.afterEnter,b=a.enterCancelled,_=a.beforeAppear,T=a.appear,w=a.afterAppear,S=a.appearCancelled,k=a.duration,C=jn,x=jn.$vnode;while(x&&x.parent)C=x.context,x=x.parent;var E=!C._isMounted||!e.isRootInsert;if(!E||T||""===T){var A=E&&h?h:c,O=E&&p?p:d,j=E&&f?f:l,I=E&&_||g,P=E&&"function"===typeof T?T:v,L=E&&w||y,M=E&&S||b,D=m(u(k)?k.enter:k);0;var R=!1!==o&&!te,N=Ja(P),U=n._enterCb=B((function(){R&&(Va(n,j),Va(n,O)),U.cancelled?(R&&Va(n,A),M&&M(n)):L&&L(n),n._enterCb=null}));e.data.show||_t(e,"insert",(function(){var t=n.parentNode,i=t&&t._pending&&t._pending[e.key];i&&i.tag===e.tag&&i.elm._leaveCb&&i.elm._leaveCb(),P&&P(n,U)})),I&&I(n),R&&(Ha(n,A),Ha(n,O),$a((function(){Va(n,A),U.cancelled||(Ha(n,j),N||(Qa(D)?setTimeout(U,D):qa(n,s,U)))}))),e.data.show&&(t&&t(),P&&P(n,U)),R||N||U()}}}function Ka(e,t){var n=e.elm;r(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var a=Ia(e.data.transition);if(i(a)||1!==n.nodeType)return t();if(!r(n._leaveCb)){var o=a.css,s=a.type,c=a.leaveClass,l=a.leaveToClass,d=a.leaveActiveClass,h=a.beforeLeave,f=a.leave,p=a.afterLeave,g=a.leaveCancelled,v=a.delayLeave,y=a.duration,b=!1!==o&&!te,_=Ja(f),T=m(u(y)?y.leave:y);0;var w=n._leaveCb=B((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),b&&(Va(n,l),Va(n,d)),w.cancelled?(b&&Va(n,c),g&&g(n)):(t(),p&&p(n)),n._leaveCb=null}));v?v(S):S()}function S(){w.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),h&&h(n),b&&(Ha(n,c),Ha(n,d),$a((function(){Va(n,c),w.cancelled||(Ha(n,l),_||(Qa(T)?setTimeout(w,T):qa(n,s,w)))}))),f&&f(n,w),b||_||w())}}function Qa(e){return"number"===typeof e&&!isNaN(e)}function Ja(e){if(i(e))return!1;var t=e.fns;return r(t)?Ja(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Za(e,t){!0!==t.data.show&&Xa(t)}var eo=K?{create:Za,activate:Za,remove:function(e,t){!0!==e.data.show?Ka(e,t):t()}}:{},to=[Hr,Wr,Xr,aa,la,Ea,eo],no=to.concat(Ur),io=Ir({nodeOps:Sr,modules:no});te&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&ho(e,"input")}));var ro={inserted:function(e,t,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?_t(n,"postpatch",(function(){ro.componentUpdated(e,t,n)})):ao(e,t,n.context),e._vOptions=[].map.call(e.options,uo)):("textarea"===n.tag||cr(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",co),e.addEventListener("compositionend",lo),e.addEventListener("change",lo),te&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){ao(e,t,n.context);var i=e._vOptions,r=e._vOptions=[].map.call(e.options,uo);if(r.some((function(e,t){return!R(e,i[t])}))){var a=e.multiple?t.value.some((function(e){return so(e,r)})):t.value!==t.oldValue&&so(t.value,r);a&&ho(e,"change")}}}};function ao(e,t,n){oo(e,t,n),(ee||ne)&&setTimeout((function(){oo(e,t,n)}),0)}function oo(e,t,n){var i=t.value,r=e.multiple;if(!r||Array.isArray(i)){for(var a,o,s=0,u=e.options.length;s<u;s++)if(o=e.options[s],r)a=N(i,uo(o))>-1,o.selected!==a&&(o.selected=a);else if(R(uo(o),i))return void(e.selectedIndex!==s&&(e.selectedIndex=s));r||(e.selectedIndex=-1)}}function so(e,t){return t.every((function(t){return!R(t,e)}))}function uo(e){return"_value"in e?e._value:e.value}function co(e){e.target.composing=!0}function lo(e){e.target.composing&&(e.target.composing=!1,ho(e.target,"input"))}function ho(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function fo(e){return!e.componentInstance||e.data&&e.data.transition?e:fo(e.componentInstance._vnode)}var po={bind:function(e,t,n){var i=t.value;n=fo(n);var r=n.data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;i&&r?(n.data.show=!0,Xa(n,(function(){e.style.display=a}))):e.style.display=i?a:"none"},update:function(e,t,n){var i=t.value,r=t.oldValue;if(!i!==!r){n=fo(n);var a=n.data&&n.data.transition;a?(n.data.show=!0,i?Xa(n,(function(){e.style.display=e.__vOriginalDisplay})):Ka(n,(function(){e.style.display="none"}))):e.style.display=i?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,i,r){r||(e.style.display=e.__vOriginalDisplay)}},mo={model:ro,show:po},go={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function vo(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?vo(Sn(t.children)):e}function yo(e){var t={},n=e.$options;for(var i in n.propsData)t[i]=e[i];var r=n._parentListeners;for(var a in r)t[S(a)]=r[a];return t}function bo(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function _o(e){while(e=e.parent)if(e.data.transition)return!0}function To(e,t){return t.key===e.key&&t.tag===e.tag}var wo=function(e){return e.tag||wn(e)},So=function(e){return"show"===e.name},ko={name:"transition",props:go,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(wo),n.length)){0;var i=this.mode;0;var r=n[0];if(_o(this.$vnode))return r;var a=vo(r);if(!a)return r;if(this._leaving)return bo(e,r);var o="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?o+"comment":o+a.tag:s(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var u=(a.data||(a.data={})).transition=yo(this),c=this._vnode,l=vo(c);if(a.data.directives&&a.data.directives.some(So)&&(a.data.show=!0),l&&l.data&&!To(a,l)&&!wn(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var d=l.data.transition=I({},u);if("out-in"===i)return this._leaving=!0,_t(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),bo(e,r);if("in-out"===i){if(wn(a))return c;var h,f=function(){h()};_t(u,"afterEnter",f),_t(u,"enterCancelled",f),_t(d,"delayLeave",(function(e){h=e}))}}return r}}},Co=I({tag:String,moveClass:String},go);delete Co.mode;var xo={props:Co,beforeMount:function(){var e=this,t=this._update;this._update=function(n,i){var r=In(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,r(),t.call(e,n,i)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],a=this.children=[],o=yo(this),s=0;s<r.length;s++){var u=r[s];if(u.tag)if(null!=u.key&&0!==String(u.key).indexOf("__vlist"))a.push(u),n[u.key]=u,(u.data||(u.data={})).transition=o;else;}if(i){for(var c=[],l=[],d=0;d<i.length;d++){var h=i[d];h.data.transition=o,h.data.pos=h.elm.getBoundingClientRect(),n[h.key]?c.push(h):l.push(h)}this.kept=e(t,null,c),this.removed=l}return e(t,null,a)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Eo),e.forEach(Ao),e.forEach(Oo),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,i=n.style;Ha(n,t),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(Na,n._moveCb=function e(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(Na,e),n._moveCb=null,Va(n,t))})}})))},methods:{hasMove:function(e,t){if(!La)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){ja(n,e)})),Oa(n,t),n.style.display="none",this.$el.appendChild(n);var i=Wa(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}};function Eo(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Ao(e){e.data.newPos=e.elm.getBoundingClientRect()}function Oo(e){var t=e.data.pos,n=e.data.newPos,i=t.left-n.left,r=t.top-n.top;if(i||r){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+i+"px,"+r+"px)",a.transitionDuration="0s"}}var jo={Transition:ko,TransitionGroup:xo};Si.config.mustUseProp=Fi,Si.config.isReservedTag=ar,Si.config.isReservedAttr=Bi,Si.config.getTagNamespace=or,Si.config.isUnknownElement=ur,I(Si.options.directives,mo),I(Si.options.components,jo),Si.prototype.__patch__=K?io:L,Si.prototype.__call_hook=function(e,t){var n=this;ge();var i,r=n.$options[e],a=e+" hook";if(r)for(var o=0,s=r.length;o<s;o++)i=tt(r[o],n,t?[t]:null,n,a);return n._hasHookEvent&&n.$emit("hook:"+e,t),ve(),i},Si.prototype.$mount=function(e,t){return e=e&&K?lr(e):void 0,Mn(this,e,t)},K&&setTimeout((function(){H.devtools&&ce&&ce.emit("init",Si)}),0),t["default"]=Si}.call(this,n("c8ba"))},e163:function(e,t,n){var i=n("5135"),r=n("7b0b"),a=n("f772"),o=n("e177"),s=a("IE_PROTO"),u=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=r(e),i(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},e177:function(e,t,n){var i=n("d039");e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e25e:function(e,t,n){var i=n("23e7"),r=n("c20d");i({global:!0,forced:parseInt!=r},{parseInt:r})},e260:function(e,t,n){"use strict";var i=n("fc6a"),r=n("44d2"),a=n("3f8c"),o=n("69f3"),s=n("7dd0"),u="Array Iterator",c=o.set,l=o.getterFor(u);e.exports=s(Array,"Array",(function(e,t){c(this,{type:u,target:i(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},e2cc:function(e,t,n){var i=n("6eeb");e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e439:function(e,t,n){var i=n("23e7"),r=n("d039"),a=n("fc6a"),o=n("06cf").f,s=n("83ab"),u=r((function(){o(1)})),c=!s||u;i({target:"Object",stat:!0,forced:c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(a(e),t)}})},e497:function(e,t,n){"use strict";n("4160"),n("c975"),n("fb6a"),n("ac1f"),n("1276"),n("498a"),n("159b");var i=n("a8d6"),r=n("a559"),a=n("8741");l.httpHandler=n("9b91");
  21. /**
  22. * @license
  23. * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
  24. * Copyright (c) 2014 David Björklund
  25. * Available under the MIT license
  26. * <https://github.com/kesla/parse-headers/blob/master/LICENCE>
  27. */
  28. var o=function(e){var t={};return e?(e.trim().split("\n").forEach((function(e){var n=e.indexOf(":"),i=e.slice(0,n).trim().toLowerCase(),r=e.slice(n+1).trim();"undefined"===typeof t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]})),t):t};function s(e,t){for(var n=0;n<e.length;n++)t(e[n])}function u(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function c(e,t,n){var i=e;return a(t)?(n=t,"string"===typeof e&&(i={uri:e})):i=r({},t,{uri:e}),i.callback=n,i}function l(e,t,n){return t=c(e,t,n),d(t)}function d(e){if("undefined"===typeof e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,i,r){t||(t=!0,e.callback(n,i,r))};function i(){4===f.readyState&&setTimeout(s,0)}function r(){var e=void 0;if(e=f.response?f.response:f.responseText||h(f),_)try{e=JSON.parse(e)}catch(t){}return e}function a(e){return clearTimeout(p),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,T)}function s(){if(!d){var t;clearTimeout(p),t=e.useXDR&&void 0===f.status?200:1223===f.status?204:f.status;var i=T,a=null;return 0!==t?(i={body:r(),statusCode:t,method:g,headers:{},url:m,rawRequest:f},f.getAllResponseHeaders&&(i.headers=o(f.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),n(a,i,i.body)}}var c,d,f=e.xhr||null;f||(f=e.cors||e.useXDR?new l.XDomainRequest:new l.XMLHttpRequest);var p,m=f.url=e.uri||e.url,g=f.method=e.method||"GET",v=e.body||e.data,y=f.headers=e.headers||{},b=!!e.sync,_=!1,T={body:void 0,headers:{},statusCode:0,method:g,url:m,rawRequest:f};if("json"in e&&!1!==e.json&&(_=!0,y["accept"]||y["Accept"]||(y["Accept"]="application/json"),"GET"!==g&&"HEAD"!==g&&(y["content-type"]||y["Content-Type"]||(y["Content-Type"]="application/json"),v=JSON.stringify(!0===e.json?v:e.json))),f.onreadystatechange=i,f.onload=s,f.onerror=a,f.onprogress=function(){},f.onabort=function(){d=!0},f.ontimeout=a,f.open(g,m,!b,e.username,e.password),b||(f.withCredentials=!!e.withCredentials),!b&&e.timeout>0&&(p=setTimeout((function(){if(!d){d=!0,f.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",a(e)}}),e.timeout)),f.setRequestHeader)for(c in y)y.hasOwnProperty(c)&&f.setRequestHeader(c,y[c]);else if(e.headers&&!u(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(f.responseType=e.responseType),"beforeSend"in e&&"function"===typeof e.beforeSend&&e.beforeSend(f),f.send(v||null),f}function h(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(n){}return null}function f(){}e.exports=l,e.exports.default=l,l.XMLHttpRequest=i.XMLHttpRequest||f,l.XDomainRequest="withCredentials"in new l.XMLHttpRequest?l.XMLHttpRequest:i.XDomainRequest,s(["get","put","post","patch","head","delete"],(function(e){l["delete"===e?"del":e]=function(t,n,i){return n=c(t,n,i),n.method=e.toUpperCase(),d(n)}}))},e538:function(e,t,n){var i=n("b622");t.f=i},e58c:function(e,t,n){"use strict";var i=n("fc6a"),r=n("a691"),a=n("50c4"),o=n("a640"),s=n("ae40"),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,d=o("lastIndexOf"),h=s("indexOf",{ACCESSORS:!0,1:0}),f=l||!d||!h;e.exports=f?function(e){if(l)return c.apply(this,arguments)||0;var t=i(this),n=a(t.length),o=n-1;for(arguments.length>1&&(o=u(o,r(arguments[1]))),o<0&&(o=n+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:c},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e6cf:function(e,t,n){"use strict";var i,r,a,o,s=n("23e7"),u=n("c430"),c=n("da84"),l=n("d066"),d=n("fea9"),h=n("6eeb"),f=n("e2cc"),p=n("d44e"),m=n("2626"),g=n("861d"),v=n("1c0b"),y=n("19aa"),b=n("c6b6"),_=n("8925"),T=n("2266"),w=n("1c7e"),S=n("4840"),k=n("2cf4").set,C=n("b575"),x=n("cdf9"),E=n("44de"),A=n("f069"),O=n("e667"),j=n("69f3"),I=n("94ca"),P=n("b622"),L=n("2d00"),M=P("species"),D="Promise",R=j.get,N=j.set,B=j.getterFor(D),U=d,F=c.TypeError,$=c.document,H=c.process,V=l("fetch"),q=A.f,z=q,W="process"==b(H),G=!!($&&$.createEvent&&c.dispatchEvent),Y="unhandledrejection",X="rejectionhandled",K=0,Q=1,J=2,Z=1,ee=2,te=I(D,(function(){var e=_(U)!==String(U);if(!e){if(66===L)return!0;if(!W&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!U.prototype["finally"])return!0;if(L>=51&&/native code/.test(U))return!1;var t=U.resolve(1),n=function(e){e((function(){}),(function(){}))},i=t.constructor={};return i[M]=n,!(t.then((function(){}))instanceof n)})),ne=te||!w((function(e){U.all(e)["catch"]((function(){}))})),ie=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},re=function(e,t,n){if(!t.notified){t.notified=!0;var i=t.reactions;C((function(){var r=t.value,a=t.state==Q,o=0;while(i.length>o){var s,u,c,l=i[o++],d=a?l.ok:l.fail,h=l.resolve,f=l.reject,p=l.domain;try{d?(a||(t.rejection===ee&&ue(e,t),t.rejection=Z),!0===d?s=r:(p&&p.enter(),s=d(r),p&&(p.exit(),c=!0)),s===l.promise?f(F("Promise-chain cycle")):(u=ie(s))?u.call(s,h,f):h(s)):f(r)}catch(m){p&&!c&&p.exit(),f(m)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&oe(e,t)}))}},ae=function(e,t,n){var i,r;G?(i=$.createEvent("Event"),i.promise=t,i.reason=n,i.initEvent(e,!1,!0),c.dispatchEvent(i)):i={promise:t,reason:n},(r=c["on"+e])?r(i):e===Y&&E("Unhandled promise rejection",n)},oe=function(e,t){k.call(c,(function(){var n,i=t.value,r=se(t);if(r&&(n=O((function(){W?H.emit("unhandledRejection",i,e):ae(Y,e,i)})),t.rejection=W||se(t)?ee:Z,n.error))throw n.value}))},se=function(e){return e.rejection!==Z&&!e.parent},ue=function(e,t){k.call(c,(function(){W?H.emit("rejectionHandled",e):ae(X,e,t.value)}))},ce=function(e,t,n,i){return function(r){e(t,n,r,i)}},le=function(e,t,n,i){t.done||(t.done=!0,i&&(t=i),t.value=n,t.state=J,re(e,t,!0))},de=function(e,t,n,i){if(!t.done){t.done=!0,i&&(t=i);try{if(e===n)throw F("Promise can't be resolved itself");var r=ie(n);r?C((function(){var i={done:!1};try{r.call(n,ce(de,e,i,t),ce(le,e,i,t))}catch(a){le(e,i,a,t)}})):(t.value=n,t.state=Q,re(e,t,!1))}catch(a){le(e,{done:!1},a,t)}}};te&&(U=function(e){y(this,U,D),v(e),i.call(this);var t=R(this);try{e(ce(de,this,t),ce(le,this,t))}catch(n){le(this,t,n)}},i=function(e){N(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:K,value:void 0})},i.prototype=f(U.prototype,{then:function(e,t){var n=B(this),i=q(S(this,U));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=W?H.domain:void 0,n.parent=!0,n.reactions.push(i),n.state!=K&&re(this,n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new i,t=R(e);this.promise=e,this.resolve=ce(de,e,t),this.reject=ce(le,e,t)},A.f=q=function(e){return e===U||e===a?new r(e):z(e)},u||"function"!=typeof d||(o=d.prototype.then,h(d.prototype,"then",(function(e,t){var n=this;return new U((function(e,t){o.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof V&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return x(U,V.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:te},{Promise:U}),p(U,D,!1,!0),m(D),a=l(D),s({target:D,stat:!0,forced:te},{reject:function(e){var t=q(this);return t.reject.call(void 0,e),t.promise}}),s({target:D,stat:!0,forced:u||te},{resolve:function(e){return x(u&&this===a?U:this,e)}}),s({target:D,stat:!0,forced:ne},{all:function(e){var t=this,n=q(t),i=n.resolve,r=n.reject,a=O((function(){var n=v(t.resolve),a=[],o=0,s=1;T(e,(function(e){var u=o++,c=!1;a.push(void 0),s++,n.call(t,e).then((function(e){c||(c=!0,a[u]=e,--s||i(a))}),r)})),--s||i(a)}));return a.error&&r(a.value),n.promise},race:function(e){var t=this,n=q(t),i=n.reject,r=O((function(){var r=v(t.resolve);T(e,(function(e){r.call(t,e).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}})},e893:function(e,t,n){var i=n("5135"),r=n("56ef"),a=n("06cf"),o=n("9bf2");e.exports=function(e,t){for(var n=r(t),s=o.f,u=a.f,c=0;c<n.length;c++){var l=n[c];i(e,l)||s(e,l,u(t,l))}}},e8b5:function(e,t,n){var i=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==i(e)}},e91f:function(e,t,n){"use strict";var i=n("ebb5"),r=n("4d64").indexOf,a=i.aTypedArray,o=i.exportTypedArrayMethod;o("indexOf",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0)}))},e95a:function(e,t,n){var i=n("b622"),r=n("3f8c"),a=i("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[a]===e)}},ebb5:function(e,t,n){"use strict";var i,r=n("a981"),a=n("83ab"),o=n("da84"),s=n("861d"),u=n("5135"),c=n("f5df"),l=n("9112"),d=n("6eeb"),h=n("9bf2").f,f=n("e163"),p=n("d2bb"),m=n("b622"),g=n("90e3"),v=o.Int8Array,y=v&&v.prototype,b=o.Uint8ClampedArray,_=b&&b.prototype,T=v&&f(v),w=y&&f(y),S=Object.prototype,k=S.isPrototypeOf,C=m("toStringTag"),x=g("TYPED_ARRAY_TAG"),E=r&&!!p&&"Opera"!==c(o.opera),A=!1,O={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},j=function(e){var t=c(e);return"DataView"===t||u(O,t)},I=function(e){return s(e)&&u(O,c(e))},P=function(e){if(I(e))return e;throw TypeError("Target is not a typed array")},L=function(e){if(p){if(k.call(T,e))return e}else for(var t in O)if(u(O,i)){var n=o[t];if(n&&(e===n||k.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},M=function(e,t,n){if(a){if(n)for(var i in O){var r=o[i];r&&u(r.prototype,e)&&delete r.prototype[e]}w[e]&&!n||d(w,e,n?t:E&&y[e]||t)}},D=function(e,t,n){var i,r;if(a){if(p){if(n)for(i in O)r=o[i],r&&u(r,e)&&delete r[e];if(T[e]&&!n)return;try{return d(T,e,n?t:E&&v[e]||t)}catch(s){}}for(i in O)r=o[i],!r||r[e]&&!n||d(r,e,t)}};for(i in O)o[i]||(E=!1);if((!E||"function"!=typeof T||T===Function.prototype)&&(T=function(){throw TypeError("Incorrect invocation")},E))for(i in O)o[i]&&p(o[i],T);if((!E||!w||w===S)&&(w=T.prototype,E))for(i in O)o[i]&&p(o[i].prototype,w);if(E&&f(_)!==w&&p(_,w),a&&!u(w,C))for(i in A=!0,h(w,C,{get:function(){return s(this)?this[x]:void 0}}),O)o[i]&&l(o[i],x,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:E,TYPED_ARRAY_TAG:A&&x,aTypedArray:P,aTypedArrayConstructor:L,exportTypedArrayMethod:M,exportTypedArrayStaticMethod:D,isView:j,isTypedArray:I,TypedArray:T,TypedArrayPrototype:w}},ed6d:function(e,t,n){var i=n("4a4b");function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}e.exports=r},f069:function(e,t,n){"use strict";var i=n("1c0b"),r=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new r(e)}},f0c5:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s,u,c){var l,d="function"===typeof e?e.options:e;if(u){d.components||(d.components={});var h=Object.prototype.hasOwnProperty;for(var f in u)h.call(u,f)&&!h.call(d.components,f)&&(d.components[f]=u[f])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(d.mixins||(d.mixins=[])).push(c)),t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),i&&(d.functional=!0),a&&(d._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(d.functional){d._injectStyles=l;var p=d.render;d.render=function(e,t){return l.call(t),p(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,l):[l]}return{exports:e,options:d}}n.d(t,"a",(function(){return i}))},f0de:function(e,t,n){n("ace4"),n("a9e3"),n("aff5"),n("d3b7");var i=Math.pow(2,32),r=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(t=n.getBigUint64(0),t<Number.MAX_SAFE_INTEGER?Number(t):t):n.getUint32(0)*i+n.getUint32(4)};e.exports={getUint64:r,MAX_UINT32:i}},f183:function(e,t,n){var i=n("d012"),r=n("861d"),a=n("5135"),o=n("9bf2").f,s=n("90e3"),u=n("bb2f"),c=s("meta"),l=0,d=Object.isExtensible||function(){return!0},h=function(e){o(e,c,{value:{objectID:"O"+ ++l,weakData:{}}})},f=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,c)){if(!d(e))return"F";if(!t)return"E";h(e)}return e[c].objectID},p=function(e,t){if(!a(e,c)){if(!d(e))return!0;if(!t)return!1;h(e)}return e[c].weakData},m=function(e){return u&&g.REQUIRED&&d(e)&&!a(e,c)&&h(e),e},g=e.exports={REQUIRED:!1,fastKey:f,getWeakData:p,onFreeze:m};i[c]=!0},f2dc:function(e,t,n){"use strict";var i=n("4ea4");n("fb6a"),n("d3b7"),n("3ca3"),n("ddb0"),n("2b3d"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("fc11")),a=i(n("a8d6")),o="http://example.com",s=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=a.default.location&&a.default.location.href||"");var n="function"===typeof a.default.URL,i=/^\/\//.test(e),s=!a.default.location&&!/\/\//i.test(e);if(n?e=new a.default.URL(e,a.default.location||o):/\/\//i.test(e)||(e=r.default.buildAbsoluteURL(a.default.location&&a.default.location.href||"",e)),n){var u=new URL(t,e);return s?u.href.slice(o.length):i?u.href.slice(u.protocol.length):u.href}return r.default.buildAbsoluteURL(e,t)},u=s;t.default=u},f4b3:function(e,t,n){"use strict";var i=n("23e7"),r=n("d039"),a=n("7b0b"),o=n("c04e"),s=r((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));i({target:"Date",proto:!0,forced:s},{toJSON:function(e){var t=a(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},f4dd:function(e,t,n){"use strict";var i=n("23e7"),r=n("d58f").right,a=n("a640"),o=n("ae40"),s=a("reduceRight"),u=o("reduce",{1:0});i({target:"Array",proto:!0,forced:!s||!u},{reduceRight:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},f5df:function(e,t,n){var i=n("00ee"),r=n("c6b6"),a=n("b622"),o=a("toStringTag"),s="Arguments"==r(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=i?r:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=Object(e),o))?n:s?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},f772:function(e,t,n){var i=n("5692"),r=n("90e3"),a=i("keys");e.exports=function(e){return a[e]||(a[e]=r(e))}},f8cd:function(e,t,n){var i=n("a691");e.exports=function(e){var t=i(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},fb2c:function(e,t,n){var i=n("74e8");i("Uint32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},fb6a:function(e,t,n){"use strict";var i=n("23e7"),r=n("861d"),a=n("e8b5"),o=n("23cb"),s=n("50c4"),u=n("fc6a"),c=n("8418"),l=n("b622"),d=n("1dde"),h=n("ae40"),f=d("slice"),p=h("slice",{ACCESSORS:!0,0:0,1:2}),m=l("species"),g=[].slice,v=Math.max;i({target:"Array",proto:!0,forced:!f||!p},{slice:function(e,t){var n,i,l,d=u(this),h=s(d.length),f=o(e,h),p=o(void 0===t?h:t,h);if(a(d)&&(n=d.constructor,"function"!=typeof n||n!==Array&&!a(n.prototype)?r(n)&&(n=n[m],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return g.call(d,f,p);for(i=new(void 0===n?Array:n)(v(p-f,0)),l=0;f<p;f++,l++)f in d&&c(i,l,d[f]);return i.length=l,i}})},fc11:function(e,t,n){n("baa5"),n("26e9"),n("ac1f"),n("5319"),n("1276"),n("498a"),function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,r=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,o={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),t=t.trim(),!t){if(!n.alwaysNormalize)return e;var r=o.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=o.normalizePath(r.path),o.buildURLFromParts(r)}var a=o.parseURL(t);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return n.alwaysNormalize?(a.path=o.normalizePath(a.path),o.buildURLFromParts(a)):t;var s=o.parseURL(e);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var u=i.exec(s.path);s.netLoc=u[1],s.path=u[2]}s.netLoc&&!s.path&&(s.path="/");var c={scheme:s.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(c.netLoc=s.netLoc,"/"!==a.path[0]))if(a.path){var l=s.path,d=l.substring(0,l.lastIndexOf("/")+1)+a.path;c.path=o.normalizePath(d)}else c.path=s.path,a.params||(c.params=s.params,a.query||(c.query=s.query));return null===c.path&&(c.path=n.alwaysNormalize?o.normalizePath(a.path):a.path),o.buildURLFromParts(c)},parseURL:function(e){var t=n.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){e=e.split("").reverse().join("").replace(r,"");while(e.length!==(e=e.replace(a,"")).length);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};e.exports=o}()},fc6a:function(e,t,n){var i=n("44ad"),r=n("1d80");e.exports=function(e){return i(r(e))}},fd90:function(e,t,n){var i=n("ae41");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4f06").default;r("1e46f16f",i,!0,{sourceMap:!1,shadowMode:!1})},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var i=n("4930");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(e,t,n){var i=n("da84");e.exports=i.Promise}}]);