chunk-vendors.4945cd74.js 1.8 MB
(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))}},"0633":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},"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)}})},"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}))},"0d7d":function(e,t,n){var i=n("55a0");t.DOMImplementation=i.DOMImplementation,t.XMLSerializer=i.XMLSerializer,t.DOMParser=n("6542").DOMParser},"0db2":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("71e4")),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)},"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)}},g=e.exports=s("WeakMap",p,u);if(d&&h){i=u.getConstructor(p,"WeakMap",!0),o.REQUIRED=!0;var m=g.prototype,v=m["delete"],y=m.has,_=m.get,b=m.set;a(m,{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)?_.call(this,e):t.frozen.get(e)}return _.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)?b.call(this,e,t):n.frozen.set(e,t)}else b.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,g=4294967295,m=!h((function(){return!RegExp(g,"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?g: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,m=new RegExp(e.source,h+"g");while(s=d.call(m,i)){if(u=m.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;m.lastIndex===s.index&&m.lastIndex++}return p===i.length?!c&&m.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":"")+(m?"y":"g"),_=new f(m?d:"^(?:"+d.source+")",y),b=void 0===r?g:r>>>0;if(0===b)return[];if(0===h.length)return null===l(_,h)?[h]:[];var T=0,S=0,w=[];while(S<h.length){_.lastIndex=m?S:0;var k,M=l(_,m?h:h.slice(S));if(null===M||(k=p(c(_.lastIndex+(m?0:S)),h.length))===T)S=u(h,S,v);else{if(w.push(h.slice(T,S)),w.length===b)return w;for(var C=1;C<=M.length-1;C++)if(w.push(M[C]),w.length===b)return w;S=T=k}}return w.push(h.slice(T)),w}]}),!m)},"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)}}))},"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}}},"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")},"1bf2":function(e,t,n){var i=n("23e7"),r=n("56ef");i({target:"Reflect",stat:!0},{ownKeys:r})},"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 m})),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 g(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 m(e){return g("top",e)}function v(e){return g("left",e)}function y(e){return g("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,g=5,m=750,v={name:"Ad",mixins:[a["g"]],props:{adpid:{type:[Number,String],default:""},adpidWidescreen:{type:[Number,String],default:""},widescreenWidth:{type:[Number,String],default:m}},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);"10010"===t.a1?h.instance.load(t.t,i,(function(){e._renderBaidu(r,t.a2)}),(function(t){e.$trigger("error",{},t)})):"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,i.s,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()},_renderBaidu:function(e,t){(window.slotbydup=window.slotbydup||[]).push({id:t,container:e,async:!0}),this._startCheckTimer()},_renderAdView:function(e,t,n){var i=window;t.split(".").reduce((function(e,t){return i=e,e[t]}),window).bind(i)(n.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>=g)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,_=(n("e4bc"),n("2877")),b=Object(_["a"])(y,i,r,!1,null,null,null);t["default"]=b.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=[],g=0;g<f.length;g++)p.push(f[g].style);for(var m=this.$el.querySelectorAll(".uni-page-head-btn"),v=[],y=[],_=0;_<m.length;_++){var b=m[_];v.push(getComputedStyle(b).backgroundColor),y.push(b.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=[],g=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 m=n<0?e:e.substring(0,n);e=n<0?"":e.substring(n),t.chars&&t.chars(m)}if(e==g)throw"Parse Error: "+e;g=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,g=void 0===p?__uniConfig.networkTimeout&&__uniConfig.networkTimeout.request||6e4:p,m=e,v=m.invokeCallbackHandler,y=null;for(var _ in s)if(Object(i["i"])(s,_)&&"content-type"===_.toLowerCase()){r=s[_],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(C){y=o.toString()}else if("urlencoded"===r){var b=[];for(var T in o)Object(i["i"])(o,T)&&b.push(encodeURIComponent(T)+"="+encodeURIComponent(o[T]));y=b.join("&")}else y=o.toString();var S=new XMLHttpRequest,w=new u(S);for(var k in S.open(l,a),s)Object(i["i"])(s,k)&&S.setRequestHeader(k,s[k]);var M=setTimeout((function(){S.onload=S.onabort=S.onerror=null,w.abort(),v(n,{errMsg:"request:fail timeout"})}),g);return S.responseType=h,S.onload=function(){clearTimeout(M);var e=S.status,t="text"===h?S.responseText:S.response;if("text"===h&&"json"===d)try{t=JSON.parse(t)}catch(C){}v(n,{data:t,statusCode:e,header:c(S.getAllResponseHeaders()),errMsg:"request:ok"})},S.onabort=function(){clearTimeout(M),v(n,{errMsg:"request:fail abort"})},S.onerror=function(){clearTimeout(M),v(n,{errMsg:"request:fail"})},S.withCredentials=f,S.send(y),w}}.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 g=Object(i["a"])(n);if(-1!==g){var m=getCurrentPages().length-1-g;if(m>0)return s("navigateBack",{delta:m})}}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 _=y[y.length-1];Object(i["c"])(_.$options,"onBackPress")&&!0===_.__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 g(e){return e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})).replace("webkit","-webkit")}function m(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(g(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=m(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)}},_=[n("5408"),n("93a5")];_.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 g}));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 g(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 _})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return S}));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 g=Object.keys(r),m=0;m<g.length;m++)if(-1===l.indexOf(g[m])){var v=Object(s["a"])(g[m],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 g(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 m(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),g=Object(i["k"])(c),m=Object(i["k"])(l),v=Object(i["k"])(d);if(!p&&!g&&!m&&!v)return{params:t};var y={};for(var _ in n){var b=n[_];Object(i["k"])(b)&&(y[_]=Object(r["b"])(b))}var T=y.beforeSuccess,S=y.afterSuccess,w=y.beforeFail,k=y.afterFail,M=y.beforeCancel,C=y.afterCancel,E=y.beforeAll,I=y.afterAll,A=h++,O="api."+e+"."+A,x=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"])(S)&&S(n)):0===o.indexOf(e+":cancel")?(n.errMsg=n.errMsg.replace(e+":cancel",e+":fail cancel"),g&&c(n),Object(i["k"])(M)&&M(n),m&&l(n),Object(i["k"])(C)&&C(n)):0===o.indexOf(e+":fail")&&(Object(i["k"])(w)&&w(n),g&&c(n),Object(i["k"])(k)&&k(n)),v&&d(n),Object(i["k"])(I)&&I(n)};return f[A]={name:O,callback:x},{params:t,callbackId:A}}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=m(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 _(e){delete f[e]}function b(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 S(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")?g: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")),g=Object(p["a"])(f,l,d,!1,null,null,null);t["default"]=g.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 O})),n.d(t,"createCanvasContext",(function(){return x})),n.d(t,"canvasGetImageData",(function(){return D})),n.d(t,"canvasPutImageData",(function(){return L})),n.d(t,"canvasToTempFilePath",(function(){return N}));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 g(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)?g(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 g(e)}function g(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 m(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 _=Object(a["a"])("canvasEvent");function b(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=_.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 S(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 w(e,t){this.type="pattern",this.data=e,this.colorStop=t}var k=function(){function e(t,n){m(this,e),this.type=t,this.data=n,this.colorStop=[]}return y(e,[{key:"addColorStop",value:function(e,t){this.colorStop.push([e,S(t)])}}]),e}(),M=["scale","rotate","translate","setTransform","transform"],C=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],E=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];function I(e,t){var n=document.createElement("canvas"),i=n.getContext("2d");return i.font=t,i.measureText(e).width||0}function A(e){this.width=e}var O=function(){function e(t,n){m(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=_.push(n)),b(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 w(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=I(e,t),new A(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 x(t,n){if(n)return new O(t,n.$page.id);var i=Object(o["a"])();if(i)return new O(t,i);e.emit("onError","createCanvasContext:fail")}function D(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=_.push((function(e){var n=e.data;n&&n.length&&(e.data=new Uint8ClampedArray(n)),Object(s["a"])(t,e)}));b(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=_.push((function(e){Object(s["a"])(t,e)}));i=Array.prototype.slice.call(i),b(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 N(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,g=e.quality,m=Object(o["a"])();if(m){var v=_.push((function(e){Object(s["a"])(t,e)})),y="".concat(u["TEMP_PATH"],"/canvas");b(f,m,"toTempFilePath",{x:i,y:a,width:c,height:l,destWidth:d,destHeight:h,fileType:p,quality:g,dirname:y,callbackId:v})}else Object(s["a"])(t,{errMsg:"canvasToTempFilePath:fail"})}[].concat(M,C).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})}}}O.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",S(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=S(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})}}}O.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 g}));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")}},g={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 g,m=t.label||{};if("label"in o&&(o.label.setMap(null),delete o.label),m.content){var v={borderColor:m.borderColor,borderWidth:(Number(m.borderWidth)||0)+"px",padding:(Number(m.padding)||0)+"px",borderRadius:(Number(m.borderRadius)||0)+"px",backgroundColor:m.bgColor,color:m.color,fontSize:(m.fontSize||14)+"px",lineHeight:(m.fontSize||14)+"px",marginLeft:(Number(m.anchorX||m.x)||0)+"px",marginTop:(Number(m.anchorY||m.y)||0)+"px"};if("Label"in a)g=new a.Label({position:u,map:r,clickable:!1,content:m.content,style:v}),o.label=g;else if("setLabel"in o){var y=n.updateMarkerLabelStyle(n.id,v);o.setLabel({text:m.content,color:v.color,fontSize:v.fontSize,className:y})}}var _,b=t.callout||{},T=o.callout;if(b.content||s){var S="0px 0px 3px 1px rgba(0,0,0,0.5)";_=b.content?{position:u,map:r,top:p,content:b.content,color:b.color,fontSize:b.fontSize,borderRadius:b.borderRadius,bgColor:b.bgColor,padding:b.padding,boxShadow:b.boxShadow||S,display:b.display}:{position:u,map:r,top:p,content:s,boxShadow:S},T?T.setOption(_):(T=o.callout=new a.Callout(_),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 g=h(i),m=new r.a({id:g,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=m.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+"-"+(g+1))),y.meta&&y.meta.name&&(document.body.className="uni-body "+y.meta.name,y.meta.isNVue)){var _="nvue-dir-"+__uniConfig.nvue["flex-direction"];document.body.setAttribute("nvue",""),document.body.setAttribute(_,"")}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=m,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 m})),n.d(t,"off",(function(){return v})),n.d(t,"once",(function(){return y})),n.d(t,"emit",(function(){return _})),n.d(t,"subscribe",(function(){return b})),n.d(t,"unsubscribe",(function(){return T})),n.d(t,"subscribeHandler",(function(){return S})),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"),g=new r.a,m=g.$on.bind(g),v=g.$off.bind(g),y=g.$once.bind(g),_=g.$emit.bind(g);function b(e,t){return m("service."+e,t)}function T(e,t){return v("service."+e,t)}function S(e,t,n){_("service."+e,t,n)}f(b)},"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 g=Object(a["b"])(d,c),m=h.relativeToSelector?g.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:m,rootMargin:h.rootMargin,threshold:h.thresholds});if(h.observeAll)v.USE_MUTATION_OBSERVER=!0,Array.prototype.map.call(g.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=g.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 g(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)?g(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 g(e)}function g(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 m(){if(this.mode===y.TIME)return"00:00";if(this.mode===y.DATE){var e=(new Date).getFullYear()-100;switch(this.fields){case _.YEAR:return e.toString();case _.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 _.YEAR:return e.toString();case _.MONTH:return e+"-12";default:return e+"-12-31"}}return""}var y={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},_={YEAR:"year",MONTH:"month",DAY:"day"},b={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:m},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 _.YEAR:return[t[0]];case _.MONTH:return[t[0],t[1]];default:return[t[0],t[1],t[2]]}}return[]},startArray:function(){return this._getDateValueArray(this.start,m.bind(this)())},endArray:function(){return this._getDateValueArray(this.end,v.bind(this)())},selectorTypeComputed:function(){var e=this.selectorType;return Object.values(b).includes(e)?e:0===String(navigator.vendor).indexOf("Apple")&&navigator.maxTouchPoints>0?b.PICKER:b.SELECT},system:function(){if(this.mode===y.DATE&&!Object.values(_).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 _.YEAR:n=1;break;case _.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===b.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 _.YEAR:return e;case _.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!==_.YEAR&&t===(this.fields===_.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}}},S=T,w=(n("2d89"),n("2877")),k=Object(w["a"])(S,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,g=e,m=(t-p*e)/f;return{x:function(e){return Math.pow(Math.E,p*e)*(g*Math.cos(f*e)+m*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*(m*f*n-g*f*i)+p*t*(m*i+g*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,g=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)})),m=a.event.addListener(e,"moveend",(function(t){m.remove(),g.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"),this.$trigger("updated",{},{})},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),g=/Linux|X11/i.test(l),m=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,_=Math.min(window.innerWidth,document.documentElement.clientWidth,v)||v,b=window.innerHeight,T=navigator.language,S=c.a.top;if(h){e="iOS";var w=l.match(/OS\s([\w_]+)\slike/);w&&(t=w[1].replace(/_/g,"."));var k=l.match(/\(([a-zA-Z]+);/);k&&(n=k[1])}else if(d){e="Android";var M=l.match(/Android[\s/]([\w\.]+)[;\s]/);M&&(t=M[1]);for(var C=l.match(/\((.+?)\)/),E=C?C[1].split(";"):l.split(" "),I=[/\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],A=0;A<E.length;A++){var O=E[A];if(O.indexOf("Build")>0){n=O.split("Build")[0].trim();break}for(var x=void 0,D=0;D<I.length;D++)if(I[D].test(O)){x=!0;break}if(!x){n=O.trim();break}}}else if(m)n="iPad",e="iOS",t="function"===typeof window.BigInt?"14.0":"13.0";else if(f||p||g){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 N=L.match(/[Win|WOW]([\d]+)/);N&&(t+=" x".concat(N[1]))}else p?(e="Mac",t=L.match(/Mac OS X (.+)/)||"",t&&(t=t[1].replace(/_/g,"."),-1!==t.indexOf(";")&&(t=t.split(";")[0]))):g&&(e="Linux",t=L.match(/Linux (.*)/)||"",t&&(t=t[1],-1!==t.indexOf(";")&&(t=t.split(";")[0])))}else e="Other",t="0";var P="".concat(e," ").concat(t),R=e.toLocaleLowerCase(),j={left:c.a.left,right:_-c.a.right,top:c.a.top,bottom:b-c.a.bottom,width:_-c.a.left-c.a.right,height:b-c.a.top-c.a.bottom},U=Object(r["a"])(),F=U.top,B=U.bottom;return b-=F,b-=B,{windowTop:F,windowBottom:B,windowWidth:_,windowHeight:b,pixelRatio:a,screenWidth:v,screenHeight:y,language:T,statusBarHeight:S,system:P,platform:R,model:n,safeArea:j,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,g=p.invokeCallbackHandler,m=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){m._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),g(n,{errMsg:"uploadFile:fail"})},i.onabort=function(){clearTimeout(t),g(n,{errMsg:"uploadFile:fail abort"})},i.onload=function(){clearTimeout(t);var e=i.status;g(n,{errMsg:"uploadFile:ok",statusCode:e,data:i.responseText||i.response})},m._isAbort?g(n,{errMsg:"uploadFile:fail abort"}):(t=setTimeout((function(){i.upload.onprogress=i.onload=i.onabort=i.onerror=null,m.abort(),g(n,{errMsg:"uploadFile:fail timeout"})}),f),i.send(a),m._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(){g(n,{errMsg:"uploadFile:fail file error"})}),0)})),m}}.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 g})),n.d(t,"onSocketError",(function(){return m})),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 g(e){d.open=e}function m(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,g=u.value,m=void 0!==g&&g;i=d.getSelection(!0);var v=d.getFormat(i)[p]||!1;if(["bold","italic","underline","strike","ins"].includes(p))m=!v;else if("direction"===p){m=("rtl"!==m||!v)&&m;var y=d.getFormat(i).align;"rtl"!==m||y?m||"right"!==y||d.format("align",!1,h.sources.USER):d.format("align","right",h.sources.USER)}else if("indent"===p){var _="rtl"===d.getFormat(i).direction;m="+1"===m,_&&(m=!m),m=m?"+1":"-1"}else"list"===p&&(m="check"===m?"unchecked":m,v="checked"===v?"unchecked":v),m=v&&v!==(m||!1)||!v&&m?m:!v;d.format(p,m,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 b=u.src,T=void 0===b?"":b,S=u.alt,w=void 0===S?"":S,k=u.width,M=void 0===k?"":k,C=u.height,E=void 0===C?"":C,I=u.extClass,A=void 0===I?"":I,O=u.data,x=void 0===O?{}:O,D=this.$getRealPath(T);d.insertEmbed(i.index,"image",D,h.sources.USER);var L=!!/^(file|blob):/.test(D)&&D;c=!0,d.formatText(i.index,1,"data-local",L),d.formatText(i.index,1,"alt",w),d.formatText(i.index,1,"width",M),d.formatText(i.index,1,"height",E),d.formatText(i.index,1,"class",A),c=!1,d.formatText(i.index,1,"data-custom",Object.keys(x).map((function(e){return"".concat(e,"=").concat(x[e])})).join("&")),d.setSelection(i.index+1,h.sources.SILENT);break;case"insertText":i=d.getSelection(!0);var N=u.text,P=void 0===N?"":N;d.insertText(i.index,P,h.sources.USER),d.setSelection(i.index+P.length,0,h.sources.SILENT);break;case"setContents":var R=u.delta,j=u.html;"object"===s(R)?d.setContents(R,h.sources.SILENT):"string"===typeof j?d.setContents(this.html2delta(j),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 U=h.import("parchment");i.length?d.removeFormat(i,h.sources.USER):Object.keys(d.getFormat(i)).forEach((function(e){U.query(e,U.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)),g=p.exports,m=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"),_=y["a"],b=(n("ff28"),Object(s["a"])(_,m,v,!1,null,null,null)),T=b.exports,S=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)},w=[],k=n("5a56"),M=n("da71");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 E={name:"Modal",components:{keypress:M["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=C({},e,!0);this.editable&&"confirm"===e&&(t.content=this.$refs.editContent.value),this.$emit("close",t)}}},I=E,A=(n("2765"),Object(s["a"])(I,S,w,!1,null,null,null)),O=A.exports,x=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)},D=[],L=n("4ccd"),N=n("a6b0"),P=n("ba15"),R=n("8aec"),j=n("5363"),U=n("72b3"),F=n("d4cd");function B(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 G={name:"ActionSheet",components:{keypress:M["a"]},mixins:[N["c"],L["default"],P["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){B(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 j["a"](1e-4),spring:new U["a"](2,90,20),onScroll:function(t){e.scrollTop=t.target.scrollTop}})})),Object(F["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(F["a"])({disable:!0});break;case"move":this._handleTouchMove(e);break;case"end":case"cancel":this._handleTouchEnd(e),Object(F["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()}}},q=G,V=(n("4fef"),Object(s["a"])(q,x,D,!1,null,null,null)),H=V.exports,$={Toast:T,Modal:O,ActionSheet:H};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 z(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){K(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 K(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"]=z({TabBar:c,Layout:g},$)},"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 _})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return M})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return I}));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?g(n):n}function g(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function m(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])&&m(e[n],t[n])}))}function _(e,t){"string"===typeof e&&Object(i["l"])(t)?v(f[e]||(f[e]={}),t):Object(i["l"])(e)&&v(h,e)}function b(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 S(e){return!!e&&("object"===l(e)||"function"===typeof e)&&"function"===typeof e.then}function w(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(S(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){w(e[n],t).then((function(e){return Object(i["k"])(r)&&r(e)||e}))}}})),t}function M(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 C(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=C(e);if(o&&Object.keys(o).length){if(Array.isArray(o.invoke)){var s=w(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 I={returnValue:function(e){return S(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,g=e,m=(t-p*e)/f;return{x:function(e){return Math.pow(Math.E,p*e)*(g*Math.cos(f*e)+m*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*(m*f*n-g*f*i)+p*t*(m*i+g*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 g(e,t){if(e===t)return 0;var n=e.offsetLeft;return e.offsetParent?n+=g(e.offsetParent,t):0}function m(e,t){if(e===t)return 0;var n=e.offsetTop;return e.offsetParent?n+=m(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 _={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=g(this.$el,this.$parent.$el),this._offset.y=m(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")),S=Object(T["a"])(b,i,r,!1,null,null,null);t["default"]=S.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 g})),n.d(t,"closeSocket",(function(){return m})),n.d(t,"onSocketOpen",(function(){return y})),n.d(t,"onSocketError",(function(){return _})),n.d(t,"onSocketMessage",(function(){return b})),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(g){o=g}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 g(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 m(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"),_=v("error"),b=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"),g=p["a"],m=(n("6226"),Object(c["a"])(g,h,f,!1,null,null,null)),v=m.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:[b["c"]],methods:{_onClick:function(){window.location.reload()}}},S=T,w=(n("b628"),Object(c["a"])(S,y,_,!1,null,null,null)),k=w.exports,M=function(){var e=this;e.$createElement;return e._self._c,e._m(0)},C=[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"},I=E,A=(n("5727"),Object(c["a"])(I,M,C,!1,null,null,null)),O=A.exports,x=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()},D=[],L=n("e243"),N=L["a"],P=Object(c["a"])(N,x,D,!1,null,null,null),R=P.exports,j=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)},U=[],F=n("fda5"),B=F["a"],G=(n("9470"),Object(c["a"])(B,j,U,!1,null,null,null)),q=G.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)},H=[],$=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:$["b"],width:32,height:52},location:{id:2,latitude:0,longitude:0,iconPath:$["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($["d"])(),t="";if(e.type===$["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===$["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)}}},z=W,K=(n("3da9"),Object(c["a"])(z,V,H,!1,null,null,null)),Y=K.exports,X=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)},J=[],Q=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,Q,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,X,J,!1,null,null,null)),se=oe.exports,ue={ChooseLocation:q,OpenLocation:Y,PreviewImage:se};r.a.component(d.name,d),r.a.component(v.name,v),r.a.component(k.name,k),r.a.component(O.name,O),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"],g=["createRewardedVideoAd","createFullScreenVideoAd","createInterstitialAd","createInteractiveAd"],m=[].concat(n,i,r,a,o,s,u,c,l,d,h,f,p,g);e.exports=m},"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 g})),n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return v})),n.d(t,"d",(function(){return y})),n.d(t,"e",(function(){return C})),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(M()){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),g=p.t,m=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 g(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 _=["%","%"];function b(){var e=uni.getLocale(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}function T(e){return Object(r["isI18nStr"])(e,_)?p.f(e,b(),_):e}function S(e,t){if(1!==t.length){var n=t.shift();return S(e&&e[n],t)}if(e){var i=e[t[0]];if(Object(a["m"])(i)&&Object(r["isI18nStr"])(i,_))return e}}function w(e,t){return t.map((function(t){return k(e,t)}))}function k(e,t){var n=S(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 M(){return"undefined"!==typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length}function C(e){if(M())return w(e,[["titleText"],["searchInput","placeholder"]])}function E(e){return M()&&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 m}));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}(),g=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 m(e){return new g(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 K}));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 g(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&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function v(e){return function(){var t,n=T(e);if(b()){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?_(e):t}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){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 S=function(e){var t=e.import("blots/inline"),n=function(e){g(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}},w=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 M(e){return M="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},M(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}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 A(e,t,n){return t&&I(e.prototype,t),n&&I(e,n),e}function O(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&&x(e,t)}function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}function D(e){return function(){var t,n=U(e);if(P()){var i=U(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"!==M(t)&&"function"!==typeof t?N(e):t}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(){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=j(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 j(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=U(e),null===e)break;return e}function U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},U(e)}var F=function(e){var t=e.import("parchment"),n=e.import("blots/container"),i=e.import("formats/list/item"),r=function(e){O(r,e);var n=D(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 A(r,null,[{key:"create",value:function(e){var t="ordered"===e?"OL":"UL",n=R(U(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}}]),A(r,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return C({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,t){if(e instanceof i)R(U(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(U(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(U(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}},B=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}},G=n("f2b3"),q=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(G["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(G["n"])(e),r)})),o},H=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(G["n"])(t),{scope:n})})),a},$=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($["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)}},z=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 K(e){var t={divider:h,ins:S,align:w,direction:k,list:F,background:B,box:q,font:V,text:H,image:W,link:z},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)}}},g=p,m=n("2877"),v=Object(m["a"])(g,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 g=this.__clickEventListener=function(e){e.preventDefault(),e.stopPropagation()},m=this.__mouseMoveEventListener=function(e){if(!a&&o&&p){!r&&(Math.abs(d-c)>2||Math.abs(h-l)>2)&&(document.addEventListener("click",g,!0),r=!0);var t=f(e,"move",e.pageX,e.pageY);return d=e.pageX,h=e.pageY,t}};document.addEventListener("mousemove",m),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",query:t},(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 b}));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 g(){p&&(clearTimeout(p),p=!1)}var m=0,v=0;function y(e){if(g(),1===e.touches.length){var t=e.touches[0],n=t.pageX,i=t.pageY;m=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 _(e){if(p){if(1!==e.touches.length)return g();var t=e.touches[0],n=t.pageX,i=t.pageY;return Math.abs(n-m)>h||Math.abs(i-v)>h?g():void 0}}function b(){window.addEventListener("touchstart",y,f),window.addEventListener("touchmove",_,f),window.addEventListener("touchend",g,f),window.addEventListener("touchcancel",g,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 g=getComputedStyle(i);Object.defineProperty(o,n,{configurable:!0,get:function(){return parseFloat(g.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 g={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=g},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 g(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 m(){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:g(t.currentTarget,t.touches),changedTouches:g(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 g=c.createLinearGradient.apply(c,u(s[1]));s[2].forEach((function(e){var t=e[0],n=p(e[1]);g.addColorStop(t,n)})),l=g}else if("radial"===s[0]){var m=s[1][0],v=s[1][1],y=s[1][2],_=c.createRadialGradient(m,v,0,m,v,y);s[2].forEach((function(e){var t=e[0],n=p(e[1]);_.addColorStop(t,n)})),l=_}else if("pattern"===s[0]){var b=n.checkImageLoaded(s[1],i.slice(e+1),a,(function(e){e&&(c[d]=c.createPattern(e,s[2]))}));return b?"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,g=l(d);switch(g){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,g=t.quality,v=void 0===g?1:g,y=t.type,_=void 0===y?"png":y,b=t.callbackId,T=this.$refs.canvas,S=T.offsetWidth-r;u=u?Math.min(u,S):S;var w=T.offsetHeight-s;c=c?Math.min(c,w):w,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,M=m(l,d),C=M.getContext("2d");"jpeg"!==_&&"jpg"!==_||(_="jpeg",C.fillStyle="#fff",C.fillRect(0,0,l,d)),C.__hidpi__=!0,C.drawImageByCanvas(T,r,s,u,c,0,0,l,d,!1);try{var E;if("base64"===p)n=M.toDataURL("image/".concat(_),v);else{var I=C.getImageData(0,0,l,d);n=Array.prototype.slice.call(I.data)}k={errMsg:"canvasGetImageData:ok",data:n,compressed:E,width:l,height:d}}catch(A){k={errMsg:"canvasGetImageData:fail ".concat(A)}}if(M.height=M.width=0,C.__hidpi__=!1,!b)return k;e.publishHandler("onCanvasMethodCallback",{callbackId:b,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=m(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,g=t.callbackId,m=this.getImageData({x:r,y:s,width:u,height:c,destWidth:l,destHeight:d,hidpi:!1,dataType:"base64",type:h,quality:f});m.data&&m.data.length?Object(o["a"])(m.data,p,(function(t,i){var r="toTempFilePath:".concat(t?"fail":"ok");t&&(r+=" ".concat(t.message)),e.publishHandler("onCanvasMethodCallback",{callbackId:g,data:{errMsg:r,tempFilePath:i}},n.$page.id)})):e.publishHandler("onCanvasMethodCallback",{callbackId:g,data:{errMsg:m.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&&g(a)&&!m(a,o)&&(r+=" with value ".concat(s)),r+=", got ".concat(o," "),g(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 g(e){return p.some((function(t){return e.toLowerCase()===t}))}function m(){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 g}));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 g(){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 g(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))}function m(e){return!(d(e)||h(e)||f(e))}function v(e,t){return m(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,g(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 g})),n.d(t,"l",(function(){return m})),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 S})),n.d(t,"p",(function(){return w})),n.d(t,"h",(function(){return k})),n.d(t,"g",(function(){return M})),n.d(t,"u",(function(){return C})),n.d(t,"d",(function(){return E})),n.d(t,"r",(function(){return I})),n.d(t,"n",(function(){return A})),n.d(t,"f",(function(){return O})),n.d(t,"t",(function(){return l})),n.d(t,"j",(function(){return x})),n.d(t,"e",(function(){return L})),n.d(t,"o",(function(){return N})),n.d(t,"a",(function(){return F}));var i,r=!1;try{var a={};Object.defineProperty(a,"passive",{get:function(){r=!0}}),window.addEventListener("test-passive",null,a)}catch(B){}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 g(e){return"string"===typeof e}function m(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 _(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var b=/-(\w)/g,T=_((function(e){return e.replace(b,(function(e,t){return t?t.toUpperCase():""}))})),S=_((function(e){return e.charAt(0).toUpperCase()+e.slice(1)}));function w(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 M(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 C(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 I(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 A(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))}function O(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 x(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 D=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]=D(e[n])}catch(B){t[n]=e[n]}})),t}function N(e){if("function"===typeof e)return window.plus?e():void document.addEventListener("plusready",e)}var P=0,R={};function j(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=String(P++);R[n]={success:t.success,fail:t.fail,complete:t.complete};var i=Object.assign({},t),r=e.bind(this)(i,n);r&&U(n,r)}}function U(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 F={warp:j,invoke:U}},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 g}));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 g(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=g;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 g(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},"1fe2":function(e,t,n){"use strict";var i=n("6d61"),r=n("acac");i("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},"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,g,m,v,y,_=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,g=a(e.length);g>p;p++)if(m=l?_(i(y=e[p])[0],y[1]):_(e[p]),m&&m instanceof c)return m;return new c(!1)}h=f.call(e)}v=h.next;while(!(y=v.call(h)).done)if(m=u(h,_,y.value,l),"object"==typeof m&&m&&m instanceof c)return m;return new c(!1)};l.stop=function(e){return new c(!0,e)}},2341: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("71e4")),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 g=function(e){return void 0===e&&(e=""),a.text.test(e.trim().toLowerCase())};t.isTextCodec=g;var m=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&&g(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=m;var v=function(e){return void 0===e&&(e=""),r.default.MediaSource&&r.default.MediaSource.isTypeSupported&&r.default.MediaSource.isTypeSupported(m(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 _="mp4a.40.2";t.DEFAULT_AUDIO_CODEC=_;var b="avc1.4d400d";t.DEFAULT_VIDEO_CODEC=b},"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,g=e.target,m=e.global,v=e.stat;if(l=m?i:v?i[g]||s(g,{}):(i[g]||{}).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(m?d:g+(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)}},"244e":function(e,t,n){"use strict";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("4ec9"),n("a9e3"),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("71e4")),o=i(n("686f")),s=i(n("a559")),u=i(n("3c96")),c=i(n("55b5")),l=i(n("963e")),d=i(n("ae9e")),h=i(n("673b")),f=i(n("82f8d")),p=i(n("b17c")),g=i(n("ed6d")),m=i(n("692b")),v=n("6f8c"),y=n("2341"),_=n("0633"),b=n("8b5b"),T=i(n("c471")),S=n("c069"),w=n("b1cb"),k=n("df9e"),M=n("b858"),C="7.17.0",E={},I=function(e,t){return E[e]=E[e]||[],t&&(E[e]=E[e].concat(t)),E[e]},A=function(e,t){I(e,t)},O=function(e,t){var n=I(e).indexOf(t);return!(n<=-1)&&(E[e]=E[e].slice(),E[e].splice(n,1),!0)},x=function(e,t){I(e,[].concat(t).map((function(t){var n=function n(){return O(e,n),t.apply(void 0,arguments)};return n})))},D={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"]],N=L[0],P=0;P<L.length;P++)if(L[P][1]in o.default){r=L[P];break}if(r){for(var R=0;R<r.length;R++)D[N[R]]=r[R];D.prefixed=r[0]!==N[0]}var j=[],U=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+":"),j){j.push([].concat(r));var u=j.length-1e3;j.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 F(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=U(e,i),i.createLogger=function(t){return F(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 j?[].concat(j):[]},i.history.filter=function(e){return(j||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},i.history.clear=function(){j&&(j.length=0)},i.history.disable=function(){null!==j&&(j.length=0,j=null)},i.history.enable=function(){null===j&&(j=[])},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 B=F("VIDEOJS"),G=B.createLogger,q=Object.prototype.toString,V=function(e){return z(e)?Object.keys(e):[]};function H(e,t){V(e).forEach((function(n){return t(e[n],n)}))}function $(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&&H(t,(function(t,n){e[n]=t}))})),e)}function z(e){return!!e&&"object"===typeof e}function K(e){return z(e)&&"[object Object]"===q.call(e)&&e.constructor===Object}function Y(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 X=a.default.navigator&&a.default.navigator.userAgent||"",J=/AppleWebKit\/([\d.]+)/i.exec(X),Q=J?parseFloat(J.pop()):null,Z=/iPod/i.test(X),ee=function(){var e=X.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),te=/Android/i.test(X),ne=function(){var e=X.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&&Q<537,re=/Firefox/i.test(X),ae=/Edg/i.test(X),oe=!ae&&(/Chrome/i.test(X)||/CriOS/i.test(X)),se=function(){var e=X.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),ue=function(){var e=/MSIE\s(\d+)\.\d/.exec(X),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(X)&&/rv:11.0/.test(X)&&(t=11),t}(),ce=/Safari/i.test(X)&&!oe&&!te&&!ae,le=/Windows/i.test(X),de=Boolean(be()&&("ontouchstart"in a.default||a.default.navigator.maxTouchPoints||a.default.DocumentTouch&&a.default.document instanceof a.default.DocumentTouch)),he=/iPad/i.test(X)||ce&&de&&!/iPhone/i.test(X),fe=/iPhone/i.test(X)&&!he,pe=fe||he||Z,ge=(ce||pe)&&!oe,me=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:ge});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 _e(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}function be(){return o.default===a.default.document}function Te(e){return z(e)&&1===e.nodeType}function Se(){try{return a.default.parent!==a.default.self}catch(e){return!0}}function we(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?(B.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?Me(r,n):r[e]===n&&"tabIndex"!==e||(r[e]=n)})),Object.getOwnPropertyNames(n).forEach((function(e){r.setAttribute(e,n[e])})),i&&He(r,i),r}function Me(e,t){return"undefined"===typeof e.textContent?e.innerText=t:e.textContent=t,e}function Ce(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):_e(t).test(e.className)}function Ie(e,t){return e.classList?e.classList.add(t):Ee(e,t)||(e.className=(e.className+" "+t).trim()),e}function Ae(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):(B.warn("removeClass was called with an element that doesn't exist"),null)}function Oe(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?Ie(e,t):Ae(e,t),e}function xe(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 De(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 Ne(e,t,n){e.setAttribute(t,n)}function Pe(e,t){e.removeAttribute(t)}function Re(){o.default.body.focus(),o.default.onselectstart=function(){return!1}}function je(){o.default.onselectstart=function(){return!0}}function Ue(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(Y(e,"height"))),n.width||(n.width=parseFloat(Y(e,"width"))),n}}function Fe(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[D.fullscreenElement])i+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:i,top:r,width:t,height:n}}function Be(e,t){var n={x:0,y:0};if(pe){var i=e;while(i&&"html"!==i.nodeName.toLowerCase()){var r=Y(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=Fe(t.target),c=Fe(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 Ge(e){return z(e)&&3===e.nodeType}function qe(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)||Ge(e)?e:"string"===typeof e&&/\S/.test(e)?o.default.createTextNode(e):void 0})).filter((function(e){return e}))}function He(e,t){return Ve(t).forEach((function(t){return e.appendChild(t)})),e}function $e(e,t){return He(qe(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 ze,Ke=we("querySelector"),Ye=we("querySelectorAll"),Xe=Object.freeze({__proto__:null,isReal:be,isEl:Te,isInFrame:Se,createEl:ke,textContent:Me,prependTo:Ce,hasClass:Ee,addClass:Ie,removeClass:Ae,toggleClass:Oe,setAttributes:xe,getAttributes:De,getAttribute:Le,setAttribute:Ne,removeAttribute:Pe,blockTextSelection:Re,unblockTextSelection:je,getBoundingClientRect:Ue,findPosition:Fe,getPointerPosition:Be,isTextNode:Ge,emptyEl:qe,normalizeContent:Ve,appendContent:He,insertContent:$e,isSingleLeftClick:We,$:Ke,$$:Ye}),Je=!1,Qe=function(){if(!1!==ze.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&&ze(s)}}else Je||Ze(1)}};function Ze(e,t){be()&&(t&&(ze=t),a.default.setTimeout(Qe,e))}function et(){Je=!0,a.default.removeEventListener("load",et)}be()&&("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];B("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&&("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){B.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 gt(e,t,n){if(ut.has(e)){var i=ut.get(e);if(i.handlers){if(Array.isArray(t))return lt(gt,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 mt(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)mt.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(){gt(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(){gt(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||ot(),pt(e,t,i)}var _t,bt=Object.freeze({__proto__:null,fixEvent:dt,on:pt,off:gt,trigger:mt,one:vt,any:yt}),Tt=30,St=function(e,t,n){t.guid||(t.guid=ot());var i=t.bind(e);return i.guid=n?n+"_"+t.guid:t.guid,i},wt=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},Mt=function(){};Mt.prototype.allowedEvents_={},Mt.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},pt(this,e,t),this.addEventListener=n},Mt.prototype.addEventListener=Mt.prototype.on,Mt.prototype.off=function(e,t){gt(this,e,t)},Mt.prototype.removeEventListener=Mt.prototype.off,Mt.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},vt(this,e,t),this.addEventListener=n},Mt.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},yt(this,e,t),this.addEventListener=n},Mt.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),mt(this,e)},Mt.prototype.dispatchEvent=Mt.prototype.trigger,Mt.prototype.queueTrigger=function(e){var t=this;_t||(_t=new Map);var n=e.type||e,i=_t.get(this);i||(i=new Map,_t.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,_t["delete"](t)),t.trigger(e)}),0);i.set(n,o)};var Ct=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 Mt||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"===typeof e[t]}))},It=function(e,t){Et(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},At=function(e){return"string"===typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},Ot=function(e,t,n){if(!e||!e.nodeName&&!Et(e))throw new Error("Invalid target for "+Ct(t)+"#"+n+"; must be a DOM node or evented object.")},xt=function(e,t,n){if(!At(e))throw new Error("Invalid event type for "+Ct(t)+"#"+n+"; must be a non-empty string or array.")},Dt=function(e,t,n){if("function"!==typeof e)throw new Error("Invalid listener for "+Ct(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]),Ot(i,e,n),xt(r,e,n),Dt(a,e,n),a=St(e,a),{isTargetingSelf:o,target:i,type:r,listener:a}},Nt=function(e,t,n,i){Ot(e,e,t),e.nodeName?bt[t](e,n,i):e[t](n,i)},Pt={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(Nt(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,Nt(this,"on","dispose",c),Nt(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)Nt(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,Nt(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)Nt(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,Nt(o,"any",s,c)}},off:function(e,t,n){if(!e||At(e))gt(this.eventBusEl_,e,t);else{var i=e,r=t;Ot(i,this,"off"),xt(r,this,"off"),Dt(n,this,"off"),n=St(this,n),this.off("dispose",n),i.nodeName?(gt(i,r,n),gt(i,"dispose",n)):Et(i)&&(i.off(r,n),i.off("dispose",n))}},trigger:function(e,t){Ot(this.eventBusEl_,this,"trigger");var n=e&&"string"!==typeof e?e.type:e;if(!At(n)){var i="Invalid event type for "+Ct(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||B).error(i)}return mt(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,Pt),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 jt={state:{},setState:function(e){var t,n=this;return"function"===typeof e&&(e=e()),H(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 Ut(e,t){return W(e,jt),e.state=W({},e.state,t),"function"===typeof e.handleStateChanged&&Et(e)&&e.on("statechanged",e.handleStateChanged),e}var Ft=function(e){return"string"!==typeof e?e:e.replace(/./,(function(e){return e.toLowerCase()}))},Bt=function(e){return"string"!==typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))},Gt=function(e,t){return Bt(e)===Bt(t)};function qt(){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&&H(t,(function(t,n){K(t)?(K(e[n])||(e[n]={}),e[n]=qt(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}(),Ht=a.default.Map?a.default.Map:Vt,$t=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:$t,zt=function(){function e(e,t,n){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=qt({},this.options_),t=this.options_=qt(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var i=e&&e.id&&e.id()||"no_player";this.id_=i+"_component_"+ot()}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),!1!==t.evented&&(Rt(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),Ut(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 Ht,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&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_=qt(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=Bt(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&&Bt(r.name()),a&&(this.childNameIndex_[a]=r,this.childNameIndex_[Ft(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_[Bt(e.name())]=null,this.childNameIndex_[Ft(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||Bt(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 Ke(e,t||this.contentEl())},t.$$=function(e,t){return Ye(e,t||this.contentEl())},t.hasClass=function(e){return Ee(this.el_,e)},t.addClass=function(e){Ie(this.el_,e)},t.removeClass=function(e){Ae(this.el_,e)},t.toggleClass=function(e,t){Oe(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){Ne(this.el_,e,t)},t.removeAttribute=function(e){Pe(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"+Bt(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=Y(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){var n="offset"+Bt(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_&&(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=St(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=St(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=St(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=St(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=St(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=Bt(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_[Ft(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function Kt(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 Yt(e,t,n,i){return Kt(e,i,n.length-1),n[i][t]}function Xt(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:Yt.bind(null,"start",0,e),end:Yt.bind(null,"end",1,e)},a.default.Symbol&&a.default.Symbol.iterator&&(t[a.default.Symbol.iterator]=function(){return(e||[]).values()}),t}function Jt(e,t){return Array.isArray(e)?Xt(e):void 0===e||void 0===t?Xt():Xt([[e,t]])}function Qt(e,t){var n,i,r=0;if(!t)return 0;e&&e.length||(e=Jt(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:z(e)&&("number"===typeof e.code&&(this.code=e.code),W(this,e)),this.message||(this.message=Zt.defaultMessages[this.code]||"")}zt.prototype.supportsRaf_="function"===typeof a.default.requestAnimationFrame&&"function"===typeof a.default.cancelAnimationFrame,zt.registerComponent("Component",zt),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")}),Me(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}(0,c.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(),$e(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"),qe(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(),d.default.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(d.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}(zt);cn.prototype.options_={pauseOnOpen:!0,temporary:!0},zt.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,u.default)(n),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<t.length;i++)n.addTrack(t[i]);return n}(0,c.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}(Mt);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,c.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)},gn=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,u.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,c.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),mn=function(e){function t(){return e.apply(this,arguments)||this}(0,c.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}(),_n={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},bn={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"},Sn={disabled:"disabled",hidden:"hidden",showing:"showing"},wn=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,u.default)(n),e,{get:function(){return i[e]},set:function(){}})};for(var o in i)a(o);return Object.defineProperty((0,u.default)(n),"label",{get:function(){return r},set:function(e){e!==r&&(r=e,this.trigger("labelchange"))}}),n}return(0,c.default)(t,e),t}(Mt),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},Mn=function(e){if(!e.match(/^https?:\/\//)){var t=o.default.createElement("a");t.href=e,e=t.href}return e},Cn=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},In=Object.freeze({__proto__:null,parseUrl:kn,getAbsoluteURL:Mn,getFileExtension:Cn,isCrossOrigin:En}),An=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 B.error(e)})),a.default.console&&a.default.console.groupEnd&&a.default.console.groupEnd()),n.flush()},On=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,St(this,(function(e,n,i){if(e)return B.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 An(i,t);B.error("vttjs failed to load, stopping trying to process "+t.src)})):An(i,t)})))},xn=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var i=qt(t,{kind:Tn[t.kind]||"subtitles",language:t.language||t.srclang||""}),r=Sn[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_),c=!1,l=St((0,u.default)(n),(function(){this.tech_.isReady_&&!this.tech_.isDisposed()&&(this.activeCues=this.activeCues,c&&(this.trigger("cuechange"),c=!1))})),d=function(){n.tech_.off("timeupdate",l)};return n.tech_.one("dispose",d),"disabled"!==r&&n.tech_.on("timeupdate",l),Object.defineProperties((0,u.default)(n),{default:{get:function(){return a},set:function(){}},mode:{get:function(){return r},set:function(e){Sn[e]&&r!==e&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||On(this.src,this),this.tech_.off("timeupdate",l),"disabled"!==r&&this.tech_.on("timeupdate",l),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(c=!1,t.length!==this.activeCues_.length)c=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(c=!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)&&On(n.src,(0,u.default)(n))):n.loaded_=!0,n}(0,c.default)(t,e);var n=t.prototype;return 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}(wn);xn.prototype.allowedEvents_={cuechange:"cuechange"};var Dn=function(e){function t(t){var n;void 0===t&&(t={});var i=qt(t,{kind:bn[t.kind]||""});n=e.call(this,i)||this;var r=!1;return Object.defineProperty((0,u.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,c.default)(t,e),t}(wn),Ln=function(e){function t(t){var n;void 0===t&&(t={});var i=qt(t,{kind:_n[t.kind]||""});n=e.call(this,i)||this;var r=!1;return Object.defineProperty((0,u.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,c.default)(t,e),t}(wn),Nn=0,Pn=1,Rn=2,jn=3,Un=function(e){function t(t){var n,i;void 0===t&&(t={}),n=e.call(this)||this;var r=new xn(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,u.default)(n),{readyState:{get:function(){return i}},track:{get:function(){return r}}}),i=Nn,r.addEventListener("loadeddata",(function(){i=Rn,n.trigger({type:"load",target:(0,u.default)(n)})})),n}return(0,c.default)(t,e),t}(Mt);Un.prototype.allowedEvents_={load:"load"},Un.NONE=Nn,Un.LOADING=Pn,Un.LOADED=Rn,Un.ERROR=jn;var Fn={audio:{ListClass:fn,TrackClass:Dn,capitalName:"Audio"},video:{ListClass:gn,TrackClass:Ln,capitalName:"Video"},text:{ListClass:mn,TrackClass:xn,capitalName:"Text"}};Object.keys(Fn).forEach((function(e){Fn[e].getterName=e+"Tracks",Fn[e].privateName=e+"Tracks_"}));var Bn={remoteText:{ListClass:mn,TrackClass:xn,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:vn,TrackClass:Un,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Gn=(0,s.default)({},Fn,Bn);function qn(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 Gn.text.TrackClass(r);return a.addTrack(o),o}Bn.names=Object.keys(Bn),Fn.names=Object.keys(Fn),Gn.names=[].concat(Bn.names).concat(Fn.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.hasStarted_=!1,i.on("playing",(function(){this.hasStarted_=!0})),i.on("loadstart",(function(){this.hasStarted_=!1})),Gn.names.forEach((function(e){var n=Gn[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 Gn.text.ListClass,i.initTrackListeners(),t.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}(0,c.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(St(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 Jt(0,0)},n.bufferedPercent=function(){return Qt(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(Fn.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_?Jt(0,0):Jt()},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;Fn.names.forEach((function(t){var n=Fn[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"]&&K(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 qn(this,e,t,n)},n.createRemoteTextTrack=function(e){var t=qt(e,{tech:this});return new Bn.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&&(B.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.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=Bt(e),t.techs_[e]=n,t.techs_[Ft(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=Bt(e),a.default&&a.default.videojs&&a.default.videojs[e]?(B.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}(zt);Gn.names.forEach((function(e){var t=Gn[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.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:B.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)}},zt.registerComponent("Tech",Vn),Vn.registerTech("Tech",Vn),Vn.defaultTechOrder_=[];var Hn={},$n={},Wn={};function zn(e,t){Hn[e]=Hn[e]||[],Hn[e].push(t)}function Kn(e,t,n){e.setTimeout((function(){return oi(t,Hn[t.type],n,e)}),1)}function Yn(e,t){e.forEach((function(e){return e.setTech&&e.setTech(t)}))}function Xn(e,t,n){return e.reduceRight(ni(n),t[n]())}function Jn(e,t,n,i){return t[n](e.reduce(ni(n),i))}function Qn(e,t,n,i){void 0===i&&(i=null);var r="call"+Bt(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){$n[e.id()]=null}function ai(e,t){var n=$n[e.id()],i=null;if(void 0===n||null===n)return i=t(e),$n[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,Hn[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:Hn[o.type],n,i,r,a)}))}else u.length?oi(e,u,n,i,r,a):a?n(e,r):oi(e,Hn["*"],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",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=Cn(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):z(t)&&n.push(t)})),t=n}else t="string"===typeof t&&t.trim()?[di({src:t})]:z(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=qt({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=Bt(s[o]),c=Vn.getTech(u);if(u||(c=zt.getComponent(u)),c&&c.isSupported()){t.loadTech_(u);break}}return r}return(0,c.default)(t,e),t}(zt);zt.registerComponent("MediaLoader",hi);var fi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,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,c.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&&B.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,Me(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){d.default.isEventKey(t,"Space")||d.default.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(zt);zt.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,c.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);zt.registerComponent("PosterImage",pi);var gi="#222",mi="#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 _i(e,t,n){try{e.style[t]=n}catch(i){return}}var bi=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(St((0,u.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,c.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&&_i(o.firstChild,"color",yi(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(o.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&_i(o.firstChild,"backgroundColor",yi(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?_i(o,"backgroundColor",yi(t.windowColor,t.windowOpacity)):o.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?o.firstChild.style.textShadow="2px 2px 3px "+gi+", 2px 2px 4px "+gi+", 2px 2px 5px "+gi:"raised"===t.edgeStyle?o.firstChild.style.textShadow="1px 1px "+gi+", 2px 2px "+gi+", 3px 3px "+gi:"depressed"===t.edgeStyle?o.firstChild.style.textShadow="1px 1px "+mi+", 0 1px "+mi+", -1px -1px "+gi+", 0 -1px "+gi:"uniform"===t.edgeStyle&&(o.firstChild.style.textShadow="0 0 4px "+gi+", 0 0 4px "+gi+", 0 0 4px "+gi+", 0 0 4px "+gi)),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;Ie(c,"vjs-text-track-cue"),Ie(c,"vjs-text-track-cue-"+(s.language?s.language:o)),s.language&&Ne(c,"lang",s.language)}this.player_.textTrackSettings&&this.updateDisplayState(s)}}},t}(zt);zt.registerComponent("TextTrackDisplay",bi);var Ti=function(e){function t(){return e.apply(this,arguments)||this}(0,c.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}(zt);zt.registerComponent("LoadingSpinner",Ti);var Si=function(e){function t(){return e.apply(this,arguments)||this}(0,c.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 B.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),zt.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){d.default.isEventKey(t,"Space")||d.default.isEventKey(t,"Enter")?t.stopPropagation():e.prototype.handleKeyDown.call(this,t)},t}(fi);zt.registerComponent("Button",Si);var wi=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,c.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}(Si);wi.prototype.controlText_="Play Video",zt.registerComponent("BigPlayButton",wi);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,c.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){d.default.isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(Si);zt.registerComponent("CloseButton",ki);var Mi=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,c.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}(Si);Mi.prototype.controlText_="Play",zt.registerComponent("PlayToggle",Mi);var Ci=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=Ci;function Ii(e){Ei=e}function Ai(){Ei=Ci}function Oi(e,t){return void 0===t&&(t=e),Ei(e,t)}var xi=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,c.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=Oi(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,B.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}(zt);xi.prototype.labelText_="Time",xi.prototype.controlText_="Time",zt.registerComponent("TimeDisplay",xi);var Di=function(e){function t(){return e.apply(this,arguments)||this}(0,c.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}(xi);Di.prototype.labelText_="Current Time",Di.prototype.controlText_="Current Time",zt.registerComponent("CurrentTimeDisplay",Di);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,c.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}(xi);Li.prototype.labelText_="Duration",Li.prototype.controlText_="Duration",zt.registerComponent("DurationDisplay",Li);var Ni=function(e){function t(){return e.apply(this,arguments)||this}(0,c.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}(zt);zt.registerComponent("TimeDivider",Ni);var Pi=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,c.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 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}(xi);Pi.prototype.labelText_="Remaining Time",Pi.prototype.controlText_="Remaining Time",zt.registerComponent("RemainingTimeDisplay",Pi);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,c.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}(zt);zt.registerComponent("LiveDisplay",Ri);var ji=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,c.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}(Si);ji.prototype.controlText_="Seek to live, currently playing live",zt.registerComponent("SeekToLive",ji);var Ui=function(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))},Fi=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,c.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)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;je(),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(Ui(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(e){var t=Be(this.el_,e);return this.vertical()?t.y:t.x},n.handleKeyDown=function(t){d.default.isEventKey(t,"Left")||d.default.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):d.default.isEventKey(t,"Right")||d.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}(zt);zt.registerComponent("Slider",Fi);var Bi=function(e,t){return Ui(e/t*100,0,100).toFixed(2)+"%"},Gi=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,c.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=Bi(r,i);t.percent_!==o&&(t.el_.style.width=o,Me(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=Bi(u,r),l.style.width=Bi(c-u,r))}for(var d=a.length;d>n.length;d--)t.el_.removeChild(a[d-1]);a.length=n.length}))},t}(zt);zt.registerComponent("LoadProgressBar",Gi);var qi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=wt(St((0,u.default)(i),i.update),Tt),i}(0,c.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=Fe(this.el_),r=Ue(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){Me(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?"":"-")+Oi(u,s)}else a=Oi(n,o);r.update(e,t,a),i&&i()}))},t}(zt);zt.registerComponent("TimeTooltip",qi);var Vi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=wt(St((0,u.default)(i),i.update),Tt),i}(0,c.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}(zt);Vi.prototype.options_={children:[]},pe||te||Vi.prototype.options_.children.push("timeTooltip"),zt.registerComponent("PlayProgressBar",Vi);var Hi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=wt(St((0,u.default)(i),i.update),Tt),i}(0,c.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}(zt);Hi.prototype.options_={children:["timeTooltip"]},zt.registerComponent("MouseTimeDisplay",Hi);var $i=5,Wi=12,zi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.setEventHandlers_(),i}(0,c.default)(t,e);var n=t.prototype;return n.setEventHandlers_=function(){var e=this;this.update_=St(this,this.update),this.update=wt(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}",[Oi(e,r),Oi(r,r)],"{1} of {2}")),n.currentTime_=e,n.duration_=r),n.bar&&n.bar.update(Ue(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.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e){if(We(e)){var t,n=this.calculateDistance(e),i=this.player_.liveTracker;if(i&&i.isLive()){if(n>=.99)return void i.seekToLiveEdge();var r=i.seekableStart(),a=i.liveCurrentTime();if(t=r+n*i.liveWindow(),t>=a&&(t=a),t<=r&&(t=r+.1),t===1/0)return}else t=n*this.player_.duration(),t===this.player_.duration()&&(t-=.1);this.userSeek_(t)}},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()+$i)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-$i)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){var n=this.player_.liveTracker;if(d.default.isEventKey(t,"Space")||d.default.isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(d.default.isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(d.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,d.default)(t))){t.preventDefault(),t.stopPropagation();var i=10*(d.default.codes[(0,d.default)(t)]-d.default.codes["0"])/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else d.default.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-$i*Wi)):d.default.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+$i*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}(Fi);zi.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},pe||te||zi.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),zt.registerComponent("SeekBar",zi);var Ki=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.handleMouseMove=wt(St((0,u.default)(i),i.handleMouseMove),Tt),i.throttledHandleMouseSeek=wt(St((0,u.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,c.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=Fe(r),o=Be(r,e).x;o=Ui(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}(zt);Ki.prototype.options_={children:["seekBar"]},zt.registerComponent("ProgressControl",Ki);var Yi=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.disable(),i}(0,c.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}(Si);Yi.prototype.controlText_="Picture-in-Picture",zt.registerComponent("PictureInPictureToggle",Yi);var Xi=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,c.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}(Si);Xi.prototype.controlText_="Fullscreen",zt.registerComponent("FullscreenToggle",Xi);var Ji=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")}))},Qi=function(e){function t(){return e.apply(this,arguments)||this}(0,c.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}(zt);zt.registerComponent("VolumeLevel",Qi);var Zi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=wt(St((0,u.default)(i),i.update),Tt),i}(0,c.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=Ue(this.el_),a=Ue(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){Me(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}(zt);zt.registerComponent("VolumeLevelTooltip",Zi);var er=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,i.update=wt(St((0,u.default)(i),i.update),Tt),i}(0,c.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}(zt);er.prototype.options_={children:["volumeLevelTooltip"]},zt.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,c.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=Ue(n),r=this.vertical(),a=Be(n,e);a=r?a.y:a.x,a=Ui(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}(Fi);tr.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},pe||te||tr.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),tr.prototype.playerEvent="volumechange",zt.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||K(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),i=e.call(this,t,n)||this,Ji((0,u.default)(i),t),i.throttledHandleMouseMove=wt(St((0,u.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,c.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}(zt);nr.prototype.options_={children:["volumeBar"]},zt.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,u.default)(i),t),i.on(t,["loadstart","volumechange"],(function(e){return i.update(e)})),i}(0,c.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++)Ae(this.el_,"vjs-vol-"+n);Ie(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}(Si);rr.prototype.controlText_="Mute",zt.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||K(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,c.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){d.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"),gt(o.default,"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(e){d.default.isEventKey(e,"Esc")&&this.handleMouseOut()},t}(zt);ar.prototype.options_={children:["muteToggle","volumeControl"]},zt.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,c.default)(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof zt&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof zt&&(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){d.default.isEventKey(e,"Left")||d.default.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(d.default.isEventKey(e,"Right")||d.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}(zt);zt.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 Si(t,n),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var r=Si.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,c.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.show()},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:Bt(this.options_.title),tabIndex:-1}),n=new zt(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=Si.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"),gt(o.default,"keyup",this.handleMenuKeyUp_)},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(e){d.default.isEventKey(e,"Esc")||d.default.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),d.default.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(d.default.isEventKey(e,"Up")||d.default.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(e){(d.default.isEventKey(e,"Esc")||d.default.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},n.handleSubmenuKeyDown=function(e){(d.default.isEventKey(e,"Esc")||d.default.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),d.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&&Se())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}(zt);zt.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,u.default)(i);var a=St((0,u.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,c.default)(t,e),t}(sr);zt.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,c.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 d.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);zt.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 c,l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleTracksChange.apply((0,u.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,u.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{c=new a.default.Event("change")}catch(e){}c||(c=o.default.createEvent("Event"),c.initEvent("change",!0,!0)),s.dispatchEvent(c)}));return i.handleTracksChange(),i}(0,c.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);zt.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,c.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);zt.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,c.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);zt.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,r.addEventListener("cuechange",St((0,u.default)(i),i.update)),i}(0,c.default)(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},n.update=function(e){var t=this.cue,n=this.player_.currentTime();this.selected(t.startTime<=n&&n<t.endTime)},t}(lr);zt.registerComponent("ChaptersTrackMenuItem",pr);var gr=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}(0,c.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){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChaptersTrack()),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_=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_)}}},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(Bt(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);gr.prototype.kind_="chapters",gr.prototype.controlText_="Chapters",zt.registerComponent("ChaptersButton",gr);var mr=function(e){function t(t,n,i){var r;r=e.call(this,t,n,i)||this;var a=t.textTracks(),o=St((0,u.default)(r),r.handleTracksChange);return a.addEventListener("change",o),r.on("dispose",(function(){a.removeEventListener("change",o)})),r}(0,c.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);mr.prototype.kind_="descriptions",mr.prototype.controlText_="Descriptions",zt.registerComponent("DescriptionsButton",mr);var vr=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}(0,c.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",zt.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,c.default)(t,e);var n=t.prototype;return n.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(dr);zt.registerComponent("CaptionSettingsMenuItem",yr);var _r=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}(0,c.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);_r.prototype.kind_="captions",_r.prototype.controlText_="Captions",zt.registerComponent("CaptionsButton",_r);var br=function(e){function t(){return e.apply(this,arguments)||this}(0,c.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);zt.registerComponent("SubsCapsMenuItem",br);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(Bt(i.label_)),i}(0,c.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,br),t},t}(fr);Tr.prototype.kinds_=["captions","subtitles"],Tr.prototype.controlText_="Subtitles",zt.registerComponent("SubsCapsButton",Tr);var Sr=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,u.default)(i),t)};return a.addEventListener("change",o),i.on("dispose",(function(){a.removeEventListener("change",o)})),i}(0,c.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(e.prototype.createEl.call(this,"span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text",textContent:this.localize("Descriptions")}))),r},n.handleClick=function(t){e.prototype.handleClick.call(this,t),this.track.enabled=!0},n.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(lr);zt.registerComponent("AudioTrackMenuItem",Sr);var wr=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.audioTracks(),e.call(this,t,n)||this}(0,c.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 Sr(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return e},t}(ur);wr.prototype.controlText_="Audio Track",zt.registerComponent("AudioTrackButton",wr);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,c.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",zt.registerComponent("PlaybackRateMenuItem",kr);var Mr=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,c.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){for(var t=this.player().playbackRate(),n=this.playbackRates(),i=n[0],r=0;r<n.length;r++)if(n[r]>t){i=n[r];break}this.player().playbackRate(i)},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);Mr.prototype.controlText_="Playback Rate",zt.registerComponent("PlaybackRateMenuButton",Mr);var Cr=function(e){function t(){return e.apply(this,arguments)||this}(0,c.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}(zt);zt.registerComponent("Spacer",Cr);var Er=function(e){function t(){return e.apply(this,arguments)||this}(0,c.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}(Cr);zt.registerComponent("CustomControlSpacer",Er);var Ir=function(e){function t(){return e.apply(this,arguments)||this}(0,c.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}(zt);Ir.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in o.default&&Ir.prototype.options_.children.splice(Ir.prototype.options_.children.length-1,0,"pictureInPictureToggle"),zt.registerComponent("ControlBar",Ir);var Ar=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,c.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);Ar.prototype.options_=(0,s.default)({},cn.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),zt.registerComponent("ErrorDisplay",Ar);var Or="vjs-text-track-settings",xr=["#000","Black"],Dr=["#00F","Blue"],Lr=["#0FF","Cyan"],Nr=["#0F0","Green"],Pr=["#F0F","Magenta"],Rr=["#F00","Red"],jr=["#FFF","White"],Ur=["#FF0","Yellow"],Fr=["1","Opaque"],Br=["0.5","Semi-Transparent"],Gr=["0","Transparent"],qr={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[xr,jr,Rr,Nr,Dr,Ur,Pr,Lr]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Fr,Br,Gr]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[jr,xr,Rr,Nr,Dr,Ur,Pr,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:[Fr,Br]},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:[Gr,Br,Fr]}};function Vr(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}function Hr(e,t){var n=e.options[e.options.selectedIndex].value;return Vr(n,t)}function $r(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}}qr.windowColor.options=qr.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,u.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()})),H(qr,(function(e){i.on(i.$(e.selector),"change",i.updateDisplay)})),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}(0,c.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=qr[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 $(qr,(function(t,n,i){var r=Hr(e.$(n.selector),n.parser);return void 0!==r&&(t[i]=r),t}),{})},n.setValues=function(e){var t=this;H(qr,(function(n,i){$r(t.$(n.selector),e[i],n.parser)}))},n.setDefaults=function(){var e=this;H(qr,(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(Or))}catch(t){B.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(Or,JSON.stringify(e)):a.default.localStorage.removeItem(Or)}catch(t){B.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);zt.registerComponent("TextTrackSettings",Wr);var zr=function(e){function t(t,n){var i,r=n.ResizeObserver||a.default.ResizeObserver;null===n.ResizeObserver&&(r=!1);var o=qt({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,u.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(){gt(this,"resize",e),gt(this,"unload",t),t=null};pt(i.el_.contentWindow,"unload",t),pt(i.el_.contentWindow,"resize",e)}},i.one("load",i.loadListener_)),i}(0,c.default)(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"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}(zt);zt.registerComponent("ResizeManager",zr);var Kr={trackingThreshold:20,liveTolerance:15},Yr=function(e){function t(t,n){var i,r=qt(Kr,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.one(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,c.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}(zt);zt.registerComponent("LiveTracker",Yr);var Xr,Jr=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)},Qr=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,Qr],"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 Jr(e),o}};["append","appendChild","insertAdjacentHTML"].forEach((function(e){t[e]&&(n[e]=t[e],t[e]=r(n[e]))})),Object.defineProperty(t,"innerHTML",qt(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")?Mn(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",qt(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 Jr(e)||(e.triggerSourceset(""),ta(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):Jr(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(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&&B.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,c.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=Fn[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[Bn.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;Fn.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&&De(this.options_.tag),r=qt({},i);de&&!0===this.options_.nativeControlsForTouch||delete r.controls,xe(e,W(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}"undefined"!==typeof this.options_.preload&&Ne(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?Ne(e,u,u):Pe(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&&ge?this.el_.fastSeek(e):this.el_.currentTime=e}catch(t){B(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})},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.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(be()){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;return oa.TEST_VID.volume=e/2+.1,e!==oa.TEST_VID.volume}catch(t){return!1}},oa.canMuteVolume=function(){try{var e=oa.TEST_VID.muted;return oa.TEST_VID.muted=!e,oa.TEST_VID.muted?Ne(oa.TEST_VID,"muted","muted"):Pe(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 ge||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"],[["featuresVolumeControl","canControlVolume"],["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.movingMediaElementInDOM=!pe,oa.prototype.featuresFullscreenResize=!0,oa.prototype.featuresProgressEvents=!0,oa.prototype.featuresTimeupdateEvents=!0,oa.patchCanPlayType=function(){ne>=4&&!re&&!oe&&(Xr=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":Xr.call(this,e)})},oa.unpatchCanPlayType=function(){var e=oa.TEST_VID.constructor.prototype.canPlayType;return Xr&&(oa.TEST_VID.constructor.prototype.canPlayType=Xr),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"+Bt(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"+Bt(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=Cn(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 c=n;while(c&&1===c.nodeType){if(De(c).hasOwnProperty("lang")){i.language=c.getAttribute("lang");break}c=c.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=G(a.id_),a.fsApi_=D,a.isPosterFromTech_=!1,a.queuedCallbacks_=[],a.isReady_=!1,a.hasStarted_=!1,a.userActive_=!1,a.debugEnabled_=!1,!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&&De(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,u.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=qt(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,u.default)(a);var h=C.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}(0,c.default)(t,e);var n=t.prototype;return n.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),gt(o.default,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),gt(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),Gn.names.forEach((function(e){var t=Gn[e],i=n[t.getterName]();i&&i.off&&i.off()})),e.prototype.dispose.call(this)},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=De(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")||Ie(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=Ke(".vjs-styles-defaults"),c=Ke("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);Ie(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!i&&n.parentNode.insertBefore(t,n),Ce(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):B.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)?B.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),It(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 {\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=Bt(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};Gn.names.forEach((function(e){var t=Gn[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(St(this,this.handleTechReady_),!0),sn.jsonToTextTracks(this.textTracksJson_||[],this.tech_),sa.forEach((function(e){n.on(n.tech_,e,(function(t){return n["handleTech"+Bt(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||Ce(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var e=this;Gn.names.forEach((function(t){var n=Gn[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&&B.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=qt({},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=De(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&&(B.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){t&&(t.nativeIOSFullscreen&&this.toggleClass("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 Jn(this.middleware_,this.tech_,e,t);if(e in ti)return Qn(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(n){throw B(n),n}}),!0)},n.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Zn)return Xn(this.middleware_,this.tech_,e);if(e in ti)return Qn(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw B("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw B("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw B(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||!ge&&!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")||Jt(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=Jt(0,0)),e},n.bufferedPercent=function(){return Qt(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",Ie(o.default.body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(e){d.default.isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},n.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,gt(o.default,"keydown",this.boundFullWindowOnEscKey_),o.default.documentElement.style.overflow=this.docOrigOverflow,Ae(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 d.default.isEventKey(e,"f")}:n,r=t.muteKey,a=void 0===r?function(e){return d.default.isEventKey(e,"m")}:r,s=t.playPauseKey,u=void 0===s?function(e){return d.default.isEventKey(e,"k")||d.default.isEventKey(e,"Space")}:s;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();var c=zt.getComponent("FullscreenToggle");!1!==o.default[this.fsApi_.fullscreenEnabled]&&c.prototype.handleClick.call(this,e)}else if(a.call(this,e)){e.preventDefault(),e.stopPropagation();var l=zt.getComponent("MuteToggle");l.prototype.handleClick.call(this,e)}else if(u.call(this,e)){e.preventDefault(),e.stopPropagation();var h=zt.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=zt.getComponent(r)),a){if(a.isSupported()&&(t=a.canPlayType(e),t))return t}else B.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():(B.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]),Kn(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.localize(this.options_.notSupportedMessage)})}),0),void n.triggerReady());Yn(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.localize(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||(Gt(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(I("beforeerror").forEach((function(n){var i=n(t,e);z(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"),B.error("(CODE:"+this.error_.code+" "+Zt.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),I("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=St(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.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 qt(t.prototype.options_.languages,this.languages_)},n.toJSON=function(){var e=qt(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var i=t[n];i=qt(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=qt(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 qt(this.cache_.media)},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=De(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,l.default)(i||"{}"),a=r[0],o=r[1];a&&B.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 d=s[u],h=d.nodeName.toLowerCase();"source"===h?t.sources.push(De(d)):"track"===h&&t.tracks.push(De(d))}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}(zt);Gn.names.forEach((function(e){var t=Gn[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},["ended","seeking","seekable","networkState","readyState"].forEach((function(e){ha.prototype[e]=function(){return this.techGet_(e)}})),sa.forEach((function(e){ha.prototype["handleTech"+Bt(e)+"_"]=function(){return this.trigger(e)}})),zt.registerComponent("Player",ha);var pa="plugin",ga="activePlugins_",ma={},va=function(e){return ma.hasOwnProperty(e)},ya=function(e){return va(e)?ma[e]:void 0},_a=function(e,t){e[ga]=e[ga]||{},e[ga][t]=!0},ba=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(){ba(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return _a(this,e),ba(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach((function(e){n[e]=t[e]})),n},Sa=function(e,t){return t.prototype.name=e,function(){ba(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},ba(this,a.getEventHash()),a}},wa=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,Ut(this,this.constructor.defaultState),_a(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={}),mt(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[ga][e]=!1,this.player=this.state=null,t[e]=Sa(e,ma[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))B.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 ma[t]=n,t!==pa&&(e.isBasic(n)?ha.prototype[t]=Ta(t,n):ha.prototype[t]=Sa(t,n)),n},e.deregisterPlugin=function(e){if(e===pa)throw new Error("Cannot de-register base plugin.");va(e)&&(delete ma[e],delete ha.prototype[e])},e.getPlugins=function(e){var t;return void 0===e&&(e=Object.keys(ma)),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}();wa.getPlugin=ya,wa.BASE_PLUGIN_NAME=pa,wa.registerPlugin(pa,wa),ha.prototype.usingPlugin=function(e){return!!this[ga]&&!0===this[ga][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,g.default)(n,e),e&&(n.super_=e),i)i.hasOwnProperty(r)&&(n.prototype[r]=i[r]);return n},Ma=function(e){return 0===e.indexOf("#")?e.slice(1):e};function Ca(e,t,n){var i=Ca.getPlayer(e);if(i)return t&&B.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&i.ready(n),i;var r="string"===typeof e?Ke("#"+Ma(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)||B.warn("The element supplied is not included in the DOM"),t=t||{},I("beforesetup").forEach((function(e){var n=e(r,qt(t));z(n)&&!Array.isArray(n)?t=qt(t,n):B.error("please return an object in beforesetup hooks")}));var a=zt.getComponent("Player");return i=new a(r,t,n),I("setup").forEach((function(e){return e(i)})),i}if(Ca.hooks_=E,Ca.hooks=I,Ca.hook=A,Ca.hookOnce=x,Ca.removeHook=O,!0!==a.default.VIDEOJS_NO_DYNAMIC_STYLE&&be()){var Ea=Ke(".vjs-styles-defaults");if(!Ea){Ea=nt("vjs-styles-defaults");var Ia=Ke("head");Ia&&Ia.insertBefore(Ea,Ia.firstChild),it(Ea,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}Ze(1,Ca),Ca.VERSION=C,Ca.options=ha.prototype.options_,Ca.getPlayers=function(){return ha.players},Ca.getPlayer=function(e){var t,n=ha.players;if("string"===typeof e){var i=Ma(e),r=n[i];if(r)return r;t=Ke("#"+i)}else t=e;if(Te(t)){var a=t,o=a.player,s=a.playerId;if(o||n[s])return o||n[s]}},Ca.getAllPlayers=function(){return Object.keys(ha.players).map((function(e){return ha.players[e]})).filter(Boolean)},Ca.players=ha.players,Ca.getComponent=zt.getComponent,Ca.registerComponent=function(e,t){Vn.isTech(t)&&B.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),zt.registerComponent.call(zt,e,t)},Ca.getTech=Vn.getTech,Ca.registerTech=Vn.registerTech,Ca.use=zn,Object.defineProperty(Ca,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(Ca.middleware,"TERMINATOR",{value:Wn,writeable:!1,enumerable:!0}),Ca.browser=me,Ca.TOUCH_ENABLED=de,Ca.extend=ka,Ca.mergeOptions=qt,Ca.bind=St,Ca.registerPlugin=wa.registerPlugin,Ca.deregisterPlugin=wa.deregisterPlugin,Ca.plugin=function(e,t){return B.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),wa.registerPlugin(e,t)},Ca.getPlugins=wa.getPlugins,Ca.getPlugin=wa.getPlugin,Ca.getPluginVersion=wa.getPluginVersion,Ca.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),Ca.options.languages=qt(Ca.options.languages,(n={},n[e]=t,n)),Ca.options.languages[e]},Ca.log=B,Ca.createLogger=G,Ca.createTimeRange=Ca.createTimeRanges=Jt,Ca.formatTime=Oi,Ca.setFormatTime=Ii,Ca.resetFormatTime=Ai,Ca.parseUrl=kn,Ca.isCrossOrigin=En,Ca.EventTarget=Mt,Ca.on=pt,Ca.one=vt,Ca.off=gt,Ca.trigger=mt,Ca.xhr=h.default,Ca.TextTrack=xn,Ca.AudioTrack=Dn,Ca.VideoTrack=Ln,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(e){Ca[e]=function(){return B.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Xe[e].apply(null,arguments)}})),Ca.computedStyle=Y,Ca.dom=Xe,Ca.url=In,Ca.defineLazyProperty=aa,Ca.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});/*! @name @videojs/http-streaming @version 2.12.0 @license Apache-2.0 */
var Aa=m.default,Oa=function(e,t,n){return e&&n&&n.responseURL&&t!==n.responseURL?n.responseURL:t},xa=function(e){return Ca.log.debug?Ca.log.debug.bind(Ca,"VHS:",e+" >"):function(){}},Da=1/30,La=3*Da,Na=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 Ca.createTimeRanges(i)},Pa=function(e,t){return Na(e,(function(e,n){return e-La<=t&&n+La>=t}))},Ra=function(e,t){return Na(e,(function(e){return e-Da>=t}))},ja=function(e){if(e.length<2)return Ca.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 Ca.createTimeRanges(t)},Ua=function(e,t){var n=null,i=null,r=0,a=[],o=[];if(!e||!e.length||!t||!t.length)return Ca.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 Ca.createTimeRanges(o)},Fa=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(", ")},Ba=function(e,t,n){void 0===n&&(n=1);var i=e.length?e.end(e.length-1):0;return(i-t)/n},Ga=function(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},qa=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)},Ha=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},$a=Ca.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},za=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}),[])},Ka=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},Ya=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}},Xa=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var n=Ka(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},Ja=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}},Qa=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=Ja(e,t);if(i.precise)return i.result;var r=Qa(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:Xa(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?$a():$a(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=za(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+Da<=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 g=c;g<u.length;g++){var m=u[g];if(s-=m.duration,o){if(s>0)continue}else if(s-Da>=0)continue;return{partIndex:m.partIndex,segmentIndex:m.segmentIndex,startTime:a+to({defaultDuration:t.targetDuration,durationList:u,startIndex:c,endIndex:g})}}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))))},go=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},mo=function(e){if(!e||!e.playlists||!e.playlists.length){var t=go(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=go(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:Xa,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:mo,playlistMatch:po,segmentDurationWithParts:Wa},yo=Ca.log,_o=function(e,t){return e+"-"+t},bo=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=Ka(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)}}))},So=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||{}},wo=function(e){var t=e.playlists.length;while(t--){var n=e.playlists[t];So({playlist:n,id:_o(t,n.uri)}),n.resolvedUri=Aa(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=Aa(e.uri,t.uri))}))},Mo=function(e,t){var n=_o(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},Co=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=mo(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=_o(n,o);t.uri?t.resolvedUri=t.resolvedUri||Aa(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}))})),wo(e),ko(e)},Eo=Ca.mergeOptions,Io=Ca.EventTarget,Ao=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=Ya(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},Oo=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},xo=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(Oo(u,c))):(a&&!c.map&&(c.map=a),o.push(c))}return o},Do=function(e,t){!e.resolvedUri&&e.uri&&(e.resolvedUri=Aa(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=Aa(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=Aa(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=Aa(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach((function(e){e.resolvedUri||(e.resolvedUri=Aa(t,e.uri))})),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach((function(e){e.resolvedUri||(e.resolvedUri=Aa(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},No=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},Po=function(e,t,n){void 0===n&&(n=No);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=xo(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}a.segments.forEach((function(e){Do(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 a=0;a<e.playlists.length;a++)t.id===e.playlists[a].id&&(e.playlists[a]=t)})),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)},jo=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_=xa("PlaylistLoader");var a=i,o=a.withCredentials,s=void 0!==o&&o,c=a.handleManifestRedirects,l=void 0!==c&&c;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,Ca.browser.IE_VERSION&&(r.experimentalLLHLS=!1),r.state="HAVE_NOTHING",r.handleMediaupdatetimeout_=r.handleMediaupdatetimeout_.bind((0,u.default)(r)),r.on("mediaupdatetimeout",r.handleMediaupdatetimeout_),r}(0,c.default)(t,e);var n=t.prototype;return n.handleMediaupdatetimeout_=function(){var e=this;if("HAVE_METADATA"===this.state){var t=this.media(),n=Aa(this.master.uri,t.uri);this.experimentalLLHLS&&(n=Ao(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 bo({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(),So({playlist:a,uri:i,id:r});var o=Po(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=Oa(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=Oa(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,Co(this.master,this.srcUri()),e.playlists.forEach((function(e){e.segments=Lo(e),e.segments.forEach((function(t){Do(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=Mo(e,t),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(Io),Uo=Ca.xhr,Fo=Ca.mergeOptions,Bo=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)},Go=function(){var e=function e(t,n){t=Fo({timeout:45e3},t);var i=e.beforeRequest||Ca.Vhs.xhr.beforeRequest;if(i&&"function"===typeof i){var r=i(t);r&&(t=r)}var a=!0===Ca.Vhs.xhr.original?Uo:Ca.Vhs.xhr,o=a(t,(function(e,t){return Bo(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},qo=function(e){var t=e.offset+e.length-1,n=e.offset;return"bytes="+n+"-"+t},Vo=function(e){var t={};return e.byterange&&(t.Range=qo(e.byterange)),t},Ho=function(e,t){return e.start(t)+"-"+e.end(t)},$o=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):"."},zo=function(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];ArrayBuffer.isView(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i})),t},Ko=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},Yo=function(e){return e.resolvedUri},Xo=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($o).join(""),n=i.slice(o*r,o*r+r).map(Wo).join(""),a+=t+" "+n+"\n";return a},Jo=function(e){var t=e.bytes;return Xo(t)},Qo=function(e){var t,n="";for(t=0;t<e.length;t++)n+=Ho(e,t)+" ";return n},Zo=Object.freeze({__proto__:null,createTransferableMessage:zo,initSegmentId:Ko,segmentKeyId:Yo,hexDump:Xo,tagDump:Jo,textRanges:Qo}),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,g=function(){return l(null,c.currentTime())};c.one("seeked",g),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,k.concatTypedArrays)(r,(0,k.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,w.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,Bo(e,null,{statusCode:e.status},s)}))}},c=t(u,(function(e,t){return Bo(c,e,t,s)}));return c},ds=Ca.EventTarget,hs=Ca.mergeOptions,fs=function(e,t){if(!No(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=(0,b.parse)(t,{manifestUri:n,clientOffset:i,sidxMapping:r});return Co(a,n),a},gs=function(e,t,n){for(var i=!0,r=hs(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod}),a=0;a<t.playlists.length;a++){var o=t.playlists[a];if(o.sidx){var s=(0,b.generateSidxKey)(o.sidx);n&&n[s]&&n[s].sidx&&(0,b.addSidxSegmentsToPlaylist)(o,n[s].sidx,o.sidx.resolvedUri)}var u=Po(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=Po(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},ms=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,b.generateSidxKey)(a);if(!t[o])break;var s=t[o].sidxInfo;ms(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},_s=function(e){function t(t,n,i,r){var a;void 0===i&&(i={}),a=e.call(this)||this,a.masterPlaylistLoader_=r||(0,u.default)(a),r||(a.isMaster_=!0);var o=i,s=o.withCredentials,c=void 0!==s&&s,l=o.handleManifestRedirects,d=void 0!==l&&l;if(a.vhs_=n,a.withCredentials=c,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_=xa("DashPlaylistLoader"),a.isMaster_?(a.masterPlaylistLoader_.srcUrl=t,a.masterPlaylistLoader_.sidxMapping_={}):a.childPlaylist_=t,a}(0,c.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,b.generateSidxKey)(e.sidx);if(e.sidx&&r&&!this.masterPlaylistLoader_.sidxMapping_[r]){var o=Oa(this.handleManifestRedirects,e.sidx.resolvedUri),s=function(a,o){if(!i.requestErrored_(a,o,t)){var s,u=i.masterPlaylistLoader_.sidxMapping_;try{s=(0,T.default)((0,k.toUint8)(o.response).subarray(8))}catch(c){return void i.requestErrored_(c,o,t)}return u[r]={sidxInfo:e.sidx,sidx:s},(0,b.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=Oa(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,b.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:Aa(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=ps({masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_}),t=this.masterPlaylistLoader_.master;t&&(e=gs(t,e,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=e||t;var n=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return n&&n!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=n),(!t||e&&e.minimumUpdatePeriod!==t.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(e)},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),bs={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},Ss=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},ws=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=ws(e),n=Ss(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}},Ms=function(e){return"var browserWorkerPolyFill = "+Ss.toString()+";\nbrowserWorkerPolyFill(self);\n"+e},Cs=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},Es=Ms(Cs((function(){var e=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={}}}};e.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},e.prototype.push=function(e){this.trigger("data",e)},e.prototype.flush=function(e){this.trigger("done",e)},e.prototype.partialFlush=function(e){this.trigger("partialdone",e)},e.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},e.prototype.reset=function(e){this.trigger("reset",e)};var t,n,i,r,a,o,s,u,c,l,d,h,f,p,g,m,v,y,_,b,T,S,w,k,M,C,E,I,A,O,x,D,L,N,P,R,j=e,U=Math.pow(2,32)-1;(function(){var e;if(w={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 w)w.hasOwnProperty(e)&&(w[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);k=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),C=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),M=new Uint8Array([0,0,0,1]),E=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]),I=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]),A={video:E,audio:I},D=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),x=new Uint8Array([0,0,0,0,0,0,0,0]),L=new Uint8Array([0,0,0,0,0,0,0,0]),N=L,P=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),R=L,O=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),t=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},n=function(){return t(w.dinf,t(w.dref,D))},i=function(e){return t(w.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]))},r=function(){return t(w.ftyp,k,M,k,C)},m=function(e){return t(w.hdlr,A[e])},a=function(e){return t(w.mdat,e)},g=function(e){var n=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&&(n[12]=e.samplerate>>>24&255,n[13]=e.samplerate>>>16&255,n[14]=e.samplerate>>>8&255,n[15]=255&e.samplerate),t(w.mdhd,n)},p=function(e){return t(w.mdia,g(e),m(e.type),s(e))},o=function(e){return t(w.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},s=function(e){return t(w.minf,"video"===e.type?t(w.vmhd,O):t(w.smhd,x),n(),y(e))},u=function(e,n){var i=[],r=n.length;while(r--)i[r]=b(n[r]);return t.apply(null,[w.moof,o(e)].concat(i))},c=function(e){var n=e.length,i=[];while(n--)i[n]=h(e[n]);return t.apply(null,[w.moov,d(4294967295)].concat(i).concat(l(e)))},l=function(e){var n=e.length,i=[];while(n--)i[n]=T(e[n]);return t.apply(null,[w.mvex].concat(i))},d=function(e){var n=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 t(w.mvhd,n)},v=function(e){var n,i,r=e.samples||[],a=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)n=r[i].flags,a[i+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return t(w.sdtp,a)},y=function(e){return t(w.stbl,_(e),t(w.stts,R),t(w.stsc,N),t(w.stsz,P),t(w.stco,L))},function(){var e,n;_=function(i){return t(w.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===i.type?e(i):n(i))},e=function(e){var n,i,r=e.sps||[],a=e.pps||[],o=[],s=[];for(n=0;n<r.length;n++)o.push((65280&r[n].byteLength)>>>8),o.push(255&r[n].byteLength),o=o.concat(Array.prototype.slice.call(r[n]));for(n=0;n<a.length;n++)s.push((65280&a[n].byteLength)>>>8),s.push(255&a[n].byteLength),s=s.concat(Array.prototype.slice.call(a[n]));if(i=[w.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]),t(w.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],o,[a.length],s))),t(w.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(t(w.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 t.apply(null,i)},n=function(e){return t(w.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]),i(e))}}(),f=function(e){var n=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 t(w.tkhd,n)},b=function(e){var n,i,r,a,o,s,u;return n=t(w.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/(U+1)),u=Math.floor(e.baseMediaDecodeTime%(U+1)),i=t(w.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),t(w.traf,n,i,r)):(a=v(e),r=S(e,a.length+o),t(w.traf,n,i,r,a))},h=function(e){return e.duration=e.duration||4294967295,t(w.trak,f(e),p(e))},T=function(e){var n=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&&(n[n.length-1]=0),t(w.trex,n)},function(){var e,n,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]},n=function(e,n){var r,a,o,s,u,c;for(s=e.samples||[],n+=20+16*s.length,o=i(s,n),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 t(w.trun,a)},e=function(e,n){var r,a,o,s,u,c;for(s=e.samples||[],n+=20+8*s.length,o=i(s,n),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 t(w.trun,r)},S=function(t,i){return"audio"===t.type?e(t,i):n(t,i)}}();var F,B,G,q,V,H,$,W,z={ftyp:r,mdat:a,moof:u,moov:c,initSegment:function(e){var t,n=r(),i=c(e);return t=new Uint8Array(n.byteLength+i.byteLength),t.set(n),t.set(i,n.byteLength),t}},K=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},Y=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},X=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},J=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},Q=function(e,t){var n=J();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},Z=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=Q(o,s),s+=r.size,u.push(r);return u},ee=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},te=function(e,t){var n,i=t||0,r=[];return n=Q(e,i),r.push(n),r},ne=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},ie={groupNalsIntoFrames:K,groupFramesIntoGops:Y,extendFirstKeyFrame:X,generateSampleTable:Z,concatenateNalData:ee,generateSampleTableForFrame:te,concatenateNalDataForFrame:ne},re=[33,16,5,32,164,27],ae=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],oe=function(e){var t=[];while(e--)t.push(0);return t},se=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}),{})},ue=function(){if(!F){var e={96e3:[re,[227,64],oe(154),[56]],88200:[re,[231],oe(170),[56]],64e3:[re,[248,192],oe(240),[56]],48e3:[re,[255,192],oe(268),[55,148,128],oe(54),[112]],44100:[re,[255,192],oe(268),[55,163,128],oe(84),[112]],32e3:[re,[255,192],oe(268),[55,234],oe(226),[112]],24e3:[re,[255,192],oe(268),[55,255,128],oe(268),[111,112],oe(126),[224]],16e3:[re,[255,192],oe(268),[55,255,128],oe(268),[111,255],oe(269),[223,108],oe(195),[1,192]],12e3:[ae,oe(268),[3,127,248],oe(268),[6,255,240],oe(268),[13,255,224],oe(268),[27,253,128],oe(259),[56]],11025:[ae,oe(268),[3,127,248],oe(268),[6,255,240],oe(268),[13,255,224],oe(268),[27,255,192],oe(268),[55,175,128],oe(108),[112]],8e3:[ae,oe(268),[3,121,16],oe(47),[7]]};F=se(e)}return F},ce=9e4;B=function(e){return e*ce},G=function(e,t){return e*t},q=function(e){return e/ce},V=function(e,t){return e/t},H=function(e,t){return B(V(e,t))},$=function(e,t){return G(q(e),t)},W=function(e,t,n){return q(n?e:e-t)};var le={ONE_SECOND_IN_TS:ce,secondsToVideoTs:B,secondsToAudioTs:G,videoTsToSeconds:q,audioTsToSeconds:V,audioTsToVideoTs:H,videoTsToAudioTs:$,metadataTsToSeconds:W},de=function(e){var t,n,i=0;for(t=0;t<e.length;t++)n=e[t],i+=n.data.byteLength;return i},he=function(e,t,n,i){var r,a,o,s,u=0,c=0,l=0,d=0;if(t.length&&(r=le.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),u=Math.ceil(le.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>le.ONE_SECOND_IN_TS/2))){for(a=ue()[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(le.videoTsToAudioTs(d,e.samplerate)),d}},fe=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)})))},pe=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},ge=function(e){var t,n,i=0,r=new Uint8Array(de(e));for(t=0;t<e.length;t++)n=e[t],r.set(n.data,i),i+=n.data.byteLength;return r},me={prefixWithSilence:he,trimAdtsFramesByEarliestDts:fe,generateSampleTable:pe,concatenateFrameData:ge},ve=le.ONE_SECOND_IN_TS,ye=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))},_e=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},be=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/ve,n*=i,n=Math.floor(n)),n},Te={clearDtsInfo:_e,calculateTrackBaseMediaDecodeTime:be,collectDtsInfo:ye},Se=4,we=128,ke=function(e){var t=0,n={payloadType:-1,payloadSize:0},i=0,r=0;while(t<e.byteLength){if(e[t]===we)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===Se){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},Me=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)},Ce=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},Ee=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},Ie={parseSei:ke,parseUserData:Me,parseCaptionPackets:Ce,discardEmulationPreventionBytes:Ee,USER_DATA_REGISTERED_ITU_T_T35:Se},Ae=function e(t){t=t||{},e.prototype.init.call(this),this.parse708captions_="boolean"!==typeof t.parse708captions||t.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Ge(0,0),new Ge(0,1),new Ge(1,0),new Ge(1,1)],this.parse708captions_&&(this.cc708Stream_=new Pe({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")))};Ae.prototype=new j,Ae.prototype.push=function(e){var t,n,i;if("sei_rbsp"===e.nalUnitType&&(t=Ie.parseSei(e.escapedRBSP),t.payload&&t.payloadType===Ie.USER_DATA_REGISTERED_ITU_T_T35&&(n=Ie.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=Ie.parseCaptionPackets(e.pts,n),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},Ae.prototype.flushCCStreams=function(e){this.ccStreams_.forEach((function(t){return"flush"===e?t.flush():t.partialFlush()}),this)},Ae.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)},Ae.prototype.flush=function(){return this.flushStream("flush")},Ae.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Ae.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(e){e.reset()}))},Ae.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)},Ae.prototype.setsChannel1Active=function(e){return 4096===(30720&e.ccData)},Ae.prototype.setsChannel2Active=function(e){return 6144===(30720&e.ccData)},Ae.prototype.setsTextOrXDSActive=function(e){return 256===(28928&e.ccData)||4138===(30974&e.ccData)||6186===(30974&e.ccData)},Ae.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var Oe={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},xe=function(e){var t=Oe[e]||e;return 4096&e&&e===t?"":String.fromCharCode(t)},De=function(e){return 32<=e&&e<=127||160<=e&&e<=255},Le=function(e){this.windowNum=e,this.reset()};Le.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},Le.prototype.getText=function(){return this.rows.join("\n")},Le.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},Le.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--},Le.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},Le.prototype.addText=function(e){this.rows[this.rowIdx]+=e},Le.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var Ne=function(e,t,n){this.serviceNum=e,this.text="",this.currentWindow=new Le(-1),this.windows=[],this.stream=n,"string"===typeof t&&this.createTextDecoder(t)};Ne.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new Le(n),"function"===typeof t&&(this.windows[n].beforeRowOverflow=t)},Ne.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},Ne.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 Pe=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))}};Pe.prototype=new j,Pe.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Pe.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)},Pe.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)},Pe.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],De(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++},Pe.prototype.extendedCommands=function(e,t){var n=this.current708Packet.data,i=n[++e];return De(i)&&(e=this.handleText(e,t,{isExtended:!0})),e},Pe.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},Pe.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 Ne(e,n,r),this.services[e].init(this.getPts(t),(function(t){r.flushDisplayed(t,r.services[e])})),this.services[e]},Pe.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=xe(u|c),d.pendingNewLine&&!d.isEmpty()&&d.newLine(this.getPts(e)),d.pendingNewLine=!1,d.addText(i),e},Pe.prototype.multiByteCharacter=function(e,t){var n=this.current708Packet.data,i=n[e+1],r=n[e+2];return De(i)&&De(r)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},Pe.prototype.setCurrentWindow=function(e,t){var n=this.current708Packet.data,i=n[e],r=7&i;return t.setCurrentWindow(r),e},Pe.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},Pe.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},Pe.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},Pe.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)},Pe.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},Pe.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},Pe.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},Pe.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},Pe.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},Pe.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},Pe.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},Pe.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},Pe.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)};var Re={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},je=function(e){return null===e?"":(e=Re[e]||e,String.fromCharCode(e))},Ue=14,Fe=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Be=function(){var e=[],t=Ue+1;while(t--)e.push("");return e},Ge=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_=Be();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Be();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Be()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(i,r))i=(3&i)<<8,a=je(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=je(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=Fe.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=je(i),a+=je(r),this[this.mode_](e.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};Ge.prototype=new j,Ge.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_})},Ge.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Be(),this.nonDisplayed_=Be(),this.lastControlCode_=null,this.column_=0,this.row_=Ue,this.rollUpRows_=2,this.formatting_=[]},Ge.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_},Ge.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},Ge.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},Ge.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},Ge.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},Ge.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},Ge.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},Ge.prototype.isNormalChar=function(e){return e>=32&&e<=127},Ge.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=Ue,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Be(),this.displayed_=Be()),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},Ge.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)},Ge.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)}},Ge.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},Ge.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},Ge.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<Ue+1;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},Ge.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n};var qe={CaptionStream:Ae,Cea608Stream:Ge,Cea708Stream:Pe},Ve={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},He=8589934592,$e=4294967296,We="shared",ze=function(e,t){var n=1;e>t&&(n=-1);while(Math.abs(t-e)>$e)e+=n*He;return e},Ke=function e(t){var n,i;e.prototype.init.call(this),this.type_=t||We,this.push=function(e){this.type_!==We&&e.type!==this.type_||(void 0===i&&(i=e.dts),e.dts=ze(e.dts,i),e.pts=ze(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")}};Ke.prototype=new j;var Ye,Xe={TimestampRolloverStream:Ke,handleRollover:ze},Je=function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r},Qe=function(e,t,n){return decodeURIComponent(Je(e,t,n))},Ze=function(e,t,n){return unescape(Je(e,t,n))},et=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},tt={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=Qe(e.data,1,t),e.value=Qe(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=Qe(e.data,1,t),e.url=Qe(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=Ze(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};Ye=function(e){var t,n={descriptor:e&&e.descriptor},i=0,r=[],a=0;if(Ye.prototype.init.call(this),this.dispatchType=Ve.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=et(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+=et(t.data.subarray(10,14)),i-=et(t.data.subarray(16,20)));do{if(o=et(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,tt[s.id]&&(tt[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)}}},Ye.prototype=new j;var nt,it,rt,at=Ye,ot=Xe.TimestampRolloverStream,st=188,ut=71;nt=function(){var e=new Uint8Array(st),t=0;nt.prototype.init.call(this),this.push=function(n){var i,r=0,a=st;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]!==ut||i[a]!==ut?(r++,a++):(this.trigger("data",i.subarray(r,a)),r+=st,a+=st);r<i.byteLength&&(e.set(i.subarray(r),0),t=i.byteLength-r)},this.flush=function(){t===st&&e[0]===ut&&(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")}},nt.prototype=new j,it=function(){var e,t,n,i;it.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===Ve.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=u:s===Ve.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=u:s===Ve.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=Ve.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=Ve.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}},it.prototype=new j,it.STREAM_TYPES={h264:27,adts:15},rt=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)}};rt.prototype.init.call(this),this.push=function(o){({pat:function(){},pes:function(){var e,t;switch(o.streamType){case Ve.H264_STREAM_TYPE:e=i,t="video";break;case Ve.ADTS_STREAM_TYPE:e=r,t="audio";break;case Ve.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")}},rt.prototype=new j;var ct={PAT_PID:0,MP2T_PACKET_LENGTH:st,TransportPacketStream:nt,TransportParseStream:it,ElementaryStream:rt,TimestampRolloverStream:ot,CaptionStream:qe.CaptionStream,Cea608Stream:qe.Cea608Stream,Cea708Stream:qe.Cea708Stream,MetadataStream:at};for(var lt in Ve)Ve.hasOwnProperty(lt)&&(ct[lt]=Ve[lt]);var dt,ht=ct,ft=le.ONE_SECOND_IN_TS,pt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];dt=function(e){var t,n=0;dt.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*ft/pt[(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:pt[(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")}},dt.prototype=new j;var gt,mt=dt;gt=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 vt,yt,_t,bt=gt;yt=function(){var e,t,n=0;yt.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")}},yt.prototype=new j,_t={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},vt=function(){var e,t,n,i,r,a,o,s=new yt;vt.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,g=0,m=0,v=0,y=0,_=[1,1];if(t=new bt(e),n=t.readUnsignedByte(),r=t.readUnsignedByte(),i=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),_t[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()&&(g=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb(),y=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(f=t.readUnsignedByte(),f){case 1:_=[1,1];break;case 2:_=[12,11];break;case 3:_=[10,11];break;case 4:_=[16,11];break;case 5:_=[40,33];break;case 6:_=[24,11];break;case 7:_=[20,11];break;case 8:_=[32,11];break;case 9:_=[80,33];break;case 10:_=[18,11];break;case 11:_=[15,11];break;case 12:_=[64,33];break;case 13:_=[160,99];break;case 14:_=[4,3];break;case 15:_=[3,2];break;case 16:_=[2,1];break;case 255:_=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()];break}_&&(_[0],_[1])}return{profileIdc:n,levelIdc:i,profileCompatibility:r,width:16*(c+1)-2*g-2*m,height:(2-d)*(l+1)*16-2*v-2*y,sarRatio:_}}},vt.prototype=new j;var Tt,St={H264Stream:vt,NalByteStream:yt},wt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],kt=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},Mt=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+=kt(t,n),e(t,n))},Ct=function(e){var t=Mt(e,0);return e.length>=t+2&&255===(255&e[t])&&240===(240&e[t+1])&&16===(22&e[t+1])},Et=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},It=function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r},At=function(e,t,n){return unescape(It(e,t,n))},Ot=function(e,t){var n=(224&e[t+5])>>5,i=e[t+4]<<3,r=6144&e[t+3];return r|i|n},xt=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},Dt=function(e){var t=0;while(t+5<e.length){if(255===e[t]&&240===(246&e[t+1]))return wt[(60&e[t+2])>>>2];t++}return null},Lt=function(e){var t,n,i,r;t=10,64&e[5]&&(t+=4,t+=Et(e.subarray(10,14)));do{if(n=Et(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=At(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},Nt={isLikelyAacData:Ct,parseId3TagSize:kt,parseAdtsSize:Ot,parseType:xt,parseSampleRate:Dt,parseAacTimestamp:Lt};Tt=function(){var e=new Uint8Array,t=0;Tt.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=Nt.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=Nt.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")}},Tt.prototype=new j;var Pt,Rt,jt,Ut,Ft=Tt,Bt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Gt=Bt,qt=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Vt=qt,Ht=St.H264Stream,$t=Nt.isLikelyAacData,Wt=le.ONE_SECOND_IN_TS,zt=function(e,t){t.stream=e,this.trigger("log",t)},Kt=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",zt.bind(e,r))}},Yt=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},Xt=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}};Rt=function(e,t){var n,i=[],r=0,a=0,o=1/0;t=t||{},n=t.firstSequenceNumber||0,Rt.prototype.init.call(this),this.push=function(t){Te.collectDtsInfo(e,t),e&&Gt.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=me.trimAdtsFramesByEarliestDts(i,e,r),e.baseMediaDecodeTime=Te.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),f=me.prefixWithSilence(e,s,a,o),e.samples=me.generateSampleTable(s),c=z.mdat(me.concatenateFrameData(s)),i=[],u=z.moof(n,[e]),l=new Uint8Array(u.byteLength+c.byteLength),n++,l.set(u),l.set(c,u.byteLength),Te.clearDtsInfo(e),d=Math.ceil(1024*Wt/e.samplerate),s.length&&(h=s.length*d,this.trigger("segmentTimingInfo",Xt(le.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(){Te.clearDtsInfo(e),i=[],this.trigger("reset")}},Rt.prototype=new j,Pt=function(e,t){var n,i,r,a=[],o=[];t=t||{},n=t.firstSequenceNumber||0,Pt.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){Te.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.config,e.sps=[t.data],Vt.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=ie.groupNalsIntoFrames(a),s=ie.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=ie.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");Te.clearDtsInfo(e),s=p}Te.collectDtsInfo(e,s),e.samples=ie.generateSampleTable(s),c=z.mdat(ie.concatenateNalData(s)),e.baseMediaDecodeTime=Te.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",Xt(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=z.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(){Te.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&&Yt(e.pps[0],a.pps[0])&&e.sps&&Yt(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}},Pt.prototype=new j,Ut=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,Ut.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))))}},Ut.prototype=new j,Ut.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,Vt.forEach((function(e){o.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,Gt.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=z.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=le.metadataTsToSeconds(t.startPts,s,this.keepOriginalTimestamps),t.endTime=le.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=le.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)},Ut.prototype.setRemux=function(e){this.remuxTracks=e},jt=function(e){var t,n,i=this,r=!0;jt.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 ht.MetadataStream,r.aacStream=new Ft,r.audioTimestampRolloverStream=new ht.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new ht.TimestampRolloverStream("timed-metadata"),r.adtsStream=new mt,r.coalesceStream=new Ut(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 Rt(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")),Kt(this,r)},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new ht.MetadataStream,r.packetStream=new ht.TransportPacketStream,r.parseStream=new ht.TransportParseStream,r.elementaryStream=new ht.ElementaryStream,r.timestampRolloverStream=new ht.TimestampRolloverStream,r.adtsStream=new mt,r.h264Stream=new Ht,r.captionStream=new ht.CaptionStream(e),r.coalesceStream=new Ut(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 Pt(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 Rt(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")),Kt(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,Te.clearDtsInfo(n),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,Te.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=$t(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()}},jt.prototype=new j;var Jt,Qt,Zt,en,tn,nn,rn={Transmuxer:jt,VideoSegmentStream:Pt,AudioSegmentStream:Rt,AUDIO_PROPERTIES:Gt,VIDEO_PROPERTIES:Vt,generateSegmentTimingInfo:Xt},an=function(e){return e>>>0},on=function(e){return("00"+e.toString(16)).slice(-2)},sn={toUnsigned:an,toHexString:on},un=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},cn=un,ln=sn.toUnsigned,dn=function e(t,n){var i,r,a,o,s,u=[];if(!n.length)return null;for(i=0;i<t.byteLength;)r=ln(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]),a=cn(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},hn=dn,fn=sn.toUnsigned,pn=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4)),baseMediaDecodeTime:fn(e[4]<<24|e[5]<<16|e[6]<<8|e[7])};return 1===t.version&&(t.baseMediaDecodeTime*=Math.pow(2,32),t.baseMediaDecodeTime+=fn(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),t},gn=pn,mn=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=mn,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},_n=yn,bn=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=bn,Sn=Ie.discardEmulationPreventionBytes,wn=qe.CaptionStream,kn=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},Mn=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=kn(r,t);if(i={nalUnitType:"sei_rbsp",size:a,data:c,escapedRBSP:Sn(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},Cn=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=_n(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),e.pts=i+e.compositionTimeOffset,i+=e.duration})),s=s.concat(n)})),s},En=function(e,t){var n=hn(e,["moof","traf"]),i=hn(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=hn(o,["tfhd"]),u=Tn(s[0]),c=u.trackId,l=hn(o,["tfdt"]),d=l.length>0?gn(l[0]).baseMediaDecodeTime:0,h=hn(o,["trun"]);t===c&&h.length>0&&(n=Cn(h,d,u),i=Mn(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},In=function(e,t,n){var i;if(null===t)return null;i=En(e,t);var r=i[t]||{};return{seiNals:r.seiNals,logs:r.logs,timescale:n}},An=function(){var e,t,n,i,r,a,o=!1;this.isInitialized=function(){return o},this.init=function(t){e=new wn,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=In(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()},On=An,xn=sn.toUnsigned,Dn=sn.toHexString;Jt=function(e){var t={},n=hn(e,["moov","trak"]);return n.reduce((function(e,t){var n,i,r,a,o;return n=hn(t,["tkhd"])[0],n?(i=n[0],r=0===i?12:20,a=xn(n[r]<<24|n[r+1]<<16|n[r+2]<<8|n[r+3]),o=hn(t,["mdia","mdhd"])[0],o?(i=o[0],r=0===i?12:20,e[a]=xn(o[r]<<24|o[r+1]<<16|o[r+2]<<8|o[r+3]),e):null):null}),t)},Qt=function(e,t){var n,i,r;return n=hn(t,["moof","traf"]),i=[].concat.apply([],n.map((function(t){return hn(t,["tfhd"]).map((function(n){var i,r,a;return i=xn(n[4]<<24|n[5]<<16|n[6]<<8|n[7]),r=e[i]||9e4,a=hn(t,["tfdt"]).map((function(e){var t,n;return t=e[0],n=xn(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),1===t&&(n*=Math.pow(2,32),n+=xn(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),n}))[0],a="number"!==typeof a||isNaN(a)?1/0:a,a/r}))}))),r=Math.min.apply(null,i),isFinite(r)?r:0},Zt=function(e,t){var n,i=hn(t,["moof","traf"]),r=0,a=0;if(i&&i.length){var o=hn(i[0],["tfhd"])[0],s=hn(i[0],["trun"])[0],u=hn(i[0],["tfdt"])[0];if(o){var c=Tn(o);n=c.trackId}if(u){var l=gn(u);r=l.baseMediaDecodeTime}if(s){var d=_n(s);d.samples&&d.samples.length&&(a=d.samples[0].compositionTimeOffset||0)}}var h=e[n]||9e4;return(r+a)/h},en=function(e){var t=hn(e,["moov","trak"]),n=[];return t.forEach((function(e){var t=hn(e,["mdia","hdlr"]),i=hn(e,["tkhd"]);t.forEach((function(e,t){var r,a,o,s=cn(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},nn=function(e){var t=e[0],n=0===t?12:20;return xn(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3])},tn=function(e){var t=hn(e,["moov","trak"]),n=[];return t.forEach((function(e){var t,i,r={},a=hn(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=hn(e,["mdia","hdlr"])[0];if(o){var s=cn(o.subarray(8,12));r.type="vide"===s?"video":"soun"===s?"audio":s}var u=hn(e,["mdia","minf","stbl","stsd"])[0];if(u){var c=u.subarray(8);r.codec=cn(c.subarray(4,8));var l,d,h=hn(c,[r.codec])[0];h&&(/^[asm]vc[1-9]$/i.test(r.codec)?(l=h.subarray(78),d=cn(l.subarray(4,8)),"avcC"===d&&l.length>11?(r.codec+=".",r.codec+=Dn(l[9]),r.codec+=Dn(l[10]),r.codec+=Dn(l[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(l=h.subarray(28),d=cn(l.subarray(4,8)),"esds"===d&&l.length>20&&0!==l[19]?(r.codec+="."+Dn(l[19]),r.codec+="."+Dn(l[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var f=hn(e,["mdia","mdhd"])[0];f&&(r.timescale=nn(f)),n.push(r)})),n};var Ln={findBox:hn,parseType:cn,timescale:Jt,startTime:Qt,compositionStartTime:Zt,videoTrackIds:en,tracks:tn,getTimescaleFromMediaHeader:nn},Nn=function(e){var t=31&e[1];return t<<=8,t|=e[2],t},Pn=function(e){return!!(64&e[1])},Rn=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},jn=function(e,t){var n=Nn(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},Un=function(e){var t=Pn(e),n=4+Rn(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},Fn=function(e){var t={},n=Pn(e),i=4+Rn(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}},Bn=function(e,t){var n=Nn(e),i=t[n];switch(i){case Ve.H264_STREAM_TYPE:return"video";case Ve.ADTS_STREAM_TYPE:return"audio";case Ve.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},Gn=function(e){var t=Pn(e);if(!t)return null;var n=4+Rn(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}},Vn=function(e){for(var t,n=4+Rn(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},Hn={parseType:jn,parsePat:Un,parsePmt:Fn,parsePayloadUnitStartIndicator:Pn,parsePesType:Bn,parsePesTime:Gn,videoPacketContainsKeyFrame:Vn},$n=Xe.handleRollover,Wn={};Wn.ts=Hn,Wn.aac=Nt;var zn=le.ONE_SECOND_IN_TS,Kn=188,Yn=71,Xn=function(e,t){var n,i,r=0,a=Kn;while(a<e.byteLength)if(e[r]!==Yn||e[a]!==Yn)r++,a++;else{switch(n=e.subarray(r,a),i=Wn.ts.parseType(n,t.pid),i){case"pat":t.pid=Wn.ts.parsePat(n);break;case"pmt":var o=Wn.ts.parsePmt(n);t.table=t.table||{},Object.keys(o).forEach((function(e){t.table[e]=o[e]}));break}r+=Kn,a+=Kn}},Jn=function(e,t,n){var i,r,a,o,s,u=0,c=Kn,l=!1;while(c<=e.byteLength)if(e[u]!==Yn||e[c]!==Yn&&c!==e.byteLength)u++,c++;else{switch(i=e.subarray(u,c),r=Wn.ts.parseType(i,t.pid),r){case"pes":a=Wn.ts.parsePesType(i,t.table),o=Wn.ts.parsePayloadUnitStartIndicator(i),"audio"===a&&o&&(s=Wn.ts.parsePesTime(i),s&&(s.type="audio",n.audio.push(s),l=!0));break}if(l)break;u+=Kn,c+=Kn}c=e.byteLength,u=c-Kn,l=!1;while(u>=0)if(e[u]!==Yn||e[c]!==Yn&&c!==e.byteLength)u--,c--;else{switch(i=e.subarray(u,c),r=Wn.ts.parseType(i,t.pid),r){case"pes":a=Wn.ts.parsePesType(i,t.table),o=Wn.ts.parsePayloadUnitStartIndicator(i),"audio"===a&&o&&(s=Wn.ts.parsePesTime(i),s&&(s.type="audio",n.audio.push(s),l=!0));break}if(l)break;u-=Kn,c-=Kn}},Qn=function(e,t,n){var i,r,a,o,s,u,c,l,d=0,h=Kn,f=!1,p={data:[],size:0};while(h<e.byteLength)if(e[d]!==Yn||e[h]!==Yn)d++,h++;else{switch(i=e.subarray(d,h),r=Wn.ts.parseType(i,t.pid),r){case"pes":if(a=Wn.ts.parsePesType(i,t.table),o=Wn.ts.parsePayloadUnitStartIndicator(i),"video"===a&&(o&&!f&&(s=Wn.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(Wn.ts.videoPacketContainsKeyFrame(u)){var g=Wn.ts.parsePesTime(u);g?(n.firstKeyFrame=g,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+=Kn,h+=Kn}h=e.byteLength,d=h-Kn,f=!1;while(d>=0)if(e[d]!==Yn||e[h]!==Yn)d--,h--;else{switch(i=e.subarray(d,h),r=Wn.ts.parseType(i,t.pid),r){case"pes":a=Wn.ts.parsePesType(i,t.table),o=Wn.ts.parsePayloadUnitStartIndicator(i),"video"===a&&o&&(s=Wn.ts.parsePesTime(i),s&&(s.type="video",n.video.push(s),f=!0));break}if(f)break;d-=Kn,h-=Kn}},Zn=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=$n(e.dts,n),e.pts=$n(e.pts,n),e.dtsTime=e.dts/zn,e.ptsTime=e.pts/zn}))}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=$n(e.dts,i),e.pts=$n(e.pts,i),e.dtsTime=e.dts/zn,e.ptsTime=e.pts/zn})),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=$n(r.dts,i),r.pts=$n(r.pts,i),r.dtsTime=r.dts/zn,r.ptsTime=r.pts/zn}}},ei=function(e){var t,n=!1,i=0,r=null,a=null,o=0,s=0;while(e.length-s>=3){var u=Wn.aac.parseType(e,s);switch(u){case"timed-metadata":if(e.length-s<10){n=!0;break}if(o=Wn.aac.parseId3TagSize(e,s),o>e.length){n=!0;break}null===a&&(t=e.subarray(s,s+o),a=Wn.aac.parseAacTimestamp(t)),s+=o;break;case"audio":if(e.length-s<7){n=!0;break}if(o=Wn.aac.parseAdtsSize(e,s),o>e.length){n=!0;break}null===r&&(t=e.subarray(s,s+o),r=Wn.aac.parseSampleRate(t)),i++,s+=o;break;default:s++;break}if(n)return null}if(null===r||null===a)return null;var c=zn/r,l={audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*i*c,pts:a+1024*i*c}]};return l},ti=function(e){var t={pid:null,table:null},n={};for(var i in Xn(e,t),t.table)if(t.table.hasOwnProperty(i)){var r=t.table[i];switch(r){case Ve.H264_STREAM_TYPE:n.video=[],Qn(e,t,n),0===n.video.length&&delete n.video;break;case Ve.ADTS_STREAM_TYPE:n.audio=[],Jn(e,t,n),0===n.audio.length&&delete n.audio;break}}return n},ni=function(e,t){var n,i=Wn.aac.isLikelyAacData(e);return n=i?ei(e):ti(e),n&&(n.audio||n.video)?(Zn(n,t),n):null},ii={inspect:ni,parseAudioPes_:Jn},ri=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:le.videoTsToSeconds(t.start.dts),presentation:le.videoTsToSeconds(t.start.pts)},end:{decode:le.videoTsToSeconds(t.end.dts),presentation:le.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:le.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=le.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})})),t.on("audioSegmentTimingInfo",(function(t){var n={start:{decode:le.videoTsToSeconds(t.start.dts),presentation:le.videoTsToSeconds(t.start.pts)},end:{decode:le.videoTsToSeconds(t.end.dts),presentation:le.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:le.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=le.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:le.videoTsToSeconds(t.start),end:le.videoTsToSeconds(t.end)}})})),t.on("videoTimingInfo",(function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:le.videoTsToSeconds(t.start),end:le.videoTsToSeconds(t.end)}})})),t.on("log",(function(t){e.postMessage({action:"log",log:t})}))},ai=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 rn.Transmuxer(this.options),ri(this.self,this.transmuxer)},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new On,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=Ln.startTime(t,n);this.self.postMessage({action:"probeMp4StartTime",startTime:i,data:n},[n.buffer])},t.probeMp4Tracks=function(e){var t=e.data,n=Ln.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*le.ONE_SECOND_IN_TS,r=ii.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(le.secondsToVideoTs(t)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(le.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 ai(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new ai(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}}))),Is=ks(Es),As=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)},Os=function(e){var t=e.transmuxedData,n=e.callback;t.buffer=[],n(t)},xs=function(e,t){t.gopInfo=e.data.gopInfo},Ds=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,g=e.onEndedTimeline,m=e.onTransmuxerLog,v=e.isEndOfTimeline,y={buffer:[]},_=v,b=function(n){t.currentTransmux===e&&("data"===n.data.action&&As(n,y,o),"trackinfo"===n.data.action&&s(n.data.trackInfo),"gopInfo"===n.data.action&&xs(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&&(_=!1,g()),"log"===n.data.action&&m(n.data.log),"transmuxed"===n.data.type&&(_||(t.onmessage=null,Os({transmuxedData:y,callback:p}),Ls(t))))};if(t.onmessage=b,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,S=n instanceof ArrayBuffer?0:n.byteOffset;t.postMessage({action:"push",data:T,byteOffset:S,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():Ds(e.currentTransmux))},Ns=function(e,t){e.postMessage({action:t}),Ls(e)},Ps=function(e,t){if(!t.currentTransmux)return t.currentTransmux=e,void Ns(t,e);t.transmuxQueue.push(Ns.bind(null,t,e))},Rs=function(e){Ps("reset",e)},js=function(e){Ps("endTimeline",e)},Us=function(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void Ds(e);e.transmuxer.transmuxQueue.push(e)},Fs=function(e){var t=new Is;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},Bs={reset:Rs,endTimeline:js,transmux:Us,createTransmuxer:Fs},Gs=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)},qs={FAILURE:2,TIMEOUT:-101,ABORTED:-102},Vs=function(e){e.forEach((function(e){e.abort()}))},Hs=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}},$s=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:qs.TIMEOUT,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:qs.ABORTED,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:qs.FAILURE,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:qs.FAILURE,xhr:t}:null},zs=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:qs.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)}},Ks=function(e,t){var n=(0,w.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:qs.FAILURE})}Gs({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)}})},Ys=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,Ks(t,(function(e){if(e)return e.xhr=i,e.status=i.status,n(e,t);n(null,t)}))}},Xs=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=Hs(r),t.key?t.encryptedBytes=new Uint8Array(o):t.bytes=new Uint8Array(o),n(null,t)}},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=t.map&&t.map.tracks||{},g=Boolean(p.audio&&p.video),m=r.bind(null,t,"audio","start"),v=r.bind(null,t,"audio","end"),y=r.bind(null,t,"video","start"),_=r.bind(null,t,"video","end"),b=function(){return Us({bytes:n,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:g,onData:function(e){e.type="combined"===e.type?"video":e.type,d(t,e)},onTrackInfo:function(e){i&&(g&&(e.isMuxed=!0),i(t,e))},onAudioTimingInfo:function(e){m&&"undefined"!==typeof e.start&&(m(e.start),m=null),v&&"undefined"!==typeof e.end&&v(e.end)},onVideoTimingInfo:function(e){y&&"undefined"!==typeof e.start&&(y(e.start),y=null),_&&"undefined"!==typeof e.end&&_(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))}})};Gs({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:g}),i=null,r.hasAudio&&!g&&m(r.audioStart),r.hasVideo&&y(r.videoStart),m=null,y=null),b()}})},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=new Uint8Array(n);if((0,w.isLikelyFmp4MediaSegment)(p)){t.isFmp4=!0;var g=t.map.tracks,m={isFmp4:!0,hasVideo:!!g.video,hasAudio:!!g.audio};g.audio&&g.audio.codec&&"enca"!==g.audio.codec&&(m.audioCodec=g.audio.codec),g.video&&g.video.codec&&"encv"!==g.video.codec&&(m.videoCodec=g.video.codec),g.video&&g.audio&&(m.isMuxed=!0),i(t,m);var v=function(e){d(t,{data:p,type:m.hasAudio&&!m.isMuxed?"audio":"video"}),e&&e.length&&u(t,e),h(null,t,{})};Gs({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,m.hasAudio&&!m.isMuxed&&r(t,"audio","start",a),m.hasVideo&&r(t,"video","start",a),g.video&&i.byteLength&&t.transmuxer?Gs({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:p,timescales:t.map.timescales,trackIds:[g.video.id],callback:function(e){n=e.data.buffer,t.bytes=p=e.data,e.logs.forEach((function(e){f(Ca.mergeOptions(e,{stream:"mp4CaptionParser"}))})),v(e.captions)}}):v()}})}else if(t.transmuxer){if("undefined"===typeof t.container&&(t.container=(0,w.detectContainerForBytes)(p)),"ts"!==t.container&&"aac"!==t.container)return i(t,{hasAudio:!1,hasVideo:!1}),void h(null,t,{});Js({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(zo({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,Qs({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,g=!1;return function(e,m){if(!g){if(e)return g=!0,Vs(t),h(e,m);if(p+=1,p===t.length){var v=function(){if(m.encryptedBytes)return eu({decryptionWorker:n,segment:m,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:u,isEndOfTimeline:c,endedTimelineFn:l,dataFn:d,doneFn:h,onTransmuxerLog:f});Qs({segment:m,bytes:m.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:u,isEndOfTimeline:c,endedTimelineFn:l,dataFn:d,doneFn:h,onTransmuxerLog:f})};if(m.endOfAllRequests=Date.now(),m.map&&m.map.encryptedBytes&&!m.map.bytes)return Zs({decryptionWorker:n,id:m.requestId+"-init",encryptedBytes:m.map.encryptedBytes,key:m.map.key},(function(e){m.map.bytes=e,Ks(m,(function(e){if(e)return Vs(t),h(e,m);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=Ca.mergeOptions(t.stats,$s(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,g=e.dataFn,m=e.doneFn,v=e.onTransmuxerLog,y=[],_=tu({activeXhrs:y,decryptionWorker:i,trackInfoFn:s,timingInfoFn:u,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:l,id3Fn:d,captionsFn:h,isEndOfTimeline:f,endedTimelineFn:p,dataFn:g,doneFn:m,onTransmuxerLog:v});if(r.key&&!r.key.bytes){var b=[r.key];r.map&&!r.map.bytes&&r.map.key&&r.map.key.resolvedUri===r.key.resolvedUri&&b.push(r.map.key);var T=Ca.mergeOptions(n,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),S=zs(r,b,_),w=t(T,S);y.push(w)}if(r.map&&!r.map.bytes){var k=r.map.key&&(!r.key||r.key.resolvedUri!==r.map.key.resolvedUri);if(k){var M=Ca.mergeOptions(n,{uri:r.map.key.resolvedUri,responseType:"arraybuffer"}),C=zs(r,[r.map.key],_),E=t(M,C);y.push(E)}var I=Ca.mergeOptions(n,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:Vo(r.map)}),A=Ys({segment:r,finishProcessingFn:_}),O=t(I,A);y.push(O)}var x=Ca.mergeOptions(n,{uri:r.part&&r.part.resolvedUri||r.resolvedUri,responseType:"arraybuffer",headers:Vo(r)}),D=Xs({segment:r,finishProcessingFn:_,responseType:x.responseType}),L=t(x,D);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:g})),y.push(L);var N={};return y.forEach((function(e){e.addEventListener("loadend",nu({loadendState:N,abortFn:a}))})),function(){return Vs(y)}},au=xa("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=xa("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]:""},gu=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}))},mu=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}}));gu(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*bs.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 g="sortedPlaylistReps";return f&&(g="bandwidthBestRep"),l[0]&&(g="enabledPlaylistReps"),hu("choosing "+fu(p)+" using "+g+" with options",s),p.playlist}return hu("could not choose a playlist with options",s),null}var m=d.filter((function(e){return e.width&&e.height}));gu(m,(function(e,t){return e.width-t.width}));var v=m.filter((function(e){return e.width===n&&e.height===i}));h=v[v.length-1];var y,_,b,T,S=v.filter((function(e){return e.bandwidth===h.bandwidth}))[0];if(S||(y=m.filter((function(e){return e.width>n||e.height>i})),_=y.filter((function(e){return e.width===y[0].width&&e.height===y[0].height})),h=_[_.length-1],b=_.filter((function(e){return e.bandwidth===h.bandwidth}))[0]),o.experimentalLeastPixelDiffSelector){var w=m.map((function(e){return e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-i),e}));gu(w,(function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff})),T=w[0]}var k=T||b||S||f||l[0]||c[0];if(k&&k.playlist){var M="sortedPlaylistReps";return T?M="leastPixelDiffRep":b?M="resolutionPlusOneRep":S?M="resolutionBestRep":f?M="bandwidthBestRep":l[0]&&(M="enabledPlaylistReps"),hu("choosing "+fu(k)+" using "+M+" with options",s),k.playlist}return hu("could not choose a playlist with options",s),null}},_u=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_)},bu=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 gu(f,(function(e,t){return mu(t.playlist,e.playlist)})),f.length?f[0]:(gu(h,(function(e,t){return e.rebufferingImpact-t.rebufferingImpact})),h[0]||null)},Su=function(){var e=this,t=this.playlists.master.playlists.filter(vo.isEnabled);gu(t,(function(e,t){return mu(e,t)}));var n=t.filter((function(t){return!!du(e.playlists.master,t).video}));return n[0]||null},wu=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}}},Mu=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))}))}},Cu=function(e){Object.defineProperties(e.frame,{id:{get:function(){return Ca.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return Ca.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return Ca.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,Cu(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}))}))}}},Iu=function(e,t,n){e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)},Au=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)}},Ou=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)}))}},xu=function(e,t,n){if("undefined"===typeof t||null===t||!e.length)return[];var i,r=Math.ceil((t-n+3)*M.ONE_SECOND_IN_TS);for(i=0;i<e.length;i++)if(e[i].pts>r)break;return e.slice(i)},Du=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)*M.ONE_SECOND_IN_TS),a=Math.ceil((n-i)*M.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},Nu=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},Pu=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]},ju=1,Uu=500,Fu=function(e){return"number"===typeof e&&isFinite(e)},Bu=1/60,Gu=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},qu=function(e,t,n){var i=t-bs.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 g="number"===typeof d,m=e.segment.uri?"segment":"pre-segment",v=g?Ya({preloadSegment:i})-1:0;return m+" ["+(o+l)+"/"+(o+f)+"]"+(g?" part ["+d+"/"+v+"]":"")+" segment start/end ["+i.start+" => "+i.end+"]"+(g?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+n+"] timeline ["+h+"] selected by ["+p+"] playlist ["+s+"]"},Hu=function(e){return e+"TimingInfo"},$u=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},zu=function(e,t){var n=e&&"number"===typeof e.start&&"number"===typeof e.end?e.end-e.start:0,i=t&&"number"===typeof t.start&&"number"===typeof t.end?t.end-t.start:0;return Math.max(n,i)},Ku=function(e){var t=e.segmentDuration,n=e.maxDuration;return!!t&&Math.round(t)>n+Da},Yu=function(e,t){if("hls"!==t)return null;var n=zu(e.audioTimingInfo,e.videoTimingInfo);if(!n)return null;var i=e.playlist.targetDuration,r=Ku({segmentDuration:n,maxDuration:2*i}),a=Ku({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},Xu=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.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_=Ca.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_=xa("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty((0,u.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,c.default)(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return Bs.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_&&Bs.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return Ca.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=Ko(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=Yo(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_&&Bs.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_)Au(e,t,this.inbandTextTracks_[o]);Au(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),Uu)},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=Ha(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 g=a[o.mediaIndex-1],m=g.parts&&g.parts.length&&g.parts[g.parts.length-1];m&&m.independent&&(o.mediaIndex-=1,o.partIndex=g.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=xu(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),d},n.timestampOffsetForSegment_=function(e){return $u(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=Ba(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<=Da&&(c=1),!o.playlist||o.playlist.uri===this.playlist_.uri||u<c||(this.bandwidth=o.playlist.attributes.BANDWIDTH*bs.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||{},Nu(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=Hu(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),Au(i,o,u[e]),Mu({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();Iu(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[Hu(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=Ko(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: "+Ga(s).join(", ")),u.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Ga(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<=ju&&h-d<=ju)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: "+Ga(s).join(", ")+", video buffer: "+Ga(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-ju;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 "+ju+"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*ju)}),!0)},n.handleAppendError_=function(e,t){var n=e.segmentInfo,i=e.type,r=e.bytes;t&&(t.code!==Pu?(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=wu({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=qu(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<Bu?this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record "+Bu):(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===qs.ABORTED)return;return this.pause(),e.code===qs.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_=Du(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=Gu(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-=e.timingInfo.start,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.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=Yu(e,this.sourceType_);if(t&&("warn"===t.severity?Ca.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<Bu)this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record "+Bu);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(Fu(n)&&Fu(i)){Au(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}(Ca.EventTarget);function Ju(){}var Qu,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===Pu?"(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){Ca.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){Ca.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){Ca.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){Ca.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,u.default)(n))},n.mediaSource.addEventListener("sourceopen",n.sourceopenListener_),n.logger_=xa("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,u.default)(n)),n.onAudioUpdateEnd_=uc("audio",(0,u.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,c.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"}):Ca.log.error("removeSourceBuffer is not supported!")},n.canRemoveSourceBuffer=function(){return!Ca.browser.IE_VERSION&&!Ca.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"}):Ca.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:Ca.createTimeRange()},n.videoBuffered=function(){return ac(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Ca.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():Ua(this.audioBuffered(),this.videoBuffered())},n.setDuration=function(e,t){void 0===t&&(t=Ju),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=Ju),"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=Ju),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=Ju),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}(Ca.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,c.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 Ca.createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime,n=e[e.length-1].startTime;return Ca.createTimeRanges([[t,n]])},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Ko(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){Au(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===qs.TIMEOUT&&this.handleTimeout_(),e.code===qs.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),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)})),Ou(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){Ca.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/M.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}(Xu),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}},gc=86400,mc=[{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=za(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 g=0;g<l.partIndex;g++)p+=d.parts[g].duration;var m=Math.abs(r-p);if(null!==o&&(0===m||o<m))break;o=m,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=za(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_=xa("SyncController"),n}(0,c.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<mc.length;a++){var o=mc[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>gc)Ca.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}(Ca.EventTarget),yc=function(e){function t(){var t;return t=e.call(this)||this,t.pendingTimelineChanges_={},t.lastTimelineChanges_={},t}(0,c.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}(Ca.EventTarget),_c=Ms(Cs((function(){function e(e,n,i){return i={path:n,exports:{},require:function(e,n){return t(e,void 0===n||null===n?i.path:n)}},e(i,i.exports),i.exports}function t(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var n=e((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})),i=e((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})),r=e((function(e){function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}e.exports=t,e.exports["default"]=e.exports,e.exports.__esModule=!0})),a=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 */
function o(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}/*! @name aes-decrypter @version 3.1.2 @license Apache-2.0 */var s=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=[],g=[];for(e=0;e<256;e++)g[(p[e]=e<<1^283*(e>>7))^e]=e;for(t=n=0;!h[t];t^=i||1,n=g[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},u=null,c=function(){function e(e){var t,n,i;u||(u=s()),this._tables=[[u[0][0].slice(),u[0][1].slice(),u[0][2].slice(),u[0][3].slice(),u[0][4].slice()],[u[1][0].slice(),u[1][1].slice(),u[1][2].slice(),u[1][3].slice(),u[1][4].slice()]];var r=this._tables[0][4],a=this._tables[1],o=e.length,c=1;if(4!==o&&6!==o&&8!==o)throw new Error("Invalid aes key size");var l=e.slice(0),d=[];for(this._key=[l,d],t=o;t<4*o+28;t++)i=l[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^c<<24,c=c<<1^283*(c>>7))),l[t]=l[t-o]^i;for(n=0;t;n++,t--)i=l[3&n?t:t-4],d[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],g=l.length/4-2,m=4,v=this._tables[1],y=v[0],_=v[1],b=v[2],T=v[3],S=v[4];for(c=0;c<g;c++)o=y[d>>>24]^_[h>>16&255]^b[f>>8&255]^T[255&p]^l[m],s=y[h>>>24]^_[f>>16&255]^b[p>>8&255]^T[255&d]^l[m+1],u=y[f>>>24]^_[p>>16&255]^b[d>>8&255]^T[255&h]^l[m+2],p=y[p>>>24]^_[d>>16&255]^b[h>>8&255]^T[255&f]^l[m+3],m+=4,d=o,h=s,f=u;for(c=0;c<4;c++)r[(3&-c)+a]=S[d>>>24]<<24^S[h>>16&255]<<16^S[f>>8&255]<<8^S[255&p]^l[m++],o=d,d=h,h=f,f=p,p=o},e}(),l=function(e){function t(){var t;return t=e.call(this,a)||this,t.jobs=[],t.delay=1,t.timeout_=null,t}r(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}(a),d=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},h=function(e,t,n){var i,r,a,o,s,u,l,h,f,p=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),g=new c(Array.prototype.slice.call(t)),m=new Uint8Array(e.byteLength),v=new Int32Array(m.buffer);for(i=n[0],r=n[1],a=n[2],o=n[3],f=0;f<p.length;f+=4)s=d(p[f]),u=d(p[f+1]),l=d(p[f+2]),h=d(p[f+3]),g.decrypt(s,u,l,h,v,f),v[f]=d(v[f]^i),v[f+1]=d(v[f+1]^r),v[f+2]=d(v[f+2]^a),v[f+3]=d(v[f+3]^o),i=s,r=u,a=l,o=h;return m},f=function(){function e(t,n,i,r){var a=e.STEP,s=new Int32Array(t.buffer),u=new Uint8Array(t.byteLength),c=0;for(this.asyncStream_=new l,this.asyncStream_.push(this.decryptChunk_(s.subarray(c,c+a),n,i,u)),c=a;c<s.length;c+=a)i=new Uint32Array([d(s[c-4]),d(s[c-3]),d(s[c-2]),d(s[c-1])]),this.asyncStream_.push(this.decryptChunk_(s.subarray(c,c+a),n,i,u));this.asyncStream_.push((function(){r(null,o(u))}))}var t=e.prototype;return t.decryptChunk_=function(e,t,n,i){return function(){var r=h(e,t,n);i.set(r,e.byteOffset)}},n(e,null,[{key:"STEP",get:function(){return 32e3}}]),e}(),p=function(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];ArrayBuffer.isView(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 f(n,i,r,(function(e,n){self.postMessage(p({source:t.source,decrypted:n}),[n.buffer])}))}}))),bc=ks(_c),Tc=function(e){var t=e["default"]?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},Sc=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},wc=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,Sc(i,a),s&&!s.isMasterPlaylist&&(s.playlistLoader?(i.resyncLoader(),wc(s.playlistLoader,a)):u&&r.resetEverything()))}},Mc=function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e];i.lastGroup_=null,n.abort(),n.pause()}},Cc=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,Sc(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(),wc(u.playlistLoader,o)):wc(u.playlistLoader,o)}}},Ec={AUDIO:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e],r=t.blacklistCurrentPlaylist;Sc(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 Ca.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];Ca.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),Sc(n,i);var r=i.activeTrack();r&&(r.mode="disabled"),i.onTrackChanged()}}},Ic={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))}},Ac={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=mo(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 g=o[e][f][p],m=void 0;if(h?(l("AUDIO group '"+f+"' label '"+p+"' is a master playlist"),g.isMasterPlaylist=!0,m=null):m="vhs-json"===i&&g.playlists?new jo(g.playlists[0],n,a):g.resolvedUri?new jo(g.resolvedUri,n,a):g.playlists&&"dash"===i?new _s(g.playlists[0],n,a,d):null,g=Ca.mergeOptions({id:p,playlistLoader:m},g),Ic[e](e,g.playlistLoader,t),u[f].push(g),"undefined"===typeof c[p]){var v=new Ca.AudioTrack({id:p,kind:Tc(g),enabled:!1,language:g.language,default:g["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],g=void 0;if("hls"===r)g=new jo(p.resolvedUri,i,o);else if("dash"===r){var m=p.playlists.filter((function(e){return e.excludeUntil!==1/0}));if(!m.length)return;g=new _s(p.playlists[0],i,o,d)}else"vhs-json"===r&&(g=new jo(p.playlists?p.playlists[0]:p.resolvedUri,i,o));if(p=Ca.mergeOptions({id:f,playlistLoader:g},p),Ic[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=Ca.mergeOptions(d,l[d.instreamId])),void 0===d["default"]&&delete d["default"],a[s].push(Ca.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}}}}},Oc=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},xc=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&&mo(t.master))for(var u=0;u<s.length;u++){var c=r[s[u]];if(Oc(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}},Dc={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}},Nc=function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(t){Ac[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=xc(n,e),t[n].activeTrack=Dc[n](n,e),t[n].onGroupChanged=kc(n,e),t[n].onGroupChanging=Mc(n,e),t[n].onTrackChanged=Cc(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])},Pc=function(){var e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(t){e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Ju,activeTrack:Ju,getActiveGroup:Ju,onGroupChanged:Ju,onTrackChanged:Ju,lastTrack_:null,logger_:xa("MediaGroups["+t+"]")}})),e},Rc=120,jc=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Uc=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},Fc=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 Ca.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(Pa(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=Ha(n,i),f=u?bs.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:bs.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,g=t.attributes.BANDWIDTH;if(p<g&&(!u||h<o)){var m=l+" as next bandwidth < current bandwidth ("+p+" < "+g+")";return u&&(m+=" and forwardBuffer < bufferHighWaterLine ("+h+" < "+o+")"),c(m),!0}if((!u||p>g)&&h>=a){var v=l+" as forwardBuffer >= bufferLowWaterLine ("+h+" >= "+a+")";return u&&(v+=" and next bandwidth > current bandwidth ("+p+" > "+g+")"),c(v),!0}return c("not "+l+" as no switching criteria met"),!1},Bc=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,c=t.bandwidth,l=t.externVhs,d=t.useCueTags,h=t.blacklistDuration,f=t.enableLowInitialPlaylist,p=t.sourceType,g=t.cacheEncryptionKeys,m=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 _=t.maxPlaylistRetries;null!==_&&"undefined"!==typeof _||(_=1/0),Qu=l,n.experimentalBufferBasedABR=Boolean(m),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=_,n.enableLowInitialPlaylist=f,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:o,handleManifestRedirects:r,maxPlaylistRetries:_,timeout:null},n.on("error",n.pauseLoading),n.mediaTypes_=Pc(),n.mediaSource=new a.default.MediaSource,n.handleDurationChange_=n.handleDurationChange_.bind((0,u.default)(n)),n.handleSourceOpen_=n.handleSourceOpen_.bind((0,u.default)(n)),n.handleSourceEnded_=n.handleSourceEnded_.bind((0,u.default)(n)),n.mediaSource.addEventListener("durationchange",n.handleDurationChange_),n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_),n.mediaSource.addEventListener("sourceended",n.handleSourceEnded_),n.seekable_=Ca.createTimeRanges(),n.hasPlayed_=!1,n.syncController_=new vc(t),n.segmentMetadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new bc,n.sourceUpdater_=new cc(n.mediaSource),n.inbandTextTracks_={},n.timelineChangeController_=new yc;var b={vhs:n.vhs_,parse708captions:t.parse708captions,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:c,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:g,sourceUpdater:n.sourceUpdater_,timelineChangeController:n.timelineChangeController_,experimentalExactManifestTimings:t.experimentalExactManifestTimings};n.masterPlaylistLoader_="dash"===n.sourceType_?new _s(i,n.vhs_,n.requestOptions_):new jo(i,n.vhs_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new Xu(Ca.mergeOptions(b,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),t),n.audioSegmentLoader_=new Xu(Ca.mergeOptions(b,{loaderType:"audio"}),t),n.subtitleSegmentLoader_=new hc(Ca.mergeOptions(b,{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_()}))),jc.forEach((function(e){n[e+"_"]=Uc.bind((0,u.default)(n),e)})),n.logger_=xa("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,c.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()),Nc({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"})),Qu.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 Fc({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(){Ca.browser.IE_VERSION||Ca.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(Ca.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=Qu.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 Ca.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&&(Ca.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_:Ca.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=Pa(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:Qu.Playlist.duration(e):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_&&!this.sourceUpdater_.hasCreatedSourceBuffers()){var t=this.masterPlaylistLoader_.media();if(t){var n=this.syncController_.getExpiredTime(t,this.duration());if(null!==n){var i=this.masterPlaylistLoader_.master,r=Qu.Playlist.seekable(t,n,Qu.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=Qu.Playlist.seekable(t,n,Qu.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_=Ca.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 ["+Fa(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=Qu.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=bs.GOAL_BUFFER_LENGTH,n=bs.GOAL_BUFFER_LENGTH_RATE,i=Math.max(t,bs.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,i)},n.bufferLowWaterLine=function(){var e=this.tech_.currentTime(),t=bs.BUFFER_LOW_WATER_LINE,n=bs.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(t,bs.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,bs.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,this.experimentalBufferBasedABR?r:i)},n.bufferHighWaterLine=function(){return bs.BUFFER_HIGH_WATER_LINE},t}(Ca.EventTarget),Gc=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)}},qc=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=Gc(e.playlists,t.id,o)},Vc=function(e){e.representations=function(){var t=e.masterPlaylistController_.master(),n=mo(t)?e.masterPlaylistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter((function(e){return!oo(e)})).map((function(t,n){return new qc(e,t,t.id)})):[]}},Hc=["seeking","seeked","pause","playing","error"],$c=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_=xa("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(Hc,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(Hc,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=qa(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:Ga(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 "+Fa(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-Da),f=[c,l],p=0;p<f.length;p++)if(f[p]){var g=Ha(f[p],i);if(g<h)return!1}var m=Ra(u,i);return 0!==m.length&&(t=m.start(0)+La,this.logger_("Buffered region starts ("+m.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=Pa(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=Pa(t,i-3),o=Pa(t,i),s=Pa(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)+Da),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=ja(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)}},zc=function e(t,n){var i=0,r=0,a=Ca.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 Ca.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},Kc=function(e){zc(this,e)},Yc="2.12.0",Xc="5.14.1",Jc="0.19.2",Qc="4.7.0",Zc="3.1.2",el={PlaylistLoader:jo,Playlist:vo,utils:Zo,STANDARD_PLAYLIST_SELECTOR:_u,INITIAL_PLAYLIST_SELECTOR:Su,lastBandwidthSelector:_u,movingAverageBandwidthSelector:bu,comparePlaylistBandwidth:mu,comparePlaylistResolution:vu,xhr:Go()};Object.keys(bs).forEach((function(e){Object.defineProperty(el,e,{get:function(){return Ca.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),bs[e]},set:function(t){Ca.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!==typeof t||t<0?Ca.log.warn("value of Vhs."+e+" must be greater than or equal to 0"):bs[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 Ca.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 Ca.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)||(Ca.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?Ca.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(!Ca.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&&Ca.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 Ca.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var dl=Ca.getComponent("Component"),hl=function(e){function t(t,n,i){var r;if(r=e.call(this,n,Ca.mergeOptions(i.hls,i.vhs))||this,i.hls&&Object.keys(i.hls).length&&Ca.log.warn("Using hls options is deprecated. Use vhs instead."),"number"===typeof i.initialBandwidth&&(r.options_.bandwidth=i.initialBandwidth),r.logger_=xa("VhsHandler"),n.options_&&n.options_.playerId){var a=Ca(n.options_.playerId);a.hasOwnProperty("hls")||Object.defineProperty(a,"hls",{get:function(){return Ca.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"hls-player-access"}),(0,u.default)(r)},configurable:!0}),a.hasOwnProperty("vhs")||Object.defineProperty(a,"vhs",{get:function(){return Ca.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"vhs-player-access"}),(0,u.default)(r)},configurable:!0}),a.hasOwnProperty("dash")||Object.defineProperty(a,"dash",{get:function(){return Ca.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),(0,u.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,c.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_.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=bs.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===bs.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","useNetworkInformationApi","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,_.simpleTypeFromSourceType)(t),this.options_.seekTo=function(e){n.tech_.setCurrentTime(e)},this.options_.smoothQualityChange&&Ca.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new Bc(this.options_);var i=Ca.mergeOptions({liveRangeSafeTimeDelta:La},this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new $c(i),this.masterPlaylistController_.on("error",(function(){var e=Ca.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(){Ca.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 Ga(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 Ga(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.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){"output-restricted"===t.status&&e.masterPlaylistController_.blacklistCurrentPlaylist({playlist:e.masterPlaylistController_.media(),message:"DRM keystatus changed to "+t.status+". Playlist will fail to play. Check for HDCP content.",blacklistDuration:1/0})})),11!==Ca.browser.IE_VERSION&&n?(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})}))):this.masterPlaylistController_.sourceUpdater_.initializedEme()},n.setupQualityLevels_=function(){var e=this,t=Ca.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":Yc,"mux.js":Xc,"mpd-parser":Jc,"m3u8-parser":Qc,"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),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:Yc,canHandleSource:function(e,t){void 0===t&&(t={});var n=Ca.mergeOptions(Ca.options,t);return fl.canPlayType(e.type,n)},handleSource:function(e,t,n){void 0===n&&(n={});var i=Ca.mergeOptions(Ca.options,n);return t.vhs=new hl(e,t,i),Ca.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return Ca.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=Go(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){void 0===t&&(t={});var n=Ca.mergeOptions(Ca.options,t),i=n.vhs.overrideNative,r=void 0===i?!Ca.browser.IS_ANY_SAFARI:i,a=(0,_.simpleTypeFromSourceType)(e),o=a&&(!el.supportsTypeNatively(a)||r);return o?"maybe":""}},pl=function(){return(0,y.browserSupportsCodec)("avc1.4d400d,mp4a.40.2")};if(pl()&&Ca.getTech("Html5").registerSourceHandler(fl,0),Ca.VhsHandler=hl,Object.defineProperty(Ca,"HlsHandler",{get:function(){return Ca.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),hl},configurable:!0}),Ca.VhsSourceHandler=fl,Object.defineProperty(Ca,"HlsSourceHandler",{get:function(){return Ca.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),fl},configurable:!0}),Ca.Vhs=el,Object.defineProperty(Ca,"Hls",{get:function(){return Ca.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),el},configurable:!0}),Ca.use||(Ca.registerComponent("Hls",el),Ca.registerComponent("Vhs",el)),Ca.options.vhs=Ca.options.vhs||{},Ca.options.hls=Ca.options.hls||{},!Ca.getPlugin||!Ca.getPlugin("reloadSourceOnError")){var gl=Ca.registerPlugin||Ca.plugin;gl("reloadSourceOnError",Kc)}var ml=Ca;t.default=ml},"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}},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}})}},"26cb":function(e,t,n){"use strict";(function(t){
/*!
 * vuex v3.6.2
 * (c) 2021 Evan You
 * @license MIT
 */
function n(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var i="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},r=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){r&&(e._devtoolHook=r,r.emit("vuex:init",e),r.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){r.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){r.emit("vuex:action",e,t)}),{prepend:!0}))}function o(e,t){return e.filter(t)[0]}function s(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=o(t,(function(t){return t.original===e}));if(n)return n.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(n){i[n]=s(e[n],t)})),i}function u(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function c(e){return null!==e&&"object"===typeof e}function l(e){return e&&"function"===typeof e.then}function d(e,t){return function(){return e(t)}}var h=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},f={namespaced:{configurable:!0}};f.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(e,t){this._children[e]=t},h.prototype.removeChild=function(e){delete this._children[e]},h.prototype.getChild=function(e){return this._children[e]},h.prototype.hasChild=function(e){return e in this._children},h.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},h.prototype.forEachChild=function(e){u(this._children,e)},h.prototype.forEachGetter=function(e){this._rawModule.getters&&u(this._rawModule.getters,e)},h.prototype.forEachAction=function(e){this._rawModule.actions&&u(this._rawModule.actions,e)},h.prototype.forEachMutation=function(e){this._rawModule.mutations&&u(this._rawModule.mutations,e)},Object.defineProperties(h.prototype,f);var p=function(e){this.register([],e,!1)};function g(e,t,n){if(t.update(n),n.modules)for(var i in n.modules){if(!t.getChild(i))return void 0;g(e.concat(i),t.getChild(i),n.modules[i])}}p.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},p.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},p.prototype.update=function(e){g([],this.root,e)},p.prototype.register=function(e,t,n){var i=this;void 0===n&&(n=!0);var r=new h(t,n);if(0===e.length)this.root=r;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],r)}t.modules&&u(t.modules,(function(t,r){i.register(e.concat(r),t,n)}))},p.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],i=t.getChild(n);i&&i.runtime&&t.removeChild(n)},p.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var m;var v=function(e){var t=this;void 0===e&&(e={}),!m&&"undefined"!==typeof window&&window.Vue&&x(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new p(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new m,this._makeLocalGettersCache=Object.create(null);var r=this,o=this,s=o.dispatch,u=o.commit;this.dispatch=function(e,t){return s.call(r,e,t)},this.commit=function(e,t,n){return u.call(r,e,t,n)},this.strict=i;var c=this._modules.root.state;S(this,c,[],this._modules.root),T(this,c),n.forEach((function(e){return e(t)}));var l=void 0!==e.devtools?e.devtools:m.config.devtools;l&&a(this)},y={state:{configurable:!0}};function _(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function b(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;S(e,n,[],e._modules.root,!0),T(e,n,t)}function T(e,t,n){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,a={};u(r,(function(t,n){a[n]=d(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var o=m.config.silent;m.config.silent=!0,e._vm=new m({data:{$$state:t},computed:a}),m.config.silent=o,e.strict&&I(e),i&&(n&&e._withCommit((function(){i._data.$$state=null})),m.nextTick((function(){return i.$destroy()})))}function S(e,t,n,i,r){var a=!n.length,o=e._modules.getNamespace(n);if(i.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=i),!a&&!r){var s=A(t,n.slice(0,-1)),u=n[n.length-1];e._withCommit((function(){m.set(s,u,i.state)}))}var c=i.context=w(e,o,n);i.forEachMutation((function(t,n){var i=o+n;M(e,i,t,c)})),i.forEachAction((function(t,n){var i=t.root?n:o+n,r=t.handler||t;C(e,i,r,c)})),i.forEachGetter((function(t,n){var i=o+n;E(e,i,t,c)})),i.forEachChild((function(i,a){S(e,t,n.concat(a),i,r)}))}function w(e,t,n){var i=""===t,r={dispatch:i?e.dispatch:function(n,i,r){var a=O(n,i,r),o=a.payload,s=a.options,u=a.type;return s&&s.root||(u=t+u),e.dispatch(u,o)},commit:i?e.commit:function(n,i,r){var a=O(n,i,r),o=a.payload,s=a.options,u=a.type;s&&s.root||(u=t+u),e.commit(u,o,s)}};return Object.defineProperties(r,{getters:{get:i?function(){return e.getters}:function(){return k(e,t)}},state:{get:function(){return A(e.state,n)}}}),r}function k(e,t){if(!e._makeLocalGettersCache[t]){var n={},i=t.length;Object.keys(e.getters).forEach((function(r){if(r.slice(0,i)===t){var a=r.slice(i);Object.defineProperty(n,a,{get:function(){return e.getters[r]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function M(e,t,n,i){var r=e._mutations[t]||(e._mutations[t]=[]);r.push((function(t){n.call(e,i.state,t)}))}function C(e,t,n,i){var r=e._actions[t]||(e._actions[t]=[]);r.push((function(t){var r=n.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},t);return l(r)||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}function E(e,t,n,i){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(i.state,i.getters,e.state,e.getters)})}function I(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function A(e,t){return t.reduce((function(e,t){return e[t]}),e)}function O(e,t,n){return c(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function x(e){m&&e===m||(m=e,n(m))}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(e){0},v.prototype.commit=function(e,t,n){var i=this,r=O(e,t,n),a=r.type,o=r.payload,s=(r.options,{type:a,payload:o}),u=this._mutations[a];u&&(this._withCommit((function(){u.forEach((function(e){e(o)}))})),this._subscribers.slice().forEach((function(e){return e(s,i.state)})))},v.prototype.dispatch=function(e,t){var n=this,i=O(e,t),r=i.type,a=i.payload,o={type:r,payload:a},s=this._actions[r];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(o,n.state)}))}catch(c){0}var u=s.length>1?Promise.all(s.map((function(e){return e(a)}))):s[0](a);return new Promise((function(e,t){u.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(o,n.state)}))}catch(c){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(o,n.state,e)}))}catch(c){0}t(e)}))}))}},v.prototype.subscribe=function(e,t){return _(e,this._subscribers,t)},v.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return _(n,this._actionSubscribers,t)},v.prototype.watch=function(e,t,n){var i=this;return this._watcherVM.$watch((function(){return e(i.state,i.getters)}),t,n)},v.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},v.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),S(this,this.state,e,this._modules.get(e),n.preserveState),T(this,this.state)},v.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=A(t.state,e.slice(0,-1));m.delete(n,e[e.length-1])})),b(this)},v.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},v.prototype[[104,111,116,85,112,100,97,116,101].map(e=>String.fromCharCode(e)).join("")]=function(e){this._modules.update(e),b(this,!0)},v.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(v.prototype,y);var D=F((function(e,t){var n={};return j(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var i=B(this.$store,"mapState",e);if(!i)return;t=i.context.state,n=i.context.getters}return"function"===typeof r?r.call(this,t,n):t[r]},n[i].vuex=!0})),n})),L=F((function(e,t){var n={};return j(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.commit;if(e){var a=B(this.$store,"mapMutations",e);if(!a)return;i=a.context.commit}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),N=F((function(e,t){var n={};return j(t).forEach((function(t){var i=t.key,r=t.val;r=e+r,n[i]=function(){if(!e||B(this.$store,"mapGetters",e))return this.$store.getters[r]},n[i].vuex=!0})),n})),P=F((function(e,t){var n={};return j(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.dispatch;if(e){var a=B(this.$store,"mapActions",e);if(!a)return;i=a.context.dispatch}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),R=function(e){return{mapState:D.bind(null,e),mapGetters:N.bind(null,e),mapMutations:L.bind(null,e),mapActions:P.bind(null,e)}};function j(e){return U(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function U(e){return Array.isArray(e)||c(e)}function F(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function B(e,t,n){var i=e._modulesNamespaceMap[n];return i}function G(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var i=e.transformer;void 0===i&&(i=function(e){return e});var r=e.mutationTransformer;void 0===r&&(r=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var o=e.actionTransformer;void 0===o&&(o=function(e){return e});var u=e.logMutations;void 0===u&&(u=!0);var c=e.logActions;void 0===c&&(c=!0);var l=e.logger;return void 0===l&&(l=console),function(e){var d=s(e.state);"undefined"!==typeof l&&(u&&e.subscribe((function(e,a){var o=s(a);if(n(e,d,o)){var u=H(),c=r(e),h="mutation "+e.type+u;q(l,h,t),l.log("%c prev state","color: #9E9E9E; font-weight: bold",i(d)),l.log("%c mutation","color: #03A9F4; font-weight: bold",c),l.log("%c next state","color: #4CAF50; font-weight: bold",i(o)),V(l)}d=o})),c&&e.subscribeAction((function(e,n){if(a(e,n)){var i=H(),r=o(e),s="action "+e.type+i;q(l,s,t),l.log("%c action","color: #03A9F4; font-weight: bold",r),V(l)}})))}}function q(e,t,n){var i=n?e.groupCollapsed:e.group;try{i.call(e,t)}catch(r){e.log(t)}}function V(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function H(){var e=new Date;return" @ "+W(e.getHours(),2)+":"+W(e.getMinutes(),2)+":"+W(e.getSeconds(),2)+"."+W(e.getMilliseconds(),3)}function $(e,t){return new Array(t+1).join(e)}function W(e,t){return $("0",t-e.toString().length)+e}var z={Store:v,install:x,version:"3.6.2",mapState:D,mapMutations:L,mapGetters:N,mapActions:P,createNamespacedHelpers:R,createLogger:G};e.exports=z}).call(this,n("c8ba"))},"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)}})},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,g=n("5fb2"),m=n("d44e"),v=n("9861"),y=n("69f3"),_=s.URL,b=v.URLSearchParams,T=v.getState,S=y.set,w=y.getterFor("URL"),k=Math.floor,M=Math.pow,C="Invalid authority",E="Invalid scheme",I="Invalid host",A="Invalid port",O=/[A-Za-z]/,x=/[\d+-.A-Za-z]/,D=/\d/,L=/^(0x|0X)/,N=/^[0-7]+$/,P=/^\d+$/,R=/^[\dA-Fa-f]+$/,j=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,U=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,F=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,B=/[\u0009\u000A\u000D]/g,G=function(e,t){var n,i,r;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return I;if(n=V(t.slice(1,-1)),!n)return I;e.host=n}else if(Q(e)){if(t=g(t),j.test(t))return I;if(n=q(t),null===n)return I;e.host=n}else{if(U.test(t))return I;for(n="",i=f(t),r=0;r<i.length;r++)n+=X(i[r],W);e.host=n}},q=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?P:8==a?N: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>=M(256,5-t))return null}else if(o>255)return null;for(s=n.pop(),i=0;i<n.length;i++)s+=n[i]*M(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(!D.test(h()))return;while(D.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},H=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},$=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=H(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={},z=h({},W,{" ":1,'"':1,"<":1,">":1,"`":1}),K=h({},z,{"#":1,"?":1,"{":1,"}":1}),Y=h({},K,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),X=function(e,t){var n=p(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Q=function(e){return d(J,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&&O.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={},ge={},me={},ve={},ye={},_e={},be={},Te={},Se={},we={},ke={},Me={},Ce={},Ee=function(e,t,n,r){var a,o,s,u,c=n||oe,l=0,h="",p=!1,g=!1,m=!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(F,"")),t=t.replace(B,""),a=f(t);while(l<=a.length){switch(o=a[l],c){case oe:if(!o||!O.test(o)){if(n)return E;c=ue;continue}h+=o.toLowerCase(),c=se;break;case se:if(o&&(x.test(o)||"+"==o||"-"==o||"."==o))h+=o.toLowerCase();else{if(":"!=o){if(n)return E;h="",c=ue,l=0;continue}if(n&&(Q(e)!=d(J,h)||"file"==h&&(Z(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,n)return void(Q(e)&&J[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?c=_e:Q(e)&&r&&r.scheme==e.scheme?c=ce:Q(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=Ce;break}c="file"==r.scheme?_e:de;continue;case ce:if("/"!=o||"/"!=a[l+1]){c=de;continue}c=pe,l++;break;case le:if("/"==o){c=ge;break}c=we;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&&Q(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=Me;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=we;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=Ce}break;case he:if(!Q(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,c=we;continue}c=ge}else c=pe;break;case fe:if(c=pe,"/"!=o||"/"!=h.charAt(l+1))continue;l++;break;case pe:if("/"!=o&&"\\"!=o){c=ge;continue}break;case ge: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||m){var _=X(y,Y);m?e.password+=_:e.username+=_}else m=!0}h=""}else if(o==i||"/"==o||"?"==o||"#"==o||"\\"==o&&Q(e)){if(p&&""==h)return C;l-=f(h).length+1,h="",c=me}else h+=o;break;case me:case ve:if(n&&"file"==e.scheme){c=Te;continue}if(":"!=o||g){if(o==i||"/"==o||"?"==o||"#"==o||"\\"==o&&Q(e)){if(Q(e)&&""==h)return I;if(n&&""==h&&(Z(e)||null!==e.port))return;if(u=G(e,h),u)return u;if(h="",c=Se,n)return;continue}"["==o?g=!0:"]"==o&&(g=!1),h+=o}else{if(""==h)return I;if(u=G(e,h),u)return u;if(h="",c=ye,n==ve)return}break;case ye:if(!D.test(o)){if(o==i||"/"==o||"?"==o||"#"==o||"\\"==o&&Q(e)||n){if(""!=h){var b=parseInt(h,10);if(b>65535)return A;e.port=Q(e)&&b===J[e.scheme]?null:b,h=""}if(n)return;c=Se;continue}return A}h+=o;break;case _e:if(e.scheme="file","/"==o||"\\"==o)c=be;else{if(!r||"file"!=r.scheme){c=we;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=Me;else{if("#"!=o){ne(a.slice(l).join(""))||(e.host=r.host,e.path=r.path.slice(),ie(e)),c=we;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",c=Ce}}break;case be: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=we;continue;case Te:if(o==i||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&te(h))c=we;else if(""==h){if(e.host="",n)return;c=Se}else{if(u=G(e,h),u)return u;if("localhost"==e.host&&(e.host=""),n)return;h="",c=Se}continue}h+=o;break;case Se:if(Q(e)){if(c=we,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(o!=i&&(c=we,"/"!=o))continue}else e.fragment="",c=Ce;else e.query="",c=Me;break;case we:if(o==i||"/"==o||"\\"==o&&Q(e)||!n&&("?"==o||"#"==o)){if(ae(h)?(ie(e),"/"==o||"\\"==o&&Q(e)||e.path.push("")):re(h)?"/"==o||"\\"==o&&Q(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=Me):"#"==o&&(e.fragment="",c=Ce)}else h+=X(o,K);break;case ke:"?"==o?(e.query="",c=Me):"#"==o?(e.fragment="",c=Ce):o!=i&&(e.path[0]+=X(o,W));break;case Me:n||"#"!=o?o!=i&&("'"==o&&Q(e)?e.query+="%27":e.query+="#"==o?"%23":X(o,W)):(e.fragment="",c=Ce);break;case Ce:o!=i&&(e.fragment+=X(o,z));break}l++}},Ie=function(e){var t,n,i=l(this,Ie,"URL"),r=arguments.length>1?arguments[1]:void 0,o=String(e),s=S(i,{type:"URL"});if(void 0!==r)if(r instanceof Ie)t=w(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 b,c=T(u);c.updateSearchParams(s.query),c.updateURL=function(){s.query=String(u)||null},a||(i.href=Oe.call(i),i.origin=xe.call(i),i.protocol=De.call(i),i.username=Le.call(i),i.password=Ne.call(i),i.host=Pe.call(i),i.hostname=Re.call(i),i.port=je.call(i),i.pathname=Ue.call(i),i.search=Fe.call(i),i.searchParams=Be.call(i),i.hash=Ge.call(i))},Ae=Ie.prototype,Oe=function(){var e=w(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+=$(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},xe=function(){var e=w(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&&Q(e)?t+"://"+$(e.host)+(null!==n?":"+n:""):"null"},De=function(){return w(this).scheme+":"},Le=function(){return w(this).username},Ne=function(){return w(this).password},Pe=function(){var e=w(this),t=e.host,n=e.port;return null===t?"":null===n?$(t):$(t)+":"+n},Re=function(){var e=w(this).host;return null===e?"":$(e)},je=function(){var e=w(this).port;return null===e?"":String(e)},Ue=function(){var e=w(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Fe=function(){var e=w(this).query;return e?"?"+e:""},Be=function(){return w(this).searchParams},Ge=function(){var e=w(this).fragment;return e?"#"+e:""},qe=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(a&&u(Ae,{href:qe(Oe,(function(e){var t=w(this),n=String(e),i=Ee(t,n);if(i)throw TypeError(i);T(t.searchParams).updateSearchParams(t.query)})),origin:qe(xe),protocol:qe(De,(function(e){var t=w(this);Ee(t,String(e)+":",oe)})),username:qe(Le,(function(e){var t=w(this),n=f(String(e));if(!ee(t)){t.username="";for(var i=0;i<n.length;i++)t.username+=X(n[i],Y)}})),password:qe(Ne,(function(e){var t=w(this),n=f(String(e));if(!ee(t)){t.password="";for(var i=0;i<n.length;i++)t.password+=X(n[i],Y)}})),host:qe(Pe,(function(e){var t=w(this);t.cannotBeABaseURL||Ee(t,String(e),me)})),hostname:qe(Re,(function(e){var t=w(this);t.cannotBeABaseURL||Ee(t,String(e),ve)})),port:qe(je,(function(e){var t=w(this);ee(t)||(e=String(e),""==e?t.port=null:Ee(t,e,ye))})),pathname:qe(Ue,(function(e){var t=w(this);t.cannotBeABaseURL||(t.path=[],Ee(t,e+"",Se))})),search:qe(Fe,(function(e){var t=w(this);e=String(e),""==e?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Ee(t,e,Me)),T(t.searchParams).updateSearchParams(t.query)})),searchParams:qe(Be),hash:qe(Ge,(function(e){var t=w(this);e=String(e),""!=e?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Ee(t,e,Ce)):t.fragment=null}))}),c(Ae,"toJSON",(function(){return Oe.call(this)}),{enumerable:!0}),c(Ae,"toString",(function(){return Oe.call(this)}),{enumerable:!0}),_){var Ve=_.createObjectURL,He=_.revokeObjectURL;Ve&&c(Ie,"createObjectURL",(function(e){return Ve.apply(_,arguments)})),He&&c(Ie,"revokeObjectURL",(function(e){return He.apply(_,arguments)}))}m(Ie,"URL"),r({global:!0,forced:!o,sham:!a},{URL:Ie})},"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,g=o.clearImmediate,m=o.process,v=o.MessageChannel,y=o.Dispatch,_=0,b={},T="onreadystatechange",S=function(e){if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},w=function(e){return function(){S(e)}},k=function(e){S(e.data)},M=function(e){o.postMessage(e+"",f.protocol+"//"+f.host)};p&&g||(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(_),_},g=function(e){delete b[e]},"process"==u(m)?i=function(e){m.nextTick(w(e))}:y&&y.now?i=function(e){y.now(w(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(M)||"file:"===f.protocol?i=T in d("script")?function(e){l.appendChild(d("script"))[T]=function(){l.removeChild(this),S(e)}}:function(e){setTimeout(w(e),0)}:(i=M,o.addEventListener("message",k,!1))),e.exports={set:p,clear:g}},"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")||""},"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)]}},"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=N,t.hasI18nJson=D,t.initVueI18n=A,t.isI18nStr=P,t.normalizeLocale=M,t.parseI18nJson=L,t.resolveLocale=B,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 g="zh-Hans";t.LOCALE_ZH_HANS=g;var m="zh-Hant";t.LOCALE_ZH_HANT=m;var v="en";t.LOCALE_EN=v;var y="fr";t.LOCALE_FR=y;var _="es";t.LOCALE_ES=_;var b=Object.prototype.hasOwnProperty,T=function(e,t){return b.call(e,t)},S=new l;function w(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 M(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?g:e.indexOf("-hant")>-1||w(e,["-tw","-hk","-mo","-cht"])?m:g;var n=k(e,[v,y,_]);return n||void 0}}var C=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||S,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=M(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=M(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 I(){return"undefined"!==typeof uni&&uni.getLocale?uni.getLocale():"undefined"!==typeof e&&e.getLocale?e.getLocale():v}function A(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=I()),"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||v);var a=new C({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=C;var O,x=function(e){return"string"===typeof e};function D(e,t){return O||(O=new l),F(e,(function(e,n){var i=e[n];return x(i)?!!P(i,t)||void 0:D(i,t)}))}function L(e,t,n){return O||(O=new l),F(e,(function(e,i){var r=e[i];x(r)?P(r,n)&&(e[i]=R(r,t,n)):L(r,t,n)})),e}function N(e,t){var n=t.locale,i=t.locales,r=t.delimiters;if(!P(e,r))return e;O||(O=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(U(JSON.parse(e),a,r),null,2)}catch(o){}return e}function P(e,t){return e.indexOf(t[0])>-1}function R(e,t,n){return O.interpolate(e,t,n).join("")}function j(e,t,n,i){var r=e[t];if(x(r)){if(P(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 U(r,n,i)}function U(e,t,n){return F(e,(function(e,i){j(e,i,t,n)})),e}function F(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 B(e){return function(t){return t?(t=M(t)||t,G(t).find((function(t){return e.indexOf(t)>-1}))):t}}function G(e){var t=[],n=e.split("-");while(n.length)t.push(n.join("-")),n.pop();return t}t.isString=x}).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)()}},"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}},"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},"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)}},4860:function(e,t,n){"use strict";n("a4d3"),n("e01a"),n("99af"),n("4de4"),n("4160"),n("d81d"),n("13d5"),n("fb6a"),n("b64b"),n("d3b7"),n("ac1f"),n("25f0"),n("1276"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c(Array.isArray(e)?[]:{},e,t):e}function o(e,t,n){return e.concat(t).map((function(e){return a(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function u(e,t){try{return t in e}catch(e){return!1}}function c(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||o,n.isMergeableObject=n.isMergeableObject||i,n.cloneUnlessOtherwiseSpecified=a;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var i={};return n.isMergeableObject(e)&&s(e).forEach((function(t){i[t]=a(e[t],n)})),s(t).forEach((function(r){(function(e,t){return u(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(i[r]=u(e,r)&&n.isMergeableObject(t[r])?function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(r,n)(e[r],t[r],n):a(t[r],n))})),i}(e,t,n):a(t,n)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var l=c;function d(e){var t=(e=e||{}).storage||window&&window.localStorage,n=e.key||"vuex";function i(e,t){var n=t.getItem(e);try{return"string"==typeof n?JSON.parse(n):"object"==typeof n?n:void 0}catch(e){}}function r(){return!0}function a(e,t,n){return n.setItem(e,JSON.stringify(t))}function o(e,t){return Array.isArray(t)?t.reduce((function(t,n){return function(e,t,n,i){return!/^(__proto__|constructor|prototype)$/.test(t)&&((t=t.split?t.split("."):t.slice(0)).slice(0,-1).reduce((function(e,t){return e[t]=e[t]||{}}),e)[t.pop()]=n),e}(t,n,(i=e,void 0===(i=((r=n).split?r.split("."):r).reduce((function(e,t){return e&&e[t]}),i))?void 0:i));var i,r}),{}):e}function s(e){return function(t){return e.subscribe(t)}}(e.assertStorage||function(){t.setItem("@@",1),t.removeItem("@@")})(t);var u,c=function(){return(e.getState||i)(n,t)};return e.fetchBeforeUse&&(u=c()),function(i){e.fetchBeforeUse||(u=c()),"object"==typeof u&&null!==u&&(i.replaceState(e.overwrite?u:l(i.state,u,{arrayMerge:e.arrayMerger||function(e,t){return t},clone:!1})),(e.rehydrated||function(){})(i)),(e.subscriber||s)(i)((function(i,s){(e.filter||r)(i)&&(e.setState||a)(n,(e.reducer||o)(s,e.paths),t)}))}}var h=d;t.default=h},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},"4a9b":function(e,t,n){var i=n("74e8");i("Float64",(function(e){return function(t,n,i){return e(this,t,n,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,g=n("2626"),m=n("b622"),v=m("match"),y=r.RegExp,_=y.prototype,b=/a/g,T=/a/g,S=new y(b)!==b,w=d.UNSUPPORTED_Y,k=i&&a("RegExp",!S||w||f((function(){return T[v]=!1,y(b)!=b||y(T)==T||"/a/i"!=y(b,"i")})));if(k){var M=function(e,t){var n,i=this instanceof M,r=c(e),a=void 0===t;if(!i&&r&&e.constructor===M&&a)return e;S?r&&!a&&(e=e.source):e instanceof M&&(a&&(t=l.call(e)),e=e.source),w&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var s=o(S?new y(e,t):y(e,t),i?this:_,M);return w&&n&&p(s,{sticky:n}),s},C=function(e){e in M||s(M,e,{configurable:!0,get:function(){return y[e]},set:function(t){y[e]=t}})},E=u(y),I=0;while(E.length>I)C(E[I++]);_.constructor=M,M.prototype=_,h(r,"RegExp",M)}g("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)}})},"4de0":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("71e4"),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},"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),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,y=void 0!==v,_=c(p),b=0;if(y&&(v=i(v,m>2?arguments[2]:void 0,2)),void 0==_||g==Array&&o(_))for(t=s(p.length),n=new g(t);t>b;b++)f=y?v(p[b],b):p[b],u(n,b,f);else for(d=_.call(p),h=d.next,n=new g;!(l=h.call(d)).done;b++)f=y?a(d,v,[l.value,b],!0):l.value,u(n,b,f);return n.length=b,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},"4eae":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},"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 g(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),g(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 g(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 m(){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=m()),t=_.bind(null,i,r,!1),n=_.bind(null,i,r,!0)}else i=m(),t=b.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 _(e,t,n,i){var r=n?"":O(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 b(e,t){var n=O(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,S=/\.\?%PAGE\?%/g,w=/\?%PAGE\?%\[data-v-[a-z0-9]{8}\]/g,k=/uni-page-body\[data-v-[a-z0-9]{8}\]/g,M=/var\(--status-bar-height\)/gi,C=/var\(--window-top\)/gi,E=/var\(--window-bottom\)/gi,I=/var\(--window-left\)/gi,A=/var\(--window-right\)/gi;function O(e){var t=x();if("undefined"!==typeof uni&&!uni.canIUse("css.var")){var n=D();e=e.replace(M,"0px").replace(C,n.top+"px").replace(E,n.bottom+"px").replace(I,"0px").replace(A,"0px")}return e.replace(w,t).replace(S,"").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 x(){var e="function"===typeof getApp&&getApp();return e&&e.$route&&e.$route.meta&&e.$route.meta.name||""}function D(){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}}},"4f07":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("df9e"),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},"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,g=/\$([$&'`]|\d\d?)/g,m=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,_=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(_)){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 g=u.global;if(g){var T=u.unicode;u.lastIndex=0}var S=[];while(1){var w=l(u,f);if(null===w)break;if(S.push(w),!g)break;var k=String(w[0]);""===k&&(u.lastIndex=c(f,o(u.lastIndex),T))}for(var M="",C=0,E=0;E<S.length;E++){w=S[E];for(var I=String(w[0]),A=d(h(s(w.index),f.length),0),O=[],x=1;x<w.length;x++)O.push(m(w[x]));var D=w.groups;if(p){var L=[I].concat(O,A,f);void 0!==D&&L.push(D);var N=String(i.apply(void 0,L))}else N=b(I,f,A,O,D,i);A>=C&&(M+=f.slice(C,A)+N,C=A+I.length)}return M+f.slice(C)}];function b(e,n,i,r,o,s){var u=i+e.length,c=r.length,l=g;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}},"55a0":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("d4ef"),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,g=h.TEXT_NODE=3,m=h.CDATA_SECTION_NODE=4,v=h.ENTITY_REFERENCE_NODE=5,y=h.ENTITY_NODE=6,_=h.PROCESSING_INSTRUCTION_NODE=7,b=h.COMMENT_NODE=8,T=h.DOCUMENT_NODE=9,S=h.DOCUMENT_TYPE_NODE=10,w=h.DOCUMENT_FRAGMENT_NODE=11,k=h.NOTATION_NODE=12,M={},C={},E=(M.INDEX_SIZE_ERR=(C[1]="Index size error",1),M.DOMSTRING_SIZE_ERR=(C[2]="DOMString size error",2),M.HIERARCHY_REQUEST_ERR=(C[3]="Hierarchy request error",3)),I=(M.WRONG_DOCUMENT_ERR=(C[4]="Wrong document",4),M.INVALID_CHARACTER_ERR=(C[5]="Invalid character",5),M.NO_DATA_ALLOWED_ERR=(C[6]="No data allowed",6),M.NO_MODIFICATION_ALLOWED_ERR=(C[7]="No modification allowed",7),M.NOT_FOUND_ERR=(C[8]="Not found",8)),A=(M.NOT_SUPPORTED_ERR=(C[9]="Not supported",9),M.INUSE_ATTRIBUTE_ERR=(C[10]="Attribute in use",10));M.INVALID_STATE_ERR=(C[11]="Invalid state",11),M.SYNTAX_ERR=(C[12]="Syntax error",12),M.INVALID_MODIFICATION_ERR=(C[13]="Invalid modification",13),M.NAMESPACE_ERR=(C[14]="Invalid namespace",14),M.INVALID_ACCESS_ERR=(C[15]="Invalid access",15);function O(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,C[e]),this.message=C[e],Error.captureStackTrace&&Error.captureStackTrace(this,O);return n.code=e,t&&(this.message=this.message+": "+t),n}function x(){}function D(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 N(){}function P(e,t){var n=e.length;while(n--)if(e[n]===t)return n}function R(e,t,n,i){if(i?t[P(t,i)]=n:t[t.length++]=n,e){n.ownerElement=e;var r=e.ownerDocument;r&&(i&&H(r,e,i),V(r,e,n))}}function j(e,t,n){var i=P(t,n);if(!(i>=0))throw O(I,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&&(H(a,e,n),n.ownerElement=null)}}function U(){}function F(){}function B(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function G(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(G(e,t))return!0}while(e=e.nextSibling)}function q(){}function V(e,t,n){e&&e._inc++;var i=n.namespaceURI;i===r.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}function H(e,t,n,i){e&&e._inc++;var a=n.namespaceURI;a===r.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function $(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,$(e.ownerDocument,e),t}function z(e,t,n){var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===w){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 $(e.ownerDocument||e,e),t.nodeType==w&&(t.firstChild=t.lastChild=null),t}function K(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,$(e.ownerDocument,e,t),t}function Y(){this._nsMap={}}function X(){}function J(){}function Q(){}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,B),'"')}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 M=0;M<s;M++){var C=o.item(M);"xmlns"==C.prefix?a.push({prefix:C.localName,namespace:C.value}):"xmlns"==C.nodeName&&a.push({prefix:"",namespace:C.value})}for(M=0;M<s;M++){C=o.item(M);if(ce(C,n,a)){var E=C.prefix||"",I=C.namespaceURI;le(t,E?"xmlns:"+E:"xmlns",I),a.push({prefix:E,namespace:I})}de(C,t,n,i,a)}if(c===l&&ce(e,n,a)){E=e.prefix||"",I=e.namespaceURI;le(t,E?"xmlns:"+E:"xmlns",I),a.push({prefix:E,namespace:I})}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 w: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 g:return t.push(e.data.replace(/[<&]/g,B).replace(/]]>/g,"]]&gt;"));case m:return t.push("<![CDATA[",e.data,"]]>");case b:return t.push("\x3c!--",e.data,"--\x3e");case S:var A=e.publicId,O=e.systemId;if(t.push("<!DOCTYPE ",e.name),A)t.push(" PUBLIC ",A),O&&"."!=O&&t.push(" ",O),t.push(">");else if(O&&"."!=O)t.push(" SYSTEM ",O,">");else{var x=e.internalSubset;x&&t.push(" [",x,"]"),t.push(">")}return;case _: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 w: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 x),i.ownerDocument=e,i.nodeType){case f:var o=t.attributes,s=i.attributes=new N,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}O.prototype=Error.prototype,l(M,O),x.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("")}},D.prototype.item=function(e){return L(this),this[e]},d(D,x),N.prototype={length:0,item:x.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 O(A);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 O(A);return t=this.getNamedItemNS(e.namespaceURI,e.localName),R(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return j(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return j(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}},U.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var i=new q;if(i.implementation=this,i.childNodes=new x,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}},F.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 z(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==g&&e.nodeType==g?(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,F),l(h,F.prototype),q.prototype={nodeName:"#document",nodeType:T,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==w){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),z(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 G(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 D(this,(function(n){var i=[];return t.length>0&&G(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 Y;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new x;var n=t.attributes=new N;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new ae;return e.ownerDocument=this,e.childNodes=new x,e},createTextNode:function(e){var t=new Q;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 X;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 Y,i=t.split(":"),r=n.attributes=new N;return n.childNodes=new x,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 X,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(q,F),Y.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===w?this.insertBefore(e,null):K(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 D(this,(function(t){var n=[];return G(t,(function(i){i===t||i.nodeType!=f||"*"!==e&&i.tagName!=e||n.push(i)})),n}))},getElementsByTagNameNS:function(e,t){return new D(this,(function(n){var i=[];return G(n,(function(r){r===n||r.nodeType!==f||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||i.push(r)})),i}))}},q.prototype.getElementsByTagName=Y.prototype.getElementsByTagName,q.prototype.getElementsByTagNameNS=Y.prototype.getElementsByTagNameNS,d(Y,F),X.prototype.nodeType=p,d(X,F),J.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(C[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(J,F),Q.prototype={nodeName:"#text",nodeType:g,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(Q,J),Z.prototype={nodeName:"#comment",nodeType:b},d(Z,J),ee.prototype={nodeName:"#cdata-section",nodeType:m},d(ee,J),te.prototype.nodeType=S,d(te,F),ne.prototype.nodeType=k,d(ne,F),ie.prototype.nodeType=y,d(ie,F),re.prototype.nodeType=v,d(re,F),ae.prototype.nodeName="#document-fragment",ae.prototype.nodeType=w,d(ae,F),oe.prototype.nodeType=_,d(oe,F),se.prototype.serializeToString=function(e,t,n){return ue.call(e,t,n)},F.prototype.toString=ue;try{if(Object.defineProperty){var ge=function e(t){switch(t.nodeType){case f:case w: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(D.prototype,"length",{get:function(){return L(this),this.$$length}}),Object.defineProperty(F.prototype,"textContent",{get:function(){return ge(this)},set:function(e){switch(this.nodeType){case f:case w: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(me){}t.DocumentType=te,t.DOMException=O,t.DOMImplementation=U,t.Element=Y,t.Node=F,t.NodeList=x,t.XMLSerializer=se},"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}},5827: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("df9e"),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},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}},"5bc3":function(e,t){function n(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 i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}e.exports=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",g=r-a,m=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},_=function(e){return e+22+75*(e<26)},b=function(e,t,n){var i=0;for(e=n?m(e/u):e>>1,e+=m(e/t);e>g*o>>1;i+=r)e=m(e/g);return m(i+(g+1)*e/(e+s))},T=function(e){var t=[];e=y(e);var n,s,u=e.length,h=l,f=0,g=c;for(n=0;n<e.length;n++)s=e[n],s<128&&t.push(v(s));var T=t.length,S=T;T&&t.push(d);while(S<u){var w=i;for(n=0;n<e.length;n++)s=e[n],s>=h&&s<w&&(w=s);var k=S+1;if(w-h>m((i-f)/k))throw RangeError(p);for(f+=(w-h)*k,h=w,n=0;n<e.length;n++){if(s=e[n],s<h&&++f>i)throw RangeError(p);if(s==h){for(var M=f,C=r;;C+=r){var E=C<=g?a:C>=g+o?o:C-g;if(M<E)break;var I=M-E,A=r-E;t.push(v(_(E+I%A))),M=m(I/A)}t.push(v(_(M))),g=b(f,k,S==T),f=0,++S}}++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],g=!!p&&("values"==p.name||void 0==p.name),m=function(){return c.call(h(this))};f("entries",(function(){return d.call(h(this))})),f("keys",(function(){return l.call(h(this))})),f("values",m,!g),f(s,m,!g)},"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++]),g=d?a(p).concat(d(p)):a(p),m=g.length,v=0;while(m>v)f=g[v++],i&&!h.call(p,f)||(n[f]=p[f])}return n}:l},"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"),g=n("d2bb"),m=n("241c").f,v=n("9bf2").f,y=n("81d5"),_=n("d44e"),b=n("69f3"),T=b.get,S=b.set,w="ArrayBuffer",k="DataView",M="prototype",C="Wrong length",E="Wrong index",I=i[w],A=I,O=i[k],x=O&&O[M],D=Object.prototype,L=i.RangeError,N=f.pack,P=f.unpack,R=function(e){return[255&e]},j=function(e){return[255&e,e>>8&255]},U=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},F=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},B=function(e){return N(e,23,4)},G=function(e){return N(e,52,8)},q=function(e,t){v(e[M],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()},H=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(){I(1)}))||!u((function(){new I(-1)}))||u((function(){return new I,new I(1.5),new I(NaN),I.name!=w}))){A=function(e){return c(this,A),new I(h(e))};for(var $,W=A[M]=I[M],z=m(I),K=0;z.length>K;)($=z[K++])in A||o(A,$,I[$]);W.constructor=A}g&&p(x)!==D&&g(x,D);var Y=new O(new A(2)),X=x.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||s(x,{setInt8:function(e,t){X.call(this,e,t<<24>>24)},setUint8:function(e,t){X.call(this,e,t<<24>>24)}},{unsafe:!0})}else A=function(e){c(this,A,w);var t=h(e);S(this,{bytes:y.call(new Array(t),0),byteLength:t}),r||(this.byteLength=t)},O=function(e,t,n){c(this,O,k),c(e,A,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(C);S(this,{buffer:e,byteLength:n,byteOffset:a}),r||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},r&&(q(A,"byteLength"),q(O,"buffer"),q(O,"byteLength"),q(O,"byteOffset")),s(O[M],{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 F(V(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return F(V(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return P(V(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return P(V(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){H(this,1,e,R,t)},setUint8:function(e,t){H(this,1,e,R,t)},setInt16:function(e,t){H(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){H(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){H(this,4,e,U,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){H(this,4,e,U,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){H(this,4,e,B,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){H(this,8,e,G,t,arguments.length>2?arguments[2]:void 0)}});_(A,w),_(O,k),e.exports={ArrayBuffer:A,DataView:O}},"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)}))},6542:function(e,t,n){n("ac1f"),n("5319");var i=n("d4ef"),r=n("55a0"),a=n("aa99"),o=n("d7c6"),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+g(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 g(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function m(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=m.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=m.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,g(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,g(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},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,g=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=g(t),m=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 m(this,0===e?0:e,t)}}:{add:function(e){return m(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=g(t),a=g(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)}},"673b":function(e,t,n){"use strict";n("4160"),n("c975"),n("fb6a"),n("ac1f"),n("1276"),n("498a"),n("159b");var i=n("71e4"),r=n("a559"),a=n("e231");l.httpHandler=n("4de0");
/**
 * @license
 * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
 * Copyright (c) 2014 David Björklund
 * Available under the MIT license
 * <https://github.com/kesla/parse-headers/blob/master/LICENCE>
 */
var o=function(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),b)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:m,headers:{},url:g,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,g=f.url=e.uri||e.url,m=f.method=e.method||"GET",v=e.body||e.data,y=f.headers=e.headers||{},_=!!e.sync,b=!1,T={body:void 0,headers:{},statusCode:0,method:m,url:g,rawRequest:f};if("json"in e&&!1!==e.json&&(b=!0,y["accept"]||y["Accept"]||(y["Accept"]="application/json"),"GET"!==m&&"HEAD"!==m&&(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(m,g,!_,e.username,e.password),_||(f.withCredentials=!!e.withCredentials),!_&&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)}}))},6825: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("df9e"),r=n("4f07"),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,g={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(!g.lacing)return g.frames.push(f),g;var m=f[0]+1,v=[],y=1;if(2===g.lacing)for(var _=(f.length-y)/m,b=0;b<m;b++)v.push(_);if(1===g.lacing)for(var T=0;T<m-1;T++){var S=0;do{S+=f[y],y++}while(255===f[y-1]);v.push(S)}if(3===g.lacing)for(var w=0,k=0;k<m-1;k++){var M=0===k?u(f,y):u(f,y,!0,!0);w+=M.value,v.push(w),y+=M.length}return v.forEach((function(e){g.frames.push(f.subarray(y,y+e)),y+=e})),g};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},g=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 g=h(e,[224,[85,176],[85,177]])[0]||[],m=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]||[];(g.length||m.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)(g[0],2,"0"),s+="."+(0,i.padStart)(m[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=g;var m=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=g(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=m},"686f":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"))},"692b":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("a8ae")),a=i(n("71e4")),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},"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,{})},g=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 m=new f,v=m.get,y=m.has,_=m.set;i=function(e,t){return _.call(m,e,t),t},r=function(e){return v.call(m,e)||{}},a=function(e){return y.call(m,e)}}else{var b=d("state");h[b]=!0,i=function(e,t){return c(e,b,t),t},r=function(e){return l(e,b)?e[b]:{}},a=function(e){return l(e,b)}}e.exports={set:i,get:r,has:a,enforce:p,getterFor:g}},"6af7":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},"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 g=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),v=g?"set":"add",y=r[e],_=y&&y.prototype,b=y,T={},S=function(e){var t=_[e];o(_,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!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||!(m||_.forEach&&!d((function(){(new y).entries().next()})))))b=n.getConstructor(t,e,g,v),s.REQUIRED=!0;else if(a(e,!0)){var w=new b,k=w[v](m?{}:-0,1)!=w,M=d((function(){w.has(1)})),C=h((function(e){new y(e)})),E=!m&&d((function(){var e=new y,t=5;while(t--)e[v](t,t);return!e.has(-0)}));C||(b=t((function(t,n){c(t,b,e);var i=p(new y,t,b);return void 0!=n&&u(n,i[v],i,g),i})),b.prototype=_,_.constructor=b),(M||E)&&(S("delete"),S("has"),g&&S("get")),(E||k)&&S(v),m&&_.clear&&delete _.clear}return T[e]=b,i({global:!0,forced:b!=y},T),f(b,e),m||n.setStrong(b,e,g),b}},"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)}},"6f8c":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("4eae")),o=i(n("a559")),s=i(n("3c96")),u=i(n("0db2")),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 g=function(e){return e.toLowerCase().replace(/-(\w)/g,(function(e){return e[1].toUpperCase()}))},m=function(e){var t={};return Object.keys(e).forEach((function(n){t[g(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:{}},g="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",y=0;t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var _=0,b=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=_)),"offset"in e&&(l.byterange=t,t.offset=e.offset),_=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(e.attributes.KEYFORMAT===g){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=m(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=m(e.attributes);l.parts=l.parts||[],l.parts.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=b),b=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=m(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=m(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?b:0,i&&(b=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=m(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=m(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),b=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},"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}},"71e4":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"))},"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"),g=n("c04e"),m=n("5135"),v=n("f5df"),y=n("861d"),_=n("7c73"),b=n("d2bb"),T=n("241c").f,S=n("a078"),w=n("b727").forEach,k=n("2626"),M=n("9bf2"),C=n("06cf"),E=n("69f3"),I=n("7156"),A=E.get,O=E.set,x=M.f,D=C.f,L=Math.round,N=r.RangeError,P=u.ArrayBuffer,R=u.DataView,j=s.NATIVE_ARRAY_BUFFER_VIEWS,U=s.TYPED_ARRAY_TAG,F=s.TypedArray,B=s.TypedArrayPrototype,G=s.aTypedArrayConstructor,q=s.isTypedArray,V="BYTES_PER_ELEMENT",H="Wrong length",$=function(e,t){var n=0,i=t.length,r=new(G(e))(i);while(i>n)r[n]=t[n++];return r},W=function(e,t){x(e,t,{get:function(){return A(this)[t]}})},z=function(e){var t;return e instanceof P||"ArrayBuffer"==(t=v(e))||"SharedArrayBuffer"==t},K=function(e,t){return q(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Y=function(e,t){return K(e,t=g(t,!0))?l(2,e[t]):D(e,t)},X=function(e,t,n){return!(K(e,t=g(t,!0))&&y(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?x(e,t,n):(e[t]=n.value,e)};a?(j||(C.f=Y,M.f=X,W(B,"buffer"),W(B,"byteOffset"),W(B,"byteLength"),W(B,"length")),i({target:"Object",stat:!0,forced:!j},{getOwnPropertyDescriptor:Y,defineProperty:X}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,s=e+(n?"Clamped":"")+"Array",u="get"+e,l="set"+e,g=r[s],m=g,v=m&&m.prototype,M={},C=function(e,t){var n=A(e);return n.view[u](t*a+n.byteOffset,!0)},E=function(e,t,i){var r=A(e);n&&(i=(i=L(i))<0?0:i>255?255:255&i),r.view[l](t*a+r.byteOffset,i,!0)},D=function(e,t){x(e,t,{get:function(){return C(this,t)},set:function(e){return E(this,t,e)},enumerable:!0})};j?o&&(m=t((function(e,t,n,i){return c(e,m,s),I(function(){return y(t)?z(t)?void 0!==i?new g(t,p(n,a),i):void 0!==n?new g(t,p(n,a)):new g(t):q(t)?$(m,t):S.call(m,t):new g(f(t))}(),e,m)})),b&&b(m,F),w(T(g),(function(e){e in m||d(m,e,g[e])})),m.prototype=v):(m=t((function(e,t,n,i){c(e,m,s);var r,o,u,l=0,d=0;if(y(t)){if(!z(t))return q(t)?$(m,t):S.call(m,t);r=t,d=p(n,a);var g=t.byteLength;if(void 0===i){if(g%a)throw N(H);if(o=g-d,o<0)throw N(H)}else if(o=h(i)*a,o+d>g)throw N(H);u=o/a}else u=f(t),o=u*a,r=new P(o);O(e,{buffer:r,byteOffset:d,byteLength:o,length:u,view:new R(r)});while(l<u)D(e,l++)})),b&&b(m,F),v=m.prototype=_(B)),v.constructor!==m&&d(v,"constructor",m),U&&d(v,U,s),M[s]=m,i({global:!0,forced:m!=g,sham:!j},M),V in m||d(m,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,g=p>>1,m=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+g>=1?m/d:m*r(2,1-g),e*d>=2&&(c++,d/=2),c+g>=p?(l=0,c=p):c+g>=1?(l=(e*d-1)*r(2,t),c+=g):(l=e*r(2,g-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}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,n){var i=n("1d80");e.exports=function(e){return Object(i(e))}},"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",g=l("IE_PROTO"),m=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},_=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},b=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}b=i?y(i):_();var e=o.length;while(e--)delete b[f][o[e]];return b()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[f]=r(e),n=new m,m[f]=null,n[g]=e):n=b(),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,g=f.BUGGY_SAFARI_ITERATORS,m=l("iterator"),v="keys",y="values",_="entries",b=function(){return this};e.exports=function(e,t,n,l,f,T,S){r(n,t,l);var w,k,M,C=function(e){if(e===f&&x)return x;if(!g&&e in A)return A[e];switch(e){case v:return function(){return new n(this,e)};case y:return function(){return new n(this,e)};case _:return function(){return new n(this,e)}}return function(){return new n(this)}},E=t+" Iterator",I=!1,A=e.prototype,O=A[m]||A["@@iterator"]||f&&A[f],x=!g&&O||C(f),D="Array"==t&&A.entries||O;if(D&&(w=a(D.call(new e)),p!==Object.prototype&&w.next&&(d||a(w)===p||(o?o(w,p):"function"!=typeof w[m]&&u(w,m,b)),s(w,E,!0,!0),d&&(h[E]=b))),f==y&&O&&O.name!==y&&(I=!0,x=function(){return O.call(this)}),d&&!S||A[m]===x||u(A,m,x),h[t]=x,f)if(k={values:C(y),keys:T?x:C(v),entries:C(_)},S)for(M in k)(g||I||!(M in A))&&c(A,M,k[M]);else i({target:t,proto:!0,forced:g||I},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))},"7fdf":function(e,t,n){"use strict";(function(t){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("baa5"),n("d81d"),n("fb6a"),n("4e82"),n("ace4"),n("6c57"),n("0c47"),n("4ec9"),n("23dc"),n("a9e3"),n("e439"),n("dbb4"),n("7039"),n("3410"),n("b64b"),n("131a"),n("d3b7"),n("07ac"),n("acd8"),n("e25e"),n("4ae1"),n("4d63"),n("ac1f"),n("25f0"),n("6062"),n("f5b2"),n("f6d6"),n("2532"),n("3ca3"),n("466d"),n("5319"),n("1276"),n("2ca0"),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"),n("10d1"),n("1fe2"),n("159b"),n("ddb0"),n("2b3d"),function(t,n){e.exports=n()}(0,(function(){function e(t){return(e="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})(t)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(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&&l(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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 h(e,t,n){return(h=d()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&l(r,n.prototype),r}).apply(null,arguments)}function f(e){var t="function"==typeof Map?new Map:void 0;return(f=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return h(e,arguments,c(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),l(i,e)})(e)}function p(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?g(e):t}function v(e){return function(){var t,n=c(e);if(d()){var i=c(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return m(this,t)}}function y(e,t){return b(e)||function(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)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(c){r=!0,a=c}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}}(e,t)||S(e,t)||k()}function _(e){return function(e){if(Array.isArray(e))return w(e)}(e)||T(e)||S(e)||function(){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 b(e){if(Array.isArray(e))return e}function T(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function S(e,t){if(e){if("string"==typeof e)return w(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)?w(e,t):void 0}}function w(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 k(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function M(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=S(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,r,a=!0,o=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){o=!0,r=e},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw r}}}}var C={SDK_READY:"sdkStateReady",SDK_NOT_READY:"sdkStateNotReady",SDK_DESTROY:"sdkDestroy",MESSAGE_RECEIVED:"onMessageReceived",MESSAGE_MODIFIED:"onMessageModified",MESSAGE_REVOKED:"onMessageRevoked",MESSAGE_READ_BY_PEER:"onMessageReadByPeer",CONVERSATION_LIST_UPDATED:"onConversationListUpdated",GROUP_LIST_UPDATED:"onGroupListUpdated",GROUP_SYSTEM_NOTICE_RECEIVED:"receiveGroupSystemNotice",GROUP_ATTRIBUTES_UPDATED:"groupAttributesUpdated",PROFILE_UPDATED:"onProfileUpdated",BLACKLIST_UPDATED:"blacklistUpdated",FRIEND_LIST_UPDATED:"onFriendListUpdated",FRIEND_GROUP_LIST_UPDATED:"onFriendGroupListUpdated",FRIEND_APPLICATION_LIST_UPDATED:"onFriendApplicationListUpdated",KICKED_OUT:"kickedOut",ERROR:"error",NET_STATE_CHANGE:"netStateChange",SDK_RELOAD:"sdkReload"},E={MSG_TEXT:"TIMTextElem",MSG_IMAGE:"TIMImageElem",MSG_SOUND:"TIMSoundElem",MSG_AUDIO:"TIMSoundElem",MSG_FILE:"TIMFileElem",MSG_FACE:"TIMFaceElem",MSG_VIDEO:"TIMVideoFileElem",MSG_GEO:"TIMLocationElem",MSG_LOCATION:"TIMLocationElem",MSG_GRP_TIP:"TIMGroupTipElem",MSG_GRP_SYS_NOTICE:"TIMGroupSystemNoticeElem",MSG_CUSTOM:"TIMCustomElem",MSG_MERGER:"TIMRelayElem",MSG_PRIORITY_HIGH:"High",MSG_PRIORITY_NORMAL:"Normal",MSG_PRIORITY_LOW:"Low",MSG_PRIORITY_LOWEST:"Lowest",CONV_C2C:"C2C",CONV_GROUP:"GROUP",CONV_SYSTEM:"@TIM#SYSTEM",CONV_AT_ME:1,CONV_AT_ALL:2,CONV_AT_ALL_AT_ME:3,GRP_PRIVATE:"Private",GRP_WORK:"Private",GRP_PUBLIC:"Public",GRP_CHATROOM:"ChatRoom",GRP_MEETING:"ChatRoom",GRP_AVCHATROOM:"AVChatRoom",GRP_COMMUNITY:"Community",GRP_MBR_ROLE_OWNER:"Owner",GRP_MBR_ROLE_ADMIN:"Admin",GRP_MBR_ROLE_MEMBER:"Member",GRP_MBR_ROLE_CUSTOM:"Custom",GRP_TIP_MBR_JOIN:1,GRP_TIP_MBR_QUIT:2,GRP_TIP_MBR_KICKED_OUT:3,GRP_TIP_MBR_SET_ADMIN:4,GRP_TIP_MBR_CANCELED_ADMIN:5,GRP_TIP_GRP_PROFILE_UPDATED:6,GRP_TIP_MBR_PROFILE_UPDATED:7,MSG_REMIND_ACPT_AND_NOTE:"AcceptAndNotify",MSG_REMIND_ACPT_NOT_NOTE:"AcceptNotNotify",MSG_REMIND_DISCARD:"Discard",GENDER_UNKNOWN:"Gender_Type_Unknown",GENDER_FEMALE:"Gender_Type_Female",GENDER_MALE:"Gender_Type_Male",KICKED_OUT_MULT_ACCOUNT:"multipleAccount",KICKED_OUT_MULT_DEVICE:"multipleDevice",KICKED_OUT_USERSIG_EXPIRED:"userSigExpired",ALLOW_TYPE_ALLOW_ANY:"AllowType_Type_AllowAny",ALLOW_TYPE_NEED_CONFIRM:"AllowType_Type_NeedConfirm",ALLOW_TYPE_DENY_ANY:"AllowType_Type_DenyAny",FORBID_TYPE_NONE:"AdminForbid_Type_None",FORBID_TYPE_SEND_OUT:"AdminForbid_Type_SendOut",JOIN_OPTIONS_FREE_ACCESS:"FreeAccess",JOIN_OPTIONS_NEED_PERMISSION:"NeedPermission",JOIN_OPTIONS_DISABLE_APPLY:"DisableApply",JOIN_STATUS_SUCCESS:"JoinedSuccess",JOIN_STATUS_ALREADY_IN_GROUP:"AlreadyInGroup",JOIN_STATUS_WAIT_APPROVAL:"WaitAdminApproval",GRP_PROFILE_OWNER_ID:"ownerID",GRP_PROFILE_CREATE_TIME:"createTime",GRP_PROFILE_LAST_INFO_TIME:"lastInfoTime",GRP_PROFILE_MEMBER_NUM:"memberNum",GRP_PROFILE_MAX_MEMBER_NUM:"maxMemberNum",GRP_PROFILE_JOIN_OPTION:"joinOption",GRP_PROFILE_INTRODUCTION:"introduction",GRP_PROFILE_NOTIFICATION:"notification",GRP_PROFILE_MUTE_ALL_MBRS:"muteAllMembers",SNS_ADD_TYPE_SINGLE:"Add_Type_Single",SNS_ADD_TYPE_BOTH:"Add_Type_Both",SNS_DELETE_TYPE_SINGLE:"Delete_Type_Single",SNS_DELETE_TYPE_BOTH:"Delete_Type_Both",SNS_APPLICATION_TYPE_BOTH:"Pendency_Type_Both",SNS_APPLICATION_SENT_TO_ME:"Pendency_Type_ComeIn",SNS_APPLICATION_SENT_BY_ME:"Pendency_Type_SendOut",SNS_APPLICATION_AGREE:"Response_Action_Agree",SNS_APPLICATION_AGREE_AND_ADD:"Response_Action_AgreeAndAdd",SNS_CHECK_TYPE_BOTH:"CheckResult_Type_Both",SNS_CHECK_TYPE_SINGLE:"CheckResult_Type_Single",SNS_TYPE_NO_RELATION:"CheckResult_Type_NoRelation",SNS_TYPE_A_WITH_B:"CheckResult_Type_AWithB",SNS_TYPE_B_WITH_A:"CheckResult_Type_BWithA",SNS_TYPE_BOTH_WAY:"CheckResult_Type_BothWay",NET_STATE_CONNECTED:"connected",NET_STATE_CONNECTING:"connecting",NET_STATE_DISCONNECTED:"disconnected",MSG_AT_ALL:"__kImSDK_MesssageAtALL__",READ_ALL_C2C_MSG:"readAllC2CMessage",READ_ALL_GROUP_MSG:"readAllGroupMessage",READ_ALL_MSG:"readAllMessage"},I=function(){function e(){n(this,e),this.cache=[],this.options=null}return r(e,[{key:"use",value:function(e){if("function"!=typeof e)throw"middleware must be a function";return this.cache.push(e),this}},{key:"next",value:function(e){if(this.middlewares&&this.middlewares.length>0)return this.middlewares.shift().call(this,this.options,this.next.bind(this))}},{key:"run",value:function(e){return this.middlewares=this.cache.map((function(e){return e})),this.options=e,this.next()}}]),e}(),A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{};function O(e,t){return e(t={exports:{}},t.exports),t.exports}var x=O((function(e,t){var n,i,r,a,o,s,u,c,l,d,h,f,p,g,m,v,y,_;e.exports=(n="function"==typeof Promise,i="object"==typeof self?self:A,r="undefined"!=typeof Symbol,a="undefined"!=typeof Map,o="undefined"!=typeof Set,s="undefined"!=typeof WeakMap,u="undefined"!=typeof WeakSet,c="undefined"!=typeof DataView,l=r&&void 0!==Symbol.iterator,d=r&&void 0!==Symbol.toStringTag,h=o&&"function"==typeof Set.prototype.entries,f=a&&"function"==typeof Map.prototype.entries,p=h&&Object.getPrototypeOf((new Set).entries()),g=f&&Object.getPrototypeOf((new Map).entries()),m=l&&"function"==typeof Array.prototype[Symbol.iterator],v=m&&Object.getPrototypeOf([][Symbol.iterator]()),y=l&&"function"==typeof String.prototype[Symbol.iterator],_=y&&Object.getPrototypeOf(""[Symbol.iterator]()),function(e){var t=typeof e;if("object"!==t)return t;if(null===e)return"null";if(e===i)return"global";if(Array.isArray(e)&&(!1===d||!(Symbol.toStringTag in e)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&e===window.location)return"Location";if("object"==typeof window.document&&e===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&e===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&e===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&e instanceof window.HTMLElement){if("BLOCKQUOTE"===e.tagName)return"HTMLQuoteElement";if("TD"===e.tagName)return"HTMLTableDataCellElement";if("TH"===e.tagName)return"HTMLTableHeaderCellElement"}}var r=d&&e[Symbol.toStringTag];if("string"==typeof r)return r;var l=Object.getPrototypeOf(e);return l===RegExp.prototype?"RegExp":l===Date.prototype?"Date":n&&l===Promise.prototype?"Promise":o&&l===Set.prototype?"Set":a&&l===Map.prototype?"Map":u&&l===WeakSet.prototype?"WeakSet":s&&l===WeakMap.prototype?"WeakMap":c&&l===DataView.prototype?"DataView":a&&l===g?"Map Iterator":o&&l===p?"Set Iterator":m&&l===v?"Array Iterator":y&&l===_?"String Iterator":null===l?"Object":Object.prototype.toString.call(e).slice(8,-1)})})),D=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;n(this,e),this.high=t,this.low=i}return r(e,[{key:"equal",value:function(e){return null!==e&&this.low===e.low&&this.high===e.high}},{key:"toString",value:function(){var e=Number(this.high).toString(16),t=Number(this.low).toString(16);if(t.length<8)for(var n=8-t.length;n;)t="0"+t,n--;return e+t}}]),e}(),L={TEST:{CHINA:{DEFAULT:"wss://wss-dev.tim.qq.com"},OVERSEA:{DEFAULT:"wss://wss-dev.tim.qq.com"},SINGAPORE:{DEFAULT:"wss://wsssgp-dev.im.qcloud.com"},KOREA:{DEFAULT:"wss://wsskr-dev.im.qcloud.com"},GERMANY:{DEFAULT:"wss://wssger-dev.im.qcloud.com"},IND:{DEFAULT:"wss://wssind-dev.im.qcloud.com"}},PRODUCTION:{CHINA:{DEFAULT:"wss://wss.im.qcloud.com",BACKUP:"wss://wss.tim.qq.com",STAT:"https://api.im.qcloud.com"},OVERSEA:{DEFAULT:"wss://wss.im.qcloud.com",STAT:"https://api.im.qcloud.com"},SINGAPORE:{DEFAULT:"wss://wsssgp.im.qcloud.com",STAT:"https://apisgp.im.qcloud.com"},KOREA:{DEFAULT:"wss://wsskr.im.qcloud.com",STAT:"https://apiskr.im.qcloud.com"},GERMANY:{DEFAULT:"wss://wssger.im.qcloud.com",STAT:"https://apiger.im.qcloud.com"},IND:{DEFAULT:"wss://wssind.im.qcloud.com",STAT:"https://apiind.im.qcloud.com"}}},N={WEB:7,WX_MP:8,QQ_MP:9,TT_MP:10,BAIDU_MP:11,ALI_MP:12,UNI_NATIVE_APP:15},P="1.7.3",R=537048168,j="CHINA",U="OVERSEA",F="SINGAPORE",B="KOREA",G="GERMANY",q="IND",V={HOST:{CURRENT:{DEFAULT:"wss://wss.im.qcloud.com",STAT:"https://api.im.qcloud.com"},setCurrent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j;this.CURRENT=L.PRODUCTION[e]}},NAME:{OPEN_IM:"openim",GROUP:"group_open_http_svc",GROUP_COMMUNITY:"million_group_open_http_svc",GROUP_ATTR:"group_open_attr_http_svc",FRIEND:"sns",PROFILE:"profile",RECENT_CONTACT:"recentcontact",PIC:"openpic",BIG_GROUP_NO_AUTH:"group_open_http_noauth_svc",BIG_GROUP_LONG_POLLING:"group_open_long_polling_http_svc",BIG_GROUP_LONG_POLLING_NO_AUTH:"group_open_long_polling_http_noauth_svc",IM_OPEN_STAT:"imopenstat",WEB_IM:"webim",IM_COS_SIGN:"im_cos_sign_svr",CUSTOM_UPLOAD:"im_cos_msg",HEARTBEAT:"heartbeat",IM_OPEN_PUSH:"im_open_push",IM_OPEN_STATUS:"im_open_status",IM_LONG_MESSAGE:"im_long_msg",IM_CONFIG_MANAGER:"im_sdk_config_mgr",STAT_SERVICE:"StatSvc",OVERLOAD_PUSH:"OverLoadPush"},CMD:{ACCESS_LAYER:"accesslayer",LOGIN:"wslogin",LOGOUT_LONG_POLL:"longpollinglogout",LOGOUT:"wslogout",HELLO:"wshello",PORTRAIT_GET:"portrait_get_all",PORTRAIT_SET:"portrait_set",GET_LONG_POLL_ID:"getlongpollingid",LONG_POLL:"longpolling",AVCHATROOM_LONG_POLL:"get_msg",ADD_FRIEND:"friend_add",UPDATE_FRIEND:"friend_update",GET_FRIEND_LIST:"friend_get",GET_FRIEND_PROFILE:"friend_get_list",DELETE_FRIEND:"friend_delete",CHECK_FRIEND:"friend_check",GET_FRIEND_GROUP_LIST:"group_get",RESPOND_FRIEND_APPLICATION:"friend_response",GET_FRIEND_APPLICATION_LIST:"pendency_get",DELETE_FRIEND_APPLICATION:"pendency_delete",REPORT_FRIEND_APPLICATION:"pendency_report",GET_GROUP_APPLICATION:"get_pendency",CREATE_FRIEND_GROUP:"group_add",DELETE_FRIEND_GROUP:"group_delete",UPDATE_FRIEND_GROUP:"group_update",GET_BLACKLIST:"black_list_get",ADD_BLACKLIST:"black_list_add",DELETE_BLACKLIST:"black_list_delete",CREATE_GROUP:"create_group",GET_JOINED_GROUPS:"get_joined_group_list",SET_GROUP_ATTRIBUTES:"set_group_attr",MODIFY_GROUP_ATTRIBUTES:"modify_group_attr",DELETE_GROUP_ATTRIBUTES:"delete_group_attr",CLEAR_GROUP_ATTRIBUTES:"clear_group_attr",GET_GROUP_ATTRIBUTES:"get_group_attr",SEND_MESSAGE:"sendmsg",REVOKE_C2C_MESSAGE:"msgwithdraw",DELETE_C2C_MESSAGE:"delete_c2c_msg_ramble",SEND_GROUP_MESSAGE:"send_group_msg",REVOKE_GROUP_MESSAGE:"group_msg_recall",DELETE_GROUP_MESSAGE:"delete_group_ramble_msg_by_seq",GET_GROUP_INFO:"get_group_self_member_info",GET_GROUP_MEMBER_INFO:"get_specified_group_member_info",GET_GROUP_MEMBER_LIST:"get_group_member_info",QUIT_GROUP:"quit_group",CHANGE_GROUP_OWNER:"change_group_owner",DESTROY_GROUP:"destroy_group",ADD_GROUP_MEMBER:"add_group_member",DELETE_GROUP_MEMBER:"delete_group_member",SEARCH_GROUP_BY_ID:"get_group_public_info",APPLY_JOIN_GROUP:"apply_join_group",HANDLE_APPLY_JOIN_GROUP:"handle_apply_join_group",HANDLE_GROUP_INVITATION:"handle_invite_join_group",MODIFY_GROUP_INFO:"modify_group_base_info",MODIFY_GROUP_MEMBER_INFO:"modify_group_member_info",DELETE_GROUP_SYSTEM_MESSAGE:"deletemsg",DELETE_GROUP_AT_TIPS:"deletemsg",GET_CONVERSATION_LIST:"get",PAGING_GET_CONVERSATION_LIST:"page_get",DELETE_CONVERSATION:"delete",PIN_CONVERSATION:"top",GET_MESSAGES:"getmsg",GET_C2C_ROAM_MESSAGES:"getroammsg",SET_C2C_PEER_MUTE_NOTIFICATIONS:"set_c2c_peer_mute_notifications",GET_C2C_PEER_MUTE_NOTIFICATIONS:"get_c2c_peer_mute_notifications",GET_GROUP_ROAM_MESSAGES:"group_msg_get",SET_C2C_MESSAGE_READ:"msgreaded",GET_PEER_READ_TIME:"get_peer_read_time",SET_GROUP_MESSAGE_READ:"msg_read_report",FILE_READ_AND_WRITE_AUTHKEY:"authkey",FILE_UPLOAD:"pic_up",COS_SIGN:"cos",COS_PRE_SIG:"pre_sig",VIDEO_COVER:"video_cover",TIM_WEB_REPORT_V2:"tim_web_report_v2",BIG_DATA_HALLWAY_AUTH_KEY:"authkey",GET_ONLINE_MEMBER_NUM:"get_online_member_num",ALIVE:"alive",MESSAGE_PUSH:"msg_push",MULTI_MESSAGE_PUSH:"multi_msg_push_ws",MESSAGE_PUSH_ACK:"ws_msg_push_ack",STATUS_FORCEOFFLINE:"stat_forceoffline",DOWNLOAD_MERGER_MESSAGE:"get_relay_json_msg",UPLOAD_MERGER_MESSAGE:"save_relay_json_msg",FETCH_CLOUD_CONTROL_CONFIG:"fetch_config",PUSHED_CLOUD_CONTROL_CONFIG:"push_configv2",FETCH_COMMERCIAL_CONFIG:"fetch_imsdk_purchase_bitsv2",PUSHED_COMMERCIAL_CONFIG:"push_imsdk_purchase_bitsv2",KICK_OTHER:"KickOther",OVERLOAD_NOTIFY:"notify2",SET_ALL_MESSAGE_READ:"read_all_unread_msg"},CHANNEL:{SOCKET:1,XHR:2,AUTO:0},NAME_VERSION:{openim:"v4",group_open_http_svc:"v4",sns:"v4",profile:"v4",recentcontact:"v4",openpic:"v4",group_open_http_noauth_svc:"v4",group_open_long_polling_http_svc:"v4",group_open_long_polling_http_noauth_svc:"v4",imopenstat:"v4",im_cos_sign_svr:"v4",im_cos_msg:"v4",webim:"v4",im_open_push:"v4",im_open_status:"v4"}},H={SEARCH_MSG:new D(0,Math.pow(2,0)).toString(),SEARCH_GRP_SNS:new D(0,Math.pow(2,1)).toString(),AVCHATROOM_HISTORY_MSG:new D(0,Math.pow(2,2)).toString(),GRP_COMMUNITY:new D(0,Math.pow(2,3)).toString(),MSG_TO_SPECIFIED_GRP_MBR:new D(0,Math.pow(2,4)).toString()};V.HOST.setCurrent(j);var $,W,z,K,Y="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),X="undefined"!=typeof qq&&"function"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting),J="undefined"!=typeof tt&&"function"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),Q="undefined"!=typeof swan&&"function"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),Z="undefined"!=typeof my&&"function"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),ee="undefined"!=typeof uni&&"undefined"==typeof window,te=Y||X||J||Q||Z||ee,ne=("undefined"!=typeof uni||"undefined"!=typeof window)&&!te,ie=X?qq:J?tt:Q?swan:Z?my:Y?wx:ee?uni:{},re=($="WEB",me?$="WEB":X?$="QQ_MP":J?$="TT_MP":Q?$="BAIDU_MP":Z?$="ALI_MP":Y?$="WX_MP":ee&&($="UNI_NATIVE_APP"),N[$]),ae=ne&&window&&window.navigator&&window.navigator.userAgent||"",oe=/AppleWebKit\/([\d.]+)/i.exec(ae),se=(oe&&parseFloat(oe.pop()),/iPad/i.test(ae)),ue=/iPhone/i.test(ae)&&!se,ce=/iPod/i.test(ae),le=ue||se||ce,de=((W=ae.match(/OS (\d+)_/i))&&W[1]&&W[1],/Android/i.test(ae)),he=(function(){var e=ae.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);t&&n&&parseFloat(e[1]+"."+e[2])}(),de&&/webkit/i.test(ae),/Firefox/i.test(ae),/Edge/i.test(ae)),fe=(!he&&/Chrome/i.test(ae),function(){var e=ae.match(/Chrome\/(\d+)/);e&&e[1]&&parseFloat(e[1])}(),/MSIE/.test(ae)),pe=(/MSIE\s8\.0/.test(ae),function(){var e=/MSIE\s(\d+)\.\d/.exec(ae),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(ae)&&/rv:11.0/.test(ae)&&(t=11),t}()),ge=(/Safari/i.test(ae),/TBS\/\d+/i.test(ae)),me=(function(){var e=ae.match(/TBS\/(\d+)/i);e&&e[1]&&e[1]}(),!ge&&/MQQBrowser\/\d+/i.test(ae),!ge&&/ QQBrowser\/\d+/i.test(ae),/(micromessenger|webbrowser)/i.test(ae)),ve=/Windows/i.test(ae),ye=/MAC OS X/i.test(ae),_e=(/MicroMessenger/i.test(ae),ne&&"undefined"!=typeof Worker),be="undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};z="undefined"!=typeof console?console:void 0!==be&&be.console?be.console:"undefined"!=typeof window&&window.console?window.console:{};for(var Te=function(){},Se=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],we=Se.length;we--;)K=Se[we],console[K]||(z[K]=Te);z.methods=Se;var ke=z,Me=0,Ce=function(){return(new Date).getTime()+Me},Ee=function(){Me=0},Ie=function(){return Math.floor(Ce()/1e3)},Ae=0,Oe=new Map;function xe(){var e,t=((e=new Date).setTime(Ce()),e);return"TIM "+t.toLocaleTimeString("en-US",{hour12:!1})+"."+function(e){var t;switch(e.toString().length){case 1:t="00"+e;break;case 2:t="0"+e;break;default:t=e}return t}(t.getMilliseconds())+":"}var De={arguments2String:function(e){var t;if(1===e.length)t=xe()+e[0];else{t=xe();for(var n=0,i=e.length;n<i;n++)Ke(e[n])?Xe(e[n])?t+=it(e[n]):t+=JSON.stringify(e[n]):t+=e[n],t+=" "}return t},debug:function(){if(Ae<=-1){var e=this.arguments2String(arguments);ke.debug(e)}},log:function(){if(Ae<=0){var e=this.arguments2String(arguments);ke.log(e)}},info:function(){if(Ae<=1){var e=this.arguments2String(arguments);ke.info(e)}},warn:function(){if(Ae<=2){var e=this.arguments2String(arguments);ke.warn(e)}},error:function(){if(Ae<=3){var e=this.arguments2String(arguments);ke.error(e)}},time:function(e){Oe.set(e,et.now())},timeEnd:function(e){if(Oe.has(e)){var t=et.now()-Oe.get(e);return Oe.delete(e),t}return ke.warn("未找到对应label: ".concat(e,", 请在调用 logger.timeEnd 前,调用 logger.time")),0},setLevel:function(e){e<4&&ke.log(xe()+"set level from "+Ae+" to "+e),Ae=e},getLevel:function(){return Ae}},Le={JPG:1,JPEG:1,GIF:2,PNG:3,BMP:4,UNKNOWN:255},Ne={NICK:"Tag_Profile_IM_Nick",GENDER:"Tag_Profile_IM_Gender",BIRTHDAY:"Tag_Profile_IM_BirthDay",LOCATION:"Tag_Profile_IM_Location",SELFSIGNATURE:"Tag_Profile_IM_SelfSignature",ALLOWTYPE:"Tag_Profile_IM_AllowType",LANGUAGE:"Tag_Profile_IM_Language",AVATAR:"Tag_Profile_IM_Image",MESSAGESETTINGS:"Tag_Profile_IM_MsgSettings",ADMINFORBIDTYPE:"Tag_Profile_IM_AdminForbidType",LEVEL:"Tag_Profile_IM_Level",ROLE:"Tag_Profile_IM_Role"},Pe={UNKNOWN:"Gender_Type_Unknown",FEMALE:"Gender_Type_Female",MALE:"Gender_Type_Male"},Re={NONE:"AdminForbid_Type_None",SEND_OUT:"AdminForbid_Type_SendOut"},je={NEED_CONFIRM:"AllowType_Type_NeedConfirm",ALLOW_ANY:"AllowType_Type_AllowAny",DENY_ANY:"AllowType_Type_DenyAny"},Ue="JoinedSuccess",Fe="WaitAdminApproval",Be="@TGS#_",Ge=function(e){return"file"===Je(e)},qe=function(t){return null!==t&&("number"==typeof t&&!isNaN(t-0)||"object"===e(t)&&t.constructor===Number)},Ve=function(e){return"string"==typeof e},He=function(t){return null!==t&&"object"===e(t)},$e=function(t){if("object"!==e(t)||null===t)return!1;var n=Object.getPrototypeOf(t);if(null===n)return!0;for(var i=n;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return n===i},We=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"array"===Je(e)},ze=function(e){return void 0===e},Ke=function(e){return We(e)||He(e)},Ye=function(e){return"function"==typeof e},Xe=function(e){return e instanceof Error},Je=function(e){return Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase()},Qe=function(e){if("string"!=typeof e)return!1;var t=e[0];return!/[^a-zA-Z0-9]/.test(t)},Ze=0;Date.now||(Date.now=function(){return(new Date).getTime()});var et={now:function(){0===Ze&&(Ze=Date.now()-1);var e=Date.now()-Ze;return e>4294967295?(Ze+=4294967295,Date.now()-Ze):e},utc:function(){return Math.round(Date.now()/1e3)}},nt=function e(t,n,i,r){if(!Ke(t)||!Ke(n))return 0;for(var a,o=0,s=Object.keys(n),u=0,c=s.length;u<c;u++)if(a=s[u],!(ze(n[a])||i&&i.includes(a)))if(Ke(t[a])&&Ke(n[a]))o+=e(t[a],n[a],i,r);else{if(r&&r.includes(n[a]))continue;t[a]!==n[a]&&(t[a]=n[a],o+=1)}return o},it=function(e){return JSON.stringify(e,["message","code"])},rt=function(e){if(0===e.length)return 0;for(var t=0,n=0,i="undefined"!=typeof document&&void 0!==document.characterSet?document.characterSet:"UTF-8";void 0!==e[t];)n+=e[t++].charCodeAt[t]<=255?1:!1===i?3:2;return n},at=function(e){var t=e||99999999;return Math.round(Math.random()*t)},ot="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",st=ot.length,ut=function(e,t){for(var n in e)if(e[n]===t)return!0;return!1},ct={},lt=function(){if(te)return"https:";if(ne&&"undefined"==typeof window)return"https:";var e=window.location.protocol;return["http:","https:"].indexOf(e)<0&&(e="http:"),e},dt=function(e){return-1===e.indexOf("http://")||-1===e.indexOf("https://")?"https://"+e:e.replace(/https|http/,"https")},ht=function t(n){if(0===Object.getOwnPropertyNames(n).length)return Object.create(null);var i=Array.isArray(n)?[]:Object.create(null),r="";for(var a in n)null!==n[a]?void 0!==n[a]?(r=e(n[a]),["string","number","function","boolean"].indexOf(r)>=0?i[a]=n[a]:i[a]=t(n[a])):i[a]=void 0:i[a]=null;return i};function ft(e,t){We(e)&&We(t)?t.forEach((function(t){var n=t.key,i=t.value,r=e.find((function(e){return e.key===n}));r?r.value=i:e.push({key:n,value:i})})):De.warn("updateCustomField target 或 source 不是数组,忽略此次更新。")}var pt=function(e){return e===E.GRP_PUBLIC},gt=function(e){return e===E.GRP_AVCHATROOM},mt=function(e){var t=e.type,n=e.groupID;return t===E.GRP_COMMUNITY||"".concat(n).startsWith(Be)},vt=function(e){return Ve(e)&&e.slice(0,3)===E.CONV_C2C},yt=function(e){return Ve(e)&&e.slice(0,5)===E.CONV_GROUP},_t=function(e){return Ve(e)&&e===E.CONV_SYSTEM};function bt(e,t){var n={};return Object.keys(e).forEach((function(i){n[i]=t(e[i],i)})),n}function Tt(e){return te?new Promise((function(t,n){ie.getImageInfo({src:e,success:function(e){t({width:e.width,height:e.height})},fail:function(){t({width:0,height:0})}})})):fe&&9===pe?Promise.resolve({width:0,height:0}):new Promise((function(t,n){var i=new Image;i.onload=function(){t({width:this.width,height:this.height}),i=null},i.onerror=function(){t({width:0,height:0}),i=null},i.src=e}))}function St(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return"".concat(e()+e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e())}function wt(){var e="unknown";if(ye&&(e="mac"),ve&&(e="windows"),le&&(e="ios"),de&&(e="android"),te)try{var t=ie.getSystemInfoSync().platform;void 0!==t&&(e=t)}catch(i){}return e}function kt(e){var t=e.originUrl,n=void 0===t?void 0:t,i=e.originWidth,r=e.originHeight,a=e.min,o=void 0===a?198:a,s=parseInt(i),u=parseInt(r),c={url:void 0,width:0,height:0};if((s<=u?s:u)<=o)c.url=n,c.width=s,c.height=u;else{u<=s?(c.width=Math.ceil(s*o/u),c.height=o):(c.width=o,c.height=Math.ceil(u*o/s));var l=n&&n.indexOf("?")>-1?"".concat(n,"&"):"".concat(n,"?");c.url="".concat(l,198===o?"imageView2/3/w/198/h/198":"imageView2/3/w/720/h/720")}return ze(n)?p(c,["url"]):c}function Mt(e){var t=e[2];e[2]=e[1],e[1]=t;for(var n=0;n<e.length;n++)e[n].setType(n)}function Ct(e){var t=e.servcmd;return t.slice(t.indexOf(".")+1)}function Et(e,t){return Math.round(Number(e)*Math.pow(10,t))/Math.pow(10,t)}function It(e,t){return e.includes(t)}function At(e,t){return e.includes(t)}var Ot=Object.prototype.hasOwnProperty;function xt(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if($e(e)){for(var t in e)if(Ot.call(e,t))return!1;return!0}return!("map"!==Je(e)&&!function(e){return"set"===Je(e)}(e)&&!Ge(e))&&0===e.size}function Dt(e,t,n){if(void 0===t)return!0;var i=!0;if("object"===x(t).toLowerCase())Object.keys(t).forEach((function(r){var a=1===e.length?e[0][r]:void 0;i=!!Lt(a,t[r],n,r)&&i}));else if("array"===x(t).toLowerCase())for(var r=0;r<t.length;r++)i=!!Lt(e[r],t[r],n,t[r].name)&&i;if(i)return i;throw new Error("Params validate failed.")}function Lt(e,t,n,i){if(void 0===t)return!0;var r=!0;return t.required&&xt(e)&&(ke.error("TIM [".concat(n,'] Missing required params: "').concat(i,'".')),r=!1),xt(e)||x(e).toLowerCase()===t.type.toLowerCase()||(ke.error("TIM [".concat(n,'] Invalid params: type check failed for "').concat(i,'".Expected ').concat(t.type,".")),r=!1),t.validator&&!t.validator(e)&&(ke.error("TIM [".concat(n,"] Invalid params: custom validator check failed for params.")),r=!1),r}var Nt,Pt={UNSEND:"unSend",SUCCESS:"success",FAIL:"fail"},Rt={NOT_START:"notStart",PENDING:"pengding",RESOLVED:"resolved",REJECTED:"rejected"},jt=function(e){return!!e&&(!!(vt(e)||yt(e)||_t(e))||(console.warn("非法的会话 ID:".concat(e,"。会话 ID 组成方式:C2C + userID(单聊)GROUP + groupID(群聊)@TIM#SYSTEM(系统通知会话)")),!1))},Ut="请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#",Ft=function(e){return e.param?"".concat(e.api," ").concat(e.param," ").concat(e.desc,"。").concat(Ut).concat(e.api):"".concat(e.api," ").concat(e.desc,"。").concat(Ut).concat(e.api)},Bt={type:"String",required:!0},Gt={type:"Array",required:!0},qt={type:"Object",required:!0},Vt={login:{userID:Bt,userSig:Bt},addToBlacklist:{userIDList:Gt},on:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(console.warn(Ft({api:"on",param:"eventName",desc:"类型必须为 String,且不能为空"})),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(console.warn(Ft({api:"on",param:"handler",desc:"参数必须为 Function"})),!1):(""===e.name&&console.warn("on 接口的 handler 参数推荐使用具名函数。具名函数可以使用 off 接口取消订阅,匿名函数无法取消订阅。"),!0)}}],once:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(console.warn(Ft({api:"once",param:"eventName",desc:"类型必须为 String,且不能为空"})),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(console.warn(Ft({api:"once",param:"handler",desc:"参数必须为 Function"})),!1):(""===e.name&&console.warn("once 接口的 handler 参数推荐使用具名函数。"),!0)}}],off:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(console.warn(Ft({api:"off",param:"eventName",desc:"类型必须为 String,且不能为空"})),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(console.warn(Ft({api:"off",param:"handler",desc:"参数必须为 Function"})),!1):(""===e.name&&console.warn("off 接口无法为匿名函数取消监听事件。"),!0)}}],sendMessage:[s({name:"message"},qt)],getMessageList:{conversationID:s({},Bt,{validator:function(e){return jt(e)}}),nextReqMessageID:{type:"String"},count:{type:"Number",validator:function(e){return!(!ze(e)&&!/^[1-9][0-9]*$/.test(e))||(console.warn(Ft({api:"getMessageList",param:"count",desc:"必须为正整数"})),!1)}}},setMessageRead:{conversationID:s({},Bt,{validator:function(e){return jt(e)}})},setAllMessageRead:{scope:{type:"String",required:!1,validator:function(e){return!e||-1!==[E.READ_ALL_C2C_MSG,E.READ_ALL_GROUP_MSG,E.READ_ALL_MSG].indexOf(e)||(console.warn(Ft({api:"setAllMessageRead",param:"scope",desc:"取值必须为 TIM.TYPES.READ_ALL_C2C_MSG, TIM.TYPES.READ_ALL_GROUP_MSG 或 TIM.TYPES.READ_ALL_MSG"})),!1)}}},getConversationProfile:[s({name:"conversationID"},Bt,{validator:function(e){return jt(e)}})],deleteConversation:[s({name:"conversationID"},Bt,{validator:function(e){return jt(e)}})],pinConversation:{conversationID:s({},Bt,{validator:function(e){return jt(e)}}),isPinned:s({},{type:"Boolean",required:!0})},getConversationList:[{name:"options",type:"Array",validator:function(e){return!!ze(e)||0!==e.length||(console.warn(Ft({api:"getConversationList",desc:"获取指定会话时不能传入空数组"})),!1)}}],getGroupList:{groupProfileFilter:{type:"Array"}},getGroupProfile:{groupID:Bt,groupCustomFieldFilter:{type:"Array"},memberCustomFieldFilter:{type:"Array"}},getGroupProfileAdvance:{groupIDList:Gt},createGroup:{name:Bt},joinGroup:{groupID:Bt,type:{type:"String"},applyMessage:{type:"String"}},quitGroup:[s({name:"groupID"},Bt)],handleApplication:{message:qt,handleAction:Bt,handleMessage:{type:"String"}},changeGroupOwner:{groupID:Bt,newOwnerID:Bt},updateGroupProfile:{groupID:Bt,muteAllMembers:{type:"Boolean"}},dismissGroup:[s({name:"groupID"},Bt)],searchGroupByID:[s({name:"groupID"},Bt)],initGroupAttributes:{groupID:Bt,groupAttributes:s({},qt,{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!Ve(e[n]))return console.warn(Ft({api:"initGroupAttributes",desc:"群属性 value 必须是字符串"})),t=!1})),t}})},setGroupAttributes:{groupID:Bt,groupAttributes:s({},qt,{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!Ve(e[n]))return console.warn(Ft({api:"setGroupAttributes",desc:"群属性 value 必须是字符串"})),t=!1})),t}})},deleteGroupAttributes:{groupID:Bt,keyList:{type:"Array",validator:function(e){if(ze(e))return console.warn(Ft({api:"deleteGroupAttributes",desc:"缺少必填参数:keyList"})),!1;if(!We(e))return!1;if(!xt(e)){var t=!0;return e.forEach((function(e){if(!Ve(e))return console.warn(Ft({api:"deleteGroupAttributes",desc:"群属性 key 必须是字符串"})),t=!1})),t}return!0}}},getGroupAttributes:{groupID:Bt,keyList:{type:"Array",validator:function(e){if(ze(e))return console.warn(Ft({api:"getGroupAttributes",desc:"缺少必填参数:keyList"})),!1;if(!We(e))return!1;if(!xt(e)){var t=!0;return e.forEach((function(e){if(!Ve(e))return console.warn(Ft({api:"getGroupAttributes",desc:"群属性 key 必须是字符串"})),t=!1})),t}return!0}}},getGroupMemberList:{groupID:Bt,count:{type:"Number"}},getGroupMemberProfile:{groupID:Bt,userIDList:Gt,memberCustomFieldFilter:{type:"Array"}},addGroupMember:{groupID:Bt,userIDList:Gt},setGroupMemberRole:{groupID:Bt,userID:Bt,role:Bt},setGroupMemberMuteTime:{groupID:Bt,userID:Bt,muteTime:{type:"Number",validator:function(e){return e>=0}}},setGroupMemberNameCard:{groupID:Bt,userID:{type:"String"},nameCard:{type:"String",validator:function(e){return Ve(e)?(e.length,!0):(console.warn(Ft({api:"setGroupMemberNameCard",param:"nameCard",desc:"类型必须为 String"})),!1)}}},setGroupMemberCustomField:{groupID:Bt,userID:{type:"String"},memberCustomField:Gt},deleteGroupMember:{groupID:Bt},createTextMessage:{to:Bt,conversationType:Bt,payload:s({},qt,{validator:function(e){return $e(e)?Ve(e.text)?0!==e.text.length||(console.warn(Ft({api:"createTextMessage",desc:"消息内容不能为空"})),!1):(console.warn(Ft({api:"createTextMessage",param:"payload.text",desc:"类型必须为 String"})),!1):(console.warn(Ft({api:"createTextMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createTextAtMessage:{to:Bt,conversationType:Bt,payload:s({},qt,{validator:function(e){return $e(e)?Ve(e.text)?0===e.text.length?(console.warn(Ft({api:"createTextAtMessage",desc:"消息内容不能为空"})),!1):!(e.atUserList&&!We(e.atUserList))||(console.warn(Ft({api:"createTextAtMessage",desc:"payload.atUserList 类型必须为数组"})),!1):(console.warn(Ft({api:"createTextAtMessage",param:"payload.text",desc:"类型必须为 String"})),!1):(console.warn(Ft({api:"createTextAtMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createCustomMessage:{to:Bt,conversationType:Bt,payload:s({},qt,{validator:function(e){return $e(e)?e.data&&!Ve(e.data)?(console.warn(Ft({api:"createCustomMessage",param:"payload.data",desc:"类型必须为 String"})),!1):e.description&&!Ve(e.description)?(console.warn(Ft({api:"createCustomMessage",param:"payload.description",desc:"类型必须为 String"})),!1):!(e.extension&&!Ve(e.extension))||(console.warn(Ft({api:"createCustomMessage",param:"payload.extension",desc:"类型必须为 String"})),!1):(console.warn(Ft({api:"createCustomMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createImageMessage:{to:Bt,conversationType:Bt,payload:s({},qt,{validator:function(e){if(!$e(e))return console.warn(Ft({api:"createImageMessage",param:"payload",desc:"类型必须为 plain object"})),!1;if(ze(e.file))return console.warn(Ft({api:"createImageMessage",param:"payload.file",desc:"不能为 undefined"})),!1;if(ne){if(!(e.file instanceof HTMLInputElement||Ge(e.file)))return $e(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(console.warn(Ft({api:"createImageMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1):(console.warn(Ft({api:"createImageMessage",param:"payload.file",desc:"类型必须是 HTMLInputElement 或 File"})),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return console.warn(Ft({api:"createImageMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1}return!0},onProgress:{type:"Function",required:!1,validator:function(e){return ze(e)&&console.warn(Ft({api:"createImageMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0}}})},createAudioMessage:{to:Bt,conversationType:Bt,payload:s({},qt,{validator:function(e){return!!$e(e)||(console.warn(Ft({api:"createAudioMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}}),onProgress:{type:"Function",required:!1,validator:function(e){return ze(e)&&console.warn(Ft({api:"createAudioMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0}}},createVideoMessage:{to:Bt,conversationType:Bt,payload:s({},qt,{validator:function(e){if(!$e(e))return console.warn(Ft({api:"createVideoMessage",param:"payload",desc:"类型必须为 plain object"})),!1;if(ze(e.file))return console.warn(Ft({api:"createVideoMessage",param:"payload.file",desc:"不能为 undefined"})),!1;if(ne){if(!(e.file instanceof HTMLInputElement||Ge(e.file)))return $e(e.file)&&"undefined"!=typeof uni?!!Ge(e.file.tempFile)||(console.warn(Ft({api:"createVideoMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1):(console.warn(Ft({api:"createVideoMessage",param:"payload.file",desc:"类型必须是 HTMLInputElement 或 File"})),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return console.warn(Ft({api:"createVideoMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1}return!0}}),onProgress:{type:"Function",required:!1,validator:function(e){return ze(e)&&console.warn(Ft({api:"createVideoMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0}}},createFaceMessage:{to:Bt,conversationType:Bt,payload:s({},qt,{validator:function(e){return $e(e)?qe(e.index)?!!Ve(e.data)||(console.warn(Ft({api:"createFaceMessage",param:"payload.data",desc:"类型必须为 String"})),!1):(console.warn(Ft({api:"createFaceMessage",param:"payload.index",desc:"类型必须为 Number"})),!1):(console.warn(Ft({api:"createFaceMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createFileMessage:{to:Bt,conversationType:Bt,payload:s({},qt,{validator:function(e){if(!$e(e))return console.warn(Ft({api:"createFileMessage",param:"payload",desc:"类型必须为 plain object"})),!1;if(ze(e.file))return console.warn(Ft({api:"createFileMessage",param:"payload.file",desc:"不能为 undefined"})),!1;if(ne){if(!(e.file instanceof HTMLInputElement||Ge(e.file)))return $e(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(console.warn(Ft({api:"createFileMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1):(console.warn(Ft({api:"createFileMessage",param:"payload.file",desc:"类型必须是 HTMLInputElement 或 File"})),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return console.warn(Ft({api:"createFileMessage",desc:"您没有选择文件,无法发送"})),!1}return!0}}),onProgress:{type:"Function",required:!1,validator:function(e){return ze(e)&&console.warn(Ft({api:"createFileMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0}}},createLocationMessage:{to:Bt,conversationType:Bt,payload:s({},qt,{validator:function(e){return $e(e)?Ve(e.description)?qe(e.longitude)?!!qe(e.latitude)||(console.warn(Ft({api:"createLocationMessage",param:"payload.latitude",desc:"类型必须为 Number"})),!1):(console.warn(Ft({api:"createLocationMessage",param:"payload.longitude",desc:"类型必须为 Number"})),!1):(console.warn(Ft({api:"createLocationMessage",param:"payload.description",desc:"类型必须为 String"})),!1):(console.warn(Ft({api:"createLocationMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createMergerMessage:{to:Bt,conversationType:Bt,payload:s({},qt,{validator:function(e){if(xt(e.messageList))return console.warn(Ft({api:"createMergerMessage",desc:"不能为空数组"})),!1;if(xt(e.compatibleText))return console.warn(Ft({api:"createMergerMessage",desc:"类型必须为 String,且不能为空"})),!1;var t=!1;return e.messageList.forEach((function(e){e.status===Pt.FAIL&&(t=!0)})),!t||(console.warn(Ft({api:"createMergerMessage",desc:"不支持合并已发送失败的消息"})),!1)}})},revokeMessage:[s({name:"message"},qt,{validator:function(e){return xt(e)?(console.warn("revokeMessage 请传入消息(Message)实例"),!1):e.conversationType===E.CONV_SYSTEM?(console.warn("revokeMessage 不能撤回系统会话消息,只能撤回单聊消息或群消息"),!1):!0!==e.isRevoked||(console.warn("revokeMessage 消息已经被撤回,请勿重复操作"),!1)}})],deleteMessage:[s({name:"messageList"},Gt,{validator:function(e){return!xt(e)||(console.warn(Ft({api:"deleteMessage",param:"messageList",desc:"不能为空数组"})),!1)}})],getUserProfile:{userIDList:{type:"Array",validator:function(e){return We(e)?(0===e.length&&console.warn(Ft({api:"getUserProfile",param:"userIDList",desc:"不能为空数组"})),!0):(console.warn(Ft({api:"getUserProfile",param:"userIDList",desc:"必须为数组"})),!1)}}},updateMyProfile:{profileCustomField:{type:"Array",validator:function(e){return!!ze(e)||!!We(e)||(console.warn(Ft({api:"updateMyProfile",param:"profileCustomField",desc:"必须为数组"})),!1)}}},addFriend:{to:Bt,source:{type:"String",required:!0,validator:function(e){return!!e&&(e.startsWith("AddSource_Type_")?!(e.replace("AddSource_Type_","").length>8)||(console.warn(Ft({api:"addFriend",desc:"加好友来源字段的关键字长度不得超过8字节"})),!1):(console.warn(Ft({api:"addFriend",desc:"加好友来源字段的前缀必须是:AddSource_Type_"})),!1))}},remark:{type:"String",required:!1,validator:function(e){return!(Ve(e)&&e.length>96)||(console.warn(Ft({api:"updateFriend",desc:" 备注长度最长不得超过 96 个字节"})),!1)}}},deleteFriend:{userIDList:Gt},checkFriend:{userIDList:Gt},getFriendProfile:{userIDList:Gt},updateFriend:{userID:Bt,remark:{type:"String",required:!1,validator:function(e){return!(Ve(e)&&e.length>96)||(console.warn(Ft({api:"updateFriend",desc:" 备注长度最长不得超过 96 个字节"})),!1)}},friendCustomField:{type:"Array",required:!1,validator:function(e){if(e){if(!We(e))return console.warn(Ft({api:"updateFriend",param:"friendCustomField",desc:"必须为数组"})),!1;var t=!0;return e.forEach((function(e){return Ve(e.key)&&-1!==e.key.indexOf("Tag_SNS_Custom")?Ve(e.value)?e.value.length>8?(console.warn(Ft({api:"updateFriend",desc:"好友自定义字段的关键字长度不得超过8字节"})),t=!1):void 0:(console.warn(Ft({api:"updateFriend",desc:"类型必须为 String"})),t=!1):(console.warn(Ft({api:"updateFriend",desc:"好友自定义字段的前缀必须是 Tag_SNS_Custom"})),t=!1)})),t}return!0}}},acceptFriendApplication:{userID:Bt},refuseFriendApplication:{userID:Bt},deleteFriendApplication:{userID:Bt},createFriendGroup:{name:Bt},deleteFriendGroup:{name:Bt},addToFriendGroup:{name:Bt,userIDList:Gt},removeFromFriendGroup:{name:Bt,userIDList:Gt},renameFriendGroup:{oldName:Bt,newName:Bt}},Ht={login:"login",logout:"logout",on:"on",once:"once",off:"off",setLogLevel:"setLogLevel",registerPlugin:"registerPlugin",destroy:"destroy",createTextMessage:"createTextMessage",createTextAtMessage:"createTextAtMessage",createImageMessage:"createImageMessage",createAudioMessage:"createAudioMessage",createVideoMessage:"createVideoMessage",createCustomMessage:"createCustomMessage",createFaceMessage:"createFaceMessage",createFileMessage:"createFileMessage",createLocationMessage:"createLocationMessage",createMergerMessage:"createMergerMessage",downloadMergerMessage:"downloadMergerMessage",createForwardMessage:"createForwardMessage",sendMessage:"sendMessage",resendMessage:"resendMessage",revokeMessage:"revokeMessage",deleteMessage:"deleteMessage",getMessageList:"getMessageList",setMessageRead:"setMessageRead",setAllMessageRead:"setAllMessageRead",getConversationList:"getConversationList",getConversationProfile:"getConversationProfile",deleteConversation:"deleteConversation",pinConversation:"pinConversation",getGroupList:"getGroupList",getGroupProfile:"getGroupProfile",createGroup:"createGroup",joinGroup:"joinGroup",updateGroupProfile:"updateGroupProfile",quitGroup:"quitGroup",dismissGroup:"dismissGroup",changeGroupOwner:"changeGroupOwner",searchGroupByID:"searchGroupByID",setMessageRemindType:"setMessageRemindType",handleGroupApplication:"handleGroupApplication",initGroupAttributes:"initGroupAttributes",setGroupAttributes:"setGroupAttributes",deleteGroupAttributes:"deleteGroupAttributes",getGroupAttributes:"getGroupAttributes",getGroupMemberProfile:"getGroupMemberProfile",getGroupMemberList:"getGroupMemberList",addGroupMember:"addGroupMember",deleteGroupMember:"deleteGroupMember",setGroupMemberNameCard:"setGroupMemberNameCard",setGroupMemberMuteTime:"setGroupMemberMuteTime",setGroupMemberRole:"setGroupMemberRole",setGroupMemberCustomField:"setGroupMemberCustomField",getGroupOnlineMemberCount:"getGroupOnlineMemberCount",getMyProfile:"getMyProfile",getUserProfile:"getUserProfile",updateMyProfile:"updateMyProfile",getBlacklist:"getBlacklist",addToBlacklist:"addToBlacklist",removeFromBlacklist:"removeFromBlacklist",getFriendList:"getFriendList",addFriend:"addFriend",deleteFriend:"deleteFriend",checkFriend:"checkFriend",updateFriend:"updateFriend",getFriendProfile:"getFriendProfile",getFriendApplicationList:"getFriendApplicationList",refuseFriendApplication:"refuseFriendApplication",deleteFriendApplication:"deleteFriendApplication",acceptFriendApplication:"acceptFriendApplication",setFriendApplicationRead:"setFriendApplicationRead",getFriendGroupList:"getFriendGroupList",createFriendGroup:"createFriendGroup",renameFriendGroup:"renameFriendGroup",deleteFriendGroup:"deleteFriendGroup",addToFriendGroup:"addToFriendGroup",removeFromFriendGroup:"removeFromFriendGroup",callExperimentalAPI:"callExperimentalAPI"},$t="sign",Wt="message",zt="user",Kt="c2c",Yt="group",Xt="sns",Jt="groupMember",Qt="conversation",Zt="context",en="storage",tn="eventStat",nn="netMonitor",rn="bigDataChannel",an="upload",on="plugin",sn="syncUnreadMessage",un="session",cn="channel",ln="message_loss_detection",dn="cloudControl",hn="workerTimer",fn="pullGroupMessage",pn="qualityStat",gn="commercialConfig",mn=function(){function e(t){n(this,e),this._moduleManager=t,this._className=""}return r(e,[{key:"isLoggedIn",value:function(){return this._moduleManager.getModule(Zt).isLoggedIn()}},{key:"isOversea",value:function(){return this._moduleManager.getModule(Zt).isOversea()}},{key:"getMyUserID",value:function(){return this._moduleManager.getModule(Zt).getUserID()}},{key:"getModule",value:function(e){return this._moduleManager.getModule(e)}},{key:"getPlatform",value:function(){return re}},{key:"getNetworkType",value:function(){return this._moduleManager.getModule(nn).getNetworkType()}},{key:"probeNetwork",value:function(){return this._moduleManager.getModule(nn).probe()}},{key:"getCloudConfig",value:function(e){return this._moduleManager.getModule(dn).getCloudConfig(e)}},{key:"emitOuterEvent",value:function(e,t){this._moduleManager.getOuterEmitterInstance().emit(e,t)}},{key:"emitInnerEvent",value:function(e,t){this._moduleManager.getInnerEmitterInstance().emit(e,t)}},{key:"getInnerEmitterInstance",value:function(){return this._moduleManager.getInnerEmitterInstance()}},{key:"generateTjgID",value:function(e){return this._moduleManager.getModule(Zt).getTinyID()+"-"+e.random}},{key:"filterModifiedMessage",value:function(e){if(!xt(e)){var t=e.filter((function(e){return!0===e.isModified}));t.length>0&&this.emitOuterEvent(C.MESSAGE_MODIFIED,t)}}},{key:"filterUnmodifiedMessage",value:function(e){return xt(e)?[]:e.filter((function(e){return!1===e.isModified}))}},{key:"request",value:function(e){return this._moduleManager.getModule(un).request(e)}},{key:"canIUse",value:function(e){return this._moduleManager.getModule(gn).hasPurchasedFeature(e)}}]),e}(),vn="wslogin",yn="wslogout",_n="wshello",bn="KickOther",Tn="getmsg",Sn="authkey",wn="sendmsg",kn="send_group_msg",Mn="portrait_get_all",Cn="portrait_set",En="black_list_get",In="black_list_add",An="black_list_delete",On="msgwithdraw",xn="msgreaded",Dn="set_c2c_peer_mute_notifications",Ln="get_c2c_peer_mute_notifications",Nn="getroammsg",Pn="get_peer_read_time",Rn="delete_c2c_msg_ramble",jn="page_get",Un="get",Fn="delete",Bn="top",Gn="deletemsg",qn="get_joined_group_list",Vn="get_group_self_member_info",Hn="create_group",$n="destroy_group",Wn="modify_group_base_info",zn="apply_join_group",Kn="apply_join_group_noauth",Yn="quit_group",Xn="get_group_public_info",Jn="change_group_owner",Qn="handle_apply_join_group",Zn="handle_invite_join_group",ei="group_msg_recall",ti="msg_read_report",ni="read_all_unread_msg",ii="group_msg_get",ri="get_pendency",ai="deletemsg",oi="get_msg",si="get_msg_noauth",ui="get_online_member_num",ci="delete_group_ramble_msg_by_seq",li="set_group_attr",di="modify_group_attr",hi="delete_group_attr",fi="clear_group_attr",pi="get_group_attr",gi="get_group_member_info",mi="get_specified_group_member_info",vi="add_group_member",yi="delete_group_member",_i="modify_group_member_info",bi="cos",Ti="pre_sig",Si="video_cover",wi="tim_web_report_v2",ki="alive",Mi="msg_push",Ci="multi_msg_push_ws",Ei="ws_msg_push_ack",Ii="stat_forceoffline",Ai="save_relay_json_msg",Oi="get_relay_json_msg",xi="fetch_config",Di="push_configv2",Li="fetch_imsdk_purchase_bitsv2",Ni="push_imsdk_purchase_bitsv2",Pi="notify2",Ri={NO_SDKAPPID:2e3,NO_ACCOUNT_TYPE:2001,NO_IDENTIFIER:2002,NO_USERSIG:2003,NO_TINYID:2022,NO_A2KEY:2023,USER_NOT_LOGGED_IN:2024,REPEAT_LOGIN:2025,COS_UNDETECTED:2040,COS_GET_SIG_FAIL:2041,MESSAGE_SEND_FAIL:2100,MESSAGE_LIST_CONSTRUCTOR_NEED_OPTIONS:2103,MESSAGE_SEND_NEED_MESSAGE_INSTANCE:2105,MESSAGE_SEND_INVALID_CONVERSATION_TYPE:2106,MESSAGE_FILE_IS_EMPTY:2108,MESSAGE_ONPROGRESS_FUNCTION_ERROR:2109,MESSAGE_REVOKE_FAIL:2110,MESSAGE_DELETE_FAIL:2111,MESSAGE_UNREAD_ALL_FAIL:2112,MESSAGE_CONTROL_INFO_FAIL:2113,MESSAGE_IMAGE_SELECT_FILE_FIRST:2251,MESSAGE_IMAGE_TYPES_LIMIT:2252,MESSAGE_IMAGE_SIZE_LIMIT:2253,MESSAGE_AUDIO_UPLOAD_FAIL:2300,MESSAGE_AUDIO_SIZE_LIMIT:2301,MESSAGE_VIDEO_UPLOAD_FAIL:2350,MESSAGE_VIDEO_SIZE_LIMIT:2351,MESSAGE_VIDEO_TYPES_LIMIT:2352,MESSAGE_FILE_UPLOAD_FAIL:2400,MESSAGE_FILE_SELECT_FILE_FIRST:2401,MESSAGE_FILE_SIZE_LIMIT:2402,MESSAGE_FILE_URL_IS_EMPTY:2403,MESSAGE_MERGER_TYPE_INVALID:2450,MESSAGE_MERGER_KEY_INVALID:2451,MESSAGE_MERGER_DOWNLOAD_FAIL:2452,MESSAGE_FORWARD_TYPE_INVALID:2453,MESSAGE_AT_TYPE_INVALID:2454,CONVERSATION_NOT_FOUND:2500,USER_OR_GROUP_NOT_FOUND:2501,CONVERSATION_UN_RECORDED_TYPE:2502,ILLEGAL_GROUP_TYPE:2600,CANNOT_JOIN_WORK:2601,ILLEGAL_GROUP_ID:2602,CANNOT_CHANGE_OWNER_IN_AVCHATROOM:2620,CANNOT_CHANGE_OWNER_TO_SELF:2621,CANNOT_DISMISS_Work:2622,MEMBER_NOT_IN_GROUP:2623,CANNOT_USE_GRP_ATTR_NOT_AVCHATROOM:2641,CANNOT_USE_GRP_ATTR_AVCHATROOM_UNJOIN:2642,JOIN_GROUP_FAIL:2660,CANNOT_ADD_MEMBER_IN_AVCHATROOM:2661,CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN:2662,CANNOT_KICK_MEMBER_IN_AVCHATROOM:2680,NOT_OWNER:2681,CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM:2682,INVALID_MEMBER_ROLE:2683,CANNOT_SET_SELF_MEMBER_ROLE:2684,CANNOT_MUTE_SELF:2685,NOT_MY_FRIEND:2700,ALREADY_MY_FRIEND:2701,FRIEND_GROUP_EXISTED:2710,FRIEND_GROUP_NOT_EXIST:2711,FRIEND_APPLICATION_NOT_EXIST:2716,UPDATE_PROFILE_INVALID_PARAM:2721,UPDATE_PROFILE_NO_KEY:2722,ADD_BLACKLIST_INVALID_PARAM:2740,DEL_BLACKLIST_INVALID_PARAM:2741,CANNOT_ADD_SELF_TO_BLACKLIST:2742,ADD_FRIEND_INVALID_PARAM:2760,NETWORK_ERROR:2800,NETWORK_TIMEOUT:2801,NETWORK_BASE_OPTIONS_NO_URL:2802,NETWORK_UNDEFINED_SERVER_NAME:2803,NETWORK_PACKAGE_UNDEFINED:2804,NO_NETWORK:2805,CONVERTOR_IRREGULAR_PARAMS:2900,NOTICE_RUNLOOP_UNEXPECTED_CONDITION:2901,NOTICE_RUNLOOP_OFFSET_LOST:2902,UNCAUGHT_ERROR:2903,GET_LONGPOLL_ID_FAILED:2904,INVALID_OPERATION:2905,OVER_FREQUENCY_LIMIT:2996,CANNOT_FIND_PROTOCOL:2997,CANNOT_FIND_MODULE:2998,SDK_IS_NOT_READY:2999,LONG_POLL_KICK_OUT:91101,MESSAGE_A2KEY_EXPIRED:20002,ACCOUNT_A2KEY_EXPIRED:70001,LONG_POLL_API_PARAM_ERROR:90001,HELLO_ANSWER_KICKED_OUT:1002,OPEN_SERVICE_OVERLOAD_ERROR:60022},ji="无 SDKAppID",Ui="无 userID",Fi="无 userSig",Bi="无 tinyID",Gi="无 a2key",qi="用户未登录",Vi="重复登录",Hi="未检测到 COS 上传插件",$i="获取 COS 预签名 URL 失败",Wi="消息发送失败",zi="需要 Message 的实例",Ki='Message.conversationType 只能为 "C2C" 或 "GROUP"',Yi="无法发送空文件",Xi="回调函数运行时遇到错误,请检查接入侧代码",Ji="消息撤回失败",Qi="消息删除失败",Zi="设置所有未读消息为已读处理失败",er="社群不支持消息发送控制选项",tr="请先选择一个图片",nr="只允许上传 jpg png jpeg gif bmp image webp 格式的图片",ir="图片大小超过20M,无法发送",rr="语音上传失败",ar="语音大小大于20M,无法发送",or="视频上传失败",sr="视频大小超过100M,无法发送",ur="只允许上传 mp4 格式的视频",cr="文件上传失败",lr="请先选择一个文件",dr="文件大小超过100M,无法发送 ",hr="缺少必要的参数文件 URL",fr="非合并消息",pr="合并消息的 messageKey 无效",gr="下载合并消息失败",mr="选择的消息类型(如群提示消息)不可以转发",vr="社群不支持 @ 所有人",yr="没有找到相应的会话,请检查传入参数",_r="没有找到相应的用户或群组,请检查传入参数",br="未记录的会话类型",Tr="非法的群类型,请检查传入参数",Sr="不能加入 Work 类型的群组",wr="群组 ID 非法,Public/Work/Meeting/AVChatRoom 类型群组不能以 @TGS#_ 为前缀,社群必须以 @TGS#_ 为前缀",kr="AVChatRoom 类型的群组不能转让群主",Mr="不能把群主转让给自己",Cr="不能解散 Work 类型的群组",Er="用户不在该群组内",Ir="加群失败,请检查传入参数或重试",Ar="AVChatRoom 类型的群不支持邀请群成员",Or="非 AVChatRoom 类型的群组不允许匿名加群,请先登录后再加群",xr="不能在 AVChatRoom 类型的群组踢人",Dr="你不是群主,只有群主才有权限操作",Lr="不能在 Work / AVChatRoom 类型的群中设置群成员身份",Nr="不合法的群成员身份,请检查传入参数",Pr="不能设置自己的群成员身份,请检查传入参数",Rr="不能将自己禁言,请检查传入参数",jr="传入 updateMyProfile 接口的参数无效",Ur="updateMyProfile 无标配资料字段或自定义资料字段",Fr="传入 addToBlacklist 接口的参数无效",Br="传入 removeFromBlacklist 接口的参数无效",Gr="不能拉黑自己",qr="网络错误",Vr="请求超时",Hr="未连接到网络",$r="无效操作,如调用了未定义或者未实现的方法等",Wr="无法找到协议",zr="无法找到模块",Kr="接口需要 SDK 处于 ready 状态后才能调用",Yr="超出 SDK 频率控制",Xr="后台服务正忙,请稍后再试",Jr="networkRTT",Qr="messageE2EDelay",Zr="sendMessageC2C",ea="sendMessageGroup",ta="sendMessageGroupAV",na="sendMessageRichMedia",ia="cosUpload",ra="messageReceivedGroup",aa="messageReceivedGroupAVPush",oa="messageReceivedGroupAVPull",sa=(a(Nt={},Jr,2),a(Nt,Qr,3),a(Nt,Zr,4),a(Nt,ea,5),a(Nt,ta,6),a(Nt,na,7),a(Nt,ra,8),a(Nt,aa,9),a(Nt,oa,10),a(Nt,ia,11),Nt),ua={info:4,warning:5,error:6},ca={wifi:1,"2g":2,"3g":3,"4g":4,"5g":5,unknown:6,none:7,online:8},la={login:4},da=function(){function t(e){n(this,t),this.eventType=la[e]||0,this.timestamp=0,this.networkType=8,this.code=0,this.message="",this.moreMessage="",this.extension=e,this.costTime=0,this.duplicate=!1,this.level=4,this.framework="",this._sentFlag=!1,this._startts=Ce()}return r(t,[{key:"updateTimeStamp",value:function(){this.timestamp=Ce()}},{key:"start",value:function(e){return this._startts=e,this}},{key:"end",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._sentFlag){var n=Ce();0===this.costTime&&(this.costTime=n-this._startts),this.setMoreMessage("startts:".concat(this._startts," endts:").concat(n)),t?(this._sentFlag=!0,this._eventStatModule&&this._eventStatModule.pushIn(this)):setTimeout((function(){e._sentFlag=!0,e._eventStatModule&&e._eventStatModule.pushIn(e)}),0)}}},{key:"setError",value:function(e,t,n){return e instanceof Error?(this._sentFlag||(this.setNetworkType(n),t?(e.code&&this.setCode(e.code),e.message&&this.setMoreMessage(e.message)):(this.setCode(Ri.NO_NETWORK),this.setMoreMessage(Hr)),this.setLevel("error")),this):(De.warn("SSOLogData.setError value not instanceof Error, please check!"),this)}},{key:"setCode",value:function(t){return ze(t)||this._sentFlag||("ECONNABORTED"===t&&(this.code=103),qe(t)?this.code=t:De.warn("SSOLogData.setCode value not a number, please check!",t,e(t))),this}},{key:"setMessage",value:function(e){return ze(e)||this._sentFlag||(qe(e)&&(this.message=e.toString()),Ve(e)&&(this.message=e)),this}},{key:"setCostTime",value:function(e){return this.costTime=e,this}},{key:"setLevel",value:function(e){return ze(e)||this._sentFlag||(this.level=ua[e]),this}},{key:"setMoreMessage",value:function(e){return xt(this.moreMessage)?this.moreMessage="".concat(e):this.moreMessage+=" ".concat(e),this}},{key:"setNetworkType",value:function(e){if(ze(e))De.warn("SSOLogData.setNetworkType value is undefined, please check!");else{var t=ca[e.toLowerCase()];ze(t)||(this.networkType=t)}return this}},{key:"getStartTs",value:function(){return this._startts}},{key:"setFramework",value:function(e){this.framework=e}}],[{key:"bindEventStatModule",value:function(e){t.prototype._eventStatModule=e}}]),t}(),ha="sdkConstruct",fa="sdkReady",pa="login",ga="logout",ma="kickedOut",va="registerPlugin",ya="kickOther",_a="wsConnect",ba="wsOnOpen",Ta="wsOnClose",Sa="wsOnError",wa="networkChange",ka="getCosAuthKey",Ma="getCosPreSigUrl",Ca="getSnapshotInfo",Ea="upload",Ia="sendMessage",Aa="getC2CRoamingMessages",Oa="getGroupRoamingMessages",xa="revokeMessage",Da="deleteMessage",La="setC2CMessageRead",Na="setGroupMessageRead",Pa="emptyMessageBody",Ra="getPeerReadTime",ja="uploadMergerMessage",Ua="downloadMergerMessage",Fa="jsonParseError",Ba="messageE2EDelayException",Ga="getConversationList",qa="getConversationProfile",Va="deleteConversation",Ha="pinConversation",$a="getConversationListInStorage",Wa="syncConversationList",za="setAllMessageRead",Ka="createGroup",Ya="applyJoinGroup",Xa="quitGroup",Ja="searchGroupByID",Qa="changeGroupOwner",Za="handleGroupApplication",eo="handleGroupInvitation",to="setMessageRemindType",no="dismissGroup",io="updateGroupProfile",ro="getGroupList",ao="getGroupProfile",oo="getGroupListInStorage",so="getGroupLastSequence",uo="getGroupMissingMessage",co="pagingGetGroupList",lo="getGroupSimplifiedInfo",ho="joinWithoutAuth",fo="initGroupAttributes",po="setGroupAttributes",go="deleteGroupAttributes",mo="getGroupAttributes",vo="getGroupMemberList",yo="getGroupMemberProfile",_o="addGroupMember",bo="deleteGroupMember",To="setGroupMemberMuteTime",So="setGroupMemberNameCard",wo="setGroupMemberRole",ko="setGroupMemberCustomField",Mo="getGroupOnlineMemberCount",Co="longPollingAVError",Eo="messageLoss",Io="messageStacked",Ao="getUserProfile",Oo="updateMyProfile",xo="getBlacklist",Do="addToBlacklist",Lo="removeFromBlacklist",No="callbackFunctionError",Po="fetchCloudControlConfig",Ro="pushedCloudControlConfig",jo="fetchCommercialConfig",Uo="pushedCommercialConfig",Fo="error",Bo="lastMessageNotExist",Go=function(){function e(t){n(this,e),this.type=E.MSG_TEXT,this.content={text:t.text||""}}return r(e,[{key:"setText",value:function(e){this.content.text=e}},{key:"sendable",value:function(){return 0!==this.content.text.length}}]),e}(),qo=function(){function e(t){n(this,e),this._imageMemoryURL="",te?this.createImageDataASURLInWXMiniApp(t.file):this.createImageDataASURLInWeb(t.file),this._initImageInfoModel(),this.type=E.MSG_IMAGE,this._percent=0,this.content={imageFormat:t.imageFormat||Le.UNKNOWN,uuid:t.uuid,imageInfoArray:[]},this.initImageInfoArray(t.imageInfoArray),this._defaultImage="http://imgcache.qq.com/open/qcloud/video/act/webim-images/default.jpg",this._autoFixUrl()}return r(e,[{key:"_initImageInfoModel",value:function(){var e=this;this._ImageInfoModel=function(t){this.instanceID=at(9999999),this.sizeType=t.type||0,this.type=0,this.size=t.size||0,this.width=t.width||0,this.height=t.height||0,this.imageUrl=t.url||"",this.url=t.url||e._imageMemoryURL||e._defaultImage},this._ImageInfoModel.prototype={setSizeType:function(e){this.sizeType=e},setType:function(e){this.type=e},setImageUrl:function(e){e&&(this.imageUrl=e)},getImageUrl:function(){return this.imageUrl}}}},{key:"initImageInfoArray",value:function(e){for(var t=0,n=null,i=null;t<=2;)i=ze(e)||ze(e[t])?{type:0,size:0,width:0,height:0,url:""}:e[t],(n=new this._ImageInfoModel(i)).setSizeType(t+1),n.setType(t),this.addImageInfo(n),t++;this.updateAccessSideImageInfoArray()}},{key:"updateImageInfoArray",value:function(e){for(var t,n=this.content.imageInfoArray.length,i=0;i<n;i++)t=this.content.imageInfoArray[i],e[i].size&&(t.size=e[i].size),e[i].url&&t.setImageUrl(e[i].url),e[i].width&&(t.width=e[i].width),e[i].height&&(t.height=e[i].height)}},{key:"_autoFixUrl",value:function(){for(var e=this.content.imageInfoArray.length,t="",n="",i=["http","https"],r=null,a=0;a<e;a++)this.content.imageInfoArray[a].url&&""!==(r=this.content.imageInfoArray[a]).imageUrl&&(n=r.imageUrl.slice(0,r.imageUrl.indexOf("://")+1),t=r.imageUrl.slice(r.imageUrl.indexOf("://")+1),i.indexOf(n)<0&&(n="https:"),this.content.imageInfoArray[a].setImageUrl([n,t].join("")))}},{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateImageFormat",value:function(e){this.content.imageFormat=Le[e.toUpperCase()]||Le.UNKNOWN}},{key:"createImageDataASURLInWeb",value:function(e){void 0!==e&&e.files.length>0&&(this._imageMemoryURL=window.URL.createObjectURL(e.files[0]))}},{key:"createImageDataASURLInWXMiniApp",value:function(e){e&&e.url&&(this._imageMemoryURL=e.url)}},{key:"replaceImageInfo",value:function(e,t){this.content.imageInfoArray[t]instanceof this._ImageInfoModel||(this.content.imageInfoArray[t]=e)}},{key:"addImageInfo",value:function(e){this.content.imageInfoArray.length>=3||this.content.imageInfoArray.push(e)}},{key:"updateAccessSideImageInfoArray",value:function(){var e=this.content.imageInfoArray,t=e[0],n=t.width,i=void 0===n?0:n,r=t.height,a=void 0===r?0:r;0!==i&&0!==a&&(Mt(e),Object.assign(e[2],kt({originWidth:i,originHeight:a,min:720})))}},{key:"sendable",value:function(){return 0!==this.content.imageInfoArray.length&&""!==this.content.imageInfoArray[0].imageUrl&&0!==this.content.imageInfoArray[0].size}}]),e}(),Vo=function(){function e(t){n(this,e),this.type=E.MSG_FACE,this.content=t||null}return r(e,[{key:"sendable",value:function(){return null!==this.content}}]),e}(),Ho=function(){function e(t){n(this,e),this.type=E.MSG_AUDIO,this._percent=0,this.content={downloadFlag:2,second:t.second,size:t.size,url:t.url,remoteAudioUrl:t.url||"",uuid:t.uuid}}return r(e,[{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateAudioUrl",value:function(e){this.content.remoteAudioUrl=e}},{key:"sendable",value:function(){return""!==this.content.remoteAudioUrl}}]),e}(),$o={from:!0,groupID:!0,groupName:!0,to:!0},Wo=function(){function e(t){n(this,e),this.type=E.MSG_GRP_TIP,this.content={},this._initContent(t)}return r(e,[{key:"_initContent",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"remarkInfo":break;case"groupProfile":t.content.groupProfile={},t._initGroupProfile(e[n]);break;case"operatorInfo":break;case"memberInfoList":case"msgMemberInfo":t._updateMemberList(e[n]);break;case"onlineMemberInfo":break;case"memberNum":t.content[n]=e[n],t.content.memberCount=e[n];break;default:t.content[n]=e[n]}})),this.content.userIDList||(this.content.userIDList=[this.content.operatorID])}},{key:"_initGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var i=t[n];$o[i]&&(this.content.groupProfile[i]=e[i])}}},{key:"_updateMemberList",value:function(e){xt(this.content.memberList)?this.content.memberList=e:this.content.memberList.forEach((function(t){e.forEach((function(e){t.userID===e.userID&&Object.assign(t,e)}))}))}}]),e}(),zo={from:!0,groupID:!0,groupName:!0,to:!0},Ko=function(){function e(t){n(this,e),this.type=E.MSG_GRP_SYS_NOTICE,this.content={},this._initContent(t)}return r(e,[{key:"_initContent",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"memberInfoList":break;case"remarkInfo":t.content.handleMessage=e[n];break;case"groupProfile":t.content.groupProfile={},t._initGroupProfile(e[n]);break;default:t.content[n]=e[n]}}))}},{key:"_initGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var i=t[n];zo[i]&&("groupName"===i?this.content.groupProfile.name=e[i]:this.content.groupProfile[i]=e[i])}}}]),e}(),Yo=function(){function e(t){n(this,e),this.type=E.MSG_FILE,this._percent=0;var i=this._getFileInfo(t);this.content={downloadFlag:2,fileUrl:t.url||"",uuid:t.uuid,fileName:i.name||"",fileSize:i.size||0}}return r(e,[{key:"_getFileInfo",value:function(e){if(!ze(e.fileName)&&!ze(e.fileSize))return{size:e.fileSize,name:e.fileName};var t=e.file.files[0];if(ee){if(t.path&&-1!==t.path.indexOf(".")){var n=t.path.slice(t.path.lastIndexOf(".")+1).toLowerCase();t.type=n,t.name||(t.name="".concat(at(999999),".").concat(n))}t.name||(t.type="",t.name=t.path.slice(t.path.lastIndexOf("/")+1).toLowerCase()),t.suffix&&(t.type=t.suffix),t.url||(t.url=t.path)}return{size:t.size,name:t.name}}},{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateFileUrl",value:function(e){this.content.fileUrl=e}},{key:"sendable",value:function(){return""!==this.content.fileUrl&&""!==this.content.fileName&&0!==this.content.fileSize}}]),e}(),Xo=function(){function e(t){n(this,e),this.type=E.MSG_CUSTOM,this.content={data:t.data||"",description:t.description||"",extension:t.extension||""}}return r(e,[{key:"setData",value:function(e){return this.content.data=e,this}},{key:"setDescription",value:function(e){return this.content.description=e,this}},{key:"setExtension",value:function(e){return this.content.extension=e,this}},{key:"sendable",value:function(){return 0!==this.content.data.length||0!==this.content.description.length||0!==this.content.extension.length}}]),e}(),Jo=function(){function e(t){n(this,e),this.type=E.MSG_VIDEO,this._percent=0,this.content={remoteVideoUrl:t.remoteVideoUrl||t.videoUrl||"",videoFormat:t.videoFormat,videoSecond:parseInt(t.videoSecond,10),videoSize:t.videoSize,videoUrl:t.videoUrl,videoDownloadFlag:2,videoUUID:t.videoUUID,thumbUUID:t.thumbUUID,thumbFormat:t.thumbFormat,thumbWidth:t.thumbWidth,snapshotWidth:t.thumbWidth,thumbHeight:t.thumbHeight,snapshotHeight:t.thumbHeight,thumbSize:t.thumbSize,snapshotSize:t.thumbSize,thumbDownloadFlag:2,thumbUrl:t.thumbUrl,snapshotUrl:t.thumbUrl}}return r(e,[{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateVideoUrl",value:function(e){e&&(this.content.remoteVideoUrl=e)}},{key:"updateSnapshotInfo",value:function(e){var t=e.snapshotUrl,n=e.snapshotWidth,i=e.snapshotHeight;xt(t)||(this.content.thumbUrl=this.content.snapshotUrl=t),xt(n)||(this.content.thumbWidth=this.content.snapshotWidth=Number(n)),xt(i)||(this.content.thumbHeight=this.content.snapshotHeight=Number(i))}},{key:"sendable",value:function(){return""!==this.content.remoteVideoUrl}}]),e}(),Qo=function(){function e(t){n(this,e),this.type=E.MSG_LOCATION;var i=t.description,r=t.longitude,a=t.latitude;this.content={description:i,longitude:r,latitude:a}}return r(e,[{key:"sendable",value:function(){return!0}}]),e}(),Zo=function(){function e(t){if(n(this,e),this.from=t.from,this.messageSender=t.from,this.time=t.time,this.messageSequence=t.sequence,this.clientSequence=t.clientSequence||t.sequence,this.messageRandom=t.random,this.cloudCustomData=t.cloudCustomData||"",t.ID)this.nick=t.nick||"",this.avatar=t.avatar||"",this.messageBody=[{type:t.type,payload:t.payload}],t.conversationType.startsWith(E.CONV_C2C)?this.receiverUserID=t.to:t.conversationType.startsWith(E.CONV_GROUP)&&(this.receiverGroupID=t.to),this.messageReceiver=t.to;else{this.nick=t.nick||"",this.avatar=t.avatar||"",this.messageBody=[];var i=t.elements[0].type,r=t.elements[0].content;this._patchRichMediaPayload(i,r),i===E.MSG_MERGER?this.messageBody.push({type:i,payload:new es(r).content}):this.messageBody.push({type:i,payload:r}),t.groupID&&(this.receiverGroupID=t.groupID,this.messageReceiver=t.groupID),t.to&&(this.receiverUserID=t.to,this.messageReceiver=t.to)}}return r(e,[{key:"_patchRichMediaPayload",value:function(e,t){e===E.MSG_IMAGE?t.imageInfoArray.forEach((function(e){!e.imageUrl&&e.url&&(e.imageUrl=e.url,e.sizeType=e.type,1===e.type?e.type=0:3===e.type&&(e.type=1))})):e===E.MSG_VIDEO?!t.remoteVideoUrl&&t.videoUrl&&(t.remoteVideoUrl=t.videoUrl):e===E.MSG_AUDIO?!t.remoteAudioUrl&&t.url&&(t.remoteAudioUrl=t.url):e===E.MSG_FILE&&!t.fileUrl&&t.url&&(t.fileUrl=t.url,t.url=void 0)}}]),e}(),es=function(){function e(t){if(n(this,e),this.type=E.MSG_MERGER,this.content={downloadKey:"",pbDownloadKey:"",messageList:[],title:"",abstractList:[],compatibleText:"",version:0,layersOverLimit:!1},t.downloadKey){var i=t.downloadKey,r=t.pbDownloadKey,a=t.title,o=t.abstractList,s=t.compatibleText,u=t.version;this.content.downloadKey=i,this.content.pbDownloadKey=r,this.content.title=a,this.content.abstractList=o,this.content.compatibleText=s,this.content.version=u||0}else if(xt(t.messageList))1===t.layersOverLimit&&(this.content.layersOverLimit=!0);else{var c=t.messageList,l=t.title,d=t.abstractList,h=t.compatibleText,f=t.version,p=[];c.forEach((function(e){if(!xt(e)){var t=new Zo(e);p.push(t)}})),this.content.messageList=p,this.content.title=l,this.content.abstractList=d,this.content.compatibleText=h,this.content.version=f||0}De.debug("MergerElement.content:",this.content)}return r(e,[{key:"sendable",value:function(){return!xt(this.content.messageList)||!xt(this.content.downloadKey)}}]),e}(),ts={1:E.MSG_PRIORITY_HIGH,2:E.MSG_PRIORITY_NORMAL,3:E.MSG_PRIORITY_LOW,4:E.MSG_PRIORITY_LOWEST},ns=function(){function e(t){n(this,e),this.ID="",this.conversationID=t.conversationID||null,this.conversationType=t.conversationType||E.CONV_C2C,this.conversationSubType=t.conversationSubType,this.time=t.time||Math.ceil(Date.now()/1e3),this.sequence=t.sequence||0,this.clientSequence=t.clientSequence||t.sequence||0,this.random=t.random||0===t.random?t.random:at(),this.priority=this._computePriority(t.priority),this.nick=t.nick||"",this.avatar=t.avatar||"",this.isPeerRead=!1,this.nameCard="",this._elements=[],this.isPlaceMessage=t.isPlaceMessage||0,this.isRevoked=2===t.isPlaceMessage||8===t.msgFlagBits,this.from=t.from||null,this.to=t.to||null,this.flow="",this.isSystemMessage=t.isSystemMessage||!1,this.protocol=t.protocol||"JSON",this.isResend=!1,this.isRead=!1,this.status=t.status||Pt.SUCCESS,this._onlineOnlyFlag=!1,this._groupAtInfoList=[],this._relayFlag=!1,this.atUserList=[],this.cloudCustomData=t.cloudCustomData||"",this.isDeleted=!1,this.isModified=!1,this._isExcludedFromUnreadCount=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromUnreadCount),this._isExcludedFromLastMessage=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromLastMessage),this.clientTime=t.clientTime||0,this.reInitialize(t.currentUser),this.extractGroupInfo(t.groupProfile||null),this.handleGroupAtInfo(t)}return r(e,[{key:"getElements",value:function(){return this._elements}},{key:"extractGroupInfo",value:function(e){if(null!==e){Ve(e.nick)&&(this.nick=e.nick),Ve(e.avatar)&&(this.avatar=e.avatar);var t=e.messageFromAccountExtraInformation;$e(t)&&Ve(t.nameCard)&&(this.nameCard=t.nameCard)}}},{key:"handleGroupAtInfo",value:function(e){var t=this;e.payload&&e.payload.atUserList&&e.payload.atUserList.forEach((function(e){e!==E.MSG_AT_ALL?(t._groupAtInfoList.push({groupAtAllFlag:0,groupAtUserID:e}),t.atUserList.push(e)):(t._groupAtInfoList.push({groupAtAllFlag:1}),t.atUserList.push(E.MSG_AT_ALL))})),We(e.groupAtInfo)&&e.groupAtInfo.forEach((function(e){0===e.groupAtAllFlag?t.atUserList.push(e.groupAtUserID):1===e.groupAtAllFlag&&t.atUserList.push(E.MSG_AT_ALL)}))}},{key:"getGroupAtInfoList",value:function(){return this._groupAtInfoList}},{key:"_initProxy",value:function(){this._elements[0]&&(this.payload=this._elements[0].content,this.type=this._elements[0].type)}},{key:"reInitialize",value:function(e){e&&(this.status=this.from?Pt.SUCCESS:Pt.UNSEND,!this.from&&(this.from=e)),this._initFlow(e),this._initSequence(e),this._concatConversationID(e),this.generateMessageID(e)}},{key:"isSendable",value:function(){return 0!==this._elements.length&&("function"!=typeof this._elements[0].sendable?(De.warn("".concat(this._elements[0].type,' need "boolean : sendable()" method')),!1):this._elements[0].sendable())}},{key:"_initTo",value:function(e){this.conversationType===E.CONV_GROUP&&(this.to=e.groupID)}},{key:"_initSequence",value:function(e){0===this.clientSequence&&e&&(this.clientSequence=function(e){if(!e)return De.error("autoIncrementIndex(string: key) need key parameter"),!1;if(void 0===ct[e]){var t=new Date,n="3".concat(t.getHours()).slice(-2),i="0".concat(t.getMinutes()).slice(-2),r="0".concat(t.getSeconds()).slice(-2);ct[e]=parseInt([n,i,r,"0001"].join("")),n=null,i=null,r=null,De.log("autoIncrementIndex start index:".concat(ct[e]))}return ct[e]++}(e)),0===this.sequence&&this.conversationType===E.CONV_C2C&&(this.sequence=this.clientSequence)}},{key:"generateMessageID",value:function(e){var t=e===this.from?1:0,n=this.sequence>0?this.sequence:this.clientSequence;this.ID="".concat(this.conversationID,"-").concat(n,"-").concat(this.random,"-").concat(t)}},{key:"_initFlow",value:function(e){""!==e&&(e===this.from?(this.flow="out",this.isRead=!0):this.flow="in")}},{key:"_concatConversationID",value:function(e){var t=this.to,n="",i=this.conversationType;i!==E.CONV_SYSTEM?(n=i===E.CONV_C2C?e===this.from?t:this.from:this.to,this.conversationID="".concat(i).concat(n)):this.conversationID=E.CONV_SYSTEM}},{key:"isElement",value:function(e){return e instanceof Go||e instanceof qo||e instanceof Vo||e instanceof Ho||e instanceof Yo||e instanceof Jo||e instanceof Wo||e instanceof Ko||e instanceof Xo||e instanceof Qo||e instanceof es}},{key:"setElement",value:function(e){var t=this;if(this.isElement(e))return this._elements=[e],void this._initProxy();var n=function(e){if(e.type&&e.content)switch(e.type){case E.MSG_TEXT:t.setTextElement(e.content);break;case E.MSG_IMAGE:t.setImageElement(e.content);break;case E.MSG_AUDIO:t.setAudioElement(e.content);break;case E.MSG_FILE:t.setFileElement(e.content);break;case E.MSG_VIDEO:t.setVideoElement(e.content);break;case E.MSG_CUSTOM:t.setCustomElement(e.content);break;case E.MSG_LOCATION:t.setLocationElement(e.content);break;case E.MSG_GRP_TIP:t.setGroupTipElement(e.content);break;case E.MSG_GRP_SYS_NOTICE:t.setGroupSystemNoticeElement(e.content);break;case E.MSG_FACE:t.setFaceElement(e.content);break;case E.MSG_MERGER:t.setMergerElement(e.content);break;default:De.warn(e.type,e.content,"no operation......")}};if(We(e))for(var i=0;i<e.length;i++)n(e[i]);else n(e);this._initProxy()}},{key:"clearElement",value:function(){this._elements.length=0}},{key:"setTextElement",value:function(e){var t="string"==typeof e?e:e.text,n=new Go({text:t});this._elements.push(n)}},{key:"setImageElement",value:function(e){var t=new qo(e);this._elements.push(t)}},{key:"setAudioElement",value:function(e){var t=new Ho(e);this._elements.push(t)}},{key:"setFileElement",value:function(e){var t=new Yo(e);this._elements.push(t)}},{key:"setVideoElement",value:function(e){var t=new Jo(e);this._elements.push(t)}},{key:"setLocationElement",value:function(e){var t=new Qo(e);this._elements.push(t)}},{key:"setCustomElement",value:function(e){var t=new Xo(e);this._elements.push(t)}},{key:"setGroupTipElement",value:function(e){var t={},n=e.operationType;xt(e.memberInfoList)?e.operatorInfo&&(t=e.operatorInfo):n!==E.GRP_TIP_MBR_JOIN&&n!==E.GRP_TIP_MBR_KICKED_OUT&&n!==E.GRP_TIP_MBR_SET_ADMIN&&n!==E.GRP_TIP_MBR_CANCELED_ADMIN||(t=e.memberInfoList[0]);var i=t,r=i.nick,a=i.avatar;Ve(r)&&(this.nick=r),Ve(a)&&(this.avatar=a);var o=new Wo(e);this._elements.push(o)}},{key:"setGroupSystemNoticeElement",value:function(e){var t=new Ko(e);this._elements.push(t)}},{key:"setFaceElement",value:function(e){var t=new Vo(e);this._elements.push(t)}},{key:"setMergerElement",value:function(e){var t=new es(e);this._elements.push(t)}},{key:"setIsRead",value:function(e){this.isRead=e}},{key:"setRelayFlag",value:function(e){this._relayFlag=e}},{key:"getRelayFlag",value:function(){return this._relayFlag}},{key:"_computePriority",value:function(e){if(ze(e))return E.MSG_PRIORITY_NORMAL;if(Ve(e)&&-1!==Object.values(ts).indexOf(e))return e;if(qe(e)){var t=""+e;if(-1!==Object.keys(ts).indexOf(t))return ts[t]}return E.MSG_PRIORITY_NORMAL}},{key:"setNickAndAvatar",value:function(e){var t=e.nick,n=e.avatar;Ve(t)&&(this.nick=t),Ve(n)&&(this.avatar=n)}},{key:"setNameCard",value:function(e){Ve(e)&&(this.nameCard=e)}},{key:"elements",get:function(){return De.warn("!!!Message 实例的 elements 属性即将废弃,请尽快修改。使用 type 和 payload 属性处理单条消息,兼容组合消息使用 _elements 属性!!!"),this._elements}}]),e}(),is=function(e){return{code:0,data:e||{}}},rs="https://cloud.tencent.com/document/product/",as="您可以在即时通信 IM 控制台的【开发辅助工具(https://console.cloud.tencent.com/im-detail/tool-usersig)】页面校验 UserSig。",os="UserSig 非法,请使用官网提供的 API 重新生成 UserSig(".concat(rs,"269/32688)。"),ss="#.E6.B6.88.E6.81.AF.E5.85.83.E7.B4.A0-timmsgelement",us={70001:"UserSig 已过期,请重新生成。建议 UserSig 有效期设置不小于24小时。",70002:"UserSig 长度为0,请检查传入的 UserSig 是否正确。",70003:os,70005:os,70009:"UserSig 验证失败,可能因为生成 UserSig 时混用了其他 SDKAppID 的私钥或密钥导致,请使用对应 SDKAppID 下的私钥或密钥重新生成 UserSig(".concat(rs,"269/32688)。"),70013:"请求中的 UserID 与生成 UserSig 时使用的 UserID 不匹配。".concat(as),70014:"请求中的 SDKAppID 与生成 UserSig 时使用的 SDKAppID 不匹配。".concat(as),70016:"密钥不存在,UserSig 验证失败,请在即时通信 IM 控制台获取密钥(".concat(rs,"269/32578#.E8.8E.B7.E5.8F.96.E5.AF.86.E9.92.A5)。"),70020:"SDKAppID 未找到,请在即时通信 IM 控制台确认应用信息。",70050:"UserSig 验证次数过于频繁。请检查 UserSig 是否正确,并于1分钟后重新验证。".concat(as),70051:"帐号被拉入黑名单。",70052:"UserSig 已经失效,请重新生成,再次尝试。",70107:"因安全原因被限制登录,请不要频繁登录。",70169:"请求的用户帐号不存在。",70114:"".concat("服务端内部超时,请稍后重试。"),70202:"".concat("服务端内部超时,请稍后重试。"),70206:"请求中批量数量不合法。",70402:"参数非法,请检查必填字段是否填充,或者字段的填充是否满足协议要求。",70403:"请求失败,需要 App 管理员权限。",70398:"帐号数超限。如需创建多于100个帐号,请将应用升级为专业版,具体操作指引请参见购买指引(".concat(rs,"269/32458)。"),70500:"".concat("服务端内部错误,请重试。"),71e3:"删除帐号失败。仅支持删除体验版帐号,您当前应用为专业版,暂不支持帐号删除。",20001:"请求包非法。",20002:"UserSig 或 A2 失效。",20003:"消息发送方或接收方 UserID 无效或不存在,请检查 UserID 是否已导入即时通信 IM。",20004:"网络异常,请重试。",20005:"".concat("服务端内部错误,请重试。"),20006:"触发发送".concat("单聊消息","之前回调,App 后台返回禁止下发该消息。"),20007:"发送".concat("单聊消息",",被对方拉黑,禁止发送。消息发送状态默认展示为失败,您可以登录控制台修改该场景下的消息发送状态展示结果,具体操作请参见消息保留设置(").concat(rs,"269/38656)。"),20009:"消息发送双方互相不是好友,禁止发送(配置".concat("单聊消息","校验好友关系才会出现)。"),20010:"发送".concat("单聊消息",",自己不是对方的好友(单向关系),禁止发送。"),20011:"发送".concat("单聊消息",",对方不是自己的好友(单向关系),禁止发送。"),20012:"发送方被禁言,该条消息被禁止发送。",20016:"消息撤回超过了时间限制(默认2分钟)。",20018:"删除漫游内部错误。",90001:"JSON 格式解析失败,请检查请求包是否符合 JSON 规范。",90002:"".concat("JSON 格式请求包体","中 MsgBody 不符合消息格式描述,或者 MsgBody 不是 Array 类型,请参考 TIMMsgElement 对象的定义(").concat(rs,"269/2720").concat(ss,")。"),90003:"".concat("JSON 格式请求包体","中缺少 To_Account 字段或者 To_Account 帐号不存在。"),90005:"".concat("JSON 格式请求包体","中缺少 MsgRandom 字段或者 MsgRandom 字段不是 Integer 类型。"),90006:"".concat("JSON 格式请求包体","中缺少 MsgTimeStamp 字段或者 MsgTimeStamp 字段不是 Integer 类型。"),90007:"".concat("JSON 格式请求包体","中 MsgBody 类型不是 Array 类型,请将其修改为 Array 类型。"),90008:"".concat("JSON 格式请求包体","中缺少 From_Account 字段或者 From_Account 帐号不存在。"),90009:"请求需要 App 管理员权限。",90010:"".concat("JSON 格式请求包体","不符合消息格式描述,请参考 TIMMsgElement 对象的定义(").concat(rs,"269/2720").concat(ss,")。"),90011:"批量发消息目标帐号超过500,请减少 To_Account 中目标帐号数量。",90012:"To_Account 没有注册或不存在,请确认 To_Account 是否导入即时通信 IM 或者是否拼写错误。",90026:"消息离线存储时间错误(最多不能超过7天)。",90031:"".concat("JSON 格式请求包体","中 SyncOtherMachine 字段不是 Integer 类型。"),90044:"".concat("JSON 格式请求包体","中 MsgLifeTime 字段不是 Integer 类型。"),90048:"请求的用户帐号不存在。",90054:"撤回请求中的 MsgKey 不合法。",90994:"".concat("服务端内部错误,请重试。"),90995:"".concat("服务端内部错误,请重试。"),91e3:"".concat("服务端内部错误,请重试。"),90992:"".concat("服务端内部错误,请重试。","如果所有请求都返回该错误码,且 App 配置了第三方回调,请检查 App 服务端是否正常向即时通信 IM 后台服务端返回回调结果。"),93e3:"JSON 数据包超长,消息包体请不要超过8k。",91101:"Web 端长轮询被踢(Web 端同时在线实例个数超出限制)。",10002:"".concat("服务端内部错误,请重试。"),10003:"请求中的接口名称错误,请核对接口名称并重试。",10004:"参数非法,请根据错误描述检查请求是否正确。",10005:"请求包体中携带的帐号数量过多。",10006:"操作频率限制,请尝试降低调用的频率。",10007:"操作权限不足,例如 Work ".concat("群组","中普通成员尝试执行踢人操作,但只有 App 管理员才有权限。"),10008:"请求非法,可能是请求中携带的签名信息验证不正确,请再次尝试。",10009:"该群不允许群主主动退出。",10010:"".concat("群组","不存在,或者曾经存在过,但是目前已经被解散。"),10011:"解析 JSON 包体失败,请检查包体的格式是否符合 JSON 格式。",10012:"发起操作的 UserID 非法,请检查发起操作的用户 UserID 是否填写正确。",10013:"被邀请加入的用户已经是群成员。",10014:"群已满员,无法将请求中的用户加入".concat("群组",",如果是批量加人,可以尝试减少加入用户的数量。"),10015:"找不到指定 ID 的".concat("群组","。"),10016:"App 后台通过第三方回调拒绝本次操作。",10017:"因被禁言而不能发送消息,请检查发送者是否被设置禁言。",10018:"应答包长度超过最大包长(1MB),请求的内容过多,请尝试减少单次请求的数据量。",10019:"请求的用户帐号不存在。",10021:"".concat("群组"," ID 已被使用,请选择其他的").concat("群组"," ID。"),10023:"发消息的频率超限,请延长两次发消息时间的间隔。",10024:"此邀请或者申请请求已经被处理。",10025:"".concat("群组"," ID 已被使用,并且操作者为群主,可以直接使用。"),10026:"该 SDKAppID 请求的命令字已被禁用。",10030:"请求撤回的消息不存在。",10031:"消息撤回超过了时间限制(默认2分钟)。",10032:"请求撤回的消息不支持撤回操作。",10033:"".concat("群组","类型不支持消息撤回操作。"),10034:"该消息类型不支持删除操作。",10035:"直播群和在线成员广播大群不支持删除消息。",10036:"直播群创建数量超过了限制,请参考价格说明(".concat(rs,"269/11673)购买预付费套餐“IM直播群”。"),10037:"单个用户可创建和加入的".concat("群组","数量超过了限制,请参考价格说明(").concat(rs,"269/11673)购买或升级预付费套餐“单人可创建与加入").concat("群组","数”。"),10038:"群成员数量超过限制,请参考价格说明(".concat(rs,"269/11673)购买或升级预付费套餐“扩展群人数上限”。"),10041:"该应用(SDKAppID)已配置不支持群消息撤回。",10050:"群属性 key 不存在",10056:"请在写入群属性前先使用 getGroupAttributes 接口更新本地群属性,避免冲突。",30001:"请求参数错误,请根据错误描述检查请求参数",30002:"SDKAppID 不匹配",30003:"请求的用户帐号不存在",30004:"请求需要 App 管理员权限",30005:"关系链字段中包含敏感词",30006:"".concat("服务端内部错误,请重试。"),30007:"".concat("网络超时,请稍后重试. "),30008:"并发写导致写冲突,建议使用批量方式",30009:"后台禁止该用户发起加好友请求",30010:"自己的好友数已达系统上限",30011:"分组已达系统上限",30012:"未决数已达系统上限",30014:"对方的好友数已达系统上限",30515:"请求添加好友时,对方在自己的黑名单中,不允许加好友",30516:"请求添加好友时,对方的加好友验证方式是不允许任何人添加自己为好友",30525:"请求添加好友时,自己在对方的黑名单中,不允许加好友",30539:"等待对方同意",30540:"添加好友请求被安全策略打击,请勿频繁发起添加好友请求",31704:"与请求删除的帐号之间不存在好友关系",31707:"删除好友请求被安全策略打击,请勿频繁发起删除好友请求"},cs=function(e){u(i,e);var t=v(i);function i(e){var r;return n(this,i),(r=t.call(this)).code=e.code,r.message=us[e.code]||e.message,r.data=e.data||{},r}return i}(f(Error)),ls=null,ds=function(e){ls=e},hs=function(e){return Promise.resolve(is(e))},fs=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e instanceof cs)return t&&null!==ls&&ls.emit(C.ERROR,e),Promise.reject(e);if(e instanceof Error){var n=new cs({code:Ri.UNCAUGHT_ERROR,message:e.message});return t&&null!==ls&&ls.emit(C.ERROR,n),Promise.reject(n)}if(ze(e)||ze(e.code)||ze(e.message))De.error("IMPromise.reject 必须指定code(错误码)和message(错误信息)!!!");else{if(qe(e.code)&&Ve(e.message)){var i=new cs(e);return t&&null!==ls&&ls.emit(C.ERROR,i),Promise.reject(i)}De.error("IMPromise.reject code(错误码)必须为数字,message(错误信息)必须为字符串!!!")}},ps=function(e){u(i,e);var t=v(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._className="C2CModule",r}return r(i,[{key:"onNewC2CMessage",value:function(e){var t=e.dataList,n=e.isInstantMessage,i=e.C2CRemainingUnreadList,r=e.C2CPairUnreadList;De.debug("".concat(this._className,".onNewC2CMessage count:").concat(t.length," isInstantMessage:").concat(n));var a=this._newC2CMessageStoredAndSummary({dataList:t,C2CRemainingUnreadList:i,C2CPairUnreadList:r,isInstantMessage:n}),o=a.conversationOptionsList,s=a.messageList,u=a.isUnreadC2CMessage;this.filterModifiedMessage(s),o.length>0&&this.getModule(Qt).onNewMessage({conversationOptionsList:o,isInstantMessage:n,isUnreadC2CMessage:u});var c=this.filterUnmodifiedMessage(s);n&&c.length>0&&this.emitOuterEvent(C.MESSAGE_RECEIVED,c),s.length=0}},{key:"_newC2CMessageStoredAndSummary",value:function(e){for(var t=e.dataList,n=e.C2CRemainingUnreadList,i=e.C2CPairUnreadList,r=e.isInstantMessage,a=null,o=[],s=[],u={},c=this.getModule(rn),l=this.getModule(pn),d=!1,h=0,f=t.length;h<f;h++){var p=t[h];p.currentUser=this.getMyUserID(),p.conversationType=E.CONV_C2C,p.isSystemMessage=!!p.isSystemMessage,(ze(p.nick)||ze(p.avatar))&&(d=!0,De.debug("".concat(this._className,"._newC2CMessageStoredAndSummary nick or avatar missing!"))),a=new ns(p),p.elements=c.parseElements(p.elements,p.from),a.setElement(p.elements),a.setNickAndAvatar({nick:p.nick,avatar:p.avatar});var g=a.conversationID;if(r){var m=!1,v=this.getModule(Qt);if(a.from!==this.getMyUserID()){var y=v.getLatestMessageSentByPeer(g);if(y){var _=y.nick,b=y.avatar;d?a.setNickAndAvatar({nick:_,avatar:b}):_===a.nick&&b===a.avatar||(m=!0)}}else{var T=v.getLatestMessageSentByMe(g);if(T){var S=T.nick,w=T.avatar;S===a.nick&&w===a.avatar||v.modifyMessageSentByMe({conversationID:g,latestNick:a.nick,latestAvatar:a.avatar})}}var k=1===t[h].isModified;if(v.isMessageSentByCurrentInstance(a)?a.isModified=k:k=!1,0===p.msgLifeTime)a._onlineOnlyFlag=!0,s.push(a);else{if(!v.pushIntoMessageList(s,a,k))continue;m&&(v.modifyMessageSentByPeer({conversationID:g,latestNick:a.nick,latestAvatar:a.avatar}),v.updateUserProfileSpecifiedKey({conversationID:g,nick:a.nick,avatar:a.avatar}))}r&&a.clientTime>0&&l.addMessageDelay(a.clientTime)}if(0!==p.msgLifeTime){if(!1===a._onlineOnlyFlag)if(ze(u[g])){var M=0;"in"===a.flow&&(a._isExcludedFromUnreadCount||(M=1)),u[g]=o.push({conversationID:g,unreadCount:M,type:a.conversationType,subType:a.conversationSubType,lastMessage:a._isExcludedFromLastMessage?"":a})-1}else{var C=u[g];o[C].type=a.conversationType,o[C].subType=a.conversationSubType,o[C].lastMessage=a._isExcludedFromLastMessage?"":a,"in"===a.flow&&(a._isExcludedFromUnreadCount||o[C].unreadCount++)}}else a._onlineOnlyFlag=!0}var I=!1;if(We(i))for(var A=function(e,t){if(i[e].unreadCount>0){I=!0;var n=o.find((function(t){return t.conversationID==="C2C".concat(i[e].from)}));n?n.unreadCount=i[e].unreadCount:o.push({conversationID:"C2C".concat(i[e].from),unreadCount:i[e].unreadCount,type:E.CONV_C2C})}},O=0,x=i.length;O<x;O++)A(O);if(We(n))for(var D=function(e,t){o.find((function(t){return t.conversationID==="C2C".concat(n[e].from)}))||o.push({conversationID:"C2C".concat(n[e].from),type:E.CONV_C2C,lastMsgTime:n[e].lastMsgTime})},L=0,N=n.length;L<N;L++)D(L);return{conversationOptionsList:o,messageList:s,isUnreadC2CMessage:I}}},{key:"onC2CMessageRevoked",value:function(e){var t=this;De.debug("".concat(this._className,".onC2CMessageRevoked count:").concat(e.dataList.length));var n=this.getModule(Qt),i=[],r=null;e.dataList.forEach((function(e){if(e.c2cMessageRevokedNotify){var a=e.c2cMessageRevokedNotify.revokedInfos;ze(a)||a.forEach((function(e){var a=t.getMyUserID()===e.from?"".concat(E.CONV_C2C).concat(e.to):"".concat(E.CONV_C2C).concat(e.from);(r=n.revoke(a,e.sequence,e.random))&&i.push(r)}))}})),0!==i.length&&(n.onMessageRevoked(i),this.emitOuterEvent(C.MESSAGE_REVOKED,i))}},{key:"onC2CMessageReadReceipt",value:function(e){var t=this;e.dataList.forEach((function(e){if(!xt(e.c2cMessageReadReceipt)){var n=e.c2cMessageReadReceipt.to;e.c2cMessageReadReceipt.uinPairReadArray.forEach((function(e){var i=e.peerReadTime;De.debug("".concat(t._className,"._onC2CMessageReadReceipt to:").concat(n," peerReadTime:").concat(i));var r="".concat(E.CONV_C2C).concat(n),a=t.getModule(Qt);a.recordPeerReadTime(r,i),a.updateMessageIsPeerReadProperty(r,i)}))}}))}},{key:"onC2CMessageReadNotice",value:function(e){var t=this;e.dataList.forEach((function(e){if(!xt(e.c2cMessageReadNotice)){var n=t.getModule(Qt);e.c2cMessageReadNotice.uinPairReadArray.forEach((function(e){var i=e.from,r=e.peerReadTime;De.debug("".concat(t._className,".onC2CMessageReadNotice from:").concat(i," lastReadTime:").concat(r));var a="".concat(E.CONV_C2C).concat(i);n.updateIsReadAfterReadReport({conversationID:a,lastMessageTime:r}),n.updateUnreadCount(a)}))}}))}},{key:"sendMessage",value:function(e,t){var n=this._createC2CMessagePack(e,t);return this.request(n)}},{key:"_createC2CMessagePack",value:function(e,t){var n=null;t&&(t.offlinePushInfo&&(n=t.offlinePushInfo),!0===t.onlineUserOnly&&(n?n.disablePush=!0:n={disablePush:!0}));var i="";Ve(e.cloudCustomData)&&e.cloudCustomData.length>0&&(i=e.cloudCustomData);var r=[];if($e(t)&&$e(t.messageControlInfo)){var a=t.messageControlInfo,o=a.excludedFromUnreadCount,s=a.excludedFromLastMessage;!0===o&&r.push("NoUnread"),!0===s&&r.push("NoLastMsg")}return{protocolName:wn,tjgID:this.generateTjgID(e),requestData:{fromAccount:this.getMyUserID(),toAccount:e.to,msgBody:e.getElements(),cloudCustomData:i,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:this.isOnlineMessage(e,t)?0:void 0,nick:e.nick,avatar:e.avatar,offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||"",desc:n.description||"",ext:n.extension||"",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||""}}:void 0,messageControlInfo:r,clientTime:Ie()}}}},{key:"isOnlineMessage",value:function(e,t){return!(!t||!0!==t.onlineUserOnly)}},{key:"revokeMessage",value:function(e){return this.request({protocolName:On,requestData:{msgInfo:{fromAccount:e.from,toAccount:e.to,msgSeq:e.sequence,msgRandom:e.random,msgTimeStamp:e.time}}})}},{key:"deleteMessage",value:function(e){var t=e.to,n=e.keyList;return De.log("".concat(this._className,".deleteMessage toAccount:").concat(t," count:").concat(n.length)),this.request({protocolName:Rn,requestData:{fromAccount:this.getMyUserID(),to:t,keyList:n}})}},{key:"setMessageRead",value:function(e){var t=this,n=e.conversationID,i=e.lastMessageTime,r="".concat(this._className,".setMessageRead");De.log("".concat(r," conversationID:").concat(n," lastMessageTime:").concat(i)),qe(i)||De.warn("".concat(r," 请勿修改 Conversation.lastMessage.lastTime,否则可能会导致已读上报结果不准确"));var a=new da(La);return a.setMessage("conversationID:".concat(n," lastMessageTime:").concat(i)),this.request({protocolName:xn,requestData:{C2CMsgReaded:{cookie:"",C2CMsgReadedItem:[{toAccount:n.replace("C2C",""),lastMessageTime:i,receipt:1}]}}}).then((function(){a.setNetworkType(t.getNetworkType()).end(),De.log("".concat(r," ok"));var e=t.getModule(Qt);return e.updateIsReadAfterReadReport({conversationID:n,lastMessageTime:i}),e.updateUnreadCount(n),is()})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];a.setError(e,i,r).end()})),De.log("".concat(r," failed. error:"),e),fs(e)}))}},{key:"getRoamingMessage",value:function(e){var t=this,n="".concat(this._className,".getRoamingMessage"),i=e.peerAccount,r=e.conversationID,a=e.count,o=e.lastMessageTime,s=e.messageKey,u="peerAccount:".concat(i," count:").concat(a||15," lastMessageTime:").concat(o||0," messageKey:").concat(s);De.log("".concat(n," ").concat(u));var c=new da(Aa);return this.request({protocolName:Nn,requestData:{peerAccount:i,count:a||15,lastMessageTime:o||0,messageKey:s}}).then((function(e){var i=e.data,a=i.complete,o=i.messageList,s=i.messageKey,l=i.lastMessageTime;ze(o)?De.log("".concat(n," ok. complete:").concat(a," but messageList is undefined!")):De.log("".concat(n," ok. complete:").concat(a," count:").concat(o.length)),c.setNetworkType(t.getNetworkType()).setMessage("".concat(u," complete:").concat(a," length:").concat(o.length)).end();var d=t.getModule(Qt);1===a&&d.setCompleted(r);var h=d.storeRoamingMessage(o,r);d.modifyMessageList(r),d.updateIsRead(r),d.updateRoamingMessageKeyAndTime(r,s,l);var f=d.getPeerReadTime(r);if(De.log("".concat(n," update isPeerRead property. conversationID:").concat(r," peerReadTime:").concat(f)),f)d.updateMessageIsPeerReadProperty(r,f);else{var p=r.replace(E.CONV_C2C,"");t.getRemotePeerReadTime([p]).then((function(){d.updateMessageIsPeerReadProperty(r,d.getPeerReadTime(r))}))}return h})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];c.setMessage(u).setError(e,i,r).end()})),De.warn("".concat(n," failed. error:"),e),fs(e)}))}},{key:"getRemotePeerReadTime",value:function(e){var t=this,n="".concat(this._className,".getRemotePeerReadTime");if(xt(e))return De.warn("".concat(n," userIDList is empty!")),Promise.resolve();var i=new da(Ra);return De.log("".concat(n," userIDList:").concat(e)),this.request({protocolName:Pn,requestData:{userIDList:e}}).then((function(r){var a=r.data.peerReadTimeList;De.log("".concat(n," ok. peerReadTimeList:").concat(a));for(var o="",s=t.getModule(Qt),u=0;u<e.length;u++)o+="".concat(e[u],"-").concat(a[u]," "),a[u]>0&&s.recordPeerReadTime("C2C".concat(e[u]),a[u]);i.setNetworkType(t.getNetworkType()).setMessage(o).end()})).catch((function(e){t.probeNetwork().then((function(t){var n=y(t,2),r=n[0],a=n[1];i.setError(e,r,a).end()})),De.warn("".concat(n," failed. error:"),e)}))}}]),i}(mn),gs=function(){function e(t){n(this,e),this.list=new Map,this._className="MessageListHandler",this._latestMessageSentByPeerMap=new Map,this._latestMessageSentByMeMap=new Map,this._groupLocalLastMessageSequenceMap=new Map}return r(e,[{key:"getLocalOldestMessageByConversationID",value:function(e){if(!e)return null;if(!this.list.has(e))return null;var t=this.list.get(e).values();return t?t.next().value:null}},{key:"pushIn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.conversationID,i=e.ID,r=!0;this.list.has(n)||this.list.set(n,new Map);var a=this.list.get(n).has(i);if(a){var o=this.list.get(n).get(i);if(!t||!0===o.isModified)return!1}return this.list.get(n).set(i,e),this._setLatestMessageSentByPeer(n,e),this._setLatestMessageSentByMe(n,e),this._setGroupLocalLastMessageSequence(n,e),r}},{key:"unshift",value:function(e){var t;if(We(e)){if(e.length>0){t=e[0].conversationID;var n=e.length;this._unshiftMultipleMessages(e),this._setGroupLocalLastMessageSequence(t,e[n-1])}}else t=e.conversationID,this._unshiftSingleMessage(e),this._setGroupLocalLastMessageSequence(t,e);if(t&&t.startsWith(E.CONV_C2C)){var i=Array.from(this.list.get(t).values()),r=i.length;if(0===r)return;for(var a=r-1;a>=0;a--)if("out"===i[a].flow){this._setLatestMessageSentByMe(t,i[a]);break}for(var o=r-1;o>=0;o--)if("in"===i[o].flow){this._setLatestMessageSentByPeer(t,i[o]);break}}}},{key:"_unshiftSingleMessage",value:function(e){var t=e.conversationID,n=e.ID;if(!this.list.has(t))return this.list.set(t,new Map),void this.list.get(t).set(n,e);var i=Array.from(this.list.get(t));i.unshift([n,e]),this.list.set(t,new Map(i))}},{key:"_unshiftMultipleMessages",value:function(e){for(var t=e.length,n=[],i=e[0].conversationID,r=this.list.has(i)?Array.from(this.list.get(i)):[],a=0;a<t;a++)n.push([e[a].ID,e[a]]);this.list.set(i,new Map(n.concat(r)))}},{key:"remove",value:function(e){var t=e.conversationID,n=e.ID;this.list.has(t)&&this.list.get(t).delete(n)}},{key:"revoke",value:function(e,t,n){if(De.debug("revoke message",e,t,n),this.list.has(e)){var i,r=M(this.list.get(e));try{for(r.s();!(i=r.n()).done;){var a=y(i.value,2)[1];if(a.sequence===t&&!a.isRevoked&&(ze(n)||a.random===n))return a.isRevoked=!0,a}}catch(s){r.e(s)}finally{r.f()}}return null}},{key:"removeByConversationID",value:function(e){this.list.has(e)&&(this.list.delete(e),this._latestMessageSentByPeerMap.delete(e),this._latestMessageSentByMeMap.delete(e))}},{key:"updateMessageIsPeerReadProperty",value:function(e,t){var n=[];if(this.list.has(e)){var i,r=M(this.list.get(e));try{for(r.s();!(i=r.n()).done;){var a=y(i.value,2)[1];a.time<=t&&!a.isPeerRead&&"out"===a.flow&&(a.isPeerRead=!0,n.push(a))}}catch(s){r.e(s)}finally{r.f()}De.log("".concat(this._className,".updateMessageIsPeerReadProperty conversationID:").concat(e," peerReadTime:").concat(t," count:").concat(n.length))}return n}},{key:"updateMessageIsModifiedProperty",value:function(e){var t=e.conversationID,n=e.ID;if(this.list.has(t)){var i=this.list.get(t).get(n);i&&(i.isModified=!0)}}},{key:"hasLocalMessageList",value:function(e){return this.list.has(e)}},{key:"getLocalMessageList",value:function(e){return this.hasLocalMessageList(e)?_(this.list.get(e).values()):[]}},{key:"hasLocalMessage",value:function(e,t){return!!this.hasLocalMessageList(e)&&this.list.get(e).has(t)}},{key:"getLocalMessage",value:function(e,t){return this.hasLocalMessage(e,t)?this.list.get(e).get(t):null}},{key:"getLocalLastMessage",value:function(e){var t=this.getLocalMessageList(e);return t[t.length-1]}},{key:"_setLatestMessageSentByPeer",value:function(e,t){e.startsWith(E.CONV_C2C)&&"in"===t.flow&&this._latestMessageSentByPeerMap.set(e,t)}},{key:"_setLatestMessageSentByMe",value:function(e,t){e.startsWith(E.CONV_C2C)&&"out"===t.flow&&this._latestMessageSentByMeMap.set(e,t)}},{key:"_setGroupLocalLastMessageSequence",value:function(e,t){e.startsWith(E.CONV_GROUP)&&this._groupLocalLastMessageSequenceMap.set(e,t.sequence)}},{key:"getLatestMessageSentByPeer",value:function(e){return this._latestMessageSentByPeerMap.get(e)}},{key:"getLatestMessageSentByMe",value:function(e){return this._latestMessageSentByMeMap.get(e)}},{key:"getGroupLocalLastMessageSequence",value:function(e){return this._groupLocalLastMessageSequenceMap.get(e)||0}},{key:"modifyMessageSentByPeer",value:function(e){var t=e.conversationID,n=e.latestNick,i=e.latestAvatar,r=this.list.get(t);if(!xt(r)){var a=Array.from(r.values()),o=a.length;if(0!==o){for(var s=null,u=0,c=!1,l=o-1;l>=0;l--)"in"===a[l].flow&&((s=a[l]).nick!==n&&(s.setNickAndAvatar({nick:n}),c=!0),s.avatar!==i&&(s.setNickAndAvatar({avatar:i}),c=!0),c&&(u+=1));De.log("".concat(this._className,".modifyMessageSentByPeer conversationID:").concat(t," count:").concat(u))}}}},{key:"modifyMessageSentByMe",value:function(e){var t=e.conversationID,n=e.latestNick,i=e.latestAvatar,r=this.list.get(t);if(!xt(r)){var a=Array.from(r.values()),o=a.length;if(0!==o){for(var s=null,u=0,c=!1,l=o-1;l>=0;l--)"out"===a[l].flow&&((s=a[l]).nick!==n&&(s.setNickAndAvatar({nick:n}),c=!0),s.avatar!==i&&(s.setNickAndAvatar({avatar:i}),c=!0),c&&(u+=1));De.log("".concat(this._className,".modifyMessageSentByMe conversationID:").concat(t," count:").concat(u))}}}},{key:"traversal",value:function(){if(0!==this.list.size&&-1===De.getLevel()){console.group("conversationID-messageCount");var e,t=M(this.list);try{for(t.s();!(e=t.n()).done;){var n=y(e.value,2),i=n[0],r=n[1];console.log("".concat(i,"-").concat(r.size))}}catch(o){t.e(o)}finally{t.f()}console.groupEnd()}}},{key:"reset",value:function(){this.list.clear(),this._latestMessageSentByPeerMap.clear(),this._latestMessageSentByMeMap.clear(),this._groupLocalLastMessageSequenceMap.clear()}}]),e}(),ms="_a2KeyAndTinyIDUpdated",vs="_cloudConfigUpdated",ys="_profileUpdated";function _s(e){this.mixin(e)}_s.mixin=function(e){var t=e.prototype||e;t._isReady=!1,t.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this._isReady?void(t?e.call(this):setTimeout(e,1)):(this._readyQueue=this._readyQueue||[],void this._readyQueue.push(e))},t.triggerReady=function(){var e=this;this._isReady=!0,setTimeout((function(){var t=e._readyQueue;e._readyQueue=[],t&&t.length>0&&t.forEach((function(e){e.call(this)}),e)}),1)},t.resetReady=function(){this._isReady=!1,this._readyQueue=[]},t.isReady=function(){return this._isReady}};var bs=["jpg","jpeg","gif","png","bmp","image","webp"],Ts=["mp4"],Ss=1,ws=2,ks=3,Ms=255,Cs=function(){function e(t){var i=this;n(this,e),xt(t)||(this.userID=t.userID||"",this.nick=t.nick||"",this.gender=t.gender||"",this.birthday=t.birthday||0,this.location=t.location||"",this.selfSignature=t.selfSignature||"",this.allowType=t.allowType||E.ALLOW_TYPE_ALLOW_ANY,this.language=t.language||0,this.avatar=t.avatar||"",this.messageSettings=t.messageSettings||0,this.adminForbidType=t.adminForbidType||E.FORBID_TYPE_NONE,this.level=t.level||0,this.role=t.role||0,this.lastUpdatedTime=0,this.profileCustomField=[],xt(t.profileCustomField)||t.profileCustomField.forEach((function(e){i.profileCustomField.push({key:e.key,value:e.value})})))}return r(e,[{key:"validate",value:function(e){var t=!0,n="";if(xt(e))return{valid:!1,tips:"empty options"};if(e.profileCustomField)for(var i=e.profileCustomField.length,r=null,a=0;a<i;a++){if(r=e.profileCustomField[a],!Ve(r.key)||-1===r.key.indexOf("Tag_Profile_Custom"))return{valid:!1,tips:"自定义资料字段的前缀必须是 Tag_Profile_Custom"};if(!Ve(r.value))return{valid:!1,tips:"自定义资料字段的 value 必须是字符串"}}for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if("profileCustomField"===o)continue;if(xt(e[o])&&!Ve(e[o])&&!qe(e[o])){n="key:"+o+", invalid value:"+e[o],t=!1;continue}switch(o){case"nick":Ve(e[o])||(n="nick should be a string",t=!1),rt(e[o])>500&&(n="nick name limited: must less than or equal to ".concat(500," bytes, current size: ").concat(rt(e[o])," bytes"),t=!1);break;case"gender":ut(Pe,e.gender)||(n="key:gender, invalid value:"+e.gender,t=!1);break;case"birthday":qe(e.birthday)||(n="birthday should be a number",t=!1);break;case"location":Ve(e.location)||(n="location should be a string",t=!1);break;case"selfSignature":Ve(e.selfSignature)||(n="selfSignature should be a string",t=!1);break;case"allowType":ut(je,e.allowType)||(n="key:allowType, invalid value:"+e.allowType,t=!1);break;case"language":qe(e.language)||(n="language should be a number",t=!1);break;case"avatar":Ve(e.avatar)||(n="avatar should be a string",t=!1);break;case"messageSettings":0!==e.messageSettings&&1!==e.messageSettings&&(n="messageSettings should be 0 or 1",t=!1);break;case"adminForbidType":ut(Re,e.adminForbidType)||(n="key:adminForbidType, invalid value:"+e.adminForbidType,t=!1);break;case"level":qe(e.level)||(n="level should be a number",t=!1);break;case"role":qe(e.role)||(n="role should be a number",t=!1);break;default:n="unknown key:"+o+"  "+e[o],t=!1}}return{valid:t,tips:n}}}]),e}(),Es=function e(t){n(this,e),this.value=t,this.next=null},Is=function(){function e(t){n(this,e),this.MAX_LENGTH=t,this.pTail=null,this.pNodeToDel=null,this.map=new Map,De.debug("SinglyLinkedList init MAX_LENGTH:".concat(this.MAX_LENGTH))}return r(e,[{key:"set",value:function(e){var t=new Es(e);if(this.map.size<this.MAX_LENGTH)null===this.pTail?(this.pTail=t,this.pNodeToDel=t):(this.pTail.next=t,this.pTail=t),this.map.set(e,1);else{var n=this.pNodeToDel;this.pNodeToDel=this.pNodeToDel.next,this.map.delete(n.value),n.next=null,n=null,this.pTail.next=t,this.pTail=t,this.map.set(e,1)}}},{key:"has",value:function(e){return this.map.has(e)}},{key:"delete",value:function(e){this.has(e)&&this.map.delete(e)}},{key:"tail",value:function(){return this.pTail}},{key:"size",value:function(){return this.map.size}},{key:"data",value:function(){return Array.from(this.map.keys())}},{key:"reset",value:function(){for(var e;null!==this.pNodeToDel;)e=this.pNodeToDel,this.pNodeToDel=this.pNodeToDel.next,e.next=null,e=null;this.pTail=null,this.map.clear()}}]),e}(),As=["groupID","name","avatar","type","introduction","notification","ownerID","selfInfo","createTime","infoSequence","lastInfoTime","lastMessage","nextMessageSeq","memberNum","maxMemberNum","memberList","joinOption","groupCustomField","muteAllMembers"],Os=function(){function e(t){n(this,e),this.groupID="",this.name="",this.avatar="",this.type="",this.introduction="",this.notification="",this.ownerID="",this.createTime="",this.infoSequence="",this.lastInfoTime="",this.selfInfo={messageRemindType:"",joinTime:"",nameCard:"",role:"",userID:"",memberCustomField:void 0,readedSequence:0,excludedUnreadSequenceList:void 0},this.lastMessage={lastTime:"",lastSequence:"",fromAccount:"",messageForShow:""},this.nextMessageSeq="",this.memberNum="",this.memberCount="",this.maxMemberNum="",this.maxMemberCount="",this.joinOption="",this.groupCustomField=[],this.muteAllMembers=void 0,this._initGroup(t)}return r(e,[{key:"_initGroup",value:function(e){for(var t in e)As.indexOf(t)<0||("selfInfo"!==t?("memberNum"===t&&(this.memberCount=e[t]),"maxMemberNum"===t&&(this.maxMemberCount=e[t]),this[t]=e[t]):this.updateSelfInfo(e[t]))}},{key:"updateGroup",value:function(e){var t=this,n=JSON.parse(JSON.stringify(e));n.lastMsgTime&&(this.lastMessage.lastTime=n.lastMsgTime),ze(n.muteAllMembers)||("On"===n.muteAllMembers?n.muteAllMembers=!0:n.muteAllMembers=!1),n.groupCustomField&&ft(this.groupCustomField,n.groupCustomField),ze(n.memberNum)||(this.memberCount=n.memberNum),ze(n.maxMemberNum)||(this.maxMemberCount=n.maxMemberNum),nt(this,n,["members","errorCode","lastMsgTime","groupCustomField","memberNum","maxMemberNum"]),We(n.members)&&n.members.length>0&&n.members.forEach((function(e){e.userID===t.selfInfo.userID&&nt(t.selfInfo,e,["sequence"])}))}},{key:"updateSelfInfo",value:function(e){var t=e.nameCard,n=e.joinTime,i=e.role,r=e.messageRemindType,a=e.readedSequence,o=e.excludedUnreadSequenceList;nt(this.selfInfo,{nameCard:t,joinTime:n,role:i,messageRemindType:r,readedSequence:a,excludedUnreadSequenceList:o},[],["",null,void 0,0,NaN])}},{key:"setSelfNameCard",value:function(e){this.selfInfo.nameCard=e}},{key:"memberNum",set:function(e){},get:function(){return De.warn("!!!v2.8.0起弃用memberNum,请使用 memberCount"),this.memberCount}},{key:"maxMemberNum",set:function(e){},get:function(){return De.warn("!!!v2.8.0起弃用maxMemberNum,请使用 maxMemberCount"),this.maxMemberCount}}]),e}(),xs=function(e,t){if(ze(t))return"";switch(e){case E.MSG_TEXT:return t.text;case E.MSG_IMAGE:return"[图片]";case E.MSG_LOCATION:return"[位置]";case E.MSG_AUDIO:return"[语音]";case E.MSG_VIDEO:return"[视频]";case E.MSG_FILE:return"[文件]";case E.MSG_CUSTOM:return"[自定义消息]";case E.MSG_GRP_TIP:return"[群提示消息]";case E.MSG_GRP_SYS_NOTICE:return"[群系统通知]";case E.MSG_FACE:return"[动画表情]";case E.MSG_MERGER:return"[聊天记录]";default:return""}},Ds=function(e){return ze(e)?{lastTime:0,lastSequence:0,fromAccount:0,messageForShow:"",payload:null,type:"",isRevoked:!1,cloudCustomData:"",onlineOnlyFlag:!1,nick:"",nameCard:""}:e instanceof ns?{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||"",messageForShow:xs(e.type,e.payload),payload:e.payload||null,type:e.type||null,isRevoked:e.isRevoked||!1,cloudCustomData:e.cloudCustomData||"",onlineOnlyFlag:e._onlineOnlyFlag||!1,nick:e.nick||"",nameCard:e.nameCard||""}:s({},e,{messageForShow:xs(e.type,e.payload)})},Ls=function(){function e(t){n(this,e),this.conversationID=t.conversationID||"",this.unreadCount=t.unreadCount||0,this.type=t.type||"",this.lastMessage=Ds(t.lastMessage),t.lastMsgTime&&(this.lastMessage.lastTime=t.lastMsgTime),this._isInfoCompleted=!1,this.peerReadTime=t.peerReadTime||0,this.groupAtInfoList=[],this.remark="",this.isPinned=t.isPinned||!1,this.messageRemindType="",this._initProfile(t)}return r(e,[{key:"_initProfile",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"userProfile":t.userProfile=e.userProfile;break;case"groupProfile":t.groupProfile=e.groupProfile}})),ze(this.userProfile)&&this.type===E.CONV_C2C?this.userProfile=new Cs({userID:e.conversationID.replace("C2C","")}):ze(this.groupProfile)&&this.type===E.CONV_GROUP&&(this.groupProfile=new Os({groupID:e.conversationID.replace("GROUP","")}))}},{key:"updateUnreadCount",value:function(e){var t=e.nextUnreadCount,n=e.isFromGetConversations,i=e.isUnreadC2CMessage;ze(t)||(gt(this.subType)?this.unreadCount=0:n&&this.type===E.CONV_GROUP||i&&this.type===E.CONV_C2C?this.unreadCount=t:this.unreadCount=this.unreadCount+t)}},{key:"updateLastMessage",value:function(e){this.lastMessage=Ds(e)}},{key:"updateGroupAtInfoList",value:function(e){var t,n=(b(t=e.groupAtType)||T(t)||S(t)||k()).slice(0);-1!==n.indexOf(E.CONV_AT_ME)&&-1!==n.indexOf(E.CONV_AT_ALL)&&(n=[E.CONV_AT_ALL_AT_ME]);var i={from:e.from,groupID:e.groupID,messageSequence:e.sequence,atTypeArray:n,__random:e.__random,__sequence:e.__sequence};this.groupAtInfoList.push(i),De.debug("Conversation.updateGroupAtInfoList conversationID:".concat(this.conversationID),this.groupAtInfoList)}},{key:"clearGroupAtInfoList",value:function(){this.groupAtInfoList.length=0}},{key:"reduceUnreadCount",value:function(){this.unreadCount>=1&&(this.unreadCount-=1)}},{key:"isLastMessageRevoked",value:function(e){var t=e.sequence,n=e.time;return this.type===E.CONV_C2C&&t===this.lastMessage.lastSequence&&n===this.lastMessage.lastTime||this.type===E.CONV_GROUP&&t===this.lastMessage.lastSequence}},{key:"setLastMessageRevoked",value:function(e){this.lastMessage.isRevoked=e}},{key:"toAccount",get:function(){return this.conversationID.startsWith(E.CONV_C2C)?this.conversationID.replace(E.CONV_C2C,""):this.conversationID.startsWith(E.CONV_GROUP)?this.conversationID.replace(E.CONV_GROUP,""):""}},{key:"subType",get:function(){return this.groupProfile?this.groupProfile.type:""}}]),e}(),Ns=function(){function e(t){n(this,e),this._conversationModule=t,this._className="MessageRemindHandler",this._updateSequence=0}return r(e,[{key:"getC2CMessageRemindType",value:function(){var e=this,t="".concat(this._className,".getC2CMessageRemindType");return this._conversationModule.request({protocolName:Ln,updateSequence:this._updateSequence}).then((function(n){De.log("".concat(t," ok"));var i=n.data,r=i.updateSequence,a=i.muteFlagList;e._updateSequence=r,e._patchC2CMessageRemindType(a)})).catch((function(e){De.error("".concat(t," failed. error:"),e)}))}},{key:"_patchC2CMessageRemindType",value:function(e){var t=this,n=0,i="";We(e)&&e.length>0&&e.forEach((function(e){var r=e.userID,a=e.muteFlag;0===a?i=E.MSG_REMIND_ACPT_AND_NOTE:1===a?i=E.MSG_REMIND_DISCARD:2===a&&(i=E.MSG_REMIND_ACPT_NOT_NOTE),!0===t._conversationModule.patchMessageRemindType({ID:r,isC2CConversation:!0,messageRemindType:i})&&(n+=1)})),De.log("".concat(this._className,"._patchC2CMessageRemindType count:").concat(n))}},{key:"set",value:function(e){return e.groupID?this._setGroupMessageRemindType(e):We(e.userIDList)?this._setC2CMessageRemindType(e):void 0}},{key:"_setGroupMessageRemindType",value:function(e){var t=this,n="".concat(this._className,"._setGroupMessageRemindType"),i=e.groupID,r=e.messageRemindType,a="groupID:".concat(i," messageRemindType:").concat(r),o=new da(to);return o.setMessage(a),this._getModule(Jt).modifyGroupMemberInfo({groupID:i,messageRemindType:r,userID:this._conversationModule.getMyUserID()}).then((function(){o.setNetworkType(t._conversationModule.getNetworkType()).end(),De.log("".concat(n," ok. ").concat(a));var e=t._getModule(Yt).getLocalGroupProfile(i);return e&&(e.selfInfo.messageRemindType=r),t._conversationModule.patchMessageRemindType({ID:i,isC2CConversation:!1,messageRemindType:r})&&t._emitConversationUpdate(),is({group:e})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];o.setError(e,i,r).end()})),De.error("".concat(n," failed. error:"),e),fs(e)}))}},{key:"_setC2CMessageRemindType",value:function(e){var t=this,n="".concat(this._className,"._setC2CMessageRemindType"),i=e.userIDList,r=e.messageRemindType,a=i.slice(0,30),o=0;r===E.MSG_REMIND_DISCARD?o=1:r===E.MSG_REMIND_ACPT_NOT_NOTE&&(o=2);var s="userIDList:".concat(a," messageRemindType:").concat(r),u=new da(to);return u.setMessage(s),this._conversationModule.request({protocolName:Dn,requestData:{userIDList:a,muteFlag:o}}).then((function(e){u.setNetworkType(t._conversationModule.getNetworkType()).end();var i=e.data,o=i.updateSequence,s=i.errorList;t._updateSequence=o;var c=[],l=[];We(s)&&s.forEach((function(e){c.push(e.userID),l.push({userID:e.userID,code:e.errorCode})}));var d=a.filter((function(e){return-1===c.indexOf(e)}));De.log("".concat(n," ok. successUserIDList:").concat(d," failureUserIDList:").concat(JSON.stringify(l)));var h=0;return d.forEach((function(e){t._conversationModule.patchMessageRemindType({ID:e,isC2CConversation:!0,messageRemindType:r})&&(h+=1)})),h>=1&&t._emitConversationUpdate(),a.length=c.length=0,hs({successUserIDList:d.map((function(e){return{userID:e}})),failureUserIDList:l})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];u.setError(e,i,r).end()})),De.error("".concat(n," failed. error:"),e),fs(e)}))}},{key:"_getModule",value:function(e){return this._conversationModule.getModule(e)}},{key:"_emitConversationUpdate",value:function(){this._conversationModule.emitConversationUpdate(!0,!1)}},{key:"setUpdateSequence",value:function(e){this._updateSequence=e}},{key:"reset",value:function(){De.log("".concat(this._className,".reset")),this._updateSequence=0}}]),e}(),Ps=function(e){u(i,e);var t=v(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._className="ConversationModule",_s.mixin(g(r)),r._messageListHandler=new gs,r._messageRemindHandler=new Ns(g(r)),r.singlyLinkedList=new Is(100),r._pagingStatus=Rt.NOT_START,r._pagingTimeStamp=0,r._pagingStartIndex=0,r._pagingPinnedTimeStamp=0,r._pagingPinnedStartIndex=0,r._conversationMap=new Map,r._tmpGroupList=[],r._tmpGroupAtTipsList=[],r._peerReadTimeMap=new Map,r._completedMap=new Map,r._roamingMessageKeyAndTimeMap=new Map,r._remoteGroupReadSequenceMap=new Map,r._initListeners(),r}return r(i,[{key:"_initListeners",value:function(){var e=this.getInnerEmitterInstance();e.on(ms,this._initLocalConversationList,this),e.on(ys,this._onProfileUpdated,this)}},{key:"onCheckTimer",value:function(e){e%60==0&&this._messageListHandler.traversal()}},{key:"_initLocalConversationList",value:function(){var e=this,t=new da($a);De.log("".concat(this._className,"._initLocalConversationList."));var n="",i=this._getStorageConversationList();if(i){for(var r=i.length,a=0;a<r;a++){var o=i[a];if(o){if(o.conversationID==="".concat(E.CONV_C2C,"@TLS#ERROR")||o.conversationID==="".concat(E.CONV_C2C,"@TLS#NOT_FOUND"))continue;if(o.groupProfile){var s=o.groupProfile.type;if(gt(s))continue}}this._conversationMap.set(i[a].conversationID,new Ls(i[a]))}this.emitConversationUpdate(!0,!1),n="count:".concat(r)}else n="count:0";t.setNetworkType(this.getNetworkType()).setMessage(n).end(),this.getModule(Kt)||this.triggerReady(),this.ready((function(){e._tmpGroupList.length>0&&(e.updateConversationGroupProfile(e._tmpGroupList),e._tmpGroupList.length=0)})),this._syncConversationList()}},{key:"onMessageSent",value:function(e){this._onSendOrReceiveMessage({conversationOptionsList:e.conversationOptionsList,isInstantMessage:!0})}},{key:"onNewMessage",value:function(e){this._onSendOrReceiveMessage(e)}},{key:"_onSendOrReceiveMessage",value:function(e){var t=this,n=e.conversationOptionsList,i=e.isInstantMessage,r=void 0===i||i,a=e.isUnreadC2CMessage,o=void 0!==a&&a;this._isReady?0!==n.length&&(this._getC2CPeerReadTime(n),this._updateLocalConversationList({conversationOptionsList:n,isInstantMessage:r,isUnreadC2CMessage:o,isFromGetConversations:!1}),this._setStorageConversationList(),this.emitConversationUpdate()):this.ready((function(){t._onSendOrReceiveMessage(e)}))}},{key:"updateConversationGroupProfile",value:function(e){var t=this;We(e)&&0===e.length||(0!==this._conversationMap.size?(e.forEach((function(e){var n="GROUP".concat(e.groupID);if(t._conversationMap.has(n)){var i=t._conversationMap.get(n);i.groupProfile=JSON.parse(JSON.stringify(e)),i.lastMessage.lastSequence<e.nextMessageSeq&&(i.lastMessage.lastSequence=e.nextMessageSeq-1),i.subType||(i.subType=e.type)}})),this.emitConversationUpdate(!0,!1)):this._tmpGroupList=e)}},{key:"_updateConversationUserProfile",value:function(e){var t=this;e.data.forEach((function(e){var n="C2C".concat(e.userID);t._conversationMap.has(n)&&(t._conversationMap.get(n).userProfile=e)})),this.emitConversationUpdate(!0,!1)}},{key:"onMessageRevoked",value:function(e){var t=this;if(0!==e.length){var n=null,i=!1;e.forEach((function(e){(n=t._conversationMap.get(e.conversationID))&&n.isLastMessageRevoked(e)&&(i=!0,n.setLastMessageRevoked(!0))})),i&&this.emitConversationUpdate(!0,!1)}}},{key:"onMessageDeleted",value:function(e){if(0!==e.length){e.forEach((function(e){e.isDeleted=!0}));for(var t=e[0].conversationID,n=this._messageListHandler.getLocalMessageList(t),i={},r=n.length-1;r>=0;r--)if(!n[r].isDeleted){i=n[r];break}var a=this._conversationMap.get(t);if(a){var o=!1;a.lastMessage.lastSequence===i.sequence&&a.lastMessage.lastTime===i.time||(xt(i)&&(i=void 0),a.updateLastMessage(i),o=!0,De.log("".concat(this._className,".onMessageDeleted. update conversationID:").concat(t," with lastMessage:"),a.lastMessage)),t.startsWith(E.CONV_C2C)&&this.updateUnreadCount(t),o&&this.emitConversationUpdate(!0,!1)}}}},{key:"onNewGroupAtTips",value:function(e){var t=this,n=e.dataList,i=null;n.forEach((function(e){e.groupAtTips?i=e.groupAtTips:e.elements&&(i=e.elements),i.__random=e.random,i.__sequence=e.clientSequence,t._tmpGroupAtTipsList.push(i)})),De.debug("".concat(this._className,".onNewGroupAtTips isReady:").concat(this._isReady),this._tmpGroupAtTipsList),this._isReady&&this._handleGroupAtTipsList()}},{key:"_handleGroupAtTipsList",value:function(){var e=this;if(0!==this._tmpGroupAtTipsList.length){var t=!1;this._tmpGroupAtTipsList.forEach((function(n){var i=n.groupID;if(n.from!==e.getMyUserID()){var r=e._conversationMap.get("".concat(E.CONV_GROUP).concat(i));r&&(r.updateGroupAtInfoList(n),t=!0)}})),t&&this.emitConversationUpdate(!0,!1),this._tmpGroupAtTipsList.length=0}}},{key:"_getC2CPeerReadTime",value:function(e){var t=this,n=[];if(e.forEach((function(e){t._conversationMap.has(e.conversationID)||e.type!==E.CONV_C2C||n.push(e.conversationID.replace(E.CONV_C2C,""))})),n.length>0){De.debug("".concat(this._className,"._getC2CPeerReadTime userIDList:").concat(n));var i=this.getModule(Kt);i&&i.getRemotePeerReadTime(n)}}},{key:"_getStorageConversationList",value:function(){return this.getModule(en).getItem("conversationMap")}},{key:"_setStorageConversationList",value:function(){var e=this.getLocalConversationList().slice(0,20).map((function(e){return{conversationID:e.conversationID,type:e.type,subType:e.subType,lastMessage:e.lastMessage,groupProfile:e.groupProfile,userProfile:e.userProfile}}));this.getModule(en).setItem("conversationMap",e)}},{key:"emitConversationUpdate",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=_(this._conversationMap.values());if(t){var i=this.getModule(Yt);i&&i.updateGroupLastMessage(n)}e&&this.emitOuterEvent(C.CONVERSATION_LIST_UPDATED)}},{key:"getLocalConversationList",value:function(){return _(this._conversationMap.values())}},{key:"getLocalConversation",value:function(e){return this._conversationMap.get(e)}},{key:"_syncConversationList",value:function(){var e=this,t=new da(Wa);return this._pagingStatus===Rt.NOT_START&&this._conversationMap.clear(),this._pagingGetConversationList().then((function(n){return e._pagingStatus=Rt.RESOLVED,e._setStorageConversationList(),e._handleC2CPeerReadTime(),e._patchConversationProperties(),t.setMessage(e._conversationMap.size).setNetworkType(e.getNetworkType()).end(),n})).catch((function(n){return e._pagingStatus=Rt.REJECTED,t.setMessage(e._pagingTimeStamp),e.probeNetwork().then((function(e){var i=y(e,2),r=i[0],a=i[1];t.setError(n,r,a).end()})),fs(n)}))}},{key:"_patchConversationProperties",value:function(){var e=this,t=Date.now(),n=this.checkAndPatchRemark(),i=this._messageRemindHandler.getC2CMessageRemindType(),r=this.getModule(Yt).getGroupList();Promise.all([n,i,r]).then((function(){var n=Date.now()-t;De.log("".concat(e._className,"._patchConversationProperties ok. cost ").concat(n," ms")),e.emitConversationUpdate(!0,!1)}))}},{key:"_pagingGetConversationList",value:function(){var e=this,t="".concat(this._className,"._pagingGetConversationList");return De.log("".concat(t," timeStamp:").concat(this._pagingTimeStamp," startIndex:").concat(this._pagingStartIndex)+" pinnedTimeStamp:".concat(this._pagingPinnedTimeStamp," pinnedStartIndex:").concat(this._pagingPinnedStartIndex)),this._pagingStatus=Rt.PENDING,this.request({protocolName:jn,requestData:{fromAccount:this.getMyUserID(),timeStamp:this._pagingTimeStamp,startIndex:this._pagingStartIndex,pinnedTimeStamp:this._pagingPinnedTimeStamp,pinnedStartIndex:this._pagingStartIndex,orderType:1}}).then((function(n){var i=n.data,r=i.completeFlag,a=i.conversations,o=void 0===a?[]:a,s=i.timeStamp,u=i.startIndex,c=i.pinnedTimeStamp,l=i.pinnedStartIndex;if(De.log("".concat(t," ok. completeFlag:").concat(r," count:").concat(o.length," isReady:").concat(e._isReady)),o.length>0){var d=e._getConversationOptions(o);e._updateLocalConversationList({conversationOptionsList:d,isFromGetConversations:!0}),e.isLoggedIn()&&e.emitConversationUpdate()}if(!e._isReady){if(!e.isLoggedIn())return hs();e.triggerReady()}return e._pagingTimeStamp=s,e._pagingStartIndex=u,e._pagingPinnedTimeStamp=c,e._pagingPinnedStartIndex=l,1!==r?e._pagingGetConversationList():(e._handleGroupAtTipsList(),hs())})).catch((function(n){throw e.isLoggedIn()&&(e._isReady||(De.warn("".concat(t," failed. error:"),n),e.triggerReady())),n}))}},{key:"_updateLocalConversationList",value:function(e){var t,n=e.isFromGetConversations,i=Date.now();t=this._getTmpConversationListMapping(e),this._conversationMap=new Map(this._sortConversationList([].concat(_(t.toBeUpdatedConversationList),_(this._conversationMap)))),n||this._updateUserOrGroupProfile(t.newConversationList),De.debug("".concat(this._className,"._updateLocalConversationList cost ").concat(Date.now()-i," ms"))}},{key:"_getTmpConversationListMapping",value:function(e){for(var t=e.conversationOptionsList,n=e.isFromGetConversations,i=e.isInstantMessage,r=e.isUnreadC2CMessage,a=void 0!==r&&r,o=[],s=[],u=this.getModule(Yt),c=this.getModule(Xt),l=0,d=t.length;l<d;l++){var h=new Ls(t[l]),f=h.conversationID;if(f!=="".concat(E.CONV_C2C,"@TLS#ERROR")&&f!=="".concat(E.CONV_C2C,"@TLS#NOT_FOUND"))if(this._conversationMap.has(f)){var p=this._conversationMap.get(f),g=["unreadCount","allowType","adminForbidType","payload","isPinned"];!1===i&&g.push("lastMessage");var m=t[l].lastMessage,v=!ze(m);v||this._onLastMessageNotExist(t[l]),ze(i)&&v&&null===p.lastMessage.payload&&(p.lastMessage.payload=m.payload),nt(p,h,g,[null,void 0,"",0,NaN]),p.updateUnreadCount({nextUnreadCount:h.unreadCount,isFromGetConversations:n,isUnreadC2CMessage:a}),i&&v&&(p.lastMessage.payload=m.payload,p.type===E.CONV_GROUP&&(p.lastMessage.nameCard=m.nameCard,p.lastMessage.nick=m.nick)),v&&p.lastMessage.cloudCustomData!==m.cloudCustomData&&(p.lastMessage.cloudCustomData=m.cloudCustomData||""),this._conversationMap.delete(f),o.push([f,p])}else{if(h.type===E.CONV_GROUP&&u){var y=h.groupProfile.groupID,_=u.getLocalGroupProfile(y);_&&(h.groupProfile=_,h.updateUnreadCount({nextUnreadCount:0}))}else if(h.type===E.CONV_C2C){var b=f.replace(E.CONV_C2C,"");c&&c.isMyFriend(b)&&(h.remark=c.getFriendRemark(b))}s.push(h),o.push([f,h])}}return{toBeUpdatedConversationList:o,newConversationList:s}}},{key:"_onLastMessageNotExist",value:function(e){new da(Bo).setMessage("".concat(JSON.stringify(e))).setNetworkType(this.getNetworkType()).end()}},{key:"_sortConversationList",value:function(e){var t=[],n=[];return e.forEach((function(e){!0===e[1].isPinned?t.push(e):n.push(e)})),t.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})).concat(n.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})))}},{key:"_sortConversationListAndEmitEvent",value:function(){this._conversationMap=new Map(this._sortConversationList(_(this._conversationMap))),this.emitConversationUpdate(!0,!1)}},{key:"_updateUserOrGroupProfile",value:function(e){var t=this;if(0!==e.length){var n=[],i=[],r=this.getModule(zt),a=this.getModule(Yt);e.forEach((function(e){if(e.type===E.CONV_C2C)n.push(e.toAccount);else if(e.type===E.CONV_GROUP){var t=e.toAccount;a.hasLocalGroup(t)?e.groupProfile=a.getLocalGroupProfile(t):i.push(t)}})),De.log("".concat(this._className,"._updateUserOrGroupProfile c2cUserIDList:").concat(n," groupIDList:").concat(i)),n.length>0&&r.getUserProfile({userIDList:n}).then((function(e){var n=e.data;We(n)?n.forEach((function(e){t._conversationMap.get("C2C".concat(e.userID)).userProfile=e})):t._conversationMap.get("C2C".concat(n.userID)).userProfile=n})),i.length>0&&a.getGroupProfileAdvance({groupIDList:i,responseFilter:{groupBaseInfoFilter:["Type","Name","FaceUrl"]}}).then((function(e){e.data.successGroupList.forEach((function(e){var n="GROUP".concat(e.groupID);if(t._conversationMap.has(n)){var i=t._conversationMap.get(n);nt(i.groupProfile,e,[],[null,void 0,"",0,NaN]),!i.subType&&e.type&&(i.subType=e.type)}}))}))}}},{key:"_getConversationOptions",value:function(e){var t=this,n=[],i=e.filter((function(e){var t=e.lastMsg;return $e(t)})).filter((function(e){var t=e.type,n=e.userID;return 1===t&&"@TLS#NOT_FOUND"!==n&&"@TLS#ERROR"!==n||2===t})).map((function(e){if(1===e.type){var i={userID:e.userID,nick:e.peerNick,avatar:e.peerAvatar};return n.push(i),{conversationID:"C2C".concat(e.userID),type:"C2C",lastMessage:{lastTime:e.time,lastSequence:e.sequence,fromAccount:e.lastC2CMsgFromAccount,messageForShow:e.messageShow,type:e.lastMsg.elements[0]?e.lastMsg.elements[0].type:null,payload:e.lastMsg.elements[0]?e.lastMsg.elements[0].content:null,cloudCustomData:e.lastMsg.cloudCustomData||"",isRevoked:8===e.lastMessageFlag,onlineOnlyFlag:!1,nick:"",nameCard:""},userProfile:new Cs(i),peerReadTime:e.c2cPeerReadTime,isPinned:1===e.isPinned,messageRemindType:""}}return{conversationID:"GROUP".concat(e.groupID),type:"GROUP",lastMessage:s({lastTime:e.time,lastSequence:e.messageReadSeq+e.unreadCount,fromAccount:e.msgGroupFromAccount,messageForShow:e.messageShow},t._patchTypeAndPayload(e),{cloudCustomData:e.lastMsg.cloudCustomData||"",isRevoked:2===e.lastMessageFlag,onlineOnlyFlag:!1,nick:e.senderNick||"",nameCard:e.senderNameCard||""}),groupProfile:new Os({groupID:e.groupID,name:e.groupNick,avatar:e.groupImage}),unreadCount:e.unreadCount,peerReadTime:0,isPinned:1===e.isPinned,messageRemindType:""}}));return n.length>0&&this.getModule(zt).onConversationsProfileUpdated(n),i}},{key:"_patchTypeAndPayload",value:function(e){var t=e.lastMsg,n=t.event,i=void 0===n?void 0:n,r=t.elements,a=void 0===r?[]:r,o=t.groupTips,u=void 0===o?{}:o;if(!ze(i)&&!xt(u)){var c=new ns(u);c.setElement({type:E.MSG_GRP_TIP,content:s({},u.elements,{groupProfile:u.groupProfile})});var l=JSON.parse(JSON.stringify(c.payload));return c=null,{type:E.MSG_GRP_TIP,payload:l}}return{type:a[0]?a[0].type:null,payload:a[0]?a[0].content:null}}},{key:"getLocalMessageList",value:function(e){return this._messageListHandler.getLocalMessageList(e)}},{key:"deleteLocalMessage",value:function(e){e instanceof ns&&this._messageListHandler.remove(e)}},{key:"onConversationDeleted",value:function(e){var t=this;De.log("".concat(this._className,".onConversationDeleted")),We(e)&&e.forEach((function(e){var n=e.type,i=e.userID,r=e.groupID,a="";1===n?a="".concat(E.CONV_C2C).concat(i):2===n&&(a="".concat(E.CONV_GROUP).concat(r)),t.deleteLocalConversation(a)}))}},{key:"onConversationPinned",value:function(e){var t=this;if(We(e)){var n=!1;e.forEach((function(e){var i,r=e.type,a=e.userID,o=e.groupID;1===r?i=t.getLocalConversation("".concat(E.CONV_C2C).concat(a)):2===r&&(i=t.getLocalConversation("".concat(E.CONV_GROUP).concat(o))),i&&(De.log("".concat(t._className,".onConversationPinned conversationID:").concat(i.conversationID," isPinned:").concat(i.isPinned)),i.isPinned||(i.isPinned=!0,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:"onConversationUnpinned",value:function(e){var t=this;if(We(e)){var n=!1;e.forEach((function(e){var i,r=e.type,a=e.userID,o=e.groupID;1===r?i=t.getLocalConversation("".concat(E.CONV_C2C).concat(a)):2===r&&(i=t.getLocalConversation("".concat(E.CONV_GROUP).concat(o))),i&&(De.log("".concat(t._className,".onConversationUnpinned conversationID:").concat(i.conversationID," isPinned:").concat(i.isPinned)),i.isPinned&&(i.isPinned=!1,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:"getMessageList",value:function(e){var t=this,n=e.conversationID,i=e.nextReqMessageID,r=e.count,a="".concat(this._className,".getMessageList"),o=this.getLocalConversation(n),s="";if(o&&o.groupProfile&&(s=o.groupProfile.type),gt(s))return De.log("".concat(a," not available in avchatroom. conversationID:").concat(n)),hs({messageList:[],nextReqMessageID:"",isCompleted:!0});(ze(r)||r>15)&&(r=15);var u=this._computeLeftCount({conversationID:n,nextReqMessageID:i});return De.log("".concat(a," conversationID:").concat(n," leftCount:").concat(u," count:").concat(r," nextReqMessageID:").concat(i)),this._needGetHistory({conversationID:n,leftCount:u,count:r})?this.getHistoryMessages({conversationID:n,nextReqMessageID:i,count:20}).then((function(){return u=t._computeLeftCount({conversationID:n,nextReqMessageID:i}),is(t._computeResult({conversationID:n,nextReqMessageID:i,count:r,leftCount:u}))})):(De.log("".concat(a,".getMessageList get message list from memory")),this.modifyMessageList(n),hs(this._computeResult({conversationID:n,nextReqMessageID:i,count:r,leftCount:u})))}},{key:"_computeLeftCount",value:function(e){var t=e.conversationID,n=e.nextReqMessageID;return n?this._messageListHandler.getLocalMessageList(t).findIndex((function(e){return e.ID===n})):this._getMessageListSize(t)}},{key:"_getMessageListSize",value:function(e){return this._messageListHandler.getLocalMessageList(e).length}},{key:"_needGetHistory",value:function(e){var t=e.conversationID,n=e.leftCount,i=e.count,r=this.getLocalConversation(t),a="";return r&&r.groupProfile&&(a=r.groupProfile.type),!_t(t)&&!gt(a)&&n<i&&!this._completedMap.has(t)}},{key:"_computeResult",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,i=e.count,r=e.leftCount,a=this._computeMessageList({conversationID:t,nextReqMessageID:n,count:i}),o=this._computeIsCompleted({conversationID:t,leftCount:r,count:i}),s=this._computeNextReqMessageID({messageList:a,isCompleted:o,conversationID:t}),u="".concat(this._className,"._computeResult. conversationID:").concat(t);return De.log("".concat(u," leftCount:").concat(r," count:").concat(i," nextReqMessageID:").concat(s," isCompleted:").concat(o)),{messageList:a,nextReqMessageID:s,isCompleted:o}}},{key:"_computeMessageList",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,i=e.count,r=this._messageListHandler.getLocalMessageList(t),a=this._computeIndexEnd({nextReqMessageID:n,messageList:r}),o=this._computeIndexStart({indexEnd:a,count:i});return r.slice(o,a)}},{key:"_computeNextReqMessageID",value:function(e){var t=e.messageList,n=e.isCompleted,i=e.conversationID;if(!n)return 0===t.length?"":t[0].ID;var r=this._messageListHandler.getLocalMessageList(i);return 0===r.length?"":r[0].ID}},{key:"_computeIndexEnd",value:function(e){var t=e.messageList,n=void 0===t?[]:t,i=e.nextReqMessageID;return i?n.findIndex((function(e){return e.ID===i})):n.length}},{key:"_computeIndexStart",value:function(e){var t=e.indexEnd,n=e.count;return t>n?t-n:0}},{key:"_computeIsCompleted",value:function(e){var t=e.conversationID;return!!(e.leftCount<=e.count&&this._completedMap.has(t))}},{key:"getHistoryMessages",value:function(e){var t=e.conversationID,n=e.nextReqMessageID;if(t===E.CONV_SYSTEM)return hs();e.count?e.count>20&&(e.count=20):e.count=15;var i=this._messageListHandler.getLocalOldestMessageByConversationID(t);i||((i={}).time=0,i.sequence=0,0===t.indexOf(E.CONV_C2C)?(i.to=t.replace(E.CONV_C2C,""),i.conversationType=E.CONV_C2C):0===t.indexOf(E.CONV_GROUP)&&(i.to=t.replace(E.CONV_GROUP,""),i.conversationType=E.CONV_GROUP));var r="",a=null,o=this._roamingMessageKeyAndTimeMap.has(t);switch(i.conversationType){case E.CONV_C2C:return r=t.replace(E.CONV_C2C,""),(a=this.getModule(Kt))?a.getRoamingMessage({conversationID:e.conversationID,peerAccount:r,count:e.count,lastMessageTime:o?this._roamingMessageKeyAndTimeMap.get(t).lastMessageTime:0,messageKey:o?this._roamingMessageKeyAndTimeMap.get(t).messageKey:""}):fs({code:Ri.CANNOT_FIND_MODULE,message:zr});case E.CONV_GROUP:return(a=this.getModule(Yt))?a.getRoamingMessage({conversationID:e.conversationID,groupID:i.to,count:e.count,sequence:n&&!1===i._onlineOnlyFlag?i.sequence-1:i.sequence}):fs({code:Ri.CANNOT_FIND_MODULE,message:zr});default:return hs()}}},{key:"patchConversationLastMessage",value:function(e){var t=this.getLocalConversation(e);if(t){var n=t.lastMessage,i=n.messageForShow,r=n.payload;if(xt(i)||xt(r)){var a=this._messageListHandler.getLocalMessageList(e);if(0===a.length)return;var o=a[a.length-1];De.log("".concat(this._className,".patchConversationLastMessage conversationID:").concat(e," payload:"),o.payload),t.updateLastMessage(o)}}}},{key:"storeRoamingMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.startsWith(E.CONV_C2C)?E.CONV_C2C:E.CONV_GROUP,i=null,r=[],a=0,o=e.length,u=null,c=n===E.CONV_GROUP,l=this.getModule(rn),d=function(){a=c?e.length-1:0,o=c?0:e.length},h=function(){c?--a:++a},f=function(){return c?a>=o:a<o};for(d();f();h())if(c&&1===e[a].sequence&&this.setCompleted(t),1!==e[a].isPlaceMessage)if((i=new ns(e[a])).to=e[a].to,i.isSystemMessage=!!e[a].isSystemMessage,i.conversationType=n,4===e[a].event?u={type:E.MSG_GRP_TIP,content:s({},e[a].elements,{groupProfile:e[a].groupProfile})}:(e[a].elements=l.parseElements(e[a].elements,e[a].from),u=e[a].elements),c||i.setNickAndAvatar({nick:e[a].nick,avatar:e[a].avatar}),xt(u)){var p=new da(Pa);p.setMessage("from:".concat(i.from," to:").concat(i.to," sequence:").concat(i.sequence," event:").concat(e[a].event)),p.setNetworkType(this.getNetworkType()).setLevel("warning").end()}else i.setElement(u),i.reInitialize(this.getMyUserID()),r.push(i);return this._messageListHandler.unshift(r),d=h=f=null,r}},{key:"setMessageRead",value:function(e){var t=e.conversationID,n=(e.messageID,this.getLocalConversation(t));if(De.log("".concat(this._className,".setMessageRead conversationID:").concat(t," unreadCount:").concat(n?n.unreadCount:0)),!n)return hs();if(n.type!==E.CONV_GROUP||xt(n.groupAtInfoList)||this.deleteGroupAtTips(t),0===n.unreadCount)return hs();var i=this._messageListHandler.getLocalLastMessage(t),r=n.lastMessage.lastTime;i&&r<i.time&&(r=i.time);var a=n.lastMessage.lastSequence;i&&a<i.sequence&&(a=i.sequence);var o=null;switch(n.type){case E.CONV_C2C:return(o=this.getModule(Kt))?o.setMessageRead({conversationID:t,lastMessageTime:r}):fs({code:Ri.CANNOT_FIND_MODULE,message:zr});case E.CONV_GROUP:return(o=this._moduleManager.getModule(Yt))?o.setMessageRead({conversationID:t,lastMessageSeq:a}):fs({code:Ri.CANNOT_FIND_MODULE,message:zr});case E.CONV_SYSTEM:return n.unreadCount=0,this.emitConversationUpdate(!0,!1),hs();default:return hs()}}},{key:"setAllMessageRead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n="".concat(this._className,".setAllMessageRead");t.scope||(t.scope=E.READ_ALL_MSG),De.log("".concat(n," options:"),t);var i=this._createSetAllMessageReadPack(t);if(0===i.readAllC2CMessage&&0===i.groupMessageReadInfoList.length)return hs();var r=new da(za);return this.request({protocolName:ni,requestData:i}).then((function(n){var i=n.data,a=e._handleAllMessageRead(i);return r.setMessage("scope:".concat(t.scope," failureGroups:").concat(JSON.stringify(a))).setNetworkType(e.getNetworkType()).end(),hs()})).catch((function(t){return e.probeNetwork().then((function(e){var n=y(e,2),i=n[0],a=n[1];r.setError(t,i,a).end()})),De.warn("".concat(n," failed. error:"),t),fs({code:t&&t.code?t.code:Ri.MESSAGE_UNREAD_ALL_FAIL,message:t&&t.message?t.message:Zi})}))}},{key:"_getConversationLastMessageSequence",value:function(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),n=e.lastMessage.lastSequence;return t&&n<t.sequence&&(n=t.sequence),n}},{key:"_getConversationLastMessageTime",value:function(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),n=e.lastMessage.lastTime;return t&&n<t.time&&(n=t.time),n}},{key:"_createSetAllMessageReadPack",value:function(e){var t,n={readAllC2CMessage:0,groupMessageReadInfoList:[]},i=e.scope,r=M(this._conversationMap);try{for(r.s();!(t=r.n()).done;){var a=y(t.value,2)[1];if(a.unreadCount>0)if(a.type===E.CONV_C2C&&0===n.readAllC2CMessage){if(i===E.READ_ALL_MSG)n.readAllC2CMessage=1;else if(i===E.READ_ALL_C2C_MSG){n.readAllC2CMessage=1;break}}else if(a.type===E.CONV_GROUP&&(i===E.READ_ALL_GROUP_MSG||i===E.READ_ALL_MSG)){var o=this._getConversationLastMessageSequence(a);n.groupMessageReadInfoList.push({groupID:a.groupProfile.groupID,messageSequence:o})}}}catch(u){r.e(u)}finally{r.f()}return n}},{key:"onPushedAllMessageRead",value:function(e){this._handleAllMessageRead(e)}},{key:"_handleAllMessageRead",value:function(e){var t=e.groupMessageReadInfoList,n=e.readAllC2CMessage,i=this._parseGroupReadInfo(t);return this._updateAllConversationUnreadCount({readAllC2CMessage:n})>=1&&this.emitConversationUpdate(!0,!1),i}},{key:"_parseGroupReadInfo",value:function(e){var t=[];if(e&&e.length)for(var n=0,i=e.length;n<i;n++){var r=e[n],a=r.groupID,o=r.sequence,s=r.retCode,u=r.lastMessageSeq;ze(s)?this._remoteGroupReadSequenceMap.set(a,u):(this._remoteGroupReadSequenceMap.set(a,o),0!==s&&t.push("".concat(a,"-").concat(o,"-").concat(s)))}return t}},{key:"_updateAllConversationUnreadCount",value:function(e){var t,n=e.readAllC2CMessage,i=0,r=M(this._conversationMap);try{for(r.s();!(t=r.n()).done;){var a=y(t.value,2),o=a[0],s=a[1];if(s.unreadCount>=1){if(1===n&&s.type===E.CONV_C2C){var u=this._getConversationLastMessageTime(s);this.updateIsReadAfterReadReport({conversationID:o,lastMessageTime:u})}else if(s.type===E.CONV_GROUP){var c=o.replace(E.CONV_GROUP,"");if(this._remoteGroupReadSequenceMap.has(c)){var l=this._remoteGroupReadSequenceMap.get(c),d=this._getConversationLastMessageSequence(s);this.updateIsReadAfterReadReport({conversationID:o,remoteReadSequence:l}),d>=l&&this._remoteGroupReadSequenceMap.delete(c)}}this.updateUnreadCount(o,!1)&&(i+=1)}}}catch(f){r.e(f)}finally{r.f()}return i}},{key:"isRemoteRead",value:function(e){var t=e.conversationID,n=e.sequence,i=t.replace(E.CONV_GROUP,""),r=!1;if(this._remoteGroupReadSequenceMap.has(i)){var a=this._remoteGroupReadSequenceMap.get(i);n<=a&&(r=!0,De.log("".concat(this._className,".isRemoteRead conversationID:").concat(t," messageSequence:").concat(n," remoteReadSequence:").concat(a))),n>=a+10&&this._remoteGroupReadSequenceMap.delete(i)}return r}},{key:"updateIsReadAfterReadReport",value:function(e){var t=e.conversationID,n=e.lastMessageSeq,i=e.lastMessageTime,r=this._messageListHandler.getLocalMessageList(t);if(0!==r.length)for(var a,o=r.length-1;o>=0;o--)if(a=r[o],!(i&&a.time>i||n&&a.sequence>n)){if("in"===a.flow&&a.isRead)break;a.setIsRead(!0)}}},{key:"updateUnreadCount",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!1,i=this.getLocalConversation(e),r=this._messageListHandler.getLocalMessageList(e);if(i){var a=i.unreadCount,o=r.filter((function(e){return!e.isRead&&!e._onlineOnlyFlag&&!e.isDeleted})).length;return a!==o&&(i.unreadCount=o,n=!0,De.log("".concat(this._className,".updateUnreadCount from ").concat(a," to ").concat(o,", conversationID:").concat(e)),!0===t&&this.emitConversationUpdate(!0,!1)),n}}},{key:"recomputeGroupUnreadCount",value:function(e){var t=e.conversationID,n=e.count,i=this.getLocalConversation(t);if(i){var r=i.unreadCount,a=r-n;a<0&&(a=0),i.unreadCount=a,De.log("".concat(this._className,".recomputeGroupUnreadCount from ").concat(r," to ").concat(a,", conversationID:").concat(t))}}},{key:"updateIsRead",value:function(e){var t=this.getLocalConversation(e),n=this.getLocalMessageList(e);if(t&&0!==n.length&&!_t(t.type)){for(var i=[],r=0,a=n.length;r<a;r++)"in"!==n[r].flow?"out"!==n[r].flow||n[r].isRead||n[r].setIsRead(!0):i.push(n[r]);var o=0;if(t.type===E.CONV_C2C){var s=i.slice(-t.unreadCount).filter((function(e){return e.isRevoked})).length;o=i.length-t.unreadCount-s}else o=i.length-t.unreadCount;for(var u=0;u<o&&!i[u].isRead;u++)i[u].setIsRead(!0)}}},{key:"deleteGroupAtTips",value:function(e){var t="".concat(this._className,".deleteGroupAtTips");De.log("".concat(t));var n=this._conversationMap.get(e);if(!n)return Promise.resolve();var i=n.groupAtInfoList;if(0===i.length)return Promise.resolve();var r=this.getMyUserID();return this.request({protocolName:Gn,requestData:{messageListToDelete:i.map((function(e){return{from:e.from,to:r,messageSeq:e.__sequence,messageRandom:e.__random,groupID:e.groupID}}))}}).then((function(){return De.log("".concat(t," ok. count:").concat(i.length)),n.clearGroupAtInfoList(),Promise.resolve()})).catch((function(e){return De.error("".concat(t," failed. error:"),e),fs(e)}))}},{key:"appendToMessageList",value:function(e){this._messageListHandler.pushIn(e)}},{key:"setMessageRandom",value:function(e){this.singlyLinkedList.set(e.random)}},{key:"deleteMessageRandom",value:function(e){this.singlyLinkedList.delete(e.random)}},{key:"pushIntoMessageList",value:function(e,t,n){return!(!this._messageListHandler.pushIn(t,n)||this._isMessageFromCurrentInstance(t)&&!n)&&(e.push(t),!0)}},{key:"_isMessageFromCurrentInstance",value:function(e){return this.singlyLinkedList.has(e.random)}},{key:"revoke",value:function(e,t,n){return this._messageListHandler.revoke(e,t,n)}},{key:"getPeerReadTime",value:function(e){return this._peerReadTimeMap.get(e)}},{key:"recordPeerReadTime",value:function(e,t){this._peerReadTimeMap.has(e)?this._peerReadTimeMap.get(e)<t&&this._peerReadTimeMap.set(e,t):this._peerReadTimeMap.set(e,t)}},{key:"updateMessageIsPeerReadProperty",value:function(e,t){if(e.startsWith(E.CONV_C2C)&&t>0){var n=this._messageListHandler.updateMessageIsPeerReadProperty(e,t);n.length>0&&this.emitOuterEvent(C.MESSAGE_READ_BY_PEER,n)}}},{key:"updateMessageIsModifiedProperty",value:function(e){this._messageListHandler.updateMessageIsModifiedProperty(e)}},{key:"setCompleted",value:function(e){De.log("".concat(this._className,".setCompleted. conversationID:").concat(e)),this._completedMap.set(e,!0)}},{key:"updateRoamingMessageKeyAndTime",value:function(e,t,n){this._roamingMessageKeyAndTimeMap.set(e,{messageKey:t,lastMessageTime:n})}},{key:"getConversationList",value:function(e){var t=this,n="".concat(this._className,".getConversationList"),i="pagingStatus:".concat(this._pagingStatus,", local conversation count:").concat(this._conversationMap.size,", options:").concat(e);if(De.log("".concat(n,". ").concat(i)),this._pagingStatus===Rt.REJECTED){var r=new da(Ga);return r.setMessage(i),this._syncConversationList().then((function(){r.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return is({conversationList:n})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],a=n[1];r.setError(e,i,a).end()})),De.error("".concat(n," failed. error:"),e),fs(e)}))}if(0===this._conversationMap.size){var a=new da(Ga);return a.setMessage(i),this._syncConversationList().then((function(){a.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return is({conversationList:n})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];a.setError(e,i,r).end()})),De.error("".concat(n," failed. error:"),e),fs(e)}))}var o=this._getConversationList(e);return De.log("".concat(n,". returned conversation count:").concat(o.length)),hs({conversationList:o})}},{key:"_getConversationList",value:function(e){var t=this;if(ze(e))return this.getLocalConversationList();if(We(e)){var n=[];return e.forEach((function(e){if(t._conversationMap.has(e)){var i=t.getLocalConversation(e);n.push(i)}})),n}}},{key:"_handleC2CPeerReadTime",value:function(){var e,t=M(this._conversationMap);try{for(t.s();!(e=t.n()).done;){var n=y(e.value,2),i=n[0],r=n[1];r.type===E.CONV_C2C&&(De.debug("".concat(this._className,"._handleC2CPeerReadTime conversationID:").concat(i," peerReadTime:").concat(r.peerReadTime)),this.recordPeerReadTime(i,r.peerReadTime))}}catch(o){t.e(o)}finally{t.f()}}},{key:"getConversationProfile",value:function(e){var t,n=this;if((t=this._conversationMap.has(e)?this._conversationMap.get(e):new Ls({conversationID:e,type:e.slice(0,3)===E.CONV_C2C?E.CONV_C2C:E.CONV_GROUP}))._isInfoCompleted||t.type===E.CONV_SYSTEM)return hs({conversation:t});var i=new da(qa),r="".concat(this._className,".getConversationProfile");return De.log("".concat(r,". conversationID:").concat(e," remark:").concat(t.remark," lastMessage:"),t.lastMessage),this._updateUserOrGroupProfileCompletely(t).then((function(a){i.setNetworkType(n.getNetworkType()).setMessage("conversationID:".concat(e," unreadCount:").concat(a.data.conversation.unreadCount)).end();var o=n.getModule(Xt);if(o&&t.type===E.CONV_C2C){var s=e.replace(E.CONV_C2C,"");if(o.isMyFriend(s)){var u=o.getFriendRemark(s);t.remark!==u&&(t.remark=u,De.log("".concat(r,". conversationID:").concat(e," patch remark:").concat(t.remark)))}}return De.log("".concat(r," ok. conversationID:").concat(e)),a})).catch((function(t){return n.probeNetwork().then((function(n){var r=y(n,2),a=r[0],o=r[1];i.setError(t,a,o).setMessage("conversationID:".concat(e)).end()})),De.error("".concat(r," failed. error:"),t),fs(t)}))}},{key:"_updateUserOrGroupProfileCompletely",value:function(e){var t=this;return e.type===E.CONV_C2C?this.getModule(zt).getUserProfile({userIDList:[e.toAccount]}).then((function(n){var i=n.data;return 0===i.length?fs(new cs({code:Ri.USER_OR_GROUP_NOT_FOUND,message:_r})):(e.userProfile=i[0],e._isInfoCompleted=!0,t._unshiftConversation(e),hs({conversation:e}))})):this.getModule(Yt).getGroupProfile({groupID:e.toAccount}).then((function(n){return e.groupProfile=n.data.group,e._isInfoCompleted=!0,t._unshiftConversation(e),hs({conversation:e})}))}},{key:"_unshiftConversation",value:function(e){e instanceof Ls&&!this._conversationMap.has(e.conversationID)&&(this._conversationMap=new Map([[e.conversationID,e]].concat(_(this._conversationMap))),this._setStorageConversationList(),this.emitConversationUpdate(!0,!1))}},{key:"_onProfileUpdated",value:function(e){var t=this;e.data.forEach((function(e){var n=e.userID;if(n===t.getMyUserID())t._onMyProfileModified({latestNick:e.nick,latestAvatar:e.avatar});else{var i=t._conversationMap.get("".concat(E.CONV_C2C).concat(n));i&&(i.userProfile=e)}}))}},{key:"deleteConversation",value:function(e){var t=this,n={fromAccount:this.getMyUserID(),toAccount:void 0,type:void 0};if(!this._conversationMap.has(e)){var i=new cs({code:Ri.CONVERSATION_NOT_FOUND,message:yr});return fs(i)}switch(this._conversationMap.get(e).type){case E.CONV_C2C:n.type=1,n.toAccount=e.replace(E.CONV_C2C,"");break;case E.CONV_GROUP:n.type=2,n.toGroupID=e.replace(E.CONV_GROUP,"");break;case E.CONV_SYSTEM:return this.getModule(Yt).deleteGroupSystemNotice({messageList:this._messageListHandler.getLocalMessageList(e)}),this.deleteLocalConversation(e),hs({conversationID:e});default:var r=new cs({code:Ri.CONVERSATION_UN_RECORDED_TYPE,message:br});return fs(r)}var a=new da(Va);a.setMessage("conversationID:".concat(e));var o="".concat(this._className,".deleteConversation");return De.log("".concat(o,". conversationID:").concat(e)),this.setMessageRead({conversationID:e}).then((function(){return t.request({protocolName:Fn,requestData:n})})).then((function(){return a.setNetworkType(t.getNetworkType()).end(),De.log("".concat(o," ok")),t.deleteLocalConversation(e),hs({conversationID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];a.setError(e,i,r).end()})),De.error("".concat(o," failed. error:"),e),fs(e)}))}},{key:"pinConversation",value:function(e){var t=this,n=e.conversationID,i=e.isPinned;if(!this._conversationMap.has(n))return fs({code:Ri.CONVERSATION_NOT_FOUND,message:yr});var r=this.getLocalConversation(n);if(r.isPinned===i)return hs({conversationID:n});var a=new da(Ha);a.setMessage("conversationID:".concat(n," isPinned:").concat(i));var o="".concat(this._className,".pinConversation");De.log("".concat(o,". conversationID:").concat(n," isPinned:").concat(i));var s=null;return vt(n)?s={type:1,toAccount:n.replace(E.CONV_C2C,"")}:yt(n)&&(s={type:2,groupID:n.replace(E.CONV_GROUP,"")}),this.request({protocolName:Bn,requestData:{fromAccount:this.getMyUserID(),operationType:!0===i?1:2,itemList:[s]}}).then((function(){return a.setNetworkType(t.getNetworkType()).end(),De.log("".concat(o," ok")),r.isPinned!==i&&(r.isPinned=i,t._sortConversationListAndEmitEvent()),is({conversationID:n})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];a.setError(e,i,r).end()})),De.error("".concat(o," failed. error:"),e),fs(e)}))}},{key:"setMessageRemindType",value:function(e){return this._messageRemindHandler.set(e)}},{key:"patchMessageRemindType",value:function(e){var t=e.ID,n=e.isC2CConversation,i=e.messageRemindType,r=!1,a=this.getLocalConversation(n?"".concat(E.CONV_C2C).concat(t):"".concat(E.CONV_GROUP).concat(t));return a&&a.messageRemindType!==i&&(a.messageRemindType=i,r=!0),r}},{key:"onC2CMessageRemindTypeSynced",value:function(e){var t=this;De.debug("".concat(this._className,".onC2CMessageRemindTypeSynced options:"),e),e.dataList.forEach((function(e){if(!xt(e.muteNotificationsSync)){var n,i=e.muteNotificationsSync,r=i.to,a=i.updateSequence,o=i.muteFlag;t._messageRemindHandler.setUpdateSequence(a),0===o?n=E.MSG_REMIND_ACPT_AND_NOTE:1===o?n=E.MSG_REMIND_DISCARD:2===o&&(n=E.MSG_REMIND_ACPT_NOT_NOTE);var s=0;t.patchMessageRemindType({ID:r,isC2CConversation:!0,messageRemindType:n})&&(s+=1),De.log("".concat(t._className,".onC2CMessageRemindTypeSynced updateCount:").concat(s)),s>=1&&t.emitConversationUpdate(!0,!1)}}))}},{key:"deleteLocalConversation",value:function(e){var t=this._conversationMap.has(e);De.log("".concat(this._className,".deleteLocalConversation conversationID:").concat(e," has:").concat(t)),t&&(this._conversationMap.delete(e),this._roamingMessageKeyAndTimeMap.delete(e),this._setStorageConversationList(),this._messageListHandler.removeByConversationID(e),this._completedMap.delete(e),this.emitConversationUpdate(!0,!1))}},{key:"isMessageSentByCurrentInstance",value:function(e){return!(!this._messageListHandler.hasLocalMessage(e.conversationID,e.ID)&&!this.singlyLinkedList.has(e.random))}},{key:"modifyMessageList",value:function(e){if(e.startsWith(E.CONV_C2C)&&this._conversationMap.has(e)){var t=this._conversationMap.get(e),n=Date.now();this._messageListHandler.modifyMessageSentByPeer({conversationID:e,latestNick:t.userProfile.nick,latestAvatar:t.userProfile.avatar});var i=this.getModule(zt).getNickAndAvatarByUserID(this.getMyUserID());this._messageListHandler.modifyMessageSentByMe({conversationID:e,latestNick:i.nick,latestAvatar:i.avatar}),De.log("".concat(this._className,".modifyMessageList conversationID:").concat(e," cost ").concat(Date.now()-n," ms"))}}},{key:"updateUserProfileSpecifiedKey",value:function(e){De.log("".concat(this._className,".updateUserProfileSpecifiedKey options:"),e);var t=e.conversationID,n=e.nick,i=e.avatar;if(this._conversationMap.has(t)){var r=this._conversationMap.get(t).userProfile;Ve(n)&&r.nick!==n&&(r.nick=n),Ve(i)&&r.avatar!==i&&(r.avatar=i),this.emitConversationUpdate(!0,!1)}}},{key:"_onMyProfileModified",value:function(e){var t=this,n=this.getLocalConversationList(),i=Date.now();n.forEach((function(n){t.modifyMessageSentByMe(s({conversationID:n.conversationID},e))})),De.log("".concat(this._className,"._onMyProfileModified. modify all messages sent by me, cost ").concat(Date.now()-i," ms"))}},{key:"modifyMessageSentByMe",value:function(e){this._messageListHandler.modifyMessageSentByMe(e)}},{key:"getLatestMessageSentByMe",value:function(e){return this._messageListHandler.getLatestMessageSentByMe(e)}},{key:"modifyMessageSentByPeer",value:function(e){this._messageListHandler.modifyMessageSentByPeer(e)}},{key:"getLatestMessageSentByPeer",value:function(e){return this._messageListHandler.getLatestMessageSentByPeer(e)}},{key:"pushIntoNoticeResult",value:function(e,t){return!(!this._messageListHandler.pushIn(t)||this.singlyLinkedList.has(t.random))&&(e.push(t),!0)}},{key:"getGroupLocalLastMessageSequence",value:function(e){return this._messageListHandler.getGroupLocalLastMessageSequence(e)}},{key:"checkAndPatchRemark",value:function(){var e=Promise.resolve();if(0===this._conversationMap.size)return e;var t=this.getModule(Xt);if(!t)return e;var n=_(this._conversationMap.values()).filter((function(e){return e.type===E.CONV_C2C}));if(0===n.length)return e;var i=0;return n.forEach((function(e){var n=e.conversationID.replace(E.CONV_C2C,"");if(t.isMyFriend(n)){var r=t.getFriendRemark(n);e.remark!==r&&(e.remark=r,i+=1)}})),De.log("".concat(this._className,".checkAndPatchRemark. c2c conversation count:").concat(n.length,", patched count:").concat(i)),e}},{key:"reset",value:function(){De.log("".concat(this._className,".reset")),this._pagingStatus=Rt.NOT_START,this._messageListHandler.reset(),this._messageRemindHandler.reset(),this._roamingMessageKeyAndTimeMap.clear(),this.singlyLinkedList.reset(),this._peerReadTimeMap.clear(),this._completedMap.clear(),this._conversationMap.clear(),this._pagingTimeStamp=0,this._pagingStartIndex=0,this._pagingPinnedTimeStamp=0,this._pagingPinnedStartIndex=0,this._remoteGroupReadSequenceMap.clear(),this.resetReady()}}]),i}(mn),Rs=function(){function e(t){n(this,e),this._groupModule=t,this._className="GroupTipsHandler",this._cachedGroupTipsMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4}return r(e,[{key:"onCheckTimer",value:function(e){e%1==0&&this._cachedGroupTipsMap.size>0&&this._checkCachedGroupTips()}},{key:"_checkCachedGroupTips",value:function(){var e=this;this._cachedGroupTipsMap.forEach((function(t,n){var i=e._checkCountMap.get(n),r=e._groupModule.hasLocalGroup(n);De.log("".concat(e._className,"._checkCachedGroupTips groupID:").concat(n," hasLocalGroup:").concat(r," checkCount:").concat(i)),r?(e._notifyCachedGroupTips(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):i>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupTips(n),e._checkCountMap.delete(n)):(i++,e._checkCountMap.set(n,i))}))}},{key:"onNewGroupTips",value:function(e){De.debug("".concat(this._className,".onReceiveGroupTips count:").concat(e.dataList.length));var t=this.newGroupTipsStoredAndSummary(e),n=t.eventDataList,i=t.result,r=t.AVChatRoomMessageList;r.length>0&&this._groupModule.onAVChatRoomMessage(r),n.length>0&&(this._groupModule.getModule(Qt).onNewMessage({conversationOptionsList:n,isInstantMessage:!0}),this._groupModule.updateNextMessageSeq(n)),i.length>0&&(this._groupModule.emitOuterEvent(C.MESSAGE_RECEIVED,i),this.handleMessageList(i))}},{key:"newGroupTipsStoredAndSummary",value:function(e){for(var t=e.event,n=e.dataList,i=null,r=[],a=[],o={},u=[],c=0,l=n.length;c<l;c++){var d=n[c],h=d.groupProfile.groupID,f=this._groupModule.hasLocalGroup(h);if(f||!this._groupModule.isUnjoinedAVChatRoom(h))if(f)if(this._groupModule.isMessageFromAVChatroom(h)){var p=ht(d);p.event=t,u.push(p)}else{d.currentUser=this._groupModule.getMyUserID(),d.conversationType=E.CONV_GROUP,(i=new ns(d)).setElement({type:E.MSG_GRP_TIP,content:s({},d.elements,{groupProfile:d.groupProfile})}),i.isSystemMessage=!1;var g=this._groupModule.getModule(Qt),m=i,v=m.conversationID,y=m.sequence;if(6===t)i._onlineOnlyFlag=!0,a.push(i);else if(!g.pushIntoNoticeResult(a,i))continue;if(6!==t||!g.getLocalConversation(v)){6!==t&&this._groupModule.getModule(pn).addMessageSequence({key:ra,message:i});var _=g.isRemoteRead({conversationID:v,sequence:y});if(ze(o[v]))o[v]=r.push({conversationID:v,unreadCount:"in"!==i.flow||i._onlineOnlyFlag||_?0:1,type:i.conversationType,subType:i.conversationSubType,lastMessage:i})-1;else{var b=o[v];r[b].type=i.conversationType,r[b].subType=i.conversationSubType,r[b].lastMessage=i,"in"!==i.flow||i._onlineOnlyFlag||_||r[b].unreadCount++}}}else this._cacheGroupTipsAndProbe({groupID:h,event:t,item:d})}return{eventDataList:r,result:a,AVChatRoomMessageList:u}}},{key:"handleMessageList",value:function(e){var t=this;e.forEach((function(e){switch(e.payload.operationType){case 1:t._onNewMemberComeIn(e);break;case 2:t._onMemberQuit(e);break;case 3:t._onMemberKickedOut(e);break;case 4:t._onMemberSetAdmin(e);break;case 5:t._onMemberCancelledAdmin(e);break;case 6:t._onGroupProfileModified(e);break;case 7:t._onMemberInfoModified(e);break;default:De.warn("".concat(t._className,".handleMessageList unknown operationType:").concat(e.payload.operationType))}}))}},{key:"_onNewMemberComeIn",value:function(e){var t=e.payload,n=t.memberNum,i=t.groupProfile.groupID,r=this._groupModule.getLocalGroupProfile(i);r&&qe(n)&&(r.memberNum=n)}},{key:"_onMemberQuit",value:function(e){var t=e.payload,n=t.memberNum,i=t.groupProfile.groupID,r=this._groupModule.getLocalGroupProfile(i);r&&qe(n)&&(r.memberNum=n),this._groupModule.deleteLocalGroupMembers(i,e.payload.userIDList)}},{key:"_onMemberKickedOut",value:function(e){var t=e.payload,n=t.memberNum,i=t.groupProfile.groupID,r=this._groupModule.getLocalGroupProfile(i);r&&qe(n)&&(r.memberNum=n),this._groupModule.deleteLocalGroupMembers(i,e.payload.userIDList)}},{key:"_onMemberSetAdmin",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,i=this._groupModule.getModule(Jt);n.forEach((function(e){var n=i.getLocalGroupMemberInfo(t,e);n&&n.updateRole(E.GRP_MBR_ROLE_ADMIN)}))}},{key:"_onMemberCancelledAdmin",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,i=this._groupModule.getModule(Jt);n.forEach((function(e){var n=i.getLocalGroupMemberInfo(t,e);n&&n.updateRole(E.GRP_MBR_ROLE_MEMBER)}))}},{key:"_onGroupProfileModified",value:function(e){var t=this,n=e.payload,i=n.newGroupProfile,r=n.groupProfile.groupID,a=this._groupModule.getLocalGroupProfile(r);Object.keys(i).forEach((function(e){switch(e){case"ownerID":t._ownerChanged(a,i);break;default:a[e]=i[e]}})),this._groupModule.emitGroupListUpdate(!0,!0)}},{key:"_ownerChanged",value:function(e,t){var n=e.groupID,i=this._groupModule.getLocalGroupProfile(n),r=this._groupModule.getMyUserID();if(r===t.ownerID){i.updateGroup({selfInfo:{role:E.GRP_MBR_ROLE_OWNER}});var a=this._groupModule.getModule(Jt),o=a.getLocalGroupMemberInfo(n,r),s=this._groupModule.getLocalGroupProfile(n).ownerID,u=a.getLocalGroupMemberInfo(n,s);o&&o.updateRole(E.GRP_MBR_ROLE_OWNER),u&&u.updateRole(E.GRP_MBR_ROLE_MEMBER)}}},{key:"_onMemberInfoModified",value:function(e){var t=e.payload.groupProfile.groupID,n=this._groupModule.getModule(Jt);e.payload.memberList.forEach((function(e){var i=n.getLocalGroupMemberInfo(t,e.userID);i&&qe(e.muteTime)&&i.updateMuteUntil(e.muteTime)}))}},{key:"_cacheGroupTips",value:function(e,t){this._cachedGroupTipsMap.has(e)||this._cachedGroupTipsMap.set(e,[]),this._cachedGroupTipsMap.get(e).push(t)}},{key:"_deleteCachedGroupTips",value:function(e){this._cachedGroupTipsMap.has(e)&&this._cachedGroupTipsMap.delete(e)}},{key:"_notifyCachedGroupTips",value:function(e){var t=this,n=this._cachedGroupTipsMap.get(e)||[];n.forEach((function(e){t.onNewGroupTips(e)})),this._deleteCachedGroupTips(e),De.log("".concat(this._className,"._notifyCachedGroupTips groupID:").concat(e," count:").concat(n.length))}},{key:"_cacheGroupTipsAndProbe",value:function(e){var t=this,n=e.groupID,i=e.event,r=e.item;this._cacheGroupTips(n,{event:i,dataList:[r]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===E.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(n)?t._notifyCachedGroupTips(n):t._groupModule.setUnjoinedAVChatRoom(n):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupTips(n))})),this._checkCountMap.has(n)||this._checkCountMap.set(n,0),De.log("".concat(this._className,"._cacheGroupTipsAndProbe groupID:").concat(n))}},{key:"reset",value:function(){this._cachedGroupTipsMap.clear(),this._checkCountMap.clear()}}]),e}(),js=function(){function e(t){n(this,e),this._groupModule=t,this._className="CommonGroupHandler",this.tempConversationList=null,this._cachedGroupMessageMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4,t.getInnerEmitterInstance().once(ms,this._initGroupList,this)}return r(e,[{key:"onCheckTimer",value:function(e){e%1==0&&this._cachedGroupMessageMap.size>0&&this._checkCachedGroupMessage()}},{key:"_checkCachedGroupMessage",value:function(){var e=this;this._cachedGroupMessageMap.forEach((function(t,n){var i=e._checkCountMap.get(n),r=e._groupModule.hasLocalGroup(n);De.log("".concat(e._className,"._checkCachedGroupMessage groupID:").concat(n," hasLocalGroup:").concat(r," checkCount:").concat(i)),r?(e._notifyCachedGroupMessage(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):i>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupMessage(n),e._checkCountMap.delete(n)):(i++,e._checkCountMap.set(n,i))}))}},{key:"_initGroupList",value:function(){var e=this;De.log("".concat(this._className,"._initGroupList"));var t=new da(oo),n=this._groupModule.getStorageGroupList();if(We(n)&&n.length>0){n.forEach((function(t){e._groupModule.initGroupMap(t)})),this._groupModule.emitGroupListUpdate(!0,!1);var i=this._groupModule.getLocalGroupList().length;t.setNetworkType(this._groupModule.getNetworkType()).setMessage("group count:".concat(i)).end()}else t.setNetworkType(this._groupModule.getNetworkType()).setMessage("group count:0").end();De.log("".concat(this._className,"._initGroupList ok"))}},{key:"handleUpdateGroupLastMessage",value:function(e){var t="".concat(this._className,".handleUpdateGroupLastMessage");if(De.debug("".concat(t," conversation count:").concat(e.length,", local group count:").concat(this._groupModule.getLocalGroupList().length)),0!==this._groupModule.getGroupMap().size){for(var n,i,r,a=!1,o=0,s=e.length;o<s;o++)(n=e[o]).type===E.CONV_GROUP&&(i=n.conversationID.split(/^GROUP/)[1],(r=this._groupModule.getLocalGroupProfile(i))&&(r.lastMessage=n.lastMessage,a=!0));a&&(this._groupModule.sortLocalGroupList(),this._groupModule.emitGroupListUpdate(!0,!1))}else this.tempConversationList=e}},{key:"onNewGroupMessage",value:function(e){De.debug("".concat(this._className,".onNewGroupMessage count:").concat(e.dataList.length));var t=this._newGroupMessageStoredAndSummary(e),n=t.conversationOptionsList,i=t.messageList,r=t.AVChatRoomMessageList;r.length>0&&this._groupModule.onAVChatRoomMessage(r),this._groupModule.filterModifiedMessage(i),n.length>0&&(this._groupModule.getModule(Qt).onNewMessage({conversationOptionsList:n,isInstantMessage:!0}),this._groupModule.updateNextMessageSeq(n));var a=this._groupModule.filterUnmodifiedMessage(i);a.length>0&&this._groupModule.emitOuterEvent(C.MESSAGE_RECEIVED,a),i.length=0}},{key:"_newGroupMessageStoredAndSummary",value:function(e){var t=e.dataList,n=e.event,i=e.isInstantMessage,r=null,a=[],o=[],s=[],u={},c=E.CONV_GROUP,l=this._groupModule.getModule(rn),d=this._groupModule.getModule(pn),h=t.length;h>1&&t.sort((function(e,t){return e.sequence-t.sequence}));for(var f=0;f<h;f++){var p=t[f],g=p.groupProfile.groupID,m=this._groupModule.hasLocalGroup(g);if(m||!this._groupModule.isUnjoinedAVChatRoom(g))if(m)if(this._groupModule.isMessageFromAVChatroom(g)){var v=ht(p);v.event=n,s.push(v)}else{p.currentUser=this._groupModule.getMyUserID(),p.conversationType=c,p.isSystemMessage=!!p.isSystemMessage,r=new ns(p),p.elements=l.parseElements(p.elements,p.from),r.setElement(p.elements);var y=1===t[f].isModified,_=this._groupModule.getModule(Qt);if(_.isMessageSentByCurrentInstance(r)?r.isModified=y:y=!1,1===p.onlineOnlyFlag)r._onlineOnlyFlag=!0,o.push(r);else{if(!_.pushIntoMessageList(o,r,y))continue;d.addMessageSequence({key:ra,message:r}),i&&r.clientTime>0&&d.addMessageDelay(r.clientTime);var b=r,T=b.conversationID,S=b.sequence,w=_.isRemoteRead({conversationID:T,sequence:S});if(ze(u[T])){var k=0;"in"===r.flow&&(r._isExcludedFromUnreadCount||w||(k=1)),u[T]=a.push({conversationID:T,unreadCount:k,type:r.conversationType,subType:r.conversationSubType,lastMessage:r._isExcludedFromLastMessage?"":r})-1}else{var M=u[T];a[M].type=r.conversationType,a[M].subType=r.conversationSubType,a[M].lastMessage=r._isExcludedFromLastMessage?"":r,"in"===r.flow&&(r._isExcludedFromUnreadCount||w||a[M].unreadCount++)}}}else this._cacheGroupMessageAndProbe({groupID:g,event:n,item:p})}return{conversationOptionsList:a,messageList:o,AVChatRoomMessageList:s}}},{key:"onGroupMessageRevoked",value:function(e){De.debug("".concat(this._className,".onGroupMessageRevoked nums:").concat(e.dataList.length));var t=this._groupModule.getModule(Qt),n=[],i=null;e.dataList.forEach((function(e){var r=e.elements.revokedInfos;ze(r)||r.forEach((function(e){(i=t.revoke("GROUP".concat(e.groupID),e.sequence,e.random))&&n.push(i)}))})),0!==n.length&&(t.onMessageRevoked(n),this._groupModule.emitOuterEvent(C.MESSAGE_REVOKED,n))}},{key:"_groupListTreeShaking",value:function(e){for(var t=new Map(_(this._groupModule.getGroupMap())),n=0,i=e.length;n<i;n++)t.delete(e[n].groupID);this._groupModule.hasJoinedAVChatRoom()&&this._groupModule.getJoinedAVChatRoom().forEach((function(e){t.delete(e)}));for(var r=_(t.keys()),a=0,o=r.length;a<o;a++)this._groupModule.deleteGroup(r[a])}},{key:"getGroupList",value:function(e){var t=this,n="".concat(this._className,".getGroupList"),i=new da(ro);De.log("".concat(n));var r={introduction:"Introduction",notification:"Notification",createTime:"CreateTime",ownerID:"Owner_Account",lastInfoTime:"LastInfoTime",memberNum:"MemberNum",maxMemberNum:"MaxMemberNum",joinOption:"ApplyJoinOption",muteAllMembers:"ShutUpAllMember"},a=["Type","Name","FaceUrl","NextMsgSeq","LastMsgTime"],o=[];return e&&e.groupProfileFilter&&e.groupProfileFilter.forEach((function(e){r[e]&&a.push(r[e])})),this._pagingGetGroupList({limit:50,offset:0,groupBaseInfoFilter:a,groupList:o}).then((function(){De.log("".concat(n," ok. count:").concat(o.length)),t._groupListTreeShaking(o),t._groupModule.updateGroupMap(o);var e=t._groupModule.getLocalGroupList().length;return i.setNetworkType(t._groupModule.getNetworkType()).setMessage("remote count:".concat(o.length,", after tree shaking, local count:").concat(e)).end(),t.tempConversationList&&(De.log("".concat(n," update last message with tempConversationList, count:").concat(t.tempConversationList.length)),t.handleUpdateGroupLastMessage({data:t.tempConversationList}),t.tempConversationList=null),t._groupModule.emitGroupListUpdate(),t._groupModule.patchGroupMessageRemindType(),t._groupModule.recomputeUnreadCount(),is({groupList:t._groupModule.getLocalGroupList()})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=y(t,2),r=n[0],a=n[1];i.setError(e,r,a).end()})),De.error("".concat(n," failed. error:"),e),fs(e)}))}},{key:"_pagingGetGroupList",value:function(e){var t=this,n="".concat(this._className,"._pagingGetGroupList"),i=e.isCommunityRelay,r=void 0!==i&&i,a=e.limit,o=e.offset,s=e.groupBaseInfoFilter,u=e.groupList,c=new da(co);return this._groupModule.request({protocolName:qn,requestData:{type:r?E.GRP_COMMUNITY:void 0,memberAccount:this._groupModule.getMyUserID(),limit:a,offset:o,responseFilter:{groupBaseInfoFilter:s,selfInfoFilter:["Role","JoinTime","MsgFlag","MsgSeq"]}}}).then((function(e){var i=e.data,l=i.groups,d=i.totalCount;u.push.apply(u,_(l));var h=o+a,f=!(d>h),p="offset:".concat(o," totalCount:").concat(d," isCompleted:").concat(f," ")+"currentCount:".concat(u.length," isCommunityRelay:").concat(r);return c.setNetworkType(t._groupModule.getNetworkType()).setMessage("".concat(p)).end(),r||f?!r&&f?(De.log("".concat(n," start to get community list")),o=0,t._pagingGetGroupList({limit:a,offset:o,groupBaseInfoFilter:s,groupList:u,isCommunityRelay:!0})):r&&!f?(o=h,t._pagingGetGroupList({limit:a,offset:o,groupBaseInfoFilter:s,groupList:u,isCommunityRelay:!0})):(De.log("".concat(n," ok. totalCount:").concat(u.length)),is({groupList:u})):(o=h,t._pagingGetGroupList({limit:a,offset:o,groupBaseInfoFilter:s,groupList:u}))})).catch((function(e){return 11e3!==e.code&&t._groupModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0],a=n[1];c.setMessage("isCommunityRelay:".concat(r)).setError(e,i,a).end()})),r?(11e3===e.code&&(c=null,De.log("".concat(n," ok. community unavailable"))),hs({groupList:u})):fs(e)}))}},{key:"_cacheGroupMessage",value:function(e,t){this._cachedGroupMessageMap.has(e)||this._cachedGroupMessageMap.set(e,[]),this._cachedGroupMessageMap.get(e).push(t)}},{key:"_deleteCachedGroupMessage",value:function(e){this._cachedGroupMessageMap.has(e)&&this._cachedGroupMessageMap.delete(e)}},{key:"_notifyCachedGroupMessage",value:function(e){var t=this,n=this._cachedGroupMessageMap.get(e)||[];n.forEach((function(e){t.onNewGroupMessage(e)})),this._deleteCachedGroupMessage(e),De.log("".concat(this._className,"._notifyCachedGroupMessage groupID:").concat(e," count:").concat(n.length))}},{key:"_cacheGroupMessageAndProbe",value:function(e){var t=this,n=e.groupID,i=e.event,r=e.item;this._cacheGroupMessage(n,{event:i,dataList:[r]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===E.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(n)?t._notifyCachedGroupMessage(n):t._groupModule.setUnjoinedAVChatRoom(n):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupMessage(n))})),this._checkCountMap.has(n)||this._checkCountMap.set(n,0),De.log("".concat(this._className,"._cacheGroupMessageAndProbe groupID:").concat(n))}},{key:"reset",value:function(){this._cachedGroupMessageMap.clear(),this._checkCountMap.clear(),this._groupModule.getInnerEmitterInstance().once(ms,this._initGroupList,this)}}]),e}(),Us={1:"init",2:"modify",3:"clear",4:"delete"},Fs=function(){function e(t){n(this,e),this._groupModule=t,this._className="GroupAttributesHandler",this._groupAttributesMap=new Map,this.CACHE_EXPIRE_TIME=3e4,this._groupModule.getInnerEmitterInstance().on(vs,this._onCloudConfigUpdated,this)}return r(e,[{key:"_onCloudConfigUpdated",value:function(){var e=this._groupModule.getCloudConfig("grp_attr_cache_time");ze(e)||(this.CACHE_EXPIRE_TIME=Number(e))}},{key:"updateLocalMainSequenceOnReconnected",value:function(){this._groupAttributesMap.forEach((function(e){e.localMainSequence=0}))}},{key:"onGroupAttributesUpdated",value:function(e){var t=this,n=e.groupID,i=e.groupAttributeOption,r=i.mainSequence,a=i.hasChangedAttributeInfo,o=i.groupAttributeList,s=void 0===o?[]:o,u=i.operationType;if(De.log("".concat(this._className,".onGroupAttributesUpdated. hasChangedAttributeInfo:").concat(a," operationType:").concat(u)),!ze(u)){if(1===a){if(4===u){var c=[];s.forEach((function(e){c.push(e.key)})),s=_(c),c=null}return this._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:r,groupAttributeList:s,operationType:Us[u]}),void this._emitGroupAttributesUpdated(n)}if(this._groupAttributesMap.has(n)){var l=this._groupAttributesMap.get(n).avChatRoomKey;this._getGroupAttributes({groupID:n,avChatRoomKey:l}).then((function(){t._emitGroupAttributesUpdated(n)}))}}}},{key:"initGroupAttributesCache",value:function(e){var t=e.groupID,n=e.avChatRoomKey;this._groupAttributesMap.set(t,{lastUpdateTime:0,localMainSequence:0,remoteMainSequence:0,attributes:new Map,avChatRoomKey:n}),De.log("".concat(this._className,".initGroupAttributesCache groupID:").concat(t," avChatRoomKey:").concat(n))}},{key:"initGroupAttributes",value:function(e){var t=this,n=e.groupID,i=e.groupAttributes,r=this._checkCachedGroupAttributes({groupID:n,funcName:"initGroupAttributes"});if(!0!==r)return fs(r);var a=this._groupAttributesMap.get(n),o=a.remoteMainSequence,s=a.avChatRoomKey,u=new da(fo);return u.setMessage("groupID:".concat(n," mainSequence:").concat(o," groupAttributes:").concat(JSON.stringify(i))),this._groupModule.request({protocolName:li,requestData:{groupID:n,avChatRoomKey:s,mainSequence:o,groupAttributeList:this._transformGroupAttributes(i)}}).then((function(e){var r=e.data,a=r.mainSequence,o=_(r.groupAttributeList);return o.forEach((function(e){e.value=i[e.key]})),t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:a,groupAttributeList:o,operationType:"init"}),u.setNetworkType(t._groupModule.getNetworkType()).end(),De.log("".concat(t._className,".initGroupAttributes ok. groupID:").concat(n)),is({groupAttributes:i})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];u.setError(e,i,r).end()})),fs(e)}))}},{key:"setGroupAttributes",value:function(e){var t=this,n=e.groupID,i=e.groupAttributes,r=this._checkCachedGroupAttributes({groupID:n,funcName:"setGroupAttributes"});if(!0!==r)return fs(r);var a=this._groupAttributesMap.get(n),o=a.remoteMainSequence,s=a.avChatRoomKey,u=a.attributes,c=this._transformGroupAttributes(i);c.forEach((function(e){var t=e.key;e.sequence=0,u.has(t)&&(e.sequence=u.get(t).sequence)}));var l=new da(po);return l.setMessage("groupID:".concat(n," mainSequence:").concat(o," groupAttributes:").concat(JSON.stringify(i))),this._groupModule.request({protocolName:di,requestData:{groupID:n,avChatRoomKey:s,mainSequence:o,groupAttributeList:c}}).then((function(e){var r=e.data,a=r.mainSequence,o=_(r.groupAttributeList);return o.forEach((function(e){e.value=i[e.key]})),t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:a,groupAttributeList:o,operationType:"modify"}),l.setNetworkType(t._groupModule.getNetworkType()).end(),De.log("".concat(t._className,".setGroupAttributes ok. groupID:").concat(n)),is({groupAttributes:i})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];l.setError(e,i,r).end()})),fs(e)}))}},{key:"deleteGroupAttributes",value:function(e){var t=this,n=e.groupID,i=e.keyList,r=void 0===i?[]:i,a=this._checkCachedGroupAttributes({groupID:n,funcName:"deleteGroupAttributes"});if(!0!==a)return fs(a);var o=this._groupAttributesMap.get(n),s=o.remoteMainSequence,u=o.avChatRoomKey,c=o.attributes,l=_(c.keys()),d=fi,h="clear",f={groupID:n,avChatRoomKey:u,mainSequence:s};if(r.length>0){var p=[];l=[],d=hi,h="delete",r.forEach((function(e){var t=0;c.has(e)&&(t=c.get(e).sequence,l.push(e)),p.push({key:e,sequence:t})})),f.groupAttributeList=p}var g=new da(go);return g.setMessage("groupID:".concat(n," mainSequence:").concat(s," keyList:").concat(r," protocolName:").concat(d)),this._groupModule.request({protocolName:d,requestData:f}).then((function(e){var i=e.data.mainSequence;return t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:i,groupAttributeList:r,operationType:h}),g.setNetworkType(t._groupModule.getNetworkType()).end(),De.log("".concat(t._className,".deleteGroupAttributes ok. groupID:").concat(n)),is({keyList:l})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];g.setError(e,i,r).end()})),fs(e)}))}},{key:"getGroupAttributes",value:function(e){var t=this,n=e.groupID,i=this._checkCachedGroupAttributes({groupID:n,funcName:"getGroupAttributes"});if(!0!==i)return fs(i);var r=this._groupAttributesMap.get(n),a=r.avChatRoomKey,o=r.lastUpdateTime,s=r.localMainSequence,u=r.remoteMainSequence,c=new da(mo);if(c.setMessage("groupID:".concat(n," localMainSequence:").concat(s," remoteMainSequence:").concat(u," keyList:").concat(e.keyList)),Date.now()-o>=this.CACHE_EXPIRE_TIME||s<u)return this._getGroupAttributes({groupID:n,avChatRoomKey:a}).then((function(i){c.setMoreMessage("get attributes from remote. count:".concat(i.length)).setNetworkType(t._groupModule.getNetworkType()).end(),De.log("".concat(t._className,".getGroupAttributes from remote. groupID:").concat(n));var r=t._getLocalGroupAttributes(e);return is({groupAttributes:r})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];c.setError(e,i,r).end()})),fs(e)}));c.setMoreMessage("get attributes from cache").setNetworkType(this._groupModule.getNetworkType()).end(),De.log("".concat(this._className,".getGroupAttributes from cache. groupID:").concat(n));var l=this._getLocalGroupAttributes(e);return hs({groupAttributes:l})}},{key:"_getGroupAttributes",value:function(e){var t=this;return this._groupModule.request({protocolName:pi,requestData:s({},e)}).then((function(n){var i=n.data,r=i.mainSequence,a=i.groupAttributeList,o=_(a);return ze(r)||t._refreshCachedGroupAttributes({groupID:e.groupID,remoteMainSequence:r,groupAttributeList:o,operationType:"get"}),De.log("".concat(t._className,"._getGroupAttributes ok. groupID:").concat(e.groupID)),a})).catch((function(e){return fs(e)}))}},{key:"_getLocalGroupAttributes",value:function(e){var t=e.groupID,n=e.keyList,i=void 0===n?[]:n,r={};if(!this._groupAttributesMap.has(t))return r;var a=this._groupAttributesMap.get(t).attributes;if(i.length>0)i.forEach((function(e){a.has(e)&&(r[e]=a.get(e).value)}));else{var o,s=M(a.keys());try{for(s.s();!(o=s.n()).done;){var u=o.value;r[u]=a.get(u).value}}catch(l){s.e(l)}finally{s.f()}}return r}},{key:"_refreshCachedGroupAttributes",value:function(e){var t=e.groupID,n=e.remoteMainSequence,i=e.groupAttributeList,r=e.operationType;if(this._groupAttributesMap.has(t)){var a=this._groupAttributesMap.get(t),o=a.localMainSequence;if("get"===r||n-o==1)a.remoteMainSequence=n,a.localMainSequence=n,a.lastUpdateTime=Date.now(),this._updateCachedAttributes({groupAttributes:a,groupAttributeList:i,operationType:r});else{if(o===n)return;a.remoteMainSequence=n}this._groupAttributesMap.set(t,a);var s="operationType:".concat(r," localMainSequence:").concat(o," remoteMainSequence:").concat(n);De.log("".concat(this._className,"._refreshCachedGroupAttributes. ").concat(s))}}},{key:"_updateCachedAttributes",value:function(e){var t=e.groupAttributes,n=e.groupAttributeList,i=e.operationType;"clear"!==i?"delete"!==i?("init"===i&&t.attributes.clear(),n.forEach((function(e){var n=e.key,i=e.value,r=e.sequence;t.attributes.set(n,{value:i,sequence:r})}))):n.forEach((function(e){t.attributes.delete(e)})):t.attributes.clear()}},{key:"_checkCachedGroupAttributes",value:function(e){var t=e.groupID,n=e.funcName;if(this._groupModule.hasLocalGroup(t)&&this._groupModule.getLocalGroupProfile(t).type!==E.GRP_AVCHATROOM)return De.warn("".concat(this._className,"._checkCachedGroupAttributes. ").concat("非直播群不能使用群属性 API")),new cs({code:Ri.CANNOT_USE_GRP_ATTR_NOT_AVCHATROOM,message:"非直播群不能使用群属性 API"});var i=this._groupAttributesMap.get(t);if(ze(i)){var r="如果 groupID:".concat(t," 是直播群,使用 ").concat(n," 前先使用 joinGroup 接口申请加入群组,详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#joinGroup");return De.warn("".concat(this._className,"._checkCachedGroupAttributes. ").concat(r)),new cs({code:Ri.CANNOT_USE_GRP_ATTR_AVCHATROOM_UNJOIN,message:r})}return!0}},{key:"_transformGroupAttributes",value:function(e){var t=[];return Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})})),t}},{key:"_emitGroupAttributesUpdated",value:function(e){var t=this._getLocalGroupAttributes({groupID:e});this._groupModule.emitOuterEvent(C.GROUP_ATTRIBUTES_UPDATED,{groupID:e,groupAttributes:t})}},{key:"reset",value:function(){this._groupAttributesMap.clear(),this.CACHE_EXPIRE_TIME=3e4}}]),e}(),Bs=function(){function e(t){n(this,e);var i=t.manager,r=t.groupID,a=t.onInit,o=t.onSuccess,s=t.onFail;this._className="Polling",this._manager=i,this._groupModule=i._groupModule,this._onInit=a,this._onSuccess=o,this._onFail=s,this._groupID=r,this._timeoutID=-1,this._isRunning=!1,this._protocolName=oi}return r(e,[{key:"start",value:function(){var e=this._groupModule.isLoggedIn();e||(this._protocolName=si),De.log("".concat(this._className,".start pollingInterval:").concat(this._manager.getPollingInterval()," isLoggedIn:").concat(e)),this._isRunning=!0,this._request()}},{key:"isRunning",value:function(){return this._isRunning}},{key:"_request",value:function(){var e=this,t=this._onInit(this._groupID);this._groupModule.request({protocolName:this._protocolName,requestData:t}).then((function(t){e._onSuccess(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.getPollingInterval()))})).catch((function(t){e._onFail(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.MAX_POLLING_INTERVAL))}))}},{key:"stop",value:function(){De.log("".concat(this._className,".stop")),this._timeoutID>0&&(clearTimeout(this._timeoutID),this._timeoutID=-1),this._isRunning=!1}}]),e}(),Gs={3:!0,4:!0,5:!0,6:!0},qs=function(){function e(t){n(this,e),this._groupModule=t,this._className="AVChatRoomHandler",this._joinedGroupMap=new Map,this._pollingRequestInfoMap=new Map,this._pollingInstanceMap=new Map,this.sequencesLinkedList=new Is(100),this.messageIDLinkedList=new Is(100),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._onlineMemberCountMap=new Map,this.DEFAULT_EXPIRE_TIME=60,this.DEFAULT_POLLING_INTERVAL=300,this.MAX_POLLING_INTERVAL=2e3,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL}return r(e,[{key:"hasJoinedAVChatRoom",value:function(){return this._joinedGroupMap.size>0}},{key:"checkJoinedAVChatRoomByID",value:function(e){return this._joinedGroupMap.has(e)}},{key:"getJoinedAVChatRoom",value:function(){return this._joinedGroupMap.size>0?_(this._joinedGroupMap.keys()):null}},{key:"_updateRequestData",value:function(e){return s({},this._pollingRequestInfoMap.get(e))}},{key:"_handleSuccess",value:function(e,t){var n=t.data,i=n.key,r=n.nextSeq,a=n.rspMsgList;if(0!==n.errorCode){var o=this._pollingRequestInfoMap.get(e),s=new da(Co),u=o?"".concat(o.key,"-").concat(o.startSeq):"requestInfo is undefined";s.setMessage("".concat(e,"-").concat(u,"-").concat(t.errorInfo)).setCode(t.errorCode).setNetworkType(this._groupModule.getNetworkType()).end(!0)}else{if(!this.checkJoinedAVChatRoomByID(e))return;Ve(i)&&qe(r)&&this._pollingRequestInfoMap.set(e,{key:i,startSeq:r}),We(a)&&a.length>0&&(a.forEach((function(e){e.to=e.groupID})),this.onMessage(a))}}},{key:"_handleFailure",value:function(e,t){}},{key:"onMessage",value:function(e){if(We(e)&&0!==e.length){var t=null,n=[],i=this._getModule(Qt),r=this._getModule(pn),a=e.length;a>1&&e.sort((function(e,t){return e.sequence-t.sequence}));for(var o=this._getModule(Zt),s=0;s<a;s++)if(Gs[e[s].event]){this.receivedMessageCount+=1,t=this.packMessage(e[s],e[s].event);var u=1===e[s].isModified,c=1===e[s].isHistoryMessage;if((o.isUnlimitedAVChatRoom()||!this.sequencesLinkedList.has(t.sequence))&&!this.messageIDLinkedList.has(t.ID)){var l=t.conversationID;if(this.receivedMessageCount%40==0&&this._getModule(ln).detectMessageLoss(l,this.sequencesLinkedList.data()),null!==this.sequencesLinkedList.tail()){var d=this.sequencesLinkedList.tail().value,h=t.sequence-d;h>1&&h<=20?this._getModule(ln).onMessageMaybeLost(l,d+1,h-1):h<-1&&h>=-20&&this._getModule(ln).onMessageMaybeLost(l,t.sequence+1,Math.abs(h)-1)}this.sequencesLinkedList.set(t.sequence),this.messageIDLinkedList.set(t.ID);var f=!1;if(this._isMessageSentByCurrentInstance(t)?u&&(f=!0,t.isModified=u,i.updateMessageIsModifiedProperty(t)):f=!0,f){if(t.conversationType,E.CONV_SYSTEM,!c&&t.conversationType!==E.CONV_SYSTEM){var p=t.conversationID.replace(E.CONV_GROUP,"");this._pollingInstanceMap.has(p)?r.addMessageSequence({key:oa,message:t}):(t.type!==E.MSG_GRP_TIP&&t.clientTime>0&&r.addMessageDelay(t.clientTime),r.addMessageSequence({key:aa,message:t}))}n.push(t)}}}else De.warn("".concat(this._className,".onMessage 未处理的 event 类型: ").concat(e[s].event));if(0!==n.length){this._groupModule.filterModifiedMessage(n);var g=this.packConversationOption(n);g.length>0&&this._getModule(Qt).onNewMessage({conversationOptionsList:g,isInstantMessage:!0}),De.debug("".concat(this._className,".onMessage count:").concat(n.length)),this._checkMessageStacked(n);var m=this._groupModule.filterUnmodifiedMessage(n);m.length>0&&this._groupModule.emitOuterEvent(C.MESSAGE_RECEIVED,m),n.length=0}}}},{key:"_checkMessageStacked",value:function(e){var t=e.length;t>=100&&(De.warn("".concat(this._className,"._checkMessageStacked 直播群消息堆积数:").concat(e.length,'!可能会导致微信小程序渲染时遇到 "Dom limit exceeded" 的错误,建议接入侧此时只渲染最近的10条消息')),this._reportMessageStackedCount<5&&(new da(Io).setNetworkType(this._groupModule.getNetworkType()).setMessage("count:".concat(t," groupID:").concat(_(this._joinedGroupMap.keys()))).setLevel("warning").end(),this._reportMessageStackedCount+=1))}},{key:"_isMessageSentByCurrentInstance",value:function(e){return!!this._getModule(Qt).isMessageSentByCurrentInstance(e)}},{key:"packMessage",value:function(e,t){e.currentUser=this._groupModule.getMyUserID(),e.conversationType=5===t?E.CONV_SYSTEM:E.CONV_GROUP,e.isSystemMessage=!!e.isSystemMessage;var n=new ns(e),i=this.packElements(e,t);return n.setElement(i),n}},{key:"packElements",value:function(e,t){return 4===t||6===t?(this._updateMemberCountByGroupTips(e),this._onGroupAttributesUpdated(e),{type:E.MSG_GRP_TIP,content:s({},e.elements,{groupProfile:e.groupProfile})}):5===t?{type:E.MSG_GRP_SYS_NOTICE,content:s({},e.elements,{groupProfile:e.groupProfile})}:this._getModule(rn).parseElements(e.elements,e.from)}},{key:"packConversationOption",value:function(e){for(var t=new Map,n=0;n<e.length;n++){var i=e[n],r=i.conversationID;if(t.has(r)){var a=t.get(r);a.lastMessage=i,"in"===i.flow&&a.unreadCount++}else t.set(r,{conversationID:i.conversationID,unreadCount:"out"===i.flow?0:1,type:i.conversationType,subType:i.conversationSubType,lastMessage:i})}return _(t.values())}},{key:"_updateMemberCountByGroupTips",value:function(e){var t=e.groupProfile.groupID,n=e.elements.onlineMemberInfo,i=void 0===n?void 0:n;if(!xt(i)){var r=i.onlineMemberNum,a=void 0===r?0:r,o=i.expireTime,s=void 0===o?this.DEFAULT_EXPIRE_TIME:o,u=this._onlineMemberCountMap.get(t)||{},c=Date.now();xt(u)?Object.assign(u,{lastReqTime:0,lastSyncTime:0,latestUpdateTime:c,memberCount:a,expireTime:s}):(u.latestUpdateTime=c,u.memberCount=a),De.debug("".concat(this._className,"._updateMemberCountByGroupTips info:"),u),this._onlineMemberCountMap.set(t,u)}}},{key:"start",value:function(e){if(this._pollingInstanceMap.has(e)){var t=this._pollingInstanceMap.get(e);t.isRunning()||t.start()}else{var n=new Bs({manager:this,groupID:e,onInit:this._updateRequestData.bind(this),onSuccess:this._handleSuccess.bind(this),onFail:this._handleFailure.bind(this)});n.start(),this._pollingInstanceMap.set(e,n),De.log("".concat(this._className,".start groupID:").concat(e))}}},{key:"handleJoinResult",value:function(e){var t=this;return this._preCheck().then((function(){var n=e.longPollingKey,i=e.group,r=i.groupID;return t._joinedGroupMap.set(r,i),t._groupModule.updateGroupMap([i]),t._groupModule.deleteUnjoinedAVChatRoom(r),t._groupModule.emitGroupListUpdate(!0,!1),ze(n)?hs({status:Ue,group:i}):Promise.resolve()}))}},{key:"startRunLoop",value:function(e){var t=this;return this.handleJoinResult(e).then((function(){var n=e.longPollingKey,i=e.group,r=i.groupID;return t._pollingRequestInfoMap.set(r,{key:n,startSeq:0}),t.start(r),t._groupModule.isLoggedIn()?hs({status:Ue,group:i}):hs({status:Ue})}))}},{key:"_preCheck",value:function(){if(this._getModule(Zt).isUnlimitedAVChatRoom())return Promise.resolve();if(!this.hasJoinedAVChatRoom())return Promise.resolve();var e=y(this._joinedGroupMap.entries().next().value,2),t=e[0],n=e[1];if(this._groupModule.isLoggedIn()){if(n.selfInfo.role!==E.GRP_MBR_ROLE_OWNER&&n.ownerID!==this._groupModule.getMyUserID())return this._groupModule.quitGroup(t);this._groupModule.deleteLocalGroupAndConversation(t)}else this._groupModule.deleteLocalGroupAndConversation(t);return this.reset(t),Promise.resolve()}},{key:"joinWithoutAuth",value:function(e){var t=this,n=e.groupID,i="".concat(this._className,".joinWithoutAuth"),r=new da(ho);return this._groupModule.request({protocolName:Kn,requestData:e}).then((function(e){var a=e.data.longPollingKey;if(t._groupModule.probeNetwork().then((function(e){var t=y(e,2),i=(t[0],t[1]);r.setNetworkType(i).setMessage("groupID:".concat(n," longPollingKey:").concat(a)).end(!0)})),ze(a))return fs(new cs({code:Ri.CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN,message:Or}));De.log("".concat(i," ok. groupID:").concat(n)),t._getModule(Qt).setCompleted("".concat(E.CONV_GROUP).concat(n));var o=new Os({groupID:n});return t.startRunLoop({group:o,longPollingKey:a}),is({status:Ue})})).catch((function(e){return De.error("".concat(i," failed. groupID:").concat(n," error:"),e),t._groupModule.probeNetwork().then((function(t){var i=y(t,2),a=i[0],o=i[1];r.setError(e,a,o).setMessage("groupID:".concat(n)).end(!0)})),fs(e)})).finally((function(){t._groupModule.getModule(tn).reportAtOnce()}))}},{key:"getGroupOnlineMemberCount",value:function(e){var t=this._onlineMemberCountMap.get(e)||{},n=Date.now();return xt(t)||n-t.lastSyncTime>1e3*t.expireTime&&n-t.latestUpdateTime>1e4&&n-t.lastReqTime>3e3?(t.lastReqTime=n,this._onlineMemberCountMap.set(e,t),this._getGroupOnlineMemberCount(e).then((function(e){return is({memberCount:e.memberCount})})).catch((function(e){return fs(e)}))):hs({memberCount:t.memberCount})}},{key:"_getGroupOnlineMemberCount",value:function(e){var t=this,n="".concat(this._className,"._getGroupOnlineMemberCount");return this._groupModule.request({protocolName:ui,requestData:{groupID:e}}).then((function(i){var r=t._onlineMemberCountMap.get(e)||{},a=i.data,o=a.onlineMemberNum,s=void 0===o?0:o,u=a.expireTime,c=void 0===u?t.DEFAULT_EXPIRE_TIME:u;De.log("".concat(n," ok. groupID:").concat(e," memberCount:").concat(s," expireTime:").concat(c));var l=Date.now();return xt(r)&&(r.lastReqTime=l),t._onlineMemberCountMap.set(e,Object.assign(r,{lastSyncTime:l,latestUpdateTime:l,memberCount:s,expireTime:c})),{memberCount:s}})).catch((function(i){return De.warn("".concat(n," failed. error:"),i),new da(Mo).setCode(i.code).setMessage("groupID:".concat(e," error:").concat(JSON.stringify(i))).setNetworkType(t._groupModule.getNetworkType()).end(),Promise.reject(i)}))}},{key:"_onGroupAttributesUpdated",value:function(e){var t=e.groupProfile.groupID,n=e.elements,i=n.operationType,r=n.newGroupProfile;if(6===i){var a=(void 0===r?void 0:r).groupAttributeOption;xt(a)||this._groupModule.onGroupAttributesUpdated({groupID:t,groupAttributeOption:a})}}},{key:"_getModule",value:function(e){return this._groupModule.getModule(e)}},{key:"setPollingInterval",value:function(e){ze(e)||qe(e)||(this._pollingInterval=parseInt(e,10),De.log("".concat(this._className,".setPollingInterval value:").concat(this._pollingInterval)))}},{key:"getPollingInterval",value:function(){return this._pollingInterval}},{key:"reset",value:function(e){if(e){De.log("".concat(this._className,".reset groupID:").concat(e));var t=this._pollingInstanceMap.get(e);t&&t.stop(),this._pollingInstanceMap.delete(e),this._joinedGroupMap.delete(e),this._pollingRequestInfoMap.delete(e),this._onlineMemberCountMap.delete(e)}else{De.log("".concat(this._className,".reset all"));var n,i=M(this._pollingInstanceMap.values());try{for(i.s();!(n=i.n()).done;)n.value.stop()}catch(a){i.e(a)}finally{i.f()}this._pollingInstanceMap.clear(),this._joinedGroupMap.clear(),this._pollingRequestInfoMap.clear(),this._onlineMemberCountMap.clear()}this.sequencesLinkedList.reset(),this.messageIDLinkedList.reset(),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL}}]),e}(),Vs=1,Hs=15,$s=function(){function e(t){n(this,e),this._groupModule=t,this._className="GroupSystemNoticeHandler",this.pendencyMap=new Map}return r(e,[{key:"onNewGroupSystemNotice",value:function(e){var t=e.dataList,n=e.isSyncingEnded,i=e.isInstantMessage;De.debug("".concat(this._className,".onReceiveSystemNotice count:").concat(t.length));var r=this.newSystemNoticeStoredAndSummary({notifiesList:t,isInstantMessage:i}),a=r.eventDataList,o=r.result;a.length>0&&(this._groupModule.getModule(Qt).onNewMessage({conversationOptionsList:a,isInstantMessage:i}),this._onReceivedGroupSystemNotice({result:o,isInstantMessage:i})),i?o.length>0&&this._groupModule.emitOuterEvent(C.MESSAGE_RECEIVED,o):!0===n&&this._clearGroupSystemNotice()}},{key:"newSystemNoticeStoredAndSummary",value:function(e){var t=e.notifiesList,n=e.isInstantMessage,i=null,r=t.length,a=0,o=[],u={conversationID:E.CONV_SYSTEM,unreadCount:0,type:E.CONV_SYSTEM,subType:null,lastMessage:null};for(a=0;a<r;a++){var c=t[a];c.elements.operationType!==Hs&&(c.currentUser=this._groupModule.getMyUserID(),c.conversationType=E.CONV_SYSTEM,c.conversationID=E.CONV_SYSTEM,(i=new ns(c)).setElement({type:E.MSG_GRP_SYS_NOTICE,content:s({},c.elements,{groupProfile:c.groupProfile})}),i.isSystemMessage=!0,(1===i.sequence&&1===i.random||2===i.sequence&&2===i.random)&&(i.sequence=at(),i.random=at(),i.generateMessageID(c.currentUser),De.log("".concat(this._className,".newSystemNoticeStoredAndSummary sequence and random maybe duplicated, regenerate. ID:").concat(i.ID))),this._groupModule.getModule(Qt).pushIntoNoticeResult(o,i)&&(n?u.unreadCount++:i.setIsRead(!0),u.subType=i.conversationSubType))}return u.lastMessage=o[o.length-1],{eventDataList:o.length>0?[u]:[],result:o}}},{key:"_clearGroupSystemNotice",value:function(){var e=this;this.getPendencyList().then((function(t){t.forEach((function(t){e.pendencyMap.set("".concat(t.from,"_").concat(t.groupID,"_").concat(t.to),t)}));var n=e._groupModule.getModule(Qt).getLocalMessageList(E.CONV_SYSTEM),i=[];n.forEach((function(t){var n=t.payload,r=n.operatorID,a=n.operationType,o=n.groupProfile;if(a===Vs){var s="".concat(r,"_").concat(o.groupID,"_").concat(o.to),u=e.pendencyMap.get(s);u&&qe(u.handled)&&0!==u.handled&&i.push(t)}})),e.deleteGroupSystemNotice({messageList:i})}))}},{key:"deleteGroupSystemNotice",value:function(e){var t=this,n="".concat(this._className,".deleteGroupSystemNotice");return We(e.messageList)&&0!==e.messageList.length?(De.log("".concat(n)+e.messageList.map((function(e){return e.ID}))),this._groupModule.request({protocolName:ai,requestData:{messageListToDelete:e.messageList.map((function(e){return{from:E.CONV_SYSTEM,messageSeq:e.clientSequence,messageRandom:e.random}}))}}).then((function(){De.log("".concat(n," ok"));var i=t._groupModule.getModule(Qt);return e.messageList.forEach((function(e){i.deleteLocalMessage(e)})),is()})).catch((function(e){return De.error("".concat(n," error:"),e),fs(e)}))):hs()}},{key:"getPendencyList",value:function(e){var t=this;return this._groupModule.request({protocolName:ri,requestData:{startTime:e&&e.startTime?e.startTime:0,limit:e&&e.limit?e.limit:10,handleAccount:this._groupModule.getMyUserID()}}).then((function(e){var n=e.data.pendencyList;return 0!==e.data.nextStartTime?t.getPendencyList({startTime:e.data.nextStartTime}).then((function(e){return[].concat(_(n),_(e))})):n}))}},{key:"_onReceivedGroupSystemNotice",value:function(e){var t=this,n=e.result;e.isInstantMessage&&n.forEach((function(e){switch(e.payload.operationType){case 1:break;case 2:t._onApplyGroupRequestAgreed(e);break;case 3:break;case 4:t._onMemberKicked(e);break;case 5:t._onGroupDismissed(e);break;case 6:break;case 7:t._onInviteGroup(e);break;case 8:t._onQuitGroup(e);break;case 9:t._onSetManager(e);break;case 10:t._onDeleteManager(e)}}))}},{key:"_onApplyGroupRequestAgreed",value:function(e){var t=this,n=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(n)||this._groupModule.getGroupProfile({groupID:n}).then((function(e){var n=e.data.group;n&&(t._groupModule.updateGroupMap([n]),t._groupModule.emitGroupListUpdate())}))}},{key:"_onMemberKicked",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t)}},{key:"_onGroupDismissed",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t);var n=this._groupModule._AVChatRoomHandler;n&&n.checkJoinedAVChatRoomByID(t)&&n.reset(t)}},{key:"_onInviteGroup",value:function(e){var t=this,n=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(n)||this._groupModule.getGroupProfile({groupID:n}).then((function(e){var n=e.data.group;n&&(t._groupModule.updateGroupMap([n]),t._groupModule.emitGroupListUpdate())}))}},{key:"_onQuitGroup",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t)}},{key:"_onSetManager",value:function(e){var t=e.payload.groupProfile,n=t.to,i=t.groupID,r=this._groupModule.getModule(Jt).getLocalGroupMemberInfo(i,n);r&&r.updateRole(E.GRP_MBR_ROLE_ADMIN)}},{key:"_onDeleteManager",value:function(e){var t=e.payload.groupProfile,n=t.to,i=t.groupID,r=this._groupModule.getModule(Jt).getLocalGroupMemberInfo(i,n);r&&r.updateRole(E.GRP_MBR_ROLE_MEMBER)}},{key:"reset",value:function(){this.pendencyMap.clear()}}]),e}(),Ws=function(e){u(i,e);var t=v(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._className="GroupModule",r._commonGroupHandler=null,r._AVChatRoomHandler=null,r._groupSystemNoticeHandler=null,r._commonGroupHandler=new js(g(r)),r._groupAttributesHandler=new Fs(g(r)),r._AVChatRoomHandler=new qs(g(r)),r._groupTipsHandler=new Rs(g(r)),r._groupSystemNoticeHandler=new $s(g(r)),r.groupMap=new Map,r._unjoinedAVChatRoomList=new Map,r.getInnerEmitterInstance().on(vs,r._onCloudConfigUpdated,g(r)),r}return r(i,[{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("polling_interval");this._AVChatRoomHandler&&this._AVChatRoomHandler.setPollingInterval(e)}},{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&(this._commonGroupHandler.onCheckTimer(e),this._groupTipsHandler.onCheckTimer(e))}},{key:"guardForAVChatRoom",value:function(e){var t=this;if(e.conversationType===E.CONV_GROUP){var n=e.to;return this.hasLocalGroup(n)?hs():this.getGroupProfile({groupID:n}).then((function(i){var r=i.data.group.type;if(De.log("".concat(t._className,".guardForAVChatRoom. groupID:").concat(n," type:").concat(r)),r===E.GRP_AVCHATROOM){var a="userId:".concat(e.from," 未加入群 groupID:").concat(n,"。发消息前先使用 joinGroup 接口申请加群,详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#joinGroup");return De.warn("".concat(t._className,".guardForAVChatRoom sendMessage not allowed. ").concat(a)),fs(new cs({code:Ri.MESSAGE_SEND_FAIL,message:a,data:{message:e}}))}return hs()}))}return hs()}},{key:"checkJoinedAVChatRoomByID",value:function(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:"onNewGroupMessage",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.onNewGroupMessage(e)}},{key:"updateNextMessageSeq",value:function(e){var t=this;We(e)&&e.forEach((function(e){var n=e.conversationID.replace(E.CONV_GROUP,"");t.groupMap.has(n)&&(t.groupMap.get(n).nextMessageSeq=e.lastMessage.sequence+1)}))}},{key:"onNewGroupTips",value:function(e){this._groupTipsHandler&&this._groupTipsHandler.onNewGroupTips(e)}},{key:"onGroupMessageRevoked",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.onGroupMessageRevoked(e)}},{key:"onNewGroupSystemNotice",value:function(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.onNewGroupSystemNotice(e)}},{key:"onGroupMessageReadNotice",value:function(e){var t=this;e.dataList.forEach((function(e){var n=e.elements.groupMessageReadNotice;if(!ze(n)){var i=t.getModule(Qt);n.forEach((function(e){var n=e.groupID,r=e.lastMessageSeq;De.debug("".concat(t._className,".onGroupMessageReadNotice groupID:").concat(n," lastMessageSeq:").concat(r));var a="".concat(E.CONV_GROUP).concat(n);i.updateIsReadAfterReadReport({conversationID:a,lastMessageSeq:r}),i.updateUnreadCount(a)}))}}))}},{key:"deleteGroupSystemNotice",value:function(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.deleteGroupSystemNotice(e)}},{key:"initGroupMap",value:function(e){this.groupMap.set(e.groupID,new Os(e))}},{key:"deleteGroup",value:function(e){this.groupMap.delete(e)}},{key:"updateGroupMap",value:function(e){var t=this;e.forEach((function(e){t.groupMap.has(e.groupID)?t.groupMap.get(e.groupID).updateGroup(e):t.groupMap.set(e.groupID,new Os(e))}));var n,i=this.getMyUserID(),r=M(this.groupMap);try{for(r.s();!(n=r.n()).done;)y(n.value,2)[1].selfInfo.userID=i}catch(o){r.e(o)}finally{r.f()}this._setStorageGroupList()}},{key:"getStorageGroupList",value:function(){return this.getModule(en).getItem("groupMap")}},{key:"_setStorageGroupList",value:function(){var e=this.getLocalGroupList().filter((function(e){var t=e.type;return!gt(t)})).slice(0,20).map((function(e){return{groupID:e.groupID,name:e.name,avatar:e.avatar,type:e.type}}));this.getModule(en).setItem("groupMap",e)}},{key:"getGroupMap",value:function(){return this.groupMap}},{key:"getLocalGroupList",value:function(){return _(this.groupMap.values())}},{key:"getLocalGroupProfile",value:function(e){return this.groupMap.get(e)}},{key:"sortLocalGroupList",value:function(){var e=_(this.groupMap).filter((function(e){var t=y(e,2);return t[0],!xt(t[1].lastMessage)}));e.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})),this.groupMap=new Map(_(e))}},{key:"updateGroupLastMessage",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.handleUpdateGroupLastMessage(e)}},{key:"emitGroupListUpdate",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalGroupList();if(e&&this.emitOuterEvent(C.GROUP_LIST_UPDATED),t){var i=JSON.parse(JSON.stringify(n)),r=this.getModule(Qt);r.updateConversationGroupProfile(i)}}},{key:"patchGroupMessageRemindType",value:function(){var e=this.getLocalGroupList(),t=this.getModule(Qt),n=0;e.forEach((function(e){!0===t.patchMessageRemindType({ID:e.groupID,isC2CConversation:!1,messageRemindType:e.selfInfo.messageRemindType})&&(n+=1)})),De.log("".concat(this._className,".patchGroupMessageRemindType count:").concat(n))}},{key:"recomputeUnreadCount",value:function(){var e=this.getLocalGroupList(),t=this.getModule(Qt);e.forEach((function(e){var n=e.groupID,i=e.selfInfo,r=i.excludedUnreadSequenceList,a=i.readedSequence;if(We(r)){var o=0;r.forEach((function(t){t>=a&&t<=e.nextMessageSeq-1&&(o+=1)})),o>=1&&t.recomputeGroupUnreadCount({conversationID:"".concat(E.CONV_GROUP).concat(n),count:o})}}))}},{key:"getMyNameCardByGroupID",value:function(e){var t=this.getLocalGroupProfile(e);return t?t.selfInfo.nameCard:""}},{key:"getGroupList",value:function(e){return this._commonGroupHandler?this._commonGroupHandler.getGroupList(e):hs()}},{key:"getGroupProfile",value:function(e){var t=this,n=new da(ao),i="".concat(this._className,".getGroupProfile"),r=e.groupID,a=e.groupCustomFieldFilter;De.log("".concat(i," groupID:").concat(r));var o={groupIDList:[r],responseFilter:{groupBaseInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","Owner_Account","CreateTime","InfoSeq","LastInfoTime","LastMsgTime","MemberNum","MaxMemberNum","ApplyJoinOption","NextMsgSeq","ShutUpAllMember"],groupCustomFieldFilter:a,memberInfoFilter:["Role","JoinTime","MsgSeq","MsgFlag","NameCard"]}};return this.getGroupProfileAdvance(o).then((function(e){var a,o=e.data,s=o.successGroupList,u=o.failureGroupList;return De.log("".concat(i," ok")),u.length>0?fs(u[0]):(gt(s[0].type)&&!t.hasLocalGroup(r)?a=new Os(s[0]):(t.updateGroupMap(s),a=t.getLocalGroupProfile(r)),t.getModule(Qt).updateConversationGroupProfile([a]),n.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(r," type:").concat(a.type," muteAllMembers:").concat(a.muteAllMembers," ownerID:").concat(a.ownerID)).end(),is({group:a}))})).catch((function(r){return t.probeNetwork().then((function(t){var i=y(t,2),a=i[0],o=i[1];n.setError(r,a,o).setMessage("groupID:".concat(e.groupID)).end()})),De.error("".concat(i," failed. error:"),r),fs(r)}))}},{key:"getGroupProfileAdvance",value:function(e){var t=this,n="".concat(this._className,".getGroupProfileAdvance"),i=e.groupIDList;We(i)&&i.length>50&&(De.warn("".concat(n," 获取群资料的数量不能超过50个")),i.length=50);var r=[],a=[];i.forEach((function(e){mt({groupID:e})?a.push(e):r.push(e)}));var o=[];if(r.length>0){var u=this._getGroupProfileAdvance(s({},e,{groupIDList:r}));o.push(u)}if(a.length>0){var c=this._getGroupProfileAdvance(s({},e,{groupIDList:a,relayFlag:r.length>0}));o.push(c)}return Promise.all(o).then((function(e){var t=[],n=[];return e.forEach((function(e){t.push.apply(t,_(e.successGroupList)),n.push.apply(n,_(e.failureGroupList))})),is({successGroupList:t,failureGroupList:n})})).catch((function(e){return De.error("".concat(t._className,"._getGroupProfileAdvance failed. error:"),e),fs(e)}))}},{key:"_getGroupProfileAdvance",value:function(e){var t=this,n=e.relayFlag,i=void 0!==n&&n,r=p(e,["relayFlag"]);return this.request({protocolName:Vn,requestData:r}).then((function(e){De.log("".concat(t._className,"._getGroupProfileAdvance ok."));var n=e.data.groups;return{successGroupList:n.filter((function(e){return ze(e.errorCode)||0===e.errorCode})),failureGroupList:n.filter((function(e){return e.errorCode&&0!==e.errorCode})).map((function(e){return new cs({code:e.errorCode,message:e.errorInfo,data:{groupID:e.groupID}})}))}})).catch((function(t){return i&&mt({groupID:e.groupIDList[0]})?{successGroupList:[],failureGroupList:[]}:fs(t)}))}},{key:"createGroup",value:function(e){var t=this,n="".concat(this._className,".createGroup"),i=e.type,r=e.groupID;if(!["Public","Private","ChatRoom","AVChatRoom","Community"].includes(i))return fs({code:Ri.ILLEGAL_GROUP_TYPE,message:Tr});if(!mt({type:i})&&!xt(r)&&mt({groupID:r}))return fs({code:Ri.ILLEGAL_GROUP_ID,message:wr});if(gt(i)&&!ze(e.memberList)&&e.memberList.length>0&&(De.warn("".concat(n," 创建 AVChatRoom 时不能添加群成员,自动忽略该字段")),e.memberList=void 0),pt(i)||ze(e.joinOption)||(De.warn("".concat(n," 创建 Work/Meeting/AVChatRoom/Community 群时不能设置字段 joinOption,自动忽略该字段")),e.joinOption=void 0),mt({type:i})&&!xt(r)&&!mt({groupID:r}))return fs({code:Ri.ILLEGAL_GROUP_ID,message:wr});var a=new da(Ka);De.log("".concat(n," options:"),e);var o=[];return this.request({protocolName:Hn,requestData:s({},e,{ownerID:this.getMyUserID(),webPushFlag:1})}).then((function(i){var r=i.data,u=r.groupID,c=r.overLimitUserIDList,l=void 0===c?[]:c;if(o=l,a.setNetworkType(t.getNetworkType()).setMessage("groupType:".concat(e.type," groupID:").concat(u," overLimitUserIDList=").concat(l)).end(),De.log("".concat(n," ok groupID:").concat(u," overLimitUserIDList:"),l),e.type===E.GRP_AVCHATROOM)return t.getGroupProfile({groupID:u});xt(e.memberList)||xt(l)||(e.memberList=e.memberList.filter((function(e){return-1===l.indexOf(e.userID)}))),t.updateGroupMap([s({},e,{groupID:u})]);var d=t.getModule(Wt),h=d.createCustomMessage({to:u,conversationType:E.CONV_GROUP,payload:{data:"group_create",extension:"".concat(t.getMyUserID(),"创建群组")}});return d.sendMessageInstance(h),t.emitGroupListUpdate(),t.getGroupProfile({groupID:u})})).then((function(e){var t=e.data.group,n=t.selfInfo,i=n.nameCard,r=n.joinTime;return t.updateSelfInfo({nameCard:i,joinTime:r,messageRemindType:E.MSG_REMIND_ACPT_AND_NOTE,role:E.GRP_MBR_ROLE_OWNER}),is({group:t,overLimitUserIDList:o})})).catch((function(i){return a.setMessage("groupType:".concat(e.type)),t.probeNetwork().then((function(e){var t=y(e,2),n=t[0],r=t[1];a.setError(i,n,r).end()})),De.error("".concat(n," failed. error:"),i),fs(i)}))}},{key:"dismissGroup",value:function(e){var t=this,n="".concat(this._className,".dismissGroup");if(this.hasLocalGroup(e)&&this.getLocalGroupProfile(e).type===E.GRP_WORK)return fs(new cs({code:Ri.CANNOT_DISMISS_WORK,message:Cr}));var i=new da(no);return i.setMessage("groupID:".concat(e)),De.log("".concat(n," groupID:").concat(e)),this.request({protocolName:$n,requestData:{groupID:e}}).then((function(){return i.setNetworkType(t.getNetworkType()).end(),De.log("".concat(n," ok")),t.deleteLocalGroupAndConversation(e),t.checkJoinedAVChatRoomByID(e)&&t._AVChatRoomHandler.reset(e),is({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),r=n[0],a=n[1];i.setError(e,r,a).end()})),De.error("".concat(n," failed. error:"),e),fs(e)}))}},{key:"updateGroupProfile",value:function(e){var t=this,n="".concat(this._className,".updateGroupProfile");!this.hasLocalGroup(e.groupID)||pt(this.getLocalGroupProfile(e.groupID).type)||ze(e.joinOption)||(De.warn("".concat(n," Work/Meeting/AVChatRoom/Community 群不能设置字段 joinOption,自动忽略该字段")),e.joinOption=void 0),ze(e.muteAllMembers)||(e.muteAllMembers?e.muteAllMembers="On":e.muteAllMembers="Off");var i=new da(io);return i.setMessage(JSON.stringify(e)),De.log("".concat(n," groupID:").concat(e.groupID)),this.request({protocolName:Wn,requestData:e}).then((function(){return i.setNetworkType(t.getNetworkType()).end(),De.log("".concat(n," ok")),t.hasLocalGroup(e.groupID)&&(t.groupMap.get(e.groupID).updateGroup(e),t._setStorageGroupList()),is({group:t.groupMap.get(e.groupID)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),r=n[0],a=n[1];i.setError(e,r,a).end()})),De.log("".concat(n," failed. error:"),e),fs(e)}))}},{key:"joinGroup",value:function(e){var t=this,n=e.groupID,i=e.type,r="".concat(this._className,".joinGroup");if(i===E.GRP_WORK){var a=new cs({code:Ri.CANNOT_JOIN_WORK,message:Sr});return fs(a)}if(this.deleteUnjoinedAVChatRoom(n),this.hasLocalGroup(n)){if(!this.isLoggedIn())return hs({status:E.JOIN_STATUS_ALREADY_IN_GROUP});var o=new da(Ya);return this.getGroupProfile({groupID:n}).then((function(){return o.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," joinedStatus:").concat(E.JOIN_STATUS_ALREADY_IN_GROUP)).end(),hs({status:E.JOIN_STATUS_ALREADY_IN_GROUP})})).catch((function(i){return o.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," unjoined")).end(),De.warn("".concat(r," ").concat(n," was unjoined, now join!")),t.groupMap.delete(n),t.applyJoinGroup(e)}))}return De.log("".concat(r," groupID:").concat(n)),this.isLoggedIn()?this.applyJoinGroup(e):this._AVChatRoomHandler.joinWithoutAuth(e)}},{key:"applyJoinGroup",value:function(e){var t=this,n="".concat(this._className,".applyJoinGroup"),i=e.groupID,r=new da(Ya),a=s({},e),o=this.canIUse(H.AVCHATROOM_HISTORY_MSG);return o&&(a.historyMessageFlag=1),this.request({protocolName:zn,requestData:a}).then((function(e){var a=e.data,s=a.joinedStatus,u=a.longPollingKey,c=a.avChatRoomFlag,l=a.avChatRoomKey,d=a.messageList,h="groupID:".concat(i," joinedStatus:").concat(s," longPollingKey:").concat(u)+" avChatRoomFlag:".concat(c," canGetAVChatRoomHistoryMessage:").concat(o);switch(r.setNetworkType(t.getNetworkType()).setMessage("".concat(h)).end(),De.log("".concat(n," ok. ").concat(h)),s){case Fe:return is({status:Fe});case Ue:return t.getGroupProfile({groupID:i}).then((function(e){var n,r=e.data.group,a={status:Ue,group:r};return 1===c?(t.getModule(Qt).setCompleted("".concat(E.CONV_GROUP).concat(i)),t._groupAttributesHandler.initGroupAttributesCache({groupID:i,avChatRoomKey:l}),(n=ze(u)?t._AVChatRoomHandler.handleJoinResult({group:r}):t._AVChatRoomHandler.startRunLoop({longPollingKey:u,group:r})).then((function(){t._onAVChatRoomHistoryMessage(d)})),n):(t.emitGroupListUpdate(!0,!1),is(a))}));default:var f=new cs({code:Ri.JOIN_GROUP_FAIL,message:Ir});return De.error("".concat(n," error:"),f),fs(f)}})).catch((function(i){return r.setMessage("groupID:".concat(e.groupID)),t.probeNetwork().then((function(e){var t=y(e,2),n=t[0],a=t[1];r.setError(i,n,a).end()})),De.error("".concat(n," error:"),i),fs(i)}))}},{key:"quitGroup",value:function(e){var t=this,n="".concat(this._className,".quitGroup");De.log("".concat(n," groupID:").concat(e));var i=this.checkJoinedAVChatRoomByID(e);if(!i&&!this.hasLocalGroup(e)){var r=new cs({code:Ri.MEMBER_NOT_IN_GROUP,message:Er});return fs(r)}if(i&&!this.isLoggedIn())return De.log("".concat(n," anonymously ok. groupID:").concat(e)),this.deleteLocalGroupAndConversation(e),this._AVChatRoomHandler.reset(e),hs({groupID:e});var a=new da(Xa);return a.setMessage("groupID:".concat(e)),this.request({protocolName:Yn,requestData:{groupID:e}}).then((function(){return a.setNetworkType(t.getNetworkType()).end(),De.log("".concat(n," ok")),i&&t._AVChatRoomHandler.reset(e),t.deleteLocalGroupAndConversation(e),is({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];a.setError(e,i,r).end()})),De.error("".concat(n," failed. error:"),e),fs(e)}))}},{key:"searchGroupByID",value:function(e){var t=this,n="".concat(this._className,".searchGroupByID"),i={groupIDList:[e]},r=new da(Ja);return r.setMessage("groupID:".concat(e)),De.log("".concat(n," groupID:").concat(e)),this.request({protocolName:Xn,requestData:i}).then((function(e){var i=e.data.groupProfile;if(0!==i[0].errorCode)throw new cs({code:i[0].errorCode,message:i[0].errorInfo});return r.setNetworkType(t.getNetworkType()).end(),De.log("".concat(n," ok")),is({group:new Os(i[0])})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],a=n[1];r.setError(e,i,a).end()})),De.warn("".concat(n," failed. error:"),e),fs(e)}))}},{key:"changeGroupOwner",value:function(e){var t=this,n="".concat(this._className,".changeGroupOwner");if(this.hasLocalGroup(e.groupID)&&this.getLocalGroupProfile(e.groupID).type===E.GRP_AVCHATROOM)return fs(new cs({code:Ri.CANNOT_CHANGE_OWNER_IN_AVCHATROOM,message:kr}));if(e.newOwnerID===this.getMyUserID())return fs(new cs({code:Ri.CANNOT_CHANGE_OWNER_TO_SELF,message:Mr}));var i=new da(Qa);return i.setMessage("groupID:".concat(e.groupID," newOwnerID:").concat(e.newOwnerID)),De.log("".concat(n," groupID:").concat(e.groupID)),this.request({protocolName:Jn,requestData:e}).then((function(){i.setNetworkType(t.getNetworkType()).end(),De.log("".concat(n," ok"));var r=e.groupID,a=e.newOwnerID;t.groupMap.get(r).ownerID=a;var o=t.getModule(Jt).getLocalGroupMemberList(r);if(o instanceof Map){var s=o.get(t.getMyUserID());ze(s)||(s.updateRole("Member"),t.groupMap.get(r).selfInfo.role="Member");var u=o.get(a);ze(u)||u.updateRole("Owner")}return t.emitGroupListUpdate(!0,!1),is({group:t.groupMap.get(r)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),r=n[0],a=n[1];i.setError(e,r,a).end()})),De.error("".concat(n," failed. error:"),e),fs(e)}))}},{key:"handleGroupApplication",value:function(e){var t=this,n="".concat(this._className,".handleGroupApplication"),i=e.message.payload,r=i.groupProfile.groupID,a=i.authentication,o=i.messageKey,u=i.operatorID,c=new da(Za);return c.setMessage("groupID:".concat(r)),De.log("".concat(n," groupID:").concat(r)),this.request({protocolName:Qn,requestData:s({},e,{applicant:u,groupID:r,authentication:a,messageKey:o})}).then((function(){return c.setNetworkType(t.getNetworkType()).end(),De.log("".concat(n," ok")),t._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),is({group:t.getLocalGroupProfile(r)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];c.setError(e,i,r).end()})),De.error("".concat(n," failed. error"),e),fs(e)}))}},{key:"handleGroupInvitation",value:function(e){var t=this,n="".concat(this._className,".handleGroupInvitation"),i=e.message.payload,r=i.groupProfile.groupID,a=i.authentication,o=i.messageKey,u=i.operatorID,c=e.handleAction,l=new da(eo);return l.setMessage("groupID:".concat(r," inviter:").concat(u," handleAction:").concat(c)),De.log("".concat(n," groupID:").concat(r," inviter:").concat(u," handleAction:").concat(c)),this.request({protocolName:Zn,requestData:s({},e,{inviter:u,groupID:r,authentication:a,messageKey:o})}).then((function(){return l.setNetworkType(t.getNetworkType()).end(),De.log("".concat(n," ok")),t._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),is({group:t.getLocalGroupProfile(r)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];l.setError(e,i,r).end()})),De.error("".concat(n," failed. error"),e),fs(e)}))}},{key:"getGroupOnlineMemberCount",value:function(e){return this._AVChatRoomHandler?this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)?this._AVChatRoomHandler.getGroupOnlineMemberCount(e):hs({memberCount:0}):fs({code:Ri.CANNOT_FIND_MODULE,message:zr})}},{key:"hasLocalGroup",value:function(e){return this.groupMap.has(e)}},{key:"deleteLocalGroupAndConversation",value:function(e){this._deleteLocalGroup(e),this.getModule(Qt).deleteLocalConversation("GROUP".concat(e)),this.emitGroupListUpdate(!0,!1)}},{key:"_deleteLocalGroup",value:function(e){this.groupMap.delete(e),this.getModule(Jt).deleteGroupMemberList(e),this._setStorageGroupList()}},{key:"sendMessage",value:function(e,t){var n=this.createGroupMessagePack(e,t);return this.request(n)}},{key:"createGroupMessagePack",value:function(e,t){var n=null;t&&t.offlinePushInfo&&(n=t.offlinePushInfo);var i="";Ve(e.cloudCustomData)&&e.cloudCustomData.length>0&&(i=e.cloudCustomData);var r=[];if($e(t)&&$e(t.messageControlInfo)){var a=t.messageControlInfo,o=a.excludedFromUnreadCount,s=a.excludedFromLastMessage;!0===o&&r.push("NoUnread"),!0===s&&r.push("NoLastMsg")}var u=e.getGroupAtInfoList();return{protocolName:kn,tjgID:this.generateTjgID(e),requestData:{fromAccount:this.getMyUserID(),groupID:e.to,msgBody:e.getElements(),cloudCustomData:i,random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:e.type!==E.MSG_TEXT||xt(u)?void 0:u,onlineOnlyFlag:this.isOnlineMessage(e,t)?1:0,clientTime:Ie(),offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||"",desc:n.description||"",ext:n.extension||"",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||""}}:void 0,messageControlInfo:r}}}},{key:"revokeMessage",value:function(e){return this.request({protocolName:ei,requestData:{groupID:e.to,msgSeqList:[{msgSeq:e.sequence}]}})}},{key:"deleteMessage",value:function(e){var t=e.to,n=e.keyList;return De.log("".concat(this._className,".deleteMessage groupID:").concat(t," count:").concat(n.length)),this.request({protocolName:ci,requestData:{groupID:t,deleter:this.getMyUserID(),keyList:n}})}},{key:"getRoamingMessage",value:function(e){var t=this,n="".concat(this._className,".getRoamingMessage"),i=new da(Oa),r=0;return this._computeLastSequence(e).then((function(n){return r=n,De.log("".concat(t._className,".getRoamingMessage groupID:").concat(e.groupID," lastSequence:").concat(r)),t.request({protocolName:ii,requestData:{groupID:e.groupID,count:21,sequence:r}})})).then((function(a){var o=a.data,s=o.messageList,u=o.complete;ze(s)?De.log("".concat(n," ok. complete:").concat(u," but messageList is undefined!")):De.log("".concat(n," ok. complete:").concat(u," count:").concat(s.length)),i.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(e.groupID," lastSequence:").concat(r," complete:").concat(u," count:").concat(s?s.length:"undefined")).end();var c="GROUP".concat(e.groupID),l=t.getModule(Qt);if(2===u||xt(s))return l.setCompleted(c),[];var d=l.storeRoamingMessage(s,c);return l.updateIsRead(c),l.patchConversationLastMessage(c),d})).catch((function(a){return t.probeNetwork().then((function(t){var n=y(t,2),o=n[0],s=n[1];i.setError(a,o,s).setMessage("groupID:".concat(e.groupID," lastSequence:").concat(r)).end()})),De.warn("".concat(n," failed. error:"),a),fs(a)}))}},{key:"setMessageRead",value:function(e){var t=this,n=e.conversationID,i=e.lastMessageSeq,r="".concat(this._className,".setMessageRead");De.log("".concat(r," conversationID:").concat(n," lastMessageSeq:").concat(i)),qe(i)||De.warn("".concat(r," 请勿修改 Conversation.lastMessage.lastSequence,否则可能会导致已读上报结果不准确"));var a=new da(Na);return a.setMessage("".concat(n,"-").concat(i)),this.request({protocolName:ti,requestData:{groupID:n.replace("GROUP",""),messageReadSeq:i}}).then((function(){a.setNetworkType(t.getNetworkType()).end(),De.log("".concat(r," ok."));var e=t.getModule(Qt);return e.updateIsReadAfterReadReport({conversationID:n,lastMessageSeq:i}),e.updateUnreadCount(n),is()})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];a.setError(e,i,r).end()})),De.log("".concat(r," failed. error:"),e),fs(e)}))}},{key:"_computeLastSequence",value:function(e){return e.sequence>0?Promise.resolve(e.sequence):this.getGroupLastSequence(e.groupID)}},{key:"getGroupLastSequence",value:function(e){var t=this,n="".concat(this._className,".getGroupLastSequence"),i=new da(so),r=0,a="";if(this.hasLocalGroup(e)){var o=this.getLocalGroupProfile(e),s=o.lastMessage;if(s.lastSequence>0&&!1===s.onlineOnlyFlag)return r=s.lastSequence,a="got lastSequence:".concat(r," from local group profile[lastMessage.lastSequence]. groupID:").concat(e),De.log("".concat(n," ").concat(a)),i.setNetworkType(this.getNetworkType()).setMessage("".concat(a)).end(),Promise.resolve(r);if(o.nextMessageSeq>1)return r=o.nextMessageSeq-1,a="got lastSequence:".concat(r," from local group profile[nextMessageSeq]. groupID:").concat(e),De.log("".concat(n," ").concat(a)),i.setNetworkType(this.getNetworkType()).setMessage("".concat(a)).end(),Promise.resolve(r)}var u="GROUP".concat(e),c=this.getModule(Qt).getLocalConversation(u);if(c&&c.lastMessage.lastSequence&&!1===c.lastMessage.onlineOnlyFlag)return r=c.lastMessage.lastSequence,a="got lastSequence:".concat(r," from local conversation profile[lastMessage.lastSequence]. groupID:").concat(e),De.log("".concat(n," ").concat(a)),i.setNetworkType(this.getNetworkType()).setMessage("".concat(a)).end(),Promise.resolve(r);var l={groupIDList:[e],responseFilter:{groupBaseInfoFilter:["NextMsgSeq"]}};return this.getGroupProfileAdvance(l).then((function(o){var s=o.data.successGroupList;return xt(s)?De.log("".concat(n," successGroupList is empty. groupID:").concat(e)):(r=s[0].nextMessageSeq-1,a="got lastSequence:".concat(r," from getGroupProfileAdvance. groupID:").concat(e),De.log("".concat(n," ").concat(a))),i.setNetworkType(t.getNetworkType()).setMessage("".concat(a)).end(),r})).catch((function(r){return t.probeNetwork().then((function(t){var n=y(t,2),a=n[0],o=n[1];i.setError(r,a,o).setMessage("get lastSequence failed from getGroupProfileAdvance. groupID:".concat(e)).end()})),De.warn("".concat(n," failed. error:"),r),fs(r)}))}},{key:"isMessageFromAVChatroom",value:function(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:"hasJoinedAVChatRoom",value:function(){return this._AVChatRoomHandler?this._AVChatRoomHandler.hasJoinedAVChatRoom():0}},{key:"getJoinedAVChatRoom",value:function(){return this._AVChatRoomHandler?this._AVChatRoomHandler.getJoinedAVChatRoom():[]}},{key:"isOnlineMessage",value:function(e,t){return!(!this._canIUseOnlineOnlyFlag(e)||!t||!0!==t.onlineUserOnly)}},{key:"_canIUseOnlineOnlyFlag",value:function(e){var t=this.getJoinedAVChatRoom();return!t||!t.includes(e.to)||e.conversationType!==E.CONV_GROUP}},{key:"deleteLocalGroupMembers",value:function(e,t){this.getModule(Jt).deleteLocalGroupMembers(e,t)}},{key:"_onAVChatRoomHistoryMessage",value:function(e){if(!xt(e)){De.log("".concat(this._className,"._onAVChatRoomHistoryMessage count:").concat(e.length));var t=[];e.forEach((function(e){t.push(s({},e,{isHistoryMessage:1}))})),this.onAVChatRoomMessage(t)}}},{key:"onAVChatRoomMessage",value:function(e){this._AVChatRoomHandler&&this._AVChatRoomHandler.onMessage(e)}},{key:"getGroupSimplifiedInfo",value:function(e){var t=this,n=new da(lo),i={groupIDList:[e],responseFilter:{groupBaseInfoFilter:["Type","Name"]}};return this.getGroupProfileAdvance(i).then((function(i){var r=i.data.successGroupList;return n.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(e," type:").concat(r[0].type)).end(),r[0]})).catch((function(i){t.probeNetwork().then((function(t){var r=y(t,2),a=r[0],o=r[1];n.setError(i,a,o).setMessage("groupID:".concat(e)).end()}))}))}},{key:"setUnjoinedAVChatRoom",value:function(e){this._unjoinedAVChatRoomList.set(e,1)}},{key:"deleteUnjoinedAVChatRoom",value:function(e){this._unjoinedAVChatRoomList.has(e)&&this._unjoinedAVChatRoomList.delete(e)}},{key:"isUnjoinedAVChatRoom",value:function(e){return this._unjoinedAVChatRoomList.has(e)}},{key:"onGroupAttributesUpdated",value:function(e){this._groupAttributesHandler&&this._groupAttributesHandler.onGroupAttributesUpdated(e)}},{key:"updateLocalMainSequenceOnReconnected",value:function(){this._groupAttributesHandler&&this._groupAttributesHandler.updateLocalMainSequenceOnReconnected()}},{key:"initGroupAttributes",value:function(e){return this._groupAttributesHandler.initGroupAttributes(e)}},{key:"setGroupAttributes",value:function(e){return this._groupAttributesHandler.setGroupAttributes(e)}},{key:"deleteGroupAttributes",value:function(e){return this._groupAttributesHandler.deleteGroupAttributes(e)}},{key:"getGroupAttributes",value:function(e){return this._groupAttributesHandler.getGroupAttributes(e)}},{key:"reset",value:function(){this.groupMap.clear(),this._unjoinedAVChatRoomList.clear(),this._commonGroupHandler.reset(),this._groupSystemNoticeHandler.reset(),this._groupTipsHandler.reset(),this._AVChatRoomHandler&&this._AVChatRoomHandler.reset()}}]),i}(mn),zs=function(){function e(t){n(this,e),this.userID="",this.avatar="",this.nick="",this.role="",this.joinTime="",this.lastSendMsgTime="",this.nameCard="",this.muteUntil=0,this.memberCustomField=[],this._initMember(t)}return r(e,[{key:"_initMember",value:function(e){this.updateMember(e)}},{key:"updateMember",value:function(e){var t=[null,void 0,"",0,NaN];e.memberCustomField&&ft(this.memberCustomField,e.memberCustomField),nt(this,e,["memberCustomField"],t)}},{key:"updateRole",value:function(e){["Owner","Admin","Member"].indexOf(e)<0||(this.role=e)}},{key:"updateMuteUntil",value:function(e){ze(e)||(this.muteUntil=Math.floor((Date.now()+1e3*e)/1e3))}},{key:"updateNameCard",value:function(e){ze(e)||(this.nameCard=e)}},{key:"updateMemberCustomField",value:function(e){e&&ft(this.memberCustomField,e)}}]),e}(),Ks=function(e){u(i,e);var t=v(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._className="GroupMemberModule",r.groupMemberListMap=new Map,r.getInnerEmitterInstance().on(ys,r._onProfileUpdated,g(r)),r}return r(i,[{key:"_onProfileUpdated",value:function(e){for(var t=this,n=e.data,i=function(e){var i=n[e];t.groupMemberListMap.forEach((function(e){e.has(i.userID)&&e.get(i.userID).updateMember({nick:i.nick,avatar:i.avatar})}))},r=0;r<n.length;r++)i(r)}},{key:"deleteGroupMemberList",value:function(e){this.groupMemberListMap.delete(e)}},{key:"getGroupMemberList",value:function(e){var t=this,n=e.groupID,i=e.offset,r=void 0===i?0:i,a=e.count,o=void 0===a?15:a,s="".concat(this._className,".getGroupMemberList"),u=new da(vo);De.log("".concat(s," groupID:").concat(n," offset:").concat(r," count:").concat(o));var c=0,l={groupID:n,limit:o>100?100:o};mt({groupID:n})?l.next="".concat(r):(l.offset=r,c=r+1);var d=[];return this.request({protocolName:gi,requestData:l}).then((function(e){var i=e.data,r=i.members,a=i.memberNum,o=i.next,s=void 0===o?void 0:o;if(ze(s)||(c=xt(s)?0:s),!We(r)||0===r.length)return c=0,Promise.resolve([]);var u=t.getModule(Yt);return u.hasLocalGroup(n)&&(u.getLocalGroupProfile(n).memberNum=a),d=t._updateLocalGroupMemberMap(n,r),t.getModule(zt).getUserProfile({userIDList:r.map((function(e){return e.userID})),tagList:[Ne.NICK,Ne.AVATAR]})})).then((function(e){var i=e.data;if(!We(i)||0===i.length)return hs({memberList:[],offset:c});var r=i.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}}));return t._updateLocalGroupMemberMap(n,r),u.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," offset:").concat(c," count:").concat(o)).end(),De.log("".concat(s," ok.")),is({memberList:d,offset:c})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];u.setError(e,i,r).end()})),De.error("".concat(s," failed. error:"),e),fs(e)}))}},{key:"getGroupMemberProfile",value:function(e){var t=this,n="".concat(this._className,".getGroupMemberProfile"),i=new da(yo);i.setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)),De.log("".concat(n," groupID:").concat(e.groupID," userIDList:").concat(e.userIDList.join(","))),e.userIDList.length>50&&(e.userIDList=e.userIDList.slice(0,50));var r=e.groupID,a=e.userIDList;return this._getGroupMemberProfileAdvance(s({},e,{userIDList:a})).then((function(e){var n=e.data.members;return We(n)&&0!==n.length?(t._updateLocalGroupMemberMap(r,n),t.getModule(zt).getUserProfile({userIDList:n.map((function(e){return e.userID})),tagList:[Ne.NICK,Ne.AVATAR]})):hs([])})).then((function(e){var n=e.data.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}}));t._updateLocalGroupMemberMap(r,n);var o=a.filter((function(e){return t.hasLocalGroupMember(r,e)})).map((function(e){return t.getLocalGroupMemberInfo(r,e)}));return i.setNetworkType(t.getNetworkType()).end(),is({memberList:o})}))}},{key:"addGroupMember",value:function(e){var t=this,n="".concat(this._className,".addGroupMember"),i=e.groupID,r=this.getModule(Yt).getLocalGroupProfile(i),a=r.type,o=new da(_o);if(o.setMessage("groupID:".concat(i," groupType:").concat(a)),gt(a)){var s=new cs({code:Ri.CANNOT_ADD_MEMBER_IN_AVCHATROOM,message:Ar});return o.setCode(Ri.CANNOT_ADD_MEMBER_IN_AVCHATROOM).setError(Ar).setNetworkType(this.getNetworkType()).end(),fs(s)}return e.userIDList=e.userIDList.map((function(e){return{userID:e}})),De.log("".concat(n," groupID:").concat(i)),this.request({protocolName:vi,requestData:e}).then((function(i){var a=i.data.members;De.log("".concat(n," ok"));var s=a.filter((function(e){return 1===e.result})).map((function(e){return e.userID})),u=a.filter((function(e){return 0===e.result})).map((function(e){return e.userID})),c=a.filter((function(e){return 2===e.result})).map((function(e){return e.userID})),l=a.filter((function(e){return 4===e.result})).map((function(e){return e.userID})),d="groupID:".concat(e.groupID,", ")+"successUserIDList:".concat(s,", ")+"failureUserIDList:".concat(u,", ")+"existedUserIDList:".concat(c,", ")+"overLimitUserIDList:".concat(l);return o.setNetworkType(t.getNetworkType()).setMoreMessage(d).end(),0===s.length?is({successUserIDList:s,failureUserIDList:u,existedUserIDList:c,overLimitUserIDList:l}):(r.memberNum+=s.length,is({successUserIDList:s,failureUserIDList:u,existedUserIDList:c,overLimitUserIDList:l,group:r}))})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];o.setError(e,i,r).end()})),De.error("".concat(n," failed. error:"),e),fs(e)}))}},{key:"deleteGroupMember",value:function(e){var t=this,n="".concat(this._className,".deleteGroupMember"),i=e.groupID,r=e.userIDList,a=new da(bo),o="groupID:".concat(i," ").concat(r.length>5?"userIDList.length:".concat(r.length):"userIDList:".concat(r));a.setMessage(o),De.log("".concat(n," groupID:").concat(i," userIDList:"),r);var s=this.getModule(Yt).getLocalGroupProfile(i);return gt(s.type)?fs(new cs({code:Ri.CANNOT_KICK_MEMBER_IN_AVCHATROOM,message:xr})):this.request({protocolName:yi,requestData:e}).then((function(){return a.setNetworkType(t.getNetworkType()).end(),De.log("".concat(n," ok")),s.memberNum--,t.deleteLocalGroupMembers(i,r),is({group:s,userIDList:r})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];a.setError(e,i,r).end()})),De.error("".concat(n," failed. error:"),e),fs(e)}))}},{key:"setGroupMemberMuteTime",value:function(e){var t=this,n=e.groupID,i=e.userID,r=e.muteTime,a="".concat(this._className,".setGroupMemberMuteTime");if(i===this.getMyUserID())return fs(new cs({code:Ri.CANNOT_MUTE_SELF,message:Rr}));De.log("".concat(a," groupID:").concat(n," userID:").concat(i));var o=new da(To);return o.setMessage("groupID:".concat(n," userID:").concat(i," muteTime:").concat(r)),this.modifyGroupMemberInfo({groupID:n,userID:i,muteTime:r}).then((function(e){o.setNetworkType(t.getNetworkType()).end(),De.log("".concat(a," ok"));var i=t.getModule(Yt);return is({group:i.getLocalGroupProfile(n),member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];o.setError(e,i,r).end()})),De.error("".concat(a," failed. error:"),e),fs(e)}))}},{key:"setGroupMemberRole",value:function(e){var t=this,n="".concat(this._className,".setGroupMemberRole"),i=e.groupID,r=e.userID,a=e.role,o=this.getModule(Yt).getLocalGroupProfile(i);if(o.selfInfo.role!==E.GRP_MBR_ROLE_OWNER)return fs({code:Ri.NOT_OWNER,message:Dr});if([E.GRP_WORK,E.GRP_AVCHATROOM].includes(o.type))return fs({code:Ri.CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM,message:Lr});var s=[E.GRP_MBR_ROLE_ADMIN,E.GRP_MBR_ROLE_MEMBER];if(mt({groupID:i})&&s.push(E.GRP_MBR_ROLE_CUSTOM),s.indexOf(a)<0)return fs({code:Ri.INVALID_MEMBER_ROLE,message:Nr});if(r===this.getMyUserID())return fs({code:Ri.CANNOT_SET_SELF_MEMBER_ROLE,message:Pr});var u=new da(wo);return u.setMessage("groupID:".concat(i," userID:").concat(r," role:").concat(a)),De.log("".concat(n," groupID:").concat(i," userID:").concat(r)),this.modifyGroupMemberInfo({groupID:i,userID:r,role:a}).then((function(e){return u.setNetworkType(t.getNetworkType()).end(),De.log("".concat(n," ok")),is({group:o,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];u.setError(e,i,r).end()})),De.error("".concat(n," failed. error:"),e),fs(e)}))}},{key:"setGroupMemberNameCard",value:function(e){var t=this,n="".concat(this._className,".setGroupMemberNameCard"),i=e.groupID,r=e.userID,a=void 0===r?this.getMyUserID():r,o=e.nameCard;De.log("".concat(n," groupID:").concat(i," userID:").concat(a));var s=new da(So);return s.setMessage("groupID:".concat(i," userID:").concat(a," nameCard:").concat(o)),this.modifyGroupMemberInfo({groupID:i,userID:a,nameCard:o}).then((function(e){De.log("".concat(n," ok")),s.setNetworkType(t.getNetworkType()).end();var r=t.getModule(Yt).getLocalGroupProfile(i);return a===t.getMyUserID()&&r&&r.setSelfNameCard(o),is({group:r,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];s.setError(e,i,r).end()})),De.error("".concat(n," failed. error:"),e),fs(e)}))}},{key:"setGroupMemberCustomField",value:function(e){var t=this,n="".concat(this._className,".setGroupMemberCustomField"),i=e.groupID,r=e.userID,a=void 0===r?this.getMyUserID():r,o=e.memberCustomField;De.log("".concat(n," groupID:").concat(i," userID:").concat(a));var s=new da(ko);return s.setMessage("groupID:".concat(i," userID:").concat(a," memberCustomField:").concat(JSON.stringify(o))),this.modifyGroupMemberInfo({groupID:i,userID:a,memberCustomField:o}).then((function(e){s.setNetworkType(t.getNetworkType()).end(),De.log("".concat(n," ok"));var r=t.getModule(Yt).getLocalGroupProfile(i);return is({group:r,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];s.setError(e,i,r).end()})),De.error("".concat(n," failed. error:"),e),fs(e)}))}},{key:"modifyGroupMemberInfo",value:function(e){var t=this,n=e.groupID,i=e.userID;return this.request({protocolName:_i,requestData:e}).then((function(){if(t.hasLocalGroupMember(n,i)){var r=t.getLocalGroupMemberInfo(n,i);return ze(e.muteTime)||r.updateMuteUntil(e.muteTime),ze(e.role)||r.updateRole(e.role),ze(e.nameCard)||r.updateNameCard(e.nameCard),ze(e.memberCustomField)||r.updateMemberCustomField(e.memberCustomField),r}return t.getGroupMemberProfile({groupID:n,userIDList:[i]}).then((function(e){return y(e.data.memberList,1)[0]}))}))}},{key:"_getGroupMemberProfileAdvance",value:function(e){return this.request({protocolName:mi,requestData:s({},e,{memberInfoFilter:e.memberInfoFilter?e.memberInfoFilter:["Role","JoinTime","NameCard","ShutUpUntil"]})})}},{key:"_updateLocalGroupMemberMap",value:function(e,t){var n=this;return We(t)&&0!==t.length?t.map((function(t){return n.hasLocalGroupMember(e,t.userID)?n.getLocalGroupMemberInfo(e,t.userID).updateMember(t):n.setLocalGroupMember(e,new zs(t)),n.getLocalGroupMemberInfo(e,t.userID)})):[]}},{key:"deleteLocalGroupMembers",value:function(e,t){var n=this.groupMemberListMap.get(e);n&&t.forEach((function(e){n.delete(e)}))}},{key:"getLocalGroupMemberInfo",value:function(e,t){return this.groupMemberListMap.has(e)?this.groupMemberListMap.get(e).get(t):null}},{key:"setLocalGroupMember",value:function(e,t){if(this.groupMemberListMap.has(e))this.groupMemberListMap.get(e).set(t.userID,t);else{var n=(new Map).set(t.userID,t);this.groupMemberListMap.set(e,n)}}},{key:"getLocalGroupMemberList",value:function(e){return this.groupMemberListMap.get(e)}},{key:"hasLocalGroupMember",value:function(e,t){return this.groupMemberListMap.has(e)&&this.groupMemberListMap.get(e).has(t)}},{key:"hasLocalGroupMemberMap",value:function(e){return this.groupMemberListMap.has(e)}},{key:"reset",value:function(){this.groupMemberListMap.clear()}}]),i}(mn),Ys=function(){function e(t){n(this,e),this._userModule=t,this._className="ProfileHandler",this.TAG="profile",this.accountProfileMap=new Map,this.expirationTime=864e5}return r(e,[{key:"setExpirationTime",value:function(e){this.expirationTime=e}},{key:"getUserProfile",value:function(e){var t=this,n=e.userIDList;e.fromAccount=this._userModule.getMyAccount(),n.length>100&&(De.warn("".concat(this._className,".getUserProfile 获取用户资料人数不能超过100人")),n.length=100);for(var i,r=[],a=[],o=0,s=n.length;o<s;o++)i=n[o],this._userModule.isMyFriend(i)&&this._containsAccount(i)?a.push(this._getProfileFromMap(i)):r.push(i);if(0===r.length)return hs(a);e.toAccount=r;var u=e.bFromGetMyProfile||!1,c=[];e.toAccount.forEach((function(e){c.push({toAccount:e,standardSequence:0,customSequence:0})})),e.userItem=c;var l=new da(Ao);return l.setMessage(n.length>5?"userIDList.length:".concat(n.length):"userIDList:".concat(n)),this._userModule.request({protocolName:Mn,requestData:e}).then((function(e){l.setNetworkType(t._userModule.getNetworkType()).end(),De.info("".concat(t._className,".getUserProfile ok"));var n=t._handleResponse(e).concat(a);return is(u?n[0]:n)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];l.setError(e,i,r).end()})),De.error("".concat(t._className,".getUserProfile failed. error:"),e),fs(e)}))}},{key:"getMyProfile",value:function(){var e=this._userModule.getMyAccount();if(De.log("".concat(this._className,".getMyProfile myAccount:").concat(e)),this._fillMap(),this._containsAccount(e)){var t=this._getProfileFromMap(e);return De.debug("".concat(this._className,".getMyProfile from cache, myProfile:")+JSON.stringify(t)),hs(t)}return this.getUserProfile({fromAccount:e,userIDList:[e],bFromGetMyProfile:!0})}},{key:"_handleResponse",value:function(e){for(var t,n,i=et.now(),r=e.data.userProfileItem,a=[],o=0,s=r.length;o<s;o++)"@TLS#NOT_FOUND"!==r[o].to&&""!==r[o].to&&(t=r[o].to,n=this._updateMap(t,this._getLatestProfileFromResponse(t,r[o].profileItem)),a.push(n));return De.log("".concat(this._className,"._handleResponse cost ").concat(et.now()-i," ms")),a}},{key:"_getLatestProfileFromResponse",value:function(e,t){var n={};if(n.userID=e,n.profileCustomField=[],!xt(t))for(var i=0,r=t.length;i<r;i++)if(t[i].tag.indexOf("Tag_Profile_Custom")>-1)n.profileCustomField.push({key:t[i].tag,value:t[i].value});else switch(t[i].tag){case Ne.NICK:n.nick=t[i].value;break;case Ne.GENDER:n.gender=t[i].value;break;case Ne.BIRTHDAY:n.birthday=t[i].value;break;case Ne.LOCATION:n.location=t[i].value;break;case Ne.SELFSIGNATURE:n.selfSignature=t[i].value;break;case Ne.ALLOWTYPE:n.allowType=t[i].value;break;case Ne.LANGUAGE:n.language=t[i].value;break;case Ne.AVATAR:n.avatar=t[i].value;break;case Ne.MESSAGESETTINGS:n.messageSettings=t[i].value;break;case Ne.ADMINFORBIDTYPE:n.adminForbidType=t[i].value;break;case Ne.LEVEL:n.level=t[i].value;break;case Ne.ROLE:n.role=t[i].value;break;default:De.warn("".concat(this._className,"._handleResponse unknown tag:"),t[i].tag,t[i].value)}return n}},{key:"updateMyProfile",value:function(e){var t=this,n="".concat(this._className,".updateMyProfile"),i=new da(Oo);i.setMessage(JSON.stringify(e));var r=(new Cs).validate(e);if(!r.valid)return i.setCode(Ri.UPDATE_PROFILE_INVALID_PARAM).setMoreMessage("".concat(n," info:").concat(r.tips)).setNetworkType(this._userModule.getNetworkType()).end(),De.error("".concat(n," info:").concat(r.tips,",请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#updateMyProfile")),fs({code:Ri.UPDATE_PROFILE_INVALID_PARAM,message:jr});var a=[];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&("profileCustomField"===o?e.profileCustomField.forEach((function(e){a.push({tag:e.key,value:e.value})})):a.push({tag:Ne[o.toUpperCase()],value:e[o]}));return 0===a.length?(i.setCode(Ri.UPDATE_PROFILE_NO_KEY).setMoreMessage(Ur).setNetworkType(this._userModule.getNetworkType()).end(),De.error("".concat(n," info:").concat(Ur,",请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#updateMyProfile")),fs({code:Ri.UPDATE_PROFILE_NO_KEY,message:Ur})):this._userModule.request({protocolName:Cn,requestData:{fromAccount:this._userModule.getMyAccount(),profileItem:a}}).then((function(r){i.setNetworkType(t._userModule.getNetworkType()).end(),De.info("".concat(n," ok"));var a=t._updateMap(t._userModule.getMyAccount(),e);return t._userModule.emitOuterEvent(C.PROFILE_UPDATED,[a]),hs(a)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=y(t,2),r=n[0],a=n[1];i.setError(e,r,a).end()})),De.error("".concat(n," failed. error:"),e),fs(e)}))}},{key:"onProfileModified",value:function(e){var t=e.dataList;if(!xt(t)){var n,i,r=t.length;De.debug("".concat(this._className,".onProfileModified count:").concat(r," dataList:"),e.dataList);for(var a=[],o=0;o<r;o++)n=t[o].userID,i=this._updateMap(n,this._getLatestProfileFromResponse(n,t[o].profileList)),a.push(i);a.length>0&&(this._userModule.emitInnerEvent(ys,a),this._userModule.emitOuterEvent(C.PROFILE_UPDATED,a))}}},{key:"_fillMap",value:function(){if(0===this.accountProfileMap.size){for(var e=this._getCachedProfiles(),t=Date.now(),n=0,i=e.length;n<i;n++)t-e[n].lastUpdatedTime<this.expirationTime&&this.accountProfileMap.set(e[n].userID,e[n]);De.log("".concat(this._className,"._fillMap from cache, map.size:").concat(this.accountProfileMap.size))}}},{key:"_updateMap",value:function(e,t){var n,i=Date.now();return this._containsAccount(e)?(n=this._getProfileFromMap(e),t.profileCustomField&&ft(n.profileCustomField,t.profileCustomField),nt(n,t,["profileCustomField"]),n.lastUpdatedTime=i):(n=new Cs(t),(this._userModule.isMyFriend(e)||e===this._userModule.getMyAccount())&&(n.lastUpdatedTime=i,this.accountProfileMap.set(e,n))),this._flushMap(e===this._userModule.getMyAccount()),n}},{key:"_flushMap",value:function(e){var t=_(this.accountProfileMap.values()),n=this._userModule.getStorageModule();De.debug("".concat(this._className,"._flushMap length:").concat(t.length," flushAtOnce:").concat(e)),n.setItem(this.TAG,t,e)}},{key:"_containsAccount",value:function(e){return this.accountProfileMap.has(e)}},{key:"_getProfileFromMap",value:function(e){return this.accountProfileMap.get(e)}},{key:"_getCachedProfiles",value:function(){var e=this._userModule.getStorageModule().getItem(this.TAG);return xt(e)?[]:e}},{key:"onConversationsProfileUpdated",value:function(e){for(var t,n,i,r=[],a=0,o=e.length;a<o;a++)n=(t=e[a]).userID,this._userModule.isMyFriend(n)||(this._containsAccount(n)?(i=this._getProfileFromMap(n),nt(i,t)>0&&r.push(n)):r.push(t.userID));0!==r.length&&(De.info("".concat(this._className,".onConversationsProfileUpdated toAccountList:").concat(r)),this.getUserProfile({userIDList:r}))}},{key:"getNickAndAvatarByUserID",value:function(e){if(this._containsAccount(e)){var t=this._getProfileFromMap(e);return{nick:t.nick,avatar:t.avatar}}return{nick:"",avatar:""}}},{key:"reset",value:function(){this._flushMap(!0),this.accountProfileMap.clear()}}]),e}(),Xs=function e(t){n(this,e),xt||(this.userID=t.userID||"",this.timeStamp=t.timeStamp||0)},Js=function(){function e(t){n(this,e),this._userModule=t,this._className="BlacklistHandler",this._blacklistMap=new Map,this.startIndex=0,this.maxLimited=100,this.currentSequence=0}return r(e,[{key:"getLocalBlacklist",value:function(){return _(this._blacklistMap.keys())}},{key:"getBlacklist",value:function(){var e=this,t="".concat(this._className,".getBlacklist"),n={fromAccount:this._userModule.getMyAccount(),maxLimited:this.maxLimited,startIndex:0,lastSequence:this.currentSequence},i=new da(xo);return this._userModule.request({protocolName:En,requestData:n}).then((function(n){var r=n.data,a=r.blackListItem,o=r.currentSequence,s=xt(a)?0:a.length;i.setNetworkType(e._userModule.getNetworkType()).setMessage("blackList count:".concat(s)).end(),De.info("".concat(t," ok")),e.currentSequence=o,e._handleResponse(a,!0),e._userModule.emitOuterEvent(C.BLACKLIST_UPDATED,_(e._blacklistMap.keys()))})).catch((function(n){return e._userModule.probeNetwork().then((function(e){var t=y(e,2),r=t[0],a=t[1];i.setError(n,r,a).end()})),De.error("".concat(t," failed. error:"),n),fs(n)}))}},{key:"addBlacklist",value:function(e){var t=this,n="".concat(this._className,".addBlacklist"),i=new da(Do);if(!We(e.userIDList))return i.setCode(Ri.ADD_BLACKLIST_INVALID_PARAM).setMessage(Fr).setNetworkType(this._userModule.getNetworkType()).end(),De.error("".concat(n," options.userIDList 必需是数组")),fs({code:Ri.ADD_BLACKLIST_INVALID_PARAM,message:Fr});var r=this._userModule.getMyAccount();return 1===e.userIDList.length&&e.userIDList[0]===r?(i.setCode(Ri.CANNOT_ADD_SELF_TO_BLACKLIST).setMessage(Gr).setNetworkType(this._userModule.getNetworkType()).end(),De.error("".concat(n," 不能把自己拉黑")),fs({code:Ri.CANNOT_ADD_SELF_TO_BLACKLIST,message:Gr})):(e.userIDList.includes(r)&&(e.userIDList=e.userIDList.filter((function(e){return e!==r})),De.warn("".concat(n," 不能把自己拉黑,已过滤"))),e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:In,requestData:e}).then((function(r){return i.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),De.info("".concat(n," ok")),t._handleResponse(r.resultItem,!0),is(_(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=y(t,2),r=n[0],a=n[1];i.setError(e,r,a).end()})),De.error("".concat(n," failed. error:"),e),fs(e)})))}},{key:"_handleResponse",value:function(e,t){if(!xt(e))for(var n,i,r,a=0,o=e.length;a<o;a++)i=e[a].to,r=e[a].resultCode,(ze(r)||0===r)&&(t?((n=this._blacklistMap.has(i)?this._blacklistMap.get(i):new Xs).userID=i,!xt(e[a].addBlackTimeStamp)&&(n.timeStamp=e[a].addBlackTimeStamp),this._blacklistMap.set(i,n)):this._blacklistMap.has(i)&&(n=this._blacklistMap.get(i),this._blacklistMap.delete(i)));De.log("".concat(this._className,"._handleResponse total:").concat(this._blacklistMap.size," bAdd:").concat(t))}},{key:"deleteBlacklist",value:function(e){var t=this,n="".concat(this._className,".deleteBlacklist"),i=new da(Lo);return We(e.userIDList)?(e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:An,requestData:e}).then((function(r){return i.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),De.info("".concat(n," ok")),t._handleResponse(r.data.resultItem,!1),is(_(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=y(t,2),r=n[0],a=n[1];i.setError(e,r,a).end()})),De.error("".concat(n," failed. error:"),e),fs(e)}))):(i.setCode(Ri.DEL_BLACKLIST_INVALID_PARAM).setMessage(Br).setNetworkType(this._userModule.getNetworkType()).end(),De.error("".concat(n," options.userIDList 必需是数组")),fs({code:Ri.DEL_BLACKLIST_INVALID_PARAM,message:Br}))}},{key:"onAccountDeleted",value:function(e){for(var t,n=[],i=0,r=e.length;i<r;i++)t=e[i],this._blacklistMap.has(t)&&(this._blacklistMap.delete(t),n.push(t));n.length>0&&(De.log("".concat(this._className,".onAccountDeleted count:").concat(n.length," userIDList:"),n),this._userModule.emitOuterEvent(C.BLACKLIST_UPDATED,_(this._blacklistMap.keys())))}},{key:"onAccountAdded",value:function(e){for(var t,n=[],i=0,r=e.length;i<r;i++)t=e[i],this._blacklistMap.has(t)||(this._blacklistMap.set(t,new Xs({userID:t})),n.push(t));n.length>0&&(De.log("".concat(this._className,".onAccountAdded count:").concat(n.length," userIDList:"),n),this._userModule.emitOuterEvent(C.BLACKLIST_UPDATED,_(this._blacklistMap.keys())))}},{key:"reset",value:function(){this._blacklistMap.clear(),this.startIndex=0,this.maxLimited=100,this.currentSequence=0}}]),e}(),Qs=function(e){u(i,e);var t=v(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._className="UserModule",r._profileHandler=new Ys(g(r)),r._blacklistHandler=new Js(g(r)),r.getInnerEmitterInstance().on(ms,r.onContextUpdated,g(r)),r}return r(i,[{key:"onContextUpdated",value:function(e){this._profileHandler.getMyProfile(),this._blacklistHandler.getBlacklist()}},{key:"onProfileModified",value:function(e){this._profileHandler.onProfileModified(e)}},{key:"onRelationChainModified",value:function(e){var t=e.dataList;if(!xt(t)){var n=[];t.forEach((function(e){e.blackListDelAccount&&n.push.apply(n,_(e.blackListDelAccount))})),n.length>0&&this._blacklistHandler.onAccountDeleted(n);var i=[];t.forEach((function(e){e.blackListAddAccount&&i.push.apply(i,_(e.blackListAddAccount))})),i.length>0&&this._blacklistHandler.onAccountAdded(i)}}},{key:"onConversationsProfileUpdated",value:function(e){this._profileHandler.onConversationsProfileUpdated(e)}},{key:"getMyAccount",value:function(){return this.getMyUserID()}},{key:"getMyProfile",value:function(){return this._profileHandler.getMyProfile()}},{key:"getStorageModule",value:function(){return this.getModule(en)}},{key:"isMyFriend",value:function(e){var t=this.getModule(Xt);return!!t&&t.isMyFriend(e)}},{key:"getUserProfile",value:function(e){return this._profileHandler.getUserProfile(e)}},{key:"updateMyProfile",value:function(e){return this._profileHandler.updateMyProfile(e)}},{key:"getNickAndAvatarByUserID",value:function(e){return this._profileHandler.getNickAndAvatarByUserID(e)}},{key:"getLocalBlacklist",value:function(){var e=this._blacklistHandler.getLocalBlacklist();return hs(e)}},{key:"addBlacklist",value:function(e){return this._blacklistHandler.addBlacklist(e)}},{key:"deleteBlacklist",value:function(e){return this._blacklistHandler.deleteBlacklist(e)}},{key:"reset",value:function(){De.log("".concat(this._className,".reset")),this._profileHandler.reset(),this._blacklistHandler.reset()}}]),i}(mn),Zs=function(){function e(t,i){n(this,e),this._moduleManager=t,this._isLoggedIn=!1,this._SDKAppID=i.SDKAppID,this._userID=i.userID||"",this._userSig=i.userSig||"",this._version="2.17.1",this._a2Key="",this._tinyID="",this._contentType="json",this._unlimitedAVChatRoom=i.unlimitedAVChatRoom,this._scene=i.scene||"",this._oversea=i.oversea,this._instanceID=i.instanceID,this._statusInstanceID=0,this._isDevMode=i.devMode,this._proxyServer=i.proxyServer}return r(e,[{key:"isLoggedIn",value:function(){return this._isLoggedIn}},{key:"isOversea",value:function(){return this._oversea}},{key:"isDevMode",value:function(){return this._isDevMode}},{key:"isSingaporeSite",value:function(){return this._SDKAppID>=2e7&&this._SDKAppID<3e7}},{key:"isKoreaSite",value:function(){return this._SDKAppID>=3e7&&this._SDKAppID<4e7}},{key:"isGermanySite",value:function(){return this._SDKAppID>=4e7&&this._SDKAppID<5e7}},{key:"isIndiaSite",value:function(){return this._SDKAppID>=5e7&&this._SDKAppID<6e7}},{key:"isUnlimitedAVChatRoom",value:function(){return this._unlimitedAVChatRoom}},{key:"getUserID",value:function(){return this._userID}},{key:"setUserID",value:function(e){this._userID=e}},{key:"setUserSig",value:function(e){this._userSig=e}},{key:"getUserSig",value:function(){return this._userSig}},{key:"getSDKAppID",value:function(){return this._SDKAppID}},{key:"getTinyID",value:function(){return this._tinyID}},{key:"setTinyID",value:function(e){this._tinyID=e,this._isLoggedIn=!0}},{key:"getScene",value:function(){return this._isTUIKit()?"tuikit":this._scene}},{key:"getInstanceID",value:function(){return this._instanceID}},{key:"getStatusInstanceID",value:function(){return this._statusInstanceID}},{key:"setStatusInstanceID",value:function(e){this._statusInstanceID=e}},{key:"getVersion",value:function(){return this._version}},{key:"getA2Key",value:function(){return this._a2Key}},{key:"setA2Key",value:function(e){this._a2Key=e}},{key:"getContentType",value:function(){return this._contentType}},{key:"getProxyServer",value:function(){return this._proxyServer}},{key:"_isTUIKit",value:function(){var e=!1,t=!1,n=!1,i=!1,r=[];te&&(r=Object.keys(ie)),ne&&(r=Object.keys(window));for(var a=0,o=r.length;a<o;a++)if(r[a].toLowerCase().includes("uikit")){e=!0;break}if(r=null,te&&Ye(getApp)){var s=getApp().globalData;$e(s)&&!0===s.isTUIKit&&(t=!0)}!0===this._moduleManager.getModule(en).getStorageSync("TIM_".concat(this._SDKAppID,"_isTUIKit"))&&(n=!0);var u=null;if(Y&&"undefined"==typeof uni&&__wxConfig&&(u=__wxConfig.pages),X&&"undefined"==typeof uni&&__qqConfig&&(u=__qqConfig.pages),We(u)&&u.length>0){for(var c=0,l=u.length;c<l;c++)if(u[c].toLowerCase().includes("tui")){i=!0;break}u=null}return e||t||n||i}},{key:"reset",value:function(){this._isLoggedIn=!1,this._userSig="",this._a2Key="",this._tinyID="",this._statusInstanceID=0}}]),e}(),eu=function(e){u(i,e);var t=v(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._className="SignModule",r._helloInterval=120,r._lastLoginTs=0,r._lastWsHelloTs=0,_s.mixin(g(r)),r}return r(i,[{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&e%this._helloInterval==0&&this._hello()}},{key:"login",value:function(e){if(this.isLoggedIn()){var t="您已经登录账号".concat(e.userID,"!如需切换账号登录,请先调用 logout 接口登出,再调用 login 接口登录。");return De.warn(t),hs({actionStatus:"OK",errorCode:0,errorInfo:t,repeatLogin:!0})}if(Date.now()-this._lastLoginTs<=15e3)return De.warn("您正在尝试登录账号".concat(e.userID,"!请勿重复登录。")),fs({code:Ri.REPEAT_LOGIN,message:Vi});De.log("".concat(this._className,".login userID:").concat(e.userID));var n=this._checkLoginInfo(e);if(0!==n.code)return fs(n);var i=this.getModule(Zt),r=e.userID,a=e.userSig;return i.setUserID(r),i.setUserSig(a),this.getModule(un).updateProtocolConfig(),this._login()}},{key:"_login",value:function(){var e=this,t=this.getModule(Zt),n=t.getScene(),i=new da(pa);return i.setMessage("".concat(n)).setMoreMessage("identifier:".concat(this.getMyUserID())),ee&&("tuikit"===n?i.setFramework("uni-app_uikit"):i.setFramework("uni-app")),this._lastLoginTs=Date.now(),this.request({protocolName:vn}).then((function(r){e._lastLoginTs=0;var a=Date.now(),o=null,s=r.data,u=s.a2Key,c=s.tinyID,l=s.helloInterval,d=s.instanceID,h=s.timeStamp;De.log("".concat(e._className,".login ok. scene:").concat(n," helloInterval:").concat(l," instanceID:").concat(d," timeStamp:").concat(h));var f=1e3*h,p=a-i.getStartTs(),g=f+parseInt(p/2)-a,m=i.getStartTs()+g;if(i.start(m),function(e,t){Me=t;var n=new Date;n.setTime(e),De.info("baseTime from server: ".concat(n," offset: ").concat(Me))}(f,g),!c)throw o=new cs({code:Ri.NO_TINYID,message:Bi}),i.setError(o,!0,e.getNetworkType()).end(),o;if(!u)throw o=new cs({code:Ri.NO_A2KEY,message:Gi}),i.setError(o,!0,e.getNetworkType()).end(),o;return i.setNetworkType(e.getNetworkType()).setMoreMessage("helloInterval:".concat(l," instanceID:").concat(d," offset:").concat(g)).end(),t.setA2Key(u),t.setTinyID(c),t.setStatusInstanceID(d),e.getModule(un).updateProtocolConfig(),e.emitInnerEvent(ms),e._helloInterval=l,e.triggerReady(),e._fetchCloudControlConfig(),r})).catch((function(t){return e.probeNetwork().then((function(e){var n=y(e,2),r=n[0],a=n[1];i.setError(t,r,a).end(!0)})),De.error("".concat(e._className,".login failed. error:"),t),e._lastLoginTs=0,e._moduleManager.onLoginFailed(),fs(t)}))}},{key:"logout",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!this.isLoggedIn())return fs({code:Ri.USER_NOT_LOGGED_IN,message:qi});var n=new da(ga);return n.setNetworkType(this.getNetworkType()).setMessage("identifier:".concat(this.getMyUserID())).end(!0),De.info("".concat(this._className,".logout type:").concat(t)),this.request({protocolName:yn,requestData:{type:t}}).then((function(){return e.resetReady(),hs({})})).catch((function(t){return De.error("".concat(e._className,"._logout error:"),t),e.resetReady(),hs({})}))}},{key:"_fetchCloudControlConfig",value:function(){this.getModule(dn).fetchConfig()}},{key:"_hello",value:function(){var e=this;this._lastWsHelloTs=Date.now(),this.request({protocolName:_n}).catch((function(t){De.warn("".concat(e._className,"._hello error:"),t)}))}},{key:"getLastWsHelloTs",value:function(){return this._lastWsHelloTs}},{key:"_checkLoginInfo",value:function(e){var t=0,n="";return xt(this.getModule(Zt).getSDKAppID())?(t=Ri.NO_SDKAPPID,n=ji):xt(e.userID)?(t=Ri.NO_IDENTIFIER,n=Ui):xt(e.userSig)&&(t=Ri.NO_USERSIG,n=Fi),{code:t,message:n}}},{key:"onMultipleAccountKickedOut",value:function(e){var t=this;new da(ma).setNetworkType(this.getNetworkType()).setMessage("type:".concat(E.KICKED_OUT_MULT_ACCOUNT," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),De.warn("".concat(this._className,".onMultipleAccountKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then((function(){t.emitOuterEvent(C.KICKED_OUT,{type:E.KICKED_OUT_MULT_ACCOUNT}),t._moduleManager.reset()}))}},{key:"onMultipleDeviceKickedOut",value:function(e){var t=this;new da(ma).setNetworkType(this.getNetworkType()).setMessage("type:".concat(E.KICKED_OUT_MULT_DEVICE," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),De.warn("".concat(this._className,".onMultipleDeviceKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then((function(){t.emitOuterEvent(C.KICKED_OUT,{type:E.KICKED_OUT_MULT_DEVICE}),t._moduleManager.reset()}))}},{key:"onUserSigExpired",value:function(){new da(ma).setNetworkType(this.getNetworkType()).setMessage(E.KICKED_OUT_USERSIG_EXPIRED).end(!0),De.warn("".concat(this._className,".onUserSigExpired: userSig 签名过期被踢下线")),0!==this.getModule(Zt).getStatusInstanceID()&&(this.emitOuterEvent(C.KICKED_OUT,{type:E.KICKED_OUT_USERSIG_EXPIRED}),this._moduleManager.reset())}},{key:"reset",value:function(){De.log("".concat(this._className,".reset")),this.resetReady(),this._helloInterval=120,this._lastLoginTs=0,this._lastWsHelloTs=0}}]),i}(mn);function tu(){return null}var nu=function(){function e(t){n(this,e),this._moduleManager=t,this._className="StorageModule",this._storageQueue=new Map,this._errorTolerantHandle()}return r(e,[{key:"_errorTolerantHandle",value:function(){te||!ze(window)&&!ze(window.localStorage)||(this.getItem=tu,this.setItem=tu,this.removeItem=tu,this.clear=tu)}},{key:"onCheckTimer",value:function(e){if(e%20==0){if(0===this._storageQueue.size)return;this._doFlush()}}},{key:"_doFlush",value:function(){try{var e,t=M(this._storageQueue);try{for(t.s();!(e=t.n()).done;){var n=y(e.value,2),i=n[0],r=n[1];this._setStorageSync(this._getKey(i),r)}}catch(o){t.e(o)}finally{t.f()}this._storageQueue.clear()}catch(s){De.warn("".concat(this._className,"._doFlush error:"),s)}}},{key:"_getPrefix",value:function(){var e=this._moduleManager.getModule(Zt);return"TIM_".concat(e.getSDKAppID(),"_").concat(e.getUserID(),"_")}},{key:"_getKey",value:function(e){return"".concat(this._getPrefix()).concat(e)}},{key:"getItem",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;return this.getStorageSync(n)}catch(r){return De.warn("".concat(this._className,".getItem error:"),r),{}}}},{key:"setItem",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(n){var r=i?this._getKey(e):e;this._setStorageSync(r,t)}else this._storageQueue.set(e,t)}},{key:"clear",value:function(){try{te?ie.clearStorageSync():localStorage&&localStorage.clear()}catch(e){De.warn("".concat(this._className,".clear error:"),e)}}},{key:"removeItem",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;this._removeStorageSync(n)}catch(r){De.warn("".concat(this._className,".removeItem error:"),r)}}},{key:"getSize",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"b";try{var i={size:0,limitSize:5242880,unit:n};if(Object.defineProperty(i,"leftSize",{enumerable:!0,get:function(){return i.limitSize-i.size}}),te&&(i.limitSize=1024*ie.getStorageInfoSync().limitSize),e)i.size=JSON.stringify(this.getItem(e)).length+this._getKey(e).length;else if(te){var r=ie.getStorageInfoSync(),a=r.keys;a.forEach((function(e){i.size+=JSON.stringify(t.getStorageSync(e)).length+t._getKey(e).length}))}else if(localStorage)for(var o in localStorage)localStorage.hasOwnProperty(o)&&(i.size+=localStorage.getItem(o).length+o.length);return this._convertUnit(i)}catch(u){De.warn("".concat(this._className," error:"),u)}}},{key:"_convertUnit",value:function(e){var t={},n=e.unit;for(var i in t.unit=n,e)"number"==typeof e[i]&&("kb"===n.toLowerCase()?t[i]=Math.round(e[i]/1024):"mb"===n.toLowerCase()?t[i]=Math.round(e[i]/1024/1024):t[i]=e[i]);return t}},{key:"_setStorageSync",value:function(e,t){te?Z?my.setStorageSync({key:e,data:t}):ie.setStorageSync(e,t):localStorage&&localStorage.setItem(e,JSON.stringify(t))}},{key:"getStorageSync",value:function(e){return te?Z?my.getStorageSync({key:e}).data:ie.getStorageSync(e):localStorage?JSON.parse(localStorage.getItem(e)):{}}},{key:"_removeStorageSync",value:function(e){te?Z?my.removeStorageSync({key:e}):ie.removeStorageSync(e):localStorage&&localStorage.removeItem(e)}},{key:"reset",value:function(){De.log("".concat(this._className,".reset")),this._doFlush()}}]),e}(),iu=function(){function e(t){n(this,e),this._className="SSOLogBody",this._report=[]}return r(e,[{key:"pushIn",value:function(e){De.debug("".concat(this._className,".pushIn"),this._report.length,e),this._report.push(e)}},{key:"backfill",value:function(e){var t;We(e)&&0!==e.length&&(De.debug("".concat(this._className,".backfill"),this._report.length,e.length),(t=this._report).unshift.apply(t,_(e)))}},{key:"getLogsNumInMemory",value:function(){return this._report.length}},{key:"isEmpty",value:function(){return 0===this._report.length}},{key:"_reset",value:function(){this._report.length=0,this._report=[]}},{key:"getLogsInMemory",value:function(){var e=this._report.slice();return this._reset(),e}}]),e}(),ru=function(e){var t=e.getModule(Zt);return{SDKType:10,SDKAppID:t.getSDKAppID(),SDKVersion:t.getVersion(),tinyID:Number(t.getTinyID()),userID:t.getUserID(),platform:e.getPlatform(),instanceID:t.getInstanceID(),traceID:Ce()}},au=function(e){u(i,e);var t=v(i);function i(e){var r;n(this,i),(r=t.call(this,e))._className="EventStatModule",r.TAG="im-ssolog-event",r._reportBody=new iu,r.MIN_THRESHOLD=20,r.MAX_THRESHOLD=100,r.WAITING_TIME=6e4,r.REPORT_LEVEL=[4,5,6],r.REPORT_SDKAPPID_BLACKLIST=[],r.REPORT_TINYID_WHITELIST=[],r._lastReportTime=Date.now();var a=r.getInnerEmitterInstance();return a.on(ms,r._onLoginSuccess,g(r)),a.on(vs,r._onCloudConfigUpdated,g(r)),r}return r(i,[{key:"reportAtOnce",value:function(){De.debug("".concat(this._className,".reportAtOnce")),this._report()}},{key:"_onLoginSuccess",value:function(){var e=this,t=this.getModule(en),n=t.getItem(this.TAG,!1);!xt(n)&&Ye(n.forEach)&&(De.log("".concat(this._className,"._onLoginSuccess get ssolog in storage, count:").concat(n.length)),n.forEach((function(t){e._reportBody.pushIn(t)})),t.removeItem(this.TAG,!1))}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("evt_rpt_threshold"),t=this.getCloudConfig("evt_rpt_waiting"),n=this.getCloudConfig("evt_rpt_level"),i=this.getCloudConfig("evt_rpt_sdkappid_bl"),r=this.getCloudConfig("evt_rpt_tinyid_wl");ze(e)||(this.MIN_THRESHOLD=Number(e)),ze(t)||(this.WAITING_TIME=Number(t)),ze(n)||(this.REPORT_LEVEL=n.split(",").map((function(e){return Number(e)}))),ze(i)||(this.REPORT_SDKAPPID_BLACKLIST=i.split(",").map((function(e){return Number(e)}))),ze(r)||(this.REPORT_TINYID_WHITELIST=r.split(","))}},{key:"pushIn",value:function(e){e instanceof da&&(e.updateTimeStamp(),this._reportBody.pushIn(e),this._reportBody.getLogsNumInMemory()>=this.MIN_THRESHOLD&&this._report())}},{key:"onCheckTimer",value:function(){Date.now()<this._lastReportTime+this.WAITING_TIME||this._reportBody.isEmpty()||this._report()}},{key:"_filterLogs",value:function(e){var t=this,n=this.getModule(Zt),i=n.getSDKAppID(),r=n.getTinyID();return It(this.REPORT_SDKAPPID_BLACKLIST,i)&&!At(this.REPORT_TINYID_WHITELIST,r)?[]:e.filter((function(e){return t.REPORT_LEVEL.includes(e.level)}))}},{key:"_report",value:function(){var e=this;if(!this._reportBody.isEmpty()){var t=this._reportBody.getLogsInMemory(),n=this._filterLogs(t);if(0!==n.length){var i={header:ru(this),event:n};this.request({protocolName:wi,requestData:s({},i)}).then((function(){e._lastReportTime=Date.now()})).catch((function(n){De.warn("".concat(e._className,".report failed. networkType:").concat(e.getNetworkType()," error:"),n),e._reportBody.backfill(t),e._reportBody.getLogsNumInMemory()>e.MAX_THRESHOLD&&e._flushAtOnce()}))}else this._lastReportTime=Date.now()}}},{key:"_flushAtOnce",value:function(){var e=this.getModule(en),t=e.getItem(this.TAG,!1),n=this._reportBody.getLogsInMemory();if(xt(t))De.log("".concat(this._className,"._flushAtOnce count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var i=n.concat(t);i.length>this.MAX_THRESHOLD&&(i=i.slice(0,this.MAX_THRESHOLD)),De.log("".concat(this._className,"._flushAtOnce count:").concat(i.length)),e.setItem(this.TAG,i,!0,!1)}}},{key:"reset",value:function(){De.log("".concat(this._className,".reset")),this._lastReportTime=0,this._report(),this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[]}}]),i}(mn),ou="none",su="online",uu=function(){function e(t){n(this,e),this._moduleManager=t,this._networkType="",this._className="NetMonitorModule",this.MAX_WAIT_TIME=3e3,this._mpNetworkStatusCallback=null,this._webOnlineCallback=null,this._webOfflineCallback=null}return r(e,[{key:"start",value:function(){var e=this;te?(ie.getNetworkType({success:function(t){e._networkType=t.networkType,t.networkType===ou?De.warn("".concat(e._className,".start no network, please check!")):De.info("".concat(e._className,".start networkType:").concat(t.networkType))}}),this._mpNetworkStatusCallback=this._onNetworkStatusChange.bind(this),ie.onNetworkStatusChange(this._mpNetworkStatusCallback)):(this._networkType=su,this._webOnlineCallback=this._onWebOnline.bind(this),this._webOfflineCallback=this._onWebOffline.bind(this),window&&(window.addEventListener("online",this._webOnlineCallback),window.addEventListener("offline",this._webOfflineCallback)))}},{key:"_onWebOnline",value:function(){this._onNetworkStatusChange({isConnected:!0,networkType:su})}},{key:"_onWebOffline",value:function(){this._onNetworkStatusChange({isConnected:!1,networkType:ou})}},{key:"_onNetworkStatusChange",value:function(e){var t=e.isConnected,n=e.networkType,i=!1;t?(De.info("".concat(this._className,"._onNetworkStatusChange previousNetworkType:").concat(this._networkType," currentNetworkType:").concat(n)),this._networkType!==n&&(i=!0,this._moduleManager.getModule(cn).reConnect(!0))):this._networkType!==n&&(i=!0,De.warn("".concat(this._className,"._onNetworkStatusChange no network, please check!"))),i&&(new da(wa).setMessage("isConnected:".concat(t," previousNetworkType:").concat(this._networkType," networkType:").concat(n)).end(),this._networkType=n)}},{key:"probe",value:function(){var e=this;return new Promise((function(t,n){if(te)ie.getNetworkType({success:function(n){e._networkType=n.networkType,n.networkType===ou?(De.warn("".concat(e._className,".probe no network, please check!")),t([!1,n.networkType])):(De.info("".concat(e._className,".probe networkType:").concat(n.networkType)),t([!0,n.networkType]))}});else if(window&&window.fetch)fetch("".concat(lt(),"//web.sdk.qcloud.com/im/assets/speed.xml?random=").concat(Math.random())).then((function(e){e.ok?t([!0,su]):t([!1,ou])})).catch((function(e){t([!1,ou])}));else{var i=new XMLHttpRequest,r=setTimeout((function(){De.warn("".concat(e._className,".probe fetch timeout. Probably no network, please check!")),i.abort(),e._networkType=ou,t([!1,ou])}),e.MAX_WAIT_TIME);i.onreadystatechange=function(){4===i.readyState&&(clearTimeout(r),200===i.status||304===i.status||514===i.status?(this._networkType=su,t([!0,su])):(De.warn("".concat(this.className,".probe fetch status:").concat(i.status,". Probably no network, please check!")),this._networkType=ou,t([!1,ou])))},i.open("GET","".concat(lt(),"//web.sdk.qcloud.com/im/assets/speed.xml?random=").concat(Math.random())),i.send()}}))}},{key:"getNetworkType",value:function(){return this._networkType}},{key:"reset",value:function(){De.log("".concat(this._className,".reset")),te?null!==this._mpNetworkStatusCallback&&(ie.offNetworkStatusChange&&(ee||J?ie.offNetworkStatusChange(this._mpNetworkStatusCallback):ie.offNetworkStatusChange()),this._mpNetworkStatusCallback=null):window&&(null!==this._webOnlineCallback&&(window.removeEventListener("online",this._webOnlineCallback),this._webOnlineCallback=null),null!==this._onWebOffline&&(window.removeEventListener("offline",this._webOfflineCallback),this._webOfflineCallback=null))}}]),e}(),cu=O((function(e){var t=Object.prototype.hasOwnProperty,n="~";function i(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,i,a,o){if("function"!=typeof i)throw new TypeError("The listener must be a function");var s=new r(i,a||e,o),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function s(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,i,r=[];if(0===this._eventsCount)return r;for(i in e=this._events)t.call(e,i)&&r.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},s.prototype.listeners=function(e){var t=n?n+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,a=i.length,o=new Array(a);r<a;r++)o[r]=i[r].fn;return o},s.prototype.listenerCount=function(e){var t=n?n+e:e,i=this._events[t];return i?i.fn?1:i.length:0},s.prototype.emit=function(e,t,i,r,a,o){var s=n?n+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,i),!0;case 4:return l.fn.call(l.context,t,i,r),!0;case 5:return l.fn.call(l.context,t,i,r,a),!0;case 6:return l.fn.call(l.context,t,i,r,a,o),!0}for(c=1,u=new Array(d-1);c<d;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var h,f=l.length;for(c=0;c<f;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),d){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,i);break;case 4:l[c].fn.call(l[c].context,t,i,r);break;default:if(!u)for(h=1,u=new Array(d-1);h<d;h++)u[h-1]=arguments[h];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,i,r){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return o(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||r&&!s.once||i&&s.context!==i||o(this,a);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||r&&!s[u].once||i&&s[u].context!==i)&&c.push(s[u]);c.length?this._events[a]=1===c.length?c[0]:c:o(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&o(this,t)):(this._events=new i,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})),lu=function(e){u(i,e);var t=v(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._className="BigDataChannelModule",r.FILETYPE={SOUND:2106,FILE:2107,VIDEO:2113},r._bdh_download_server="grouptalk.c2c.qq.com",r._BDHBizID=10001,r._authKey="",r._expireTime=0,r.getInnerEmitterInstance().on(ms,r._getAuthKey,g(r)),r}return r(i,[{key:"_getAuthKey",value:function(){var e=this;this.request({protocolName:Sn}).then((function(t){t.data.authKey&&(e._authKey=t.data.authKey,e._expireTime=parseInt(t.data.expireTime))}))}},{key:"_isFromOlderVersion",value:function(e){return!(!e.content||2===e.content.downloadFlag)}},{key:"parseElements",value:function(e,t){if(!We(e)||!t)return[];for(var n=[],i=null,r=0;r<e.length;r++)i=e[r],this._needParse(i)?n.push(this._parseElement(i,t)):n.push(e[r]);return n}},{key:"_needParse",value:function(e){return!e.cloudCustomData&&!(!this._isFromOlderVersion(e)||e.type!==E.MSG_AUDIO&&e.type!==E.MSG_FILE&&e.type!==E.MSG_VIDEO)}},{key:"_parseElement",value:function(e,t){switch(e.type){case E.MSG_AUDIO:return this._parseAudioElement(e,t);case E.MSG_FILE:return this._parseFileElement(e,t);case E.MSG_VIDEO:return this._parseVideoElement(e,t)}}},{key:"_parseAudioElement",value:function(e,t){return e.content.url=this._genAudioUrl(e.content.uuid,t),e}},{key:"_parseFileElement",value:function(e,t){return e.content.url=this._genFileUrl(e.content.uuid,t,e.content.fileName),e}},{key:"_parseVideoElement",value:function(e,t){return e.content.url=this._genVideoUrl(e.content.uuid,t),e}},{key:"_genAudioUrl",value:function(e,t){if(""===this._authKey)return De.warn("".concat(this._className,"._genAudioUrl no authKey!")),"";var n=this.getModule(Zt).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(n,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.SOUND,"&openid=").concat(t,"&ver=0")}},{key:"_genFileUrl",value:function(e,t,n){if(""===this._authKey)return De.warn("".concat(this._className,"._genFileUrl no authKey!")),"";n||(n="".concat(Math.floor(1e5*Math.random()),"-").concat(Date.now()));var i=this.getModule(Zt).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(i,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.FILE,"&openid=").concat(t,"&ver=0&filename=").concat(encodeURIComponent(n))}},{key:"_genVideoUrl",value:function(e,t){if(""===this._authKey)return De.warn("".concat(this._className,"._genVideoUrl no authKey!")),"";var n=this.getModule(Zt).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(n,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.VIDEO,"&openid=").concat(t,"&ver=0")}},{key:"reset",value:function(){De.log("".concat(this._className,".reset")),this._authKey="",this.expireTime=0}}]),i}(mn),du=function(e){u(i,e);var t=v(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._className="UploadModule",r.TIMUploadPlugin=null,r.timUploadPlugin=null,r.COSSDK=null,r._cosUploadMethod=null,r.expiredTimeLimit=600,r.appid=0,r.bucketName="",r.ciUrl="",r.directory="",r.downloadUrl="",r.uploadUrl="",r.region="ap-shanghai",r.cos=null,r.cosOptions={secretId:"",secretKey:"",sessionToken:"",expiredTime:0},r.uploadFileType="",r.duration=900,r.tryCount=0,r.getInnerEmitterInstance().on(ms,r._init,g(r)),r}return r(i,[{key:"_init",value:function(){var e="".concat(this._className,"._init"),t=this.getModule(on);if(this.TIMUploadPlugin=t.getPlugin("tim-upload-plugin"),this.TIMUploadPlugin)this._initUploaderMethod();else{var n=te?"cos-wx-sdk":"cos-js-sdk";this.COSSDK=t.getPlugin(n),this.COSSDK?(this._getAuthorizationKey(),De.warn("".concat(e," v2.9.2起推荐使用 tim-upload-plugin 代替 ").concat(n,",上传更快更安全。详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#registerPlugin"))):De.warn("".concat(e," 没有检测到上传插件,将无法发送图片、音频、视频、文件等类型的消息。详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#registerPlugin"))}}},{key:"_getAuthorizationKey",value:function(){var e=this,t=new da(ka),n=Math.ceil(Date.now()/1e3);this.request({protocolName:bi,requestData:{duration:this.expiredTimeLimit}}).then((function(i){var r=i.data;De.log("".concat(e._className,"._getAuthorizationKey ok. data:"),r);var a=r.expiredTime-n;t.setMessage("requestId:".concat(r.requestId," requestTime:").concat(n," expiredTime:").concat(r.expiredTime," diff:").concat(a,"s")).setNetworkType(e.getNetworkType()).end(),!te&&r.region&&(e.region=r.region),e.appid=r.appid,e.bucketName=r.bucketName,e.ciUrl=r.ciUrl,e.directory=r.directory,e.downloadUrl=r.downloadUrl,e.uploadUrl=r.uploadUrl,e.cosOptions={secretId:r.secretId,secretKey:r.secretKey,sessionToken:r.sessionToken,expiredTime:r.expiredTime},De.log("".concat(e._className,"._getAuthorizationKey ok. region:").concat(e.region," bucketName:").concat(e.bucketName)),e._initUploaderMethod()})).catch((function(n){e.probeNetwork().then((function(e){var i=y(e,2),r=i[0],a=i[1];t.setError(n,r,a).end()})),De.warn("".concat(e._className,"._getAuthorizationKey failed. error:"),n)}))}},{key:"_getCosPreSigUrl",value:function(e){var t=this,n="".concat(this._className,"._getCosPreSigUrl"),i=Math.ceil(Date.now()/1e3),r=new da(Ma);return this.request({protocolName:Ti,requestData:{fileType:e.fileType,fileName:e.fileName,uploadMethod:e.uploadMethod,duration:e.duration}}).then((function(e){t.tryCount=0;var a=e.data||{},o=a.expiredTime-i;return De.log("".concat(n," ok. data:"),a),r.setMessage("requestId:".concat(a.requestId," expiredTime:").concat(a.expiredTime," diff:").concat(o,"s")).setNetworkType(t.getNetworkType()).end(),a})).catch((function(i){return-1===i.code&&(i.code=Ri.COS_GET_SIG_FAIL),t.probeNetwork().then((function(e){var t=y(e,2),n=t[0],a=t[1];r.setError(i,n,a).end()})),De.warn("".concat(n," failed. error:"),i),t.tryCount<1?(t.tryCount++,t._getCosPreSigUrl(e)):(t.tryCount=0,fs({code:Ri.COS_GET_SIG_FAIL,message:$i}))}))}},{key:"_initUploaderMethod",value:function(){var e=this;if(this.TIMUploadPlugin)return this.timUploadPlugin=new this.TIMUploadPlugin,void(this._cosUploadMethod=function(t,n){e.timUploadPlugin.uploadFile(t,n)});this.appid&&(this.cos=te?new this.COSSDK({ForcePathStyle:!0,getAuthorization:this._getAuthorization.bind(this)}):new this.COSSDK({getAuthorization:this._getAuthorization.bind(this)}),this._cosUploadMethod=te?function(t,n){e.cos.postObject(t,n)}:function(t,n){e.cos.uploadFiles(t,n)})}},{key:"onCheckTimer",value:function(e){this.COSSDK&&(this.TIMUploadPlugin||this.isLoggedIn()&&e%60==0&&Math.ceil(Date.now()/1e3)>=this.cosOptions.expiredTime-120&&this._getAuthorizationKey())}},{key:"_getAuthorization",value:function(e,t){t({TmpSecretId:this.cosOptions.secretId,TmpSecretKey:this.cosOptions.secretKey,XCosSecurityToken:this.cosOptions.sessionToken,ExpiredTime:this.cosOptions.expiredTime})}},{key:"upload",value:function(e){if(!0===e.getRelayFlag())return Promise.resolve();var t=this.getModule(pn);switch(e.type){case E.MSG_IMAGE:return t.addTotalCount(ia),this._uploadImage(e);case E.MSG_FILE:return t.addTotalCount(ia),this._uploadFile(e);case E.MSG_AUDIO:return t.addTotalCount(ia),this._uploadAudio(e);case E.MSG_VIDEO:return t.addTotalCount(ia),this._uploadVideo(e);default:return Promise.resolve()}}},{key:"_uploadImage",value:function(e){var t=this.getModule(Wt),n=e.getElements()[0],i=t.getMessageOptionByID(e.ID);return this.doUploadImage({file:i.payload.file,to:i.to,onProgress:function(e){if(n.updatePercent(e),Ye(i.onProgress))try{i.onProgress(e)}catch(t){return fs({code:Ri.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Xi})}}}).then((function(t){var i=t.location,r=t.fileType,a=t.fileSize,o=t.width,u=t.height,c=dt(i);n.updateImageFormat(r);var l=kt({originUrl:c,originWidth:o,originHeight:u,min:198}),d=kt({originUrl:c,originWidth:o,originHeight:u,min:720});return n.updateImageInfoArray([{size:a,url:c,width:o,height:u},s({},d),s({},l)]),e}))}},{key:"_uploadFile",value:function(e){var t=this.getModule(Wt),n=e.getElements()[0],i=t.getMessageOptionByID(e.ID);return this.doUploadFile({file:i.payload.file,to:i.to,onProgress:function(e){if(n.updatePercent(e),Ye(i.onProgress))try{i.onProgress(e)}catch(t){return fs({code:Ri.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Xi})}}}).then((function(t){var i=t.location,r=dt(i);return n.updateFileUrl(r),e}))}},{key:"_uploadAudio",value:function(e){var t=this.getModule(Wt),n=e.getElements()[0],i=t.getMessageOptionByID(e.ID);return this.doUploadAudio({file:i.payload.file,to:i.to,onProgress:function(e){if(n.updatePercent(e),Ye(i.onProgress))try{i.onProgress(e)}catch(t){return fs({code:Ri.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Xi})}}}).then((function(t){var i=t.location,r=dt(i);return n.updateAudioUrl(r),e}))}},{key:"_uploadVideo",value:function(e){var t=this.getModule(Wt),n=e.getElements()[0],i=t.getMessageOptionByID(e.ID);return this.doUploadVideo({file:i.payload.file,to:i.to,onProgress:function(e){if(n.updatePercent(e),Ye(i.onProgress))try{i.onProgress(e)}catch(t){return fs({code:Ri.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Xi})}}}).then((function(t){var i=t.location,r=t.snapshotInfo,a=dt(i);return n.updateVideoUrl(a),xt(r)||n.updateSnapshotInfo(r),e}))}},{key:"doUploadImage",value:function(e){if(!e.file)return fs({code:Ri.MESSAGE_IMAGE_SELECT_FILE_FIRST,message:tr});var t=this._checkImageType(e.file);if(!0!==t)return t;var n=this._checkImageSize(e.file);if(!0!==n)return n;var i=null;return this._setUploadFileType(Ss),this.uploadByCOS(e).then((function(e){return i=e,Tt("https://".concat(e.location))})).then((function(e){return i.width=e.width,i.height=e.height,Promise.resolve(i)}))}},{key:"_checkImageType",value:function(e){var t="";return t=te?e.url.slice(e.url.lastIndexOf(".")+1):e.files[0].name.slice(e.files[0].name.lastIndexOf(".")+1),bs.indexOf(t.toLowerCase())>=0||fs({code:Ri.MESSAGE_IMAGE_TYPES_LIMIT,message:nr})}},{key:"_checkImageSize",value:function(e){var t=0;return 0===(t=te?e.size:e.files[0].size)?fs({code:Ri.MESSAGE_FILE_IS_EMPTY,message:"".concat(Yi)}):t<20971520||fs({code:Ri.MESSAGE_IMAGE_SIZE_LIMIT,message:"".concat(ir)})}},{key:"doUploadFile",value:function(e){var t=null;return e.file?e.file.files[0].size>104857600?fs(t={code:Ri.MESSAGE_FILE_SIZE_LIMIT,message:dr}):0===e.file.files[0].size?(t={code:Ri.MESSAGE_FILE_IS_EMPTY,message:"".concat(Yi)},fs(t)):(this._setUploadFileType(Ms),this.uploadByCOS(e)):fs(t={code:Ri.MESSAGE_FILE_SELECT_FILE_FIRST,message:lr})}},{key:"doUploadVideo",value:function(e){return e.file.videoFile.size>104857600?fs({code:Ri.MESSAGE_VIDEO_SIZE_LIMIT,message:"".concat(sr)}):0===e.file.videoFile.size?fs({code:Ri.MESSAGE_FILE_IS_EMPTY,message:"".concat(Yi)}):-1===Ts.indexOf(e.file.videoFile.type)?fs({code:Ri.MESSAGE_VIDEO_TYPES_LIMIT,message:"".concat(ur)}):(this._setUploadFileType(ws),te?this.handleVideoUpload({file:e.file.videoFile,onProgress:e.onProgress}):ne?this.handleVideoUpload(e):void 0)}},{key:"handleVideoUpload",value:function(e){var t=this;return new Promise((function(n,i){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){i(new cs({code:Ri.MESSAGE_VIDEO_UPLOAD_FAIL,message:or}))}))}))}))}},{key:"doUploadAudio",value:function(e){return e.file?e.file.size>20971520?fs(new cs({code:Ri.MESSAGE_AUDIO_SIZE_LIMIT,message:"".concat(ar)})):0===e.file.size?fs(new cs({code:Ri.MESSAGE_FILE_IS_EMPTY,message:"".concat(Yi)})):(this._setUploadFileType(ks),this.uploadByCOS(e)):fs(new cs({code:Ri.MESSAGE_AUDIO_UPLOAD_FAIL,message:rr}))}},{key:"uploadByCOS",value:function(e){var t=this,n="".concat(this._className,".uploadByCOS");if(!Ye(this._cosUploadMethod))return De.warn("".concat(n," 没有检测到上传插件,将无法发送图片、音频、视频、文件等类型的消息。详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#registerPlugin")),fs({code:Ri.COS_UNDETECTED,message:Hi});if(this.timUploadPlugin)return this._uploadWithPreSigUrl(e);var i=new da(Ea),r=Date.now(),a=this._getFile(e);return new Promise((function(o,s){var u=te?t._createCosOptionsWXMiniApp(e):t._createCosOptionsWeb(e),c=t;t._cosUploadMethod(u,(function(e,u){var l=Object.create(null);if(u){if(e||We(u.files)&&u.files[0].error){var d=new cs({code:Ri.MESSAGE_FILE_UPLOAD_FAIL,message:cr});return i.setError(d,!0,t.getNetworkType()).end(),De.log("".concat(n," failed. error:"),u.files[0].error),403===u.files[0].error.statusCode&&(De.warn("".concat(n," failed. cos AccessKeyId was invalid, regain auth key!")),t._getAuthorizationKey()),void s(d)}l.fileName=a.name,l.fileSize=a.size,l.fileType=a.type.slice(a.type.indexOf("/")+1).toLowerCase(),l.location=te?u.Location:u.files[0].data.Location;var h=Date.now()-r,f=c._formatFileSize(a.size),p=c._formatSpeed(1e3*a.size/h),g="size:".concat(f," time:").concat(h,"ms speed:").concat(p);De.log("".concat(n," success. name:").concat(a.name," ").concat(g)),o(l);var m=t.getModule(pn);return m.addCost(ia,h),m.addFileSize(ia,a.size),void i.setNetworkType(t.getNetworkType()).setMessage(g).end()}var v=new cs({code:Ri.MESSAGE_FILE_UPLOAD_FAIL,message:cr});i.setError(v,!0,c.getNetworkType()).end(),De.warn("".concat(n," failed. error:"),e),403===e.statusCode&&(De.warn("".concat(n," failed. cos AccessKeyId was invalid, regain auth key!")),t._getAuthorizationKey()),s(v)}))}))}},{key:"_uploadWithPreSigUrl",value:function(e){var t=this,n="".concat(this._className,"._uploadWithPreSigUrl"),i=this._getFile(e);return this._createCosOptionsPreSigUrl(e).then((function(e){return new Promise((function(r,a){var o=new da(Ea),s=e.requestSnapshotUrl,u=void 0===s?void 0:s,c=p(e,["requestSnapshotUrl"]),l=Date.now();t._cosUploadMethod(c,(function(e,s){var c=Object.create(null);if(e||403===s.statusCode){var d=new cs({code:Ri.MESSAGE_FILE_UPLOAD_FAIL,message:cr});return o.setError(d,!0,t.getNetworkType()).end(),De.log("".concat(n," failed, error:"),e),void a(d)}var h=s.data.location||"";0!==h.indexOf("https://")&&0!==h.indexOf("http://")||(h=h.split("//")[1]),c.fileName=i.name,c.fileSize=i.size,c.fileType=i.type.slice(i.type.indexOf("/")+1).toLowerCase(),c.location=h;var f=Date.now()-l,p=t._formatFileSize(i.size),g=t._formatSpeed(1e3*i.size/f),m="size:".concat(p,",time:").concat(f,"ms,speed:").concat(g," res:").concat(JSON.stringify(s.data));De.log("".concat(n," success name:").concat(i.name,",").concat(m)),o.setNetworkType(t.getNetworkType()).setMessage(m).end();var v=t.getModule(pn);if(v.addCost(ia,f),v.addFileSize(ia,i.size),!xt(u))return t._getSnapshotInfoByUrl(u).then((function(e){c.snapshotInfo=e,r(c)}));r(c)}))}))}))}},{key:"_getFile",value:function(e){var t=null;return te?t=ee&&We(e.file.files)?e.file.files[0]:e.file:ne&&(t=e.file.files[0]),t}},{key:"_formatFileSize",value:function(e){return e<1024?e+"B":e<1048576?Math.floor(e/1024)+"KB":Math.floor(e/1048576)+"MB"}},{key:"_formatSpeed",value:function(e){return e<=1048576?Et(e/1024,1)+"KB/s":Et(e/1048576,1)+"MB/s"}},{key:"_createCosOptionsWeb",value:function(e){var t=e.file.files[0].name,n=t.slice(t.lastIndexOf(".")),i=this._genFileName("".concat(at(999999)).concat(n));return{files:[{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(i),Body:e.file.files[0]}],SliceSize:1048576,onProgress:function(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){De.warn("onProgress callback error:",n)}},onFileFinish:function(e,t,n){}}}},{key:"_createCosOptionsWXMiniApp",value:function(e){var t=this._getFile(e),n=this._genFileName(t.name),i=t.url;return{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(n),FilePath:i,onProgress:function(t){if(De.log(JSON.stringify(t)),"function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){De.warn("onProgress callback error:",n)}}}}},{key:"_createCosOptionsPreSigUrl",value:function(e){var t=this,n="",i="",r=0;if(te){var a=this._getFile(e);n=this._genFileName(a.name),i=a.url,r=1}else{var o=e.file.files[0].name,s=o.slice(o.lastIndexOf("."));n=this._genFileName("".concat(at(999999)).concat(s)),i=e.file.files[0],r=0}return this._getCosPreSigUrl({fileType:this.uploadFileType,fileName:n,uploadMethod:r,duration:this.duration}).then((function(r){var a=r.uploadUrl,o=r.downloadUrl,s=r.requestSnapshotUrl,u=void 0===s?void 0:s;return{url:a,fileType:t.uploadFileType,fileName:n,resources:i,downloadUrl:o,requestSnapshotUrl:u,onProgress:function(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){De.warn("onProgress callback error:",n),De.error(n)}}}}))}},{key:"_genFileName",value:function(e){return"".concat(St(),"-").concat(e)}},{key:"_setUploadFileType",value:function(e){this.uploadFileType=e}},{key:"_getSnapshotInfoByUrl",value:function(e){var t=this,n=new da(Ca);return this.request({protocolName:Si,requestData:{platform:this.getPlatform(),coverName:this._genFileName(at(99999)),requestSnapshotUrl:e}}).then((function(e){var t=(e.data||{}).snapshotUrl;return n.setMessage("snapshotUrl:".concat(t)).end(),xt(t)?{}:Tt(t).then((function(e){return{snapshotUrl:t,snapshotWidth:e.width,snapshotHeight:e.height}}))})).catch((function(e){return De.warn("".concat(t._className,"._getSnapshotInfoByUrl failed. error:"),e),n.setCode(e.errorCode).setMessage(e.errorInfo).end(),{}}))}},{key:"reset",value:function(){De.log("".concat(this._className,".reset"))}}]),i}(mn),hu=function(){function e(t){n(this,e),this._className="MergerMessageHandler",this._messageModule=t}return r(e,[{key:"uploadMergerMessage",value:function(e,t){var n=this;De.debug("".concat(this._className,".uploadMergerMessage message:"),e,"messageBytes:".concat(t));var i=e.payload.messageList,r=i.length,a=new da(ja);return this._messageModule.request({protocolName:Ai,requestData:{messageList:i}}).then((function(e){De.debug("".concat(n._className,".uploadMergerMessage ok. response:"),e.data);var i=e.data,o=i.pbDownloadKey,s=i.downloadKey,u={pbDownloadKey:o,downloadKey:s,messageNumber:r};return a.setNetworkType(n._messageModule.getNetworkType()).setMessage("".concat(r,"-").concat(t,"-").concat(s)).end(),u})).catch((function(e){throw De.warn("".concat(n._className,".uploadMergerMessage failed. error:"),e),n._messageModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];a.setError(e,i,r).end()})),e}))}},{key:"downloadMergerMessage",value:function(e){var t=this;De.debug("".concat(this._className,".downloadMergerMessage message:"),e);var n=e.payload.downloadKey,i=new da(Ua);return i.setMessage("downloadKey:".concat(n)),this._messageModule.request({protocolName:Oi,requestData:{downloadKey:n}}).then((function(n){if(De.debug("".concat(t._className,".downloadMergerMessage ok. response:"),n.data),Ye(e.clearElement)){var r=e.payload,a=(r.downloadKey,r.pbDownloadKey,r.messageList,p(r,["downloadKey","pbDownloadKey","messageList"]));e.clearElement(),e.setElement({type:e.type,content:s({messageList:n.data.messageList},a)})}else{var o=[];n.data.messageList.forEach((function(e){if(!xt(e)){var t=new Zo(e);o.push(t)}})),e.payload.messageList=o,e.payload.downloadKey="",e.payload.pbDownloadKey=""}return i.setNetworkType(t._messageModule.getNetworkType()).end(),e})).catch((function(e){throw De.warn("".concat(t._className,".downloadMergerMessage failed. key:").concat(n," error:"),e),t._messageModule.probeNetwork().then((function(t){var n=y(t,2),r=n[0],a=n[1];i.setError(e,r,a).end()})),e}))}},{key:"createMergerMessagePack",value:function(e,t,n){return e.conversationType===E.CONV_C2C?this._createC2CMergerMessagePack(e,t,n):this._createGroupMergerMessagePack(e,t,n)}},{key:"_createC2CMergerMessagePack",value:function(e,t,n){var i=null;t&&(t.offlinePushInfo&&(i=t.offlinePushInfo),!0===t.onlineUserOnly&&(i?i.disablePush=!0:i={disablePush:!0}));var r="";Ve(e.cloudCustomData)&&e.cloudCustomData.length>0&&(r=e.cloudCustomData);var a=n.pbDownloadKey,o=n.downloadKey,s=n.messageNumber,u=e.payload,c=u.title,l=u.abstractList,d=u.compatibleText,h=this._messageModule.getModule(Kt);return{protocolName:wn,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),toAccount:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:a,downloadKey:o,title:c,abstractList:l,compatibleText:d,messageNumber:s}}],cloudCustomData:r,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:h&&h.isOnlineMessage(e,t)?0:void 0,offlinePushInfo:i?{pushFlag:!0===i.disablePush?1:0,title:i.title||"",desc:i.description||"",ext:i.extension||"",apnsInfo:{badgeMode:!0===i.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:i.androidOPPOChannelID||""}}:void 0}}}},{key:"_createGroupMergerMessagePack",value:function(e,t,n){var i=null;t&&t.offlinePushInfo&&(i=t.offlinePushInfo);var r="";Ve(e.cloudCustomData)&&e.cloudCustomData.length>0&&(r=e.cloudCustomData);var a=n.pbDownloadKey,o=n.downloadKey,s=n.messageNumber,u=e.payload,c=u.title,l=u.abstractList,d=u.compatibleText,h=this._messageModule.getModule(Yt);return{protocolName:kn,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),groupID:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:a,downloadKey:o,title:c,abstractList:l,compatibleText:d,messageNumber:s}}],random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:void 0,cloudCustomData:r,onlineOnlyFlag:h&&h.isOnlineMessage(e,t)?1:0,offlinePushInfo:i?{pushFlag:!0===i.disablePush?1:0,title:i.title||"",desc:i.description||"",ext:i.extension||"",apnsInfo:{badgeMode:!0===i.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:i.androidOPPOChannelID||""}}:void 0}}}}]),e}(),fu={ERR_SVR_COMM_SENSITIVE_TEXT:80001,ERR_SVR_COMM_BODY_SIZE_LIMIT:80002,OPEN_SERVICE_OVERLOAD_ERROR:60022,ERR_SVR_MSG_PKG_PARSE_FAILED:20001,ERR_SVR_MSG_INTERNAL_AUTH_FAILED:20002,ERR_SVR_MSG_INVALID_ID:20003,ERR_SVR_MSG_PUSH_DENY:20006,ERR_SVR_MSG_IN_PEER_BLACKLIST:20007,ERR_SVR_MSG_BOTH_NOT_FRIEND:20009,ERR_SVR_MSG_NOT_PEER_FRIEND:20010,ERR_SVR_MSG_NOT_SELF_FRIEND:20011,ERR_SVR_MSG_SHUTUP_DENY:20012,ERR_SVR_GROUP_INVALID_PARAMETERS:10004,ERR_SVR_GROUP_PERMISSION_DENY:10007,ERR_SVR_GROUP_NOT_FOUND:10010,ERR_SVR_GROUP_INVALID_GROUPID:10015,ERR_SVR_GROUP_REJECT_FROM_THIRDPARTY:10016,ERR_SVR_GROUP_SHUTUP_DENY:10017,MESSAGE_SEND_FAIL:2100,OVER_FREQUENCY_LIMIT:2996},pu=[Ri.MESSAGE_ONPROGRESS_FUNCTION_ERROR,Ri.MESSAGE_IMAGE_SELECT_FILE_FIRST,Ri.MESSAGE_IMAGE_TYPES_LIMIT,Ri.MESSAGE_FILE_IS_EMPTY,Ri.MESSAGE_IMAGE_SIZE_LIMIT,Ri.MESSAGE_FILE_SELECT_FILE_FIRST,Ri.MESSAGE_FILE_SIZE_LIMIT,Ri.MESSAGE_VIDEO_SIZE_LIMIT,Ri.MESSAGE_VIDEO_TYPES_LIMIT,Ri.MESSAGE_AUDIO_UPLOAD_FAIL,Ri.MESSAGE_AUDIO_SIZE_LIMIT,Ri.COS_UNDETECTED],gu=function(e){u(i,e);var t=v(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._className="MessageModule",r._messageOptionsMap=new Map,r._mergerMessageHandler=new hu(g(r)),r}return r(i,[{key:"createTextMessage",value:function(e){var t=e.to,n=e.payload.atUserList,i=void 0===n?[]:n;if(mt({groupID:t})&&i.includes(E.MSG_AT_ALL))return fs({code:Ri.MESSAGE_AT_TYPE_INVALID,message:vr});var r=this.getMyUserID();e.currentUser=r;var a=new ns(e),o="string"==typeof e.payload?e.payload:e.payload.text,s=new Go({text:o}),u=this._getNickAndAvatarByUserID(r);return a.setElement(s),a.setNickAndAvatar(u),a.setNameCard(this._getNameCardByGroupID(a)),a}},{key:"createImageMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t;var n=new ns(e);if(te){var i=e.payload.file;if(Ge(i))return void De.warn("小程序环境下调用 createImageMessage 接口时,payload.file 不支持传入 File 对象");var r=i.tempFilePaths[0],a={url:r,name:r.slice(r.lastIndexOf("/")+1),size:i.tempFiles&&i.tempFiles[0].size||1,type:r.slice(r.lastIndexOf(".")+1).toLowerCase()};e.payload.file=a}else if(ne)if(Ge(e.payload.file)){var o=e.payload.file;e.payload.file={files:[o]}}else if($e(e.payload.file)&&"undefined"!=typeof uni){var s=e.payload.file.tempFiles[0];e.payload.file={files:[s]}}var u=new qo({imageFormat:Le.UNKNOWN,uuid:this._generateUUID(),file:e.payload.file}),c=this._getNickAndAvatarByUserID(t);return n.setElement(u),n.setNickAndAvatar(c),n.setNameCard(this._getNameCardByGroupID(n)),this._messageOptionsMap.set(n.ID,e),n}},{key:"createAudioMessage",value:function(e){if(te){var t=e.payload.file;if(te){var n={url:t.tempFilePath,name:t.tempFilePath.slice(t.tempFilePath.lastIndexOf("/")+1),size:t.fileSize,second:parseInt(t.duration)/1e3,type:t.tempFilePath.slice(t.tempFilePath.lastIndexOf(".")+1).toLowerCase()};e.payload.file=n}var i=this.getMyUserID();e.currentUser=i;var r=new ns(e),a=new Ho({second:Math.floor(t.duration/1e3),size:t.fileSize,url:t.tempFilePath,uuid:this._generateUUID()}),o=this._getNickAndAvatarByUserID(i);return r.setElement(a),r.setNickAndAvatar(o),r.setNameCard(this._getNameCardByGroupID(r)),this._messageOptionsMap.set(r.ID,e),r}De.warn("createAudioMessage 目前只支持小程序环境下发语音消息")}},{key:"createVideoMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.payload.file.thumbUrl="https://web.sdk.qcloud.com/im/assets/images/transparent.png",e.payload.file.thumbSize=1668;var n={};if(te){if(Z)return void De.warn("createVideoMessage 不支持在支付宝小程序环境下使用");if(Ge(e.payload.file))return void De.warn("小程序环境下调用 createVideoMessage 接口时,payload.file 不支持传入 File 对象");var i=e.payload.file;n.url=i.tempFilePath,n.name=i.tempFilePath.slice(i.tempFilePath.lastIndexOf("/")+1),n.size=i.size,n.second=i.duration,n.type=i.tempFilePath.slice(i.tempFilePath.lastIndexOf(".")+1).toLowerCase()}else if(ne){if(Ge(e.payload.file)){var r=e.payload.file;e.payload.file.files=[r]}else if($e(e.payload.file)&&"undefined"!=typeof uni){var a=e.payload.file.tempFile;e.payload.file.files=[a]}var o=e.payload.file;n.url=window.URL.createObjectURL(o.files[0]),n.name=o.files[0].name,n.size=o.files[0].size,n.second=o.files[0].duration||0,n.type=o.files[0].type.split("/")[1]}e.payload.file.videoFile=n;var s=new ns(e),u=new Jo({videoFormat:n.type,videoSecond:Et(n.second,0),videoSize:n.size,remoteVideoUrl:"",videoUrl:n.url,videoUUID:this._generateUUID(),thumbUUID:this._generateUUID(),thumbWidth:e.payload.file.width||200,thumbHeight:e.payload.file.height||200,thumbUrl:e.payload.file.thumbUrl,thumbSize:e.payload.file.thumbSize,thumbFormat:e.payload.file.thumbUrl.slice(e.payload.file.thumbUrl.lastIndexOf(".")+1).toLowerCase()}),c=this._getNickAndAvatarByUserID(t);return s.setElement(u),s.setNickAndAvatar(c),s.setNameCard(this._getNameCardByGroupID(s)),this._messageOptionsMap.set(s.ID,e),s}},{key:"createCustomMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t;var n=new ns(e),i=new Xo({data:e.payload.data,description:e.payload.description,extension:e.payload.extension}),r=this._getNickAndAvatarByUserID(t);return n.setElement(i),n.setNickAndAvatar(r),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createFaceMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t;var n=new ns(e),i=new Vo(e.payload),r=this._getNickAndAvatarByUserID(t);return n.setElement(i),n.setNickAndAvatar(r),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createMergerMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t;var n=this._getNickAndAvatarByUserID(t),i=new ns(e),r=new es(e.payload);return i.setElement(r),i.setNickAndAvatar(n),i.setNameCard(this._getNameCardByGroupID(i)),i.setRelayFlag(!0),i}},{key:"createForwardMessage",value:function(e){var t=e.to,n=e.conversationType,i=e.priority,r=e.payload,a=this.getMyUserID(),o=this._getNickAndAvatarByUserID(a);if(r.type===E.MSG_GRP_TIP)return fs(new cs({code:Ri.MESSAGE_FORWARD_TYPE_INVALID,message:mr}));var s={to:t,conversationType:n,conversationID:"".concat(n).concat(t),priority:i,isPlaceMessage:0,status:Pt.UNSEND,currentUser:a,cloudCustomData:e.cloudCustomData||r.cloudCustomData||""},u=new ns(s);return u.setElement(r.getElements()[0]),u.setNickAndAvatar(o),u.setNameCard(this._getNameCardByGroupID(r)),u.setRelayFlag(!0),u}},{key:"downloadMergerMessage",value:function(e){return this._mergerMessageHandler.downloadMergerMessage(e)}},{key:"createFileMessage",value:function(e){if(!te||ee){if(ne||ee)if(Ge(e.payload.file)){var t=e.payload.file;e.payload.file={files:[t]}}else if($e(e.payload.file)&&"undefined"!=typeof uni){var n=e.payload.file,i=n.tempFiles,r=n.files,a=null;We(i)?a=i[0]:We(r)&&(a=r[0]),e.payload.file={files:[a]}}var o=this.getMyUserID();e.currentUser=o;var s=new ns(e),u=new Yo({uuid:this._generateUUID(),file:e.payload.file}),c=this._getNickAndAvatarByUserID(o);return s.setElement(u),s.setNickAndAvatar(c),s.setNameCard(this._getNameCardByGroupID(s)),this._messageOptionsMap.set(s.ID,e),s}De.warn("小程序目前不支持选择文件, createFileMessage 接口不可用!")}},{key:"createLocationMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t;var n=new ns(e),i=new Qo(e.payload),r=this._getNickAndAvatarByUserID(t);return n.setElement(i),n.setNickAndAvatar(r),n.setNameCard(this._getNameCardByGroupID(n)),this._messageOptionsMap.set(n.ID,e),n}},{key:"_onCannotFindModule",value:function(){return fs({code:Ri.CANNOT_FIND_MODULE,message:zr})}},{key:"sendMessageInstance",value:function(e,t){var n,i=this,r=null;switch(e.conversationType){case E.CONV_C2C:if(!(r=this.getModule(Kt)))return this._onCannotFindModule();break;case E.CONV_GROUP:if(!(r=this.getModule(Yt)))return this._onCannotFindModule();if(mt({groupID:e.to})&&!ze(t)&&!ze(t.messageControlInfo))return fs({code:Ri.MESSAGE_CONTROL_INFO_FAIL,message:er});break;default:return fs({code:Ri.MESSAGE_SEND_INVALID_CONVERSATION_TYPE,message:Ki})}var a=this.getModule(an),o=this.getModule(Yt);return a.upload(e).then((function(){return i._getSendMessageSpecifiedKey(e)===na&&i.getModule(pn).addSuccessCount(ia),o.guardForAVChatRoom(e).then((function(){if(!e.isSendable())return fs({code:Ri.MESSAGE_FILE_URL_IS_EMPTY,message:hr});i._addSendMessageTotalCount(e),n=Date.now();var a=function(e){var t="utf-8";ne&&document&&(t=document.charset.toLowerCase());var n,i,r=0;if(i=e.length,"utf-8"===t||"utf8"===t)for(var a=0;a<i;a++)(n=e.codePointAt(a))<=127?r+=1:n<=2047?r+=2:n<=65535?r+=3:(r+=4,a++);else if("utf-16"===t||"utf16"===t)for(var o=0;o<i;o++)(n=e.codePointAt(o))<=65535?r+=2:(r+=4,o++);else r=e.replace(/[^\x00-\xff]/g,"aa").length;return r}(JSON.stringify(e));return e.type===E.MSG_MERGER&&a>7e3?i._mergerMessageHandler.uploadMergerMessage(e,a).then((function(n){var r=i._mergerMessageHandler.createMergerMessagePack(e,t,n);return i.request(r)})):(i.getModule(Qt).setMessageRandom(e),e.conversationType===E.CONV_C2C||e.conversationType===E.CONV_GROUP?r.sendMessage(e,t):void 0)})).then((function(a){var o=a.data,s=o.time,u=o.sequence;i._addSendMessageSuccessCount(e,n),i._messageOptionsMap.delete(e.ID);var c=i.getModule(Qt);e.status=Pt.SUCCESS,e.time=s;var l=!1;if(e.conversationType===E.CONV_GROUP)e.sequence=u,e.generateMessageID(i.getMyUserID());else if(e.conversationType===E.CONV_C2C){var d=c.getLatestMessageSentByMe(e.conversationID);if(d){var h=d.nick,f=d.avatar;h===e.nick&&f===e.avatar||(l=!0)}}if(c.appendToMessageList(e),l&&c.modifyMessageSentByMe({conversationID:e.conversationID,latestNick:e.nick,latestAvatar:e.avatar}),r.isOnlineMessage(e,t))e._onlineOnlyFlag=!0;else{var p=e;$e(t)&&$e(t.messageControlInfo)&&(!0===t.messageControlInfo.excludedFromLastMessage&&(e._isExcludedFromLastMessage=!0,p=""),!0===t.messageControlInfo.excludedFromUnreadCount&&(e._isExcludedFromUnreadCount=!0)),c.onMessageSent({conversationOptionsList:[{conversationID:e.conversationID,unreadCount:0,type:e.conversationType,subType:e.conversationSubType,lastMessage:p}]})}return e.getRelayFlag()||"TIMImageElem"!==e.type||Mt(e.payload.imageInfoArray),is({message:e})}))})).catch((function(t){return i._onSendMessageFailed(e,t)}))}},{key:"_onSendMessageFailed",value:function(e,t){e.status=Pt.FAIL,this.getModule(Qt).deleteMessageRandom(e),this._addSendMessageFailCountOnUser(e,t);var n=new da(Ia);return n.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to)),this.probeNetwork().then((function(e){var i=y(e,2),r=i[0],a=i[1];n.setError(t,r,a).end()})),De.error("".concat(this._className,"._onSendMessageFailed error:"),t),fs(new cs({code:t&&t.code?t.code:Ri.MESSAGE_SEND_FAIL,message:t&&t.message?t.message:Wi,data:{message:e}}))}},{key:"_getSendMessageSpecifiedKey",value:function(e){if([E.MSG_IMAGE,E.MSG_AUDIO,E.MSG_VIDEO,E.MSG_FILE].includes(e.type))return na;if(e.conversationType===E.CONV_C2C)return Zr;if(e.conversationType===E.CONV_GROUP){var t=this.getModule(Yt).getLocalGroupProfile(e.to);if(!t)return;var n=t.type;return gt(n)?ta:ea}}},{key:"_addSendMessageTotalCount",value:function(e){var t=this._getSendMessageSpecifiedKey(e);t&&this.getModule(pn).addTotalCount(t)}},{key:"_addSendMessageSuccessCount",value:function(e,t){var n=Math.abs(Date.now()-t),i=this._getSendMessageSpecifiedKey(e);if(i){var r=this.getModule(pn);r.addSuccessCount(i),r.addCost(i,n)}}},{key:"_addSendMessageFailCountOnUser",value:function(e,t){var n,i,r=t.code,a=void 0===r?-1:r,o=this.getModule(pn),s=this._getSendMessageSpecifiedKey(e);s===na&&(n=a,i=!1,pu.includes(n)&&(i=!0),i)?o.addFailedCountOfUserSide(ia):function(e){var t=!1;return Object.values(fu).includes(e)&&(t=!0),(e>=120001&&e<=13e4||e>=10100&&e<=10200)&&(t=!0),t}(a)&&s&&o.addFailedCountOfUserSide(s)}},{key:"resendMessage",value:function(e){return e.isResend=!0,e.status=Pt.UNSEND,e.random=at(),e.generateMessageID(this.getMyUserID()),this.sendMessageInstance(e)}},{key:"revokeMessage",value:function(e){var t=this,n=null;if(e.conversationType===E.CONV_C2C){if(!(n=this.getModule(Kt)))return this._onCannotFindModule()}else if(e.conversationType===E.CONV_GROUP&&!(n=this.getModule(Yt)))return this._onCannotFindModule();var i=new da(xa);return i.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to)),n.revokeMessage(e).then((function(n){var r=n.data.recallRetList;if(!xt(r)&&0!==r[0].retCode){var a=new cs({code:r[0].retCode,message:us[r[0].retCode]||Ji,data:{message:e}});return i.setCode(a.code).setMoreMessage(a.message).end(),fs(a)}return De.info("".concat(t._className,".revokeMessage ok. ID:").concat(e.ID)),e.isRevoked=!0,i.end(),t.getModule(Qt).onMessageRevoked([e]),is({message:e})})).catch((function(n){t.probeNetwork().then((function(e){var t=y(e,2),r=t[0],a=t[1];i.setError(n,r,a).end()}));var r=new cs({code:n&&n.code?n.code:Ri.MESSAGE_REVOKE_FAIL,message:n&&n.message?n.message:Ji,data:{message:e}});return De.warn("".concat(t._className,".revokeMessage failed. error:"),n),fs(r)}))}},{key:"deleteMessage",value:function(e){var t=this,n=null,i=e[0],r=i.conversationID,a="",o=[],s=[];if(i.conversationType===E.CONV_C2C?(n=this.getModule(Kt),a=r.replace(E.CONV_C2C,""),e.forEach((function(e){e&&e.status===Pt.SUCCESS&&e.conversationID===r&&(e._onlineOnlyFlag||o.push("".concat(e.sequence,"_").concat(e.random,"_").concat(e.time)),s.push(e))}))):i.conversationType===E.CONV_GROUP&&(n=this.getModule(Yt),a=r.replace(E.CONV_GROUP,""),e.forEach((function(e){e&&e.status===Pt.SUCCESS&&e.conversationID===r&&(e._onlineOnlyFlag||o.push("".concat(e.sequence)),s.push(e))}))),!n)return this._onCannotFindModule();if(0===o.length)return this._onMessageDeleted(s);o.length>30&&(o=o.slice(0,30),s=s.slice(0,30));var u=new da(Da);return u.setMessage("to:".concat(a," count:").concat(o.length)),n.deleteMessage({to:a,keyList:o}).then((function(e){return u.end(),De.info("".concat(t._className,".deleteMessage ok")),t._onMessageDeleted(s)})).catch((function(e){t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];u.setError(e,i,r).end()})),De.warn("".concat(t._className,".deleteMessage failed. error:"),e);var n=new cs({code:e&&e.code?e.code:Ri.MESSAGE_DELETE_FAIL,message:e&&e.message?e.message:Qi});return fs(n)}))}},{key:"_onMessageDeleted",value:function(e){return this.getModule(Qt).onMessageDeleted(e),hs({messageList:e})}},{key:"_generateUUID",value:function(){var e=this.getModule(Zt);return"".concat(e.getSDKAppID(),"-").concat(e.getUserID(),"-").concat(function(){for(var e="",t=32;t>0;--t)e+=ot[Math.floor(Math.random()*st)];return e}())}},{key:"getMessageOptionByID",value:function(e){return this._messageOptionsMap.get(e)}},{key:"_getNickAndAvatarByUserID",value:function(e){return this.getModule(zt).getNickAndAvatarByUserID(e)}},{key:"_getNameCardByGroupID",value:function(e){if(e.conversationType===E.CONV_GROUP){var t=this.getModule(Yt);if(t)return t.getMyNameCardByGroupID(e.to)}return""}},{key:"reset",value:function(){De.log("".concat(this._className,".reset")),this._messageOptionsMap.clear()}}]),i}(mn),mu=function(e){u(i,e);var t=v(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._className="PluginModule",r.plugins={},r}return r(i,[{key:"registerPlugin",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.plugins[n]=e[n]})),new da(va).setMessage("key=".concat(Object.keys(e))).end()}},{key:"getPlugin",value:function(e){return this.plugins[e]}},{key:"reset",value:function(){De.log("".concat(this._className,".reset"))}}]),i}(mn),vu=function(e){u(i,e);var t=v(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._className="SyncUnreadMessageModule",r._cookie="",r._onlineSyncFlag=!1,r.getInnerEmitterInstance().on(ms,r._onLoginSuccess,g(r)),r}return r(i,[{key:"_onLoginSuccess",value:function(e){this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:"_startSync",value:function(e){var t=this,n=e.cookie,i=e.syncFlag,r=e.isOnlineSync;De.log("".concat(this._className,"._startSync cookie:").concat(n," syncFlag:").concat(i," isOnlineSync:").concat(r)),this.request({protocolName:Tn,requestData:{cookie:n,syncFlag:i,isOnlineSync:r}}).then((function(e){var n=e.data,i=n.cookie,r=n.syncFlag,a=n.eventArray,o=n.messageList,s=n.C2CRemainingUnreadList,u=n.C2CPairUnreadList;t._cookie=i,xt(i)||(0===r||1===r?(a&&t.getModule(un).onMessage({head:{},body:{eventArray:a,isInstantMessage:t._onlineSyncFlag,isSyncingEnded:!1}}),t.getModule(Kt).onNewC2CMessage({dataList:o,isInstantMessage:!1,C2CRemainingUnreadList:s,C2CPairUnreadList:u}),t._startSync({cookie:i,syncFlag:r,isOnlineSync:0})):2===r&&(a&&t.getModule(un).onMessage({head:{},body:{eventArray:a,isInstantMessage:t._onlineSyncFlag,isSyncingEnded:!0}}),t.getModule(Kt).onNewC2CMessage({dataList:o,isInstantMessage:t._onlineSyncFlag,C2CRemainingUnreadList:s,C2CPairUnreadList:u})))})).catch((function(e){De.error("".concat(t._className,"._startSync failed. error:"),e)}))}},{key:"startOnlineSync",value:function(){De.log("".concat(this._className,".startOnlineSync")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:1})}},{key:"startSyncOnReconnected",value:function(){De.log("".concat(this._className,".startSyncOnReconnected.")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:"reset",value:function(){De.log("".concat(this._className,".reset")),this._onlineSyncFlag=!1,this._cookie=""}}]),i}(mn),yu={request:{toAccount:"To_Account",fromAccount:"From_Account",to:"To_Account",from:"From_Account",groupID:"GroupId",groupAtUserID:"GroupAt_Account",extension:"Ext",data:"Data",description:"Desc",elements:"MsgBody",sizeType:"Type",downloadFlag:"Download_Flag",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",videoUrl:"",imageUrl:"URL",fileUrl:"Url",uuid:"UUID",priority:"MsgPriority",receiverUserID:"To_Account",receiverGroupID:"GroupId",messageSender:"SenderId",messageReceiver:"ReceiverId",nick:"From_AccountNick",avatar:"From_AccountHeadurl",messageNumber:"MsgNum",pbDownloadKey:"PbMsgKey",downloadKey:"JsonMsgKey",applicationType:"PendencyType",userIDList:"To_Account",groupNameList:"GroupName",userID:"To_Account",groupAttributeList:"GroupAttr",mainSequence:"AttrMainSeq",avChatRoomKey:"BytesKey",attributeControl:"AttrControl",sequence:"seq",messageControlInfo:"SendMsgControl",updateSequence:"UpdateSeq",clientTime:"MsgClientTime"},response:{MsgPriority:"priority",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID",Download_Flag:"downloadFlag",GroupId:"groupID",Member_Account:"userID",MsgList:"messageList",SyncFlag:"syncFlag",To_Account:"to",From_Account:"from",MsgSeq:"sequence",MsgRandom:"random",MsgTime:"time",MsgTimeStamp:"time",MsgContent:"content",MsgBody:"elements",From_AccountNick:"nick",From_AccountHeadurl:"avatar",GroupWithdrawInfoArray:"revokedInfos",GroupReadInfoArray:"groupMessageReadNotice",LastReadMsgSeq:"lastMessageSeq",WithdrawC2cMsgNotify:"c2cMessageRevokedNotify",C2cWithdrawInfoArray:"revokedInfos",C2cReadedReceipt:"c2cMessageReadReceipt",ReadC2cMsgNotify:"c2cMessageReadNotice",LastReadTime:"peerReadTime",MsgRand:"random",MsgType:"type",MsgShow:"messageShow",NextMsgSeq:"nextMessageSeq",FaceUrl:"avatar",ProfileDataMod:"profileModify",Profile_Account:"userID",ValueBytes:"value",ValueNum:"value",NoticeSeq:"noticeSequence",NotifySeq:"notifySequence",MsgFrom_AccountExtraInfo:"messageFromAccountExtraInformation",Operator_Account:"operatorID",OpType:"operationType",ReportType:"operationType",UserId:"userID",User_Account:"userID",List_Account:"userIDList",MsgOperatorMemberExtraInfo:"operatorInfo",MsgMemberExtraInfo:"memberInfoList",ImageUrl:"avatar",NickName:"nick",MsgGroupNewInfo:"newGroupProfile",MsgAppDefinedData:"groupCustomField",Owner_Account:"ownerID",GroupFaceUrl:"avatar",GroupIntroduction:"introduction",GroupNotification:"notification",GroupApplyJoinOption:"joinOption",MsgKey:"messageKey",GroupInfo:"groupProfile",ShutupTime:"muteTime",Desc:"description",Ext:"extension",GroupAt_Account:"groupAtUserID",MsgNum:"messageNumber",PbMsgKey:"pbDownloadKey",JsonMsgKey:"downloadKey",MsgModifiedFlag:"isModified",PendencyItem:"applicationItem",PendencyType:"applicationType",AddTime:"time",AddSource:"source",AddWording:"wording",ProfileImImage:"avatar",PendencyAdd:"friendApplicationAdded",FrienPencydDel_Account:"friendApplicationDeletedUserIDList",Peer_Account:"userID",GroupAttr:"groupAttributeList",GroupAttrAry:"groupAttributeList",AttrMainSeq:"mainSequence",seq:"sequence",GroupAttrOption:"groupAttributeOption",BytesChangedKeys:"changedKeyList",GroupAttrInfo:"groupAttributeList",GroupAttrSeq:"mainSequence",PushChangedAttrValFlag:"hasChangedAttributeInfo",SubKeySeq:"sequence",Val:"value",MsgGroupFromCardName:"senderNameCard",MsgGroupFromNickName:"senderNick",C2cNick:"peerNick",C2cImage:"peerAvatar",SendMsgControl:"messageControlInfo",NoLastMsg:"excludedFromLastMessage",NoUnread:"excludedFromUnreadCount",UpdateSeq:"updateSequence",MuteNotifications:"muteFlag",MsgClientTime:"clientTime"},ignoreKeyWord:["C2C","ID","USP"]};function _u(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");var n;return t=Object.assign({pascalCase:!1},t),0===(e=Array.isArray(e)?e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join("-"):e.trim()).length?"":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=bu(e)),e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})).replace(/\d+(\w|$)/g,(function(e){return e.toUpperCase()})),n=e,t.pascalCase?n.charAt(0).toUpperCase()+n.slice(1):n)}var bu=function(e){for(var t=!1,n=!1,i=!1,r=0;r<e.length;r++){var a=e[r];t&&/[a-zA-Z]/.test(a)&&a.toUpperCase()===a?(e=e.slice(0,r)+"-"+e.slice(r),t=!1,i=n,n=!0,r++):n&&i&&/[a-zA-Z]/.test(a)&&a.toLowerCase()===a?(e=e.slice(0,r-1)+"-"+e.slice(r-1),i=n,n=!1,t=!0):(t=a.toLowerCase()===a&&a.toUpperCase()!==a,i=n,n=a.toUpperCase()===a&&a.toLowerCase()!==a)}return e};function Tu(e,t){var n=0;return function e(t,i){if(++n>100)return n--,t;if(We(t)){var r=t.map((function(t){return He(t)?e(t,i):t}));return n--,r}if(He(t)){var a=(o=t,s=function(e,t){if(!Qe(t))return!1;if((r=t)!==_u(r))for(var n=0;n<yu.ignoreKeyWord.length&&!t.includes(yu.ignoreKeyWord[n]);n++);var r;return ze(i[t])?function(e){return"OPPOChannelID"===e?e:e[0].toUpperCase()+_u(e).slice(1)}(t):i[t]},u=Object.create(null),Object.keys(o).forEach((function(e){var t=s(o[e],e);t&&(u[t]=o[e])})),u);return a=bt(a,(function(t,n){return We(t)||He(t)?e(t,i):t})),n--,a}var o,s,u}(e,t)}function Su(e,t){if(We(e))return e.map((function(e){return He(e)?Su(e,t):e}));if(He(e)){var n=(i=e,r=function(e,n){return ze(t[n])?_u(n):t[n]},a={},Object.keys(i).forEach((function(e){a[r(i[e],e)]=i[e]})),a);return bt(n,(function(e){return We(e)||He(e)?Su(e,t):e}))}var i,r,a}var wu=String.fromCharCode,ku=function(e){var t=0|e.charCodeAt(0);if(55296<=t)if(t<56320){var n=0|e.charCodeAt(1);if(56320<=n&&n<=57343){if((t=(t<<10)+n-56613888|0)>65535)return wu(240|t>>>18,128|t>>>12&63,128|t>>>6&63,128|63&t)}else t=65533}else t<=57343&&(t=65533);return t<=2047?wu(192|t>>>6,128|63&t):wu(224|t>>>12,128|t>>>6&63,128|63&t)},Mu=function(e){for(var t=void 0===e?"":(""+e).replace(/[\x80-\uD7ff\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,ku),n=0|t.length,i=new Uint8Array(n),r=0;r<n;r=r+1|0)i[r]=0|t.charCodeAt(r);return i},Cu=function(e){for(var t=new Uint8Array(e),n="",i=0,r=t.length;i<r;){var a=t[i],o=0,s=0;if(a<=127?(o=0,s=255&a):a<=223?(o=1,s=31&a):a<=239?(o=2,s=15&a):a<=244&&(o=3,s=7&a),r-i-o>0)for(var u=0;u<o;)s=s<<6|63&(a=t[i+u+1]),u+=1;else s=65533,o=r-i;n+=String.fromCodePoint(s),i+=o+1}return n},Eu=function(){function e(t){n(this,e),this._handler=t;var i=t.getURL();if(this._socket=null,this._workerSocket=null,this._id=at(),this._handler.getIsWorkerEnabled()){var r=URL.createObjectURL(new Blob([';let _socket = null;onmessage = function(event) {  if (event.data.cmd === "start") {    const url = event.data.url;    _socket = new WebSocket(url);    _socket.binaryType = "arraybuffer";    _socket.onopen = function() {      postMessage({ callback: "onOpen" });    };    _socket.onclose = function(e) {      postMessage({ callback: "onOpen", e: { code: e.code, reason: e.reason } });    };    _socket.onmessage = function(e) {      postMessage({ callback: "onMessage", data: e.data });    };    _socket.onerror = function(e) {      postMessage({ callback: "onError", e: { isTrusted: "true" } });    };  } else if (event.data.cmd === "sendMessage") {    if (_socket !== null) {      _socket.send(event.data.data);    }  } else if (event.data.cmd === "stop") {    if (_socket !== null) {      _socket.close(event.data.code);      _socket = null;    }  }};'],{type:"application/javascript; charset=utf-8"}));this._workerSocket=new Worker(r);var a=this;this._workerSocket.onmessage=function(e){var t=e.data,n=t.callback,i=t.e;"onOpen"===n?a._onOpen():"onClose"===n?a._onClose(i):"onError"===n?a._onError(i):"onMessage"===n&&a._onMessage(e.data)},this._workerSocket.postMessage({cmd:"start",id:this._id,url:i})}else te?Z?(ie.connectSocket({url:i,header:{"content-type":"application/json"}}),ie.onSocketClose(this._onClose.bind(this)),ie.onSocketOpen(this._onOpen.bind(this)),ie.onSocketMessage(this._onMessage.bind(this)),ie.onSocketError(this._onError.bind(this))):(this._socket=ie.connectSocket({url:i,header:{"content-type":"application/json"},complete:function(){}}),this._socket.onClose(this._onClose.bind(this)),this._socket.onOpen(this._onOpen.bind(this)),this._socket.onMessage(this._onMessage.bind(this)),this._socket.onError(this._onError.bind(this))):ne&&(this._socket=new WebSocket(i),this._socket.binaryType="arraybuffer",this._socket.onopen=this._onOpen.bind(this),this._socket.onmessage=this._onMessage.bind(this),this._socket.onclose=this._onClose.bind(this),this._socket.onerror=this._onError.bind(this));this._canIUseBinaryFrame=t.canIUseBinaryFrame()}return r(e,[{key:"getID",value:function(){return this._id}},{key:"_onOpen",value:function(){this._handler.onOpen({id:this._id})}},{key:"_onClose",value:function(e){this._handler.onClose({id:this._id,e:e})}},{key:"_onMessage",value:function(e){this._handler.onMessage({data:this._canIUseBinaryFrame?Cu(e.data):e.data})}},{key:"_onError",value:function(e){this._handler.onError({id:this._id,e:e})}},{key:"setIsWorkerEnabled",value:function(e){this._isWorkerEnabled=!0}},{key:"close",value:function(e){if(this._workerSocket&&(this._workerSocket.postMessage({cmd:"stop",code:e}),this._workerSocket.terminate(),this._workerSocket=null),Z)return ie.offSocketClose(),ie.offSocketMessage(),ie.offSocketOpen(),ie.offSocketError(),void ie.closeSocket();this._socket&&(te?(this._socket.onClose((function(){})),this._socket.onOpen((function(){})),this._socket.onMessage((function(){})),this._socket.onError((function(){}))):ne&&(this._socket.onopen=null,this._socket.onmessage=null,this._socket.onclose=null,this._socket.onerror=null),Q?this._socket.close({code:e}):this._socket.close(e),this._socket=null)}},{key:"send",value:function(e){if(this._workerSocket)this._workerSocket.postMessage({cmd:"sendMessage",data:this._canIUseBinaryFrame?Mu(e.data).buffer:e.data});else{if(Z)return void ie.sendSocketMessage({data:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}});this._socket&&(te?this._socket.send({data:this._canIUseBinaryFrame?Mu(e.data).buffer:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}}):ne&&this._socket.send(this._canIUseBinaryFrame?Mu(e.data).buffer:e.data))}}}]),e}(),Iu=4e3,Au=4001,Ou="connected",xu="connecting",Du="disconnected",Lu=function(){function e(t){n(this,e),this._channelModule=t,this._className="SocketHandler",this._promiseMap=new Map,this._readyState=Du,this._simpleRequestMap=new Map,this.MAX_SIZE=100,this._startSequence=at(),this._startTs=0,this._reConnectFlag=!1,this._nextPingTs=0,this._reConnectCount=0,this.MAX_RECONNECT_COUNT=3,this._socketID=-1,this._random=0,this._socket=null,this._url="",this._onOpenTs=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0,this._setWebsocketHost(),this._initConnection()}return r(e,[{key:"_setWebsocketHost",value:function(){var e=this._channelModule.getModule(Zt),t=j;this._channelModule.isOversea()&&(t=U),e.isSingaporeSite()?t=F:e.isKoreaSite()?t=B:e.isGermanySite()?t=G:e.isIndiaSite()&&(t=q),V.HOST.setCurrent(t)}},{key:"_initConnection",value:function(){ze(V.HOST.CURRENT.BACKUP)||""===this._url?this._url=V.HOST.CURRENT.DEFAULT:this._url===V.HOST.CURRENT.DEFAULT?this._url=V.HOST.CURRENT.BACKUP:this._url===V.HOST.CURRENT.BACKUP&&(this._url=V.HOST.CURRENT.DEFAULT);var e=this._channelModule.getModule(Zt).getProxyServer();xt(e)||(this._url=e),this._connect(),this._nextPingTs=0}},{key:"onCheckTimer",value:function(e){e%1==0&&this._checkPromiseMap()}},{key:"_checkPromiseMap",value:function(){var e=this;0!==this._promiseMap.size&&this._promiseMap.forEach((function(t,n){var i=t.reject,r=t.timestamp;Date.now()-r>=15e3&&(De.log("".concat(e._className,"._checkPromiseMap request timeout, delete requestID:").concat(n)),e._promiseMap.delete(n),i(new cs({code:Ri.NETWORK_TIMEOUT,message:Vr})),e._channelModule.onRequestTimeout(n))}))}},{key:"onOpen",value:function(e){this._onOpenTs=Date.now();var t=e.id;this._socketID=t;var n=Date.now()-this._startTs;De.log("".concat(this._className,"._onOpen cost ").concat(n," ms. socketID:").concat(t)),new da(ba).setMessage(n).setCostTime(n).setMoreMessage("socketID:".concat(t)).end(),e.id===this._socketID&&(this._readyState=Ou,this._reConnectCount=0,this._resend(),!0===this._reConnectFlag&&(this._channelModule.onReconnected(),this._reConnectFlag=!1),this._channelModule.onOpen())}},{key:"onClose",value:function(e){var t=new da(Ta),n=e.id,i=e.e,r="sourceSocketID:".concat(n," currentSocketID:").concat(this._socketID," code:").concat(i.code," reason:").concat(i.reason),a=0;0!==this._onOpenTs&&(a=Date.now()-this._onOpenTs),t.setMessage(a).setCostTime(a).setMoreMessage(r).setCode(i.code).end(),De.log("".concat(this._className,"._onClose ").concat(r," onlineTime:").concat(a)),n===this._socketID&&(this._readyState=Du,a<1e3?this._channelModule.onReconnectFailed():this._channelModule.onClose())}},{key:"onError",value:function(e){var t=e.id,n=e.e,i="sourceSocketID:".concat(t," currentSocketID:").concat(this._socketID);new da(Sa).setMessage(n.errMsg||it(n)).setMoreMessage(i).setLevel("error").end(),De.warn("".concat(this._className,"._onError"),n,i),t===this._socketID&&(this._readyState="",this._channelModule.onError())}},{key:"onMessage",value:function(e){var t;try{t=JSON.parse(e.data)}catch(l){new da(Fa).setMessage(e.data).end()}if(t&&t.head){var n=this._getRequestIDFromHead(t.head),i=Ct(t.head),r=Su(t.body,this._getResponseKeyMap(i));if(De.debug("".concat(this._className,".onMessage ret:").concat(JSON.stringify(r)," requestID:").concat(n," has:").concat(this._promiseMap.has(n))),this._setNextPingTs(),this._promiseMap.has(n)){var a=this._promiseMap.get(n),o=a.resolve,s=a.reject,u=a.timestamp;return this._promiseMap.delete(n),this._calcRTT(u),void(r.errorCode&&0!==r.errorCode?(this._channelModule.onErrorCodeNotZero(r),s(new cs({code:r.errorCode,message:r.errorInfo||""}))):o(is(r)))}this._channelModule.onMessage({head:t.head,body:r})}}},{key:"_calcRTT",value:function(e){var t=Date.now()-e;this._channelModule.getModule(pn).addRTT(t)}},{key:"_connect",value:function(){this._startTs=Date.now(),this._onOpenTs=0,this._socket=new Eu(this),this._socketID=this._socket.getID(),this._readyState=xu,De.log("".concat(this._className,"._connect isWorkerEnabled:").concat(this.getIsWorkerEnabled()," socketID:").concat(this._socketID," url:").concat(this.getURL())),new da(_a).setMessage("socketID:".concat(this._socketID," url:").concat(this.getURL())).end()}},{key:"getURL",value:function(){var e=this._channelModule.getModule(Zt);e.isDevMode()&&(this._canIUseBinaryFrame=!1);var t=wt();(Z||Y&&"windows"===t||ee)&&(this._canIUseBinaryFrame=!1);var n=this._channelModule.getPlatform(),i=e.getSDKAppID(),r=e.getInstanceID();return this._canIUseBinaryFrame?"".concat(this._url,"/binfo?sdkappid=").concat(i,"&instanceid=").concat(r,"&random=").concat(this._getRandom(),"&platform=").concat(n,"&host=").concat(t):"".concat(this._url,"/info?sdkappid=").concat(i,"&instanceid=").concat(r,"&random=").concat(this._getRandom(),"&platform=").concat(n,"&host=").concat(t)}},{key:"_closeConnection",value:function(e){De.log("".concat(this._className,"._closeConnection")),this._socket&&(this._socket.close(e),this._socketID=-1,this._socket=null,this._readyState=Du)}},{key:"_resend",value:function(){var e=this;if(De.log("".concat(this._className,"._resend reConnectFlag:").concat(this._reConnectFlag),"promiseMap.size:".concat(this._promiseMap.size," simpleRequestMap.size:").concat(this._simpleRequestMap.size)),this._promiseMap.size>0&&this._promiseMap.forEach((function(t,n){var i=t.uplinkData,r=t.resolve,a=t.reject;e._promiseMap.set(n,{resolve:r,reject:a,timestamp:Date.now(),uplinkData:i}),e._execute(n,i)})),this._simpleRequestMap.size>0){var t,n=M(this._simpleRequestMap);try{for(n.s();!(t=n.n()).done;){var i=y(t.value,2),r=i[0],a=i[1];this._execute(r,a)}}catch(s){n.e(s)}finally{n.f()}this._simpleRequestMap.clear()}}},{key:"send",value:function(e){var t=this;e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var n=p(e,["keyMap"]),i=this._getRequestIDFromHead(e.head),r=JSON.stringify(n);return new Promise((function(e,a){t._promiseMap.set(i,{resolve:e,reject:a,timestamp:Date.now(),uplinkData:r}),De.debug("".concat(t._className,".send uplinkData:").concat(JSON.stringify(n)," requestID:").concat(i," readyState:").concat(t._readyState)),t._readyState!==Ou?t._reConnect():(t._execute(i,r),t._channelModule.getModule(pn).addRequestCount())}))}},{key:"simplySend",value:function(e){e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var t=p(e,["keyMap"]),n=this._getRequestIDFromHead(e.head),i=JSON.stringify(t);this._readyState!==Ou?(this._simpleRequestMap.size<this.MAX_SIZE?this._simpleRequestMap.set(n,i):De.log("".concat(this._className,".simplySend. simpleRequestMap is full, drop request!")),this._reConnect()):this._execute(n,i)}},{key:"_execute",value:function(e,t){this._socket.send({data:t,fail:te?this._onSendFail.bind(this):void 0,requestID:e})}},{key:"_onSendFail",value:function(e){De.log("".concat(this._className,"._onSendFail requestID:").concat(e))}},{key:"_getSequence",value:function(){var e;if(this._startSequence<2415919103)return e=this._startSequence,this._startSequence+=1,2415919103===this._startSequence&&(this._startSequence=at()),e}},{key:"_getRequestIDFromHead",value:function(e){return e.servcmd+e.seq}},{key:"_getResponseKeyMap",value:function(e){var t=this._channelModule.getKeyMap(e);return s({},yu.response,{},t.response)}},{key:"_reConnect",value:function(){this._readyState!==Ou&&this._readyState!==xu&&this.forcedReconnect()}},{key:"forcedReconnect",value:function(){var e=this;De.log("".concat(this._className,".forcedReconnect count:").concat(this._reConnectCount," readyState:").concat(this._readyState)),this._reConnectFlag=!0,this._resetRandom(),this._reConnectCount<this.MAX_RECONNECT_COUNT?(this._reConnectCount+=1,this._closeConnection(Au),this._initConnection()):(this._reConnectCount=0,this._channelModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0];n[1],i?(De.warn("".concat(e._className,".forcedReconnect disconnected from wsserver but network is ok, continue...")),e._closeConnection(Au),e._initConnection()):e._channelModule.onReconnectFailed()})))}},{key:"getReconnectFlag",value:function(){return this._reConnectFlag}},{key:"_setNextPingTs",value:function(){this._nextPingTs=Date.now()+1e4}},{key:"getNextPingTs",value:function(){return this._nextPingTs}},{key:"isConnected",value:function(){return this._readyState===Ou}},{key:"canIUseBinaryFrame",value:function(){return this._canIUseBinaryFrame}},{key:"setIsWorkerEnabled",value:function(e){De.log("".concat(this._className,".setIsWorkerEnabled flag:").concat(e)),this._isWorkerEnabled=e}},{key:"getIsWorkerEnabled",value:function(){return this._isWorkerEnabled&&_e}},{key:"_getRandom",value:function(){return 0===this._random&&(this._random=Math.random()),this._random}},{key:"_resetRandom",value:function(){this._random=0}},{key:"close",value:function(){De.log("".concat(this._className,".close")),this._closeConnection(Iu),this._promiseMap.clear(),this._startSequence=at(),this._readyState=Du,this._simpleRequestMap.clear(),this._reConnectFlag=!1,this._reConnectCount=0,this._onOpenTs=0,this._url="",this._random=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0}}]),e}(),Nu=function(e){u(i,e);var t=v(i);function i(e){var r;if(n(this,i),(r=t.call(this,e))._className="ChannelModule",r._socketHandler=new Lu(g(r)),r._probing=!1,r._isAppShowing=!0,r._previousState=E.NET_STATE_CONNECTED,te&&"function"==typeof ie.onAppShow&&"function"==typeof ie.onAppHide){var a=r._onAppHide.bind(g(r)),o=r._onAppShow.bind(g(r));"function"==typeof ie.offAppHide&&ie.offAppHide(a),"function"==typeof ie.offAppShow&&ie.offAppShow(o),ie.onAppHide(a),ie.onAppShow(o)}return r._timerForNotLoggedIn=-1,r._timerForNotLoggedIn=setInterval(r.onCheckTimer.bind(g(r)),1e3),r._fatalErrorFlag=!1,r}return r(i,[{key:"onCheckTimer",value:function(e){this._socketHandler&&(this.isLoggedIn()?(this._timerForNotLoggedIn>0&&(clearInterval(this._timerForNotLoggedIn),this._timerForNotLoggedIn=-1),this._socketHandler.onCheckTimer(e)):this._socketHandler.onCheckTimer(1),this._checkNextPing())}},{key:"onErrorCodeNotZero",value:function(e){this.getModule(un).onErrorCodeNotZero(e)}},{key:"onMessage",value:function(e){this.getModule(un).onMessage(e)}},{key:"send",value:function(e){return this._socketHandler?this._previousState!==E.NET_STATE_CONNECTED&&e.head.servcmd.includes(wi)?(this.reConnect(),this._sendLogViaHTTP(e)):this._socketHandler.send(e):Promise.reject()}},{key:"_sendLogViaHTTP",value:function(e){var t=V.HOST.CURRENT.STAT;return new Promise((function(n,i){var r="".concat(t,"/v4/imopenstat/tim_web_report_v2?sdkappid=").concat(e.head.sdkappid,"&reqtime=").concat(Date.now()),a=JSON.stringify(e.body),o="application/x-www-form-urlencoded;charset=UTF-8";if(te)ie.request({url:r,data:a,method:"POST",timeout:3e3,header:{"content-type":o},success:function(){n()},fail:function(){i(new cs({code:Ri.NETWORK_ERROR,message:qr}))}});else{var s=new XMLHttpRequest,u=setTimeout((function(){s.abort(),i(new cs({code:Ri.NETWORK_TIMEOUT,message:Vr}))}),3e3);s.onreadystatechange=function(){4===s.readyState&&(clearTimeout(u),200===s.status||304===s.status?n():i(new cs({code:Ri.NETWORK_ERROR,message:qr})))},s.open("POST",r,!0),s.setRequestHeader("Content-type",o),s.send(a)}}))}},{key:"simplySend",value:function(e){return this._socketHandler?this._socketHandler.simplySend(e):Promise.reject()}},{key:"onOpen",value:function(){this._ping()}},{key:"onClose",value:function(){this._socketHandler&&this._socketHandler.getReconnectFlag()&&this._emitNetStateChangeEvent(E.NET_STATE_DISCONNECTED),this.reConnect()}},{key:"onError",value:function(){te&&De.error("".concat(this._className,".onError 从v2.11.2起,SDK 支持了 WebSocket,如您未添加相关受信域名,请先添加!升级指引: https://web.sdk.qcloud.com/im/doc/zh-cn/tutorial-02-upgradeguideline.html"))}},{key:"getKeyMap",value:function(e){return this.getModule(un).getKeyMap(e)}},{key:"_onAppHide",value:function(){this._isAppShowing=!1}},{key:"_onAppShow",value:function(){this._isAppShowing=!0}},{key:"onRequestTimeout",value:function(e){}},{key:"onReconnected",value:function(){De.log("".concat(this._className,".onReconnected")),this.getModule(un).onReconnected(),this._emitNetStateChangeEvent(E.NET_STATE_CONNECTED)}},{key:"onReconnectFailed",value:function(){De.log("".concat(this._className,".onReconnectFailed")),this._emitNetStateChangeEvent(E.NET_STATE_DISCONNECTED)}},{key:"setIsWorkerEnabled",value:function(e){this._socketHandler&&this._socketHandler.setIsWorkerEnabled(!1)}},{key:"reConnect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!1;this._socketHandler&&(t=this._socketHandler.getReconnectFlag());var n="forcedFlag:".concat(e," fatalErrorFlag:").concat(this._fatalErrorFlag," previousState:").concat(this._previousState," reconnectFlag:").concat(t);if(De.log("".concat(this._className,".reConnect ").concat(n)),!this._fatalErrorFlag&&this._socketHandler){if(!0===e)this._socketHandler.forcedReconnect();else{if(this._previousState===E.NET_STATE_CONNECTING&&t)return;this._socketHandler.forcedReconnect()}this._emitNetStateChangeEvent(E.NET_STATE_CONNECTING)}}},{key:"_emitNetStateChangeEvent",value:function(e){this._previousState!==e&&(De.log("".concat(this._className,"._emitNetStateChangeEvent from ").concat(this._previousState," to ").concat(e)),this._previousState=e,this.emitOuterEvent(C.NET_STATE_CHANGE,{state:e}))}},{key:"_ping",value:function(){var e=this;if(!0!==this._probing){this._probing=!0;var t=this.getModule(un).getProtocolData({protocolName:ki});this.send(t).then((function(){e._probing=!1})).catch((function(t){if(De.warn("".concat(e._className,"._ping failed. error:"),t),e._probing=!1,t&&60002===t.code)return new da(Fo).setMessage("code:".concat(t.code," message:").concat(t.message)).setNetworkType(e.getModule(nn).getNetworkType()).end(),e._fatalErrorFlag=!0,void e._emitNetStateChangeEvent(E.NET_STATE_DISCONNECTED);e.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];De.log("".concat(e._className,"._ping failed. probe network, isAppShowing:").concat(e._isAppShowing," online:").concat(i," networkType:").concat(r)),i?e.reConnect():e._emitNetStateChangeEvent(E.NET_STATE_DISCONNECTED)}))}))}}},{key:"_checkNextPing",value:function(){this._socketHandler&&this._socketHandler.isConnected()&&Date.now()>=this._socketHandler.getNextPingTs()&&this._ping()}},{key:"dealloc",value:function(){this._socketHandler&&(this._socketHandler.close(),this._socketHandler=null),this._timerForNotLoggedIn>-1&&clearInterval(this._timerForNotLoggedIn)}},{key:"reset",value:function(){De.log("".concat(this._className,".reset")),this._previousState=E.NET_STATE_CONNECTED,this._probing=!1,this._fatalErrorFlag=!1,this._timerForNotLoggedIn=setInterval(this.onCheckTimer.bind(this),1e3)}}]),i}(mn),Pu=function(){function t(e){n(this,t),this._className="ProtocolHandler",this._sessionModule=e,this._configMap=new Map,this._fillConfigMap()}return r(t,[{key:"_fillConfigMap",value:function(){this._configMap.clear();var e=this._sessionModule.genCommonHead(),t=this._sessionModule.genCosSpecifiedHead(),n=this._sessionModule.genSSOReportHead();this._configMap.set(vn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.IM_OPEN_STATUS,".").concat(V.CMD.LOGIN)}),body:{state:"Online"},keyMap:{response:{TinyId:"tinyID",InstId:"instanceID",HelloInterval:"helloInterval"}}}}(e)),this._configMap.set(yn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.IM_OPEN_STATUS,".").concat(V.CMD.LOGOUT)}),body:{type:0},keyMap:{request:{type:"wslogout_type"}}}}(e)),this._configMap.set(_n,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.IM_OPEN_STATUS,".").concat(V.CMD.HELLO)}),body:{},keyMap:{response:{NewInstInfo:"newInstanceInfo"}}}}(e)),this._configMap.set(bn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.STAT_SERVICE,".").concat(V.CMD.KICK_OTHER)}),body:{}}}(e)),this._configMap.set(bi,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.IM_COS_SIGN,".").concat(V.CMD.COS_SIGN)}),body:{cmd:"open_im_cos_svc",subCmd:"get_cos_token",duration:300,version:2},keyMap:{request:{userSig:"usersig",subCmd:"sub_cmd",cmd:"cmd",duration:"duration",version:"version"},response:{expired_time:"expiredTime",bucket_name:"bucketName",session_token:"sessionToken",tmp_secret_id:"secretId",tmp_secret_key:"secretKey"}}}}(t)),this._configMap.set(Ti,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.CUSTOM_UPLOAD,".").concat(V.CMD.COS_PRE_SIG)}),body:{fileType:void 0,fileName:void 0,uploadMethod:0,duration:900},keyMap:{request:{userSig:"usersig",fileType:"file_type",fileName:"file_name",uploadMethod:"upload_method"},response:{expired_time:"expiredTime",request_id:"requestId",head_url:"headUrl",upload_url:"uploadUrl",download_url:"downloadUrl",ci_url:"ciUrl",snapshot_url:"requestSnapshotUrl"}}}}(t)),this._configMap.set(Si,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.CUSTOM_UPLOAD,".").concat(V.CMD.VIDEO_COVER)}),body:{version:1,platform:void 0,coverName:void 0,requestSnapshotUrl:void 0},keyMap:{request:{version:"version",platform:"platform",coverName:"cover_name",requestSnapshotUrl:"snapshot_url"},response:{error_code:"errorCode",error_msg:"errorInfo",download_url:"snapshotUrl"}}}}(t)),this._configMap.set(Li,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.IM_CONFIG_MANAGER,".").concat(V.CMD.FETCH_COMMERCIAL_CONFIG)}),body:{SDKAppID:0},keyMap:{request:{SDKAppID:"uint32_sdkappid"},response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_purchase_bits:"purchaseBits",uint32_expired_time:"expiredTime"}}}}(e)),this._configMap.set(Ni,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.IM_CONFIG_MANAGER,".").concat(V.CMD.PUSHED_COMMERCIAL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_purchase_bits:"purchaseBits",uint32_expired_time:"expiredTime"}}}}(e)),this._configMap.set(xi,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.IM_CONFIG_MANAGER,".").concat(V.CMD.FETCH_CLOUD_CONTROL_CONFIG)}),body:{SDKAppID:0,version:0},keyMap:{request:{SDKAppID:"uint32_sdkappid",version:"uint64_version"},response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_json_config:"cloudControlConfig",uint32_expired_time:"expiredTime",uint32_sdkappid:"SDKAppID",uint64_version:"version"}}}}(e)),this._configMap.set(Di,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.IM_CONFIG_MANAGER,".").concat(V.CMD.PUSHED_CLOUD_CONTROL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_json_config:"cloudControlConfig",uint32_expired_time:"expiredTime",uint32_sdkappid:"SDKAppID",uint64_version:"version"}}}}(e)),this._configMap.set(Pi,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.OVERLOAD_PUSH,".").concat(V.CMD.OVERLOAD_NOTIFY)}),body:{},keyMap:{response:{OverLoadServCmd:"overloadCommand",DelaySecs:"waitingTime"}}}}(e)),this._configMap.set(Tn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.OPEN_IM,".").concat(V.CMD.GET_MESSAGES)}),body:{cookie:"",syncFlag:0,needAbstract:1,isOnlineSync:0},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",from:"From_Account",to:"To_Account",time:"MsgTimeStamp",sequence:"MsgSeq",random:"MsgRandom",elements:"MsgBody"},response:{MsgList:"messageList",SyncFlag:"syncFlag",To_Account:"to",From_Account:"from",ClientSeq:"clientSequence",MsgSeq:"sequence",NoticeSeq:"noticeSequence",NotifySeq:"notifySequence",MsgRandom:"random",MsgTimeStamp:"time",MsgContent:"content",ToGroupId:"groupID",MsgKey:"messageKey",GroupTips:"groupTips",MsgBody:"elements",MsgType:"type",C2CRemainingUnreadCount:"C2CRemainingUnreadList",C2CPairUnreadCount:"C2CPairUnreadList"}}}}(e)),this._configMap.set(Sn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.OPEN_IM,".").concat(V.CMD.BIG_DATA_HALLWAY_AUTH_KEY)}),body:{}}}(e)),this._configMap.set(wn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.OPEN_IM,".").concat(V.CMD.SEND_MESSAGE)}),body:{fromAccount:"",toAccount:"",msgSeq:0,msgRandom:0,msgBody:[],cloudCustomData:void 0,nick:"",avatar:"",msgLifeTime:void 0,offlinePushInfo:{pushFlag:0,title:"",desc:"",ext:"",apnsInfo:{badgeMode:0},androidInfo:{OPPOChannelID:""}},messageControlInfo:void 0,clientTime:void 0},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom",msgBody:"MsgBody",count:"MaxCnt",lastMessageTime:"LastMsgTime",messageKey:"MsgKey",peerAccount:"Peer_Account",data:"Data",description:"Desc",extension:"Ext",type:"MsgType",content:"MsgContent",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",nick:"From_AccountNick",avatar:"From_AccountHeadurl",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",elements:"MsgBody",clientSequence:"ClientSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody"}}}}(e)),this._configMap.set(kn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.SEND_GROUP_MESSAGE)}),body:{fromAccount:"",groupID:"",random:0,clientSequence:0,priority:"",msgBody:[],cloudCustomData:void 0,onlineOnlyFlag:0,offlinePushInfo:{pushFlag:0,title:"",desc:"",ext:"",apnsInfo:{badgeMode:0},androidInfo:{OPPOChannelID:""}},groupAtInfo:[],messageControlInfo:void 0,clientTime:void 0},keyMap:{request:{to:"GroupId",extension:"Ext",data:"Data",description:"Desc",random:"Random",sequence:"ReqMsgSeq",count:"ReqMsgNumber",type:"MsgType",priority:"MsgPriority",content:"MsgContent",elements:"MsgBody",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",clientSequence:"ClientSeq",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody"},response:{MsgTime:"time",MsgSeq:"sequence"}}}}(e)),this._configMap.set(On,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.OPEN_IM,".").concat(V.CMD.REVOKE_C2C_MESSAGE)}),body:{msgInfo:{fromAccount:"",toAccount:"",msgTimeStamp:0,msgSeq:0,msgRandom:0}},keyMap:{request:{msgInfo:"MsgInfo",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom"}}}}(e)),this._configMap.set(ei,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.REVOKE_GROUP_MESSAGE)}),body:{groupID:"",msgSeqList:void 0},keyMap:{request:{msgSeqList:"MsgSeqList",msgSeq:"MsgSeq"}}}}(e)),this._configMap.set(Nn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.OPEN_IM,".").concat(V.CMD.GET_C2C_ROAM_MESSAGES)}),body:{peerAccount:"",count:15,lastMessageTime:0,messageKey:"",withRecalledMessage:1},keyMap:{request:{messageKey:"MsgKey",peerAccount:"Peer_Account",count:"MaxCnt",lastMessageTime:"LastMsgTime",withRecalledMessage:"WithRecalledMsg"},response:{LastMsgTime:"lastMessageTime"}}}}(e)),this._configMap.set(ii,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.GET_GROUP_ROAM_MESSAGES)}),body:{withRecalledMsg:1,groupID:"",count:15,sequence:""},keyMap:{request:{sequence:"ReqMsgSeq",count:"ReqMsgNumber",withRecalledMessage:"WithRecalledMsg"},response:{Random:"random",MsgTime:"time",MsgSeq:"sequence",ReqMsgSeq:"sequence",RspMsgList:"messageList",IsPlaceMsg:"isPlaceMessage",IsSystemMsg:"isSystemMessage",ToGroupId:"to",EnumFrom_AccountType:"fromAccountType",EnumTo_AccountType:"toAccountType",GroupCode:"groupCode",MsgPriority:"priority",MsgBody:"elements",MsgType:"type",MsgContent:"content",IsFinished:"complete",Download_Flag:"downloadFlag",ClientSeq:"clientSequence",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID"}}}}(e)),this._configMap.set(xn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.OPEN_IM,".").concat(V.CMD.SET_C2C_MESSAGE_READ)}),body:{C2CMsgReaded:void 0},keyMap:{request:{lastMessageTime:"LastedMsgTime"}}}}(e)),this._configMap.set(Dn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.OPEN_IM,".").concat(V.CMD.SET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{userIDList:void 0,muteFlag:0},keyMap:{request:{userIDList:"Peer_Account",muteFlag:"Mute_Notifications"}}}}(e)),this._configMap.set(Ln,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.OPEN_IM,".").concat(V.CMD.GET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{updateSequence:0},keyMap:{response:{MuteNotificationsList:"muteFlagList"}}}}(e)),this._configMap.set(ti,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.SET_GROUP_MESSAGE_READ)}),body:{groupID:void 0,messageReadSeq:void 0},keyMap:{request:{messageReadSeq:"MsgReadedSeq"}}}}(e)),this._configMap.set(ni,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.OPEN_IM,".").concat(V.CMD.SET_ALL_MESSAGE_READ)}),body:{readAllC2CMessage:0,groupMessageReadInfoList:[]},keyMap:{request:{readAllC2CMessage:"C2CReadAllMsg",groupMessageReadInfoList:"GroupReadInfo",messageSequence:"MsgSeq"},response:{C2CReadAllMsg:"readAllC2CMessage",GroupReadInfoArray:"groupMessageReadInfoList"}}}}(e)),this._configMap.set(Rn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.OPEN_IM,".").concat(V.CMD.DELETE_C2C_MESSAGE)}),body:{fromAccount:"",to:"",keyList:void 0},keyMap:{request:{keyList:"MsgKeyList"}}}}(e)),this._configMap.set(ci,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.DELETE_GROUP_MESSAGE)}),body:{groupID:"",deleter:"",keyList:void 0},keyMap:{request:{deleter:"Deleter_Account",keyList:"Seqs"}}}}(e)),this._configMap.set(Pn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.OPEN_IM,".").concat(V.CMD.GET_PEER_READ_TIME)}),body:{userIDList:void 0},keyMap:{request:{userIDList:"To_Account"},response:{ReadTime:"peerReadTimeList"}}}}(e)),this._configMap.set(Un,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.RECENT_CONTACT,".").concat(V.CMD.GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,count:0},keyMap:{request:{},response:{SessionItem:"conversations",ToAccount:"groupID",To_Account:"userID",UnreadMsgCount:"unreadCount",MsgGroupReadedSeq:"messageReadSeq",C2cPeerReadTime:"c2cPeerReadTime"}}}}(e)),this._configMap.set(jn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.RECENT_CONTACT,".").concat(V.CMD.PAGING_GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,timeStamp:void 0,startIndex:void 0,pinnedTimeStamp:void 0,pinnedStartIndex:void 0,orderType:void 0,messageAssistFlag:4,assistFlag:15},keyMap:{request:{messageAssistFlag:"MsgAssistFlags",assistFlag:"AssistFlags",pinnedTimeStamp:"TopTimeStamp",pinnedStartIndex:"TopStartIndex"},response:{SessionItem:"conversations",ToAccount:"groupID",To_Account:"userID",UnreadMsgCount:"unreadCount",MsgGroupReadedSeq:"messageReadSeq",C2cPeerReadTime:"c2cPeerReadTime",LastMsgFlags:"lastMessageFlag",TopFlags:"isPinned",TopTimeStamp:"pinnedTimeStamp",TopStartIndex:"pinnedStartIndex"}}}}(e)),this._configMap.set(Fn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.RECENT_CONTACT,".").concat(V.CMD.DELETE_CONVERSATION)}),body:{fromAccount:"",toAccount:void 0,type:1,toGroupID:void 0,clearHistoryMessage:1},keyMap:{request:{toGroupID:"ToGroupid",clearHistoryMessage:"ClearRamble"}}}}(e)),this._configMap.set(Bn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.RECENT_CONTACT,".").concat(V.CMD.PIN_CONVERSATION)}),body:{fromAccount:"",operationType:1,itemList:void 0},keyMap:{request:{itemList:"RecentContactItem"}}}}(e)),this._configMap.set(Gn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.OPEN_IM,".").concat(V.CMD.DELETE_GROUP_AT_TIPS)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}}}(e)),this._configMap.set(Mn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.PROFILE,".").concat(V.CMD.PORTRAIT_GET)}),body:{fromAccount:"",userItem:[]},keyMap:{request:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}}}(e)),this._configMap.set(Cn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.PROFILE,".").concat(V.CMD.PORTRAIT_SET)}),body:{fromAccount:"",profileItem:[{tag:Ne.NICK,value:""},{tag:Ne.GENDER,value:""},{tag:Ne.ALLOWTYPE,value:""},{tag:Ne.AVATAR,value:""}]},keyMap:{request:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}}}(e)),this._configMap.set(En,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.FRIEND,".").concat(V.CMD.GET_BLACKLIST)}),body:{fromAccount:"",startIndex:0,maxLimited:30,lastSequence:0},keyMap:{response:{CurruentSequence:"currentSequence"}}}}(e)),this._configMap.set(In,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.FRIEND,".").concat(V.CMD.ADD_BLACKLIST)}),body:{fromAccount:"",toAccount:[]}}}(e)),this._configMap.set(An,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.FRIEND,".").concat(V.CMD.DELETE_BLACKLIST)}),body:{fromAccount:"",toAccount:[]}}}(e)),this._configMap.set(qn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.GET_JOINED_GROUPS)}),body:{memberAccount:"",limit:void 0,offset:void 0,groupType:void 0,responseFilter:{groupBaseInfoFilter:void 0,selfInfoFilter:void 0}},keyMap:{request:{memberAccount:"Member_Account"},response:{GroupIdList:"groups",MsgFlag:"messageRemindType",NoUnreadSeqList:"excludedUnreadSequenceList",MsgSeq:"readedSequence"}}}}(e)),this._configMap.set(Vn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.GET_GROUP_INFO)}),body:{groupIDList:void 0,responseFilter:{groupBaseInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","Owner_Account","CreateTime","InfoSeq","LastInfoTime","LastMsgTime","MemberNum","MaxMemberNum","ApplyJoinOption","NextMsgSeq","ShutUpAllMember"],groupCustomFieldFilter:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0}},keyMap:{request:{groupIDList:"GroupIdList",groupCustomField:"AppDefinedData",memberCustomField:"AppMemberDefinedData",groupCustomFieldFilter:"AppDefinedDataFilter_Group",memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{GroupIdList:"groups",MsgFlag:"messageRemindType",AppDefinedData:"groupCustomField",AppMemberDefinedData:"memberCustomField",AppDefinedDataFilter_Group:"groupCustomFieldFilter",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",InfoSeq:"infoSequence",MemberList:"members",GroupInfo:"groups",ShutUpUntil:"muteUntil",ShutUpAllMember:"muteAllMembers",ApplyJoinOption:"joinOption"}}}}(e)),this._configMap.set(Hn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.CREATE_GROUP)}),body:{type:void 0,name:void 0,groupID:void 0,ownerID:void 0,introduction:void 0,notification:void 0,maxMemberNum:void 0,joinOption:void 0,memberList:void 0,groupCustomField:void 0,memberCustomField:void 0,webPushFlag:1,avatar:"FaceUrl"},keyMap:{request:{ownerID:"Owner_Account",userID:"Member_Account",avatar:"FaceUrl",maxMemberNum:"MaxMemberCount",joinOption:"ApplyJoinOption",groupCustomField:"AppDefinedData",memberCustomField:"AppMemberDefinedData"},response:{HugeGroupFlag:"avChatRoomFlag",OverJoinedGroupLimit_Account:"overLimitUserIDList"}}}}(e)),this._configMap.set($n,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.DESTROY_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set(Wn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.MODIFY_GROUP_INFO)}),body:{groupID:void 0,name:void 0,introduction:void 0,notification:void 0,avatar:void 0,maxMemberNum:void 0,joinOption:void 0,groupCustomField:void 0,muteAllMembers:void 0},keyMap:{request:{maxMemberNum:"MaxMemberCount",groupCustomField:"AppDefinedData",muteAllMembers:"ShutUpAllMember",joinOption:"ApplyJoinOption",avatar:"FaceUrl"},response:{AppDefinedData:"groupCustomField",ShutUpAllMember:"muteAllMembers",ApplyJoinOption:"joinOption"}}}}(e)),this._configMap.set(zn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1,historyMessageFlag:void 0},keyMap:{request:{applyMessage:"ApplyMsg",historyMessageFlag:"HugeGroupHistoryMsgFlag"},response:{HugeGroupFlag:"avChatRoomFlag",AVChatRoomKey:"avChatRoomKey",RspMsgList:"messageList",ToGroupId:"to"}}}}(e)),this._configMap.set(Kn,function(e){return e.a2,e.tinyid,{head:s({},p(e,["a2","tinyid"]),{servcmd:"".concat(V.NAME.BIG_GROUP_NO_AUTH,".").concat(V.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1},keyMap:{request:{applyMessage:"ApplyMsg"},response:{HugeGroupFlag:"avChatRoomFlag"}}}}(e)),this._configMap.set(Yn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.QUIT_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set(Xn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.SEARCH_GROUP_BY_ID)}),body:{groupIDList:void 0,responseFilter:{groupBasePublicInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","CreateTime","Owner_Account","LastInfoTime","LastMsgTime","NextMsgSeq","MemberNum","MaxMemberNum","ApplyJoinOption"]}},keyMap:{response:{ApplyJoinOption:"joinOption"}}}}(e)),this._configMap.set(Jn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.CHANGE_GROUP_OWNER)}),body:{groupID:void 0,newOwnerID:void 0},keyMap:{request:{newOwnerID:"NewOwner_Account"}}}}(e)),this._configMap.set(Qn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.HANDLE_APPLY_JOIN_GROUP)}),body:{groupID:void 0,applicant:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{applicant:"Applicant_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg",messageKey:"MsgKey"}}}}(e)),this._configMap.set(Zn,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.HANDLE_GROUP_INVITATION)}),body:{groupID:void 0,inviter:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{inviter:"Inviter_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg",messageKey:"MsgKey"}}}}(e)),this._configMap.set(ri,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.GET_GROUP_APPLICATION)}),body:{startTime:void 0,limit:void 0,handleAccount:void 0},keyMap:{request:{handleAccount:"Handle_Account"}}}}(e)),this._configMap.set(ai,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.OPEN_IM,".").concat(V.CMD.DELETE_GROUP_SYSTEM_MESSAGE)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}}}(e)),this._configMap.set(oi,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.BIG_GROUP_LONG_POLLING,".").concat(V.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,holdTime:90,key:void 0},keyMap:{request:{USP:"USP"},response:{ToGroupId:"groupID"}}}}(e)),this._configMap.set(si,function(e){return e.a2,e.tinyid,{head:s({},p(e,["a2","tinyid"]),{servcmd:"".concat(V.NAME.BIG_GROUP_LONG_POLLING_NO_AUTH,".").concat(V.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,holdTime:90,key:void 0},keyMap:{request:{USP:"USP"},response:{ToGroupId:"groupID"}}}}(e)),this._configMap.set(ui,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.GET_ONLINE_MEMBER_NUM)}),body:{groupID:void 0}}}(e)),this._configMap.set(li,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.SET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key",value:"value"}}}}(e)),this._configMap.set(di,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.MODIFY_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key",value:"value"}}}}(e)),this._configMap.set(hi,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.DELETE_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key"}}}}(e)),this._configMap.set(fi,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.CLEAR_GROUP_ATTRIBUTES)}),body:{groupID:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]}}}(e)),this._configMap.set(pi,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP_ATTR,".").concat(V.CMD.GET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,avChatRoomKey:void 0,groupType:1},keyMap:{request:{avChatRoomKey:"Key",groupType:"GroupType"}}}}(e)),this._configMap.set(gi,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.GET_GROUP_MEMBER_LIST)}),body:{groupID:void 0,limit:0,offset:void 0,next:void 0,memberRoleFilter:void 0,memberInfoFilter:["Role","NameCard","ShutUpUntil","JoinTime"],memberCustomFieldFilter:void 0},keyMap:{request:{memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{AppMemberDefinedData:"memberCustomField",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",MemberList:"members",ShutUpUntil:"muteUntil"}}}}(e)),this._configMap.set(mi,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.GET_GROUP_MEMBER_INFO)}),body:{groupID:void 0,userIDList:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0},keyMap:{request:{userIDList:"Member_List_Account",memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{MemberList:"members",ShutUpUntil:"muteUntil",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",AppMemberDefinedData:"memberCustomField"}}}}(e)),this._configMap.set(vi,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.ADD_GROUP_MEMBER)}),body:{groupID:void 0,silence:void 0,userIDList:void 0},keyMap:{request:{userID:"Member_Account",userIDList:"MemberList"},response:{MemberList:"members"}}}}(e)),this._configMap.set(yi,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.DELETE_GROUP_MEMBER)}),body:{groupID:void 0,userIDList:void 0,reason:void 0},keyMap:{request:{userIDList:"MemberToDel_Account"}}}}(e)),this._configMap.set(_i,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.GROUP,".").concat(V.CMD.MODIFY_GROUP_MEMBER_INFO)}),body:{groupID:void 0,userID:void 0,messageRemindType:void 0,nameCard:void 0,role:void 0,memberCustomField:void 0,muteTime:void 0},keyMap:{request:{userID:"Member_Account",memberCustomField:"AppMemberDefinedData",muteTime:"ShutUpTime",messageRemindType:"MsgFlag"}}}}(e)),this._configMap.set(wi,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.IM_OPEN_STAT,".").concat(V.CMD.TIM_WEB_REPORT_V2)}),body:{header:{},event:[],quality:[]},keyMap:{request:{SDKType:"sdk_type",SDKVersion:"sdk_version",deviceType:"device_type",platform:"platform",instanceID:"instance_id",traceID:"trace_id",SDKAppID:"sdk_app_id",userID:"user_id",tinyID:"tiny_id",extension:"extension",timestamp:"timestamp",networkType:"network_type",eventType:"event_type",code:"error_code",message:"error_message",moreMessage:"more_message",duplicate:"duplicate",costTime:"cost_time",level:"level",qualityType:"quality_type",reportIndex:"report_index",wholePeriod:"whole_period",totalCount:"total_count",rttCount:"success_count_business",successRateOfRequest:"percent_business",countLessThan1Second:"success_count_business",percentOfCountLessThan1Second:"percent_business",countLessThan3Second:"success_count_platform",percentOfCountLessThan3Second:"percent_platform",successCountOfBusiness:"success_count_business",successRateOfBusiness:"percent_business",successCountOfPlatform:"success_count_platform",successRateOfPlatform:"percent_platform",successCountOfMessageReceived:"success_count_business",successRateOfMessageReceived:"percent_business",avgRTT:"average_value",avgDelay:"average_value",avgValue:"average_value",framework:"framework"}}}}(n)),this._configMap.set(ki,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.HEARTBEAT,".").concat(V.CMD.ALIVE)}),body:{}}}(e)),this._configMap.set(Mi,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.IM_OPEN_PUSH,".").concat(V.CMD.MESSAGE_PUSH)}),body:{},keyMap:{response:{C2cMsgArray:"C2CMessageArray",GroupMsgArray:"groupMessageArray",GroupTips:"groupTips",C2cNotifyMsgArray:"C2CNotifyMessageArray",ClientSeq:"clientSequence",MsgPriority:"priority",NoticeSeq:"noticeSequence",MsgContent:"content",MsgType:"type",MsgBody:"elements",ToGroupId:"to",Desc:"description",Ext:"extension",IsSyncMsg:"isSyncMessage",Flag:"needSync",NeedAck:"needAck",PendencyAdd_Account:"userID",ProfileImNick:"nick",PendencyType:"applicationType",C2CReadAllMsg:"readAllC2CMessage"}}}}(e)),this._configMap.set(Ci,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.IM_OPEN_PUSH,".").concat(V.CMD.MULTI_MESSAGE_PUSH)}),body:{},keyMap:{response:{GroupMsgArray:"groupMessageArray",GroupTips:"groupTips",ClientSeq:"clientSequence",MsgPriority:"priority",NoticeSeq:"noticeSequence",MsgContent:"content",MsgType:"type",MsgBody:"elements",ToGroupId:"to",Desc:"description",Ext:"extension",IsSyncMsg:"isSyncMessage",Flag:"needSync",NeedAck:"needAck",PendencyType:"applicationType"}}}}(e)),this._configMap.set(Ei,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.OPEN_IM,".").concat(V.CMD.MESSAGE_PUSH_ACK)}),body:{sessionData:void 0},keyMap:{request:{sessionData:"SessionData"}}}}(e)),this._configMap.set(Ii,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.IM_OPEN_STATUS,".").concat(V.CMD.STATUS_FORCEOFFLINE)}),body:{},keyMap:{response:{C2cNotifyMsgArray:"C2CNotifyMessageArray",NoticeSeq:"noticeSequence",KickoutMsgNotify:"kickoutMsgNotify",NewInstInfo:"newInstanceInfo"}}}}(e)),this._configMap.set(Oi,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.IM_LONG_MESSAGE,".").concat(V.CMD.DOWNLOAD_MERGER_MESSAGE)}),body:{downloadKey:""},keyMap:{response:{Data:"data",Desc:"description",Ext:"extension",Download_Flag:"downloadFlag",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID"}}}}(e)),this._configMap.set(Ai,function(e){return{head:s({},e,{servcmd:"".concat(V.NAME.IM_LONG_MESSAGE,".").concat(V.CMD.UPLOAD_MERGER_MESSAGE)}),body:{messageList:[]},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom",msgBody:"MsgBody",type:"MsgType",content:"MsgContent",data:"Data",description:"Desc",extension:"Ext",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",elements:"MsgBody",clientSequence:"ClientSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody"}}}}(e))}},{key:"has",value:function(e){return this._configMap.has(e)}},{key:"get",value:function(e){return this._configMap.get(e)}},{key:"update",value:function(){this._fillConfigMap()}},{key:"getKeyMap",value:function(e){return this.has(e)?this.get(e).keyMap||{}:(De.warn("".concat(this._className,".getKeyMap unknown protocolName:").concat(e)),{})}},{key:"getProtocolData",value:function(e){var t=e.protocolName,n=e.requestData,i=this.get(t),r=null;if(n){var a=this._simpleDeepCopy(i),o=this._updateService(n,a),s=o.body,u=Object.create(null);for(var c in s)if(Object.prototype.hasOwnProperty.call(s,c)){if(u[c]=s[c],void 0===n[c])continue;u[c]=n[c]}o.body=u,r=this._getUplinkData(o)}else r=this._getUplinkData(i);return r}},{key:"_getUplinkData",value:function(e){var t=this._requestDataCleaner(e),n=Ct(t.head),i=Tu(t.body,this._getRequestKeyMap(n));return t.body=i,t}},{key:"_updateService",value:function(e,t){var n=Ct(t.head);if(t.head.servcmd.includes(V.NAME.GROUP)){var i=e.type,r=e.groupID,a=void 0===r?void 0:r,o=e.groupIDList,s=void 0===o?[]:o;ze(a)&&(a=s[0]||""),mt({type:i,groupID:a})&&(t.head.servcmd="".concat(V.NAME.GROUP_COMMUNITY,".").concat(n))}return t}},{key:"_getRequestKeyMap",value:function(e){var t=this.getKeyMap(e);return s({},yu.request,{},t.request)}},{key:"_requestDataCleaner",value:function(t){var n=Array.isArray(t)?[]:Object.create(null);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&Qe(i)&&null!==t[i]&&void 0!==t[i]&&("object"!==e(t[i])?n[i]=t[i]:n[i]=this._requestDataCleaner.bind(this)(t[i]));return n}},{key:"_simpleDeepCopy",value:function(e){for(var t,n=Object.keys(e),i={},r=0,a=n.length;r<a;r++)t=n[r],We(e[t])?i[t]=Array.from(e[t]):He(e[t])?i[t]=this._simpleDeepCopy(e[t]):i[t]=e[t];return i}}]),t}(),Ru=[Ei],ju=function(){function e(t){n(this,e),this._sessionModule=t,this._className="DownlinkHandler",this._eventHandlerMap=new Map,this._eventHandlerMap.set("C2CMessageArray",this._c2cMessageArrayHandler.bind(this)),this._eventHandlerMap.set("groupMessageArray",this._groupMessageArrayHandler.bind(this)),this._eventHandlerMap.set("groupTips",this._groupTipsHandler.bind(this)),this._eventHandlerMap.set("C2CNotifyMessageArray",this._C2CNotifyMessageArrayHandler.bind(this)),this._eventHandlerMap.set("profileModify",this._profileHandler.bind(this)),this._eventHandlerMap.set("friendListMod",this._relationChainHandler.bind(this)),this._eventHandlerMap.set("recentContactMod",this._recentContactHandler.bind(this)),this._eventHandlerMap.set("readAllC2CMessage",this._allMessageReadHandler.bind(this)),this._keys=_(this._eventHandlerMap.keys())}return r(e,[{key:"_c2cMessageArrayHandler",value:function(e){var t=this._sessionModule.getModule(Kt);t&&(e.dataList.forEach((function(e){if(1===e.isSyncMessage){var t=e.from;e.from=e.to,e.to=t}})),1===e.needSync&&this._sessionModule.getModule(sn).startOnlineSync(),t.onNewC2CMessage({dataList:e.dataList,isInstantMessage:!0}))}},{key:"_groupMessageArrayHandler",value:function(e){var t=this._sessionModule.getModule(Yt);t&&t.onNewGroupMessage({event:e.event,dataList:e.dataList,isInstantMessage:!0})}},{key:"_groupTipsHandler",value:function(e){var t=this._sessionModule.getModule(Yt);if(t){var n=e.event,i=e.dataList,r=e.isInstantMessage,a=void 0===r||r,o=e.isSyncingEnded;switch(n){case 4:case 6:t.onNewGroupTips({event:n,dataList:i});break;case 5:i.forEach((function(e){We(e.elements.revokedInfos)?t.onGroupMessageRevoked({dataList:i}):We(e.elements.groupMessageReadNotice)?t.onGroupMessageReadNotice({dataList:i}):t.onNewGroupSystemNotice({dataList:i,isInstantMessage:a,isSyncingEnded:o})}));break;case 12:this._sessionModule.getModule(Qt).onNewGroupAtTips({dataList:i});break;default:De.log("".concat(this._className,"._groupTipsHandler unknown event:").concat(n," dataList:"),i)}}}},{key:"_C2CNotifyMessageArrayHandler",value:function(e){var t=this,n=e.dataList;if(We(n)){var i=this._sessionModule.getModule(Kt);n.forEach((function(e){if($e(e))if(e.hasOwnProperty("kickoutMsgNotify")){var r=e.kickoutMsgNotify,a=r.kickType,o=r.newInstanceInfo,s=void 0===o?{}:o;1===a?t._sessionModule.onMultipleAccountKickedOut(s):2===a&&t._sessionModule.onMultipleDeviceKickedOut(s)}else e.hasOwnProperty("c2cMessageRevokedNotify")?i&&i.onC2CMessageRevoked({dataList:n}):e.hasOwnProperty("c2cMessageReadReceipt")?i&&i.onC2CMessageReadReceipt({dataList:n}):e.hasOwnProperty("c2cMessageReadNotice")?i&&i.onC2CMessageReadNotice({dataList:n}):e.hasOwnProperty("muteNotificationsSync")&&t._sessionModule.getModule(Qt).onC2CMessageRemindTypeSynced({dataList:n})}))}}},{key:"_profileHandler",value:function(e){this._sessionModule.getModule(zt).onProfileModified({dataList:e.dataList});var t=this._sessionModule.getModule(Xt);t&&t.onFriendProfileModified({dataList:e.dataList})}},{key:"_relationChainHandler",value:function(e){this._sessionModule.getModule(zt).onRelationChainModified({dataList:e.dataList});var t=this._sessionModule.getModule(Xt);t&&t.onRelationChainModified({dataList:e.dataList})}},{key:"_recentContactHandler",value:function(e){var t=e.dataList;if(We(t)){var n=this._sessionModule.getModule(Qt);n&&t.forEach((function(e){var t=e.pushType,i=e.recentContactTopItem,r=e.recentContactDeleteItem;1===t?n.onConversationDeleted(r.recentContactList):2===t?n.onConversationPinned(i.recentContactList):3===t&&n.onConversationUnpinned(i.recentContactList)}))}}},{key:"_allMessageReadHandler",value:function(e){var t=e.dataList,n=this._sessionModule.getModule(Qt);n&&n.onPushedAllMessageRead(t)}},{key:"onMessage",value:function(e){var t=this,n=e.body;if(this._filterMessageFromIMOpenPush(e)){var i=n.eventArray,r=n.isInstantMessage,a=n.isSyncingEnded,o=n.needSync;if(We(i))for(var s=null,u=null,c=0,l=0,d=i.length;l<d;l++){c=(s=i[l]).event;var h=Object.keys(s).find((function(e){return-1!==t._keys.indexOf(e)}));h?(u=14!==c?s[h]:{readAllC2CMessage:s[h],groupMessageReadInfoList:s.groupMessageReadNotice||[]},this._eventHandlerMap.get(h)({event:c,dataList:u,isInstantMessage:r,isSyncingEnded:a,needSync:o})):De.log("".concat(this._className,".onMessage unknown eventItem:").concat(s))}}}},{key:"_filterMessageFromIMOpenPush",value:function(e){var t=e.head,n=e.body,i=t.servcmd,r=!1;if(ze(i)||(r=i.includes(V.NAME.IM_CONFIG_MANAGER)||i.includes(V.NAME.OVERLOAD_PUSH)||i.includes(V.NAME.STAT_SERVICE)),!r)return!0;if(i.includes(V.CMD.PUSHED_CLOUD_CONTROL_CONFIG))this._sessionModule.getModule(dn).onPushedCloudControlConfig(n);else if(i.includes(V.CMD.PUSHED_COMMERCIAL_CONFIG))this._sessionModule.getModule(gn).onPushedConfig(n);else if(i.includes(V.CMD.OVERLOAD_NOTIFY))this._sessionModule.onPushedServerOverload(n);else if(i.includes(V.CMD.KICK_OTHER)){var a=Date.now();this._sessionModule.reLoginOnKickOther();var o=new da(ya),s=this._sessionModule.getModule($t).getLastWsHelloTs(),u=a-s;o.setMessage("last wshello time:".concat(s," diff:").concat(u,"ms")).setNetworkType(this._sessionModule.getNetworkType()).end()}return!1}}]),e}(),Uu=[{cmd:V.CMD.GET_GROUP_INFO,interval:1,count:20},{cmd:V.CMD.SET_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:V.CMD.MODIFY_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:V.CMD.DELETE_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:V.CMD.CLEAR_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:V.CMD.GET_GROUP_ATTRIBUTES,interval:5,count:20},{cmd:V.CMD.SET_ALL_MESSAGE_READ,interval:1,count:1}],Fu=function(e){u(i,e);var t=v(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._className="SessionModule",r._platform=r.getPlatform(),r._protocolHandler=new Pu(g(r)),r._messageDispatcher=new ju(g(r)),r._commandFrequencyLimitMap=new Map,r._commandRequestInfoMap=new Map,r._serverOverloadInfoMap=new Map,r._init(),r.getInnerEmitterInstance().on(vs,r._onCloudConfigUpdated,g(r)),r}return r(i,[{key:"_init",value:function(){this._updateCommandFrequencyLimitMap(Uu)}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("cmd_frequency_limit");ze(e)||(e=JSON.parse(e),this._updateCommandFrequencyLimitMap(e))}},{key:"_updateCommandFrequencyLimitMap",value:function(e){var t=this;e.forEach((function(e){t._commandFrequencyLimitMap.set(e.cmd,{interval:e.interval,count:e.count})}))}},{key:"updateProtocolConfig",value:function(){this._protocolHandler.update()}},{key:"request",value:function(e){De.debug("".concat(this._className,".request options:"),e);var t=e.protocolName,n=e.tjgID;if(!this._protocolHandler.has(t))return De.warn("".concat(this._className,".request unknown protocol:").concat(t)),fs({code:Ri.CANNOT_FIND_PROTOCOL,message:Wr});var i=this.getProtocolData(e),r=i.head.servcmd;if(this._isFrequencyOverLimit(r))return fs({code:Ri.OVER_FREQUENCY_LIMIT,message:Yr});if(this._isServerOverload(r))return fs({code:Ri.OPEN_SERVICE_OVERLOAD_ERROR,message:Xr});xt(n)||(i.head.tjgID=n);var a=this.getModule(cn);return Ru.includes(t)?a.simplySend(i):a.send(i)}},{key:"getKeyMap",value:function(e){return this._protocolHandler.getKeyMap(e)}},{key:"genCommonHead",value:function(){var e=this.getModule(Zt);return{ver:"v4",platform:this._platform,websdkappid:R,websdkversion:P,a2:e.getA2Key()||void 0,tinyid:e.getTinyID()||void 0,status_instid:e.getStatusInstanceID(),sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getA2Key()?void 0:e.getUserID(),usersig:e.getA2Key()?void 0:e.getUserSig(),sdkability:51,tjgID:""}}},{key:"genCosSpecifiedHead",value:function(){var e=this.getModule(Zt);return{ver:"v4",platform:this._platform,websdkappid:R,websdkversion:P,sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getUserID(),usersig:e.getUserSig(),status_instid:e.getStatusInstanceID(),sdkability:51}}},{key:"genSSOReportHead",value:function(){var e=this.getModule(Zt);return{ver:"v4",platform:this._platform,websdkappid:R,websdkversion:P,sdkappid:e.getSDKAppID(),contenttype:"",reqtime:0,identifier:"",usersig:"",status_instid:e.getStatusInstanceID(),sdkability:51}}},{key:"getProtocolData",value:function(e){return this._protocolHandler.getProtocolData(e)}},{key:"onErrorCodeNotZero",value:function(e){var t=e.errorCode;if(t===Ri.HELLO_ANSWER_KICKED_OUT){var n=e.kickType,i=e.newInstanceInfo,r=void 0===i?{}:i;1===n?this.onMultipleAccountKickedOut(r):2===n&&this.onMultipleDeviceKickedOut(r)}t!==Ri.MESSAGE_A2KEY_EXPIRED&&t!==Ri.ACCOUNT_A2KEY_EXPIRED||(this._onUserSigExpired(),this.getModule(cn).reConnect())}},{key:"onMessage",value:function(e){var t=e.body,n=t.needAck,i=void 0===n?0:n,r=t.sessionData;1===i&&this._sendACK(r),this._messageDispatcher.onMessage(e)}},{key:"onReconnected",value:function(){this._reLoginOnReconnected()}},{key:"reLoginOnKickOther",value:function(){De.log("".concat(this._className,".reLoginOnKickOther")),this._reLogin()}},{key:"_reLoginOnReconnected",value:function(){De.log("".concat(this._className,"._reLoginOnReconnected")),this._reLogin()}},{key:"_reLogin",value:function(){var e=this;this.isLoggedIn()&&this.request({protocolName:vn}).then((function(t){var n=t.data.instanceID;e.getModule(Zt).setStatusInstanceID(n),De.log("".concat(e._className,"._reLogin ok. start to sync unread messages")),e.getModule(sn).startSyncOnReconnected(),e.getModule(fn).startPull(),e.getModule(Yt).updateLocalMainSequenceOnReconnected()}))}},{key:"onMultipleAccountKickedOut",value:function(e){this.getModule($t).onMultipleAccountKickedOut(e)}},{key:"onMultipleDeviceKickedOut",value:function(e){this.getModule($t).onMultipleDeviceKickedOut(e)}},{key:"_onUserSigExpired",value:function(){this.getModule($t).onUserSigExpired()}},{key:"_sendACK",value:function(e){this.request({protocolName:Ei,requestData:{sessionData:e}})}},{key:"_isFrequencyOverLimit",value:function(e){var t=e.split(".")[1];if(!this._commandFrequencyLimitMap.has(t))return!1;if(!this._commandRequestInfoMap.has(t))return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;var n=this._commandFrequencyLimitMap.get(t),i=n.count,r=n.interval,a=this._commandRequestInfoMap.get(t),o=a.startTime,s=a.requestCount;if(Date.now()-o>1e3*r)return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;s+=1,this._commandRequestInfoMap.set(t,{startTime:o,requestCount:s});var u=!1;return s>i&&(u=!0),u}},{key:"_isServerOverload",value:function(e){if(!this._serverOverloadInfoMap.has(e))return!1;var t=this._serverOverloadInfoMap.get(e),n=t.overloadTime,i=t.waitingTime,r=!1;return Date.now()-n<=1e3*i?r=!0:(this._serverOverloadInfoMap.delete(e),r=!1),r}},{key:"onPushedServerOverload",value:function(e){var t=e.overloadCommand,n=e.waitingTime;this._serverOverloadInfoMap.set(t,{overloadTime:Date.now(),waitingTime:n}),De.warn("".concat(this._className,".onPushedServerOverload waitingTime:").concat(n,"s"))}},{key:"reset",value:function(){De.log("".concat(this._className,".reset")),this._updateCommandFrequencyLimitMap(Uu),this._commandRequestInfoMap.clear(),this._serverOverloadInfoMap.clear()}}]),i}(mn),Bu=function(e){u(i,e);var t=v(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._className="MessageLossDetectionModule",r._maybeLostSequencesMap=new Map,r}return r(i,[{key:"onMessageMaybeLost",value:function(e,t,n){this._maybeLostSequencesMap.has(e)||this._maybeLostSequencesMap.set(e,[]);for(var i=this._maybeLostSequencesMap.get(e),r=0;r<n;r++)i.push(t+r);De.debug("".concat(this._className,".onMessageMaybeLost. maybeLostSequences:").concat(i))}},{key:"detectMessageLoss",value:function(e,t){var n=this._maybeLostSequencesMap.get(e);if(!xt(n)&&!xt(t)){var i=t.filter((function(e){return-1!==n.indexOf(e)}));if(De.debug("".concat(this._className,".detectMessageLoss. matchedSequences:").concat(i)),n.length===i.length)De.info("".concat(this._className,".detectMessageLoss no message loss. conversationID:").concat(e));else{var r,a=n.filter((function(e){return-1===i.indexOf(e)})),o=a.length;o<=5?r=e+"-"+a.join("-"):(a.sort((function(e,t){return e-t})),r=e+" start:"+a[0]+" end:"+a[o-1]+" count:"+o),new da(Eo).setMessage(r).setNetworkType(this.getNetworkType()).setLevel("warning").end(),De.warn("".concat(this._className,".detectMessageLoss message loss detected. conversationID:").concat(e," lostSequences:").concat(a))}n.length=0}}},{key:"reset",value:function(){De.log("".concat(this._className,".reset")),this._maybeLostSequencesMap.clear()}}]),i}(mn),Gu=function(e){u(i,e);var t=v(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._className="CloudControlModule",r._cloudConfig=new Map,r._expiredTime=0,r._version=0,r._isFetching=!1,r}return r(i,[{key:"getCloudConfig",value:function(e){return ze(e)?this._cloudConfig:this._cloudConfig.has(e)?this._cloudConfig.get(e):void 0}},{key:"_canFetchConfig",value:function(){return this.isLoggedIn()&&!this._isFetching&&Date.now()>=this._expiredTime}},{key:"fetchConfig",value:function(){var e=this,t=this._canFetchConfig();if(De.log("".concat(this._className,".fetchConfig canFetchConfig:").concat(t)),t){var n=new da(Po),i=this.getModule(Zt).getSDKAppID();this._isFetching=!0,this.request({protocolName:xi,requestData:{SDKAppID:i,version:this._version}}).then((function(t){e._isFetching=!1,n.setMessage("version:".concat(e._version," newVersion:").concat(t.data.version," config:").concat(t.data.cloudControlConfig)).setNetworkType(e.getNetworkType()).end(),De.log("".concat(e._className,".fetchConfig ok")),e._parseCloudControlConfig(t.data)})).catch((function(t){e._isFetching=!1,e.probeNetwork().then((function(e){var i=y(e,2),r=i[0],a=i[1];n.setError(t,r,a).end()})),De.log("".concat(e._className,".fetchConfig failed. error:"),t),e._setExpiredTimeOnResponseError(12e4)}))}}},{key:"onPushedCloudControlConfig",value:function(e){De.log("".concat(this._className,".onPushedCloudControlConfig")),new da(Ro).setNetworkType(this.getNetworkType()).setMessage("newVersion:".concat(e.version," config:").concat(e.cloudControlConfig)).end(),this._parseCloudControlConfig(e)}},{key:"onCheckTimer",value:function(e){this._canFetchConfig()&&this.fetchConfig()}},{key:"_parseCloudControlConfig",value:function(e){var t=this,n="".concat(this._className,"._parseCloudControlConfig"),i=e.errorCode,r=e.errorMessage,a=e.cloudControlConfig,o=e.version,s=e.expiredTime;if(0===i){if(this._version!==o){var u=null;try{u=JSON.parse(a)}catch(l){De.error("".concat(n," JSON parse error:").concat(a))}u&&(this._cloudConfig.clear(),Object.keys(u).forEach((function(e){t._cloudConfig.set(e,u[e])})),this._version=o,this.emitInnerEvent(vs))}this._expiredTime=Date.now()+1e3*s}else ze(i)?(De.log("".concat(n," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(De.error("".concat(n," errorCode:").concat(i," errorMessage:").concat(r)),this._setExpiredTimeOnResponseError(12e4))}},{key:"_setExpiredTimeOnResponseError",value:function(e){this._expiredTime=Date.now()+e}},{key:"reset",value:function(){De.log("".concat(this._className,".reset")),this._cloudConfig.clear(),this._expiredTime=0,this._version=0,this._isFetching=!1}}]),i}(mn),qu=function(e){u(i,e);var t=v(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._className="PullGroupMessageModule",r._remoteLastMessageSequenceMap=new Map,r.PULL_LIMIT_COUNT=15,r}return r(i,[{key:"startPull",value:function(){var e=this,t=this._getNeedPullConversationList();this._getRemoteLastMessageSequenceList().then((function(){var n=e.getModule(Qt);t.forEach((function(t){var i=t.conversationID,r=i.replace(E.CONV_GROUP,""),a=n.getGroupLocalLastMessageSequence(i),o=e._remoteLastMessageSequenceMap.get(r)||0,s=o-a;De.log("".concat(e._className,".startPull groupID:").concat(r," localLastMessageSequence:").concat(a," ")+"remoteLastMessageSequence:".concat(o," diff:").concat(s)),a>0&&s>=1&&s<300&&e._pullMissingMessage({groupID:r,localLastMessageSequence:a,remoteLastMessageSequence:o,diff:s})}))}))}},{key:"_getNeedPullConversationList",value:function(){return this.getModule(Qt).getLocalConversationList().filter((function(e){return e.type===E.CONV_GROUP&&e.groupProfile.type!==E.GRP_AVCHATROOM}))}},{key:"_getRemoteLastMessageSequenceList",value:function(){var e=this;return this.getModule(Yt).getGroupList().then((function(t){for(var n=t.data.groupList,i=void 0===n?[]:n,r=0;r<i.length;r++){var a=i[r],o=a.groupID,s=a.nextMessageSeq;if(a.type!==E.GRP_AVCHATROOM){var u=s-1;e._remoteLastMessageSequenceMap.set(o,u)}}}))}},{key:"_pullMissingMessage",value:function(e){var t=this,n=e.localLastMessageSequence,i=e.remoteLastMessageSequence,r=e.diff;e.count=r>this.PULL_LIMIT_COUNT?this.PULL_LIMIT_COUNT:r,e.sequence=r>this.PULL_LIMIT_COUNT?n+this.PULL_LIMIT_COUNT:n+r,this._getGroupMissingMessage(e).then((function(a){a.length>0&&(a[0].sequence+1<=i&&(e.localLastMessageSequence=n+t.PULL_LIMIT_COUNT,e.diff=r-t.PULL_LIMIT_COUNT,t._pullMissingMessage(e)),t.getModule(Yt).onNewGroupMessage({dataList:a,isInstantMessage:!1}))}))}},{key:"_getGroupMissingMessage",value:function(e){var t=this,n=new da(uo);return this.request({protocolName:ii,requestData:{groupID:e.groupID,count:e.count,sequence:e.sequence}}).then((function(i){var r=i.data.messageList,a=void 0===r?[]:r;return n.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(e.groupID," count:").concat(e.count," sequence:").concat(e.sequence," messageList length:").concat(a.length)).end(),a})).catch((function(e){t.probeNetwork().then((function(t){var i=y(t,2),r=i[0],a=i[1];n.setError(e,r,a).end()}))}))}},{key:"reset",value:function(){De.log("".concat(this._className,".reset")),this._remoteLastMessageSequenceMap.clear()}}]),i}(mn),Vu=function(){function e(){n(this,e),this._className="AvgE2EDelay",this._e2eDelayArray=[]}return r(e,[{key:"addMessageDelay",value:function(e){var t=Ie()-e;t>=0&&this._e2eDelayArray.push(t)}},{key:"_calcAvg",value:function(e,t){if(0===t)return 0;var n=0;return e.forEach((function(e){n+=e})),Et(n/t,1)}},{key:"_calcCountWithLimit",value:function(e){var t=e.e2eDelayArray,n=e.min,i=e.max;return t.filter((function(e){return n<=e&&e<i})).length}},{key:"_calcPercent",value:function(e,t){var n=Et(e/t*100,2);return n>100&&(n=100),n}},{key:"_checkE2EDelayException",value:function(e,t){var n=e.filter((function(e){return e>t}));if(n.length>0){var i=n.length,r=Math.min.apply(Math,_(n)),a=Math.max.apply(Math,_(n)),o=this._calcAvg(n,i),s=Et(i/e.length*100,2);s>50&&new da(Ba).setMessage("message e2e delay exception. count:".concat(i," min:").concat(r," max:").concat(a," avg:").concat(o," percent:").concat(s)).setLevel("warning").end()}}},{key:"getStatResult",value:function(){var e=this._e2eDelayArray.length;if(0===e)return null;var t=_(this._e2eDelayArray),n=this._calcCountWithLimit({e2eDelayArray:t,min:0,max:1}),i=this._calcCountWithLimit({e2eDelayArray:t,min:1,max:3}),r=this._calcPercent(n,e),a=this._calcPercent(i,e),o=this._calcAvg(t,e);return this._checkE2EDelayException(t,3),t.length=0,this.reset(),{totalCount:e,countLessThan1Second:n,percentOfCountLessThan1Second:r,countLessThan3Second:i,percentOfCountLessThan3Second:a,avgDelay:o}}},{key:"reset",value:function(){this._e2eDelayArray.length=0}}]),e}(),Hu=function(){function e(){n(this,e),this._className="AvgRTT",this._requestCount=0,this._rttArray=[]}return r(e,[{key:"addRequestCount",value:function(){this._requestCount+=1}},{key:"addRTT",value:function(e){this._rttArray.push(e)}},{key:"_calcTotalCount",value:function(){return this._requestCount}},{key:"_calcRTTCount",value:function(e){return e.length}},{key:"_calcSuccessRateOfRequest",value:function(e,t){if(0===t)return 0;var n=Et(e/t*100,2);return n>100&&(n=100),n}},{key:"_calcAvg",value:function(e,t){if(0===t)return 0;var n=0;return e.forEach((function(e){n+=e})),parseInt(n/t)}},{key:"_calcMax",value:function(){return Math.max.apply(Math,_(this._rttArray))}},{key:"_calcMin",value:function(){return Math.min.apply(Math,_(this._rttArray))}},{key:"getStatResult",value:function(){var e=this._calcTotalCount(),t=_(this._rttArray);if(0===e)return null;var n=this._calcRTTCount(t),i=this._calcSuccessRateOfRequest(n,e),r=this._calcAvg(t,n);return De.log("".concat(this._className,".getStatResult max:").concat(this._calcMax()," min:").concat(this._calcMin()," avg:").concat(r)),this.reset(),{totalCount:e,rttCount:n,successRateOfRequest:i,avgRTT:r}}},{key:"reset",value:function(){this._requestCount=0,this._rttArray.length=0}}]),e}(),$u=function(){function e(){n(this,e),this._map=new Map}return r(e,[{key:"initMap",value:function(e){var t=this;e.forEach((function(e){t._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}))}},{key:"addTotalCount",value:function(e){return!(ze(e)||!this._map.has(e))&&(this._map.get(e).totalCount+=1,!0)}},{key:"addSuccessCount",value:function(e){return!(ze(e)||!this._map.has(e))&&(this._map.get(e).successCount+=1,!0)}},{key:"addFailedCountOfUserSide",value:function(e){return!(ze(e)||!this._map.has(e))&&(this._map.get(e).failedCountOfUserSide+=1,!0)}},{key:"addCost",value:function(e,t){return!(ze(e)||!this._map.has(e))&&(this._map.get(e).costArray.push(t),!0)}},{key:"addFileSize",value:function(e,t){return!(ze(e)||!this._map.has(e))&&(this._map.get(e).fileSizeArray.push(t),!0)}},{key:"_calcSuccessRateOfBusiness",value:function(e){if(ze(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=Et(t.successCount/t.totalCount*100,2);return n>100&&(n=100),n}},{key:"_calcSuccessRateOfPlatform",value:function(e){if(ze(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=this._calcSuccessCountOfPlatform(e)/t.totalCount*100;return(n=Et(n,2))>100&&(n=100),n}},{key:"_calcTotalCount",value:function(e){return ze(e)||!this._map.has(e)?-1:this._map.get(e).totalCount}},{key:"_calcSuccessCountOfBusiness",value:function(e){return ze(e)||!this._map.has(e)?-1:this._map.get(e).successCount}},{key:"_calcSuccessCountOfPlatform",value:function(e){if(ze(e)||!this._map.has(e))return-1;var t=this._map.get(e);return t.successCount+t.failedCountOfUserSide}},{key:"_calcAvg",value:function(e){return ze(e)||!this._map.has(e)?-1:e===ia?this._calcAvgSpeed(e):this._calcAvgCost(e)}},{key:"_calcAvgCost",value:function(e){var t=this._map.get(e).costArray.length;if(0===t)return 0;var n=0;return this._map.get(e).costArray.forEach((function(e){n+=e})),parseInt(n/t)}},{key:"_calcAvgSpeed",value:function(e){var t=0,n=0;return this._map.get(e).costArray.forEach((function(e){t+=e})),this._map.get(e).fileSizeArray.forEach((function(e){n+=e})),parseInt(1e3*n/t)}},{key:"getStatResult",value:function(e){var t=this._calcTotalCount(e);if(0===t)return null;var n=this._calcSuccessCountOfBusiness(e),i=this._calcSuccessRateOfBusiness(e),r=this._calcSuccessCountOfPlatform(e),a=this._calcSuccessRateOfPlatform(e),o=this._calcAvg(e);return this.reset(e),{totalCount:t,successCountOfBusiness:n,successRateOfBusiness:i,successCountOfPlatform:r,successRateOfPlatform:a,avgValue:o}}},{key:"reset",value:function(e){ze(e)?this._map.clear():this._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}}]),e}(),Wu=function(){function e(){n(this,e),this._lastMap=new Map,this._currentMap=new Map}return r(e,[{key:"initMap",value:function(e){var t=this;e.forEach((function(e){t._lastMap.set(e,new Map),t._currentMap.set(e,new Map)}))}},{key:"addMessageSequence",value:function(e){var t=e.key,n=e.message;if(ze(t)||!this._lastMap.has(t)||!this._currentMap.has(t))return!1;var i=n.conversationID,r=n.sequence,a=i.replace(E.CONV_GROUP,"");if(0===this._lastMap.get(t).size)this._addCurrentMap(e);else if(this._lastMap.get(t).has(a)){var o=this._lastMap.get(t).get(a),s=o.length-1;r>o[0]&&r<o[s]?(o.push(r),o.sort(),this._lastMap.get(t).set(a,o)):this._addCurrentMap(e)}else this._addCurrentMap(e);return!0}},{key:"_addCurrentMap",value:function(e){var t=e.key,n=e.message,i=n.conversationID,r=n.sequence,a=i.replace(E.CONV_GROUP,"");this._currentMap.get(t).has(a)||this._currentMap.get(t).set(a,[]),this._currentMap.get(t).get(a).push(r)}},{key:"_copyData",value:function(e){if(!ze(e)){this._lastMap.set(e,new Map);var t,n=this._lastMap.get(e),i=M(this._currentMap.get(e));try{for(i.s();!(t=i.n()).done;){var r=y(t.value,2),a=r[0],o=r[1];n.set(a,o)}}catch(u){i.e(u)}finally{i.f()}n=null,this._currentMap.set(e,new Map)}}},{key:"getStatResult",value:function(e){if(ze(this._currentMap.get(e))||ze(this._lastMap.get(e)))return null;if(0===this._lastMap.get(e).size)return this._copyData(e),null;var t=0,n=0;if(this._lastMap.get(e).forEach((function(e,i){var r=_(e.values()),a=r.length,o=r[a-1]-r[0]+1;t+=o,n+=a})),0===t)return null;var i=Et(n/t*100,2);return i>100&&(i=100),this._copyData(e),{totalCount:t,successCountOfMessageReceived:n,successRateOfMessageReceived:i}}},{key:"reset",value:function(){this._currentMap.clear(),this._lastMap.clear()}}]),e}(),zu=function(e){u(i,e);var t=v(i);function i(e){var r;n(this,i),(r=t.call(this,e))._className="QualityStatModule",r.TAG="im-ssolog-quality-stat",r.reportIndex=0,r.wholePeriod=!1,r._qualityItems=[Jr,Qr,Zr,ea,ta,na,ia,ra,aa,oa],r._messageSentItems=[Zr,ea,ta,na,ia],r._messageReceivedItems=[ra,aa,oa],r.REPORT_INTERVAL=120,r.REPORT_SDKAPPID_BLACKLIST=[],r.REPORT_TINYID_WHITELIST=[],r._statInfoArr=[],r._avgRTT=new Hu,r._avgE2EDelay=new Vu,r._rateMessageSent=new $u,r._rateMessageReceived=new Wu;var a=r.getInnerEmitterInstance();return a.on(ms,r._onLoginSuccess,g(r)),a.on(vs,r._onCloudConfigUpdated,g(r)),r}return r(i,[{key:"_onLoginSuccess",value:function(){var e=this;this._rateMessageSent.initMap(this._messageSentItems),this._rateMessageReceived.initMap(this._messageReceivedItems);var t=this.getModule(en),n=t.getItem(this.TAG,!1);!xt(n)&&Ye(n.forEach)&&(De.log("".concat(this._className,"._onLoginSuccess.get quality stat log in storage, nums=").concat(n.length)),n.forEach((function(t){e._statInfoArr.push(t)})),t.removeItem(this.TAG,!1))}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("q_rpt_interval"),t=this.getCloudConfig("q_rpt_sdkappid_bl"),n=this.getCloudConfig("q_rpt_tinyid_wl");ze(e)||(this.REPORT_INTERVAL=Number(e)),ze(t)||(this.REPORT_SDKAPPID_BLACKLIST=t.split(",").map((function(e){return Number(e)}))),ze(n)||(this.REPORT_TINYID_WHITELIST=n.split(","))}},{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&e%this.REPORT_INTERVAL==0&&(this.wholePeriod=!0,this._report())}},{key:"addRequestCount",value:function(){this._avgRTT.addRequestCount()}},{key:"addRTT",value:function(e){this._avgRTT.addRTT(e)}},{key:"addMessageDelay",value:function(e){this._avgE2EDelay.addMessageDelay(e)}},{key:"addTotalCount",value:function(e){this._rateMessageSent.addTotalCount(e)||De.warn("".concat(this._className,".addTotalCount invalid key:"),e)}},{key:"addSuccessCount",value:function(e){this._rateMessageSent.addSuccessCount(e)||De.warn("".concat(this._className,".addSuccessCount invalid key:"),e)}},{key:"addFailedCountOfUserSide",value:function(e){this._rateMessageSent.addFailedCountOfUserSide(e)||De.warn("".concat(this._className,".addFailedCountOfUserSide invalid key:"),e)}},{key:"addCost",value:function(e,t){this._rateMessageSent.addCost(e,t)||De.warn("".concat(this._className,".addCost invalid key or cost:"),e,t)}},{key:"addFileSize",value:function(e,t){this._rateMessageSent.addFileSize(e,t)||De.warn("".concat(this._className,".addFileSize invalid key or size:"),e,t)}},{key:"addMessageSequence",value:function(e){this._rateMessageReceived.addMessageSequence(e)||De.warn("".concat(this._className,".addMessageSequence invalid key:"),e.key)}},{key:"_getQualityItem",value:function(e){var t={},n=ca[this.getNetworkType()];ze(n)&&(n=8);var i={qualityType:sa[e],timestamp:Ce(),networkType:n,extension:""};switch(e){case Jr:t=this._avgRTT.getStatResult();break;case Qr:t=this._avgE2EDelay.getStatResult();break;case Zr:case ea:case ta:case na:case ia:t=this._rateMessageSent.getStatResult(e);break;case ra:case aa:case oa:t=this._rateMessageReceived.getStatResult(e)}return null===t?null:s({},i,{},t)}},{key:"_report",value:function(e){var t=this,n=[],i=null;ze(e)?this._qualityItems.forEach((function(e){null!==(i=t._getQualityItem(e))&&(i.reportIndex=t.reportIndex,i.wholePeriod=t.wholePeriod,n.push(i))})):null!==(i=this._getQualityItem(e))&&(i.reportIndex=this.reportIndex,i.wholePeriod=this.wholePeriod,n.push(i)),De.debug("".concat(this._className,"._report"),n),this._statInfoArr.length>0&&(n=n.concat(this._statInfoArr),this._statInfoArr=[]);var r=this.getModule(Zt),a=r.getSDKAppID(),o=r.getTinyID();It(this.REPORT_SDKAPPID_BLACKLIST,a)&&!At(this.REPORT_TINYID_WHITELIST,o)&&(n=[]),n.length>0&&this._doReport(n)}},{key:"_doReport",value:function(e){var t=this,n={header:ru(this),quality:e};this.request({protocolName:wi,requestData:s({},n)}).then((function(){t.reportIndex++,t.wholePeriod=!1})).catch((function(n){De.warn("".concat(t._className,"._doReport, online:").concat(t.getNetworkType()," error:"),n),t._statInfoArr=t._statInfoArr.concat(e),t._flushAtOnce()}))}},{key:"_flushAtOnce",value:function(){var e=this.getModule(en),t=e.getItem(this.TAG,!1),n=this._statInfoArr;if(xt(t))De.log("".concat(this._className,"._flushAtOnce count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var i=n.concat(t);i.length>10&&(i=i.slice(0,10)),De.log("".concat(this.className,"._flushAtOnce count:").concat(i.length)),e.setItem(this.TAG,i,!0,!1)}this._statInfoArr=[]}},{key:"reset",value:function(){De.log("".concat(this._className,".reset")),this._report(),this.reportIndex=0,this.wholePeriod=!1,this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[],this._avgRTT.reset(),this._avgE2EDelay.reset(),this._rateMessageSent.reset(),this._rateMessageReceived.reset()}}]),i}(mn),Ku=function(e){u(i,e);var t=v(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._className="WorkerTimerModule",r._isWorkerEnabled=!0,r._workerTimer=null,r._init(),r.getInnerEmitterInstance().on(vs,r._onCloudConfigUpdated,g(r)),r}return r(i,[{key:"isWorkerEnabled",value:function(){return this._isWorkerEnabled&&_e}},{key:"startWorkerTimer",value:function(){De.log("".concat(this._className,".startWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("start")}},{key:"stopWorkerTimer",value:function(){De.log("".concat(this._className,".stopWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("stop")}},{key:"_init",value:function(){if(_e){var e=URL.createObjectURL(new Blob(['let interval = -1;onmessage = function(event) {  if (event.data === "start") {    if (interval > 0) {      clearInterval(interval);    }    interval = setInterval(() => {      postMessage("");    }, 1000)  } else if (event.data === "stop") {    clearInterval(interval);    interval = -1;  }};'],{type:"application/javascript; charset=utf-8"}));this._workerTimer=new Worker(e);var t=this;this._workerTimer.onmessage=function(){t._moduleManager.onCheckTimer()}}}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("enable_worker");De.log("".concat(this._className,"._onCloudConfigUpdated enableWorker:").concat(e)),"1"===e?!this._isWorkerEnabled&&_e&&(this._isWorkerEnabled=!0,this.startWorkerTimer(),this._moduleManager.onWorkerTimerEnabled()):this._isWorkerEnabled&&_e&&(this._isWorkerEnabled=!1,this.stopWorkerTimer(),this._moduleManager.onWorkerTimerDisabled())}},{key:"terminate",value:function(){De.log("".concat(this._className,".terminate")),this._workerTimer&&(this._workerTimer.terminate(),this._workerTimer=null)}},{key:"reset",value:function(){De.log("".concat(this._className,".reset"))}}]),i}(mn),Yu=function(){function e(){n(this,e),this._className="PurchasedFeatureHandler",this._purchasedFeatureMap=new Map}return r(e,[{key:"isValidPurchaseBits",value:function(e){return e&&"string"==typeof e&&e.length>=1&&e.length<=64&&/[01]{1,64}/.test(e)}},{key:"parsePurchaseBits",value:function(e){var t="".concat(this._className,".parsePurchaseBits");if(this.isValidPurchaseBits(e)){this._purchasedFeatureMap.clear();for(var n=Object.values(H),i=null,r=e.length-1,a=0;r>=0;r--,a++)i=a<32?new D(0,Math.pow(2,a)).toString():new D(Math.pow(2,a-32),0).toString(),-1!==n.indexOf(i)&&("1"===e[r]?this._purchasedFeatureMap.set(i,!0):this._purchasedFeatureMap.set(i,!1))}else De.warn("".concat(t," invalid purchase bits:").concat(e))}},{key:"hasPurchasedFeature",value:function(e){return!!this._purchasedFeatureMap.get(e)}},{key:"clear",value:function(){this._purchasedFeatureMap.clear()}}]),e}(),Xu=function(e){u(i,e);var t=v(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._className="CommercialConfigModule",r._expiredTime=0,r._isFetching=!1,r._purchasedFeatureHandler=new Yu,r}return r(i,[{key:"_canFetch",value:function(){return this.isLoggedIn()?!this._isFetching&&Date.now()>=this._expiredTime:(this._expiredTime=Date.now()+2e3,!1)}},{key:"onCheckTimer",value:function(e){this._canFetch()&&this.fetchConfig()}},{key:"fetchConfig",value:function(){var e=this,t=this._canFetch(),n="".concat(this._className,".fetchConfig");if(De.log("".concat(n," canFetch:").concat(t)),t){var i=new da(jo);i.setNetworkType(this.getNetworkType());var r=this.getModule(Zt).getSDKAppID();this._isFetching=!0,this.request({protocolName:Li,requestData:{SDKAppID:r}}).then((function(t){i.setMessage("purchaseBits:".concat(t.data.purchaseBits)).end(),De.log("".concat(n," ok.")),e._parseConfig(t.data),e._isFetching=!1})).catch((function(t){e.probeNetwork().then((function(e){var n=y(e,2),r=n[0],a=n[1];i.setError(t,r,a).end()})),e._isFetching=!1}))}}},{key:"onPushedConfig",value:function(e){var t="".concat(this._className,".onPushedConfig");De.log("".concat(t)),new da(Uo).setNetworkType(this.getNetworkType()).setMessage("purchaseBits:".concat(e.purchaseBits)).end(),this._parseConfig(e)}},{key:"_parseConfig",value:function(e){var t="".concat(this._className,"._parseConfig"),n=e.errorCode,i=e.errorMessage,r=e.purchaseBits,a=e.expiredTime;0===n?(this._purchasedFeatureHandler.parsePurchaseBits(r),this._expiredTime=Date.now()+1e3*a):ze(n)?(De.log("".concat(t," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(De.error("".concat(t," errorCode:").concat(n," errorMessage:").concat(i)),this._setExpiredTimeOnResponseError(12e4))}},{key:"_setExpiredTimeOnResponseError",value:function(e){this._expiredTime=Date.now()+e}},{key:"hasPurchasedFeature",value:function(e){return this._purchasedFeatureHandler.hasPurchasedFeature(e)}},{key:"reset",value:function(){De.log("".concat(this._className,".reset")),this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler.clear()}}]),i}(mn),Ju=function(){function e(t){n(this,e);var i=new da(ha);this._className="ModuleManager",this._isReady=!1,this._startLoginTs=0,this._moduleMap=new Map,this._innerEmitter=null,this._outerEmitter=null,this._checkCount=0,this._checkTimer=-1,this._moduleMap.set(Zt,new Zs(this,t)),this._moduleMap.set(gn,new Xu(this)),this._moduleMap.set(dn,new Gu(this)),this._moduleMap.set(hn,new Ku(this)),this._moduleMap.set(pn,new zu(this)),this._moduleMap.set(cn,new Nu(this)),this._moduleMap.set(un,new Fu(this)),this._moduleMap.set($t,new eu(this)),this._moduleMap.set(Wt,new gu(this)),this._moduleMap.set(zt,new Qs(this)),this._moduleMap.set(Kt,new ps(this)),this._moduleMap.set(Qt,new Ps(this)),this._moduleMap.set(Yt,new Ws(this)),this._moduleMap.set(Jt,new Ks(this)),this._moduleMap.set(en,new nu(this)),this._moduleMap.set(tn,new au(this)),this._moduleMap.set(nn,new uu(this)),this._moduleMap.set(rn,new lu(this)),this._moduleMap.set(an,new du(this)),this._moduleMap.set(on,new mu(this)),this._moduleMap.set(sn,new vu(this)),this._moduleMap.set(ln,new Bu(this)),this._moduleMap.set(fn,new qu(this)),this._eventThrottleMap=new Map;var r=t.instanceID,a=t.oversea,o=t.SDKAppID,s="instanceID:".concat(r," SDKAppID:").concat(o," host:").concat(wt()," oversea:").concat(a," inBrowser:").concat(ne," inMiniApp:").concat(te)+" workerAvailable:".concat(_e," UserAgent:").concat(ae);da.bindEventStatModule(this._moduleMap.get(tn)),i.setMessage("".concat(s," ").concat(function(){var e="";if(te)try{var t=ie.getSystemInfoSync(),n=t.model,i=t.version,r=t.system,a=t.platform,o=t.SDKVersion;e="model:".concat(n," version:").concat(i," system:").concat(r," platform:").concat(a," SDKVersion:").concat(o)}catch(s){e=""}return e}())).end(),De.info("SDK ".concat(s)),this._readyList=void 0,this._ssoLogForReady=null,this._initReadyList()}return r(e,[{key:"_startTimer",value:function(){var e=this._moduleMap.get(hn),t=e.isWorkerEnabled();De.log("".concat(this._className,".startTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.startWorkerTimer():this._startMainThreadTimer()}},{key:"_startMainThreadTimer",value:function(){De.log("".concat(this._className,"._startMainThreadTimer")),this._checkTimer<0&&(this._checkTimer=setInterval(this.onCheckTimer.bind(this),1e3))}},{key:"stopTimer",value:function(){var e=this._moduleMap.get(hn),t=e.isWorkerEnabled();De.log("".concat(this._className,".stopTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.stopWorkerTimer():this._stopMainThreadTimer()}},{key:"_stopMainThreadTimer",value:function(){De.log("".concat(this._className,"._stopMainThreadTimer")),this._checkTimer>0&&(clearInterval(this._checkTimer),this._checkTimer=-1,this._checkCount=0)}},{key:"_stopMainThreadSocket",value:function(){De.log("".concat(this._className,"._stopMainThreadSocket"));var e=this._moduleMap.get(cn);e.setIsWorkerEnabled(!0),e.reConnect()}},{key:"_startMainThreadSocket",value:function(){De.log("".concat(this._className,"._startMainThreadSocket"));var e=this._moduleMap.get(cn);e.setIsWorkerEnabled(!1),e.reConnect()}},{key:"onWorkerTimerEnabled",value:function(){De.log("".concat(this._className,".onWorkerTimerEnabled, disable main thread timer and socket")),this._stopMainThreadTimer(),this._stopMainThreadSocket()}},{key:"onWorkerTimerDisabled",value:function(){De.log("".concat(this._className,".onWorkerTimerDisabled, enable main thread timer and socket")),this._startMainThreadTimer(),this._startMainThreadSocket()}},{key:"onCheckTimer",value:function(){this._checkCount+=1;var e,t=M(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=y(e.value,2)[1];n.onCheckTimer&&n.onCheckTimer(this._checkCount)}}catch(r){t.e(r)}finally{t.f()}}},{key:"_initReadyList",value:function(){var e=this;this._readyList=[this._moduleMap.get($t),this._moduleMap.get(Qt)],this._readyList.forEach((function(t){t.ready((function(){return e._onModuleReady()}))}))}},{key:"_onModuleReady",value:function(){var e=!0;if(this._readyList.forEach((function(t){t.isReady()||(e=!1)})),e&&!this._isReady){this._isReady=!0,this._outerEmitter.emit(C.SDK_READY);var t=Date.now()-this._startLoginTs;De.warn("SDK is ready. cost ".concat(t," ms")),this._startLoginTs=Date.now();var n=this._moduleMap.get(nn).getNetworkType(),i=this._ssoLogForReady.getStartTs()+Me;this._ssoLogForReady.setNetworkType(n).setMessage(t).start(i).end()}}},{key:"login",value:function(){0===this._startLoginTs&&(Ee(),this._startLoginTs=Date.now(),this._startTimer(),this._moduleMap.get(nn).start(),this._ssoLogForReady=new da(fa))}},{key:"onLoginFailed",value:function(){this._startLoginTs=0}},{key:"getOuterEmitterInstance",value:function(){return null===this._outerEmitter&&(this._outerEmitter=new cu,ds(this._outerEmitter),this._outerEmitter._emit=this._outerEmitter.emit,this._outerEmitter.emit=function(e,t){var n=this;if(e===C.CONVERSATION_LIST_UPDATED||e===C.FRIEND_LIST_UPDATED||e===C.GROUP_LIST_UPDATED)if(this._eventThrottleMap.has(e)){var i=Date.now(),r=this._eventThrottleMap.get(e);i-r.last<500?(r.timeoutID&&clearTimeout(r.timeoutID),r.timeoutID=setTimeout((function(){r.last=i,n._outerEmitter._emit.apply(n._outerEmitter,[e,{name:e,data:n._getEventData(e)}])}),500)):(r.last=i,this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]))}else this._eventThrottleMap.set(e,{last:Date.now(),timeoutID:-1}),this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]);else this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:arguments[1]}])}.bind(this)),this._outerEmitter}},{key:"_getEventData",value:function(e){return e===C.CONVERSATION_LIST_UPDATED?this._moduleMap.get(Qt).getLocalConversationList():e===C.FRIEND_LIST_UPDATED?this._moduleMap.get(Xt).getLocalFriendList(!1):e===C.GROUP_LIST_UPDATED?this._moduleMap.get(Yt).getLocalGroupList():void 0}},{key:"getInnerEmitterInstance",value:function(){return null===this._innerEmitter&&(this._innerEmitter=new cu,this._innerEmitter._emit=this._innerEmitter.emit,this._innerEmitter.emit=function(e,t){var n;$e(arguments[1])&&arguments[1].data?(De.warn("inner eventData has data property, please check!"),n=[e,{name:arguments[0],data:arguments[1].data}]):n=[e,{name:arguments[0],data:arguments[1]}],this._innerEmitter._emit.apply(this._innerEmitter,n)}.bind(this)),this._innerEmitter}},{key:"hasModule",value:function(e){return this._moduleMap.has(e)}},{key:"getModule",value:function(e){return this._moduleMap.get(e)}},{key:"isReady",value:function(){return this._isReady}},{key:"onError",value:function(e){De.warn("Oops! code:".concat(e.code," message:").concat(e.message)),new da(Fo).setMessage("code:".concat(e.code," message:").concat(e.message)).setNetworkType(this.getModule(nn).getNetworkType()).setLevel("error").end(),this.getOuterEmitterInstance().emit(C.ERROR,e)}},{key:"reset",value:function(){De.log("".concat(this._className,".reset")),Ee();var e,t=M(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=y(e.value,2)[1];n.reset&&n.reset()}}catch(s){t.e(s)}finally{t.f()}this._startLoginTs=0,this._initReadyList(),this._isReady=!1,this.stopTimer(),this._outerEmitter.emit(C.SDK_NOT_READY);var i,r=M(this._eventThrottleMap);try{for(r.s();!(i=r.n()).done;){var a=y(i.value,2)[1];a.timeoutID&&clearTimeout(a.timeoutID)}}catch(s){r.e(s)}finally{r.f()}this._eventThrottleMap.clear()}}]),e}(),Qu=function(){function e(){n(this,e),this._funcMap=new Map}return r(e,[{key:"defense",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if("string"!=typeof e)return null;if(0===e.length)return null;if("function"!=typeof t)return null;if(this._funcMap.has(e)&&this._funcMap.get(e).has(t))return this._funcMap.get(e).get(t);this._funcMap.has(e)||this._funcMap.set(e,new Map);var i=null;return this._funcMap.get(e).has(t)?i=this._funcMap.get(e).get(t):(i=this._pack(e,t,n),this._funcMap.get(e).set(t,i)),i}},{key:"defenseOnce",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return"function"!=typeof t?null:this._pack(e,t,n)}},{key:"find",value:function(e,t){return"string"!=typeof e||0===e.length||"function"!=typeof t?null:this._funcMap.has(e)?this._funcMap.get(e).has(t)?this._funcMap.get(e).get(t):(De.log("SafetyCallback.find: 找不到 func —— ".concat(e,"/").concat(""!==t.name?t.name:"[anonymous]")),null):(De.log("SafetyCallback.find: 找不到 eventName-".concat(e," 对应的 func")),null)}},{key:"delete",value:function(e,t){return"function"==typeof t&&!!this._funcMap.has(e)&&!!this._funcMap.get(e).has(t)&&(this._funcMap.get(e).delete(t),0===this._funcMap.get(e).size&&this._funcMap.delete(e),!0)}},{key:"_pack",value:function(e,t,n){return function(){try{t.apply(n,Array.from(arguments))}catch(s){var i=Object.values(C).indexOf(e);if(-1!==i){var r=Object.keys(C)[i];De.warn("接入侧事件 TIM.EVENT.".concat(r," 对应的回调函数逻辑存在问题,请检查!"),s)}var a=new da(No);a.setMessage("eventName:".concat(e)).setMoreMessage(s.message).end()}}}}]),e}(),Zu=function(){function e(t){n(this,e);var i={SDKAppID:t.SDKAppID,unlimitedAVChatRoom:t.unlimitedAVChatRoom||!1,scene:t.scene||"",oversea:t.oversea||!1,instanceID:St(),devMode:t.devMode||!1,proxyServer:t.proxyServer||void 0};this._moduleManager=new Ju(i),this._safetyCallbackFactory=new Qu}return r(e,[{key:"isReady",value:function(){return this._moduleManager.isReady()}},{key:"onError",value:function(e){this._moduleManager.onError(e)}},{key:"login",value:function(e){return this._moduleManager.login(),this._moduleManager.getModule($t).login(e)}},{key:"logout",value:function(){var e=this;return this._moduleManager.getModule($t).logout().then((function(t){return e._moduleManager.reset(),t}))}},{key:"destroy",value:function(){var e=this;return this.logout().finally((function(){e._moduleManager.stopTimer(),e._moduleManager.getModule(hn).terminate(),e._moduleManager.getModule(cn).dealloc();var t=e._moduleManager.getOuterEmitterInstance(),n=e._moduleManager.getModule(Zt);t.emit(C.SDK_DESTROY,{SDKAppID:n.getSDKAppID()})}))}},{key:"on",value:function(e,t,n){e===C.GROUP_SYSTEM_NOTICE_RECEIVED&&De.warn("!!!TIM.EVENT.GROUP_SYSTEM_NOTICE_RECEIVED v2.6.0起弃用,为了更好的体验,请在 TIM.EVENT.MESSAGE_RECEIVED 事件回调内接收处理群系统通知,详细请参考:https://web.sdk.qcloud.com/im/doc/zh-cn/Message.html#.GroupSystemNoticePayload"),De.debug("on","eventName:".concat(e)),this._moduleManager.getOuterEmitterInstance().on(e,this._safetyCallbackFactory.defense(e,t,n),n)}},{key:"once",value:function(e,t,n){De.debug("once","eventName:".concat(e)),this._moduleManager.getOuterEmitterInstance().once(e,this._safetyCallbackFactory.defenseOnce(e,t,n),n||this)}},{key:"off",value:function(e,t,n,i){De.debug("off","eventName:".concat(e));var r=this._safetyCallbackFactory.find(e,t);null!==r&&(this._moduleManager.getOuterEmitterInstance().off(e,r,n,i),this._safetyCallbackFactory.delete(e,t))}},{key:"registerPlugin",value:function(e){this._moduleManager.getModule(on).registerPlugin(e)}},{key:"setLogLevel",value:function(e){e<=0&&(console.log([""," ________  ______  __       __  __       __  ________  _______","|        \\|      \\|  \\     /  \\|  \\  _  |  \\|        \\|       \\"," \\$$$$$$$$ \\$$$$$$| $$\\   /  $$| $$ / \\ | $$| $$$$$$$$| $$$$$$$\\","   | $$     | $$  | $$$\\ /  $$$| $$/  $\\| $$| $$__    | $$__/ $$","   | $$     | $$  | $$$$\\  $$$$| $$  $$$\\ $$| $$  \\   | $$    $$","   | $$     | $$  | $$\\$$ $$ $$| $$ $$\\$$\\$$| $$$$$   | $$$$$$$\\","   | $$    _| $$_ | $$ \\$$$| $$| $$$$  \\$$$$| $$_____ | $$__/ $$","   | $$   |   $$ \\| $$  \\$ | $$| $$$    \\$$$| $$     \\| $$    $$","    \\$$    \\$$$$$$ \\$$      \\$$ \\$$      \\$$ \\$$$$$$$$ \\$$$$$$$","",""].join("\n")),console.log("%cIM 智能客服,随时随地解决您的问题 →_→ https://cloud.tencent.com/act/event/smarty-service?from=im-doc","color:#006eff"),console.log("%c从v2.11.2起,SDK 支持了 WebSocket,小程序需要添加受信域名!升级指引: https://web.sdk.qcloud.com/im/doc/zh-cn/tutorial-02-upgradeguideline.html","color:#ff0000"),console.log(["","参考以下文档,会更快解决问题哦!(#^.^#)\n","SDK 更新日志: https://cloud.tencent.com/document/product/269/38492\n","SDK 接口文档: https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html\n","常见问题: https://web.sdk.qcloud.com/im/doc/zh-cn/tutorial-01-faq.html\n","反馈问题?戳我提 issue: https://github.com/tencentyun/TIMSDK/issues\n","如果您需要在生产环境关闭上面的日志,请 tim.setLogLevel(1)\n"].join("\n"))),De.setLevel(e)}},{key:"createTextMessage",value:function(e){return this._moduleManager.getModule(Wt).createTextMessage(e)}},{key:"createTextAtMessage",value:function(e){return this._moduleManager.getModule(Wt).createTextMessage(e)}},{key:"createImageMessage",value:function(e){return this._moduleManager.getModule(Wt).createImageMessage(e)}},{key:"createAudioMessage",value:function(e){return this._moduleManager.getModule(Wt).createAudioMessage(e)}},{key:"createVideoMessage",value:function(e){return this._moduleManager.getModule(Wt).createVideoMessage(e)}},{key:"createCustomMessage",value:function(e){return this._moduleManager.getModule(Wt).createCustomMessage(e)}},{key:"createFaceMessage",value:function(e){return this._moduleManager.getModule(Wt).createFaceMessage(e)}},{key:"createFileMessage",value:function(e){return this._moduleManager.getModule(Wt).createFileMessage(e)}},{key:"createLocationMessage",value:function(e){return this._moduleManager.getModule(Wt).createLocationMessage(e)}},{key:"createMergerMessage",value:function(e){return this._moduleManager.getModule(Wt).createMergerMessage(e)}},{key:"downloadMergerMessage",value:function(e){return e.type!==E.MSG_MERGER?fs(new cs({code:Ri.MESSAGE_MERGER_TYPE_INVALID,message:fr})):xt(e.payload.downloadKey)?fs(new cs({code:Ri.MESSAGE_MERGER_KEY_INVALID,message:pr})):this._moduleManager.getModule(Wt).downloadMergerMessage(e).catch((function(e){return fs(new cs({code:Ri.MESSAGE_MERGER_DOWNLOAD_FAIL,message:gr}))}))}},{key:"createForwardMessage",value:function(e){return this._moduleManager.getModule(Wt).createForwardMessage(e)}},{key:"sendMessage",value:function(e,t){return e instanceof ns?this._moduleManager.getModule(Wt).sendMessageInstance(e,t):fs(new cs({code:Ri.MESSAGE_SEND_NEED_MESSAGE_INSTANCE,message:zi}))}},{key:"callExperimentalAPI",value:function(e,t){return"handleGroupInvitation"===e?this._moduleManager.getModule(Yt).handleGroupInvitation(t):fs(new cs({code:Ri.INVALID_OPERATION,message:$r}))}},{key:"revokeMessage",value:function(e){return this._moduleManager.getModule(Wt).revokeMessage(e)}},{key:"resendMessage",value:function(e){return this._moduleManager.getModule(Wt).resendMessage(e)}},{key:"deleteMessage",value:function(e){return this._moduleManager.getModule(Wt).deleteMessage(e)}},{key:"getMessageList",value:function(e){return this._moduleManager.getModule(Qt).getMessageList(e)}},{key:"setMessageRead",value:function(e){return this._moduleManager.getModule(Qt).setMessageRead(e)}},{key:"getConversationList",value:function(e){return this._moduleManager.getModule(Qt).getConversationList(e)}},{key:"getConversationProfile",value:function(e){return this._moduleManager.getModule(Qt).getConversationProfile(e)}},{key:"deleteConversation",value:function(e){return this._moduleManager.getModule(Qt).deleteConversation(e)}},{key:"pinConversation",value:function(e){return this._moduleManager.getModule(Qt).pinConversation(e)}},{key:"setAllMessageRead",value:function(e){return this._moduleManager.getModule(Qt).setAllMessageRead(e)}},{key:"setMessageRemindType",value:function(e){return this._moduleManager.getModule(Qt).setMessageRemindType(e)}},{key:"getMyProfile",value:function(){return this._moduleManager.getModule(zt).getMyProfile()}},{key:"getUserProfile",value:function(e){return this._moduleManager.getModule(zt).getUserProfile(e)}},{key:"updateMyProfile",value:function(e){return this._moduleManager.getModule(zt).updateMyProfile(e)}},{key:"getBlacklist",value:function(){return this._moduleManager.getModule(zt).getLocalBlacklist()}},{key:"addToBlacklist",value:function(e){return this._moduleManager.getModule(zt).addBlacklist(e)}},{key:"removeFromBlacklist",value:function(e){return this._moduleManager.getModule(zt).deleteBlacklist(e)}},{key:"getFriendList",value:function(){var e=this._moduleManager.getModule(Xt);return e?e.getLocalFriendList():fs({code:Ri.CANNOT_FIND_MODULE,message:zr})}},{key:"addFriend",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.addFriend(e):fs({code:Ri.CANNOT_FIND_MODULE,message:zr})}},{key:"deleteFriend",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.deleteFriend(e):fs({code:Ri.CANNOT_FIND_MODULE,message:zr})}},{key:"checkFriend",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.checkFriend(e):fs({code:Ri.CANNOT_FIND_MODULE,message:zr})}},{key:"getFriendProfile",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.getFriendProfile(e):fs({code:Ri.CANNOT_FIND_MODULE,message:zr})}},{key:"updateFriend",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.updateFriend(e):fs({code:Ri.CANNOT_FIND_MODULE,message:zr})}},{key:"getFriendApplicationList",value:function(){var e=this._moduleManager.getModule(Xt);return e?e.getLocalFriendApplicationList():fs({code:Ri.CANNOT_FIND_MODULE,message:zr})}},{key:"acceptFriendApplication",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.acceptFriendApplication(e):fs({code:Ri.CANNOT_FIND_MODULE,message:zr})}},{key:"refuseFriendApplication",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.refuseFriendApplication(e):fs({code:Ri.CANNOT_FIND_MODULE,message:zr})}},{key:"deleteFriendApplication",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.deleteFriendApplication(e):fs({code:Ri.CANNOT_FIND_MODULE,message:zr})}},{key:"setFriendApplicationRead",value:function(){var e=this._moduleManager.getModule(Xt);return e?e.setFriendApplicationRead():fs({code:Ri.CANNOT_FIND_MODULE,message:zr})}},{key:"getFriendGroupList",value:function(){var e=this._moduleManager.getModule(Xt);return e?e.getLocalFriendGroupList():fs({code:Ri.CANNOT_FIND_MODULE,message:zr})}},{key:"createFriendGroup",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.createFriendGroup(e):fs({code:Ri.CANNOT_FIND_MODULE,message:zr})}},{key:"deleteFriendGroup",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.deleteFriendGroup(e):fs({code:Ri.CANNOT_FIND_MODULE,message:zr})}},{key:"addToFriendGroup",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.addToFriendGroup(e):fs({code:Ri.CANNOT_FIND_MODULE,message:zr})}},{key:"removeFromFriendGroup",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.removeFromFriendGroup(e):fs({code:Ri.CANNOT_FIND_MODULE,message:zr})}},{key:"renameFriendGroup",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.renameFriendGroup(e):fs({code:Ri.CANNOT_FIND_MODULE,message:zr})}},{key:"getGroupList",value:function(e){return this._moduleManager.getModule(Yt).getGroupList(e)}},{key:"getGroupProfile",value:function(e){return this._moduleManager.getModule(Yt).getGroupProfile(e)}},{key:"createGroup",value:function(e){return this._moduleManager.getModule(Yt).createGroup(e)}},{key:"dismissGroup",value:function(e){return this._moduleManager.getModule(Yt).dismissGroup(e)}},{key:"updateGroupProfile",value:function(e){return this._moduleManager.getModule(Yt).updateGroupProfile(e)}},{key:"joinGroup",value:function(e){return this._moduleManager.getModule(Yt).joinGroup(e)}},{key:"quitGroup",value:function(e){return this._moduleManager.getModule(Yt).quitGroup(e)}},{key:"searchGroupByID",value:function(e){return this._moduleManager.getModule(Yt).searchGroupByID(e)}},{key:"getGroupOnlineMemberCount",value:function(e){return this._moduleManager.getModule(Yt).getGroupOnlineMemberCount(e)}},{key:"changeGroupOwner",value:function(e){return this._moduleManager.getModule(Yt).changeGroupOwner(e)}},{key:"handleGroupApplication",value:function(e){return this._moduleManager.getModule(Yt).handleGroupApplication(e)}},{key:"initGroupAttributes",value:function(e){return this._moduleManager.getModule(Yt).initGroupAttributes(e)}},{key:"setGroupAttributes",value:function(e){return this._moduleManager.getModule(Yt).setGroupAttributes(e)}},{key:"deleteGroupAttributes",value:function(e){return this._moduleManager.getModule(Yt).deleteGroupAttributes(e)}},{key:"getGroupAttributes",value:function(e){return this._moduleManager.getModule(Yt).getGroupAttributes(e)}},{key:"getGroupMemberList",value:function(e){return this._moduleManager.getModule(Jt).getGroupMemberList(e)}},{key:"getGroupMemberProfile",value:function(e){return this._moduleManager.getModule(Jt).getGroupMemberProfile(e)}},{key:"addGroupMember",value:function(e){return this._moduleManager.getModule(Jt).addGroupMember(e)}},{key:"deleteGroupMember",value:function(e){return this._moduleManager.getModule(Jt).deleteGroupMember(e)}},{key:"setGroupMemberMuteTime",value:function(e){return this._moduleManager.getModule(Jt).setGroupMemberMuteTime(e)}},{key:"setGroupMemberRole",value:function(e){return this._moduleManager.getModule(Jt).setGroupMemberRole(e)}},{key:"setGroupMemberNameCard",value:function(e){return this._moduleManager.getModule(Jt).setGroupMemberNameCard(e)}},{key:"setGroupMemberCustomField",value:function(e){return this._moduleManager.getModule(Jt).setGroupMemberCustomField(e)}}]),e}(),ec={login:"login",logout:"logout",destroy:"destroy",on:"on",off:"off",ready:"ready",setLogLevel:"setLogLevel",joinGroup:"joinGroup",quitGroup:"quitGroup",registerPlugin:"registerPlugin",getGroupOnlineMemberCount:"getGroupOnlineMemberCount"};function tc(e,t){if(e.isReady()||void 0!==ec[t])return!0;var n=new cs({code:Ri.SDK_IS_NOT_READY,message:"".concat(t," ").concat(Kr,",请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/module-EVENT.html#.SDK_READY")});return e.onError(n),!1}var nc={},ic={create:function(e){var t=0;if(qe(e.SDKAppID))t=e.SDKAppID;else if(De.warn("TIM.create SDKAppID 的类型应该为 Number,请修改!"),t=parseInt(e.SDKAppID),isNaN(t))return De.error("TIM.create failed. 解析 SDKAppID 失败,请检查传参!"),null;if(t&&nc[t])return nc[t];De.log("TIM.create");var n=new Zu(s({},e,{SDKAppID:t}));n.on(C.SDK_DESTROY,(function(e){nc[e.data.SDKAppID]=null,delete nc[e.data.SDKAppID]}));var i=function(e){var t=Object.create(null);return Object.keys(Ht).forEach((function(n){if(e[n]){var i=Ht[n],r=new I;t[i]=function(){var t=Array.from(arguments);return r.use((function(t,i){return tc(e,n)?i():fs(new cs({code:Ri.SDK_IS_NOT_READY,message:"".concat(n," ").concat(Kr,"。")}))})).use((function(e,t){if(!0===Dt(e,Vt[n],i))return t()})).use((function(t,i){return e[n].apply(e,t)})),r.run(t)}}})),t}(n);return nc[t]=i,De.log("TIM.create ok"),i}};return ic.TYPES=E,ic.EVENT=C,ic.VERSION="2.17.1",De.log("TIM.VERSION: ".concat(ic.VERSION)),ic}))}).call(this,n("c8ba"))},"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)}))},"82f8d":function(e,t,n){var i=n("71e4"),r=e.exports={WebVTT:n("9a1d"),VTTCue:n("d294"),VTTRegion:n("6af7")};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()},"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}},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}))},"8b09":function(e,t,n){var i=n("74e8");i("Int16",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},"8b5b":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("a9e3"),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("692b")),a=i(n("71e4")),o=i(n("0db2")),s=n("0d7d"),u="0.19.2",c=function(e){return!!e&&"object"===typeof e},l=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]):c(t[i])&&c(n[i])?t[i]=e(t[i],n[i]):t[i]=n[i]})),t}),{})},d=function(e){return Object.keys(e).map((function(t){return e[t]}))},h=function(e,t){for(var n=[],i=e;i<t;i++)n.push(i);return n},f=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},p=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}),[])},m={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"},v=function(e){var t=e.baseUrl,n=void 0===t?"":t,i=e.source,a=void 0===i?"":i,o=e.range,s=void 0===o?"":o,u=e.indexRange,c=void 0===u?"":u,l={uri:a,resolvedUri:(0,r.default)(n||"",a)};if(s||c){var d=s||c,h=d.split("-"),f=parseInt(h[0],10),p=parseInt(h[1],10);l.byterange={length:p-f+1,offset:f}}return l},y=function(e){var t=e.offset+e.length-1;return e.offset+"-"+t},_=function(e){return e&&"number"!==typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e},b={static:function(e){var t=e.duration,n=e.timescale,i=void 0===n?1:n,r=e.sourceDuration,a=e.periodDuration,o=_(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.start,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=_(e.endNumber),p=(t+n)/1e3,g=i+u,m=p+l,v=m-g,y=Math.ceil(v*a/o),b=Math.floor((p-g-h)*a/o),T=Math.floor((p-g)*a/o);return{start:Math.max(0,b),end:"number"===typeof f?f:Math.min(y,T)}}},T=function(e){return function(t,n){var i=e.duration,r=e.timescale,a=void 0===r?1:r,o=e.periodIndex,s=e.startNumber,u=void 0===s?1:s;return{number:u+t,duration:i/a,timeline:o,time:n*i}}},S=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=b[t](e),u=s.start,c=s.end,l=h(u,c).map(T(e));if("static"===t){var d=l.length-1,f="number"===typeof a?a:o;l[d].duration=f-n/r*d}return l},w=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.duration;if(!t)throw new Error(m.NO_BASE_URL);var u=v({baseUrl:t,source:i.sourceURL,range:i.range}),c=v({baseUrl:t,source:t,indexRange:o});if(c.map=u,s){var l=S(e);l.length&&(c.duration=l[0].duration,c.timeline=l[0].timeline)}else r&&(c.duration=r,c.timeline=0);return c.number=0,[c]},k=function(e,t,n){for(var i=e.sidx.map?e.sidx.map:null,r=e.sidx.duration,a=e.timeline||0,o=e.sidx.byterange,s=o.offset+o.length,u=t.timescale,c=t.references.filter((function(e){return 1!==e.referenceType})),l=[],d=e.endList?"static":"dynamic",h=s+t.firstOffset,f=0;f<c.length;f++){var p=t.references[f],g=p.referencedSize,m=p.subsegmentDuration,v=h+g-1,y=h+"-"+v,_={baseUrl:n,timescale:u,timeline:a,periodIndex:a,duration:m,sourceDuration:r,indexRange:y,type:d},b=w(_)[0];i&&(b.map=i),l.push(b),h+=g}return e.segments=l,e};t.addSidxSegmentsToPlaylist=k;var M=function(e){return e&&e.uri+"-"+y(e.byterange)};t.generateSidxKey=M;var C=function(e){var t=d(e.reduce((function(e,t){var n,i=t.attributes.id+(t.attributes.lang||"");e[i]?(t.segments[0]&&(t.segments[0].discontinuity=!0),(n=e[i].segments).push.apply(n,t.segments),t.attributes.contentProtection&&(e[i].attributes.contentProtection=t.attributes.contentProtection)):e[i]=t;return e}),{}));return t.map((function(e){return e.discontinuityStarts=g(e.segments,"discontinuity"),e}))},E=function(e,t){var n=M(e.sidx),i=n&&t[n]&&t[n].sidx;return i&&k(e,i,e.sidx.resolvedUri),e},I=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var n in e)e[n]=E(e[n],t);return e},A=function(e,t){var n,i=e.attributes,r=e.segments,a=e.sidx,o={attributes:(n={NAME:i.id,BANDWIDTH:i.bandwidth,CODECS:i.codecs},n["PROGRAM-ID"]=1,n),uri:"",endList:"static"===i.type,timeline:i.periodIndex,resolvedUri:"",targetDuration:i.duration,segments:r,mediaSequence:r.length?r[0].number:1};return i.contentProtection&&(o.contentProtection=i.contentProtection),a&&(o.sidx=a),t&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o},O=function(e){var t,n=e.attributes,i=e.segments;"undefined"===typeof i&&(i=[{uri:n.baseUrl,timeline:n.periodIndex,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var r=(t={NAME:n.id,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t);return n.codecs&&(r.CODECS=n.codecs),{attributes:r,uri:"",endList:"static"===n.type,timeline:n.periodIndex,resolvedUri:n.baseUrl||"",targetDuration:n.duration,segments:i,mediaSequence:i.length?i[0].number:1}},x=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=E(A(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},D=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(E(O(n),t)),e}),{})},L=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}),{})},N=function(e){var t,n=e.attributes,i=e.segments,r=e.sidx,a={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.periodIndex,resolvedUri:"",targetDuration:n.duration,segments:i,mediaSequence:i.length?i[0].number:1};return n.contentProtection&&(a.contentProtection=n.contentProtection),r&&(a.sidx=r),a},P=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType},R=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType},j=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},U=function(e,t,n){var i;if(void 0===n&&(n={}),!e.length)return{};var r=e[0].attributes,a=r.sourceDuration,o=r.type,s=r.suggestedPresentationDelay,u=r.minimumUpdatePeriod,c=C(e.filter(P)).map(N),l=C(e.filter(R)),d=e.filter(j),h=e.map((function(e){return e.attributes.captionServices})).filter(Boolean),f={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(i={AUDIO:{},VIDEO:{}},i["CLOSED-CAPTIONS"]={},i.SUBTITLES={},i),uri:"",duration:a,playlists:I(c,n)};u>=0&&(f.minimumUpdatePeriod=1e3*u),t&&(f.locations=t),"dynamic"===o&&(f.suggestedPresentationDelay=s);var p=0===f.playlists.length;return l.length&&(f.mediaGroups.AUDIO.audio=x(l,n,p)),d.length&&(f.mediaGroups.SUBTITLES.subs=D(d,n)),h.length&&(f.mediaGroups["CLOSED-CAPTIONS"].cc=L(h)),f};t.toM3u8=U;var F=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.start,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,g=p-f;return Math.ceil((g*s-t)/n)},B=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.periodIndex,f=[],p=-1,g=0;g<t.length;g++){var m=t[g],v=m.d,y=m.r||0,_=m.t||0;p<0&&(p=_),_&&_>p&&(p=_);var b=void 0;if(y<0){var T=g+1;b=T===t.length?"dynamic"===n&&r>0&&o.indexOf("$Number$")>0?F(e,p,v):(s*c-p)/v:(t[T].t-p)/v}else b=y+1;var S=d+f.length+b,w=d+f.length;while(w<S)f.push({number:w,duration:v/c,time:p,timeline:h}),p+=v,w++}return f},G=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,q=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)}},V=function(e,t){return e.replace(G,q(t))},H=function(e,t){return e.duration||t?e.duration?S(e):B(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodIndex}]},$=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},i=e.initialization,a=void 0===i?{sourceURL:"",range:""}:i,o=v({baseUrl:e.baseUrl,source:V(a.sourceURL,n),range:a.range}),s=H(e,t);return s.map((function(t){n.Number=t.number,n.Time=t.time;var i=V(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}))},W=function(e,t){var n=e.baseUrl,i=e.initialization,r=void 0===i?{}:i,a=v({baseUrl:n,source:r.sourceURL,range:r.range}),o=v({baseUrl:n,source:t.media,range:t.mediaRange});return o.map=a,o},z=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(m.SEGMENT_TIME_UNSPECIFIED);var o,s=r.map((function(t){return W(e,t)}));n&&(o=S(e)),t&&(o=B(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},K=function(e){var t,n,i=e.attributes,r=e.segmentInfo;r.template?(n=$,t=l(i,r.template)):r.base?(n=w,t=l(i,r.base)):r.list&&(n=z,t=l(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,d=void 0===c?1:c;t.duration=u/d}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},Y=function(e){return e.map(K)};t.toPlaylists=Y;var X=function(e,t){return p(e.childNodes).filter((function(e){var n=e.tagName;return n===t}))},J=function(e){return e.textContent.trim()},Q=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)},Z=function(e){var t=/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/;return t.test(e)&&(e+="Z"),Date.parse(e)},ee={mediaPresentationDuration:function(e){return Q(e)},availabilityStartTime:function(e){return Z(e)/1e3},minimumUpdatePeriod:function(e){return Q(e)},suggestedPresentationDelay:function(e){return Q(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return Q(e)},start:function(e){return Q(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)?Q(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}},te=function(e){return e&&e.attributes?p(e.attributes).reduce((function(e,t){var n=ee[t.name]||ee.DEFAULT;return e[t.name]=n(t.value),e}),{}):{}},ne={"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"},ie=function(e,t){return t.length?f(e.map((function(e){return t.map((function(t){return(0,r.default)(e,J(t))}))}))):e},re=function(e){var t=X(e,"SegmentTemplate")[0],n=X(e,"SegmentList")[0],i=n&&X(n,"SegmentURL").map((function(e){return l({tag:"SegmentURL"},te(e))})),r=X(e,"SegmentBase")[0],a=n||t,o=a&&X(a,"SegmentTimeline")[0],s=n||r||t,u=s&&X(s,"Initialization")[0],c=t&&te(t);c&&u?c.initialization=u&&te(u):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});var d={template:c,segmentTimeline:o&&X(o,"S").map((function(e){return te(e)})),list:n&&l(te(n),{segmentUrls:i,initialization:te(u)}),base:r&&l(te(r),{initialization:te(u)})};return Object.keys(d).forEach((function(e){d[e]||delete d[e]})),d},ae=function(e,t,n){return function(i){var r=X(i,"BaseURL"),a=ie(t,r),o=l(e,te(i)),s=re(i);return a.map((function(e){return{segmentInfo:l(n,s),attributes:l(o,{baseUrl:e})}}))}},oe=function(e){return e.reduce((function(e,t){var n=te(t),i=ne[n.schemeIdUri];if(i){e[i]={attributes:n};var r=X(t,"cenc:pssh")[0];if(r){var a=J(r),s=a&&(0,o.default)(a);e[i].pssh=s}}return e}),{})},se=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}))}},ue=function(e,t,n){return function(i){var r=te(i),a=ie(t,X(i,"BaseURL")),o=X(i,"Role")[0],s={role:te(o)},u=l(e,r,s),c=X(i,"Accessibility")[0],d=se(te(c));d&&(u=l(u,{captionServices:d}));var h=X(i,"Label")[0];if(h&&h.childNodes.length){var p=h.childNodes[0].nodeValue.trim();u=l(u,{label:p})}var g=oe(X(i,"ContentProtection"));Object.keys(g).length&&(u=l(u,{contentProtection:g}));var m=re(i),v=X(i,"Representation"),y=l(n,m);return f(v.map(ae(u,a,y)))}},ce=function(e,t){return function(n,i){var r=ie(t,X(n.node,"BaseURL")),o=parseInt(n.attributes.id,10),s=a.default.isNaN(o)?i:o,u=l(e,{periodIndex:s,periodStart:n.attributes.start});"number"===typeof n.attributes.duration&&(u.periodDuration=n.attributes.duration);var c=X(n.node,"AdaptationSet"),d=re(n.node);return f(c.map(ue(u,r,d)))}},le=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},de=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=X(e,"Period");if(!c.length)throw new Error(m.INVALID_NUMBER_OF_PERIOD);var l=X(e,"Location"),d=te(e),h=ie([r],X(e,"BaseURL"));d.type=d.type||"static",d.sourceDuration=d.mediaPresentationDuration||0,d.NOW=o,d.clientOffset=u,l.length&&(d.locations=l.map(J));var p=[];return c.forEach((function(e,t){var n=te(e),i=p[t-1];n.start=le({attributes:n,priorPeriodAttributes:i?i.attributes:null,mpdType:d.type}),p.push({node:e,attributes:n})})),{locations:d.locations,representationInfo:f(p.map(ce(d,h)))}};t.inheritAttributes=de;var he=function(e){if(""===e)throw new Error(m.DASH_EMPTY_MANIFEST);var t,n,i=new s.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(m.DASH_INVALID_XML);return n};t.stringToMpdXml=he;var fe=function(e){var t=X(e,"UTCTiming")[0];if(!t)return null;var n=te(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(m.UNSUPPORTED_UTC_TIMING_SCHEME)}return n},pe=u;t.VERSION=pe;var ge=function(e,t){void 0===t&&(t={});var n=de(he(e),t),i=Y(n.representationInfo);return U(i,n.locations,t.sidxMapping)};t.parse=ge;var me=function(e){return fe(he(e))};t.parseUTCTiming=me},"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,g=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*g}},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,g=0,m=e;return h&&(f=f.replace("y",""),-1===f.indexOf("g")&&(f+="g"),m=String(e).slice(d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==e[d.lastIndex-1])&&(p="(?: "+p+")",m=" "+m,g++),n=new RegExp("^(?:"+p+")",f)),l&&(n=new RegExp("^"+p+"$(?!\\s)",f)),u&&(t=d.lastIndex),r=a.call(h?n:d,m),h?r?(r.input=r.input.slice(g),r[0]=r[0].slice(g),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")},"94a6":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("df9e"),a=n("4f07"),o=n("c1f7"),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 g=o[p],m=d+1>=g.firstChunk&&(p+1>=o.length||d+1<o[p+1].firstChunk);if(m){f=g.samplesPerChunk;break}}for(var v=i[d],y=0;y<f;y++){var _=u[c.length],b=!n.length;n.length&&-1!==n.indexOf(c.length+1)&&(b=!0);for(var T={keyframe:b,start:v,end:v+_},S=0;S<a.length;S++){var w=a[S],k=w.sampleCount,M=w.sampleDelta;if(c.length<=k){var C=c.length?c[c.length-1].timestamp:0;T.timestamp=C+M/t*1e3,T.duration=M;break}}c.push(T),v+=_}}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],g=h[2]>>4,m=(15&h[2])>>1,v=(15&h[2])>>3,y=h[3],_=h[4],b=h[5];n+="."+(0,r.padStart)(f,2,"0"),n+="."+(0,r.padStart)(p,2,"0"),n+="."+(0,r.padStart)(g,2,"0"),n+="."+(0,r.padStart)(m,2,"0"),n+="."+(0,r.padStart)(y,2,"0"),n+="."+(0,r.padStart)(_,2,"0"),n+="."+(0,r.padStart)(b,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 g=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 g=h[0],m=0===g?12:20;n.timescale=(h[m]<<24|h[m+1]<<16|h[m+2]<<8|h[m+3])>>>0}var v=l(a,["minf","stbl"])[0],y=l(v,["stsd"])[0],_=(0,r.bytesToNumber)(y.subarray(4,8)),b=8;while(_--){var T=(0,r.bytesToNumber)(y.subarray(b,b+4)),S=y.subarray(b+4,b+4+T);p(n,S),b+=4+T}t&&(n.frameTable=f(v,n.timescale)),i.push(n)})),i};t.parseTracks=g;var m=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=m},"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},"963e":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},"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=b;var d="suspendedStart",h="suspendedYield",f="executing",p="completed",g={},m={};m[o]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(D([])));y&&y!==i&&r.call(y,o)&&(m=y);var _=k.prototype=S.prototype=Object.create(m);w.prototype=_.constructor=k,k.constructor=w,k[u]=w.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===w||"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(_),e},l.awrap=function(e){return{__await:e}},M(C.prototype),C.prototype[s]=function(){return this},l.AsyncIterator=C,l.async=function(e,t,n,i){var r=new C(b(e,t,n,i));return l.isGeneratorFunction(t)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},M(_),_[u]="Generator",_[o]=function(){return this},_.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=D,x.prototype={constructor:x,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(O),!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,g):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),g},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),O(n),g}},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;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:D(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=n),g}}}function b(e,t,n,i){var r=t&&t.prototype instanceof S?t:S,a=Object.create(r.prototype),o=new x(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 S(){}function w(){}function k(){}function M(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function C(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=I(o,n);if(s){if(s===g)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===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=p,n.method="throw",n.arg=u.arg)}}}function I(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,I(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=T(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,g;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,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function A(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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function D(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")())},"970b":function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=n},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"),g=n("825a"),m=n("861d"),v=n("7c73"),y=n("5c6c"),_=n("9a1f"),b=n("35a1"),T=n("b622"),S=r("fetch"),w=r("Headers"),k=T("iterator"),M="URLSearchParams",C=M+"Iterator",E=l.set,I=l.getterFor(M),A=l.getterFor(C),O=/\+/g,x=Array(4),D=function(e){return x[e-1]||(x[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},L=function(e){try{return decodeURIComponent(e)}catch(t){return e}},N=function(e){var t=e.replace(O," "),n=4;try{return decodeURIComponent(t)}catch(i){while(n)t=t.replace(D(n--),L);return t}},P=/[!'()~]|%20/g,R={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},j=function(e){return R[e]},U=function(e){return encodeURIComponent(e).replace(P,j)},F=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:N(i.shift()),value:N(i.join("="))}))}},B=function(e){this.entries.length=0,F(this.entries,e)},G=function(e,t){if(e<t)throw TypeError("Not enough arguments")},q=c((function(e,t){E(this,{type:C,iterator:_(I(e).entries),kind:t})}),"Iterator",(function(){var e=A(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,M);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:M,entries:f,updateURL:function(){},updateSearchParams:B}),void 0!==c)if(m(c))if(e=b(c),"function"===typeof e){t=e.call(c),n=t.next;while(!(i=n.call(t)).done){if(r=_(g(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 F(f,"string"===typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},H=V.prototype;s(H,{append:function(e,t){G(arguments.length,2);var n=I(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){G(arguments.length,1);var t=I(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){G(arguments.length,1);for(var t=I(this).entries,n=e+"",i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){G(arguments.length,1);for(var t=I(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){G(arguments.length,1);var t=I(this).entries,n=e+"",i=0;while(i<t.length)if(t[i++].key===n)return!0;return!1},set:function(e,t){G(arguments.length,1);for(var n,i=I(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=I(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=I(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 q(this,"keys")},values:function(){return new q(this,"values")},entries:function(){return new q(this,"entries")}},{enumerable:!0}),o(H,k,H.entries),o(H,"toString",(function(){var e,t=I(this).entries,n=[],i=0;while(i<t.length)e=t[i++],n.push(U(e.key)+"="+U(e.value));return n.join("&")}),{enumerable:!0}),u(V,M),i({global:!0,forced:!a},{URLSearchParams:V}),a||"function"!=typeof S||"function"!=typeof w||i({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,i,r=[e];return arguments.length>1&&(t=arguments[1],m(t)&&(n=t.body,p(n)===M&&(i=t.headers?new w(t.headers):new w,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)),S.apply(this,r)}}),e.exports={URLSearchParams:V,getState:I}},"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"),g=9007199254740991,m="Maximum allowed index exceeded",v=f>=51||!r((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),y=d("concat"),_=function(e){if(!o(e))return!1;var t=e[p];return void 0!==t?!!t:a(e)},b=!v||!y;i({target:"Array",proto:!0,forced:b},{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],_(a)){if(r=u(a.length),h+r>g)throw TypeError(m);for(n=0;n<r;n++,h++)n in a&&c(d,h,a[n])}else{if(h>=g)throw TypeError(m);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)},"9a1d":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("686f"),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],u=o[1];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 g(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,g=[];while(null!==(s=n()))if("<"!==s[0])c.appendChild(e.document.createTextNode(i(s)));else{if("/"===s[1]){g.length&&g[g.length-1]===s.substr(2).replace(">","")&&(g.pop(),c=c.parentNode);continue}var m,v=o(s.substr(1,s.length-2));if(v){m=e.document.createProcessingInstruction("timestamp",v),c.appendChild(m);continue}var y=s.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(m=a(y[1],y[3]),!m)continue;if(!r(c,m))continue;if(y[2]){var _=y[2].split(".");_.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];m.style[i]=r}})),m.className=_.join(" ")}g.push(y[1]),c.appendChild(m),c=m}return u}var m=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function v(e){for(var t=0;t<m.length;t++){var n=m[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 _(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 b(){}function T(e,t,n){b.call(this),this.cue=t,this.cueDiv=g(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 S(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 w(e,t,n,i){function r(e,t){for(var r,a=new S(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 S(e),o=u),e=new S(a)}return r||a}var a=new S(t),o=t.cue,s=_(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 S(t)}var g=r(a,u);t.move(g.toCSSCompatValues(n))}function k(){}b.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},b.prototype.formatStyle=function(e,t){return 0===e?0:e+t},T.prototype=r(b.prototype),T.prototype.constructor=T,S.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}},S.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},S.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},S.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},S.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}},S.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)},S.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}},S.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?g(e,t):null};var M=.05,C="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=S.getSimpleBoxPosition(i),s=Math.round(o.height*M*100)/100,u={font:s+"px "+C};(function(){for(var n,r,s=0;s<t.length;s++)r=t[s],n=new T(e,r,u),i.appendChild(n.div),w(e,n,o,a),r.displayState=n.div,a.push(S.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(g){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(g){t.reportOrThrowError(g),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(g){t.reportOrThrowError(g),"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},"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)}))},"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}},"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,g=p>1?arguments[1]:void 0,m=void 0!==g,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(m&&p>2&&(g=s(g,arguments[2],2)),n=r(f.length),c=new(u(this))(n),t=0;n>t;t++)c[t]=m?g(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,g=Math.min,m=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),_=o(y.length),b=r(e,_),T=arguments.length;if(0===T?n=i=0:1===T?(n=0,i=_-b):(n=T-2,i=g(p(a(t),0),_-b)),_+n-i>m)throw TypeError(v);for(l=u(y,i),d=0;d<i;d++)h=b+d,h in y&&c(l,d,y[h]);if(l.length=i,n<i){for(d=b;d<_-i;d++)h=d+i,f=d+n,h in y?y[f]=y[h]:delete y[f];for(d=_;d>_-i+n;d--)delete y[d-1]}else if(n>i)for(d=_-i;d>b;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+b]=arguments[d+2];return y.length=_-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"),g=n("7b0b"),m=n("fc6a"),v=n("c04e"),y=n("5c6c"),_=n("7c73"),b=n("df75"),T=n("241c"),S=n("057f"),w=n("7418"),k=n("06cf"),M=n("9bf2"),C=n("d1e7"),E=n("9112"),I=n("6eeb"),A=n("5692"),O=n("f772"),x=n("d012"),D=n("90e3"),L=n("b622"),N=n("e538"),P=n("746f"),R=n("d44e"),j=n("69f3"),U=n("b727").forEach,F=O("hidden"),B="Symbol",G="prototype",q=L("toPrimitive"),V=j.set,H=j.getterFor(B),$=Object[G],W=r.Symbol,z=a("JSON","stringify"),K=k.f,Y=M.f,X=S.f,J=C.f,Q=A("symbols"),Z=A("op-symbols"),ee=A("string-to-symbol-registry"),te=A("symbol-to-string-registry"),ne=A("wks"),ie=r.QObject,re=!ie||!ie[G]||!ie[G].findChild,ae=s&&l((function(){return 7!=_(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=K($,t);i&&delete $[t],Y(e,t,n),i&&e!==$&&Y($,t,i)}:Y,oe=function(e,t){var n=Q[e]=_(W[G]);return V(n,{type:B,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===$&&ue(Z,t,n),p(e);var i=v(t,!0);return p(n),d(Q,i)?(n.enumerable?(d(e,F)&&e[F][i]&&(e[F][i]=!1),n=_(n,{enumerable:y(0,!1)})):(d(e,F)||Y(e,F,y(1,{})),e[F][i]=!0),ae(e,i,n)):Y(e,i,n)},ce=function(e,t){p(e);var n=m(t),i=b(n).concat(pe(n));return U(i,(function(t){s&&!de.call(n,t)||ue(e,t,n[t])})),e},le=function(e,t){return void 0===t?_(e):ce(_(e),t)},de=function(e){var t=v(e,!0),n=J.call(this,t);return!(this===$&&d(Q,t)&&!d(Z,t))&&(!(n||!d(this,t)||!d(Q,t)||d(this,F)&&this[F][t])||n)},he=function(e,t){var n=m(e),i=v(t,!0);if(n!==$||!d(Q,i)||d(Z,i)){var r=K(n,i);return!r||!d(Q,i)||d(n,F)&&n[F][i]||(r.enumerable=!0),r}},fe=function(e){var t=X(m(e)),n=[];return U(t,(function(e){d(Q,e)||d(x,e)||n.push(e)})),n},pe=function(e){var t=e===$,n=X(t?Z:m(e)),i=[];return U(n,(function(e){!d(Q,e)||t&&!d($,e)||i.push(Q[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=D(e),n=function(e){this===$&&n.call(Z,e),d(this,F)&&d(this[F],t)&&(this[F][t]=!1),ae(this,t,y(1,e))};return s&&re&&ae($,t,{configurable:!0,set:n}),oe(t,e)},I(W[G],"toString",(function(){return H(this).tag})),I(W,"withoutSetter",(function(e){return oe(D(e),e)})),C.f=de,M.f=ue,k.f=he,T.f=S.f=fe,w.f=pe,N.f=function(e){return oe(L(e),e)},s&&(Y(W[G],"description",{configurable:!0,get:function(){return H(this).description}}),o||I($,"propertyIsEnumerable",de,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:W}),U(b(ne),(function(e){P(e)})),i({target:B,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(){w.f(1)}))},{getOwnPropertySymbols:function(e){return w.f(g(e))}}),z){var ge=!u||l((function(){var e=W();return"[null]"!=z([e])||"{}"!=z({a:e})||"{}"!=z(Object(e))}));i({target:"JSON",stat:!0,forced:ge},{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,z.apply(null,r)}})}W[G][q]||E(W[G],q,W[G].valueOf),R(W,B),x[F]=!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)}))}},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 g=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 m=o.props=s(l,p.props&&p.props[c]);if(m){m=o.props=a({},m);var v=o.attrs=o.attrs||{};for(var y in m)g.props&&y in g.props||(v[y]=m[y],delete m[y])}return u(g,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 g(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 m=/\/?$/;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?b(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 _=v(null,{path:"/"});function b(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||g;return(n||"/")+a(i)+r}function S(e,t){return t===_?e===t:!!t&&(e.path&&t.path?e.path.replace(m,"")===t.path.replace(m,"")&&e.hash===t.hash&&w(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&w(e.query,t.query)&&w(e.params,t.params)))}function w(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?w(i,r):String(i)===String(r)}))}function k(e,t){return 0===e.path.replace(m,"/").indexOf(t.path.replace(m,"/"))&&(!t.hash||e.hash===t.hash)&&M(e.query,t.query)}function M(e,t){for(var n in t)if(!(n in e))return!1;return!0}var C,E=[String,Object],I=[String,Array],A={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:I,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,g=null==this.exactActiveClass?f:this.exactActiveClass,m=o.path?v(null,o,null,n):s;c[g]=S(i,m),c[p]=this.exact?c[g]:k(i,m);var y=function(e){O(e)&&(t.replace?n.replace(o):n.push(o))},_={click:O};Array.isArray(this.event)?this.event.forEach((function(e){_[e]=y})):_[this.event]=y;var b={class:c};if("a"===this.tag)b.on=_,b.attrs={href:u};else{var T=x(this.$slots.default);if(T){T.isStatic=!1;var w=T.data=a({},T.data);w.on=_;var M=T.data.attrs=a({},T.data.attrs);M.href=u}else b.on=_}return e(this.tag,b,this.$slots.default)}};function O(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 x(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=x(t.children)))return t}}function D(e){if(!D.installed||C!==e){D.installed=!0,C=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",A);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}}var L="undefined"!==typeof window;function N(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 P(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 j=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},U=ie,F=H,B=$,G=K,q=ne,V=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function H(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],g=n[5],m=n[6],v=n[7];o&&(i.push(o),o="");var y=null!=h&&null!=d&&d!==h,_="+"===m||"*"===m,b="?"===m||"*"===m,T=n[2]||s,S=p||g;i.push({name:f||r++,prefix:h||"",delimiter:T,optional:b,repeat:_,partial:y,asterisk:!!v,pattern:S?X(S):v?".*":"[^"+Y(T)+"]+?"})}}return a<e.length&&(o+=e.substr(a)),o&&i.push(o),i}function $(e,t){return K(H(e,t))}function W(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function z(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function K(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(j(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?z(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 Y(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function X(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function J(e,t){return e.keys=t,e}function Q(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 J(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("|")+")",Q(n));return J(a,t)}function te(e,t,n){return ne(H(e,n),t,n)}function ne(e,t,n){j(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+=Y(s);else{var u=Y(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=Y(n.delimiter||"/"),d=a.slice(-l.length)===l;return i||(a=(d?a.slice(0,-l.length):a)+"(?:"+l+"(?=$))?"),a+=r?"$":i&&d?"":"(?="+l+"|$)",J(new RegExp("^"+a,Q(n)),t)}function ie(e,t,n){return j(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?Z(e,t):j(e)?ee(e,t,n):te(e,t,n)}U.parse=F,U.compile=B,U.tokensToFunction=G,U.tokensToRegExp=q;var re=Object.create(null);function ae(e,t,n){try{var i=re[e]||(re[e]=U.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=U(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=P(r.path||""),c=t&&t.path||"/",l=u.path?N(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],g=r[p];if(he(g.regex,s.path,s.params))return d(g,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),g=ae(p,f,'redirect route with path "'+p+'"');return u({_normalized:!0,path:g,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 N(e,t.parent?t.parent.path:"/",!0)}var pe=Object.create(null);function ge(e){window.history.replaceState({key:Ae(),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&&Oe(e.state.key)}))}function me(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=Ae();e&&(pe[e]={x:window.pageXOffset,y:window.pageYOffset})}function ye(){var e=Ae();if(e)return pe[e]}function _e(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 be(e){return we(e.x)||we(e.y)}function Te(e){return{x:we(e.x)?e.x:window.pageXOffset,y:we(e.y)?e.y:window.pageYOffset}}function Se(e){return{x:we(e.x)?e.x:0,y:we(e.y)?e.y:0}}function we(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=Se(r),t=_e(i,r)}else be(e)&&(t=Te(e))}else n&&be(e)&&(t=Te(e));t&&window.scrollTo(t.x,t.y)}var Me=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)}(),Ce=L&&window.performance&&window.performance.now?window.performance:Date,Ee=Ie();function Ie(){return Ce.now().toFixed(3)}function Ae(){return Ee}function Oe(e){Ee=e}function xe(e,t,n){ve();var i=window.history;try{n?i.replaceState({id:t,key:Ee},"",e):(Ee=Ie(),i.pushState({id:t,key:Ee},"",e))}catch(r){window.location[n?"replace":"assign"](e)}}function De(e,t){xe(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 Ne(e){return function(t,n,i){var a=!1,o=0,s=null;Pe(e,(function(e,t,n,u){if("function"===typeof e&&void 0===e.cid){a=!0,o++;var c,l=Fe((function(t){Ue(t)&&(t=t.default),e.resolved="function"===typeof t?t:C.extend(t),n.components[u]=t,o--,o<=0&&i()})),d=Fe((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 Pe(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 je="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Ue(e){return e.__esModule||je&&"Module"===e[Symbol.toStringTag]}function Fe(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 Be=function(e,t){this.router=e,this.base=Ge(t),this.current=_,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Ge(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 qe(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=Pe(e,(function(e,i,r,a){var o=He(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 He(e,t){return"function"!==typeof e&&(e=C.extend(e)),e.options[t]}function $e(e){return Ve(e,"beforeRouteLeave",ze,!0)}function We(e){return Ve(e,"beforeRouteUpdate",ze)}function ze(e,t){if(t)return function(){return e.apply(t,arguments)}}function Ke(e,t,n){return Ve(e,"beforeRouteEnter",(function(e,i,r,a){return Ye(e,r,a,t,n)}))}function Ye(e,t,n,i,r){return function(a,o,s){return e(a,o,(function(e){s(e),"function"===typeof e&&i.push((function(){Xe(e,t.instances,n,r)}))}))}}function Xe(e,t,n,i){t[n]&&!t[n]._isBeingDestroyed?e(t[n]):i()&&setTimeout((function(){Xe(e,t,n,i)}),16)}Be.prototype.listen=function(e){this.cb=e},Be.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},Be.prototype.onError=function(e){this.errorCbs.push(e)},Be.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)})))}))},Be.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=qe(this.current.matched,e.matched),c=u.updated,l=u.deactivated,d=u.activated,h=[].concat($e(l),this.router.beforeHooks,We(c),d.map((function(e){return e.beforeEnter})),Ne(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=Ke(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()}))}))}))}))},Be.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 Je=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=Me&&n;i&&ge(t);var r=Qe(this.base);window.addEventListener("popstate",(function(n){var a=e.current,o=Qe(e.base);if(e.current!==_||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&&me(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){xe(R(i.base+n.fullPath),e.params.__id__),me(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){De(R(i.base+n.fullPath),e.params.__id__),me(i.router,n,a,!1),t&&t(n)}),n)},t.prototype.ensureURL=function(e){if(Qe(this.base)!==this.current.fullPath){var t=R(this.base+this.current.fullPath),n=this.current.params.__id__;e?xe(t,n):De(t,n)}},t.prototype.getCurrentLocation=function(){return{path:Qe(this.base),params:{__id__:++this.router.id}}},t}(Be);function Qe(e){var t=decodeURI(window.location.pathname);return e&&0===t.indexOf(e)&&(t=t.slice(e.length)),(t||"/")+g(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=Me&&n;i&&ge(t),window.addEventListener(Me?"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&&me(e.router,t,n,!0),Me||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),me(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),me(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}(Be);function et(e){var t=Qe(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){Me?xe(it(e),t):window.location.hash=e}function at(e,t){Me?De(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}(Be),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&&!Me&&!1!==e.fallback,this.fallback&&(t="hash"),L||(t="abstract"),this.mode=t,t){case"history":this.history=new Je(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 Je){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!==_&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(st.prototype,ut),st.install=D,st.version="3.0.1",t["default"]=st},a8ae:function(e,t,n){n("baa5"),n("26e9"),n("ac1f"),n("5319"),n("1276"),n("498a"),function(t){var n=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,i=/^([^\/?#]*)([^]*)$/,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}()},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,g=n("9bf2").f,m=n("58a8").trim,v="Number",y=r[v],_=y.prototype,b=u(h(_))==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=m(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 S,w=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof w&&(b?d((function(){_.valueOf.call(n)})):u(n)!=v)?c(new y(T(t)),n,w):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(","),M=0;k.length>M;M++)s(y,S=k[M])&&!s(w,S)&&g(w,S,p(y,S));w.prototype=_,_.constructor=w,o(r,v,w)}},aa99:function(e,t,n){var i=n("d4ef").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},aafa:function(e,t,n){n("a4d3"),n("e01a"),n("944a"),n("4160"),n("caad"),n("c975"),n("a434"),n("0c47"),n("23dc"),n("d3b7"),n("25f0"),n("2532"),n("159b");var i=n("970b"),r=n("5bc3");e.exports=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=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function a(e){}n.r(t),n.d(t,"default",(function(){return m}));var o=function(e){var t=this,n=["navigateTo","redirectTo","reLaunch","switchTab","navigateBack"],i={};n.forEach((function(e){i[e]=uni[e]})),n.forEach((function(n){uni[n]=function(r,a){if(!1===a)i[n](r);else{var o={action:n},s=Object.assign(o,r),u=function(e){var t=Object.assign(s,e);i[t.action](t)};e.call(t,s,u)}}}))},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";console[t]("[route-guards] "+e)},u=function(e){return Object.prototype.toString.call(e).includes("Error")},c=function(){var e=getCurrentPages(),t=e.length;if(0===t)return!1;var n=e[t-1],i={url:"/"+n.route};return i},l=function(e,t){return e.push(t),function(){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},d=function(e,t){var n=this;if(["tabBar","backbutton"].includes(e.from))return t();var i=c();if(!1===i)return t();p(this.beforeHooks,g.bind(this),(function(){t(),h.call(n,e,i)}),{to:e,from:i,uniRunRoute:t})},h=function(e,t){this.afterHooks.forEach((function(n){n(e,t)}))},f=function(e){this.errorCbs.length>0?this.errorCbs.forEach((function(t){t(e)})):s("error:"+e,"error")},p=function(e,t,n,i){var r=this,a=function a(o){o>=e.length?n.call(r):t.call(r,e[o],i,(function(e){!1!==e&&a(++o)}))};a(0)},g=function(e,t,n){var i=this;e(t.to,t.from,(function(e){try{!1===e||u(e)?f.call(i,e):"string"===typeof e||"object"===typeof e&&"string"===typeof e.url?("string"===typeof e&&(e={url:e}),t.uniRunRoute(e),h.call(i,t.to,t.from),t.to=Object.assign(t.to,e),n(!1)):n()}catch(r){f.call(i,r)}}))},m=function(){function e(){i(this,e),this.beforeHooks=[],this.afterHooks=[],this.errorCbs=[],o.call(this,d)}return r(e,[{key:"beforeEach",value:function(e){return l(this.beforeHooks,e)}},{key:"afterEach",value:function(e){return l(this.afterHooks,e)}},{key:"onError",value:function(e){return l(this.errorCbs,e)}}]),e}();m.install=a}])},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,g=c.findIndex,m=0,v=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},_=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};y.prototype={get:function(e){var t=_(this,e);if(t)return t[1]},has:function(e){return!!_(this,e)},set:function(e,t){var n=_(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(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:m++,frozen:void 0}),void 0!=i&&u(i,e[c],e,n)})),p=f(t),g=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 g(this,e,t)}}:{add:function(e){return g(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),g=0;while(i<r)p.setUint8(g++,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)}))}},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}},ae9e: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};
/*!
 * Programatically add the following
 */
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]},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},b1cb: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("df9e"),r=n("94a6"),a=n("6825"),o=n("c069"),s=n("5827"),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},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,g=n("1cdc"),m=d.MutationObserver||d.WebKitMutationObserver,v=d.process,y=d.Promise,_="process"==f(v),b=h(d,"queueMicrotask"),T=b&&b.value;T||(i=function(){var e,t;_&&(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()},_?o=function(){v.nextTick(i)}:m&&!g?(s=!0,u=document.createTextNode(""),new m(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){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */
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?m(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|b(t,n);e=u(e,i);var r=e.write(t,n);return r!==i&&(e=e.slice(0,r)),e}function g(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 m(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=g(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):g(e,t);if("Buffer"===t.type&&a(t.data))return g(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 _(e){return+e!=e&&(e=0),c.alloc(+e)}function b(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 X(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 X(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 j(this,t,n);case"utf8":case"utf-8":return D(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function S(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function w(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 M(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 C(e,t,n,i){return ee(X(t,e.length-n),e,n,i)}function E(e,t,n,i){return ee(J(t),e,n,i)}function I(e,t,n,i){return E(e,t,n,i)}function A(e,t,n,i){return ee(Z(t),e,n,i)}function O(e,t,n,i){return ee(Q(t,e.length-n),e,n,i)}function x(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function D(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 N(i)}t.Buffer=c,t.SlowBuffer=_,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=b,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)S(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)S(this,t,t+3),S(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)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?D(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 w(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return w(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 M(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return I(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(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 N(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 P(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 j(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+=Y(e[a]);return r}function U(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 F(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 B(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 G(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 q(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 H(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 $(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||F(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||F(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||F(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||F(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||F(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||F(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||F(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||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||F(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||F(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||F(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||F(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||F(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||F(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;B(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;B(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||B(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||B(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):G(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):G(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||B(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):q(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||B(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):q(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);B(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);B(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||B(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||B(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):G(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):G(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||B(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):q(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||B(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):q(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return $(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return $(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:X(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 z(e){if(e=K(e).replace(W,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function K(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Y(e){return e<16?"0"+e.toString(16):e.toString(16)}function X(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 J(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Q(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(z(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))}})},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,g,m){for(var v,y,_=a(f),b=r(_),T=i(p,g,3),S=o(b.length),w=0,k=m||s,M=t?k(f,S):n?k(f,0):void 0;S>w;w++)if((h||w in b)&&(v=b[w],y=T(v,w,_),e))if(t)M[w]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return w;case 2:u.call(M,v)}else if(l)return!1;return d?-1:c||l?l:M}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},b858: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}},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({}))}))},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")}},c069:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getId3Offset=t.getId3Size=void 0;var i=n("df9e"),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},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}))},c1f7: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},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},c22c:function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";.vjs-modal-dialog .vjs-modal-dialog-content, .video-js .vjs-modal-dialog, .vjs-button > .vjs-icon-placeholder:before, .video-js .vjs-big-play-button .vjs-icon-placeholder:before{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-button > .vjs-icon-placeholder:before, .video-js .vjs-big-play-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}.vjs-icon-play, .video-js .vjs-play-control .vjs-icon-placeholder, .video-js .vjs-big-play-button .vjs-icon-placeholder:before{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play:before, .video-js .vjs-play-control .vjs-icon-placeholder:before, .video-js .vjs-big-play-button .vjs-icon-placeholder:before{content:"\\f101"}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:"\\f102"}.vjs-icon-pause, .video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pause:before, .video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before{content:"\\f103"}.vjs-icon-volume-mute, .video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-volume-mute:before, .video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before{content:"\\f104"}.vjs-icon-volume-low, .video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-volume-low:before, .video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before{content:"\\f105"}.vjs-icon-volume-mid, .video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-volume-mid:before, .video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before{content:"\\f106"}.vjs-icon-volume-high, .video-js .vjs-mute-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-volume-high:before, .video-js .vjs-mute-control .vjs-icon-placeholder:before{content:"\\f107"}.vjs-icon-fullscreen-enter, .video-js .vjs-fullscreen-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-fullscreen-enter:before, .video-js .vjs-fullscreen-control .vjs-icon-placeholder:before{content:"\\f108"}.vjs-icon-fullscreen-exit, .video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-fullscreen-exit:before, .video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder: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"}.vjs-icon-subtitles, .video-js .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-AU) .vjs-subs-caps-button .vjs-icon-placeholder, .video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder, .video-js .vjs-subtitles-button .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-subtitles:before, .video-js .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-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before, .video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before, .video-js .vjs-subtitles-button .vjs-icon-placeholder:before{content:"\\f10c"}.vjs-icon-captions, .video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder, .video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder, .video-js .vjs-captions-button .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-captions: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, .video-js .vjs-captions-button .vjs-icon-placeholder:before{content:"\\f10d"}.vjs-icon-chapters, .video-js .vjs-chapters-button .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-chapters:before, .video-js .vjs-chapters-button .vjs-icon-placeholder: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"}.vjs-icon-circle, .vjs-seek-to-live-control .vjs-icon-placeholder, .video-js .vjs-volume-level, .video-js .vjs-play-progress{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle:before, .vjs-seek-to-live-control .vjs-icon-placeholder:before, .video-js .vjs-volume-level:before, .video-js .vjs-play-progress: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"}.vjs-icon-cancel, .video-js .vjs-control.vjs-close-button .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cancel:before, .video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before{content:"\\f115"}.vjs-icon-replay, .video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-replay:before, .video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder: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"}.vjs-icon-audio-description, .video-js .vjs-descriptions-button .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-audio-description:before, .video-js .vjs-descriptions-button .vjs-icon-placeholder:before{content:"\\f11d"}.vjs-icon-audio, .video-js .vjs-audio-button .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-audio:before, .video-js .vjs-audio-button .vjs-icon-placeholder: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"}.vjs-icon-picture-in-picture-enter, .video-js .vjs-picture-in-picture-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-picture-in-picture-enter:before, .video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before{content:"\\f121"}.vjs-icon-picture-in-picture-exit, .video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-picture-in-picture-exit:before, .video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder: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:none}.video-js *,\n.video-js *:before,\n.video-js *:after{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-fluid,\n.video-js.vjs-16-9,\n.video-js.vjs-4-3,\n.video-js.vjs-9-16,\n.video-js.vjs-1-1{width:100%;max-width:100%;height:0}.video-js.vjs-16-9{padding-top:56.25%}.video-js.vjs-4-3{padding-top:75%}.video-js.vjs-9-16{padding-top:177.7777777778%}.video-js.vjs-1-1{padding-top:100%}.video-js.vjs-fill{width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}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,\n.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:hover .vjs-big-play-button,\n.video-js .vjs-big-play-button:focus{border-color:#fff;background-color:#73859f;background-color:rgba(115,133,159,.5);transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,\n.vjs-has-started .vjs-big-play-button,\n.vjs-using-native-controls .vjs-big-play-button,\n.vjs-error .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:none;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}.vjs-menu li.vjs-menu-item:focus,\n.vjs-menu li.vjs-menu-item:hover,\n.js-focus-visible .vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:rgba(115,133,159,.5)}.vjs-menu li.vjs-selected,\n.vjs-menu li.vjs-selected:focus,\n.vjs-menu li.vjs-selected:hover,\n.js-focus-visible .vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.video-js .vjs-menu *:not(.vjs-selected):focus:not(:focus-visible),\n.js-focus-visible .vjs-menu *:not(.vjs-selected):focus:not(.focus-visible){background:none}.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,\n.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-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,\n.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,\n.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:25em}.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu,\n.vjs-menu-button-popup .vjs-menu.vjs-lock-showing{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:hover,\n.video-js .vjs-menu-button-inline:focus,\n.video-js .vjs-menu-button-inline.vjs-slider-active,\n.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:hover .vjs-menu,\n.vjs-menu-button-inline:focus .vjs-menu,\n.vjs-menu-button-inline.vjs-slider-active .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:hover .vjs-menu,\n.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,\n.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .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-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,\n.vjs-using-native-controls .vjs-control-bar,\n.vjs-error .vjs-control-bar{display:none!important}.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}.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}.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:before,\n.video-js .vjs-control:hover:before,\n.video-js .vjs-control:focus{text-shadow:0 0 1em #fff}.video-js .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-play-progress,\n.video-js .vjs-progress-holder .vjs-load-progress,\n.video-js .vjs-progress-holder .vjs-load-progress div{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-time-tooltip,\n.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .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;\n  /* iOS Safari */-webkit-touch-callout:none;\n  /* Safari */-webkit-user-select:none;\n  /* Konqueror HTML */\n  /* Firefox */-moz-user-select:none;\n  /* Internet Explorer/Edge */-ms-user-select:none;\n  /* Non-prefixed version, currently supported by Chrome and Opera */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-hover .vjs-volume-control, .video-js .vjs-volume-panel:active .vjs-volume-control, .video-js .vjs-volume-panel:focus .vjs-volume-control, .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-volume-control.vjs-slider-active{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-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, .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-volume-control.vjs-slider-active.vjs-volume-horizontal{width:5em;height:3em;margin-right:0}.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, .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-volume-control.vjs-slider-active.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:active, .video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-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,\n.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-volume-tooltip,\n.video-js .vjs-volume-control:hover .vjs-progress-holder:focus .vjs-volume-tooltip{display:block;font-size:1em;visibility:visible}.video-js .vjs-volume-vertical:hover .vjs-volume-tooltip,\n.video-js .vjs-volume-vertical:hover .vjs-progress-holder:focus .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{display:none}.vjs-audio.vjs-has-started .vjs-poster{display:block}.vjs-using-native-controls .vjs-poster{display:none}.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:not(.vjs-live) .vjs-live-control,\n.video-js.vjs-liveui .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,\n.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,\n.vjs-no-flex .vjs-current-time{display:none}.video-js .vjs-duration,\n.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-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-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-fullscreen-control{cursor:pointer;flex:none}.vjs-playback-rate > .vjs-menu-button,\n.vjs-playback-rate .vjs-playback-rate-value{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,\n.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:before,\n.vjs-loading-spinner:after{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:before,\n.vjs-seeking .vjs-loading-spinner:after,\n.vjs-waiting .vjs-loading-spinner:before,\n.vjs-waiting .vjs-loading-spinner:after{-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,\n.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,\n.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}}.vjs-chapters-button .vjs-menu ul{width:24em}.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-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,\n.video-js.vjs-layout-small .vjs-time-divider,\n.video-js.vjs-layout-small .vjs-duration,\n.video-js.vjs-layout-small .vjs-remaining-time,\n.video-js.vjs-layout-small .vjs-playback-rate,\n.video-js.vjs-layout-small .vjs-chapters-button,\n.video-js.vjs-layout-small .vjs-descriptions-button,\n.video-js.vjs-layout-small .vjs-captions-button,\n.video-js.vjs-layout-small .vjs-subtitles-button,\n.video-js.vjs-layout-small .vjs-audio-button,\n.video-js.vjs-layout-small .vjs-volume-control,\n.video-js.vjs-layout-x-small .vjs-current-time,\n.video-js.vjs-layout-x-small .vjs-time-divider,\n.video-js.vjs-layout-x-small .vjs-duration,\n.video-js.vjs-layout-x-small .vjs-remaining-time,\n.video-js.vjs-layout-x-small .vjs-playback-rate,\n.video-js.vjs-layout-x-small .vjs-chapters-button,\n.video-js.vjs-layout-x-small .vjs-descriptions-button,\n.video-js.vjs-layout-x-small .vjs-captions-button,\n.video-js.vjs-layout-x-small .vjs-subtitles-button,\n.video-js.vjs-layout-x-small .vjs-audio-button,\n.video-js.vjs-layout-x-small .vjs-volume-control,\n.video-js.vjs-layout-tiny .vjs-current-time,\n.video-js.vjs-layout-tiny .vjs-time-divider,\n.video-js.vjs-layout-tiny .vjs-duration,\n.video-js.vjs-layout-tiny .vjs-remaining-time,\n.video-js.vjs-layout-tiny .vjs-playback-rate,\n.video-js.vjs-layout-tiny .vjs-chapters-button,\n.video-js.vjs-layout-tiny .vjs-descriptions-button,\n.video-js.vjs-layout-tiny .vjs-captions-button,\n.video-js.vjs-layout-tiny .vjs-subtitles-button,\n.video-js.vjs-layout-tiny .vjs-audio-button,\n.video-js.vjs-layout-tiny .vjs-volume-control{display:none}.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover, .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.vjs-slider-active, .video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover, .video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover, .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.vjs-slider-active, .video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover, .video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover, .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.vjs-slider-active, .video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover{width:auto;width:auto}.video-js.vjs-layout-x-small:not(.vjs-liveui) .vjs-subs-caps-button, .video-js.vjs-layout-x-small:not(.vjs-live) .vjs-subs-caps-button, .video-js.vjs-layout-tiny .vjs-subs-caps-button{display:none}.video-js.vjs-layout-x-small.vjs-liveui .vjs-custom-control-spacer, .video-js.vjs-layout-tiny .vjs-custom-control-spacer{flex:auto;display:block}.video-js.vjs-layout-x-small.vjs-liveui.vjs-no-flex .vjs-custom-control-spacer, .video-js.vjs-layout-tiny.vjs-no-flex .vjs-custom-control-spacer{width:auto}.video-js.vjs-layout-x-small.vjs-liveui .vjs-progress-control, .video-js.vjs-layout-tiny .vjs-progress-control{display:none}.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,\n.vjs-text-track-settings .vjs-track-settings-font,\n.vjs-text-track-settings .vjs-track-settings-controls{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,\n.vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content,\n.vjs-layout-tiny .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:focus,\n.vjs-track-settings-controls uni-button:active{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:none}.video-js *:focus:not(:focus-visible){outline:none}',""]),e.exports=t},c430:function(e,t){e.exports=!1},c471: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=Math.pow(2,32),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=t.getUint32(r)*i+t.getUint32(r+4),n.firstOffset=t.getUint32(r+8)*i+t.getUint32(r+12),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},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}},cfc3:function(e,t,n){var i=n("74e8");i("Float32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},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")},d294: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",g="start",m="auto",v="auto",y=100,_="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 g},set:function(e){var t=o(e);t?(g=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");m=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 _},set:function(e){var t=o(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");_=t,this.hasBeenReset=!0}}}),this.displayState=void 0}s.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=s},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},d4ef: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},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),g=!r((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=g&&!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(!g||!m||"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?g&&!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}),_=y[0],b=y[1];i(String.prototype,e,_),i(RegExp.prototype,p,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}d&&s(RegExp.prototype[p],"sham",!0)}},d7c6: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("d4ef").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 g(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,g)}function m(){}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}],m={},v=0;while(1){try{var w=e.indexOf("<",v);if(w<0){if(!e.substr(v).match(/^\s*$/)){var E=r.doc,I=E.createTextNode(e.substr(v));E.appendChild(I),r.currentElement=I}return}switch(w>v&&u(w),e.charAt(w+1)){case"/":var A=e.indexOf(">",w+3),O=e.substring(w+2,A).replace(/[ \t\n\r]+$/g,""),x=p.pop();A<0?(O=e.substring(w+2).replace(/[\s<].*/,""),a.error("end tag name: "+O+" is not complete:"+x.tagName),A=w+1+O.length):O.match(/\s</)&&(O=O.replace(/[\s<].*/,""),a.error("end tag name: "+O+" maybe not complete"),A=w+1+O.length);var D=x.localNSMap,L=x.tagName==O,N=L||x.tagName&&x.tagName.toLowerCase()==O.toLowerCase();if(N){if(r.endElement(x.uri,x.localName,O),D)for(var P in D)r.endPrefixMapping(P);L||a.fatalError("end tag name: "+O+" is not match the current start tagName:"+x.tagName)}else p.push(x);A++;break;case"?":f&&c(w),A=M(e,w,r);break;case"!":f&&c(w),A=k(e,w,r,a);break;default:f&&c(w);var R=new C,j=p[p.length-1].currentNSMap,U=(A=_(e,w,R,j,s,a),R.length);if(!R.closed&&S(e,A,R.tagName,m)&&(R.closed=!0,n.nbsp||a.warning("unclosed xml attribute")),f&&U){for(var F=y(f,{}),B=0;B<U;B++){var G=R[B];c(G.offset),G.locator=y(f,{})}r.locator=F,b(R,r,j)&&p.push(R),r.locator=f}else b(R,r,j)&&p.push(R);i.isHTML(R.uri)&&!R.closed?A=T(e,A,R.tagName,s,r):A++}}catch(q){if(q instanceof g)throw q;a.error("element parse error: "+q),A=-1}A>v?v=A:u(Math.max(w,v)+1)}}function y(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function _(e,t,n,r,a,o){function g(e,t,i){n.attributeNames.hasOwnProperty(e)&&o.fatalError("Attribute "+e+" redefined"),n.addValue(e,t,i)}var m,v=++t,y=s;while(1){var _=e.charAt(v);switch(_){case"=":if(y===u)m=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 "="'),m=e.slice(t,v)),t=v+1,v=e.indexOf(_,t),!(v>0))throw new Error("attribute value no end '"+_+"' match");b=e.slice(t,v).replace(/&#?\w+;/g,a),g(m,b,t-1),y=h}else{if(y!=d)throw new Error('attribute value must after "="');b=e.slice(t,v).replace(/&#?\w+;/g,a),g(m,b,t),o.warning('attribute "'+m+'" missed start quot('+_+")!!"),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:b=e.slice(t,v),"/"===b.slice(-1)&&(n.closed=!0,b=b.slice(0,-1));case c:y===c&&(b=m),y==d?(o.warning('attribute "'+b+'" missed quot(")!'),g(m,b.replace(/&#?\w+;/g,a),t)):(i.isHTML(r[""])&&b.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+b+'" missed value!! "'+b+'" instead!!'),g(b,b,t));break;case l:throw new Error("attribute value missed!!")}return v;case"€":_=" ";default:if(_<=" ")switch(y){case s:n.setTagName(e.slice(t,v)),y=f;break;case u:m=e.slice(t,v),y=c;break;case d:var b=e.slice(t,v).replace(/&#?\w+;/g,a);o.warning('attribute "'+b+'" missed quot(")!!'),g(m,b,t);case h:y=f;break}else switch(y){case c:n.tagName;i.isHTML(r[""])&&m.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+m+'" missed value!! "'+m+'" instead2!!'),g(m,m,t),t=v,y=u;break;case h:o.warning('attribute space is required"'+m+'"!!');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 b(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={},w(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 S(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 w(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 M(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 C(){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}g.prototype=new Error,g.prototype.name=g.name,m.prototype={parse:function(e,t,n){var i=this.domBuilder;i.startDocument(),w(t,t={}),v(e,t,n,i,this.errorHandler),i.endDocument()}},C.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=m,t.ParseError=g},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(g){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(g){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)}},df9e: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.padStart=t.countBytes=t.countBits=void 0;var r=i(n("71e4")),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 ArrayBuffer.isView(e)};t.isTypedArray=c;var l=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||c(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=l;var d=function(e){e=l(e);for(var t="",n=0;n<e.length;n++)t+=u(e[n].toString(16),2,"0");return t};t.toHexString=d;var h=function(e){e=l(e);for(var t="",n=0;n<e.length;n++)t+=u(e[n].toString(2),8,"0");return t};t.toBinaryString=h;var f=r.default.BigInt||Number,p=[f("0x1"),f("0x100"),f("0x10000"),f("0x1000000"),f("0x100000000"),f("0x10000000000"),f("0x1000000000000"),f("0x100000000000000"),f("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 m="big"===g;t.IS_BIG_ENDIAN=m;var v="little"===g;t.IS_LITTLE_ENDIAN=v;var y=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=l(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+f(n)*p[r]}),f(0));if(r){var d=p[e.length]/f(2)-f(1);c=f(c),c>d&&(c-=d,c-=d,c-=f(2))}return Number(c)};t.bytesToNumber=y;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=f(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/p[u]&f(255)),e<0&&(o[c]=Math.abs(~o[c]),o[c]-=0===u?1:2)}return o};t.numberToBytes=_;var b=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,l(e));try{return decodeURIComponent(escape(t))}catch(n){}return t};t.bytesToString=b;var T=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=T;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 l(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=l(e),r.set(e,a),a+=e.byteLength})),r};t.concatTypedArrays=S;var w=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=l(e),t=l(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=w;var k=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=k;var M=function(e){return e.reverse?e.reverse():Array.prototype.reverse.call(e)};t.reverseBytes=M},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,g="Symbol(test)"==String(l("test")),m=/^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=g?t.slice(7,-1):t.replace(m,"$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){
/*!
 * Vue.js v2.6.11
 * (c) 2014-2021 Evan You
 * Released under the MIT License.
 */
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 g(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(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]}}m("slot,component",!0);var v=m("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 _=Object.prototype.hasOwnProperty;function b(e,t){return _.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 S=/-(\w)/g,w=T((function(e){return e.replace(S,(function(e,t){return t?t.toUpperCase():""}))})),k=T((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),M=/\B([A-Z])/g,C=T((function(e){return e.replace(M,"-$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 I(e,t){return e.bind(t)}var A=Function.prototype.bind?I:E;function O(e,t){t=t||0;var n=e.length-t,i=new Array(n);while(n--)i[n]=e[n+t];return i}function x(e,t){for(var n in t)e[n]=t[n];return e}function D(e){for(var t={},n=0;n<e.length;n++)e[n]&&x(t,e[n]);return t}function L(e,t,n){}var N=function(e,t,n){return!1},P=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 j(e,t){for(var n=0;n<e.length;n++)if(R(e[n],t))return n;return-1}function U(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var F="data-server-rendered",B=["component","directive","filter"],G=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],q={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:N,isReservedAttr:N,isUnknownElement:N,getTagNamespace:L,parsePlatformTagName:P,mustUseProp:N,async:!0,_lifecycleHooks:G},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 H(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function $(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var W=new RegExp("[^"+V.source+".$_\\d]");function z(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 K,Y="__proto__"in{},X="undefined"!==typeof window,J="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,Q=J&&WXEnvironment.platform.toLowerCase(),Z=X&&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"===Q),re=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),ae={}.watch,oe=!1;if(X)try{var se={};Object.defineProperty(se,"passive",{get:function(){oe=!0}}),window.addEventListener("test-passive",null,se)}catch(xo){}var ue=function(){return void 0===K&&(K=!X&&!J&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),K},ce=X&&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,ge=function(){this.id=pe++,this.subs=[]};function me(e){ge.SharedObject.targetStack.push(e),ge.SharedObject.target=e,ge.target=e}function ve(){ge.SharedObject.targetStack.pop(),ge.SharedObject.target=ge.SharedObject.targetStack[ge.SharedObject.targetStack.length-1],ge.target=ge.SharedObject.target}ge.prototype.addSub=function(e){this.subs.push(e)},ge.prototype.removeSub=function(e){y(this.subs,e)},ge.prototype.depend=function(){ge.SharedObject.target&&ge.SharedObject.target.addDep(this)},ge.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},ge.SharedObject={},ge.SharedObject.target=null,ge.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},_e={child:{configurable:!0}};_e.child.get=function(){return this.componentInstance},Object.defineProperties(ye.prototype,_e);var be=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 Se(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 we=Array.prototype,ke=Object.create(we),Me=["push","pop","shift","unshift","splice","sort","reverse"];Me.forEach((function(e){var t=we[e];$(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 Ce=Object.getOwnPropertyNames(ke),Ee=!0;function Ie(e){Ee=e}var Ae=function(e){this.value=e,this.dep=new ge,this.vmCount=0,$(e,"__ob__",this),Array.isArray(e)?(Y?Oe(e,ke):xe(e,ke,Ce),this.observeArray(e)):this.walk(e)};function Oe(e,t){e.__proto__=t}function xe(e,t,n){for(var i=0,r=n.length;i<r;i++){var a=n[i];$(e,a,t[a])}}function De(e,t){var n;if(u(e)&&!(e instanceof ye))return b(e,"__ob__")&&e.__ob__ instanceof Ae?n=e.__ob__:Ee&&!ue()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Ae(e)),t&&n&&n.vmCount++,n}function Le(e,t,n,i,r){var a=new ge,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&&De(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return ge.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&&De(t),a.notify())}})}}function Ne(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 Pe(e,t){if(Array.isArray(e)&&h(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||b(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)}Ae.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Le(e,t[n])},Ae.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)De(e[t])};var je=q.optionMergeStrategies;function Ue(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],b(e,n)?i!==r&&l(i)&&l(r)&&Ue(i,r):Ne(e,n,r));return e}function Fe(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?Ue(i,r):r}:t?e?function(){return Ue("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function Be(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?Ge(n):n}function Ge(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function qe(e,t,n,i){var r=Object.create(e||null);return t?x(r,t):r}je.data=function(e,t,n){return n?Fe(e,t,n):t&&"function"!==typeof t?e:Fe(e,t)},G.forEach((function(e){je[e]=Be})),B.forEach((function(e){je[e+"s"]=qe})),je.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 x(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},je.props=je.methods=je.inject=je.computed=function(e,t,n,i){if(!e)return t;var r=Object.create(null);return x(r,e),t&&x(r,t),r},je.provide=Fe;var Ve=function(e,t){return void 0===t?e:t};function He(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=w(r),o[a]={type:null})}else if(l(n))for(var s in n)r=n[s],a=w(s),o[a]=l(r)?r:{type:r};else 0;e.props=o}}function $e(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)?x({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 ze(e,t,n){if("function"===typeof t&&(t=t.options),He(t,n),$e(t,n),We(t),!t._base&&(t.extends&&(e=ze(e,t.extends,n)),t.mixins))for(var i=0,r=t.mixins.length;i<r;i++)e=ze(e,t.mixins[i],n);var a,o={};for(a in e)s(a);for(a in t)b(e,a)||s(a);function s(i){var r=je[i]||Ve;o[i]=r(e[i],t[i],n,i)}return o}function Ke(e,t,n,i){if("string"===typeof n){var r=e[t];if(b(r,n))return r[n];var a=w(n);if(b(r,a))return r[a];var o=k(a);if(b(r,o))return r[o];var s=r[n]||r[a]||r[o];return s}}function Ye(e,t,n,i){var r=t[e],a=!b(n,e),o=n[e],s=Ze(Boolean,r.type);if(s>-1)if(a&&!b(r,"default"))o=!1;else if(""===o||o===C(e)){var u=Ze(String,r.type);(u<0||s<u)&&(o=!0)}if(void 0===o){o=Xe(i,r,e);var c=Ee;Ie(!0),De(o),Ie(c)}return o}function Xe(e,t,n){if(b(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"!==Je(t.type)?i.call(e):i}}function Je(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Qe(e,t){return Je(e)===Je(t)}function Ze(e,t){if(!Array.isArray(t))return Qe(t,e)?0:-1;for(var n=0,i=t.length;n<i;n++)if(Qe(t[n],e))return n;return-1}function et(e,t,n){me();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(xo){nt(xo,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(xo){et(xo,i,r)}return a}function nt(e,t,n){if(q.errorHandler)try{return q.errorHandler.call(null,e,t,n)}catch(xo){xo!==e&&it(xo,null,"config.errorHandler")}it(e,t,n)}function it(e,t,n){if(!X&&!J||"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(xo){et(xo,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 gt(e){mt(e,pt),pt.clear()}function mt(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--)mt(e[n],t)}else{i=Object.keys(e),n=i.length;while(n--)mt(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 _t(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 bt(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=C(l),h=wt(n,c,l,d,!0)||wt(n,u,l,d,!1);h&&n[l]&&-1!==s.indexOf(d)&&a[w(n[l])]&&(n[l]=a[w(n[l])])}return n}function St(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=C(l);wt(s,c,l,d,!0)||wt(s,u,l,d,!1)}return Tt(e,t,s,a)}function wt(e,t,n,i,a){if(r(t)){if(b(t,n))return e[n]=t[n],a||delete t[n],!0;if(b(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 Mt(e){return s(e)?[Te(e)]:Array.isArray(e)?Et(e):void 0}function Ct(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),Ct(o[0])&&Ct(c)&&(l[u]=Te(c.text+o[0].text),o.shift()),l.push.apply(l,o)):s(o)?Ct(c)?l[u]=Te(c.text+o):""!==o&&l.push(Te(o)):Ct(o)&&Ct(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 It(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function At(e){var t=Ot(e.$options.inject,e);t&&(Ie(!1),Object.keys(t).forEach((function(n){Le(e,n,t[n])})),Ie(!0))}function Ot(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&&b(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 xt(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(Dt)&&delete n[c];return n}function Dt(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]=Nt(t,u,e[u]))}else r={};for(var c in t)c in r||(r[c]=Pt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),$(r,"$stable",o),$(r,"$key",s),$(r,"$hasNormal",a),r}function Nt(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]:Mt(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 Pt(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 jt(e,t,n,i){var r,a=this.$scopedSlots[e];a?(n=n||{},i&&(n=x(x({},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 Ut(e){return Ke(this.$options,"filters",e,!0)||P}function Ft(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Bt(e,t,n,i,r){var a=q.keyCodes[t]||n;return r&&i&&!q.keyCodes[t]?Ft(r,i):a?Ft(a,e):i?C(i)!==t:void 0}function Gt(e,t,n,i,r){if(n)if(u(n)){var a;Array.isArray(n)&&(n=D(n));var o=function(o){if("class"===o||"style"===o||v(o))a=e;else{var s=e.attrs&&e.attrs.type;a=i||q.mustUseProp(t,s,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var u=w(o),c=C(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 qt(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),Ht(i,"__static__"+e,!1)),i}function Vt(e,t,n){return Ht(e,"__once__"+t+(n?"_"+n:""),!0),e}function Ht(e,t,n){if(Array.isArray(e))for(var i=0;i<e.length;i++)e[i]&&"string"!==typeof e[i]&&$t(e[i],t+"_"+i,n);else $t(e,t,n)}function $t(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?x({},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 zt(e,t,n,i){t=t||{$stable:!n};for(var r=0;r<e.length;r++){var a=e[r];Array.isArray(a)?zt(a,t,n):a&&(a.proxy&&(a.fn.proxy=!0),t[a.key]=a.fn)}return i&&(t.$key=i),t}function Kt(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 Yt(e,t){return"string"===typeof e?t+e:e}function Xt(e){e._o=Vt,e._n=g,e._s=p,e._l=Rt,e._t=jt,e._q=R,e._i=j,e._m=qt,e._f=Ut,e._k=Bt,e._b=Gt,e._v=Te,e._e=be,e._u=zt,e._g=Wt,e._d=Kt,e._p=Yt}function Jt(e,t,i,r,o){var s,u=this,c=o.options;b(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=Ot(c.inject,r),this.slots=function(){return u.$slots||Lt(e.scopedSlots,u.$slots=xt(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 Qt(e,t,i,a,o){var s=e.options,u={},c=s.props;if(r(c))for(var l in c)u[l]=Ye(l,c,t||n);else r(i.attrs)&&en(u,i.attrs),r(i.props)&&en(u,i.props);var d=new Jt(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=Mt(h)||[],p=new Array(f.length),g=0;g<f.length;g++)p[g]=Zt(f[g],i,d.parent,s,d);return p}}function Zt(e,t,n,i,r){var a=Se(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[w(n)]=t[n]}Xt(Jt.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,On);i.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,i=t.componentInstance=e.componentInstance;Pn(i,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(Fn(n,"onServiceCreated"),Fn(n,"onServiceAttached"),n._isMounted=!0,Fn(n,"mounted")),e.data.keepAlive&&(t._isMounted?Qn(n):jn(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Un(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 bn(l,t,n,o,s);t=t||{},Ti(e),r(t.model)&&un(e.options,t);var d=St(t,e,s,n);if(a(e.options.functional))return Qt(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,g=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 g}}}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 be();if(r(n)&&r(n.is)&&(t=n.is),!t)return be();var o,s,u;(Array.isArray(i)&&"function"===typeof i[0]&&(n=n||{},n.scopedSlots={default:i[0]},i.length=0),a===ln?i=Mt(i):a===cn&&(i=kt(i)),"string"===typeof t)?(s=e.$vnode&&e.$vnode.ns||q.getTagNamespace(t),o=q.isReservedTag(t)?new ye(q.parsePlatformTagName(t),n,i,void 0,void 0,e):n&&n.pre||!r(u=Ke(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):be()}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)&&gt(e.style),u(e.class)&&gt(e.class)}function gn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,i=e.$vnode=t._parentVnode,r=i&&i.context;e.$slots=xt(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 mn,vn=null;function yn(e){Xt(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(xo){et(xo,t,"render"),e=t._vnode}finally{vn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof ye||(e=be()),e.parent=r,e}}function _n(e,t){return(e.__esModule||he&&"Module"===e[Symbol.toStringTag])&&(e=e.default),u(e)?t.extend(e):e}function bn(e,t,n,i,r){var a=be();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=U((function(n){e.resolved=_n(n,t),s?o.length=0:d(!0)})),p=U((function(t){r(e.errorComp)&&(e.error=!0,d(!0))})),g=e(h,p);return u(g)&&(f(g)?i(e.resolved)&&g.then(h,p):f(g.component)&&(g.component.then(h,p),r(g.error)&&(e.errorComp=_n(g.error,t)),r(g.loading)&&(e.loadingComp=_n(g.loading,t),0===g.delay?e.loading=!0:c=setTimeout((function(){c=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,d(!1))}),g.delay||200)),r(g.timeout)&&(l=setTimeout((function(){l=null,i(e.resolved)&&p(null)}),g.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}function Sn(e){return e.isComment&&e.asyncFactory}function wn(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(r(n)&&(r(n.componentOptions)||Sn(n)))return n}}function kn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&In(e,t)}function Mn(e,t){mn.$on(e,t)}function Cn(e,t){mn.$off(e,t)}function En(e,t){var n=mn;return function i(){var r=t.apply(null,arguments);null!==r&&n.$off(e,i)}}function In(e,t,n){mn=e,_t(t,n||{},Mn,Cn,En,e),mn=void 0}function An(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?O(n):n;for(var i=O(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 On=null;function xn(e){var t=On;return On=e,function(){On=t}}function Dn(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=xn(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){Fn(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),Fn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function Nn(e,t,n){var i;return e.$el=t,e.$options.render||(e.$options.render=be),Fn(e,"beforeMount"),i=function(){e._update(e._render(),n)},new ni(e,i,L,{before:function(){e._isMounted&&!e._isDestroyed&&Fn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(Fn(e,"onServiceCreated"),Fn(e,"onServiceAttached"),e._isMounted=!0,Fn(e,"mounted")),e}function Pn(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){Ie(!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]=Ye(f,p,t,e)}Ie(!0),e.$options.propsData=t}e._$updateProperties&&e._$updateProperties(e),i=i||n;var g=e.$options._parentListeners;e.$options._parentListeners=i,In(e,i,g),c&&(e.$slots=xt(a,r.context),e.$forceUpdate())}function Rn(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function jn(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++)jn(e.$children[n]);Fn(e,"activated")}}function Un(e,t){if((!t||(e._directInactive=!0,!Rn(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Un(e.$children[n]);Fn(e,"deactivated")}}function Fn(e,t){me();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 Bn=[],Gn=[],qn={},Vn=!1,Hn=!1,$n=0;function Wn(){$n=Bn.length=Gn.length=0,qn={},Vn=Hn=!1}var zn=0,Kn=Date.now;if(X&&!ee){var Yn=window.performance;Yn&&"function"===typeof Yn.now&&Kn()>document.createEvent("Event").timeStamp&&(Kn=function(){return Yn.now()})}function Xn(){var e,t;for(zn=Kn(),Hn=!0,Bn.sort((function(e,t){return e.id-t.id})),$n=0;$n<Bn.length;$n++)e=Bn[$n],e.before&&e.before(),t=e.id,qn[t]=null,e.run();var n=Gn.slice(),i=Bn.slice();Wn(),Zn(n),Jn(i),ce&&q.devtools&&ce.emit("flush")}function Jn(e){var t=e.length;while(t--){var n=e[t],i=n.vm;i._watcher===n&&i._isMounted&&!i._isDestroyed&&Fn(i,"updated")}}function Qn(e){e._inactive=!1,Gn.push(e)}function Zn(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,jn(e[t],!0)}function ei(e){var t=e.id;if(null==qn[t]){if(qn[t]=!0,Hn){var n=Bn.length-1;while(n>$n&&Bn[n].id>e.id)n--;Bn.splice(n+1,0,e)}else Bn.push(e);Vn||(Vn=!0,ft(Xn))}}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=z(t),this.getter||(this.getter=L)),this.value=this.lazy?void 0:this.get()};ni.prototype.get=function(){var e;me(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(xo){if(!this.user)throw xo;et(xo,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&gt(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(xo){et(xo,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):De(e._data={},!0),t.computed&&li(e,t.computed),t.watch&&t.watch!==ae&&gi(e,t.watch)}function oi(e,t){var n=e.$options.propsData||{},i=e._props={},r=e.$options._propKeys=[],a=!e.$parent;a||Ie(!1);var o=function(a){r.push(a);var o=Ye(a,t,n,e);Le(i,a,o),a in e||ri(e,"_props",a)};for(var s in t)o(s);Ie(!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&&b(i,a)||H(a)||ri(e,"_data",a)}De(t,!0)}function ui(e,t){me();try{return e.call(t,t)}catch(xo){return et(xo,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(),ge.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:A(t[n],e)}function gi(e,t){for(var n in t){var i=t[n];if(Array.isArray(i))for(var r=0;r<i.length;r++)mi(e,n,i[r]);else mi(e,n,i)}}function mi(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=Ne,e.prototype.$delete=Pe,e.prototype.$watch=function(e,t,n){var i=this;if(l(t))return mi(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 _i(e){e.prototype._init=function(e){var t=this;t._uid=yi++,t._isVue=!0,e&&e._isComponent?bi(t,e):t.$options=ze(Ti(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Dn(t),kn(t),gn(t),Fn(t,"beforeCreate"),!t._$fallback&&At(t),ai(t),!t._$fallback&&It(t),!t._$fallback&&Fn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function bi(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=Si(e);r&&x(e.extendOptions,r),t=e.options=ze(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function Si(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 wi(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=O(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 Mi(e){e.mixin=function(e){return this.options=ze(this.options,e),this}}function Ci(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=ze(n.options,e),o["super"]=n,o.options.props&&Ei(o),o.options.computed&&Ii(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,B.forEach((function(e){o[e]=n[e]})),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=x({},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 Ii(e){var t=e.options.computed;for(var n in t)di(e.prototype,n,t[n])}function Ai(e){B.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 Oi(e){return e&&(e.Ctor.options.name||e.tag)}function xi(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function Di(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=Oi(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)}_i(wi),vi(wi),An(wi),Ln(wi),yn(wi);var Ni=[String,RegExp,Array],Pi={name:"keep-alive",abstract:!0,props:{include:Ni,exclude:Ni,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){Di(e,(function(e){return xi(t,e)}))})),this.$watch("exclude",(function(t){Di(e,(function(e){return!xi(t,e)}))}))},render:function(){var e=this.$slots.default,t=wn(e),n=t&&t.componentOptions;if(n){var i=Oi(n),r=this,a=r.include,o=r.exclude;if(a&&(!i||!xi(a,i))||o&&i&&xi(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:Pi};function ji(e){var t={get:function(){return q}};Object.defineProperty(e,"config",t),e.util={warn:fe,extend:x,mergeOptions:ze,defineReactive:Le},e.set=Ne,e.delete=Pe,e.nextTick=ft,e.observable=function(e){return De(e),e},e.options=Object.create(null),B.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,x(e.options.components,Ri),ki(e),Mi(e),Ci(e),Ai(e)}ji(wi),Object.defineProperty(wi.prototype,"$isServer",{get:ue}),Object.defineProperty(wi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(wi,"FunctionalRenderContext",{value:Jt}),wi.version="2.6.11";var Ui=m("style,class"),Fi=m("input,textarea,option,select,progress"),Bi=function(e,t,n){return"value"===n&&Fi(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Gi=m("contenteditable,draggable,spellcheck"),qi=m("events,caret,typing,plaintext-only"),Vi=function(e,t){return Ki(t)||"false"===t?"false":"contenteditable"===e&&qi(t)?t:"true"},Hi=m("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"),$i="http://www.w3.org/1999/xlink",Wi=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},zi=function(e){return Wi(e)?e.slice(6,e.length):""},Ki=function(e){return null==e||!1===e};function Yi(e){var t=e.data,n=e,i=e;while(r(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(t=Xi(i.data,t));while(r(n=n.parent))n&&n.data&&(t=Xi(t,n.data));return Ji(t.staticClass,t.class)}function Xi(e,t){return{staticClass:Qi(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Ji(e,t){return r(e)||r(t)?Qi(e,Zi(t)):""}function Qi(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=m("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=m("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(!X)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=m("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 gr(e,t,n){e.insertBefore(t,n)}function mr(e,t){e.removeChild(t)}function vr(e,t){e.appendChild(t)}function yr(e){return e.parentNode}function _r(e){return e.nextSibling}function br(e){return e.tagName}function Tr(e,t){e.textContent=t}function Sr(e,t){e.setAttribute(t,"")}var wr=Object.freeze({createElement:dr,createElementNS:hr,createTextNode:fr,createComment:pr,insertBefore:gr,removeChild:mr,appendChild:vr,parentNode:yr,nextSibling:_r,tagName:br,setTextContent:Tr,setStyleScope:Sr}),kr={create:function(e,t){Mr(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Mr(e,!0),Mr(t))},destroy:function(e){Mr(e,!0)}};function Mr(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 Cr=new ye("",{},[]),Er=["create","activate","update","remove","destroy"];function Ir(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&Ar(e,t)||a(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&i(t.asyncFactory.error))}function Ar(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 Or(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 xr(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]=Se(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),S(e),_(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 g(e,t),y(n,e.elm,i),a(s)&&v(e,t,n,i),!0}}function g(e,t){r(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,b(e)?(T(e,t),S(e)):(Mr(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](Cr,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 _(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 b(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](Cr,e);t=e.data.hook,r(t)&&(r(t.create)&&t.create(Cr,e),r(t.insert)&&n.push(e))}function S(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=On)&&t!==e.context&&t!==e.fnContext&&r(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t)}function w(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 M(e,t,n){for(;t<=n;++t){var i=e[t];r(i)&&(r(i.tag)?(C(i),k(i)):h(i.elm))}}function C(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)&&C(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,g=t.length-1,m=t[0],v=t[g],y=n.length-1,_=n[0],b=n[y],T=!o;while(h<=g&&p<=y)i(m)?m=t[++h]:i(v)?v=t[--g]:Ir(m,_)?(A(m,_,a,n,p),m=t[++h],_=n[++p]):Ir(v,b)?(A(v,b,a,n,y),v=t[--g],b=n[--y]):Ir(m,b)?(A(m,b,a,n,y),T&&c.insertBefore(e,m.elm,c.nextSibling(v.elm)),m=t[++h],b=n[--y]):Ir(v,_)?(A(v,_,a,n,p),T&&c.insertBefore(e,v.elm,m.elm),v=t[--g],_=n[++p]):(i(s)&&(s=Or(t,h,g)),u=r(_.key)?s[_.key]:I(_,t,h,g),i(u)?f(_,a,e,m.elm,!1,n,p):(l=t[u],Ir(l,_)?(A(l,_,a,n,p),t[u]=void 0,T&&c.insertBefore(e,l.elm,m.elm)):f(_,a,e,m.elm,!1,n,p)),_=n[++p]);h>g?(d=i(n[y+1])?null:n[y+1].elm,w(e,d,n,p,y,a)):p>y&&M(t,h,g)}function I(e,t,n,i){for(var a=n;a<i;a++){var o=t[a];if(r(o)&&Ir(e,o))return a}}function A(e,t,n,s,u,l){if(e!==t){r(t.elm)&&r(s)&&(t=s[u]=Se(t));var d=t.elm=e.elm;if(a(e.isAsyncPlaceholder))r(t.asyncFactory.resolved)?D(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,g=t.children;if(r(f)&&b(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(g)?p!==g&&E(d,p,g,n,l):r(g)?(r(e.text)&&c.setTextContent(d,""),w(d,null,g,0,g.length-1,n)):r(p)?M(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 O(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 x=m("attrs,class,staticClass,staticStyle,key");function D(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 g(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||!D(d,c[h],n,i)){l=!1;break}d=d.nextSibling}if(!l||d)return!1}else _(t,c,n);if(r(u)){var f=!1;for(var p in u)if(!x(p)){f=!0,T(t,n);break}!f&&u["class"]&&gt(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&&Ir(e,t))A(e,t,d,null,null,s);else{if(h){if(1===e.nodeType&&e.hasAttribute(F)&&(e.removeAttribute(F),n=!0),a(n)&&D(e,t,d))return O(t,d,!0),e;e=l(e)}var p=e.elm,g=c.parentNode(p);if(f(t,d,p._leaveCb?null:g,c.nextSibling(p)),r(t.parent)){var m=t.parent,v=b(t);while(m){for(var y=0;y<o.destroy.length;++y)o.destroy[y](m);if(m.elm=t.elm,v){for(var _=0;_<o.create.length;++_)o.create[_](Cr,m);var T=m.data.hook.insert;if(T.merged)for(var S=1;S<T.fns.length;S++)T.fns[S]()}else Mr(m);m=m.parent}}r(g)?M([e],0,0):r(e.tag)&&k(e)}}return O(t,d,u),t.elm}r(e)&&k(e)}}var Dr={create:Lr,update:Lr,destroy:function(e){Lr(e,Cr)}};function Lr(e,t){(e.data.directives||t.data.directives)&&Nr(e,t)}function Nr(e,t){var n,i,r,a=e===Cr,o=t===Cr,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,Ur(r,"update",t,e),r.def&&r.def.componentUpdated&&l.push(r)):(Ur(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++)Ur(c[n],"inserted",t,e)};a?bt(t,"insert",d):d()}if(l.length&&bt(t,"postpatch",(function(){for(var n=0;n<l.length;n++)Ur(l[n],"componentUpdated",t,e)})),!a)for(n in s)u[n]||Ur(s[n],"unbind",e,e,o)}var Pr=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=Pr),r[jr(i)]=i,i.def=Ke(t.$options,"directives",i.name,!0);return r}function jr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Ur(e,t,n,i,r){var a=e.def&&e.def[t];if(a)try{a(n.elm,e,n,i,r)}catch(xo){et(xo,n.context,"directive "+e.name+" "+t+" hook")}}var Fr=[kr,Dr];function Br(e,t){var n={};return Object.keys(e).forEach((function(i){t[i]&&(n[e[i]]=t[i],delete t[i])})),n}function Gr(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=Br(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 qr={create:Gr,update:Gr};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=x({},l)),l)o=l[a],s=c[a],s!==o&&Hr(u,a,o);for(a in(ee||ne)&&l.value!==c.value&&Hr(u,"value",l.value),c)i(l[a])&&(Wi(a)?u.removeAttributeNS($i,zi(a)):Gi(a)||u.removeAttribute(a))}}function Hr(e,t,n){e.tagName.indexOf("-")>-1?$r(e,t,n):Hi(t)?Ki(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Gi(t)?e.setAttribute(t,Vi(t,n)):Wi(t)?Ki(n)?e.removeAttributeNS($i,zi(t)):e.setAttributeNS($i,t,n):$r(e,t,n)}function $r(e,t,n){if(Ki(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 zr(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=Yi(t),u=n._transitionClasses;if(r(u)&&(s=Qi(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[w(e)];t&&(s=s.replace(e,t))})),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Kr,Yr={create:zr,update:zr},Xr="__r",Jr="__c";function Qr(e){if(r(e[Xr])){var t=ee?"change":"input";e[t]=[].concat(e[Xr],e[t]||[]),delete e[Xr]}r(e[Jr])&&(e.change=[].concat(e[Jr],e.change||[]),delete e[Jr])}function Zr(e,t,n){var i=Kr;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=zn,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)}}Kr.addEventListener(e,t,oe?{capture:n,passive:i}:n)}function na(e,t,n,i){(i||Kr).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||{};Kr=t.elm,Qr(n),_t(n,r,ta,na,Zr,t.context),Kr=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=x({},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(xo){}}}}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(xo){}return n&&e.value!==t}function ca(e,t){var n=e.value,i=e._vModifiers;if(r(i)){if(i.number)return g(n)!==g(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?x(e.staticStyle,t):t}function fa(e){return Array.isArray(e)?D(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))&&x(i,n)}(n=ha(e.data))&&x(i,n);var a=e;while(a=a.parent)a.data&&(n=ha(a.data))&&x(i,n);return i}var ga,ma=/^--/,va=/\s*!important$/,ya=/\b([+-]?\d+(\.\d+)?)[r|u]px\b/g,_a=function(e){return"string"===typeof e?e.replace(ya,(function(e,t){return uni.upx2px(t)+"px"})):e},ba=/url\(\s*['"](.+?\.(jpg|gif|png))['"]\s*\)/,Ta=/url\(\s*([a-zA-Z0-9\.\-\_\/]+?\.(jpg|gif|png))\s*\)/,Sa=function(e,t){if("string"===typeof e&&-1!==e.indexOf("url(")){var n=e.match(ba)||e.match(Ta);n&&3===n.length&&(e=e.replace(n[1],t._$getRealPath(n[1])))}return e},wa=function(e,t,n,i){if(i&&i._$getRealPath&&n&&(n=Sa(n,i)),ma.test(t))e.style.setProperty(t,n);else if(va.test(n))e.style.setProperty(C(t),n.replace(va,""),"important");else{var r=Ma(t);if(Array.isArray(n))for(var a=0,o=n.length;a<o;a++)e.style[r]=_a(n[a]);else e.style[r]=_a(n)}},ka=["Webkit","Moz","ms"],Ma=T((function(e){if(ga=ga||document.createElement("div").style,e=w(e),"filter"!==e&&e in ga)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 ga)return i}}));function Ca(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__)?x({},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])&&wa(o,u,"");for(u in f)s=f[u],s!==d[u]&&wa(o,u,null==s?"":s,t.context)}}var Ea={create:Ca,update:Ca},Ia=/\s+/;function Aa(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Ia).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 Oa(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Ia).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 xa(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&x(t,Da(e.name||"v")),x(t,e),t}return"string"===typeof e?Da(e):void 0}}var Da=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=X&&!te,Na="transition",Pa="animation",Ra="transition",ja="transitionend",Ua="animation",Fa="animationend";La&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ra="WebkitTransition",ja="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ua="WebkitAnimation",Fa="webkitAnimationEnd"));var Ba=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ga(e){Ba((function(){Ba(e)}))}function qa(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Aa(e,t))}function Va(e,t){e._transitionClasses&&y(e._transitionClasses,t),Oa(e,t)}function Ha(e,t,n){var i=Wa(e,t),r=i.type,a=i.timeout,o=i.propCount;if(!r)return n();var s=r===Na?ja:Fa,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 $a=/\b(transform|all)(,|$)/;function Wa(e,t){var n,i=window.getComputedStyle(e),r=(i[Ra+"Delay"]||"").split(", "),a=(i[Ra+"Duration"]||"").split(", "),o=za(r,a),s=(i[Ua+"Delay"]||"").split(", "),u=(i[Ua+"Duration"]||"").split(", "),c=za(s,u),l=0,d=0;t===Na?o>0&&(n=Na,l=o,d=a.length):t===Pa?c>0&&(n=Pa,l=c,d=u.length):(l=Math.max(o,c),n=l>0?o>c?Na:Pa:null,d=n?n===Na?a.length:u.length:0);var h=n===Na&&$a.test(i[Ra+"Property"]);return{type:n,timeout:l,propCount:d,hasTransform:h}}function za(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Ka(t)+Ka(e[n])})))}function Ka(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Ya(e,t){var n=e.elm;r(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var a=xa(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,m=a.beforeEnter,v=a.enter,y=a.afterEnter,_=a.enterCancelled,b=a.beforeAppear,T=a.appear,S=a.afterAppear,w=a.appearCancelled,k=a.duration,M=On,C=On.$vnode;while(C&&C.parent)M=C.context,C=C.parent;var E=!M._isMounted||!e.isRootInsert;if(!E||T||""===T){var I=E&&h?h:c,A=E&&p?p:d,O=E&&f?f:l,x=E&&b||m,D=E&&"function"===typeof T?T:v,L=E&&S||y,N=E&&w||_,P=g(u(k)?k.enter:k);0;var R=!1!==o&&!te,j=Qa(D),F=n._enterCb=U((function(){R&&(Va(n,O),Va(n,A)),F.cancelled?(R&&Va(n,I),N&&N(n)):L&&L(n),n._enterCb=null}));e.data.show||bt(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(),D&&D(n,F)})),x&&x(n),R&&(qa(n,I),qa(n,A),Ga((function(){Va(n,I),F.cancelled||(qa(n,O),j||(Ja(P)?setTimeout(F,P):Ha(n,s,F)))}))),e.data.show&&(t&&t(),D&&D(n,F)),R||j||F()}}}function Xa(e,t){var n=e.elm;r(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var a=xa(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,m=a.leaveCancelled,v=a.delayLeave,y=a.duration,_=!1!==o&&!te,b=Qa(f),T=g(u(y)?y.leave:y);0;var S=n._leaveCb=U((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),_&&(Va(n,l),Va(n,d)),S.cancelled?(_&&Va(n,c),m&&m(n)):(t(),p&&p(n)),n._leaveCb=null}));v?v(w):w()}function w(){S.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),h&&h(n),_&&(qa(n,c),qa(n,d),Ga((function(){Va(n,c),S.cancelled||(qa(n,l),b||(Ja(T)?setTimeout(S,T):Ha(n,s,S)))}))),f&&f(n,S),_||b||S())}}function Ja(e){return"number"===typeof e&&!isNaN(e)}function Qa(e){if(i(e))return!1;var t=e.fns;return r(t)?Qa(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Za(e,t){!0!==t.data.show&&Ya(t)}var eo=X?{create:Za,activate:Za,remove:function(e,t){!0!==e.data.show?Xa(e,t):t()}}:{},to=[qr,Wr,Yr,aa,la,Ea,eo],no=to.concat(Fr),io=xr({nodeOps:wr,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?bt(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=j(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,Ya(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?Ya(n,(function(){e.style.display=e.__vOriginalDisplay})):Xa(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)}},go={model:ro,show:po},mo={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(wn(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[w(a)]=r[a];return t}function _o(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function bo(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 So=function(e){return e.tag||Sn(e)},wo=function(e){return"show"===e.name},ko={name:"transition",props:mo,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(So),n.length)){0;var i=this.mode;0;var r=n[0];if(bo(this.$vnode))return r;var a=vo(r);if(!a)return r;if(this._leaving)return _o(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(wo)&&(a.data.show=!0),l&&l.data&&!To(a,l)&&!Sn(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var d=l.data.transition=x({},u);if("out-in"===i)return this._leaving=!0,bt(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),_o(e,r);if("in-out"===i){if(Sn(a))return c;var h,f=function(){h()};bt(u,"afterEnter",f),bt(u,"enterCancelled",f),bt(d,"delayLeave",(function(e){h=e}))}}return r}}},Mo=x({tag:String,moveClass:String},mo);delete Mo.mode;var Co={props:Mo,beforeMount:function(){var e=this,t=this._update;this._update=function(n,i){var r=xn(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(Io),e.forEach(Ao),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,i=n.style;qa(n,t),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(ja,n._moveCb=function e(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(ja,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){Oa(n,e)})),Aa(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 Io(e){e.data.newPos=e.elm.getBoundingClientRect()}function Ao(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 Oo={Transition:ko,TransitionGroup:Co};wi.config.mustUseProp=Bi,wi.config.isReservedTag=ar,wi.config.isReservedAttr=Ui,wi.config.getTagNamespace=or,wi.config.isUnknownElement=ur,x(wi.options.directives,go),x(wi.options.components,Oo),wi.prototype.__patch__=X?io:L,wi.prototype.__call_hook=function(e,t){var n=this;me();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},wi.prototype.$mount=function(e,t){return e=e&&X?lr(e):void 0,Nn(this,e,t)},X&&setTimeout((function(){q.devtools&&ce&&ce.emit("init",wi)}),0),t["default"]=wi}.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}))},e231: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)}},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}},e36d:function(e,t,n){var i=n("c22c");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4f06").default;r("23d90f9b",i,!0,{sourceMap:!1,shadowMode:!1})},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)}})},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"),g=n("2626"),m=n("861d"),v=n("1c0b"),y=n("19aa"),_=n("c6b6"),b=n("8925"),T=n("2266"),S=n("1c7e"),w=n("4840"),k=n("2cf4").set,M=n("b575"),C=n("cdf9"),E=n("44de"),I=n("f069"),A=n("e667"),O=n("69f3"),x=n("94ca"),D=n("b622"),L=n("2d00"),N=D("species"),P="Promise",R=O.get,j=O.set,U=O.getterFor(P),F=d,B=c.TypeError,G=c.document,q=c.process,V=l("fetch"),H=I.f,$=H,W="process"==_(q),z=!!(G&&G.createEvent&&c.dispatchEvent),K="unhandledrejection",Y="rejectionhandled",X=0,J=1,Q=2,Z=1,ee=2,te=x(P,(function(){var e=b(F)!==String(F);if(!e){if(66===L)return!0;if(!W&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!F.prototype["finally"])return!0;if(L>=51&&/native code/.test(F))return!1;var t=F.resolve(1),n=function(e){e((function(){}),(function(){}))},i=t.constructor={};return i[N]=n,!(t.then((function(){}))instanceof n)})),ne=te||!S((function(e){F.all(e)["catch"]((function(){}))})),ie=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},re=function(e,t,n){if(!t.notified){t.notified=!0;var i=t.reactions;M((function(){var r=t.value,a=t.state==J,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(B("Promise-chain cycle")):(u=ie(s))?u.call(s,h,f):h(s)):f(r)}catch(g){p&&!c&&p.exit(),f(g)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&oe(e,t)}))}},ae=function(e,t,n){var i,r;z?(i=G.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===K&&E("Unhandled promise rejection",n)},oe=function(e,t){k.call(c,(function(){var n,i=t.value,r=se(t);if(r&&(n=A((function(){W?q.emit("unhandledRejection",i,e):ae(K,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?q.emit("rejectionHandled",e):ae(Y,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=Q,re(e,t,!0))},de=function(e,t,n,i){if(!t.done){t.done=!0,i&&(t=i);try{if(e===n)throw B("Promise can't be resolved itself");var r=ie(n);r?M((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=J,re(e,t,!1))}catch(a){le(e,{done:!1},a,t)}}};te&&(F=function(e){y(this,F,P),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){j(this,{type:P,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:X,value:void 0})},i.prototype=f(F.prototype,{then:function(e,t){var n=U(this),i=H(w(this,F));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=W?q.domain:void 0,n.parent=!0,n.reactions.push(i),n.state!=X&&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)},I.f=H=function(e){return e===F||e===a?new r(e):$(e)},u||"function"!=typeof d||(o=d.prototype.then,h(d.prototype,"then",(function(e,t){var n=this;return new F((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 C(F,V.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:te},{Promise:F}),p(F,P,!1,!0),g(P),a=l(P),s({target:P,stat:!0,forced:te},{reject:function(e){var t=H(this);return t.reject.call(void 0,e),t.promise}}),s({target:P,stat:!0,forced:u||te},{resolve:function(e){return C(u&&this===a?F:this,e)}}),s({target:P,stat:!0,forced:ne},{all:function(e){var t=this,n=H(t),i=n.resolve,r=n.reject,a=A((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=H(t),i=n.reject,r=A((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"),g=n("b622"),m=n("90e3"),v=o.Int8Array,y=v&&v.prototype,_=o.Uint8ClampedArray,b=_&&_.prototype,T=v&&f(v),S=y&&f(y),w=Object.prototype,k=w.isPrototypeOf,M=g("toStringTag"),C=m("TYPED_ARRAY_TAG"),E=r&&!!p&&"Opera"!==c(o.opera),I=!1,A={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},O=function(e){var t=c(e);return"DataView"===t||u(A,t)},x=function(e){return s(e)&&u(A,c(e))},D=function(e){if(x(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 A)if(u(A,i)){var n=o[t];if(n&&(e===n||k.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},N=function(e,t,n){if(a){if(n)for(var i in A){var r=o[i];r&&u(r.prototype,e)&&delete r.prototype[e]}S[e]&&!n||d(S,e,n?t:E&&y[e]||t)}},P=function(e,t,n){var i,r;if(a){if(p){if(n)for(i in A)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 A)r=o[i],!r||r[e]&&!n||d(r,e,t)}};for(i in A)o[i]||(E=!1);if((!E||"function"!=typeof T||T===Function.prototype)&&(T=function(){throw TypeError("Incorrect invocation")},E))for(i in A)o[i]&&p(o[i],T);if((!E||!S||S===w)&&(S=T.prototype,E))for(i in A)o[i]&&p(o[i].prototype,S);if(E&&f(b)!==S&&p(b,S),a&&!u(S,M))for(i in I=!0,h(S,M,{get:function(){return s(this)?this[C]:void 0}}),A)o[i]&&l(o[i],C,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:E,TYPED_ARRAY_TAG:I&&C,aTypedArray:D,aTypedArrayConstructor:L,exportTypedArrayMethod:N,exportTypedArrayStaticMethod:P,isView:O,isTypedArray:x,TypedArray:T,TypedArrayPrototype:S}},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 g=d.beforeCreate;d.beforeCreate=g?[].concat(g,l):[l]}return{exports:e,options:d}}n.d(t,"a",(function(){return 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},g=function(e){return u&&m.REQUIRED&&d(e)&&!a(e,c)&&h(e),e},m=e.exports={REQUIRED:!1,fastKey:f,getWeakData:p,onFreeze:g};i[c]=!0},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)}})},f5b2:function(e,t,n){"use strict";var i=n("23e7"),r=n("6547").codeAt;i({target:"String",proto:!0},{codePointAt:function(e){return r(this,e)}})},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}},f6d6:function(e,t,n){var i=n("23e7"),r=n("23cb"),a=String.fromCharCode,o=String.fromCodePoint,s=!!o&&1!=o.length;i({target:"String",stat:!0,forced:s},{fromCodePoint:function(e){var t,n=[],i=arguments.length,o=0;while(i>o){if(t=+arguments[o++],r(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},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}),g=l("species"),m=[].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[g],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return m.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}})},fc6a:function(e,t,n){var i=n("44ad"),r=n("1d80");e.exports=function(e){return i(r(e))}},fd87:function(e,t,n){var i=n("74e8");i("Int8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},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}}]);